From 1e19708b4c68c78fc62e1ed0117aa098f20ff2a2 Mon Sep 17 00:00:00 2001 From: afabiani Date: Tue, 1 Dec 2020 21:24:52 +0100 Subject: [PATCH] - Bump to version 2.0.9 --- geonode_mapstore_client/client/package.json | 2 +- geonode_mapstore_client/client/version.txt | 2 +- geonode_mapstore_client/client/yarn.lock | 1666 +++++++++++++--- ...unk.js => 0.ed1b6141e36d12447dda.chunk.js} | 0 ...unk.js => 1.ed1b6141e36d12447dda.chunk.js} | 4 +- ...nk.js => 10.ed1b6141e36d12447dda.chunk.js} | 0 .../dist/11.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/11.ed1b6141e36d12447dda.chunk.js | 1 + ...nk.js => 12.ed1b6141e36d12447dda.chunk.js} | 2 +- ...nk.js => 13.ed1b6141e36d12447dda.chunk.js} | 0 ...nk.js => 14.ed1b6141e36d12447dda.chunk.js} | 30 +- .../dist/15.1a3b4ad5c93629cbe74d.chunk.js | 7 - .../dist/15.ed1b6141e36d12447dda.chunk.js | 7 + .../dist/16.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/16.ed1b6141e36d12447dda.chunk.js | 1 + .../dist/17.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/17.ed1b6141e36d12447dda.chunk.js | 1 + .../dist/18.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/18.ed1b6141e36d12447dda.chunk.js | 1 + ...nk.js => 19.ed1b6141e36d12447dda.chunk.js} | 2 +- ...unk.js => 2.ed1b6141e36d12447dda.chunk.js} | 0 .../dist/20.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/20.ed1b6141e36d12447dda.chunk.js | 1 + .../dist/21.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/21.ed1b6141e36d12447dda.chunk.js | 1 + .../dist/22.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/22.ed1b6141e36d12447dda.chunk.js | 1 + ...nk.js => 23.ed1b6141e36d12447dda.chunk.js} | 0 ...nk.js => 24.ed1b6141e36d12447dda.chunk.js} | 0 ...nk.js => 25.ed1b6141e36d12447dda.chunk.js} | 0 ...nk.js => 26.ed1b6141e36d12447dda.chunk.js} | 0 ...nk.js => 27.ed1b6141e36d12447dda.chunk.js} | 0 ...nk.js => 28.ed1b6141e36d12447dda.chunk.js} | 2 +- .../dist/29.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/29.ed1b6141e36d12447dda.chunk.js | 1 + .../dist/3.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/3.ed1b6141e36d12447dda.chunk.js | 1 + ...nk.js => 30.ed1b6141e36d12447dda.chunk.js} | 2 +- ...nk.js => 31.ed1b6141e36d12447dda.chunk.js} | 0 ...nk.js => 32.ed1b6141e36d12447dda.chunk.js} | 0 ...nk.js => 33.ed1b6141e36d12447dda.chunk.js} | 0 .../dist/34.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/34.ed1b6141e36d12447dda.chunk.js | 1 + .../dist/35.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../dist/35.ed1b6141e36d12447dda.chunk.js | 1 + ...unk.js => 4.ed1b6141e36d12447dda.chunk.js} | 0 ...unk.js => 5.ed1b6141e36d12447dda.chunk.js} | 0 ...unk.js => 6.ed1b6141e36d12447dda.chunk.js} | 0 ...unk.js => 7.ed1b6141e36d12447dda.chunk.js} | 2 +- ...unk.js => 8.ed1b6141e36d12447dda.chunk.js} | 0 ...unk.js => 9.ed1b6141e36d12447dda.chunk.js} | 0 .../static/mapstore/dist/gn-geostory.js | 44 +- ...ry-cesium-js.1a3b4ad5c93629cbe74d.chunk.js | 1 - ...ry-cesium-js.ed1b6141e36d12447dda.chunk.js | 1 + ...y-leaflet-js.1a3b4ad5c93629cbe74d.chunk.js | 1 - ...y-leaflet-js.ed1b6141e36d12447dda.chunk.js | 1 + ...penlayers-js.1a3b4ad5c93629cbe74d.chunk.js | 1 - ...penlayers-js.ed1b6141e36d12447dda.chunk.js | 1 + ...ary-sink-js.ed1b6141e36d12447dda.chunk.js} | 0 .../static/mapstore/dist/ms2-geonode-api.js | 42 +- ...-menu-plugin.1a3b4ad5c93629cbe74d.chunk.js | 1 - ...-menu-plugin.ed1b6141e36d12447dda.chunk.js | 1 + ...ditor-plugin.1a3b4ad5c93629cbe74d.chunk.js | 17 - ...ditor-plugin.ed1b6141e36d12447dda.chunk.js | 17 + ...ation-plugin.1a3b4ad5c93629cbe74d.chunk.js | 1 - ...ation-plugin.ed1b6141e36d12447dda.chunk.js | 1 + ...hare-plugin.ed1b6141e36d12447dda.chunk.js} | 2 +- ...story-plugin.1a3b4ad5c93629cbe74d.chunk.js | 68 - ...story-plugin.ed1b6141e36d12447dda.chunk.js | 68 + ...ditor-plugin.1a3b4ad5c93629cbe74d.chunk.js | 1 - ...ditor-plugin.ed1b6141e36d12447dda.chunk.js | 1 + ...ions-plugin.ed1b6141e36d12447dda.chunk.js} | 0 ...i-bar-plugin.1a3b4ad5c93629cbe74d.chunk.js | 1 - ...i-bar-plugin.ed1b6141e36d12447dda.chunk.js | 1 + ...ve-as-plugin.1a3b4ad5c93629cbe74d.chunk.js | 1 - ...ve-as-plugin.ed1b6141e36d12447dda.chunk.js | 1 + .../save-plugin.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../save-plugin.ed1b6141e36d12447dda.chunk.js | 1 + ...share-plugin.1a3b4ad5c93629cbe74d.chunk.js | 1 - ...share-plugin.ed1b6141e36d12447dda.chunk.js | 1 + .../static/mapstore/dist/themes/default.css | 1776 ++++++++--------- .../static/mapstore/dist/themes/preview.css | 1776 ++++++++--------- ...ug~a4b89b50.ed1b6141e36d12447dda.chunk.js} | 0 ...pdfjsWorker.ed1b6141e36d12447dda.chunk.js} | 0 .../n~50a7eb7a.1a3b4ad5c93629cbe74d.chunk.js | 1 - .../n~50a7eb7a.ed1b6141e36d12447dda.chunk.js | 1 + ...ation-plugin.1a3b4ad5c93629cbe74d.chunk.js | 1 - ...ation-plugin.ed1b6141e36d12447dda.chunk.js | 1 + ...ions-plugin.ed1b6141e36d12447dda.chunk.js} | 0 .../static/mapstore/version.txt | 2 +- 90 files changed, 3361 insertions(+), 2225 deletions(-) rename geonode_mapstore_client/static/mapstore/dist/{0.1a3b4ad5c93629cbe74d.chunk.js => 0.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{1.1a3b4ad5c93629cbe74d.chunk.js => 1.ed1b6141e36d12447dda.chunk.js} (61%) rename geonode_mapstore_client/static/mapstore/dist/{10.1a3b4ad5c93629cbe74d.chunk.js => 10.ed1b6141e36d12447dda.chunk.js} (100%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/11.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/11.ed1b6141e36d12447dda.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{12.1a3b4ad5c93629cbe74d.chunk.js => 12.ed1b6141e36d12447dda.chunk.js} (99%) rename geonode_mapstore_client/static/mapstore/dist/{13.1a3b4ad5c93629cbe74d.chunk.js => 13.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{14.1a3b4ad5c93629cbe74d.chunk.js => 14.ed1b6141e36d12447dda.chunk.js} (59%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/15.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/15.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/16.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/16.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/17.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/17.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/18.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/18.ed1b6141e36d12447dda.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{19.1a3b4ad5c93629cbe74d.chunk.js => 19.ed1b6141e36d12447dda.chunk.js} (98%) rename geonode_mapstore_client/static/mapstore/dist/{2.1a3b4ad5c93629cbe74d.chunk.js => 2.ed1b6141e36d12447dda.chunk.js} (100%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/20.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/20.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/21.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/21.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/22.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/22.ed1b6141e36d12447dda.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{23.1a3b4ad5c93629cbe74d.chunk.js => 23.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{24.1a3b4ad5c93629cbe74d.chunk.js => 24.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{25.1a3b4ad5c93629cbe74d.chunk.js => 25.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{26.1a3b4ad5c93629cbe74d.chunk.js => 26.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{27.1a3b4ad5c93629cbe74d.chunk.js => 27.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{28.1a3b4ad5c93629cbe74d.chunk.js => 28.ed1b6141e36d12447dda.chunk.js} (86%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/29.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/29.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/3.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/3.ed1b6141e36d12447dda.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{30.1a3b4ad5c93629cbe74d.chunk.js => 30.ed1b6141e36d12447dda.chunk.js} (78%) rename geonode_mapstore_client/static/mapstore/dist/{31.1a3b4ad5c93629cbe74d.chunk.js => 31.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{32.1a3b4ad5c93629cbe74d.chunk.js => 32.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{33.1a3b4ad5c93629cbe74d.chunk.js => 33.ed1b6141e36d12447dda.chunk.js} (100%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/34.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/34.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/35.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/35.ed1b6141e36d12447dda.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{4.1a3b4ad5c93629cbe74d.chunk.js => 4.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{5.1a3b4ad5c93629cbe74d.chunk.js => 5.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{6.1a3b4ad5c93629cbe74d.chunk.js => 6.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{7.1a3b4ad5c93629cbe74d.chunk.js => 7.ed1b6141e36d12447dda.chunk.js} (90%) rename geonode_mapstore_client/static/mapstore/dist/{8.1a3b4ad5c93629cbe74d.chunk.js => 8.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{9.1a3b4ad5c93629cbe74d.chunk.js => 9.ed1b6141e36d12447dda.chunk.js} (100%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/map-library-cesium-js.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/map-library-cesium-js.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/map-library-leaflet-js.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/map-library-leaflet-js.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/map-library-openlayers-js.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/map-library-openlayers-js.ed1b6141e36d12447dda.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{map-library-sink-js.1a3b4ad5c93629cbe74d.chunk.js => map-library-sink-js.ed1b6141e36d12447dda.chunk.js} (100%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/burger-menu-plugin.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/burger-menu-plugin.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/geostory-editor-plugin.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/geostory-editor-plugin.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/geostory-navigation-plugin.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/geostory-navigation-plugin.ed1b6141e36d12447dda.chunk.js rename geonode_mapstore_client/static/mapstore/dist/plugins/geostory-navigation-plugin~plugins/{share-plugin.1a3b4ad5c93629cbe74d.chunk.js => share-plugin.ed1b6141e36d12447dda.chunk.js} (51%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/geostory-plugin.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/geostory-plugin.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/media-editor-plugin.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/media-editor-plugin.ed1b6141e36d12447dda.chunk.js rename geonode_mapstore_client/static/mapstore/dist/plugins/{notifications-plugin.1a3b4ad5c93629cbe74d.chunk.js => notifications-plugin.ed1b6141e36d12447dda.chunk.js} (100%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/omni-bar-plugin.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/omni-bar-plugin.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/save-as-plugin.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/save-as-plugin.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/save-plugin.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/save-plugin.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/share-plugin.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/plugins/share-plugin.ed1b6141e36d12447dda.chunk.js rename geonode_mapstore_client/static/mapstore/dist/vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/{geostory-plug~a4b89b50.1a3b4ad5c93629cbe74d.chunk.js => geostory-plug~a4b89b50.ed1b6141e36d12447dda.chunk.js} (100%) rename geonode_mapstore_client/static/mapstore/dist/{vendors~pdfjsWorker.1a3b4ad5c93629cbe74d.chunk.js => vendors~pdfjsWorker.ed1b6141e36d12447dda.chunk.js} (100%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/vendors~plugins/geostory-editor-plugin~plugins/geostory-plugin~plugins/media-editor-plugin~plugins/n~50a7eb7a.ed1b6141e36d12447dda.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/vendors~plugins/geostory-navigation-plugin.1a3b4ad5c93629cbe74d.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/vendors~plugins/geostory-navigation-plugin.ed1b6141e36d12447dda.chunk.js rename geonode_mapstore_client/static/mapstore/dist/vendors~plugins/{notifications-plugin.1a3b4ad5c93629cbe74d.chunk.js => notifications-plugin.ed1b6141e36d12447dda.chunk.js} (100%) diff --git a/geonode_mapstore_client/client/package.json b/geonode_mapstore_client/client/package.json index e7405ac270..4ef43c50df 100644 --- a/geonode_mapstore_client/client/package.json +++ b/geonode_mapstore_client/client/package.json @@ -1,6 +1,6 @@ { "name": "geonode-mapstore-client", - "version": "2.0.4", + "version": "2.0.9", "description": "MapStore 2 Api bundle specific to geonode framework", "main": "api.js", "eslintConfig": { diff --git a/geonode_mapstore_client/client/version.txt b/geonode_mapstore_client/client/version.txt index 92d8dc4dde..6658256527 100644 --- a/geonode_mapstore_client/client/version.txt +++ b/geonode_mapstore_client/client/version.txt @@ -1 +1 @@ -geonode-mapstore-client-v2.0.4-39dee8b547a534a04a48b3e572650c647e84b991 \ No newline at end of file +geonode-mapstore-client-v2.0.9-9f39972f918b88e4a612e6369d16e38d7c5a1987 \ No newline at end of file diff --git a/geonode_mapstore_client/client/yarn.lock b/geonode_mapstore_client/client/yarn.lock index 418e0cc94a..afdd3ddd78 100644 --- a/geonode_mapstore_client/client/yarn.lock +++ b/geonode_mapstore_client/client/yarn.lock @@ -39,6 +39,22 @@ semver "^5.4.1" source-map "^0.5.0" +"@babel/eslint-parser@7.11.5": + version "7.11.5" + resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.11.5.tgz#398192b8d1cd3678efb709f5ab09d9aa2a2218fd" + integrity sha512-DZ3maD3ciwRg1pOzEpJ1outlV1DA/A8XHDQoyL69fC3RIJMlMq1UPudgfRkW0YFqmQPR6OPvu8chaT7Yq2Mm8A== + dependencies: + eslint-scope "5.1.0" + eslint-visitor-keys "^1.3.0" + semver "^6.3.0" + +"@babel/eslint-plugin@7.11.5": + version "7.11.5" + resolved "https://registry.yarnpkg.com/@babel/eslint-plugin/-/eslint-plugin-7.11.5.tgz#651fed485493cee8ae803d6a22e3b4f21315f328" + integrity sha512-klliWjB6CeMeqZ7IeJporPr7raD3Ttc8MF9HPNyTvddmBB9Bg7gbiN43rZvaqvsYiktPQLHZrD/Of7vtl6EYpw== + dependencies: + eslint-rule-composer "^0.3.0" + "@babel/generator@^7.4.0", "@babel/generator@^7.8.7", "@babel/generator@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.9.5.tgz#27f0917741acc41e6eaaced6d68f96c3fa9afaf9" @@ -829,6 +845,22 @@ dependencies: "@carnesen/checks" "0.0.1" +"@eslint/eslintrc@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.1.3.tgz#7d1a2b2358552cc04834c0979bd4275362e37085" + integrity sha512-4YVwPkANLeNtRjMekzux1ci8hIaH5eGKktGqR0d3LWsKNn5B2X/1Z6Trxy7jQXl9EBGE6Yj02O+t09FMeRllaA== + dependencies: + ajv "^6.12.4" + debug "^4.1.1" + espree "^7.3.0" + globals "^12.1.0" + ignore "^4.0.6" + import-fresh "^3.2.1" + js-yaml "^3.13.1" + lodash "^4.17.19" + minimatch "^3.0.4" + strip-json-comments "^3.1.1" + "@geosolutions/acorn-jsx@4.0.2": version "4.0.2" resolved "https://registry.yarnpkg.com/@geosolutions/acorn-jsx/-/acorn-jsx-4.0.2.tgz#fcbdd64f7b19a9070a1777e913017123ba769aa9" @@ -921,6 +953,18 @@ resolved "https://registry.yarnpkg.com/@icons/material/-/material-0.2.4.tgz#e90c9f71768b3736e76d7dd6783fc6c2afa88bc8" integrity sha512-QPcGmICAPbGLGb6F/yNf/KzKqvFx8z5qx3D1yFqVAjoFmXK35EgyW+cJ57Te3CNsmzblwtzakLGFqHPqrfb4Tw== +"@kwsites/file-exists@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@kwsites/file-exists/-/file-exists-1.1.1.tgz#ad1efcac13e1987d8dbaf235ef3be5b0d96faa99" + integrity sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw== + dependencies: + debug "^4.1.1" + +"@kwsites/promise-deferred@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@kwsites/promise-deferred/-/promise-deferred-1.1.1.tgz#8ace5259254426ccef57f3175bc64ed7095ed919" + integrity sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw== + "@mapbox/geojsonhint@2.0.1": version "2.0.1" resolved "https://registry.yarnpkg.com/@mapbox/geojsonhint/-/geojsonhint-2.0.1.tgz#32dac7300f04b3ebaec74b5ba9853dfb42532354" @@ -941,6 +985,108 @@ minimist "1.2.0" xmldom "~0.1.19" +"@mapstore/eslint-config-mapstore@1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@mapstore/eslint-config-mapstore/-/eslint-config-mapstore-1.0.1.tgz#5ce81c8e5e75d42aeee451046bc9014322e9269a" + integrity sha512-3t3NMBhhRIWX4cGMHxcmBBcSgDt4bdgcxJnyXC4u26VYzJiRk8NiGpyngxPAYzyaugcBxehKNrY6TlANOXAyAw== + dependencies: + "@babel/eslint-parser" "7.11.5" + "@babel/eslint-plugin" "7.11.5" + +"@mapstore/project@git+https://github.com/geosolutions-it/mapstore-project.git#30ac4deb06bfd71d5078a3171463eaab3990bd91": + version "1.0.0" + resolved "git+https://github.com/geosolutions-it/mapstore-project.git#30ac4deb06bfd71d5078a3171463eaab3990bd91" + dependencies: + "@babel/core" "7.8.7" + "@babel/plugin-proposal-class-properties" "7.8.3" + "@babel/plugin-syntax-dynamic-import" "7.8.3" + "@babel/preset-env" "7.8.7" + "@babel/preset-react" "7.8.3" + "@geosolutions/acorn-jsx" "4.0.2" + "@geosolutions/jsdoc" "3.4.4" + "@geosolutions/mocha" "6.2.1-3" + "@mapstore/eslint-config-mapstore" "1.0.1" + axios-mock-adapter "1.16.0" + babel-eslint "10.0.3" + babel-istanbul-loader "0.1.0" + babel-loader "8.0.5" + babel-plugin-add-module-exports "0.1.4" + babel-plugin-object-assign "1.2.1" + babel-plugin-react-transform "2.0.2" + cesium "1.17.0" + copy-webpack-plugin "5.0.2" + css-loader "0.19.0" + denodeify "1.2.1" + docma "1.5.1" + download-cli "1.0.1" + dynamic-public-path-webpack-plugin "1.0.4" + escope "3.2.0" + eslint "7.8.1" + eslint-plugin-import "2.20.2" + eslint-plugin-no-only-tests "2.3.1" + eslint-plugin-react "3.3.2" + expect "1.20.1" + file-loader "2.0.0" + fs-extra "9.0.1" + glob "7.1.1" + html-loader "0.5.1" + html-webpack-plugin "4.3.0" + jsdoc-jsx "0.1.0" + karma "4.3.0" + karma-chrome-launcher "3.1.0" + karma-cli "2.0.0" + karma-coverage "2.0.1" + karma-coveralls "2.1.0" + karma-firefox-launcher "1.2.0" + karma-ie-launcher "1.0.0" + karma-junit-reporter "1.2.0" + karma-mocha "1.3.0" + karma-mocha-reporter "2.2.5" + karma-sourcemap-loader "0.3.7" + karma-webpack "4.0.2" + less "2.7.1" + less-loader "4.1.0" + mini-css-extract-plugin "0.5.0" + mkdirp "0.5.1" + ncp "2.0.0" + parallelshell "1.2.0" + postcss "7.0.14" + postcss-loader "3.0.0" + postcss-prefix-selector "1.7.1" + progress-bar-webpack-plugin "1.12.1" + raw-loader "0.5.1" + react-motion "0.5.0" + react-transition-group "1.1.3" + readline-promise "1.0.4" + redux-devtools "3.4.0" + redux-devtools-dock-monitor "1.1.2" + redux-devtools-log-monitor "1.3.0" + redux-immutable-state-invariant "2.1.0" + redux-mock-store "1.2.2" + rimraf "2.5.2" + sass "1.29.0" + sass-loader "10.1.0" + simple-git "2.20.1" + style-loader "0.12.4" + url-loader "0.5.7" + vusion-webfonts-generator "0.4.1" + webpack "4.41.5" + webpack-bundle-analyzer "3.9.0" + webpack-cli "3.3.6" + webpack-dev-server "3.10.3" + yargs "16.1.0" + +"@terrestris/base-util@0.1.4": + version "0.1.4" + resolved "https://registry.yarnpkg.com/@terrestris/base-util/-/base-util-0.1.4.tgz#656d741cc02b77806e920f26d864ee073748c3c6" + integrity sha512-LlGiKWCxBNthY9ktwoIpZ3BWVmdB4Ok5NJcp2U+Km5TFmTXiR7FD4y16Dt5YuY7Cd+nxjRgJzQxytY51z67H8Q== + dependencies: + lodash "4.17.11" + loglevel "1.6.1" + query-string "5.1.1" + url-parse "1.4.4" + validator "10.11.0" + "@terrestris/base-util@^0.2.1": version "0.2.2" resolved "https://registry.yarnpkg.com/@terrestris/base-util/-/base-util-0.2.2.tgz#7444a61d32e1fb304113e87624deaaea698ddd76" @@ -958,6 +1104,17 @@ url-search-params "^1.1.0" validator "^11.1.0" +"@terrestris/ol-util@3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@terrestris/ol-util/-/ol-util-3.0.0.tgz#da32d97edfefbfdea085dbcb407a595a3266d206" + integrity sha512-5cNFdZAzf++m6gv2dZ5XyVT2QmOmb3Hwml4QgNaTjWyU3yvpi5vNqdVhUHgP5sSJDDM1pIIZLSJwDV4s2dmjow== + dependencies: + "@terrestris/base-util" "0.1.4" + "@turf/turf" "5.1.6" + lodash "4.17.11" + proj4 "2.5.0" + shpjs "3.4.3" + "@terrestris/ol-util@^3.0.1": version "3.0.1" resolved "https://registry.yarnpkg.com/@terrestris/ol-util/-/ol-util-3.0.1.tgz#35d5eb23116d32cfbfdc713b1a7c883bfc8c0ab6" @@ -2124,7 +2281,7 @@ "@turf/helpers" "^5.1.5" "@turf/meta" "^5.1.5" -"@turf/turf@^5.1.6": +"@turf/turf@5.1.6", "@turf/turf@^5.1.6": version "5.1.6" resolved "https://registry.yarnpkg.com/@turf/turf/-/turf-5.1.6.tgz#c3122592887ed234b75468b8a8c45bf886fbf8f6" integrity sha1-wxIlkoh+0jS3VGi4qMRb+Ib7+PY= @@ -2258,6 +2415,11 @@ "@turf/invariant" "^5.1.5" d3-voronoi "1.1.2" +"@types/anymatch@*": + version "1.3.1" + resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a" + integrity sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA== + "@types/events@*": version "3.0.0" resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7" @@ -2272,6 +2434,16 @@ "@types/minimatch" "*" "@types/node" "*" +"@types/html-minifier-terser@^5.0.0": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@types/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz#3c9ee980f1a10d6021ae6632ca3e79ca2ec4fb50" + integrity sha512-giAlZwstKbmvMk1OO7WXSj4OZ0keXAcl2TQq4LWHiiPH2ByaH7WeUzng+Qej8UPxxv+8lRTuouo0iaNDBuzIBA== + +"@types/json-schema@^7.0.6": + version "7.0.6" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" + integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== + "@types/lodash@^4.14.138": version "4.14.149" resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.149.tgz#1342d63d948c6062838fbf961012f74d4e638440" @@ -2294,6 +2466,23 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-13.11.1.tgz#49a2a83df9d26daacead30d0ccc8762b128d53c7" integrity sha512-eWQGP3qtxwL8FGneRrC5DwrJLGN4/dH1clNTuLfN81HCrxVtxRjygDTUoZJ5ASlDEeo0ppYFQjQIlXhtXpOn6g== +"@types/source-list-map@*": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@types/source-list-map/-/source-list-map-0.1.2.tgz#0078836063ffaf17412349bba364087e0ac02ec9" + integrity sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA== + +"@types/tapable@*", "@types/tapable@^1.0.5": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.6.tgz#a9ca4b70a18b270ccb2bc0aaafefd1d486b7ea74" + integrity sha512-W+bw9ds02rAQaMvaLYxAbJ6cvguW/iJXNT6lTssS1ps6QdrMKttqEAMEG/b5CR8TZl3/L7/lH0ZV5nNR1LXikA== + +"@types/uglify-js@*": + version "3.11.1" + resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.11.1.tgz#97ff30e61a0aa6876c270b5f538737e2d6ab8ceb" + integrity sha512-7npvPKV+jINLu1SpSYVWG8KvyJBhBa8tmzMMdDoVc2pWUYHN8KIXlPJhjJ4LT97c4dXJA2SHL/q6ADbDriZN+Q== + dependencies: + source-map "^0.6.1" + "@types/url-parse@^1.4.3": version "1.4.3" resolved "https://registry.yarnpkg.com/@types/url-parse/-/url-parse-1.4.3.tgz#fba49d90f834951cb000a674efee3d6f20968329" @@ -2309,6 +2498,27 @@ resolved "https://registry.yarnpkg.com/@types/validator/-/validator-10.11.3.tgz#945799bef24a953c5bc02011ca8ad79331a3ef25" integrity sha512-GKF2VnEkMmEeEGvoo03ocrP9ySMuX1ypKazIYMlsjfslfBMhOAtC5dmEWKdJioW4lJN7MZRS88kalTsVClyQ9w== +"@types/webpack-sources@*": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@types/webpack-sources/-/webpack-sources-2.0.0.tgz#08216ab9be2be2e1499beaebc4d469cec81e82a7" + integrity sha512-a5kPx98CNFRKQ+wqawroFunvFqv7GHm/3KOI52NY9xWADgc8smu4R6prt4EU/M4QfVjvgBkMqU4fBhw3QfMVkg== + dependencies: + "@types/node" "*" + "@types/source-list-map" "*" + source-map "^0.7.3" + +"@types/webpack@^4.41.8": + version "4.41.25" + resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.25.tgz#4d3b5aecc4e44117b376280fbfd2dc36697968c4" + integrity sha512-cr6kZ+4m9lp86ytQc1jPOJXgINQyz3kLLunZ57jznW+WIAL0JqZbGubQk4GlD42MuQL5JGOABrxdpqqWeovlVQ== + dependencies: + "@types/anymatch" "*" + "@types/node" "*" + "@types/tapable" "*" + "@types/uglify-js" "*" + "@types/webpack-sources" "*" + source-map "^0.6.0" + "@webassemblyjs/ast@1.8.5": version "1.8.5" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.8.5.tgz#51b1c5fe6576a34953bf4b253df9f0d490d9e359" @@ -2505,6 +2715,11 @@ acorn-jsx@^5.2.0: resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz#4c66069173d6fdd68ed85239fc256226182b2ebe" integrity sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ== +acorn-walk@^7.1.1: + version "7.2.0" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" + integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== + acorn@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" @@ -2530,6 +2745,11 @@ acorn@^7.1.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.1.tgz#e35668de0b402f359de515c5482a1ab9f89a69bf" integrity sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg== +acorn@^7.4.0: + version "7.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== + after@0.8.2: version "0.8.2" resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f" @@ -2557,6 +2777,11 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.4.1: resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.4.1.tgz#ef916e271c64ac12171fd8384eaae6b2345854da" integrity sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ== +ajv-keywords@^3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" + integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== + ajv@^4.9.1: version "4.11.8" resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" @@ -2585,6 +2810,16 @@ ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.5.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^6.12.4, ajv@^6.12.5: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + align-text@^0.1.1, align-text@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" @@ -2619,10 +2854,10 @@ ansi-colors@^3.0.0: resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.4.tgz#e3a3da4bfbae6c86a9c285625de124a234026fbf" integrity sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA== -ansi-escapes@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" - integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== +ansi-colors@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" + integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== ansi-html@0.0.7: version "0.0.7" @@ -2649,6 +2884,11 @@ ansi-regex@^4.1.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== +ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== + ansi-styles@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.1.0.tgz#eaecbf66cd706882760b2f4691582b8f55d7a7de" @@ -2666,6 +2906,13 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + ansi-styles@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.0.0.tgz#cb102df1c56f5123eab8b67cd7b98027a0279178" @@ -2764,6 +3011,17 @@ array-flatten@^2.1.0: resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-2.1.2.tgz#24ef80a28c1a893617e2149b0c6d0d788293b099" integrity sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ== +array-includes@^3.0.3: + version "3.1.2" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.2.tgz#a8db03e0b88c8c6aeddc49cb132f9bcab4ebf9c8" + integrity sha512-w2GspexNQpx+PutG3QpT437/BenZBj0M/MZGn5mzv/MofYqo0xmRHzn4lFsoDlWJ+THYsGJmFlW68WlDFx7VRw== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + es-abstract "^1.18.0-next.1" + get-intrinsic "^1.0.1" + is-string "^1.0.5" + array-union@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" @@ -2786,6 +3044,15 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= +array.prototype.flat@^1.2.1: + version "1.2.4" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz#6ef638b43312bd401b4c6199fdec7e2dc9e9a123" + integrity sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + es-abstract "^1.18.0-next.1" + arraybuffer.slice@~0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz#3bbc4275dd584cc1b10809b89d4e8b63a69e7675" @@ -2872,6 +3139,11 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= +at-least-node@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" + integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== + atob@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" @@ -3243,6 +3515,16 @@ better-assert@~1.0.0: dependencies: callsite "1.0.0" +bfj@^6.1.1: + version "6.1.2" + resolved "https://registry.yarnpkg.com/bfj/-/bfj-6.1.2.tgz#325c861a822bcb358a41c78a33b8e6e2086dde7f" + integrity sha512-BmBJa4Lip6BPRINSZ0BPEIfB1wUY/9rwbwvIHQA1KjX9om29B6id0wnWXq7m3bn5JrUVjeOTnVuhPT1FiHwPGw== + dependencies: + bluebird "^3.5.5" + check-types "^8.0.3" + hoopy "^0.1.4" + tryer "^1.0.1" + big.js@^3.1.3: version "3.2.0" resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" @@ -3619,6 +3901,14 @@ cache-base@^1.0.1: union-value "^1.0.0" unset-value "^1.0.0" +call-bind@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.0.tgz#24127054bb3f9bdcb4b1fb82418186072f77b8ce" + integrity sha512-AEXsYIyyDY3MCzbwdhzG3Jx1R0J2wetQyUynn6dYHAO+bg8l1k7jwZtRv4ryryFs7EP+NDlikJlVe59jr0cM2w== + dependencies: + function-bind "^1.1.1" + get-intrinsic "^1.0.0" + caller-callsite@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" @@ -3656,6 +3946,14 @@ camel-case@3.0.x: no-case "^2.2.0" upper-case "^1.1.1" +camel-case@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-4.1.1.tgz#1fc41c854f00e2f7d0139dfeba1542d6896fe547" + integrity sha512-7fa2WcG4fYFkclIvEmxBbTvmibwF2/agfEBc6q3lOpVu0A13ltLsA+Hr/8Hp6kp5f+G7hKi6t8lys6XxP+1K6Q== + dependencies: + pascal-case "^3.1.1" + tslib "^1.10.0" + camelcase-keys@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-1.0.0.tgz#bd1a11bf9b31a1ce493493a930de1a0baf4ad7ec" @@ -3758,7 +4056,7 @@ chain-function@^1.0.0: resolved "https://registry.yarnpkg.com/chain-function/-/chain-function-1.0.1.tgz#c63045e5b4b663fb86f1c6e186adaf1de402a1cc" integrity sha512-SxltgMwL9uCko5/ZCLiyG2B7R9fY4pDZUw7hJ4MhirdjBLosoDqkWABi3XMucddHdLiFJMb7PD2MZifZriuMTg== -chalk@2.4.2, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.2: +chalk@2.4.2, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -3789,6 +4087,14 @@ chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" +chalk@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" + integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chalk@~0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.4.0.tgz#5199a3ddcd0c1efe23bc08c1b027b06176e0c64f" @@ -3803,10 +4109,25 @@ change-emitter@^0.1.2: resolved "https://registry.yarnpkg.com/change-emitter/-/change-emitter-0.1.6.tgz#e8b2fe3d7f1ab7d69a32199aff91ea6931409515" integrity sha1-6LL+PX8at9aaMhma/5HqaTFAlRU= -chardet@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" - integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== +check-types@^8.0.3: + version "8.0.3" + resolved "https://registry.yarnpkg.com/check-types/-/check-types-8.0.3.tgz#3356cca19c889544f2d7a95ed49ce508a0ecf552" + integrity sha512-YpeKZngUmG65rLudJ4taU7VLkOCTMhNl/u4ctNC56LQS/zJTyNH0Lrtwm1tfTsbLlwvlfsA2d1c8vCf/Kh2KwQ== + +"chokidar@>=2.0.0 <4.0.0": + version "3.4.3" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.3.tgz#c1df38231448e45ca4ac588e6c79573ba6a57d5b" + integrity sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ== + dependencies: + anymatch "~3.1.1" + braces "~3.0.2" + glob-parent "~5.1.0" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.5.0" + optionalDependencies: + fsevents "~2.1.2" chokidar@^2.1.8: version "2.1.8" @@ -3910,7 +4231,7 @@ classnames@2.x, classnames@^2.1.2, classnames@^2.2.3, classnames@^2.2.4, classna resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce" integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q== -clean-css@4.2.x: +clean-css@4.2.x, clean-css@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.3.tgz#507b5de7d97b48ee53d84adb0160ff6216380f78" integrity sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA== @@ -3925,18 +4246,6 @@ clean-css@^3.0.1: commander "2.8.x" source-map "0.4.x" -cli-cursor@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" - integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= - dependencies: - restore-cursor "^2.0.0" - -cli-width@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" - integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== - cli@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/cli/-/cli-1.0.1.tgz#22817534f24bfa4950c34d532d48ecbc621b8c14" @@ -3981,6 +4290,15 @@ cliui@^5.0.0: strip-ansi "^5.2.0" wrap-ansi "^5.1.0" +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + clone-buffer@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/clone-buffer/-/clone-buffer-1.0.0.tgz#e3e25b207ac4e701af721e2cb5a16792cac3dc58" @@ -4076,12 +4394,19 @@ color-convert@^1.3.0, color-convert@^1.9.0: dependencies: color-name "1.1.3" +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + color-name@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= -color-name@^1.0.0: +color-name@^1.0.0, color-name@~1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== @@ -4133,7 +4458,7 @@ combined-stream@^1.0.5, combined-stream@^1.0.6, combined-stream@~1.0.5, combined dependencies: delayed-stream "~1.0.0" -commander@2, commander@^2.20.0, commander@^2.5.0, commander@^2.7.1, commander@^2.9.0, commander@~2.20.3: +commander@2, commander@^2.18.0, commander@^2.20.0, commander@^2.5.0, commander@^2.9.0, commander@~2.20.3: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -4150,6 +4475,11 @@ commander@2.8.x, commander@~2.8.1: dependencies: graceful-readlink ">= 1.0.0" +commander@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" + integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== + commander@~2.19.0: version "2.19.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" @@ -4288,6 +4618,11 @@ constants-browserify@^1.0.0: resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U= +contains-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" + integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo= + content-disposition@0.5.3: version "0.5.3" resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" @@ -4475,7 +4810,7 @@ create-react-context@^0.3.0: gud "^1.0.0" warning "^4.0.3" -cross-spawn@6.0.5, cross-spawn@^6.0.0, cross-spawn@^6.0.5: +cross-spawn@6.0.5, cross-spawn@^6.0.0: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== @@ -4486,6 +4821,15 @@ cross-spawn@6.0.5, cross-spawn@^6.0.0, cross-spawn@^6.0.5: shebang-command "^1.2.0" which "^1.2.9" +cross-spawn@^7.0.2: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + cryptiles@2.x.x: version "2.0.5" resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" @@ -4886,11 +5230,16 @@ deep-extend@~0.2.5: resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.2.11.tgz#7a16ba69729132340506170494bc83f7076fe08f" integrity sha1-eha6aXKRMjQFBhcElLyD9wdv4I8= -deep-is@~0.1.2, deep-is@~0.1.3: +deep-is@^0.1.3, deep-is@~0.1.2, deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= +deepmerge@^4.0.0: + version "4.2.2" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" + integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== + default-gateway@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-4.2.0.tgz#167104c7500c2115f6dd69b0a536bb8ed720552b" @@ -5108,6 +5457,14 @@ docma@1.5.1: uglify-js "^2.8.11" yargs "^7.0.2" +doctrine@1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" + integrity sha1-N53Ocw9hZvds76TmcHoVmwLFpvo= + dependencies: + esutils "^2.0.2" + isarray "^1.0.0" + doctrine@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" @@ -5195,6 +5552,14 @@ domutils@^1.5.1: dom-serializer "0" domelementtype "1" +dot-case@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/dot-case/-/dot-case-3.0.3.tgz#21d3b52efaaba2ea5fda875bb1aa8124521cf4aa" + integrity sha512-7hwEmg6RiSQfm/GwPL4AAWXKy3YNNZA3oFv2Pdiey0mwkRCPZ9x6SZbkLcn8Ma5PYeVokzoD4Twv2n7LKp5WeA== + dependencies: + no-case "^3.0.3" + tslib "^1.10.0" + download-cli@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/download-cli/-/download-cli-1.0.1.tgz#34317d0f36e447111c3d3c92ddec28f30e66bec1" @@ -5294,10 +5659,15 @@ draftjs-to-html@0.8.4: resolved "https://registry.yarnpkg.com/draftjs-to-html/-/draftjs-to-html-0.8.4.tgz#bda0adc00945db1f1baf0191b34b49b24191f1df" integrity sha512-+4hekxc8dTJvKk6usiEsFX9O1uOD9vLZZOs9ZI3RhTe89yNmtazYII/ILDXfbMPfzNaYfX7Gf3zjRm6UUFxqyg== -draftjs-utils@^0.9.3: - version "0.9.4" - resolved "https://registry.yarnpkg.com/draftjs-utils/-/draftjs-utils-0.9.4.tgz#976c61aa133dbbbfedd65ae1dd6627d7b98c6f08" - integrity sha512-KYjABSbGpJrwrwmxVj5UhfV37MF/p0QRxKIyL+/+QOaJ8J9z1FBKxkblThbpR0nJi9lxPQWGg+gh+v0dAsSCCg== +draftjs-utils@^0.10.2: + version "0.10.2" + resolved "https://registry.yarnpkg.com/draftjs-utils/-/draftjs-utils-0.10.2.tgz#a7f16d2c1c174ac38ba3bbf700c256f176b2699c" + integrity sha512-EstHqr3R3JVcilJrBaO/A+01GvwwKmC7e4TCjC7S94ZeMh4IVmf60OuQXtHHpwItK8C2JCi3iljgN5KHkJboUg== + +duplexer@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" + integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== duplexer@~0.1.1: version "0.1.1" @@ -5362,6 +5732,11 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= +ejs@^2.6.1: + version "2.7.4" + resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.7.4.tgz#48661287573dcc53e366c7a1ae52c3a120eec9ba" + integrity sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA== + electron-to-chromium@^1.2.7, electron-to-chromium@^1.3.390: version "1.3.410" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.410.tgz#00e0ec61c22933daa8b4de172c03932678783adc" @@ -5407,6 +5782,11 @@ emoji-regex@^7.0.1: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + emojis-list@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" @@ -5494,6 +5874,13 @@ enhanced-resolve@^4.1.0: memory-fs "^0.5.0" tapable "^1.0.0" +enquirer@^2.3.5: + version "2.3.6" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" + ent@~2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.0.tgz#e964219325a21d05f44466a2f686ed6ce5f5dd1d" @@ -5540,6 +5927,24 @@ es-abstract@^1.17.0-next.1, es-abstract@^1.17.2, es-abstract@^1.17.4, es-abstrac string.prototype.trimleft "^2.1.1" string.prototype.trimright "^2.1.1" +es-abstract@^1.18.0-next.1: + version "1.18.0-next.1" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.0-next.1.tgz#6e3a0a4bda717e5023ab3b8e90bec36108d22c68" + integrity sha512-I4UGspA0wpZXWENrdA0uHbnhte683t3qT/1VFH9aX2dA5PPSf6QW5HHXf5HImaqPmjXaVeVk4RGWnaylmV7uAA== + dependencies: + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.1" + is-callable "^1.2.2" + is-negative-zero "^2.0.0" + is-regex "^1.1.1" + object-inspect "^1.8.0" + object-keys "^1.1.1" + object.assign "^4.1.1" + string.prototype.trimend "^1.0.1" + string.prototype.trimstart "^1.0.1" + es-get-iterator@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.0.tgz#bb98ad9d6d63b31aacdc8f89d5d0ee57bcb5b4c8" @@ -5669,6 +6074,11 @@ es6-weak-map@^0.1.2: es6-iterator "~0.1.3" es6-symbol "~2.0.1" +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" @@ -5730,6 +6140,40 @@ escope@3.2.0: esrecurse "^3.1.1" estraverse "^3.1.0" +eslint-import-resolver-node@^0.3.2: + version "0.3.4" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz#85ffa81942c25012d8231096ddf679c03042c717" + integrity sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA== + dependencies: + debug "^2.6.9" + resolve "^1.13.1" + +eslint-module-utils@^2.4.1: + version "2.6.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz#579ebd094f56af7797d19c9866c9c9486629bfa6" + integrity sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA== + dependencies: + debug "^2.6.9" + pkg-dir "^2.0.0" + +eslint-plugin-import@2.20.2: + version "2.20.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.20.2.tgz#91fc3807ce08be4837141272c8b99073906e588d" + integrity sha512-FObidqpXrR8OnCh4iNsxy+WACztJLXAHBO5hK79T1Hc77PgQZkyDGA5Ag9xAvRpglvLNxhH/zSmZ70/pZ31dHg== + dependencies: + array-includes "^3.0.3" + array.prototype.flat "^1.2.1" + contains-path "^0.1.0" + debug "^2.6.9" + doctrine "1.5.0" + eslint-import-resolver-node "^0.3.2" + eslint-module-utils "^2.4.1" + has "^1.0.3" + minimatch "^3.0.4" + object.values "^1.1.0" + read-pkg-up "^2.0.0" + resolve "^1.12.0" + eslint-plugin-no-only-tests@2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.3.1.tgz#7b24a4df55b818d0838410aa96b24a5a4a072262" @@ -5740,6 +6184,19 @@ eslint-plugin-react@3.3.2: resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-3.3.2.tgz#9d2d184c52fafcabfc8d564812c1c9dc25600e43" integrity sha1-nS0YTFL6/Kv8jVZIEsHJ3CVgDkM= +eslint-rule-composer@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9" + integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg== + +eslint-scope@5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.0.tgz#d0f971dfe59c69e0cada684b23d49dbf82600ce5" + integrity sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w== + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + eslint-scope@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848" @@ -5748,18 +6205,18 @@ eslint-scope@^4.0.3: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-scope@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz#e87c8887c73e8d1ec84f1ca591645c358bfc8fb9" - integrity sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw== +eslint-scope@^5.1.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== dependencies: - esrecurse "^4.1.0" + esrecurse "^4.3.0" estraverse "^4.1.1" -eslint-utils@^1.4.2: - version "1.4.3" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" - integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q== +eslint-utils@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" + integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== dependencies: eslint-visitor-keys "^1.1.0" @@ -5768,57 +6225,62 @@ eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== -eslint@6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.3.0.tgz#1f1a902f67bfd4c354e7288b81e40654d927eb6a" - integrity sha512-ZvZTKaqDue+N8Y9g0kp6UPZtS4FSY3qARxBs7p4f0H0iof381XHduqVerFWtK8DPtKmemqbqCFENWSQgPR/Gow== +eslint-visitor-keys@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" + integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== + +eslint@7.8.1: + version "7.8.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.8.1.tgz#e59de3573fb6a5be8ff526c791571646d124a8fa" + integrity sha512-/2rX2pfhyUG0y+A123d0ccXtMm7DV7sH1m3lk9nk2DZ2LReq39FXHueR9xZwshE5MdfSf0xunSaMWRqyIA6M1w== dependencies: "@babel/code-frame" "^7.0.0" + "@eslint/eslintrc" "^0.1.3" ajv "^6.10.0" - chalk "^2.1.0" - cross-spawn "^6.0.5" + chalk "^4.0.0" + cross-spawn "^7.0.2" debug "^4.0.1" doctrine "^3.0.0" - eslint-scope "^5.0.0" - eslint-utils "^1.4.2" - eslint-visitor-keys "^1.1.0" - espree "^6.1.1" - esquery "^1.0.1" + enquirer "^2.3.5" + eslint-scope "^5.1.0" + eslint-utils "^2.1.0" + eslint-visitor-keys "^1.3.0" + espree "^7.3.0" + esquery "^1.2.0" esutils "^2.0.2" file-entry-cache "^5.0.1" functional-red-black-tree "^1.0.1" glob-parent "^5.0.0" - globals "^11.7.0" + globals "^12.1.0" ignore "^4.0.6" import-fresh "^3.0.0" imurmurhash "^0.1.4" - inquirer "^6.4.1" is-glob "^4.0.0" js-yaml "^3.13.1" json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.3.0" - lodash "^4.17.14" + levn "^0.4.1" + lodash "^4.17.19" minimatch "^3.0.4" - mkdirp "^0.5.1" natural-compare "^1.4.0" - optionator "^0.8.2" + optionator "^0.9.1" progress "^2.0.0" - regexpp "^2.0.1" - semver "^6.1.2" - strip-ansi "^5.2.0" - strip-json-comments "^3.0.1" + regexpp "^3.1.0" + semver "^7.2.1" + strip-ansi "^6.0.0" + strip-json-comments "^3.1.0" table "^5.2.3" text-table "^0.2.0" v8-compile-cache "^2.0.3" -espree@^6.1.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-6.2.1.tgz#77fc72e1fd744a2052c20f38a5b575832e82734a" - integrity sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw== +espree@^7.3.0: + version "7.3.0" + resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.0.tgz#dc30437cf67947cf576121ebd780f15eeac72348" + integrity sha512-dksIWsvKCixn1yrEXO8UosNSxaDoSYpq9reEjZSbHLpT5hpaCAKTLBwq0RHtLrIr+c0ByiYzWT8KTMRzoRCNlw== dependencies: - acorn "^7.1.1" + acorn "^7.4.0" acorn-jsx "^5.2.0" - eslint-visitor-keys "^1.1.0" + eslint-visitor-keys "^1.3.0" esprima-fb@^15001.1.0-dev-harmony-fb: version "15001.1.0-dev-harmony-fb" @@ -5850,12 +6312,12 @@ esprima@~3.1.0: resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" integrity sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM= -esquery@^1.0.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.3.0.tgz#e5e29a6f66a837840d34f68cb9ce355260d1128b" - integrity sha512-/5qB+Mb0m2bh86tjGbA8pB0qBfdmCIK6ZNPjcw4/TtEH0+tTf0wLA5HK4KMTweSMwLGHwBDWCBV+6+2+EuHmgg== +esquery@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.3.1.tgz#b78b5828aa8e214e29fb74c4d5b752e1c033da57" + integrity sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ== dependencies: - estraverse "^5.0.0" + estraverse "^5.1.0" esrecurse@^3.1.1: version "3.1.1" @@ -5871,6 +6333,13 @@ esrecurse@^4.1.0: dependencies: estraverse "^4.1.0" +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + estraverse@^1.9.1: version "1.9.3" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44" @@ -5886,10 +6355,10 @@ estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -estraverse@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.1.0.tgz#374309d39fd935ae500e7b92e8a6b4c720e59642" - integrity sha512-FyohXK+R0vE+y1nHLoBM7ZTyqRpqAlhdZHCWIWEviFLiGB8b04H6bQs8G+XTthacvT8VuwvteiP7RJSxMs8UEw== +estraverse@^5.1.0, estraverse@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880" + integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ== esutils@^2.0.2: version "2.0.3" @@ -6019,7 +6488,7 @@ expect@1.20.1: object-keys "^1.0.9" tmatch "^2.0.1" -express@^4.17.1: +express@^4.16.3, express@^4.17.1: version "4.17.1" resolved "https://registry.yarnpkg.com/express/-/express-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134" integrity sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g== @@ -6082,15 +6551,6 @@ extend@^3.0.0, extend@^3.0.2, extend@~3.0.0, extend@~3.0.2: resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== -external-editor@^3.0.3: - version "3.1.0" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" - integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== - dependencies: - chardet "^0.7.0" - iconv-lite "^0.4.24" - tmp "^0.0.33" - extglob@^0.3.1: version "0.3.2" resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" @@ -6147,16 +6607,16 @@ fast-json-stable-stringify@^2.0.0: resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== +fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + fast-levenshtein@~1.0.0: version "1.0.7" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-1.0.7.tgz#0178dcdee023b92905193af0959e8a7639cfdcb9" integrity sha1-AXjc3uAjuSkFGTrwlZ6KdjnP3Lk= -fast-levenshtein@~2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= - fastparse@^1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/fastparse/-/fastparse-1.1.2.tgz#91728c5a5942eced8531283c79441ee4122c35a9" @@ -6220,13 +6680,6 @@ figgy-pudding@^3.5.1: resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.2.tgz#b4eee8148abb01dcf1d1ac34367d59e12fa61d6e" integrity sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw== -figures@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" - integrity sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI= - dependencies: - escape-string-regexp "^1.0.5" - file-entry-cache@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" @@ -6265,7 +6718,7 @@ fileset@0.2.x: glob "5.x" minimatch "2.x" -filesize@^3.1.2: +filesize@^3.6.1: version "3.6.1" resolved "https://registry.yarnpkg.com/filesize/-/filesize-3.6.1.tgz#090bb3ee01b6f801a8a8be99d31710b3422bb317" integrity sha512-7KjR1vv6qnicaPMi1iiTcI85CyYwRO/PSFCu6SvqL8jN2Wjt/NIYQTFtFs7fSDCYOstUkEWIQGFUg5YZQfjlcg== @@ -6298,6 +6751,11 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" +filtrex@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/filtrex/-/filtrex-2.1.0.tgz#1b57e01e8ba18a0e57ddb9c11cef569176697cae" + integrity sha512-iP/mJEwLPmxPhIK9uK1XGAgUoKYc+lnkWkDHBcTS6XH2z7KZrTY1hz1tMzCOoTHNyYZozlcz/wXcsXPJoSUwbg== + finalhandler@1.1.2, finalhandler@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" @@ -6349,7 +6807,7 @@ find-up@^1.0.0: path-exists "^2.0.0" pinkie-promise "^2.0.0" -find-up@^2.1.0: +find-up@^2.0.0, find-up@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= @@ -6385,6 +6843,13 @@ flat-cache@^2.0.1: rimraf "2.6.3" write "1.0.3" +flat-geo-css@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/flat-geo-css/-/flat-geo-css-1.0.5.tgz#1788e3a8998ac0efb4cf5a92709b4f8c451d3224" + integrity sha512-wVCRzPOIvj+Wj24Eg2bY6vwnTUIFHsI98IVHYlZoedrdF8B1rS/rReIf5QHBtWp55cCR/1M9cJQSF0qk5kob7Q== + dependencies: + moo "0.5.1" + flat@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/flat/-/flat-4.1.0.tgz#090bec8b05e39cba309747f1d588f04dbaf98db2" @@ -6511,6 +6976,16 @@ fs-extra@3.0.1: jsonfile "^3.0.0" universalify "^0.1.0" +fs-extra@9.0.1: + version "9.0.1" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc" + integrity sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ== + dependencies: + at-least-node "^1.0.0" + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^1.0.0" + fs-extra@^2.0.0: version "2.1.2" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-2.1.2.tgz#046c70163cef9aad46b0e4a7fa467fb22d71de35" @@ -6644,6 +7119,14 @@ geojson-rbush@^1.0.1: "@turf/meta" "^4.6.0" rbush "^2.0.1" +"geostyler-geocss-parser@https://github.com/allyoucanmap/geostyler-geocss-parser/tarball/build": + version "1.0.0" + resolved "https://github.com/allyoucanmap/geostyler-geocss-parser/tarball/build#4f030d6dcc02bb6e104275647749850f011b97f8" + dependencies: + flat-geo-css "^1.0.5" + geostyler-style "^2.0.0" + lodash "^4.17.15" + geostyler-openlayers-parser@1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/geostyler-openlayers-parser/-/geostyler-openlayers-parser-1.1.4.tgz#5f6ce7d6af394aebbca741c8c438906698d35c96" @@ -6653,27 +7136,32 @@ geostyler-openlayers-parser@1.1.4: geostyler-style "^1.2.1" lodash "^4.17.15" -geostyler-sld-parser@1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/geostyler-sld-parser/-/geostyler-sld-parser-1.3.1.tgz#88d490f8e772f76534711276657b67b53d3ce1a8" - integrity sha512-Du7ygdIrOkOFRHRed0BpqEFVji9tRaDz1U12qLLYvgUniOHOa1cBXFFr2wH9v9XG4gsQVsaQ0MbiYj/9cQCbAA== +geostyler-sld-parser@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/geostyler-sld-parser/-/geostyler-sld-parser-2.0.1.tgz#fb8c8c62f2c3bfbeb7bbfb9bdf93d6cac8c9edeb" + integrity sha512-asKPAceGlY97YbptzTaEjkSc3i2wuSdB6ZKAlhhPUyohJz4fmc2Ab17sCZag7AjLOcl6pvbycCahukR3Tr/aVQ== dependencies: - geostyler-style "^1.2.1" + geostyler-style "^2.0.3" lodash "^4.17.15" - xml2js "^0.4.19" - xmldom "^0.1.27" + xml2js "^0.4.23" + xmldom "^0.2.1" geostyler-style@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/geostyler-style/-/geostyler-style-1.2.1.tgz#7a19b9b0a5692db036b858a0e0238b0484b81eef" integrity sha512-GIGOt0/C2MuaI/+gMAfz78VYQp/bdoMOd2e/cCmXZ9a1bZPYJXmy02R7Vrv4TV/Q2zKq/a08UQ72G6CV1vyE+Q== +geostyler-style@^2.0.0, geostyler-style@^2.0.3: + version "2.1.0" + resolved "https://registry.yarnpkg.com/geostyler-style/-/geostyler-style-2.1.0.tgz#fc17255513b5c4d80a304352bb6fac25ee1dc291" + integrity sha512-m8bCtckOBZrVZwZ4Vh02kFY2ttLZlSZYMsYPqcNp+/ruIBwADJZvxnsjuY+t63PMsw0s9R05yPVyjVMwtaD/sA== + get-caller-file@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w== -get-caller-file@^2.0.1: +get-caller-file@^2.0.1, get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== @@ -6683,6 +7171,15 @@ get-closest@*: resolved "https://registry.yarnpkg.com/get-closest/-/get-closest-0.0.4.tgz#269ac776d1e6022aa0fd586dd708e8a7d32269af" integrity sha1-JprHdtHmAiqg/Vht1wjop9Miaa8= +get-intrinsic@^1.0.0, get-intrinsic@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.0.1.tgz#94a9768fcbdd0595a1c9273aacf4c89d075631be" + integrity sha512-ZnWP+AmS1VUaLgTRy47+zKtjTxz+0xMpx3I52i+aalBK1QP19ggLF3Db89KJX7kjfOfP2eoa01qc++GwPgufPg== + dependencies: + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.1" + get-stdin@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-3.0.2.tgz#c1ced24b9039b38ded85bdf161e57713b6dd4abe" @@ -6899,11 +7396,18 @@ global@~4.3.0: min-document "^2.19.0" process "~0.5.1" -globals@^11.1.0, globals@^11.7.0: +globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== +globals@^12.1.0: + version "12.4.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8" + integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg== + dependencies: + type-fest "^0.8.1" + globals@^9.18.0: version "9.18.0" resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" @@ -6953,6 +7457,11 @@ graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2 resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423" integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ== +graceful-fs@^4.2.0: + version "4.2.4" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" + integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== + graceful-fs@~1.2.0: version "1.2.3" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-1.2.3.tgz#15a4806a57547cb2d2dbf27f42e89a8c3451b364" @@ -6978,6 +7487,14 @@ gulp-rename@^1.2.0: resolved "https://registry.yarnpkg.com/gulp-rename/-/gulp-rename-1.4.0.tgz#de1c718e7c4095ae861f7296ef4f3248648240bd" integrity sha512-swzbIGb/arEoFK89tPY58vg3Ok1bw+d35PfUNwWqdo7KM4jkmuGA78JiDNqR+JeZFaeeHnRg9N7aihX3YPmsyg== +gzip-size@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-5.1.1.tgz#cb9bee692f87c0612b232840a873904e4c135274" + integrity sha512-FNHi6mmoHvs1mxZAds4PpdCS6QG8B4C1krxJsMutgxl5t3+GlRTzzI3NEkifXx2pVsOvJdOGSmIgDhQ55FwdPA== + dependencies: + duplexer "^0.1.1" + pify "^4.0.1" + hammerjs@^2.0.8: version "2.0.8" resolved "https://registry.yarnpkg.com/hammerjs/-/hammerjs-2.0.8.tgz#04ef77862cff2bb79d30f7692095930222bf60f1" @@ -7078,6 +7595,11 @@ has-flag@^3.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + has-symbols@^1.0.0, has-symbols@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" @@ -7152,7 +7674,7 @@ hawk@~3.1.3: hoek "2.x.x" sntp "1.x.x" -he@1.2.0, he@1.2.x: +he@1.2.0, he@1.2.x, he@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== @@ -7226,6 +7748,11 @@ homedir-polyfill@^1.0.1: dependencies: parse-passwd "^1.0.0" +hoopy@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/hoopy/-/hoopy-0.1.4.tgz#609207d661100033a9a9402ad3dea677381c1b1d" + integrity sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ== + hosted-git-info@^2.1.4: version "2.8.8" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488" @@ -7274,7 +7801,20 @@ html-loader@0.5.1: loader-utils "^1.0.2" object-assign "^4.1.0" -html-minifier@^3.0.1, html-minifier@^3.2.3: +html-minifier-terser@^5.0.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz#922e96f1f3bb60832c2634b79884096389b1f054" + integrity sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg== + dependencies: + camel-case "^4.1.1" + clean-css "^4.2.3" + commander "^4.1.1" + he "^1.2.0" + param-case "^3.0.3" + relateurl "^0.2.7" + terser "^4.6.3" + +html-minifier@^3.0.1: version "3.5.21" resolved "https://registry.yarnpkg.com/html-minifier/-/html-minifier-3.5.21.tgz#d0040e054730e354db008463593194015212d20c" integrity sha512-LKUKwuJDhxNa3uf/LPR/KVjm/l3rBqtYeCOAekvG8F1vItxMUpueGd94i/asDDr8/1u7InxzFA5EeGjhhG5mMA== @@ -7287,22 +7827,29 @@ html-minifier@^3.0.1, html-minifier@^3.2.3: relateurl "0.2.x" uglify-js "3.4.x" -html-to-draftjs@^1.4.0: +html-to-draftjs@^1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/html-to-draftjs/-/html-to-draftjs-1.5.0.tgz#0df0eabf429deaedb63f5c859889e2c983606e86" integrity sha512-kggLXBNciKDwKf+KYsuE+V5gw4dZ7nHyGMX9m0wy7urzWjKGWyNFetmArRLvRV0VrxKN70WylFsJvMTJx02OBQ== -html-webpack-plugin@3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-3.2.0.tgz#b01abbd723acaaa7b37b6af4492ebda03d9dd37b" - integrity sha1-sBq71yOsqqeze2r0SS69oD2d03s= +"html-to-draftjs@npm:@geosolutions/html-to-draftjs@1.5.1": + version "1.5.1" + resolved "https://registry.yarnpkg.com/@geosolutions/html-to-draftjs/-/html-to-draftjs-1.5.1.tgz#f185c7aadefd562164e46afb151f47a95e8367bf" + integrity sha512-D2iInPffyJfWyt2SMB+tHhdqlHciEQ0eI/r81LBqy9PDhlzd5ikcXRhVH4EdanriewEufRt+PW/jbX6rfrXYiw== + +html-webpack-plugin@4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-4.3.0.tgz#53bf8f6d696c4637d5b656d3d9863d89ce8174fd" + integrity sha512-C0fzKN8yQoVLTelcJxZfJCE+aAvQiY2VUf3UuKrR4a9k5UMWYOtpDLsaXwATbcVCnI05hUS7L9ULQHWLZhyi3w== dependencies: - html-minifier "^3.2.3" - loader-utils "^0.2.16" - lodash "^4.17.3" - pretty-error "^2.0.2" - tapable "^1.0.0" - toposort "^1.0.0" + "@types/html-minifier-terser" "^5.0.0" + "@types/tapable" "^1.0.5" + "@types/webpack" "^4.41.8" + html-minifier-terser "^5.0.1" + loader-utils "^1.2.3" + lodash "^4.17.15" + pretty-error "^2.1.1" + tapable "^1.1.3" util.promisify "1.0.0" html2canvas@0.5.0-beta4: @@ -7406,17 +7953,12 @@ https-browserify@^1.0.0: resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM= -humanize@0.0.9: - version "0.0.9" - resolved "https://registry.yarnpkg.com/humanize/-/humanize-0.0.9.tgz#1994ffaecdfe9c441ed2bdac7452b7bb4c9e41a4" - integrity sha1-GZT/rs3+nEQe0r2sdFK3u0yeQaQ= - hyphenate-style-name@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.3.tgz#097bb7fa0b8f1a9cf0bd5c734cf95899981a9b48" integrity sha512-EcuixamT82oplpoJ2XU4pDtKGWQ7b00CD9f1ug9IaQ3p1bkHMiKCZ9ut9QDI6qsa6cpUuB+A/I+zLtdNK4n2DQ== -iconv-lite@0.4.24, iconv-lite@^0.4.15, iconv-lite@^0.4.24, iconv-lite@^0.4.5, iconv-lite@~0.4.13: +iconv-lite@0.4.24, iconv-lite@^0.4.15, iconv-lite@^0.4.5, iconv-lite@~0.4.13: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== @@ -7491,6 +8033,14 @@ import-fresh@^3.0.0: parent-module "^1.0.0" resolve-from "^4.0.0" +import-fresh@^3.2.1: + version "3.2.2" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.2.tgz#fc129c160c5d68235507f4331a6baad186bdbc3e" + integrity sha512-cTPNrlvJT6twpYy+YmKUKrTSjWFs3bjYjAhCwm+z4EOCubZxAuO+hHpRN64TqjEaYSHs7tJAE0w1CKMGmsG/lw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + import-from@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/import-from/-/import-from-2.1.0.tgz#335db7f2a7affd53aaa471d4b8021dee36b7f3b1" @@ -7575,25 +8125,6 @@ ini@^1.3.4, ini@^1.3.5, ini@~1.3.0: resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== -inquirer@^6.4.1: - version "6.5.2" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.2.tgz#ad50942375d036d327ff528c08bd5fab089928ca" - integrity sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ== - dependencies: - ansi-escapes "^3.2.0" - chalk "^2.4.2" - cli-cursor "^2.1.0" - cli-width "^2.0.0" - external-editor "^3.0.3" - figures "^2.0.0" - lodash "^4.17.12" - mute-stream "0.0.7" - run-async "^2.2.0" - rxjs "^6.4.0" - string-width "^2.1.0" - strip-ansi "^5.1.0" - through "^2.3.6" - internal-ip@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-4.3.0.tgz#845452baad9d2ca3b69c635a137acb9a0dad0907" @@ -7783,6 +8314,18 @@ is-callable@^1.0.4, is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.1.5: resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.5.tgz#f7e46b596890456db74e7f6e976cb3273d06faab" integrity sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q== +is-callable@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.2.tgz#c7c6715cd22d4ddb48d3e19970223aceabb080d9" + integrity sha512-dnMqspv5nU3LoewK2N/y7KLtxtakvTuaCsU9FU50/QDmdbHNy/4/JuRtMHqRU22o3q+W89YQndQEeCVwK+3qrA== + +is-core-module@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.2.0.tgz#97037ef3d52224d85163f5597b2b63d9afed981a" + integrity sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ== + dependencies: + has "^1.0.3" + is-data-descriptor@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" @@ -7917,6 +8460,11 @@ is-fullwidth-code-point@^2.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + is-generator-function@^1.0.6, is-generator-function@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.0.7.tgz#d2132e529bb0000a7f80794d4bdf5cd5e5813522" @@ -7970,6 +8518,11 @@ is-negated-glob@^1.0.0: resolved "https://registry.yarnpkg.com/is-negated-glob/-/is-negated-glob-1.0.0.tgz#6910bca5da8c95e784b5751b976cf5a10fee36d2" integrity sha1-aRC8pdqMleeEtXUbl2z1oQ/uNtI= +is-negative-zero@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.0.tgz#9553b121b0fac28869da9ed459e20c7543788461" + integrity sha1-lVOxIbD6wohp2p7UWeIMdUN4hGE= + is-number-object@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.4.tgz#36ac95e741cf18b283fc1ddf5e83da798e3ec197" @@ -8040,11 +8593,6 @@ is-primitive@^2.0.0: resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= -is-promise@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" - integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= - is-regex@^1.0.3, is-regex@^1.0.4, is-regex@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.5.tgz#39d589a358bf18967f726967120b8fc1aed74eae" @@ -8052,6 +8600,13 @@ is-regex@^1.0.3, is-regex@^1.0.4, is-regex@^1.0.5: dependencies: has "^1.0.3" +is-regex@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.1.tgz#c6f98aacc546f6cec5468a07b7b153ab564a57b9" + integrity sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg== + dependencies: + has-symbols "^1.0.1" + is-relative@^0.1.0: version "0.1.3" resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-0.1.3.tgz#905fee8ae86f45b3ec614bc3c15c869df0876e82" @@ -8502,7 +9057,7 @@ json5@^1.0.1: dependencies: minimist "^1.2.0" -json5@^2.1.0: +json5@^2.1.0, json5@^2.1.2: version "2.1.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43" integrity sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA== @@ -8530,6 +9085,15 @@ jsonfile@^4.0.0: optionalDependencies: graceful-fs "^4.1.6" +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== + dependencies: + universalify "^2.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + jsonify@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" @@ -8800,6 +9364,11 @@ klaw@~1.3.0: optionalDependencies: graceful-fs "^4.1.9" +klona@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.4.tgz#7bb1e3affb0cb8624547ef7e8f6708ea2e39dfc0" + integrity sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA== + lazy-cache@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" @@ -8961,13 +9530,13 @@ levenary@^1.1.1: dependencies: leven "^3.1.0" -levn@^0.3.0, levn@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" + prelude-ls "^1.2.1" + type-check "~0.4.0" levn@~0.2.5: version "0.2.5" @@ -8977,6 +9546,14 @@ levn@~0.2.5: prelude-ls "~1.1.0" type-check "~0.3.1" +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + lie@^3.0.1: version "3.3.0" resolved "https://registry.yarnpkg.com/lie/-/lie-3.3.0.tgz#dcf82dee545f46074daf200c7c1c5a08e0f40f6a" @@ -8996,7 +9573,7 @@ lineclip@^1.1.5: resolved "https://registry.yarnpkg.com/lineclip/-/lineclip-1.1.5.tgz#2bf26067d94354feabf91e42768236db5616fd13" integrity sha1-K/JgZ9lDVP6r+R5CdoI221YW/RM= -linkify-it@^2.0.0, linkify-it@^2.0.3: +linkify-it@^2.0.0, linkify-it@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-2.2.0.tgz#e3b54697e78bf915c70a38acd78fd09e0058b1cf" integrity sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw== @@ -9014,12 +9591,27 @@ load-json-file@^1.0.0: pinkie-promise "^2.0.0" strip-bom "^2.0.0" +load-json-file@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" + integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg= + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + strip-bom "^3.0.0" + +load-script@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/load-script/-/load-script-1.0.0.tgz#0491939e0bee5643ee494a7e3da3d2bac70c6ca4" + integrity sha1-BJGTngvuVkPuSUp+PaPSuscMbKQ= + loader-runner@^2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357" integrity sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw== -loader-utils@0.2.x, loader-utils@^0.2.11, loader-utils@^0.2.16, loader-utils@^0.2.7, loader-utils@~0.2.2: +loader-utils@0.2.x, loader-utils@^0.2.11, loader-utils@^0.2.7, loader-utils@~0.2.2: version "0.2.17" resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348" integrity sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g= @@ -9047,6 +9639,15 @@ loader-utils@^1.0.0, loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.2 emojis-list "^3.0.0" json5 "^1.0.1" +loader-utils@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.0.tgz#e4cace5b816d425a166b5f097e10cd12b36064b0" + integrity sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^2.1.2" + locate-path@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" @@ -9144,11 +9745,26 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@4.17.15, lodash@>4.17.4, lodash@^4.0.0, lodash@^4.0.1, lodash@^4.16.4, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.6.1, lodash@~4.17.4: +lodash@4.17.11: + version "4.17.11" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" + integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== + +lodash@4.17.19: + version "4.17.19" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" + integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== + +lodash@>4.17.4, lodash@^4.0.0, lodash@^4.0.1, lodash@^4.16.4, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.6.1, lodash@~4.17.4: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== +lodash@^4.17.19, lodash@^4.17.20: + version "4.17.20" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" + integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== + lodash@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/lodash/-/lodash-1.0.2.tgz#8f57560c83b59fc270bd3d561b690043430e2551" @@ -9189,6 +9805,11 @@ loglevel@*, loglevel@^1.6.3, loglevel@^1.6.6: resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.8.tgz#8a25fb75d092230ecd4457270d80b54e28011171" integrity sha512-bsU7+gc9AJ2SqpzxwU3+1fedl8zAntbtC5XYlt3s2j1hJcn2PsXSmgN8TaLG/J1/2mod4+cE/3vNL70/c1RNCA== +loglevel@1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.1.tgz#e0fc95133b6ef276cdc8887cdaf24aa6f156f8fa" + integrity sha1-4PyVEztu8nbNyIh82vJKpvFW+Po= + longest@^1.0.0, longest@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" @@ -9214,6 +9835,13 @@ lower-case@^1.1.1: resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac" integrity sha1-miyr0bno4K6ZOkv31YdcOcQujqw= +lower-case@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.1.tgz#39eeb36e396115cc05e29422eaea9e692c9408c7" + integrity sha512-LiWgfDLLb1dwbFQZsSglpRj+1ctGnayXz3Uv0/WO8n558JycT5fg6zkNcnW0G68Nn0aEldTFeEfmjCfmqry/rQ== + dependencies: + tslib "^1.10.0" + lpad-align@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/lpad-align/-/lpad-align-1.1.2.tgz#21f600ac1c3095c3c6e497ee67271ee08481fe9e" @@ -9291,6 +9919,178 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" +"mapstore@file:MapStore2": + version "0.1.0" + dependencies: + "@boundlessgeo/jsonix" "2.4.3" + "@carnesen/redux-add-action-listener-enhancer" "0.0.1" + "@geosolutions/proj4" "2.4.7" + "@geosolutions/react-joyride" "1.10.2" + "@geosolutions/wkt-parser" "1.2.2" + "@mapbox/geojsonhint" "2.0.1" + "@mapbox/togeojson" "0.16.0" + "@terrestris/base-util" "0.1.4" + "@terrestris/ol-util" "3.0.0" + "@turf/bbox" "4.1.0" + "@turf/bbox-polygon" "5.1.5" + "@turf/boolean-contains" "5.1.5" + "@turf/boolean-overlap" "5.1.5" + "@turf/center" "5.1.5" + "@turf/circle" "6.0.1" + "@turf/great-circle" "5.1.5" + "@turf/inside" "4.1.0" + "@turf/line-intersect" "4.1.0" + "@turf/point-on-surface" "4.1.0" + "@turf/polygon-to-linestring" "4.1.0" + ag-grid-community "20.2.0" + ag-grid-react "20.2.0" + axios "0.18.1" + b64-to-blob "1.2.19" + babel-polyfill "6.8.0" + babel-standalone "6.7.7" + bootstrap "3.3.5" + canvas-to-blob "0.0.0" + canvg-browser "1.0.0" + chroma-js "1.3.7" + classnames "2.2.5" + codemirror "5.18.2" + colorbrewer "1.0.0" + connected-react-router "6.3.2" + create-react-class "15.6.3" + css-tree "1.0.0-alpha24" + draft-js "0.11.0" + draft-js-inline-toolbar-plugin "3.0.0" + draft-js-plugins-editor "2.1.1" + draft-js-side-toolbar-plugin "3.0.1" + draftjs-to-html "0.8.4" + element-closest "2.0.2" + es6-object-assign "1.1.0" + es6-promise "2.3.0" + eventlistener "0.0.1" + file-saver "1.3.3" + filtrex "2.1.0" + fs-extra "3.0.1" + geostyler-geocss-parser "https://github.com/allyoucanmap/geostyler-geocss-parser/tarball/build" + geostyler-openlayers-parser "1.1.4" + geostyler-sld-parser "2.0.1" + history "4.6.1" + html-to-draftjs "npm:@geosolutions/html-to-draftjs@1.5.1" + html2canvas "0.5.0-beta4" + immutable "4.0.0-rc.12" + intersection-observer "0.7.0" + intl "1.2.2" + is-equal "1.5.5" + ismobilejs "0.5.0" + istanbul-instrumenter-loader "3.0.1" + json-2-csv "2.1.2" + json-loader "0.5.7" + jsonlint-mod "1.7.5" + jszip "3.1.5" + keymirror "0.1.1" + leaflet "1.3.1" + leaflet-draw "1.0.2" + leaflet-extra-markers "1.0.6" + leaflet-minimap "3.6.0" + leaflet-plugins "3.0.2" + leaflet-simple-graticule "1.0.2" + leaflet.gridlayer.googlemutant "0.6.4" + leaflet.locatecontrol "0.62.0" + leaflet.nontiledlayer "1.0.7" + lodash "4.17.19" + lrucache "1.0.3" + moment "2.21.0" + node-geo-distance "1.2.0" + object-assign "4.1.1" + object-fit-images "3.2.4" + ogc-schemas "2.6.1" + ol "5.3.0" + pdfviewer "0.3.2" + plotly.js-cartesian-dist "1.57.1" + prop-types "15.7.2" + qrcode.react "0.9.3" + query-string "6.9.0" + react "16.10.1" + react-addons-css-transition-group "15.6.2" + react-addons-shallow-compare "15.6.2" + react-bootstrap "0.31.0" + react-checkbox-tree "1.5.1" + react-codemirror2 "4.0.0" + react-color "2.17.0" + react-confirm-button "0.0.2" + react-container-dimensions "1.3.2" + react-contenteditable "3.3.2" + react-copy-to-clipboard "5.0.0" + react-data-grid "5.0.4" + react-data-grid-addons "5.0.4" + react-dnd "2.6.0" + react-dnd-html5-backend "2.6.0" + react-dnd-test-backend "2.6.0" + react-dock "0.2.4" + react-dom "16.10.1" + react-draft-wysiwyg "npm:@geosolutions/react-draft-wysiwyg@1.14.8" + react-draggable "2.2.6" + react-dropzone "3.13.1" + react-error-boundary "1.2.5" + react-grid-layout "0.16.6" + react-image-lightbox "4.2.2" + react-input-autosize "1.1.4" + react-intersection-observer "8.24.1" + react-intl "2.3.0" + react-notification-system "0.2.14" + react-nouislider "2.0.1" + react-numeric-input "2.2.3" + react-overlays "1.2.0" + react-pdf "4.0.5" + react-player "1.15.3" + react-plotly.js "2.5.0" + react-quill "1.1.0" + react-redux "6.0.0" + react-resize-detector "4.2.1" + react-responsive "1.3.0" + react-router "4.1.1" + react-router-dom "4.2.2" + react-scroll-up "1.3.0" + react-select "1.3.0" + react-selectize "3.0.1" + react-share "1.15.1" + react-side-effect "1.1.0" + react-sidebar "2.3.2" + react-spinkit "2.1.2" + react-swipeable "5.5.1" + react-swipeable-views "0.12.2" + react-textfit "1.1.0" + react-twitter-widgets "1.3.0" + react-widgets "3.5.0" + recharts "0.22.4" + recompose "0.24.0" + redux "3.6.0" + redux-logger "3.0.6" + redux-observable "0.19.0" + redux-thunk "0.1.0" + redux-undo "0.5.0" + reselect "4.0.0" + resize-observer-polyfill "1.5.0" + rxjs "5.1.1" + screenfull "4.0.0" + shpjs "3.4.2" + stickybits "3.6.6" + tinycolor2 "1.4.1" + turf-bbox "3.0.10" + turf-buffer "3.0.10" + turf-intersect "3.0.10" + turf-point "2.0.1" + turf-point-on-surface "3.0.10" + turf-union "3.0.10" + url "0.11.0" + uuid "3.0.1" + vis "4.21.0" + w3c-schemas "1.3.1" + webfontloader "1.6.28" + wellknown "0.5.0" + xml2js "0.4.17" + xmldom "0.3.0" + xpath "0.0.27" + markdown-it-anchor@^5.2.7: version "5.2.7" resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-5.2.7.tgz#ec740f6bd03258a582cd0c65b9644b9f9852e5a3" @@ -9512,11 +10312,6 @@ mime@^2.3.1, mime@^2.4.4: resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.4.tgz#bd7b91135fc6b01cde3e9bae33d659b63d8857e5" integrity sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA== -mimic-fn@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" - integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== - mimic-fn@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" @@ -9650,6 +10445,11 @@ monotone-convex-hull-2d@^1.0.1: dependencies: robust-orientation "^1.1.3" +moo@0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/moo/-/moo-0.5.1.tgz#7aae7f384b9b09f620b6abf6f74ebbcd1b65dbc4" + integrity sha512-I1mnb5xn4fO80BH9BLcF0yLypy2UKl+Cb01Fu0hJRkJjlCRtxZMWkTdAtDd5ZqCOxtCkhmRwyI57vWT+1iZ67w== + move-concurrently@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92" @@ -9690,11 +10490,6 @@ multicast-dns@^6.0.1: dns-packet "^1.3.1" thunky "^1.0.2" -mute-stream@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" - integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= - nan@^2.1.0, nan@^2.12.1: version "2.14.0" resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c" @@ -9754,6 +10549,11 @@ neo-async@^2.5.0, neo-async@^2.6.0, neo-async@^2.6.1: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw== +neo-async@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + nested-property@^0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/nested-property/-/nested-property-0.0.7.tgz#ff222f233ca8793c6828b4117091bea597130f4f" @@ -9776,6 +10576,14 @@ no-case@^2.2.0: dependencies: lower-case "^1.1.1" +no-case@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.3.tgz#c21b434c1ffe48b39087e86cfb4d2582e9df18f8" + integrity sha512-ehY/mVQCf9BL0gKfsJBvFJen+1V//U+0HQMPrWct40ixE4jnv0bfvxDbWtAHL9EcaPEOJHVVYKoQn1TlZUB8Tw== + dependencies: + lower-case "^2.0.1" + tslib "^1.10.0" + node-ensure@^0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/node-ensure/-/node-ensure-0.0.0.tgz#ecae764150de99861ec5c810fd5d096b183932a7" @@ -10016,6 +10824,11 @@ object-inspect@^1.1.0, object-inspect@^1.7.0: resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67" integrity sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw== +object-inspect@^1.8.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.9.0.tgz#c90521d74e1127b67266ded3394ad6116986533a" + integrity sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw== + object-is@^1.0.1: version "1.1.2" resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.2.tgz#c5d2e87ff9e119f78b7a088441519e2eec1573b6" @@ -10046,6 +10859,16 @@ object.assign@4.1.0, object.assign@^4.0.1, object.assign@^4.0.4, object.assign@^ has-symbols "^1.0.0" object-keys "^1.0.11" +object.assign@^4.1.1: + version "4.1.2" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940" + integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + has-symbols "^1.0.1" + object-keys "^1.1.1" + object.entries@^1.0.4, object.entries@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.1.tgz#ee1cf04153de02bb093fec33683900f57ce5399b" @@ -10079,6 +10902,16 @@ object.pick@^1.3.0: dependencies: isobject "^3.0.1" +object.values@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.2.tgz#7a2015e06fcb0f546bd652486ce8583a4731c731" + integrity sha512-MYC0jvJopr8EK6dPBiO8Nb9mvjdypOachO5REGk6MXzujbBrAisKo3HmdEI6kZDL6fC31Mwee/5YbtMebixeag== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + es-abstract "^1.18.0-next.1" + has "^1.0.3" + obuf@^1.0.0, obuf@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" @@ -10125,12 +10958,10 @@ onetime@^1.0.0: resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" integrity sha1-ofeDj4MUxRbwXs78vEzP4EtO14k= -onetime@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" - integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= - dependencies: - mimic-fn "^1.0.0" +opener@^1.5.1: + version "1.5.2" + resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" + integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A== opn@^5.5.0: version "5.5.0" @@ -10159,7 +10990,7 @@ optionator@^0.5.0: type-check "~0.3.1" wordwrap "~0.0.2" -optionator@^0.8.1, optionator@^0.8.2: +optionator@^0.8.1: version "0.8.3" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== @@ -10171,6 +11002,18 @@ optionator@^0.8.1, optionator@^0.8.2: type-check "~0.3.2" word-wrap "~1.2.3" +optionator@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" + integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.3" + ordered-read-streams@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-0.1.0.tgz#fd565a9af8eb4473ba69b6ed8a34352cb552f126" @@ -10320,6 +11163,14 @@ param-case@2.1.x: dependencies: no-case "^2.2.0" +param-case@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/param-case/-/param-case-3.0.3.tgz#4be41f8399eff621c56eebb829a5e451d9801238" + integrity sha512-VWBVyimc1+QrzappRs7waeN2YmoZFCGXWASRYX1/rGHtXqEcrGEIDm+jqIwFa2fRXNgQEwrxaYuIrX0WcAguTA== + dependencies: + dot-case "^3.0.3" + tslib "^1.10.0" + parchment@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/parchment/-/parchment-1.1.4.tgz#aeded7ab938fe921d4c34bc339ce1168bc2ffde5" @@ -10411,6 +11262,14 @@ parseurl@~1.3.2, parseurl@~1.3.3: resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== +pascal-case@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/pascal-case/-/pascal-case-3.1.1.tgz#5ac1975133ed619281e88920973d2cd1f279de5f" + integrity sha512-XIeHKqIrsquVTQL2crjq3NfJUxmdLasn3TYOU0VBM+UX2a6ztAWBlJQBePLGY7VHW8+2dRadeIPK5+KImwTxQA== + dependencies: + no-case "^3.0.3" + tslib "^1.10.0" + pascalcase@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" @@ -10453,6 +11312,11 @@ path-key@^2.0.0, path-key@^2.0.1: resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= +path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + path-parse@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" @@ -10479,6 +11343,13 @@ path-type@^1.0.0: pify "^2.0.0" pinkie-promise "^2.0.0" +path-type@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" + integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM= + dependencies: + pify "^2.0.0" + path-type@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" @@ -10533,7 +11404,7 @@ performance-now@^2.1.0: resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= -picomatch@^2.0.4, picomatch@^2.0.7: +picomatch@^2.0.4, picomatch@^2.0.7, picomatch@^2.2.1: version "2.2.2" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== @@ -10577,6 +11448,13 @@ pkg-dir@^1.0.0: dependencies: find-up "^1.0.0" +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s= + dependencies: + find-up "^2.1.0" + pkg-dir@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" @@ -10596,6 +11474,11 @@ platform@^1.3.4: resolved "https://registry.yarnpkg.com/platform/-/platform-1.3.5.tgz#fb6958c696e07e2918d2eeda0f0bc9448d733444" integrity sha512-TuvHS8AOIZNAlE77WUDiR4rySV/VMptyMfcfeoMgs4P8apaZM3JrnbzBiixKUv+XR6i+BXrQh8WAnjaSPFO65Q== +plotly.js-cartesian-dist@1.57.1: + version "1.57.1" + resolved "https://registry.yarnpkg.com/plotly.js-cartesian-dist/-/plotly.js-cartesian-dist-1.57.1.tgz#e2b7f0751ddf6fe5f4ff3d97ac372434d9af0604" + integrity sha512-awInlnKSEiUheDolUZb5LWdlmg68Z6iJ9WuEh9bWCsRTZ8Oi+WJhrevR6B0chWmGAZqg3vIIDEiDDLoVz9xmLQ== + plur@^2.0.0: version "2.1.2" resolved "https://registry.yarnpkg.com/plur/-/plur-2.1.2.tgz#7482452c1a0f508e3e344eaec312c91c29dc655a" @@ -10939,7 +11822,7 @@ prelude-extension@^0.1.0: dependencies: prelude-ls "^1.1.2" -prelude-ls@^1.1.1, prelude-ls@^1.1.2: +prelude-ls@^1.1.1, prelude-ls@^1.1.2, prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== @@ -10959,13 +11842,13 @@ preserve@^0.2.0: resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= -pretty-error@^2.0.2: - version "2.1.1" - resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.1.tgz#5f4f87c8f91e5ae3f3ba87ab4cf5e03b1a17f1a3" - integrity sha1-X0+HyPkeWuPzuoerTPXgOxoX8aM= +pretty-error@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.2.tgz#be89f82d81b1c86ec8fdfbc385045882727f93b6" + integrity sha512-EY5oDzmsX5wvuynAByrmY0P0hcp+QpnAKbJng2A2MPjVKXCxrDSUkzghVJ4ZGPIv+JC4gX8fPUWscC0RtjsWGw== dependencies: - renderkid "^2.0.1" - utila "~0.4" + lodash "^4.17.20" + renderkid "^2.0.4" private@^0.1.6, private@^0.1.8, private@~0.1.5: version "0.1.8" @@ -11011,6 +11894,14 @@ progress@^2.0.0: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== +proj4@2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/proj4/-/proj4-2.5.0.tgz#e3a88ce7e7a07221aaccbc6760dd2eafee745f03" + integrity sha512-XZTRT7OPdLzgvtTqL8DG2cEj8lYdovztOwiwpwRSYayOty5Ipf3H68dh/fiL+HKDEyetmQSMhkkMGiJoyziz3w== + dependencies: + mgrs "1.0.0" + wkt-parser "^1.2.0" + proj4@^2.1.4, proj4@^2.5.0: version "2.6.1" resolved "https://registry.yarnpkg.com/proj4/-/proj4-2.6.1.tgz#c07a32cd4a38a82515aae3b54363669896641dd6" @@ -11186,6 +12077,15 @@ qs@~6.5.2: resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== +query-string@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-5.1.1.tgz#a78c012b71c17e05f2e3fa2319dd330682efb3cb" + integrity sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw== + dependencies: + decode-uri-component "^0.2.0" + object-assign "^4.1.0" + strict-uri-encode "^1.0.0" + query-string@6.9.0: version "6.9.0" resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.9.0.tgz#1c3b727c370cf00f177c99f328fda2108f8fa3dd" @@ -11222,6 +12122,11 @@ querystring@0.2.0: resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= +querystringify@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" + integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== + querystringify@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.1.1.tgz#60e5a5fd64a7f8bfa4d2ab2ed6fdf4c85bad154e" @@ -11407,10 +12312,10 @@ react-bootstrap@^0.30.10: uncontrollable "^4.0.1" warning "^3.0.0" -react-checkbox-tree@^1.5.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/react-checkbox-tree/-/react-checkbox-tree-1.6.0.tgz#6c471a610f1598c5f2e2c7b50bf11036159f5285" - integrity sha512-Hi5FeRCtyxClxZEiLvmCT5e/7w8iz0ppkoQyIEayZ35Nscdo4fbwow57EIs+MW0f7L+qnAHGTDmpfHnhxkljXg== +react-checkbox-tree@1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/react-checkbox-tree/-/react-checkbox-tree-1.5.1.tgz#8f08ee97a41dae208f48e36408eec4dec024e2c2" + integrity sha512-fBLMVpd7/YXavzIBz+3OMS5eo2oZLW9PlTY4M1zrJ3TdZRzgILicSzRj6V5VKKm80y8uQXn60skn98pwn3i3Ig== dependencies: classnames "^2.2.5" lodash "^4.17.10" @@ -11531,16 +12436,16 @@ react-dom@16.10.1: prop-types "^15.6.2" scheduler "^0.16.1" -react-draft-wysiwyg@1.13.2: - version "1.13.2" - resolved "https://registry.yarnpkg.com/react-draft-wysiwyg/-/react-draft-wysiwyg-1.13.2.tgz#1fc4130d057f0e731386bf831acca71108141899" - integrity sha512-qENNISR+bxO6G/ThTD6cai+LGrzkiGt6Fx9mqecJGPmyTIYVE5odsO7yEQVNBpZhgr5TvHAvwm3IoamcuFanDw== +"react-draft-wysiwyg@npm:@geosolutions/react-draft-wysiwyg@1.14.8": + version "1.14.8" + resolved "https://registry.yarnpkg.com/@geosolutions/react-draft-wysiwyg/-/react-draft-wysiwyg-1.14.8.tgz#7abaab743f0d73f2f2f1800397d3a3f4ee0628eb" + integrity sha512-a3p/gOPY6N/xLvHBNIbwGzBsyAkpV7CHyVHQj6D1vTZ/6dNogrkE3xAtdXX9Fs/l8jIkz8aIyiSUpOc9LTDUjQ== dependencies: - classnames "^2.2.5" - draftjs-utils "^0.9.3" - html-to-draftjs "^1.4.0" - linkify-it "^2.0.3" - prop-types "^15.6.0" + classnames "^2.2.6" + draftjs-utils "^0.10.2" + html-to-draftjs "^1.5.0" + linkify-it "^2.2.0" + prop-types "^15.7.2" react-draggable@2.2.6: version "2.2.6" @@ -11598,11 +12503,6 @@ react-grid-layout@0.16.6: react-draggable "3.x" react-resizable "1.x" -react-horizontal-scrolling-menu@0.7.3: - version "0.7.3" - resolved "https://registry.yarnpkg.com/react-horizontal-scrolling-menu/-/react-horizontal-scrolling-menu-0.7.3.tgz#78f05d0cbcf50dad5bc18e0eb0db6b3162ef5944" - integrity sha512-U+RkMg1LRtvECjIU6x/krvPPjiqqAHSHynE/cYONYWMB66a0RmD5qQuS1I0H44Os5ox6b64l3SFBgCYprcVDOg== - react-image-lightbox@4.2.2: version "4.2.2" resolved "https://registry.yarnpkg.com/react-image-lightbox/-/react-image-lightbox-4.2.2.tgz#cf558bc7e2ac25098f3909864d500383498b2d9c" @@ -11695,6 +12595,11 @@ react-nouislider@2.0.1: dependencies: nouislider "^9.2.0" +react-numeric-input@2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/react-numeric-input/-/react-numeric-input-2.2.3.tgz#4bf5918c3eafed851a80df1eb992d941002bb552" + integrity sha1-S/WRjD6v7YUagN8euZLZQQArtVI= + react-overlays@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/react-overlays/-/react-overlays-1.2.0.tgz#205368eeb0a5fb0b7f9b717fa7a12d518500abdb" @@ -11742,6 +12647,22 @@ react-pdf@4.0.5: pdfjs-dist "2.1.266" prop-types "^15.6.2" +react-player@1.15.3: + version "1.15.3" + resolved "https://registry.yarnpkg.com/react-player/-/react-player-1.15.3.tgz#d00cf145f9c86184cb0a071a1fbf8ecb7b68987f" + integrity sha512-8fc0R1AipFIy7l4lKgnIg+gMU2IY32ZMxxBlINjXAq/YnN3HUP3hOaE+aQ0lQv+a1/MMZgbekWD86ZGDO7kB8g== + dependencies: + deepmerge "^4.0.0" + load-script "^1.0.0" + prop-types "^15.7.2" + +react-plotly.js@2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/react-plotly.js/-/react-plotly.js-2.5.0.tgz#779e489bbbd05deb373a63e918454587236d7c7f" + integrity sha512-nzir3uf+tFO1YXVUH5lFfD2plbDuZJXKrCO88KmRVnha2/zEhZBmZO8yS6GcRnLmSrhJkfmj6GTqWWvrJDBCBQ== + dependencies: + prop-types "^15.7.2" + react-popper@^1.3.2: version "1.3.7" resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-1.3.7.tgz#f6a3471362ef1f0d10a4963673789de1baca2324" @@ -12063,6 +12984,14 @@ read-pkg-up@^1.0.1: find-up "^1.0.0" read-pkg "^1.0.0" +read-pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" + integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4= + dependencies: + find-up "^2.0.0" + read-pkg "^2.0.0" + read-pkg@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" @@ -12072,6 +13001,15 @@ read-pkg@^1.0.0: normalize-package-data "^2.3.2" path-type "^1.0.0" +read-pkg@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" + integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg= + dependencies: + load-json-file "^2.0.0" + normalize-package-data "^2.3.2" + path-type "^2.0.0" + "readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.4, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.0, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@^2.3.6, readable-stream@~2.3.6: version "2.3.7" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" @@ -12142,6 +13080,13 @@ readdirp@~3.3.0: dependencies: picomatch "^2.0.7" +readdirp@~3.5.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e" + integrity sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ== + dependencies: + picomatch "^2.2.1" + readline-promise@1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/readline-promise/-/readline-promise-1.0.4.tgz#c22190438642da6fb99462cfbbfb6232b4edb9bd" @@ -12375,10 +13320,10 @@ regexp.prototype.flags@^1.2.0: define-properties "^1.1.3" es-abstract "^1.17.0-next.1" -regexpp@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" - integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== +regexpp@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2" + integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== regexpu-core@^4.7.0: version "4.7.0" @@ -12404,7 +13349,7 @@ regjsparser@^0.6.4: dependencies: jsesc "~0.5.0" -relateurl@0.2.x: +relateurl@0.2.x, relateurl@^0.2.7: version "0.2.7" resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" integrity sha1-VNvzd+UUQKypCkzSdGANP/LYiKk= @@ -12431,16 +13376,16 @@ remove-trailing-separator@^1.0.1: resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= -renderkid@^2.0.1: - version "2.0.3" - resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-2.0.3.tgz#380179c2ff5ae1365c522bf2fcfcff01c5b74149" - integrity sha512-z8CLQp7EZBPCwCnncgf9C4XAi3WR0dv+uWu/PjIyhhAb5d6IJ/QZqlHFprHeKT+59//V6BNUsLbvN8+2LarxGA== +renderkid@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-2.0.4.tgz#d325e532afb28d3f8796ffee306be8ffd6fc864c" + integrity sha512-K2eXrSOJdq+HuKzlcjOlGoOarUu5SDguDEhE7+Ah4zuOWL40j8A/oHvLlLob9PSTNvVnBd+/q0Er1QfpEuem5g== dependencies: css-select "^1.1.0" dom-converter "^0.2" htmlparser2 "^3.3.0" + lodash "^4.17.20" strip-ansi "^3.0.0" - utila "^0.4.0" repeat-element@^1.1.2: version "1.1.3" @@ -12638,13 +13583,13 @@ resolve@^1.10.0, resolve@^1.12.0, resolve@^1.3.2, resolve@^1.3.3: dependencies: path-parse "^1.0.6" -restore-cursor@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" - integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= +resolve@^1.13.1: + version "1.19.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.19.0.tgz#1af5bf630409734a067cae29318aac7fa29a267c" + integrity sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== dependencies: - onetime "^2.0.0" - signal-exit "^3.0.2" + is-core-module "^2.1.0" + path-parse "^1.0.6" ret@~0.1.10: version "0.1.15" @@ -12730,13 +13675,6 @@ robust-sum@^1.0.0: resolved "https://registry.yarnpkg.com/robust-sum/-/robust-sum-1.0.0.tgz#16646e525292b4d25d82757a286955e0bbfa53d9" integrity sha1-FmRuUlKStNJdgnV6KGlV4Lv6U9k= -run-async@^2.2.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.0.tgz#e59054a5b86876cfae07f431d18cbaddc594f1e8" - integrity sha512-xJTbh/d7Lm7SBhc1tNvTpeCHaEzoyxPrqNlvSdMfBTYwaY++UJFyXUOxAtsRUXjlqOfj8luNaR9vjCh4KeV+pg== - dependencies: - is-promise "^2.1.0" - run-queue@^1.0.0, run-queue@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/run-queue/-/run-queue-1.0.3.tgz#e848396f057d223f24386924618e25694161ec47" @@ -12751,13 +13689,6 @@ rxjs@5.1.1: dependencies: symbol-observable "^1.0.1" -rxjs@^6.4.0: - version "6.5.5" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.5.tgz#c5c884e3094c8cfee31bf27eb87e54ccfc87f9ec" - integrity sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ== - dependencies: - tslib "^1.9.0" - safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -12780,6 +13711,24 @@ safe-regex@^1.1.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== +sass-loader@10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-10.1.0.tgz#1727fcc0c32ab3eb197cda61d78adf4e9174a4b3" + integrity sha512-ZCKAlczLBbFd3aGAhowpYEy69Te3Z68cg8bnHHl6WnSCvnKpbM6pQrz957HWMa8LKVuhnD9uMplmMAHwGQtHeg== + dependencies: + klona "^2.0.4" + loader-utils "^2.0.0" + neo-async "^2.6.2" + schema-utils "^3.0.0" + semver "^7.3.2" + +sass@1.29.0: + version "1.29.0" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.29.0.tgz#ec4e1842c146d8ea9258c28c141b8c2b7c6ab7f1" + integrity sha512-ZpwAUFgnvAUCdkjwPREny+17BpUj8nh5Yr6zKPGtLNTLrmtoRYIjm7njP24COhjJldjwW1dcv52Lpf4tNZVVRA== + dependencies: + chokidar ">=2.0.0 <4.0.0" + sax@>=0.6.0, sax@^1.1.5, sax@^1.2.1, sax@~1.2.1: version "1.2.4" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" @@ -12817,6 +13766,15 @@ schema-utils@^1.0.0: ajv-errors "^1.0.0" ajv-keywords "^3.1.0" +schema-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.0.0.tgz#67502f6aa2b66a2d4032b4279a2944978a0913ef" + integrity sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA== + dependencies: + "@types/json-schema" "^7.0.6" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + screenfull@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/screenfull/-/screenfull-4.0.0.tgz#86f3c26a2e516c8143884d8af16d07f0cb653394" @@ -12868,11 +13826,16 @@ semver@7.0.0: resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== -semver@^6.0.0, semver@^6.1.2, semver@^6.3.0: +semver@^6.0.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== +semver@^7.2.1, semver@^7.3.2: + version "7.3.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" + integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== + semver@~5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" @@ -12994,11 +13957,23 @@ shebang-command@^1.2.0: dependencies: shebang-regex "^1.0.0" +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + shebang-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + shpjs@3.4.2: version "3.4.2" resolved "https://registry.yarnpkg.com/shpjs/-/shpjs-3.4.2.tgz#4d9c368725356d13d0526f8d1c85f8853ad5aac5" @@ -13010,7 +13985,7 @@ shpjs@3.4.2: parsedbf "^1.0.0" proj4 "^2.1.4" -shpjs@^3.4.3: +shpjs@3.4.3, shpjs@^3.4.3: version "3.4.3" resolved "https://registry.yarnpkg.com/shpjs/-/shpjs-3.4.3.tgz#f2c95d41ff193cd722ea21bf4cf5404548ff9c4e" integrity sha512-NZM75+SLgPt9dK91Z92QK+fVd2OR6zswAmkTrkHRc4mnONbAWGo38I+AxCYsKgCNfqF5cZUi2KfO7r2TZ+tHdw== @@ -13026,15 +14001,19 @@ sigmund@~1.0.0: resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590" integrity sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA= -signal-exit@^3.0.0, signal-exit@^3.0.2: +signal-exit@^3.0.0: version "3.0.3" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== -simple-git@1.33.1: - version "1.33.1" - resolved "https://registry.yarnpkg.com/simple-git/-/simple-git-1.33.1.tgz#7d4c554d7e7fb6bd68b0461f0f3b68188cc4e42b" - integrity sha1-fUxVTX5/tr1osEYfDztoGIzE5Cs= +simple-git@2.20.1: + version "2.20.1" + resolved "https://registry.yarnpkg.com/simple-git/-/simple-git-2.20.1.tgz#bab3f4d083ed6e1655a7c62ab8e8920eecae86f6" + integrity sha512-aa9s2ZLjXlHCVGbDXQLInMLvLkxKEclqMU9X5HMXi3tLWLxbWObz1UgtyZha6ocHarQtFp0OjQW9KHVR1g6wbA== + dependencies: + "@kwsites/file-exists" "^1.1.1" + "@kwsites/promise-deferred" "^1.1.1" + debug "^4.1.1" skmeans@0.9.7: version "0.9.7" @@ -13416,7 +14395,7 @@ string-width@^1.0.0, string-width@^1.0.1, string-width@^1.0.2: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" -"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== @@ -13433,6 +14412,15 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" + integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + string.fromcodepoint@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/string.fromcodepoint/-/string.fromcodepoint-0.2.1.tgz#8d978333c0bc92538f50f383e4888f3e5619d653" @@ -13451,6 +14439,14 @@ string.prototype.trimend@^1.0.0: define-properties "^1.1.3" es-abstract "^1.17.5" +string.prototype.trimend@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.3.tgz#a22bd53cca5c7cf44d7c9d5c732118873d6cd18b" + integrity sha512-ayH0pB+uf0U28CtjlLvL7NaohvR1amUvVZk+y3DYb0Ey2PUV5zPkkKy9+U1ndVEIXO8hNg18eIv9Jntbii+dKw== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + string.prototype.trimleft@^2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz#4408aa2e5d6ddd0c9a80739b087fbc067c03b3cc" @@ -13477,6 +14473,14 @@ string.prototype.trimstart@^1.0.0: define-properties "^1.1.3" es-abstract "^1.17.5" +string.prototype.trimstart@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.3.tgz#9b4cb590e123bb36564401d59824298de50fd5aa" + integrity sha512-oBIBUy5lea5tt0ovtOFiEQaBkoBBkyJhZXzJYrSmDo5IUUqbOPvVezuRs/agBIdZ2p2Eo1FD6bD9USyBLfl3xg== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + string_decoder@^1.0.0, string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -13529,6 +14533,13 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" +strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== + dependencies: + ansi-regex "^5.0.0" + strip-ansi@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.1.1.tgz#39e8a98d044d150660abe4a6808acf70bb7bc991" @@ -13549,6 +14560,11 @@ strip-bom@^2.0.0: dependencies: is-utf8 "^0.2.0" +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + strip-dirs@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/strip-dirs/-/strip-dirs-0.1.1.tgz#5524b3a50231e015d0814ec42b89a76427df62e8" @@ -13594,11 +14610,16 @@ strip-json-comments@2.0.1, strip-json-comments@^2.0.1, strip-json-comments@~2.0. resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= -strip-json-comments@^3.0.1, strip-json-comments@^3.1.0: +strip-json-comments@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.0.tgz#7638d31422129ecf4457440009fba03f9f9ac180" integrity sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w== +strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + style-loader@0.12.4: version "0.12.4" resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.12.4.tgz#ae7d0665dc4dc653daa2fe97bb90914bc1d22d9b" @@ -13658,6 +14679,13 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + svg-pathdata@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/svg-pathdata/-/svg-pathdata-1.0.4.tgz#7a681342aac7effd8d52afba7999910c9da3b959" @@ -13794,6 +14822,15 @@ terser@^4.1.2: source-map "~0.6.1" source-map-support "~0.5.12" +terser@^4.6.3: + version "4.8.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-4.8.0.tgz#63056343d7c70bb29f3af665865a46fe03a0df17" + integrity sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw== + dependencies: + commander "^2.20.0" + source-map "~0.6.1" + source-map-support "~0.5.12" + tether@^1.1.1: version "1.4.7" resolved "https://registry.yarnpkg.com/tether/-/tether-1.4.7.tgz#d56a818590d8fe72e387f77a67f93ab96d8e1fb2" @@ -13833,7 +14870,7 @@ through2@^2.0.0, through2@^2.0.3, through2@~2.0.0: readable-stream "~2.3.6" xtend "~4.0.1" -through@^2.3.6, through@~2.3.4, through@~2.3.6: +through@~2.3.4, through@~2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= @@ -13882,7 +14919,7 @@ tmp@0.0.31: dependencies: os-tmpdir "~1.0.1" -tmp@0.0.33, tmp@0.0.x, tmp@^0.0.33: +tmp@0.0.33, tmp@0.0.x: version "0.0.33" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== @@ -13985,11 +15022,6 @@ topojson-server@3.x: dependencies: commander "2" -toposort@^1.0.0: - version "1.0.7" - resolved "https://registry.yarnpkg.com/toposort/-/toposort-1.0.7.tgz#2e68442d9f64ec720b8cc89e6443ac6caa950029" - integrity sha1-LmhELZ9k7HILjMieZEOsbKqVACk= - tough-cookie@^2.3.2, tough-cookie@~2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" @@ -14025,6 +15057,16 @@ trim@0.0.1: resolved "https://registry.yarnpkg.com/trim/-/trim-0.0.1.tgz#5858547f6b290757ee95cccc666fb50084c460dd" integrity sha1-WFhUf2spB1fulczMZm+1AITEYN0= +tryer@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8" + integrity sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA== + +tslib@^1.10.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== + tslib@^1.9.0: version "1.11.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35" @@ -14203,6 +15245,13 @@ two-sum@^1.0.0: resolved "https://registry.yarnpkg.com/two-sum/-/two-sum-1.0.0.tgz#31d3f32239e4f731eca9df9155e2b297f008ab64" integrity sha1-MdPzIjnk9zHsqd+RVeKyl/AIq2Q= +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + type-check@~0.3.1, type-check@~0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" @@ -14210,6 +15259,11 @@ type-check@~0.3.1, type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" +type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + type-is@~1.6.17, type-is@~1.6.18: version "1.6.18" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" @@ -14403,6 +15457,16 @@ universalify@^0.1.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== +universalify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d" + integrity sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug== + +universalify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" + integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== + unpipe@1.0.0, unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" @@ -14451,6 +15515,14 @@ url-loader@0.5.7: loader-utils "0.2.x" mime "1.2.x" +url-parse@1.4.4: + version "1.4.4" + resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.4.4.tgz#cac1556e95faa0303691fec5cf9d5a1bc34648f8" + integrity sha512-/92DTTorg4JjktLNLe6GPS2/RvAd/RGr6LuktmWSMLEOa6rjnlrFXNgSbSmkNvCoL2T028A0a1JaJLzRMlFoHg== + dependencies: + querystringify "^2.0.0" + requires-port "^1.0.0" + url-parse@^1.4.3, url-parse@^1.4.7: version "1.4.7" resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.4.7.tgz#a8a83535e8c00a316e403a5db4ac1b9b853ae278" @@ -14529,7 +15601,7 @@ util@^0.11.0: dependencies: inherits "2.0.3" -utila@^0.4.0, utila@~0.4: +utila@~0.4: version "0.4.0" resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c" integrity sha1-ihagXURWV6Oupe7MWxKk+lN5dyw= @@ -14567,6 +15639,11 @@ validate-npm-package-license@^3.0.1: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" +validator@10.11.0: + version "10.11.0" + resolved "https://registry.yarnpkg.com/validator/-/validator-10.11.0.tgz#003108ea6e9a9874d31ccc9e5006856ccd76b228" + integrity sha512-X/p3UZerAIsbBfN/IwahhYaBbY68EN/UQBWHtsbXGT5bfrH/p4NQzUCG1kF/rtKaNpnJ7jAu6NGTdSNtyNIXMw== + validator@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/validator/-/validator-11.1.0.tgz#ac18cac42e0aa5902b603d7a5d9b7827e2346ac4" @@ -14810,6 +15887,11 @@ wcwidth@>=1.0.1: dependencies: defaults "^1.0.3" +webfontloader@1.6.28: + version "1.6.28" + resolved "https://registry.yarnpkg.com/webfontloader/-/webfontloader-1.6.28.tgz#db786129253cb6e8eae54c2fb05f870af6675bae" + integrity sha1-23hhKSU8tujq5UwvsF+HCvZnW64= + webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" @@ -14820,14 +15902,24 @@ webidl-conversions@^4.0.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== -webpack-bundle-size-analyzer@2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/webpack-bundle-size-analyzer/-/webpack-bundle-size-analyzer-2.0.2.tgz#4b2fdabd3a5363d22c5531a1eaa3c84282269bb5" - integrity sha1-Sy/avTpTY9IsVTGh6qPIQoImm7U= +webpack-bundle-analyzer@3.9.0: + version "3.9.0" + resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.9.0.tgz#f6f94db108fb574e415ad313de41a2707d33ef3c" + integrity sha512-Ob8amZfCm3rMB1ScjQVlbYYUEJyEjdEtQ92jqiFUYt5VkEeO2v5UMbv49P/gnmCZm3A6yaFQzCBvpZqN4MUsdA== dependencies: - commander "^2.7.1" - filesize "^3.1.2" - humanize "0.0.9" + acorn "^7.1.1" + acorn-walk "^7.1.1" + bfj "^6.1.1" + chalk "^2.4.1" + commander "^2.18.0" + ejs "^2.6.1" + express "^4.16.3" + filesize "^3.6.1" + gzip-size "^5.0.0" + lodash "^4.17.19" + mkdirp "^0.5.1" + opener "^1.5.1" + ws "^6.0.0" webpack-cli@3.3.6: version "3.3.6" @@ -14857,7 +15949,7 @@ webpack-dev-middleware@^3.7.0, webpack-dev-middleware@^3.7.2: range-parser "^1.2.1" webpack-log "^2.0.0" -webpack-dev-server@^3.10.3: +webpack-dev-server@3.10.3: version "3.10.3" resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-3.10.3.tgz#f35945036813e57ef582c2420ef7b470e14d3af0" integrity sha512-e4nWev8YzEVNdOMcNzNeCN947sWJNd43E5XvsJzbAL08kGc2frm1tQ32hTJslRS+H65LCb/AaUCYU7fjHCpDeQ== @@ -15033,6 +16125,13 @@ which@1.2.x: dependencies: isexe "^2.0.0" +which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + wide-align@1.1.3, wide-align@^1.1.0: version "1.1.3" resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" @@ -15045,12 +16144,12 @@ window-size@0.1.0: resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" integrity sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0= -wkt-parser@^1.2.4: +wkt-parser@^1.2.0, wkt-parser@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/wkt-parser/-/wkt-parser-1.2.4.tgz#e42ba7b96f13aef82a2da9056e2d87da0fec5393" integrity sha512-ZzKnc7ml/91fOPh5bANBL4vUlWPIYYv11waCtWTkl2TRN+LEmBg60Q1MA8gqV4hEp4MGfSj9JiHz91zw/gTDXg== -word-wrap@~1.2.3: +word-wrap@^1.2.3, word-wrap@~1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== @@ -15102,6 +16201,15 @@ wrap-ansi@^5.1.0: string-width "^3.0.0" strip-ansi "^5.0.0" +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrap-fn@^0.1.0: version "0.1.5" resolved "https://registry.yarnpkg.com/wrap-fn/-/wrap-fn-0.1.5.tgz#f21b6e41016ff4a7e31720dbc63a09016bdf9845" @@ -15121,7 +16229,7 @@ write@1.0.3: dependencies: mkdirp "^0.5.1" -ws@^6.2.1: +ws@^6.0.0, ws@^6.2.1: version "6.2.1" resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.1.tgz#442fdf0a47ed64f59b6a5d8ff130f4748ed524fb" integrity sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA== @@ -15155,7 +16263,7 @@ xml2js@0.4.17: sax ">=0.6.0" xmlbuilder "^4.1.0" -xml2js@^0.4.19: +xml2js@^0.4.23: version "0.4.23" resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66" integrity sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug== @@ -15190,11 +16298,16 @@ xmldom@0.3.0, xmldom@>=0.1.21: resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.3.0.tgz#e625457f4300b5df9c2e1ecb776147ece47f3e5a" integrity sha512-z9s6k3wxE+aZHgXYxSTpGDo7BYOUfJsIRyoZiX6HTjwpwfS2wpQBQKa2fD+ShLyPkqDYo5ud7KitmLZ2Cd6r0g== -xmldom@^0.1.22, xmldom@^0.1.27, xmldom@~0.1.19, xmldom@~0.1.22: +xmldom@^0.1.22, xmldom@~0.1.19, xmldom@~0.1.22: version "0.1.31" resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.1.31.tgz#b76c9a1bd9f0a9737e5a72dc37231cf38375e2ff" integrity sha512-yS2uJflVQs6n+CyjHoaBmVSqIDevTAWrzMmjG1Gc7h1qQ7uVozNhEPJAwZXWyGQ/Gafo3fCwrcaokezLPupVyQ== +xmldom@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.2.1.tgz#cac9465066f161e1c3302793ea4dbe59c518274f" + integrity sha512-kXXiYvmblIgEemGeB75y97FyaZavx6SQhGppLw5TKWAD2Wd0KAly0g23eVLh17YcpxZpnFym1Qk/eaRjy1APPg== + xmlhttprequest-ssl@~1.5.4: version "1.5.5" resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz#c2876b06168aadc40e57d97e81191ac8f4398b3e" @@ -15225,6 +16338,11 @@ y18n@^3.2.1: resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== +y18n@^5.0.2: + version "5.0.5" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18" + integrity sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg== + yallist@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" @@ -15259,6 +16377,11 @@ yargs-parser@^13.0.0, yargs-parser@^13.1.0: camelcase "^5.0.0" decamelize "^1.2.0" +yargs-parser@^20.2.2: + version "20.2.4" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" + integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== + yargs-parser@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-5.0.0.tgz#275ecf0d7ffe05c77e64e7c86e4cd94bf0e1228a" @@ -15327,6 +16450,19 @@ yargs@13.2.4: y18n "^4.0.0" yargs-parser "^13.1.0" +yargs@16.1.0: + version "16.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.1.0.tgz#fc333fe4791660eace5a894b39d42f851cd48f2a" + integrity sha512-upWFJOmDdHN0syLuESuvXDmrRcWd1QafJolHskzaw79uZa7/x53gxQKiR07W59GWY1tFhhU/Th9DrtSfpS782g== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.2" + yargs-parser "^20.2.2" + yargs@^7.0.2: version "7.1.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-7.1.0.tgz#6ba318eb16961727f5d284f8ea003e8d6154d0c8" diff --git a/geonode_mapstore_client/static/mapstore/dist/0.1a3b4ad5c93629cbe74d.chunk.js b/geonode_mapstore_client/static/mapstore/dist/0.ed1b6141e36d12447dda.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/0.1a3b4ad5c93629cbe74d.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/0.ed1b6141e36d12447dda.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1.1a3b4ad5c93629cbe74d.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1.ed1b6141e36d12447dda.chunk.js similarity index 61% rename from geonode_mapstore_client/static/mapstore/dist/1.1a3b4ad5c93629cbe74d.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1.ed1b6141e36d12447dda.chunk.js index c408aa645d..d6adc9578f 100644 --- a/geonode_mapstore_client/static/mapstore/dist/1.1a3b4ad5c93629cbe74d.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/1.ed1b6141e36d12447dda.chunk.js @@ -1,6 +1,6 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"./node_modules/chain-function/index.js":function(e,n){e.exports=function(){for(var e=arguments.length,n=[],t=0;t div {\n width: 18px;\n height: 18px;\n background-color: #333;\n\n border-radius: 100%;\n display: inline-block;\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out;\n animation: sk-bouncedelay 1.4s infinite ease-in-out;\n /* Prevent first frame from flickering when animation starts */\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n\n.msgapi .sk-three-bounce .sk-bounce1 {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s;\n}\n\n.msgapi .sk-three-bounce .sk-bounce2 {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s;\n}\n\n@-webkit-keyframes sk-bouncedelay {\n .msgapi 0%, .msgapi 80%, .msgapi 100% { -webkit-transform: scale(0.0) }\n .msgapi 40% { -webkit-transform: scale(1.0) }\n}\n\n@keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 40% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n}\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/react-spinkit/css/wandering-cubes.css":function(e,n,t){(e.exports=t("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .sk-wandering-cubes {\n width: 27px;\n height: 27px;\n position: relative;\n}\n\n.msgapi .sk-cube1, .msgapi .sk-cube2 {\n background-color: #333;\n width: 10px;\n height: 10px;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-cubemove 1.8s infinite ease-in-out;\n animation: sk-cubemove 1.8s infinite ease-in-out;\n}\n\n.msgapi .sk-cube2 {\n -webkit-animation-delay: -0.9s;\n animation-delay: -0.9s;\n}\n\n@-webkit-keyframes sk-cubemove {\n .msgapi 25% { -webkit-transform: translateX(22px) rotate(-90deg) scale(0.5) }\n .msgapi 50% { -webkit-transform: translateX(22px) translateY(22px) rotate(-180deg) }\n .msgapi 75% { -webkit-transform: translateX(0px) translateY(22px) rotate(-270deg) scale(0.5) }\n .msgapi 100% { -webkit-transform: rotate(-360deg) }\n}\n\n@keyframes sk-cubemove {\n 25% {\n transform: translateX(42px) rotate(-90deg) scale(0.5);\n -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5);\n } 50% {\n /* Hack to make FF rotate in the right direction */\n transform: translateX(42px) translateY(42px) rotate(-179deg);\n -webkit-transform: translateX(42px) translateY(42px) rotate(-179deg);\n } 50.1% {\n transform: translateX(42px) translateY(42px) rotate(-180deg);\n -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg);\n } 75% {\n transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);\n -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);\n } 100% {\n transform: rotate(-360deg);\n -webkit-transform: rotate(-360deg);\n }\n}\n\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/react-spinkit/css/wave.css":function(e,n,t){(e.exports=t("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .sk-wave {\n width: 50px;\n height: 27px;\n}\n\n.msgapi .sk-wave > div {\n background-color: #333;\n height: 100%;\n width: 6px;\n display: inline-block;\n\n -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;\n animation: sk-stretchdelay 1.2s infinite ease-in-out;\n}\n\n.msgapi .sk-wave .sk-rect2 {\n -webkit-animation-delay: -1.1s;\n animation-delay: -1.1s;\n}\n\n.msgapi .sk-wave .sk-rect3 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n}\n\n.msgapi .sk-wave .sk-rect4 {\n -webkit-animation-delay: -0.9s;\n animation-delay: -0.9s;\n}\n\n.msgapi .sk-wave .sk-rect5 {\n -webkit-animation-delay: -0.8s;\n animation-delay: -0.8s;\n}\n\n@-webkit-keyframes sk-stretchdelay {\n .msgapi 0%, .msgapi 40%, .msgapi 100% { -webkit-transform: scaleY(0.4) }\n .msgapi 20% { -webkit-transform: scaleY(1.0) }\n}\n\n@keyframes sk-stretchdelay {\n 0%, 40%, 100% {\n transform: scaleY(0.4);\n -webkit-transform: scaleY(0.4);\n } 20% {\n transform: scaleY(1.0);\n -webkit-transform: scaleY(1.0);\n }\n}\n\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/react-spinkit/css/wordpress.css":function(e,n,t){(e.exports=t("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .sk-wordpress {\n background: #333;\n width: 27px;\n height: 27px;\n display: inline-block;\n border-radius: 27px;\n position: relative;\n -webkit-animation: sk-inner-circle 1s linear infinite;\n animation: sk-inner-circle 1s linear infinite;\n}\n\n.msgapi .sk-inner-circle {\n display: block;\n background: #fff;\n width: 8px;\n height: 8px;\n position: absolute;\n border-radius: 8px;\n top: 5px;\n left: 5px;\n}\n\n@-webkit-keyframes sk-inner-circle {\n .msgapi 0% { -webkit-transform: rotate(0); }\n .msgapi 100% { -webkit-transform: rotate(360deg); }\n}\n\n@keyframes sk-inner-circle {\n 0% { transform: rotate(0); -webkit-transform:rotate(0); }\n 100% { transform: rotate(360deg); -webkit-transform:rotate(360deg); }\n}\n\n",""])},"./node_modules/dom-helpers/util/requestAnimationFrame.js":function(e,n,t){"use strict";var r=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");n.__esModule=!0,n.default=void 0;var o,s=r(t("./node_modules/dom-helpers/util/inDOM.js")),a="clearTimeout",i=function(e){var n=(new Date).getTime(),t=Math.max(0,16-(n-c)),r=setTimeout(e,t);return c=n,r},l=function(e,n){return e+(e?n[0].toUpperCase()+n.substr(1):n)+"AnimationFrame"};s.default&&["","webkit","moz","o","ms"].some((function(e){var n=l(e,"request");if(n in window)return a=l(e,"cancel"),i=function(e){return window[n](e)}}));var c=(new Date).getTime();(o=function(e){return i(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var d=o;n.default=d,e.exports=n.default},"./node_modules/react-addons-css-transition-group/index.js":function(e,n,t){"use strict";e.exports=t("./node_modules/react-addons-css-transition-group/node_modules/react-transition-group/CSSTransitionGroup.js")},"./node_modules/react-addons-css-transition-group/node_modules/react-transition-group/CSSTransitionGroup.js":function(e,n,t){"use strict";n.__esModule=!0;var r=Object.assign||function(e){for(var n=1;n, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}},{key:"componentDidMount",value:function(){"undefined"!=typeof SVGElement&&l.default.findDOMNode(this)instanceof SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillReceiveProps",value:function(e){!e.position||this.props.position&&e.position.x===this.props.position.x&&e.position.y===this.props.position.y||this.setState({x:e.position.x,y:e.position.y})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var e,n={},t=null,o=!Boolean(this.props.position)||this.state.dragging,s=this.props.position||this.props.defaultPosition,i={x:(0,u.canDragX)(this)&&o?this.state.x:s.x,y:(0,u.canDragY)(this)&&o?this.state.y:s.y};this.state.isElementSVG?t=(0,d.createSVGTransform)(i):n=(0,d.createCSSTransform)(i);var l=this.props,p=l.defaultClassName,m=l.defaultClassNameDragging,g=l.defaultClassNameDragged,b=(0,c.default)(this.props.children.props.className||"",p,(h(e={},m,this.state.dragging),h(e,g,this.state.dragged),e));return a.default.createElement(f.default,r({},this.props,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),a.default.cloneElement(a.default.Children.only(this.props.children),{className:b,style:r({},this.props.children.props.style,n),transform:t}))}}]),n}(a.default.Component);b.displayName="Draggable",b.propTypes=r({},f.default.propTypes,{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),b.defaultProps=r({},f.default.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null}),n.default=b},function(n,t){n.exports=e},function(e,n,t){if("production"!=={DRAGGABLE_DEBUG:void 0}.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=t(4)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=t(10)()},function(e,n,t){"use strict";var r=t(5),o=t(6),s=t(7),a=t(8),i=t(9);e.exports=function(e,n){var t="function"==typeof Symbol&&Symbol.iterator,l={array:u("array"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:d(r.thatReturnsNull),arrayOf:function(e){return d((function(n,t,r,o,s){if("function"!=typeof e)return new c("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var i=n[t];if(!Array.isArray(i))return new c("Invalid "+o+" `"+s+"` of type `"+f(i)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l>";return new c("Invalid "+o+" `"+s+"` of type `"+(((i=n[t]).constructor&&i.constructor.name?i.constructor.name:"<>")+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var i;return null}))},node:d((function(e,n,t,r,o){return p(e[n])?null:new c("Invalid "+r+" `"+o+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return d((function(n,t,r,o,s){if("function"!=typeof e)return new c("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var i=n[t],l=f(i);if("object"!==l)return new c("Invalid "+o+" `"+s+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var d in i)if(i.hasOwnProperty(d)){var u=e(i,d,r,o,s+"."+d,a);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?d((function(n,t,r,o,s){for(var a=n[t],i=0;i>",f=f||d,m!==a)if(n)o(!1,"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");else if("production"!=={DRAGGABLE_DEBUG:void 0}.NODE_ENV&&"undefined"!=typeof console){var g=u+":"+d;!t[g]&&r<3&&(s(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,u),t[g]=!0,r++)}return null==l[d]?i?null===l[d]?new c("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new c("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(l,d,u,p,f)}var l=i.bind(null,!1);return l.isRequired=i.bind(null,!0),l}function u(e){return d((function(n,t,r,o,s,a){var i=n[t];return f(i)!==e?new c("Invalid "+o+" `"+s+"` of type `"+function(e){var n=f(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}(i)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function p(n){switch(typeof n){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(p);if(null===n||e(n))return!0;var r=function(e){var n=e&&(t&&e[t]||e["@@iterator"]);if("function"==typeof n)return n}(n);if(!r)return!1;var o,s=r.call(n);if(r!==n.entries){for(;!(o=s.next()).done;)if(!p(o.value))return!1}else for(;!(o=s.next()).done;){var a=o.value;if(a&&!p(a[1]))return!1}return!0;default:return!1}}function f(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,n){return"symbol"===e||"Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol}(n,e)?"symbol":n}return c.prototype=Error.prototype,l.checkPropTypes=i,l.PropTypes=l,l}},function(e,n){"use strict";function t(e){return function(){return e}}var r=function(){};r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,n,t){"use strict";var r=function(e){};"production"!=={DRAGGABLE_DEBUG:void 0}.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,n,t,o,s,a,i,l){if(r(n),!e){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[t,o,s,a,i,l],u=0;(c=new Error(n.replace(/%s/g,(function(){return d[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,n,t){"use strict";var r,o=t(5);"production"!=={DRAGGABLE_DEBUG:void 0}.NODE_ENV&&(r=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r2?t-2:0),s=2;s div {\n width: 18px;\n height: 18px;\n background-color: #333;\n\n border-radius: 100%;\n display: inline-block;\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out;\n animation: sk-bouncedelay 1.4s infinite ease-in-out;\n /* Prevent first frame from flickering when animation starts */\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n\n.msgapi .sk-three-bounce .sk-bounce1 {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s;\n}\n\n.msgapi .sk-three-bounce .sk-bounce2 {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s;\n}\n\n@-webkit-keyframes sk-bouncedelay {\n .msgapi 0%, .msgapi 80%, .msgapi 100% { -webkit-transform: scale(0.0) }\n .msgapi 40% { -webkit-transform: scale(1.0) }\n}\n\n@keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 40% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n}\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/react-spinkit/css/wandering-cubes.css":function(e,n,t){(e.exports=t("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .sk-wandering-cubes {\n width: 27px;\n height: 27px;\n position: relative;\n}\n\n.msgapi .sk-cube1, .msgapi .sk-cube2 {\n background-color: #333;\n width: 10px;\n height: 10px;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-cubemove 1.8s infinite ease-in-out;\n animation: sk-cubemove 1.8s infinite ease-in-out;\n}\n\n.msgapi .sk-cube2 {\n -webkit-animation-delay: -0.9s;\n animation-delay: -0.9s;\n}\n\n@-webkit-keyframes sk-cubemove {\n .msgapi 25% { -webkit-transform: translateX(22px) rotate(-90deg) scale(0.5) }\n .msgapi 50% { -webkit-transform: translateX(22px) translateY(22px) rotate(-180deg) }\n .msgapi 75% { -webkit-transform: translateX(0px) translateY(22px) rotate(-270deg) scale(0.5) }\n .msgapi 100% { -webkit-transform: rotate(-360deg) }\n}\n\n@keyframes sk-cubemove {\n 25% {\n transform: translateX(42px) rotate(-90deg) scale(0.5);\n -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5);\n } 50% {\n /* Hack to make FF rotate in the right direction */\n transform: translateX(42px) translateY(42px) rotate(-179deg);\n -webkit-transform: translateX(42px) translateY(42px) rotate(-179deg);\n } 50.1% {\n transform: translateX(42px) translateY(42px) rotate(-180deg);\n -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg);\n } 75% {\n transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);\n -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);\n } 100% {\n transform: rotate(-360deg);\n -webkit-transform: rotate(-360deg);\n }\n}\n\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/react-spinkit/css/wave.css":function(e,n,t){(e.exports=t("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .sk-wave {\n width: 50px;\n height: 27px;\n}\n\n.msgapi .sk-wave > div {\n background-color: #333;\n height: 100%;\n width: 6px;\n display: inline-block;\n\n -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;\n animation: sk-stretchdelay 1.2s infinite ease-in-out;\n}\n\n.msgapi .sk-wave .sk-rect2 {\n -webkit-animation-delay: -1.1s;\n animation-delay: -1.1s;\n}\n\n.msgapi .sk-wave .sk-rect3 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n}\n\n.msgapi .sk-wave .sk-rect4 {\n -webkit-animation-delay: -0.9s;\n animation-delay: -0.9s;\n}\n\n.msgapi .sk-wave .sk-rect5 {\n -webkit-animation-delay: -0.8s;\n animation-delay: -0.8s;\n}\n\n@-webkit-keyframes sk-stretchdelay {\n .msgapi 0%, .msgapi 40%, .msgapi 100% { -webkit-transform: scaleY(0.4) }\n .msgapi 20% { -webkit-transform: scaleY(1.0) }\n}\n\n@keyframes sk-stretchdelay {\n 0%, 40%, 100% {\n transform: scaleY(0.4);\n -webkit-transform: scaleY(0.4);\n } 20% {\n transform: scaleY(1.0);\n -webkit-transform: scaleY(1.0);\n }\n}\n\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/react-spinkit/css/wordpress.css":function(e,n,t){(e.exports=t("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .sk-wordpress {\n background: #333;\n width: 27px;\n height: 27px;\n display: inline-block;\n border-radius: 27px;\n position: relative;\n -webkit-animation: sk-inner-circle 1s linear infinite;\n animation: sk-inner-circle 1s linear infinite;\n}\n\n.msgapi .sk-inner-circle {\n display: block;\n background: #fff;\n width: 8px;\n height: 8px;\n position: absolute;\n border-radius: 8px;\n top: 5px;\n left: 5px;\n}\n\n@-webkit-keyframes sk-inner-circle {\n .msgapi 0% { -webkit-transform: rotate(0); }\n .msgapi 100% { -webkit-transform: rotate(360deg); }\n}\n\n@keyframes sk-inner-circle {\n 0% { transform: rotate(0); -webkit-transform:rotate(0); }\n 100% { transform: rotate(360deg); -webkit-transform:rotate(360deg); }\n}\n\n",""])},"./node_modules/dom-helpers/util/requestAnimationFrame.js":function(e,n,t){"use strict";var r=t("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");n.__esModule=!0,n.default=void 0;var o,s=r(t("./node_modules/dom-helpers/util/inDOM.js")),a="clearTimeout",i=function(e){var n=(new Date).getTime(),t=Math.max(0,16-(n-c)),r=setTimeout(e,t);return c=n,r},l=function(e,n){return e+(e?n[0].toUpperCase()+n.substr(1):n)+"AnimationFrame"};s.default&&["","webkit","moz","o","ms"].some((function(e){var n=l(e,"request");if(n in window)return a=l(e,"cancel"),i=function(e){return window[n](e)}}));var c=(new Date).getTime();(o=function(e){return i(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var u=o;n.default=u,e.exports=n.default},"./node_modules/react-addons-css-transition-group/index.js":function(e,n,t){"use strict";e.exports=t("./node_modules/react-transition-group/CSSTransitionGroup.js")},"./node_modules/react-draggable/dist/react-draggable.js":function(e,n,t){var r;r=function(e,n){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}return t.m=e,t.c=n,t.p="",t(0)}([function(e,n,t){"use strict";e.exports=t(1).default,e.exports.DraggableCore=t(17).default},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var n=1;n, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}},{key:"componentDidMount",value:function(){"undefined"!=typeof SVGElement&&l.default.findDOMNode(this)instanceof SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillReceiveProps",value:function(e){!e.position||this.props.position&&e.position.x===this.props.position.x&&e.position.y===this.props.position.y||this.setState({x:e.position.x,y:e.position.y})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var e,n={},t=null,o=!Boolean(this.props.position)||this.state.dragging,s=this.props.position||this.props.defaultPosition,i={x:(0,d.canDragX)(this)&&o?this.state.x:s.x,y:(0,d.canDragY)(this)&&o?this.state.y:s.y};this.state.isElementSVG?t=(0,u.createSVGTransform)(i):n=(0,u.createCSSTransform)(i);var l=this.props,p=l.defaultClassName,m=l.defaultClassNameDragging,g=l.defaultClassNameDragged,b=(0,c.default)(this.props.children.props.className||"",p,(h(e={},m,this.state.dragging),h(e,g,this.state.dragged),e));return a.default.createElement(f.default,r({},this.props,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),a.default.cloneElement(a.default.Children.only(this.props.children),{className:b,style:r({},this.props.children.props.style,n),transform:t}))}}]),n}(a.default.Component);b.displayName="Draggable",b.propTypes=r({},f.default.propTypes,{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),b.defaultProps=r({},f.default.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null}),n.default=b},function(n,t){n.exports=e},function(e,n,t){if("production"!=={DRAGGABLE_DEBUG:void 0}.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=t(4)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=t(10)()},function(e,n,t){"use strict";var r=t(5),o=t(6),s=t(7),a=t(8),i=t(9);e.exports=function(e,n){var t="function"==typeof Symbol&&Symbol.iterator,l={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:u(r.thatReturnsNull),arrayOf:function(e){return u((function(n,t,r,o,s){if("function"!=typeof e)return new c("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var i=n[t];if(!Array.isArray(i))return new c("Invalid "+o+" `"+s+"` of type `"+f(i)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l>";return new c("Invalid "+o+" `"+s+"` of type `"+(((i=n[t]).constructor&&i.constructor.name?i.constructor.name:"<>")+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var i;return null}))},node:u((function(e,n,t,r,o){return p(e[n])?null:new c("Invalid "+r+" `"+o+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return u((function(n,t,r,o,s){if("function"!=typeof e)return new c("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var i=n[t],l=f(i);if("object"!==l)return new c("Invalid "+o+" `"+s+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var u in i)if(i.hasOwnProperty(u)){var d=e(i,u,r,o,s+"."+u,a);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?u((function(n,t,r,o,s){for(var a=n[t],i=0;i>",f=f||u,m!==a)if(n)o(!1,"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");else if("production"!=={DRAGGABLE_DEBUG:void 0}.NODE_ENV&&"undefined"!=typeof console){var g=d+":"+u;!t[g]&&r<3&&(s(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,d),t[g]=!0,r++)}return null==l[u]?i?null===l[u]?new c("The "+p+" `"+f+"` is marked as required in `"+d+"`, but its value is `null`."):new c("The "+p+" `"+f+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(l,u,d,p,f)}var l=i.bind(null,!1);return l.isRequired=i.bind(null,!0),l}function d(e){return u((function(n,t,r,o,s,a){var i=n[t];return f(i)!==e?new c("Invalid "+o+" `"+s+"` of type `"+function(e){var n=f(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}(i)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function p(n){switch(typeof n){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(p);if(null===n||e(n))return!0;var r=function(e){var n=e&&(t&&e[t]||e["@@iterator"]);if("function"==typeof n)return n}(n);if(!r)return!1;var o,s=r.call(n);if(r!==n.entries){for(;!(o=s.next()).done;)if(!p(o.value))return!1}else for(;!(o=s.next()).done;){var a=o.value;if(a&&!p(a[1]))return!1}return!0;default:return!1}}function f(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,n){return"symbol"===e||"Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol}(n,e)?"symbol":n}return c.prototype=Error.prototype,l.checkPropTypes=i,l.PropTypes=l,l}},function(e,n){"use strict";function t(e){return function(){return e}}var r=function(){};r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,n,t){"use strict";var r=function(e){};"production"!=={DRAGGABLE_DEBUG:void 0}.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,n,t,o,s,a,i,l){if(r(n),!e){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[t,o,s,a,i,l],d=0;(c=new Error(n.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,n,t){"use strict";var r,o=t(5);"production"!=={DRAGGABLE_DEBUG:void 0}.NODE_ENV&&(r=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r2?t-2:0),s=2;s0&&void 0!==arguments[0]?arguments[0]:{};return r({touchAction:"none"},e)};var o,s=t(14),a=t(15),i=(o=a)&&o.__esModule?o:{default:o},l="";function c(e,n){return l||(l=(0,s.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,s.isFunction)(e[n])}))),e[l].call(e,n)}var d=(0,a.getPrefix)("user-select"),u=(0,a.browserPrefixToStyle)("user-select",d),p=";"+u+": none;",f=new RegExp(";?"+u+": none;")},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.findInArray=function(e,n){for(var t=0,r=e.length;t0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var n=window.document.documentElement.style;if(e in n)return"";for(var r=0;r1)for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return r({touchAction:"none"},e)};var o,s=t(14),a=t(15),i=(o=a)&&o.__esModule?o:{default:o},l="";function c(e,n){return l||(l=(0,s.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,s.isFunction)(e[n])}))),e[l].call(e,n)}var u=(0,a.getPrefix)("user-select"),d=(0,a.browserPrefixToStyle)("user-select",u),p=";"+d+": none;",f=new RegExp(";?"+d+": none;")},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.findInArray=function(e,n){for(var t=0,r=e.length;t0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var n=window.document.documentElement.style;if(e in n)return"";for(var r=0;r1)for(var t=1;t0?"raise":"lower"](e.provider)}))})),O(b(e),"setLayerVisibility",(function(t,r){t!==(e.props.options&&!1!==e.props.options.visibility)&&(t?(e.addLayer(r),e.updateZIndex()):e.removeLayer())})),O(b(e),"setLayerOpacity",(function(t){t!==(e.props.options&&void 0!==e.props.options.opacity?e.props.options.opacity:1)&&e.layer&&e.provider&&(e.provider.alpha=t)})),O(b(e),"createLayer",(function(t,r,o,n,i){if(t){var s=p()({},r,o?{zIndex:o}:null,{securityToken:i});e.layer=a.a.createLayer(t,s,n),e.layer&&(e.layer.layerName=r.name,e.layer.layerId=r.id),null===e.layer&&e.props.onCreationError(r)}})),O(b(e),"updateLayer",(function(t,r){var o=a.a.updateLayer(t.type,e.layer,m(m({},t.options),{},{securityToken:t.securityToken}),m(m({},r.options),{},{securityToken:r.securityToken}),e.props.map);o&&(e.removeLayer(),e.layer=o,e.addLayer(t))})),O(b(e),"addLayerInternal",(function(t){t.options.useForElevation?e.props.map.terrainProvider=e.layer:(e.provider=e.props.map.imageryLayers.addImageryProvider(e.layer),e.provider._position=e.props.position,void 0!==t.options.opacity&&(e.provider.alpha=t.options.opacity))})),O(b(e),"addLayer",(function(t){if(e.layer&&!e.layer.detached&&(e.addLayerInternal(t),e.props.options.refresh&&e.layer.updateParams)){var r=0;e.refreshTimer=setInterval((function(){var o=e.layer.updateParams(p()({},e.props.options.params,{_refreshCounter:r++}));e.removeLayer(),e.layer=o,e.addLayerInternal(t)}),e.props.options.refresh)}})),O(b(e),"removeLayer",(function(t){var r=t||e.provider;r&&e.props.map.imageryLayers.remove(r)})),e}return t=s,(r=[{key:"componentDidMount",value:function(){this.createLayer(this.props.type,this.props.options,this.props.position,this.props.map,this.props.securityToken),this.props.options&&this.layer&&!1!==this.props.options.visibility&&(this.addLayer(this.props),this.updateZIndex())}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,r=e.options&&!1!==e.options.visibility;this.setLayerVisibility(r,e);var o=e.options&&void 0!==e.options.opacity?e.options.opacity:1;if(this.setLayerOpacity(o),e.position!==this.props.position&&(this.updateZIndex(e.position),this.provider&&(this.provider._position=e.position)),this.props.options&&this.props.options.params&&this.layer.updateParams&&e.options.visibility&&Object.keys(this.props.options.params).reduce((function(r,o){return e.options.params[o]!==t.props.options.params[o]||r}),!1)){var n=this.provider,i=this.layer.updateParams(e.options.params);this.layer=i,this.addLayer(e),setTimeout((function(){t.removeLayer(n)}),1e3)}this.updateLayer(e,this.props)}},{key:"componentWillUnmount",value:function(){this.layer&&this.props.map&&!this.props.map.isDestroyed()&&(this.layer.detached?this.layer.remove():(this.layer.destroy&&this.layer.destroy(),this.props.map.imageryLayers.remove(this.provider)),this.refreshTimer&&clearInterval(this.refreshTimer))}},{key:"render",value:function(){var e=this;if(this.props.children){var t=this.layer,r=t?n.a.Children.map(this.props.children,(function(r){return r?n.a.cloneElement(r,{container:t,styleName:e.props.options&&e.props.options.styleName}):null})):null;return n.a.createElement(n.a.Fragment,null,r)}return a.a.renderLayer(this.props.type,this.props.options,this.props.map,this.props.map.id,this.layer)}}])&&d(t.prototype,r),o&&d(t,o),s}(n.a.Component);O(w,"propTypes",{map:u.a.object,type:u.a.string,options:u.a.object,onCreationError:u.a.func,position:u.a.number,securityToken:u.a.string}),t.default=w},"./MapStore2/web/client/components/map/cesium/Map.jsx":function(e,t,r){"use strict";r.r(t);var o=r("./MapStore2/web/client/libs/cesium.js"),n=r.n(o),i=r("./node_modules/prop-types/index.js"),a=r.n(i),s=r("./node_modules/rxjs/Rx.js"),p=r.n(s),c=r("./node_modules/react/index.js"),u=r.n(c),l=r("./node_modules/react-dom/index.js"),f=r.n(l),m=r("./MapStore2/web/client/utils/ConfigUtils.js"),y=r("./MapStore2/web/client/utils/cesium/ClickUtils.js"),d=r.n(y),h=r("./MapStore2/web/client/utils/MapUtils.js"),v=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),g=r("./node_modules/object-assign/index.js"),b=r.n(g),P=r("./MapStore2/node_modules/lodash/lodash.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 w(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},o=r.crs,i=r.duration,a=Object(v.reprojectBbox)(t,o,"EPSG:4326");if(e.map.camera.flyTo){var s=n.a.Rectangle.fromDegrees(a[0],a[1],a[2],a[3]);e.map.camera.flyTo({destination:s,duration:i,complete:e.updateMapInfoState})}}))})),k(C(e),"updateMapInfoState",(function(){var t=e.getCenter(),r=e.getZoomFromHeight(t.height),o={height:Math.round(e.props.standardWidth*(r+1)),width:Math.round(e.props.standardHeight*(r+1))};e.props.onMapViewChanges({x:t.longitude,y:t.latitude,crs:"EPSG:4326"},r,{bounds:{minx:-180,miny:-90,maxx:180,maxy:90},crs:"EPSG:4326",rotation:0},o,e.props.id,e.props.projection,{orientation:{heading:e.map.camera.heading,pitch:e.map.camera.pitch,roll:e.map.camera.roll}})})),e}return t=a,(r=[{key:"UNSAFE_componentWillMount",value:function(){this.getDocument().addEventListener("gesturestart",this.gestureStartListener)}},{key:"componentDidMount",value:function(){var e=new n.a.Viewer(this.getDocument().getElementById(this.props.id),b()({baseLayerPicker:!1,animation:!1,fullscreenButton:!1,geocoder:!1,homeButton:!1,infoBox:!1,sceneModePicker:!1,selectionIndicator:!1,timeline:!1,navigationHelpButton:!1,navigationInstructionsInitiallyVisible:!1},this.getMapOptions(this.props.mapOptions)));e.scene.globe.baseColor=n.a.Color.WHITE,e.imageryLayers.removeAll(),e.camera.moveEnd.addEventListener(this.updateMapInfoState),this.hand=new n.a.ScreenSpaceEventHandler(e.scene.canvas),this.subscribeClickEvent(e),this.hand.setInputAction(Object(P.throttle)(this.onMouseMove.bind(this),500),n.a.ScreenSpaceEventType.MOUSE_MOVE),e.camera.setView({destination:n.a.Cartesian3.fromDegrees(this.props.center.x,this.props.center.y,this.getHeightFromZoom(this.props.zoom))}),this.setMousePointer(this.props.mousePointer),this.map=e,this.forceUpdate(),this.props.mapOptions.navigationTools&&(this.cesiumNavigation=window.CesiumNavigation,this.cesiumNavigation&&this.cesiumNavigation.navigationInitialization(this.props.id,e)),this.props.registerHooks&&this.registerHooks()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){return e.mousePointer!==this.props.mousePointer&&this.setMousePointer(e.mousePointer),e.mapStateSource!==this.props.id&&this._updateMapPositionFromNewProps(e),!1}},{key:"componentWillUnmount",value:function(){this.clickStream$.complete(),this.pauserStream$.complete(),this.hand.destroy(),this.getDocument().removeEventListener("gesturestart",this.gestureStartListener),this.map.destroy()}},{key:"render",value:function(){var e=this,t=this.map,r=this.props.projection,o=t?u.a.Children.map(this.props.children,(function(o){return o?u.a.cloneElement(o,{map:t,projection:r,onCreationError:e.props.onCreationError}):null})):null;return u.a.createElement("div",{id:this.props.id},o)}}])&&j(t.prototype,r),o&&j(t,o),a}(u.a.Component);k(L,"propTypes",{id:a.a.string,document:a.a.object,center:m.default.PropTypes.center,zoom:a.a.number.isRequired,mapStateSource:m.default.PropTypes.mapStateSource,projection:a.a.string,onMapViewChanges:a.a.func,onCreationError:a.a.func,onClick:a.a.func,onMouseMove:a.a.func,mapOptions:a.a.object,standardWidth:a.a.number,standardHeight:a.a.number,mousePointer:a.a.string,zoomToHeight:a.a.number,registerHooks:a.a.bool,hookRegister:a.a.object,viewerOptions:a.a.object}),k(L,"defaultProps",{id:"map",onMapViewChanges:function(){},onClick:function(){},onCreationError:function(){},projection:"EPSG:3857",mapOptions:{},standardWidth:512,standardHeight:512,zoomToHeight:8e7,registerHooks:!0,hookRegister:{registerHook:h.registerHook},viewerOptions:{orientation:{heading:0,pitch:-1*Math.PI/2,roll:0}}}),t.default=L},"./MapStore2/web/client/libs/cesium.js":function(e,t){e.exports=window.Cesium},"./MapStore2/web/client/utils/cesium/ClickUtils.js":function(e,t,r){var o=r("./MapStore2/web/client/libs/cesium.js");e.exports={getMouseXYZ:function(e,t){var r=e.scene,n=t.position||t.endPosition;if(!n)return null;var i=e.camera.getPickRay(n),a=e.scene.globe.pick(i,e.scene),s=r._globe.ellipsoid;if(o.defined(a)){var p=s.cartesianToCartographic(a),c=function(e,t){if(null!==t.position){var r=e.scene,o=r._globe.ellipsoid;return r._camera.pickEllipsoid(t.position||t.endPosition,o)}return null}(e,t);return c&&(p.height=r._globe.getHeight(p),p.cartesian=c,p.position=a),p}return null},getMouseTile:function(e,t){var r=e.scene;if(!t.position)return null;var o=e.camera.getPickRay(t.position);return e.scene.globe.pickTile(o,r)}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/11.ed1b6141e36d12447dda.chunk.js b/geonode_mapstore_client/static/mapstore/dist/11.ed1b6141e36d12447dda.chunk.js new file mode 100644 index 0000000000..4d78502a31 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/11.ed1b6141e36d12447dda.chunk.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{"./MapStore2/web/client/components/map/cesium/Layer.jsx":function(e,t,r){"use strict";r.r(t);var o=r("./node_modules/react/index.js"),n=r.n(o),i=r("./MapStore2/web/client/utils/cesium/Layers.js"),a=r.n(i),s=r("./node_modules/object-assign/index.js"),p=r.n(s),c=r("./node_modules/prop-types/index.js"),u=r.n(c);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 f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function m(e){for(var t=1;t0?"raise":"lower"](e.provider)}))})),O(b(e),"setLayerVisibility",(function(t,r){t!==(e.props.options&&!1!==e.props.options.visibility)&&(t?(e.addLayer(r),e.updateZIndex()):e.removeLayer())})),O(b(e),"setLayerOpacity",(function(t){t!==(e.props.options&&void 0!==e.props.options.opacity?e.props.options.opacity:1)&&e.layer&&e.provider&&(e.provider.alpha=t)})),O(b(e),"createLayer",(function(t,r,o,n,i){if(t){var s=p()({},r,o?{zIndex:o}:null,{securityToken:i});e.layer=a.a.createLayer(t,s,n),e.layer&&(e.layer.layerName=r.name,e.layer.layerId=r.id),null===e.layer&&e.props.onCreationError(r)}})),O(b(e),"updateLayer",(function(t,r){var o=a.a.updateLayer(t.type,e.layer,m(m({},t.options),{},{securityToken:t.securityToken}),m(m({},r.options),{},{securityToken:r.securityToken}),e.props.map);o&&(e.removeLayer(),e.layer=o,e.addLayer(t))})),O(b(e),"addLayerInternal",(function(t){t.options.useForElevation?e.props.map.terrainProvider=e.layer:(e.provider=e.props.map.imageryLayers.addImageryProvider(e.layer),e.provider._position=e.props.position,void 0!==t.options.opacity&&(e.provider.alpha=t.options.opacity))})),O(b(e),"addLayer",(function(t){if(e.layer&&!e.layer.detached&&(e.addLayerInternal(t),e.props.options.refresh&&e.layer.updateParams)){var r=0;e.refreshTimer=setInterval((function(){var o=e.layer.updateParams(p()({},e.props.options.params,{_refreshCounter:r++}));e.removeLayer(),e.layer=o,e.addLayerInternal(t)}),e.props.options.refresh)}})),O(b(e),"removeLayer",(function(t){var r=t||e.provider;r&&e.props.map.imageryLayers.remove(r)})),e}return t=s,(r=[{key:"componentDidMount",value:function(){this.createLayer(this.props.type,this.props.options,this.props.position,this.props.map,this.props.securityToken),this.props.options&&this.layer&&!1!==this.props.options.visibility&&(this.addLayer(this.props),this.updateZIndex())}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,r=e.options&&!1!==e.options.visibility;this.setLayerVisibility(r,e);var o=e.options&&void 0!==e.options.opacity?e.options.opacity:1;if(this.setLayerOpacity(o),e.position!==this.props.position&&(this.updateZIndex(e.position),this.provider&&(this.provider._position=e.position)),this.props.options&&this.props.options.params&&this.layer.updateParams&&e.options.visibility&&Object.keys(this.props.options.params).reduce((function(r,o){return e.options.params[o]!==t.props.options.params[o]||r}),!1)){var n=this.provider,i=this.layer.updateParams(e.options.params);this.layer=i,this.addLayer(e),setTimeout((function(){t.removeLayer(n)}),1e3)}this.updateLayer(e,this.props)}},{key:"componentWillUnmount",value:function(){this.layer&&this.props.map&&!this.props.map.isDestroyed()&&(this.layer.detached?this.layer.remove():(this.layer.destroy&&this.layer.destroy(),this.props.map.imageryLayers.remove(this.provider)),this.refreshTimer&&clearInterval(this.refreshTimer))}},{key:"render",value:function(){var e=this;if(this.props.children){var t=this.layer,r=t?n.a.Children.map(this.props.children,(function(r){return r?n.a.cloneElement(r,{container:t,styleName:e.props.options&&e.props.options.styleName}):null})):null;return n.a.createElement(n.a.Fragment,null,r)}return a.a.renderLayer(this.props.type,this.props.options,this.props.map,this.props.map.id,this.layer)}}])&&d(t.prototype,r),o&&d(t,o),s}(n.a.Component);O(w,"propTypes",{map:u.a.object,type:u.a.string,options:u.a.object,onCreationError:u.a.func,position:u.a.number,securityToken:u.a.string}),t.default=w},"./MapStore2/web/client/components/map/cesium/Map.jsx":function(e,t,r){"use strict";r.r(t);var o=r("./MapStore2/web/client/libs/cesium.js"),n=r.n(o),i=r("./node_modules/prop-types/index.js"),a=r.n(i),s=r("./node_modules/rxjs/Rx.js"),p=r.n(s),c=r("./node_modules/react/index.js"),u=r.n(c),l=r("./node_modules/react-dom/index.js"),f=r.n(l),m=r("./MapStore2/web/client/utils/ConfigUtils.js"),y=r("./MapStore2/web/client/utils/cesium/ClickUtils.js"),d=r.n(y),h=r("./MapStore2/web/client/utils/MapUtils.js"),v=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),g=r("./node_modules/object-assign/index.js"),b=r.n(g),P=r("./node_modules/lodash/lodash.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 w(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},o=r.crs,i=r.duration,a=Object(v.reprojectBbox)(t,o,"EPSG:4326");if(e.map.camera.flyTo){var s=n.a.Rectangle.fromDegrees(a[0],a[1],a[2],a[3]);e.map.camera.flyTo({destination:s,duration:i,complete:e.updateMapInfoState})}}))})),k(C(e),"updateMapInfoState",(function(){var t=e.getCenter(),r=e.getZoomFromHeight(t.height),o={height:Math.round(e.props.standardWidth*(r+1)),width:Math.round(e.props.standardHeight*(r+1))};e.props.onMapViewChanges({x:t.longitude,y:t.latitude,crs:"EPSG:4326"},r,{bounds:{minx:-180,miny:-90,maxx:180,maxy:90},crs:"EPSG:4326",rotation:0},o,e.props.id,e.props.projection,{orientation:{heading:e.map.camera.heading,pitch:e.map.camera.pitch,roll:e.map.camera.roll}})})),e}return t=a,(r=[{key:"UNSAFE_componentWillMount",value:function(){this.getDocument().addEventListener("gesturestart",this.gestureStartListener)}},{key:"componentDidMount",value:function(){var e=new n.a.Viewer(this.getDocument().getElementById(this.props.id),b()({baseLayerPicker:!1,animation:!1,fullscreenButton:!1,geocoder:!1,homeButton:!1,infoBox:!1,sceneModePicker:!1,selectionIndicator:!1,timeline:!1,navigationHelpButton:!1,navigationInstructionsInitiallyVisible:!1},this.getMapOptions(this.props.mapOptions)));e.scene.globe.baseColor=n.a.Color.WHITE,e.imageryLayers.removeAll(),e.camera.moveEnd.addEventListener(this.updateMapInfoState),this.hand=new n.a.ScreenSpaceEventHandler(e.scene.canvas),this.subscribeClickEvent(e),this.hand.setInputAction(Object(P.throttle)(this.onMouseMove.bind(this),500),n.a.ScreenSpaceEventType.MOUSE_MOVE),e.camera.setView({destination:n.a.Cartesian3.fromDegrees(this.props.center.x,this.props.center.y,this.getHeightFromZoom(this.props.zoom))}),this.setMousePointer(this.props.mousePointer),this.map=e,this.forceUpdate(),this.props.mapOptions.navigationTools&&(this.cesiumNavigation=window.CesiumNavigation,this.cesiumNavigation&&this.cesiumNavigation.navigationInitialization(this.props.id,e)),this.props.registerHooks&&this.registerHooks()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){return e.mousePointer!==this.props.mousePointer&&this.setMousePointer(e.mousePointer),e.mapStateSource!==this.props.id&&this._updateMapPositionFromNewProps(e),!1}},{key:"componentWillUnmount",value:function(){this.clickStream$.complete(),this.pauserStream$.complete(),this.hand.destroy(),this.getDocument().removeEventListener("gesturestart",this.gestureStartListener),this.map.destroy()}},{key:"render",value:function(){var e=this,t=this.map,r=this.props.projection,o=t?u.a.Children.map(this.props.children,(function(o){return o?u.a.cloneElement(o,{map:t,projection:r,onCreationError:e.props.onCreationError}):null})):null;return u.a.createElement("div",{id:this.props.id},o)}}])&&j(t.prototype,r),o&&j(t,o),a}(u.a.Component);k(L,"propTypes",{id:a.a.string,document:a.a.object,center:m.default.PropTypes.center,zoom:a.a.number.isRequired,mapStateSource:m.default.PropTypes.mapStateSource,projection:a.a.string,onMapViewChanges:a.a.func,onCreationError:a.a.func,onClick:a.a.func,onMouseMove:a.a.func,mapOptions:a.a.object,standardWidth:a.a.number,standardHeight:a.a.number,mousePointer:a.a.string,zoomToHeight:a.a.number,registerHooks:a.a.bool,hookRegister:a.a.object,viewerOptions:a.a.object}),k(L,"defaultProps",{id:"map",onMapViewChanges:function(){},onClick:function(){},onCreationError:function(){},projection:"EPSG:3857",mapOptions:{},standardWidth:512,standardHeight:512,zoomToHeight:8e7,registerHooks:!0,hookRegister:{registerHook:h.registerHook},viewerOptions:{orientation:{heading:0,pitch:-1*Math.PI/2,roll:0}}}),t.default=L},"./MapStore2/web/client/libs/cesium.js":function(e,t){e.exports=window.Cesium},"./MapStore2/web/client/utils/cesium/ClickUtils.js":function(e,t,r){var o=r("./MapStore2/web/client/libs/cesium.js");e.exports={getMouseXYZ:function(e,t){var r=e.scene,n=t.position||t.endPosition;if(!n)return null;var i=e.camera.getPickRay(n),a=e.scene.globe.pick(i,e.scene),s=r._globe.ellipsoid;if(o.defined(a)){var p=s.cartesianToCartographic(a),c=function(e,t){if(null!==t.position){var r=e.scene,o=r._globe.ellipsoid;return r._camera.pickEllipsoid(t.position||t.endPosition,o)}return null}(e,t);return c&&(p.height=r._globe.getHeight(p),p.cartesian=c,p.position=a),p}return null},getMouseTile:function(e,t){var r=e.scene;if(!t.position)return null;var o=e.camera.getPickRay(t.position);return e.scene.globe.pickTile(o,r)}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/12.1a3b4ad5c93629cbe74d.chunk.js b/geonode_mapstore_client/static/mapstore/dist/12.ed1b6141e36d12447dda.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/12.1a3b4ad5c93629cbe74d.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/12.ed1b6141e36d12447dda.chunk.js index aab771a2f2..cecdfa7cde 100644 --- a/geonode_mapstore_client/static/mapstore/dist/12.1a3b4ad5c93629cbe74d.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/12.ed1b6141e36d12447dda.chunk.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"./node_modules/intl/index.js":function(n,a,e){(function(a){a.IntlPolyfill=e("./node_modules/intl/lib/core.js"),e(8),a.Intl||(a.Intl=a.IntlPolyfill,a.IntlPolyfill.__applyLocaleSensitivePrototypes()),n.exports=a.IntlPolyfill}).call(this,e("./node_modules/webpack/buildin/global.js"))},"./node_modules/intl/lib/core.js":function(n,a,e){"use strict";var r={};r.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var i=function(){var n={};try{return Object.defineProperty(n,"a",{}),"a"in n}catch(n){return!1}}(),t=!i&&!Object.prototype.__defineGetter__,o=Object.prototype.hasOwnProperty,s=i?Object.defineProperty:function(n,a,e){"get"in e&&n.__defineGetter__?n.__defineGetter__(a,e.get):o.call(n,a)&&!("value"in e)||(n[a]=e.value)},u=Array.prototype.indexOf||function(n){var a=this;if(!a.length)return-1;for(var e=arguments[1]||0,r=a.length;e="a"&&e<="z"&&(n=n.slice(0,a)+e.toUpperCase()+n.slice(a+1))}return n}function J(n){return!!w.test(n)&&(!E.test(n)&&!j.test(n))}function P(n){for(var a=void 0,e=void 0,r=1,i=(e=(n=n.toLowerCase()).split("-")).length;r1&&(a.sort(),n=n.replace(RegExp("(?:"+A.source+")+","i"),d.call(a,""))),o.call(F.tags,n)&&(n=F.tags[n]);for(var t=1,s=(e=n.split("-")).length;t-1)return e;var r=e.lastIndexOf("-");if(r<0)return;r>=2&&"-"===e.charAt(r-2)&&(r-=2),e=e.substring(0,r)}}function R(n,a){for(var e=0,r=a.length,i=void 0,t=void 0,o=void 0;e2){var T=h[K+1];-1!==f.call(k,T)&&(b="-"+M+"-"+(v=T))}else{-1!==f(k,"true")&&(v="true")}}if(o.call(e,"[["+M+"]]")){var S=e["[["+M+"]]"];-1!==f.call(k,S)&&S!==v&&(v=S,b="")}g["[["+M+"]]"]=v,d+=b,c++}if(d.length>2){var w=s.indexOf("-x-");if(-1===w)s+=d;else{var E=s.substring(0,w),j=s.substring(w);s=E+d+j}s=P(s)}return g["[[locale]]"]=s,g}function I(n,a){for(var e=a.length,r=new v,i=0;ir)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(t)}return i}var W={getCanonicalLocales:function(n){var a=N(n),e=[];for(var r in a)e.push(a[r]);return e}},_={BHD:3,BYR:0,XOF:0,BIF:0,XAF:0,CLF:4,CLP:0,KMF:0,DJF:0,XPF:0,GNF:0,ISK:0,IQD:3,JPY:0,JOD:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,VUV:0,VND:0};function Q(){var n=arguments[0],a=arguments[1];return this&&this!==W?Y(f(this),n,a):new W.NumberFormat(n,a)}function Y(n,a,e){var r=K(n),i=b();if(!0===r["[[initializedIntlObject]]"])throw new TypeError("`this` object has already been initialized as an Intl object");s(n,"__getInternalProperties",{value:function(){if(arguments[0]===k)return r}}),r["[[initializedIntlObject]]"]=!0;var o=N(a);e=void 0===e?{}:f(e);var u=new p,h=L(e,"localeMatcher","string",new v("lookup","best fit"),"best fit");u["[[localeMatcher]]"]=h;var l=M.NumberFormat["[[localeData]]"],m=C(M.NumberFormat["[[availableLocales]]"],o,u,M.NumberFormat["[[relevantExtensionKeys]]"],l);r["[[locale]]"]=m["[[locale]]"],r["[[numberingSystem]]"]=m["[[nu]]"],r["[[dataLocale]]"]=m["[[dataLocale]]"];var g=m["[[dataLocale]]"],d=L(e,"style","string",new v("decimal","percent","currency"),"decimal");r["[[style]]"]=d;var c,y=L(e,"currency","string");if(void 0!==y&&(c=H(String(y)),!1===G.test(c)))throw new RangeError("'"+y+"' is not a valid currency code");if("currency"===d&&void 0===y)throw new TypeError("Currency code is required when style is currency");var T=void 0;"currency"===d&&(y=y.toUpperCase(),r["[[currency]]"]=y,T=function(n){return void 0!==_[n]?_[n]:2}(y));var S=L(e,"currencyDisplay","string",new v("code","symbol","name"),"symbol");"currency"===d&&(r["[[currencyDisplay]]"]=S);var w=O(e,"minimumIntegerDigits",1,21,1);r["[[minimumIntegerDigits]]"]=w;var E=O(e,"minimumFractionDigits",0,20,"currency"===d?T:0);r["[[minimumFractionDigits]]"]=E;var j=O(e,"maximumFractionDigits",E,20,"currency"===d?Math.max(E,T):"percent"===d?Math.max(E,0):Math.max(E,3));r["[[maximumFractionDigits]]"]=j;var A=e.minimumSignificantDigits,D=e.maximumSignificantDigits;void 0===A&&void 0===D||(A=O(e,"minimumSignificantDigits",1,21,1),D=O(e,"maximumSignificantDigits",A,21,21),r["[[minimumSignificantDigits]]"]=A,r["[[maximumSignificantDigits]]"]=D);var F=L(e,"useGrouping","boolean",void 0,!0);r["[[useGrouping]]"]=F;var J=l[g].patterns[d];return r["[[positivePattern]]"]=J.positivePattern,r["[[negativePattern]]"]=J.negativePattern,r["[[boundFormat]]"]=void 0,r["[[initializedNumberFormat]]"]=!0,t&&(n.format=q.call(n)),i.exp.test(i.input),n}function q(){var n=null!==this&&"object"===r.typeof(this)&&K(this);if(!n||!n["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===n["[[boundFormat]]"]){var a=y.call((function(n){return $(this,Number(n))}),this);n["[[boundFormat]]"]=a}return n["[[boundFormat]]"]}function V(n,a){var e=K(n),r=e["[[dataLocale]]"],i=e["[[numberingSystem]]"],t=M.NumberFormat["[[localeData]]"][r],s=t.symbols[i]||t.symbols.latn,u=void 0;!isNaN(a)&&a<0?(a=-a,u=e["[[negativePattern]]"]):u=e["[[positivePattern]]"];for(var h=new v,l=u.indexOf("{",0),m=0,d=0,y=u.length;l>-1&&ld){var k=u.substring(d,l);g.call(h,{"[[type]]":"literal","[[value]]":k})}var p=u.substring(l+1,m);if("number"===p)if(isNaN(a)){var b=s.nan;g.call(h,{"[[type]]":"nan","[[value]]":b})}else if(isFinite(a)){"percent"===e["[[style]]"]&&isFinite(a)&&(a*=100);var f=void 0;f=o.call(e,"[[minimumSignificantDigits]]")&&o.call(e,"[[maximumSignificantDigits]]")?U(a,e["[[minimumSignificantDigits]]"],e["[[maximumSignificantDigits]]"]):Z(a,e["[[minimumIntegerDigits]]"],e["[[minimumFractionDigits]]"],e["[[maximumFractionDigits]]"]),X[i]?function(){var n=X[i];f=String(f).replace(/\d/g,(function(a){return n[a]}))}():f=String(f);var T=void 0,S=void 0,w=f.indexOf(".",0);if(w>0?(T=f.substring(0,w),S=f.substring(w+1,w.length)):(T=f,S=void 0),!0===e["[[useGrouping]]"]){var E=s.group,j=[],A=t.patterns.primaryGroupSize||3,D=t.patterns.secondaryGroupSize||A;if(T.length>A){var F=T.length-A,H=F%D,J=T.slice(0,H);for(J.length&&g.call(j,J);Hi;i++){r+=e[i]["[[value]]"]}return r}function U(n,a,e){var r=e,i=void 0,t=void 0;if(0===n)i=d.call(Array(r+1),"0"),t=0;else{t=function(n){if("function"==typeof Math.log10)return Math.floor(Math.log10(n));var a=Math.round(Math.log(n)*Math.LOG10E);return a-(Number("1e"+a)>n)}(Math.abs(n));var o=Math.round(Math.exp(Math.abs(t-r+1)*Math.LN10));i=String(Math.round(t-r+1<0?n*o:n/o))}if(t>=r)return i+d.call(Array(t-r+1+1),"0");if(t===r-1)return i;if(t>=0?i=i.slice(0,t+1)+"."+i.slice(t+1):t<0&&(i="0."+d.call(Array(1-(t+1)),"0")+i),i.indexOf(".")>=0&&e>a){for(var s=e-a;s>0&&"0"===i.charAt(i.length-1);)i=i.slice(0,-1),s--;"."===i.charAt(i.length-1)&&(i=i.slice(0,-1))}return i}function Z(n,a,e,r){var i,t=r,o=Math.pow(10,t)*n,s=0===o?"0":o.toFixed(0),u=(i=s.indexOf("e"))>-1?s.slice(i+1):0;u&&(s=s.slice(0,i).replace(".",""),s+=d.call(Array(u-(s.length-1)+1),"0"));var h=void 0;if(0!==t){var l=s.length;if(l<=t)s=d.call(Array(t+1-l+1),"0")+s,l=t+1;var m=s.substring(0,l-t),g=s.substring(l-t,s.length);s=m+"."+g,h=m.length}else h=s.length;for(var c=r-e;c>0&&"0"===s.slice(-1);)s=s.slice(0,-1),c--;("."===s.slice(-1)&&(s=s.slice(0,-1)),ht;t++){var o=e[t],s={};s.type=o["[[type]]"],s.value=o["[[value]]"],r[i]=s,i+=1}return r}(this,Number(n))};var X={arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],deva:["०","१","२","३","४","५","६","७","८","९"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"]};s(W.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var n=void 0,a=new p,e=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],i=null!==this&&"object"===r.typeof(this)&&K(this);if(!i||!i["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var t=0,s=e.length;te&&(e=h,r=s),i++}return r}(l,j);else{var A=L(e,"hour12","boolean");l.hour12=void 0===A?E.hour12:A,w=function(n,a){var e=-1/0,r=void 0,i=0,t=a.length;for(;i=2||y>=2&&c<=1?M>0?h-=6:M<0&&(h-=8):M>1?h-=3:M<-1&&(h-=6)}}s._.hour12!==n.hour12&&(h-=1),h>e&&(e=h,r=s),i++}return r}(l,j)}for(var D in Mn)if(o.call(Mn,D)&&o.call(w,D)){var F=w[D];F=w._&&o.call(w._,D)?w._[D]:F,r["[["+D+"]]"]=F}var J=void 0,P=L(e,"hour12","boolean");if(r["[[hour]]"])if(P=void 0===P?E.hour12:P,r["[[hour12]]"]=P,!0===P){var G=E.hourNo0;r["[[hourNo0]]"]=G,J=w.pattern12}else J=w.pattern;else J=w.pattern;return r["[[pattern]]"]=J,r["[[boundFormat]]"]=void 0,r["[[initializedDateTimeFormat]]"]=!0,t&&(n.format=pn.call(n)),i.exp.test(i.input),n}s(W,"DateTimeFormat",{configurable:!0,writable:!0,value:cn}),s(cn,"prototype",{writable:!1});var Mn={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};function kn(n,a,e){if(void 0===n)n=null;else{var r=f(n);for(var i in n=new p,r)n[i]=r[i]}n=h(n);var t=!0;return"date"!==a&&"any"!==a||void 0===n.weekday&&void 0===n.year&&void 0===n.month&&void 0===n.day||(t=!1),"time"!==a&&"any"!==a||void 0===n.hour&&void 0===n.minute&&void 0===n.second||(t=!1),!t||"date"!==e&&"all"!==e||(n.year=n.month=n.day="numeric"),!t||"time"!==e&&"all"!==e||(n.hour=n.minute=n.second="numeric"),n}function pn(){var n=null!==this&&"object"===r.typeof(this)&&K(this);if(!n||!n["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===n["[[boundFormat]]"]){var a=y.call((function(){var n=Number(0===arguments.length?Date.now():arguments[0]);return bn(this,n)}),this);n["[[boundFormat]]"]=a}return n["[[boundFormat]]"]}function vn(n,a){if(!isFinite(a))throw new RangeError("Invalid valid date passed to format");var e=n.__getInternalProperties(k);b();for(var r,i,t,o,s=e["[[locale]]"],u=new W.NumberFormat([s],{useGrouping:!1}),h=new W.NumberFormat([s],{minimumIntegerDigits:2,useGrouping:!1}),l=(r=a,e["[[calendar]]"],i=e["[[timeZone]]"],new p({"[[weekday]]":(t=new Date(r))[(o="get"+(i||""))+"Day"](),"[[era]]":+(t[o+"FullYear"]()>=0),"[[year]]":t[o+"FullYear"](),"[[month]]":t[o+"Month"](),"[[day]]":t[o+"Date"](),"[[hour]]":t[o+"Hours"](),"[[minute]]":t[o+"Minutes"](),"[[second]]":t[o+"Seconds"](),"[[inDST]]":!1})),m=e["[[pattern]]"],d=new v,c=0,y=m.indexOf("{"),f=0,K=e["[[dataLocale]]"],T=M.DateTimeFormat["[[localeData]]"][K].calendars,S=e["[[calendar]]"];-1!==y;){var w=void 0;if(-1===(f=m.indexOf("}",y)))throw new Error("Unclosed pattern");y>c&&g.call(d,{type:"literal",value:m.substring(c,y)});var E=m.substring(y+1,f);if(Mn.hasOwnProperty(E)){var j=e["[["+E+"]]"],A=l["[["+E+"]]"];if("year"===E&&A<=0?A=1-A:"month"===E?A++:"hour"===E&&!0===e["[[hour12]]"]&&0===(A%=12)&&!0===e["[[hourNo0]]"]&&(A=12),"numeric"===j)w=$(u,A);else if("2-digit"===j)(w=$(h,A)).length>2&&(w=w.slice(-2));else if(j in gn)switch(E){case"month":w=dn(T,S,"months",j,l["[["+E+"]]"]);break;case"weekday":try{w=dn(T,S,"days",j,l["[["+E+"]]"])}catch(n){throw new Error("Could not find weekday data for locale "+s)}break;case"timeZoneName":w="";break;case"era":try{w=dn(T,S,"eras",j,l["[["+E+"]]"])}catch(n){throw new Error("Could not find era data for locale "+s)}break;default:w=l["[["+E+"]]"]}g.call(d,{type:E,value:w})}else if("ampm"===E){w=dn(T,S,"dayPeriods",l["[[hour]]"]>11?"pm":"am",null),g.call(d,{type:"dayPeriod",value:w})}else g.call(d,{type:"literal",value:m.substring(y,f+1)});c=f+1,y=m.indexOf("{",c)}return fi;i++){r+=e[i].value}return r}function fn(n,a){for(var e=vn(n,a),r=[],i=0;e.length>i;i++){var t=e[i];r.push({type:t.type,value:t.value})}return r}M.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},s(W.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:y.call((function(n){if(!o.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var a=b(),e=arguments[1],r=this["[[availableLocales]]"],i=N(n);return a.exp.test(a.input),x(r,i,e)}),M.NumberFormat)}),s(W.DateTimeFormat.prototype,"format",{configurable:!0,get:pn}),s(W.DateTimeFormat.prototype,"formatToParts",{configurable:!0,get:function(){var n=null!==this&&"object"===r.typeof(this)&&K(this);if(!n||!n["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");if(void 0===n["[[boundFormatToParts]]"]){var a=y.call((function(){var n=Number(0===arguments.length?Date.now():arguments[0]);return fn(this,n)}),this);n["[[boundFormatToParts]]"]=a}return n["[[boundFormatToParts]]"]}}),s(W.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var n=void 0,a=new p,e=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],i=null!==this&&"object"===r.typeof(this)&&K(this);if(!i||!i["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var t=0,s=e.length;t2&&4===i[1].length&&g.call(r,i[0]+"-"+i[2]);for(;e=c.call(r);)g.call(M.NumberFormat["[[availableLocales]]"],e),M.NumberFormat["[[localeData]]"][e]=n.number,n.date&&(n.date.nu=n.number.nu,g.call(M.DateTimeFormat["[[availableLocales]]"],e),M.DateTimeFormat["[[localeData]]"][e]=n.date);void 0===D&&function(n){D=n}(a)}(n,n.locale)}}),n.exports=W},"./node_modules/intl/locale-data/jsonp/en.js":function(n,a){IntlPolyfill.__addLocaleData({locale:"en",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:!0,hour12:!0,formats:{short:"{1}, {0}",medium:"{1}, {0}",full:"{1} 'at' {0}",long:"{1} 'at' {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},dateFormats:{yMMMMEEEEd:"EEEE, MMMM d, y",yMMMMd:"MMMM d, y",yMMMd:"MMM d, y",yMd:"M/d/yy"},timeFormats:{hmmsszzzz:"h:mm:ss a zzzz",hmsz:"h:mm:ss a z",hms:"h:mm:ss a",hm:"h:mm a"}},calendars:{buddhist:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["BE"],short:["BE"],long:["BE"]},dayPeriods:{am:"AM",pm:"PM"}},chinese:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Mo1","Mo2","Mo3","Mo4","Mo5","Mo6","Mo7","Mo8","Mo9","Mo10","Mo11","Mo12"],long:["Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriods:{am:"AM",pm:"PM"}},coptic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"],long:["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},dangi:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Mo1","Mo2","Mo3","Mo4","Mo5","Mo6","Mo7","Mo8","Mo9","Mo10","Mo11","Mo12"],long:["Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriods:{am:"AM",pm:"PM"}},ethiopic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],long:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},ethioaa:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],long:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0"],short:["ERA0"],long:["ERA0"]},dayPeriods:{am:"AM",pm:"PM"}},generic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},gregory:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["B","A","BCE","CE"],short:["BC","AD","BCE","CE"],long:["Before Christ","Anno Domini","Before Common Era","Common Era"]},dayPeriods:{am:"AM",pm:"PM"}},hebrew:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13","7"],short:["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"],long:["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AM"],short:["AM"],long:["AM"]},dayPeriods:{am:"AM",pm:"PM"}},indian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],long:["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Saka"],short:["Saka"],long:["Saka"]},dayPeriods:{am:"AM",pm:"PM"}},islamic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],long:["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AH"],short:["AH"],long:["AH"]},dayPeriods:{am:"AM",pm:"PM"}},islamicc:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],long:["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AH"],short:["AH"],long:["AH"]},dayPeriods:{am:"AM",pm:"PM"}},japanese:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","M","T","S","H"],short:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"],long:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"]},dayPeriods:{am:"AM",pm:"PM"}},persian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],long:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AP"],short:["AP"],long:["AP"]},dayPeriods:{am:"AM",pm:"PM"}},roc:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Before R.O.C.","Minguo"],short:["Before R.O.C.","Minguo"],long:["Before R.O.C.","Minguo"]},dayPeriods:{am:"AM",pm:"PM"}}}},number:{nu:["latn"],patterns:{decimal:{positivePattern:"{number}",negativePattern:"{minusSign}{number}"},currency:{positivePattern:"{currency}{number}",negativePattern:"{minusSign}{currency}{number}"},percent:{positivePattern:"{number}{percentSign}",negativePattern:"{minusSign}{number}{percentSign}"}},symbols:{latn:{decimal:".",group:",",nan:"NaN",plusSign:"+",minusSign:"-",percentSign:"%",infinity:"∞"}},currencies:{AUD:"A$",BRL:"R$",CAD:"CA$",CNY:"CN¥",EUR:"€",GBP:"£",HKD:"HK$",ILS:"₪",INR:"₹",JPY:"¥",KRW:"₩",MXN:"MX$",NZD:"NZ$",TWD:"NT$",USD:"$",VND:"₫",XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF"}}})},"./node_modules/intl/locale-data/jsonp/it.js":function(n,a){IntlPolyfill.__addLocaleData({locale:"it",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:!0,hour12:!1,formats:{short:"{1}, {0}",medium:"{1}, {0}",full:"{1} {0}",long:"{1} {0}",availableFormats:{d:"d",E:"ccc",Ed:"E d",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"d MMM y G",GyMMMEd:"E d MMM y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"d/M",MEd:"E d/M",MMM:"LLL",MMMd:"d MMM",MMMEd:"E d MMM",MMMMd:"d MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"d/M/y",yMEd:"E d/M/y",yMMM:"MMM y",yMMMd:"d MMM y",yMMMEd:"E d MMM y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},dateFormats:{yMMMMEEEEd:"EEEE d MMMM y",yMMMMd:"d MMMM y",yMMMd:"dd MMM y",yMd:"dd/MM/yy"},timeFormats:{hmmsszzzz:"HH:mm:ss zzzz",hmsz:"HH:mm:ss z",hms:"HH:mm:ss",hm:"HH:mm"}},calendars:{buddhist:{months:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],short:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],long:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["EB"],short:["EB"],long:["EB"]},dayPeriods:{am:"AM",pm:"PM"}},chinese:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},dayPeriods:{am:"AM",pm:"PM"}},coptic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"],long:["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},dangi:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},dayPeriods:{am:"AM",pm:"PM"}},ethiopic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],long:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},ethioaa:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],long:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["ERA0"],short:["ERA0"],long:["ERA0"]},dayPeriods:{am:"AM",pm:"PM"}},generic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},gregory:{months:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],short:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],long:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["aC","dC","BCE","CE"],short:["a.C.","d.C.","a.E.V.","E.V."],long:["a.C.","d.C.","avanti Era Volgare","Era Volgare"]},dayPeriods:{am:"AM",pm:"PM"}},hebrew:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13","7"],short:["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"],long:["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["AM"],short:["AM"],long:["AM"]},dayPeriods:{am:"AM",pm:"PM"}},indian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],long:["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["Saka"],short:["Saka"],long:["Saka"]},dayPeriods:{am:"AM",pm:"PM"}},islamic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],long:["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["AH"],short:["AH"],long:["AH"]},dayPeriods:{am:"AM",pm:"PM"}},islamicc:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],long:["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["AH"],short:["AH"],long:["AH"]},dayPeriods:{am:"AM",pm:"PM"}},japanese:{months:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],short:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],long:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","M","T","S","H"],short:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"],long:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"]},dayPeriods:{am:"AM",pm:"PM"}},persian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],long:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["AP"],short:["AP"],long:["AP"]},dayPeriods:{am:"AM",pm:"PM"}},roc:{months:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],short:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],long:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["Prima di R.O.C.","Minguo"],short:["Prima di R.O.C.","Minguo"],long:["Prima di R.O.C.","Minguo"]},dayPeriods:{am:"AM",pm:"PM"}}}},number:{nu:["latn"],patterns:{decimal:{positivePattern:"{number}",negativePattern:"{minusSign}{number}"},currency:{positivePattern:"{number} {currency}",negativePattern:"{minusSign}{number} {currency}"},percent:{positivePattern:"{number}{percentSign}",negativePattern:"{minusSign}{number}{percentSign}"}},symbols:{latn:{decimal:",",group:".",nan:"NaN",plusSign:"+",minusSign:"-",percentSign:"%",infinity:"∞"}},currencies:{AUD:"A$",CAD:"CA$",CNY:"CN¥",EUR:"€",GBP:"£",ILS:"₪",INR:"₹",NZD:"NZ$",THB:"฿",USD:"US$",VND:"₫",XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF"}}})}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"./node_modules/intl/index.js":function(n,a,e){(function(a){a.IntlPolyfill=e("./node_modules/intl/lib/core.js"),e(9),a.Intl||(a.Intl=a.IntlPolyfill,a.IntlPolyfill.__applyLocaleSensitivePrototypes()),n.exports=a.IntlPolyfill}).call(this,e("./node_modules/webpack/buildin/global.js"))},"./node_modules/intl/lib/core.js":function(n,a,e){"use strict";var r={};r.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var i=function(){var n={};try{return Object.defineProperty(n,"a",{}),"a"in n}catch(n){return!1}}(),t=!i&&!Object.prototype.__defineGetter__,o=Object.prototype.hasOwnProperty,s=i?Object.defineProperty:function(n,a,e){"get"in e&&n.__defineGetter__?n.__defineGetter__(a,e.get):o.call(n,a)&&!("value"in e)||(n[a]=e.value)},u=Array.prototype.indexOf||function(n){var a=this;if(!a.length)return-1;for(var e=arguments[1]||0,r=a.length;e="a"&&e<="z"&&(n=n.slice(0,a)+e.toUpperCase()+n.slice(a+1))}return n}function J(n){return!!w.test(n)&&(!E.test(n)&&!j.test(n))}function P(n){for(var a=void 0,e=void 0,r=1,i=(e=(n=n.toLowerCase()).split("-")).length;r1&&(a.sort(),n=n.replace(RegExp("(?:"+A.source+")+","i"),d.call(a,""))),o.call(F.tags,n)&&(n=F.tags[n]);for(var t=1,s=(e=n.split("-")).length;t-1)return e;var r=e.lastIndexOf("-");if(r<0)return;r>=2&&"-"===e.charAt(r-2)&&(r-=2),e=e.substring(0,r)}}function R(n,a){for(var e=0,r=a.length,i=void 0,t=void 0,o=void 0;e2){var T=h[K+1];-1!==f.call(k,T)&&(b="-"+M+"-"+(v=T))}else{-1!==f(k,"true")&&(v="true")}}if(o.call(e,"[["+M+"]]")){var S=e["[["+M+"]]"];-1!==f.call(k,S)&&S!==v&&(v=S,b="")}g["[["+M+"]]"]=v,d+=b,c++}if(d.length>2){var w=s.indexOf("-x-");if(-1===w)s+=d;else{var E=s.substring(0,w),j=s.substring(w);s=E+d+j}s=P(s)}return g["[[locale]]"]=s,g}function I(n,a){for(var e=a.length,r=new v,i=0;ir)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(t)}return i}var W={getCanonicalLocales:function(n){var a=N(n),e=[];for(var r in a)e.push(a[r]);return e}},_={BHD:3,BYR:0,XOF:0,BIF:0,XAF:0,CLF:4,CLP:0,KMF:0,DJF:0,XPF:0,GNF:0,ISK:0,IQD:3,JPY:0,JOD:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,VUV:0,VND:0};function Q(){var n=arguments[0],a=arguments[1];return this&&this!==W?Y(f(this),n,a):new W.NumberFormat(n,a)}function Y(n,a,e){var r=K(n),i=b();if(!0===r["[[initializedIntlObject]]"])throw new TypeError("`this` object has already been initialized as an Intl object");s(n,"__getInternalProperties",{value:function(){if(arguments[0]===k)return r}}),r["[[initializedIntlObject]]"]=!0;var o=N(a);e=void 0===e?{}:f(e);var u=new p,h=L(e,"localeMatcher","string",new v("lookup","best fit"),"best fit");u["[[localeMatcher]]"]=h;var l=M.NumberFormat["[[localeData]]"],m=C(M.NumberFormat["[[availableLocales]]"],o,u,M.NumberFormat["[[relevantExtensionKeys]]"],l);r["[[locale]]"]=m["[[locale]]"],r["[[numberingSystem]]"]=m["[[nu]]"],r["[[dataLocale]]"]=m["[[dataLocale]]"];var g=m["[[dataLocale]]"],d=L(e,"style","string",new v("decimal","percent","currency"),"decimal");r["[[style]]"]=d;var c,y=L(e,"currency","string");if(void 0!==y&&(c=H(String(y)),!1===G.test(c)))throw new RangeError("'"+y+"' is not a valid currency code");if("currency"===d&&void 0===y)throw new TypeError("Currency code is required when style is currency");var T=void 0;"currency"===d&&(y=y.toUpperCase(),r["[[currency]]"]=y,T=function(n){return void 0!==_[n]?_[n]:2}(y));var S=L(e,"currencyDisplay","string",new v("code","symbol","name"),"symbol");"currency"===d&&(r["[[currencyDisplay]]"]=S);var w=O(e,"minimumIntegerDigits",1,21,1);r["[[minimumIntegerDigits]]"]=w;var E=O(e,"minimumFractionDigits",0,20,"currency"===d?T:0);r["[[minimumFractionDigits]]"]=E;var j=O(e,"maximumFractionDigits",E,20,"currency"===d?Math.max(E,T):"percent"===d?Math.max(E,0):Math.max(E,3));r["[[maximumFractionDigits]]"]=j;var A=e.minimumSignificantDigits,D=e.maximumSignificantDigits;void 0===A&&void 0===D||(A=O(e,"minimumSignificantDigits",1,21,1),D=O(e,"maximumSignificantDigits",A,21,21),r["[[minimumSignificantDigits]]"]=A,r["[[maximumSignificantDigits]]"]=D);var F=L(e,"useGrouping","boolean",void 0,!0);r["[[useGrouping]]"]=F;var J=l[g].patterns[d];return r["[[positivePattern]]"]=J.positivePattern,r["[[negativePattern]]"]=J.negativePattern,r["[[boundFormat]]"]=void 0,r["[[initializedNumberFormat]]"]=!0,t&&(n.format=q.call(n)),i.exp.test(i.input),n}function q(){var n=null!==this&&"object"===r.typeof(this)&&K(this);if(!n||!n["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===n["[[boundFormat]]"]){var a=y.call((function(n){return $(this,Number(n))}),this);n["[[boundFormat]]"]=a}return n["[[boundFormat]]"]}function V(n,a){var e=K(n),r=e["[[dataLocale]]"],i=e["[[numberingSystem]]"],t=M.NumberFormat["[[localeData]]"][r],s=t.symbols[i]||t.symbols.latn,u=void 0;!isNaN(a)&&a<0?(a=-a,u=e["[[negativePattern]]"]):u=e["[[positivePattern]]"];for(var h=new v,l=u.indexOf("{",0),m=0,d=0,y=u.length;l>-1&&ld){var k=u.substring(d,l);g.call(h,{"[[type]]":"literal","[[value]]":k})}var p=u.substring(l+1,m);if("number"===p)if(isNaN(a)){var b=s.nan;g.call(h,{"[[type]]":"nan","[[value]]":b})}else if(isFinite(a)){"percent"===e["[[style]]"]&&isFinite(a)&&(a*=100);var f=void 0;f=o.call(e,"[[minimumSignificantDigits]]")&&o.call(e,"[[maximumSignificantDigits]]")?U(a,e["[[minimumSignificantDigits]]"],e["[[maximumSignificantDigits]]"]):Z(a,e["[[minimumIntegerDigits]]"],e["[[minimumFractionDigits]]"],e["[[maximumFractionDigits]]"]),X[i]?function(){var n=X[i];f=String(f).replace(/\d/g,(function(a){return n[a]}))}():f=String(f);var T=void 0,S=void 0,w=f.indexOf(".",0);if(w>0?(T=f.substring(0,w),S=f.substring(w+1,w.length)):(T=f,S=void 0),!0===e["[[useGrouping]]"]){var E=s.group,j=[],A=t.patterns.primaryGroupSize||3,D=t.patterns.secondaryGroupSize||A;if(T.length>A){var F=T.length-A,H=F%D,J=T.slice(0,H);for(J.length&&g.call(j,J);Hi;i++){r+=e[i]["[[value]]"]}return r}function U(n,a,e){var r=e,i=void 0,t=void 0;if(0===n)i=d.call(Array(r+1),"0"),t=0;else{t=function(n){if("function"==typeof Math.log10)return Math.floor(Math.log10(n));var a=Math.round(Math.log(n)*Math.LOG10E);return a-(Number("1e"+a)>n)}(Math.abs(n));var o=Math.round(Math.exp(Math.abs(t-r+1)*Math.LN10));i=String(Math.round(t-r+1<0?n*o:n/o))}if(t>=r)return i+d.call(Array(t-r+1+1),"0");if(t===r-1)return i;if(t>=0?i=i.slice(0,t+1)+"."+i.slice(t+1):t<0&&(i="0."+d.call(Array(1-(t+1)),"0")+i),i.indexOf(".")>=0&&e>a){for(var s=e-a;s>0&&"0"===i.charAt(i.length-1);)i=i.slice(0,-1),s--;"."===i.charAt(i.length-1)&&(i=i.slice(0,-1))}return i}function Z(n,a,e,r){var i,t=r,o=Math.pow(10,t)*n,s=0===o?"0":o.toFixed(0),u=(i=s.indexOf("e"))>-1?s.slice(i+1):0;u&&(s=s.slice(0,i).replace(".",""),s+=d.call(Array(u-(s.length-1)+1),"0"));var h=void 0;if(0!==t){var l=s.length;if(l<=t)s=d.call(Array(t+1-l+1),"0")+s,l=t+1;var m=s.substring(0,l-t),g=s.substring(l-t,s.length);s=m+"."+g,h=m.length}else h=s.length;for(var c=r-e;c>0&&"0"===s.slice(-1);)s=s.slice(0,-1),c--;("."===s.slice(-1)&&(s=s.slice(0,-1)),ht;t++){var o=e[t],s={};s.type=o["[[type]]"],s.value=o["[[value]]"],r[i]=s,i+=1}return r}(this,Number(n))};var X={arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],deva:["०","१","२","३","४","५","६","७","८","९"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"]};s(W.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var n=void 0,a=new p,e=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],i=null!==this&&"object"===r.typeof(this)&&K(this);if(!i||!i["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var t=0,s=e.length;te&&(e=h,r=s),i++}return r}(l,j);else{var A=L(e,"hour12","boolean");l.hour12=void 0===A?E.hour12:A,w=function(n,a){var e=-1/0,r=void 0,i=0,t=a.length;for(;i=2||y>=2&&c<=1?M>0?h-=6:M<0&&(h-=8):M>1?h-=3:M<-1&&(h-=6)}}s._.hour12!==n.hour12&&(h-=1),h>e&&(e=h,r=s),i++}return r}(l,j)}for(var D in Mn)if(o.call(Mn,D)&&o.call(w,D)){var F=w[D];F=w._&&o.call(w._,D)?w._[D]:F,r["[["+D+"]]"]=F}var J=void 0,P=L(e,"hour12","boolean");if(r["[[hour]]"])if(P=void 0===P?E.hour12:P,r["[[hour12]]"]=P,!0===P){var G=E.hourNo0;r["[[hourNo0]]"]=G,J=w.pattern12}else J=w.pattern;else J=w.pattern;return r["[[pattern]]"]=J,r["[[boundFormat]]"]=void 0,r["[[initializedDateTimeFormat]]"]=!0,t&&(n.format=pn.call(n)),i.exp.test(i.input),n}s(W,"DateTimeFormat",{configurable:!0,writable:!0,value:cn}),s(cn,"prototype",{writable:!1});var Mn={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};function kn(n,a,e){if(void 0===n)n=null;else{var r=f(n);for(var i in n=new p,r)n[i]=r[i]}n=h(n);var t=!0;return"date"!==a&&"any"!==a||void 0===n.weekday&&void 0===n.year&&void 0===n.month&&void 0===n.day||(t=!1),"time"!==a&&"any"!==a||void 0===n.hour&&void 0===n.minute&&void 0===n.second||(t=!1),!t||"date"!==e&&"all"!==e||(n.year=n.month=n.day="numeric"),!t||"time"!==e&&"all"!==e||(n.hour=n.minute=n.second="numeric"),n}function pn(){var n=null!==this&&"object"===r.typeof(this)&&K(this);if(!n||!n["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===n["[[boundFormat]]"]){var a=y.call((function(){var n=Number(0===arguments.length?Date.now():arguments[0]);return bn(this,n)}),this);n["[[boundFormat]]"]=a}return n["[[boundFormat]]"]}function vn(n,a){if(!isFinite(a))throw new RangeError("Invalid valid date passed to format");var e=n.__getInternalProperties(k);b();for(var r,i,t,o,s=e["[[locale]]"],u=new W.NumberFormat([s],{useGrouping:!1}),h=new W.NumberFormat([s],{minimumIntegerDigits:2,useGrouping:!1}),l=(r=a,e["[[calendar]]"],i=e["[[timeZone]]"],new p({"[[weekday]]":(t=new Date(r))[(o="get"+(i||""))+"Day"](),"[[era]]":+(t[o+"FullYear"]()>=0),"[[year]]":t[o+"FullYear"](),"[[month]]":t[o+"Month"](),"[[day]]":t[o+"Date"](),"[[hour]]":t[o+"Hours"](),"[[minute]]":t[o+"Minutes"](),"[[second]]":t[o+"Seconds"](),"[[inDST]]":!1})),m=e["[[pattern]]"],d=new v,c=0,y=m.indexOf("{"),f=0,K=e["[[dataLocale]]"],T=M.DateTimeFormat["[[localeData]]"][K].calendars,S=e["[[calendar]]"];-1!==y;){var w=void 0;if(-1===(f=m.indexOf("}",y)))throw new Error("Unclosed pattern");y>c&&g.call(d,{type:"literal",value:m.substring(c,y)});var E=m.substring(y+1,f);if(Mn.hasOwnProperty(E)){var j=e["[["+E+"]]"],A=l["[["+E+"]]"];if("year"===E&&A<=0?A=1-A:"month"===E?A++:"hour"===E&&!0===e["[[hour12]]"]&&0===(A%=12)&&!0===e["[[hourNo0]]"]&&(A=12),"numeric"===j)w=$(u,A);else if("2-digit"===j)(w=$(h,A)).length>2&&(w=w.slice(-2));else if(j in gn)switch(E){case"month":w=dn(T,S,"months",j,l["[["+E+"]]"]);break;case"weekday":try{w=dn(T,S,"days",j,l["[["+E+"]]"])}catch(n){throw new Error("Could not find weekday data for locale "+s)}break;case"timeZoneName":w="";break;case"era":try{w=dn(T,S,"eras",j,l["[["+E+"]]"])}catch(n){throw new Error("Could not find era data for locale "+s)}break;default:w=l["[["+E+"]]"]}g.call(d,{type:E,value:w})}else if("ampm"===E){w=dn(T,S,"dayPeriods",l["[[hour]]"]>11?"pm":"am",null),g.call(d,{type:"dayPeriod",value:w})}else g.call(d,{type:"literal",value:m.substring(y,f+1)});c=f+1,y=m.indexOf("{",c)}return fi;i++){r+=e[i].value}return r}function fn(n,a){for(var e=vn(n,a),r=[],i=0;e.length>i;i++){var t=e[i];r.push({type:t.type,value:t.value})}return r}M.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},s(W.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:y.call((function(n){if(!o.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var a=b(),e=arguments[1],r=this["[[availableLocales]]"],i=N(n);return a.exp.test(a.input),x(r,i,e)}),M.NumberFormat)}),s(W.DateTimeFormat.prototype,"format",{configurable:!0,get:pn}),s(W.DateTimeFormat.prototype,"formatToParts",{configurable:!0,get:function(){var n=null!==this&&"object"===r.typeof(this)&&K(this);if(!n||!n["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");if(void 0===n["[[boundFormatToParts]]"]){var a=y.call((function(){var n=Number(0===arguments.length?Date.now():arguments[0]);return fn(this,n)}),this);n["[[boundFormatToParts]]"]=a}return n["[[boundFormatToParts]]"]}}),s(W.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var n=void 0,a=new p,e=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],i=null!==this&&"object"===r.typeof(this)&&K(this);if(!i||!i["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var t=0,s=e.length;t2&&4===i[1].length&&g.call(r,i[0]+"-"+i[2]);for(;e=c.call(r);)g.call(M.NumberFormat["[[availableLocales]]"],e),M.NumberFormat["[[localeData]]"][e]=n.number,n.date&&(n.date.nu=n.number.nu,g.call(M.DateTimeFormat["[[availableLocales]]"],e),M.DateTimeFormat["[[localeData]]"][e]=n.date);void 0===D&&function(n){D=n}(a)}(n,n.locale)}}),n.exports=W},"./node_modules/intl/locale-data/jsonp/en.js":function(n,a){IntlPolyfill.__addLocaleData({locale:"en",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:!0,hour12:!0,formats:{short:"{1}, {0}",medium:"{1}, {0}",full:"{1} 'at' {0}",long:"{1} 'at' {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},dateFormats:{yMMMMEEEEd:"EEEE, MMMM d, y",yMMMMd:"MMMM d, y",yMMMd:"MMM d, y",yMd:"M/d/yy"},timeFormats:{hmmsszzzz:"h:mm:ss a zzzz",hmsz:"h:mm:ss a z",hms:"h:mm:ss a",hm:"h:mm a"}},calendars:{buddhist:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["BE"],short:["BE"],long:["BE"]},dayPeriods:{am:"AM",pm:"PM"}},chinese:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Mo1","Mo2","Mo3","Mo4","Mo5","Mo6","Mo7","Mo8","Mo9","Mo10","Mo11","Mo12"],long:["Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriods:{am:"AM",pm:"PM"}},coptic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"],long:["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},dangi:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Mo1","Mo2","Mo3","Mo4","Mo5","Mo6","Mo7","Mo8","Mo9","Mo10","Mo11","Mo12"],long:["Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriods:{am:"AM",pm:"PM"}},ethiopic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],long:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},ethioaa:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],long:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0"],short:["ERA0"],long:["ERA0"]},dayPeriods:{am:"AM",pm:"PM"}},generic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},gregory:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["B","A","BCE","CE"],short:["BC","AD","BCE","CE"],long:["Before Christ","Anno Domini","Before Common Era","Common Era"]},dayPeriods:{am:"AM",pm:"PM"}},hebrew:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13","7"],short:["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"],long:["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AM"],short:["AM"],long:["AM"]},dayPeriods:{am:"AM",pm:"PM"}},indian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],long:["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Saka"],short:["Saka"],long:["Saka"]},dayPeriods:{am:"AM",pm:"PM"}},islamic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],long:["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AH"],short:["AH"],long:["AH"]},dayPeriods:{am:"AM",pm:"PM"}},islamicc:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],long:["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AH"],short:["AH"],long:["AH"]},dayPeriods:{am:"AM",pm:"PM"}},japanese:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","M","T","S","H"],short:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"],long:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"]},dayPeriods:{am:"AM",pm:"PM"}},persian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],long:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AP"],short:["AP"],long:["AP"]},dayPeriods:{am:"AM",pm:"PM"}},roc:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Before R.O.C.","Minguo"],short:["Before R.O.C.","Minguo"],long:["Before R.O.C.","Minguo"]},dayPeriods:{am:"AM",pm:"PM"}}}},number:{nu:["latn"],patterns:{decimal:{positivePattern:"{number}",negativePattern:"{minusSign}{number}"},currency:{positivePattern:"{currency}{number}",negativePattern:"{minusSign}{currency}{number}"},percent:{positivePattern:"{number}{percentSign}",negativePattern:"{minusSign}{number}{percentSign}"}},symbols:{latn:{decimal:".",group:",",nan:"NaN",plusSign:"+",minusSign:"-",percentSign:"%",infinity:"∞"}},currencies:{AUD:"A$",BRL:"R$",CAD:"CA$",CNY:"CN¥",EUR:"€",GBP:"£",HKD:"HK$",ILS:"₪",INR:"₹",JPY:"¥",KRW:"₩",MXN:"MX$",NZD:"NZ$",TWD:"NT$",USD:"$",VND:"₫",XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF"}}})},"./node_modules/intl/locale-data/jsonp/it.js":function(n,a){IntlPolyfill.__addLocaleData({locale:"it",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:!0,hour12:!1,formats:{short:"{1}, {0}",medium:"{1}, {0}",full:"{1} {0}",long:"{1} {0}",availableFormats:{d:"d",E:"ccc",Ed:"E d",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"d MMM y G",GyMMMEd:"E d MMM y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"d/M",MEd:"E d/M",MMM:"LLL",MMMd:"d MMM",MMMEd:"E d MMM",MMMMd:"d MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"d/M/y",yMEd:"E d/M/y",yMMM:"MMM y",yMMMd:"d MMM y",yMMMEd:"E d MMM y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},dateFormats:{yMMMMEEEEd:"EEEE d MMMM y",yMMMMd:"d MMMM y",yMMMd:"dd MMM y",yMd:"dd/MM/yy"},timeFormats:{hmmsszzzz:"HH:mm:ss zzzz",hmsz:"HH:mm:ss z",hms:"HH:mm:ss",hm:"HH:mm"}},calendars:{buddhist:{months:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],short:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],long:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["EB"],short:["EB"],long:["EB"]},dayPeriods:{am:"AM",pm:"PM"}},chinese:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},dayPeriods:{am:"AM",pm:"PM"}},coptic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"],long:["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},dangi:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},dayPeriods:{am:"AM",pm:"PM"}},ethiopic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],long:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},ethioaa:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],short:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],long:["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["ERA0"],short:["ERA0"],long:["ERA0"]},dayPeriods:{am:"AM",pm:"PM"}},generic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],long:["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["ERA0","ERA1"],short:["ERA0","ERA1"],long:["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},gregory:{months:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],short:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],long:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["aC","dC","BCE","CE"],short:["a.C.","d.C.","a.E.V.","E.V."],long:["a.C.","d.C.","avanti Era Volgare","Era Volgare"]},dayPeriods:{am:"AM",pm:"PM"}},hebrew:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13","7"],short:["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"],long:["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["AM"],short:["AM"],long:["AM"]},dayPeriods:{am:"AM",pm:"PM"}},indian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],long:["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["Saka"],short:["Saka"],long:["Saka"]},dayPeriods:{am:"AM",pm:"PM"}},islamic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],long:["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["AH"],short:["AH"],long:["AH"]},dayPeriods:{am:"AM",pm:"PM"}},islamicc:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],long:["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["AH"],short:["AH"],long:["AH"]},dayPeriods:{am:"AM",pm:"PM"}},japanese:{months:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],short:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],long:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","M","T","S","H"],short:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"],long:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"]},dayPeriods:{am:"AM",pm:"PM"}},persian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],short:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],long:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["AP"],short:["AP"],long:["AP"]},dayPeriods:{am:"AM",pm:"PM"}},roc:{months:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],short:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],long:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},days:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],long:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},eras:{narrow:["Prima di R.O.C.","Minguo"],short:["Prima di R.O.C.","Minguo"],long:["Prima di R.O.C.","Minguo"]},dayPeriods:{am:"AM",pm:"PM"}}}},number:{nu:["latn"],patterns:{decimal:{positivePattern:"{number}",negativePattern:"{minusSign}{number}"},currency:{positivePattern:"{number} {currency}",negativePattern:"{minusSign}{number} {currency}"},percent:{positivePattern:"{number}{percentSign}",negativePattern:"{minusSign}{number}{percentSign}"}},symbols:{latn:{decimal:",",group:".",nan:"NaN",plusSign:"+",minusSign:"-",percentSign:"%",infinity:"∞"}},currencies:{AUD:"A$",CAD:"CA$",CNY:"CN¥",EUR:"€",GBP:"£",ILS:"₪",INR:"₹",NZD:"NZ$",THB:"฿",USD:"US$",VND:"₫",XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF"}}})}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/13.1a3b4ad5c93629cbe74d.chunk.js b/geonode_mapstore_client/static/mapstore/dist/13.ed1b6141e36d12447dda.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/13.1a3b4ad5c93629cbe74d.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/13.ed1b6141e36d12447dda.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/14.1a3b4ad5c93629cbe74d.chunk.js b/geonode_mapstore_client/static/mapstore/dist/14.ed1b6141e36d12447dda.chunk.js similarity index 59% rename from geonode_mapstore_client/static/mapstore/dist/14.1a3b4ad5c93629cbe74d.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/14.ed1b6141e36d12447dda.chunk.js index 9da3007674..ac1baf4a4c 100644 --- a/geonode_mapstore_client/static/mapstore/dist/14.1a3b4ad5c93629cbe74d.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/14.ed1b6141e36d12447dda.chunk.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[14,6,"plugins/geostory-navigation-plugin~plugins/share-plugin",9,"vendors~plugins/notifications-plugin",19],{"./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/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 E})),n.d(t,"s",(function(){return j})),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 E(e){return{type:o,backgroundId:e}}function j(){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 E})),n.d(t,"c",(function(){return j})),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 N})),n.d(t,"r",(function(){return D})),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:E,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:D,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:N,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:j,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 E})),n.d(t,"b",(function(){return j})),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 N})),n.d(t,"r",(function(){return D})),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 Ee})),n.d(t,"rb",(function(){return je})),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 Ne})),n.d(t,"fb",(function(){return De})),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",E="QUERY:UPDATE_FILTER",j="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",N="FEATUREGRID:CLEAR_CHANGES_CONFIRMED",D="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:N}}function se(){return{type:D}}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:j,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:E,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 Ee(){return{type:l,mode:Y.VIEW}}function je(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 Ne(){return{type:P}}function De(){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 E})),n.d(t,"y",(function(){return j})),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 N})),n.d(t,"E",(function(){return D})),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",E="IDENTIFY:CHANGE_FORMAT",j="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 N(){return{type:g}}function D(){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:E,format:e}},J=function(e){return{type:j,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 E})),n.d(t,"B",(function(){return j})),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 N}));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 E})),n.d(t,"n",(function(){return j})),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}},E=function(){return{type:p}},j=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 E})),n.d(t,"C",(function(){return j})),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 N})),n.d(t,"L",(function(){return D})),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 Ee})),n.d(t,"cb",(function(){return je})),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",E="REMOVE_SPATIAL_SELECT",j="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",N="ZONE_CHANGE",D="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:E}}function me(e){return{type:j,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:N,id:e,value:t}}function Se(e){return{type:U,rowId:(new Date).getTime(),groupId:e}}function Ee(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 je(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 E})),n.d(t,"C",(function(){return j})),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 N})),n.d(t,"I",(function(){return D})),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 E(e){return{type:v,activeSearchTool:e}}function j(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 N(e,t,n){return{type:m,item:e,mapConfig:t,resultsStyle:n}}var D=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 E})),n.d(t,"s",(function(){return j})),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 N})),n.d(t,"B",(function(){return D})),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 E(){return{type:d}}function j(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 N(e){return{type:y,canEdit:e}}function D(){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 E})),n.d(t,"y",(function(){return j})),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 E(e){return{type:s,isLoading:e}}function j(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,"y",(function(){return f})),n.d(t,"x",(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 E})),n.d(t,"A",(function(){return j})),n.d(t,"p",(function(){return C})),n.d(t,"d",(function(){return T})),n.d(t,"f",(function(){return k})),n.d(t,"z",(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,"F",(function(){return N})),n.d(t,"E",(function(){return D})),n.d(t,"L",(function(){return R})),n.d(t,"W",(function(){return L})),n.d(t,"V",(function(){return F})),n.d(t,"G",(function(){return z})),n.d(t,"D",(function(){return B})),n.d(t,"C",(function(){return q})),n.d(t,"I",(function(){return U})),n.d(t,"H",(function(){return G})),n.d(t,"N",(function(){return H})),n.d(t,"B",(function(){return V})),n.d(t,"M",(function(){return W})),n.d(t,"S",(function(){return Y})),n.d(t,"P",(function(){return K})),n.d(t,"J",(function(){return X})),n.d(t,"K",(function(){return Z})),n.d(t,"O",(function(){return Q})),n.d(t,"T",(function(){return $})),n.d(t,"Q",(function(){return J})),n.d(t,"R",(function(){return ee})),n.d(t,"U",(function(){return te}));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",E="WIDGETS:EXPORT_IMAGE",j="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_TRAY",N=function(e){return{type:l,widget:e}},D=function(){return{type:C}},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return{type:s,target:t,id:o()(),widget:e}},L=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}},F=function(e){return{type:h,layer:e}},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return{type:g,target:t,widget:e}},B=function(){return{type:y}},q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;return{type:m,allLayouts:t,layout:e,target:n}},U=function(e){return{type:u,widget:e}},G=function(e,t){return{type:c,widget:e,settings:t}},H=function(e,t){return{type:d,key:e,value:t}},V=function(e,t){return{type:p,key:e,value:t}},W=function(e){return{type:w,dependencies:e}},Y=function(e,t,n,r){return{type:_,active:e,availableDependencies:t,options:n,target:r}},K=function(e){return V("step",e)},X=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}},Z=function(e){var t=e.widgetDivId;return{type:E,widgetDivId:t}},Q=function(){return{type:O}},$=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}},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T;return{type:M,target:e}},te=function(e){return{type:I,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(2),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=j(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=E({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=E({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=E({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=E({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(j(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=j({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(j({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.h)(n,e,t)},g=Object(i.h)(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,E=e.setEditingLayerName,j=void 0===E?function(){}:E,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):j(!1)):j(!1):j(!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 j.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"),N=n.n(I),D=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=N.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)})),D.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})}})),E(O(e),"scrollDown",(function(t){var n=e.itemsRef[t];n&&n.offsetTop>e.listRef.offsetHeight&&(e.listRef.scrollTop=n.offsetTop-e.listRef.offsetTop)})),E(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 je}));var Ee={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}},je=function(e,t){return Ee[e]?Ee[e](e,t):Ee.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()))}}])&&c(t.prototype,n),r&&c(t,r),i}(a.a.Component);g(y,"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(y,"defaultProps",{useButtons:!0}),t.a=y},"./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.g)(),validator:o.j})},"./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",7,11,"map-library-cesium-js"],"./leaflet.js":["./MapStore2/web/client/components/map/plugins/leaflet.js",0,3,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",10,"map-library-leaflet-js"],"./openlayers.js":["./MapStore2/web/client/components/map/plugins/openlayers.js",0,3,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",4,"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/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/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;t0})),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(E,"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(E,"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=E},"./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=E?["SIZE"]:[])),e)):null})).catch((function(e){return L.current?(B(!1),N(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,E=void 0===S?{}:S,j=e.styleTools,C=void 0===j?{}:j,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:E},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 E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.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 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}})),D(I(e),"getSexagesimalStep",(function(e){return e>=60?1:e<0?-1:0})),D(I(e),"getInputStyle",(function(e){return isNaN(e)||""===e?{borderColor:"#a94442"}:{}})),D(I(e),"verifyOnKeyDownEvent",(function(t){69===t.keyCode&&t.preventDefault(),13===t.keyCode&&(t.preventDefault(),t.stopPropagation(),e.props.onKeyDown())})),D(I(e),"roundToNextSexagesimalStep",(function(e){return e<0?60+e:e>=60?e-60:e})),D(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=t.customOverlayTrigger,g=void 0===m?s.a:m,y=c(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args","customOverlayTrigger"]);return o.a.createElement(g,{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,y))}}),(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={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"}},d=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,d=e.fullscreen,p=void 0!==d&&d,f=e.showFullscreen,h=void 0!==f&&f,m=e.glyph,g=void 0===m?"info-sign":m,y=e.additionalRows,b=e.onFullscreen,v=void 0===b?function(){}:b,w=r?o.a.createElement(u.Button,{key:"ms-header-close",className:"square-button ms-close",onClick:r,bsStyle:a},o.a.createElement(u.Glyphicon,{glyph:"1-close"})):null,x=h?o.a.createElement(u.Button,{key:"ms-header-glyph",className:"square-button",bsStyle:a,onClick:function(){return v(!p)}},o.a.createElement(u.Glyphicon,{glyph:c[n]&&c[n][p]||"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:g,className:"".concat("default"===a?"text-primary":"")})),_="left"===n?[w,x]:[x,w];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},_[0]),o.a.createElement(u.Col,{xs:8},o.a.createElement("h4",null,l)),o.a.createElement(u.Col,{xs:2},_[1])),y)};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,p=e.size,f=void 0===p?550:p,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,E=e.footer,j=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(d,{position:u,onClose:b,bsStyle:v,title:w,fullscreen:l,showFullscreen:_,glyph:O,additionalRows:S,onFullscreen:T}),footer:c&&E},c&&j)))}))},"./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)}}])&&S(t.prototype,n),r&&S(t,r),a}(o.a.Component);A(I,"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}),A(I,"defaultProps",{title:"",expanded:!1,onSwitch:function(){},locked:!1,buttons:[],useToolbar:!1});t.a=I},"./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");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}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,h=void 0===d?"":d,m=e.loaderProps,g=void 0===m?{}:m,y=e.children,b=f(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(l.Button,Object(s.omit)(b,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(l.Glyphicon,{glyph:t,className:h}):null,c?o.a.createElement(a.default,{msgId:c}):i,n?o.a.createElement(u.a,p({className:"ms-loader".concat(b.bsStyle&&" ms-loader-"+b.bsStyle||"").concat(b.bsSize&&" ms-loader-"+b.bsSize||"")},g)):null,y)}))},"./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-j[0]>m/2+10,T=j[1]-y>g/2+10&&y+x-j[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:_+E/2,left:O+S-2,transform:"translate(-50%, -50%) rotateZ(0deg) translateX(50%)"}}}},bottom:{filter:function(){return C&&y+x-(_+E)>g+10},styles:function(){return{picker:{position:"absolute",top:_+E+10-y,left:O+S/2-m/2-b},overlay:{},arrow:{top:_+E-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:_+E/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 j(N())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(r.useEffect)((function(){T&&j(N())}),[T]);var D,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==E?void 0:E.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==E?void 0:E.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==E?void 0:E.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:(D=_||t||"transparent",R=d()(D).toRgbString(),s?{boxSizing:"border-box",border:"4px solid ".concat(R),backgroundColor:"transparent"}:{color:"transparent"===D?"#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},E=function(e){return e.context.prev&&(e.context=e.context.prev),e.context.type},j=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 j(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 E(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"):j(e,t,n)},b.prop=function(e,t,n){if(";"===e)return E(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?E(n):"word"===e?(o="property","maybeprop"):n.context.type},b.parens=function(e,t,n){return"{"===e||"}"===e?C(e,t,n):")"===e?E(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):j(n,t,r)},b.at=function(e,t,n){return";"===e?E(n):"{"===e||"}"===e?C(e,t,n):("word"===e?o="tag":"hash"===e&&(o="builtin"),"at")},b.interpolation=function(e,t,n){return"}"===e?E(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("./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/misc/enhancers/tooltip.jsx"),u=n("./MapStore2/node_modules/lodash/lodash.js"),c=n("./node_modules/moment/moment.js"),d=n.n(c);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;n2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(""!==n){var o=d()(e.props.date).utc(),i=o["day"===t?"date":t]&&d()(o)["day"===t?"date":t](r(n));i.isValid()&&!isNaN(i.toDate().getTime())&&e.props.onUpdate(i.toISOString())}})),w(b(e),"getForm",(function(){var t=e.props.date&&d()(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(u.isNil)(e)&&""!==e&&d.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(u.padStart)(e/60,2,0)}}]})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.getForm();return o.a.createElement(s.Form,{className:"ms-inline-datetime ".concat(this.props.className),style:this.props.style},o.a.createElement(s.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(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})),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(x,{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(s.Button,{bsSize:"xs",disabled:!e.props.date,onClick:function(){return e.onUpdate(t.name,!0)}},o.a.createElement(x,{glyph:"chevron-up"})),o.a.createElement(s.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(s.Button,{bsSize:"xs",disabled:!e.props.date,onClick:function(){return e.onUpdate(t.name)}},o.a.createElement(x,{glyph:"chevron-down"})))}))))}}])&&h(t.prototype,n),r&&h(t,r),a}(o.a.Component);w(_,"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}),w(_,"defaultProps",{date:"",onIconClick:function(){},clickable:!1,onUpdate:function(){},glyph:"time",style:{},className:"",tooltip:""}),t.a=_},"./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,E=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({},E,{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/I18N/Message.jsx");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;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(g.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(h.Button,{bsStyle:"primary",style:{float:"right"},onClick:function(){return e.props.retrieveLayerData(e.props.element)}},f.a.createElement(h.Glyphicon,{glyph:"refresh"})," ",f.a.createElement(g.default,{msgId:"layerProperties.stylesRefreshList"})),f.a.createElement("br",null)))}}])&&v(t.prototype,n),o&&v(t,o),a}(f.a.Component);E(j,"propTypes",{retrieveLayerData:d.a.func,onChange:d.a.func,element:d.a.object,groups:d.a.array}),E(j,"defaultProps",{element:{},retrieveLayerData:function(){},onChange:function(){}});var C=j,T=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"),A=n("./node_modules/rxjs/Rx.js"),P=n.n(A),M=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(M.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 P.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 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)}var F=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"===L(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 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 B(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:B(B({},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)(T.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,B(B({},n.props),e))}}})),s.a,Object(a.a)("activeTab","setActiveTab","general"),G)},"./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,E=_.property,j=_.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(j.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(j.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"):[]),[E(o).intersects(k)])))}}return{filter:S(j.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);n0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(y).length>0};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);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(j).length>0},T=Object(O.a)(x.MenuItem);function k(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]:[];return e.filter(P).length>0};n.d(t,"d",(function(){return D})),n.d(t,"b",(function(){return z})),n.d(t,"c",(function(){return B})),n.d(t,"a",(function(){return U})),n.d(t,"e",(function(){return G}));var I=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:M(r)?[].concat(k(n),[m.a.createElement(g.a,{btnGroupProps:{style:{position:"absolute",left:14}},btnDefaultProps:{className:"no-border",bsSize:"small",bsStyle:"link",style:{paddingLeft:4,paddingRight:4}},buttons:r.filter(P)})]):n}})))},N=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.toolsOptions,o=void 0===r?{}:r,i=e.updateProperty,a=void 0===i?function(){}:i,s=e.dataGrid,l=void 0===s?{}:s;return{widgetTools:o.showPin?[].concat(p(n),[{glyph:"pushpin",bsStyle:l.static&&"primary",glyphClassName:l.static?"active":void 0,tooltipId:l.static?"widgets.widget.menu.unpin":"widgets.widget.menu.pin",target:"icons",onClick:function(){return a("dataGrid.static",!l.static)}}]):n}})))},D=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.toolsOptions,o=void 0===r?{}:r,i=e.canEdit,a=e.updateProperty,s=void 0===a?function(){}:a,l=e.hide,u=void 0!==l&&l;return{widgetTools:o.showHide?[].concat(c(n),[{glyph:"lock",target:"menu",active:u,textId:u?"widgets.widget.menu.unhide":"widgets.widget.menu.hide",tooltipId:u?"widgets.widget.menu.unhideDescription":"widgets.widget.menu.hideDescription",visible:i,onClick:function(){return s("hide",!u)}}]):n}})))},R=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:C(t)?[].concat(S(o),[m.a.createElement(x.ButtonToolbar,null,m.a.createElement(x.DropdownButton,{pullRight:!0,bsStyle:"default",className:n,title:m.a.createElement(x.Glyphicon,{glyph:i}),noCaret:!0,id:"dropdown-no-caret"},t.filter(j).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 m.a.createElement(T,{active:d,tooltipId:c,onSelect:r,disabled:i,eventKey:t},m.a.createElement(x.Glyphicon,{className:s,glyph:a}),u?m.a.createElement(_.default,{msgId:u}):l)}))))]):o}}))},L=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:b(r)?m.a.createElement(g.a,{btnDefaultProps:{className:"no-border",bsSize:"xs",bsStyle:"link"},buttons:r.filter(y)}):n}})))},F=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(v(n),[{glyph:"question-sign",popover:{title:r,trigger:!0,text:o},target:"icons"}]):n}})))},z=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,s=e.onEdit,l=void 0===s?function(){}:s,u=e.toggleDeleteConfirm,c=void 0===u?function(){}:u;return{widgetTools:i?[].concat(a(n),[{glyph:"pencil",target:"menu",visible:i&&!o.static,textId:"widgets.widget.menu.edit",onClick:function(){return l()}},{glyph:"trash",target:"menu",visible:i&&!o.static,textId:"widgets.widget.menu.delete",onClick:function(){return c(!0)}}]):n}}))},B=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(l(n),[{glyph:"download",glyphClassName:"exportCSV",target:"menu",textId:"widgets.widget.menu.downloadData",disabled:!r||!r.length,onClick:function(){return a({data:r,title:o})}}])}}))},q=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.dataGrid,i=void 0===r?{}:r,a=e.toggleCollapse,s=void 0===a?function(){}:a,l=e.toolsOptions;return{widgetTools:(void 0===l?{}:l).showCollapse?[].concat(o(n),[{glyph:"minus",target:"icons",tooltipId:"widgets.widget.menu.collapse",visible:!i.static,onClick:function(){return s()}}]):n}})))},U=function(){return Object(r.compose)(N(),q(),F())},G=function(){return Object(r.compose)(I(),L(),R())}},"./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"),E=n("./node_modules/rxjs/Rx.js"),j=n.n(E),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 j.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 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;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 E.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 E.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}),E.Observable.of({loading:!1})})).startWith({loading:!0}).catch((function(e){return E.Observable.of({error:"error getting bounds from filter",details:e})}))}return E.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"),Ee=Object(xe.a)()(Object(_e.a)(Object(Oe.a)(Se.a))),je=function(e){return o.a.createElement("div",{className:"mapstore-widget-chart"},o.a.createElement(we.a,null,o.a.createElement(Ee,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.handle,l=void 0===s?"draggableHandle":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||"")},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},Ne=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.onDelete,y=void 0===g?function(){}:g,b=e.toggleTableView,v=void 0===b?function(){}:b,w=e.toggleDeleteConfirm,x=void 0===w?function(){}:w,_=Me(e,["id","title","description","headerStyle","data","series","loading","icons","showTable","topRightItems","confirmDelete","onDelete","toggleTableView","toggleDeleteConfirm"]);return o.a.createElement(Ae,{id:"widget-chart-".concat(t),headerStyle:i,title:n,icons:d,topLeftItems:Ie({loading:c,title:n,description:r,showTable:p,toggleTableView:v}),confirmDelete:m,onDelete:y,toggleDeleteConfirm:x,topRightItems:f},p?o.a.createElement(be,Pe({data:s},_)):o.a.createElement(je,Pe({id:t,isAnimationActive:!c,loading:c,data:s,series:u,iconFit:!0},_)))},De=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),Re=Object(De.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,E=e.pages,j=e.error,C=e.pagination,T=void 0===C?{}:C,k=e.virtualScroll,A=void 0===k||k;return o.a.createElement(Ae,{id:"widget-chart-".concat(t),title:n,headerStyle:u,icons:c,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===j&&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:A,enableColumnFilters:l,filterRenderers:x,features:O,pages:E,error:j,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)(Ne),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.confirmDelete,p=void 0!==d&&d,f=e.onDelete,h=void 0===f?function(){}:f;return o.a.createElement(Ae,{id:"widget-text-".concat(a),title:s,confirmDelete:p,onDelete:h,toggleDeleteConfirm:n,headerStyle:u,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.onDelete,v=void 0===b?function(){}:b,w=e.headerStyle,x=e.env;return o.a.createElement(Ae,{id:"widget-text-".concat(a),title:s,confirmDelete:m,onDelete:v,toggleDeleteConfirm:i,headerStyle:w,icons:u,topRightItems:f},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:x})))})),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.toggleTableView,y=void 0===g?function(){}:g,b=e.toggleDeleteConfirm,v=void 0===b?function(){}:b,w=e.onDelete,x=void 0===w?function(){}:w,_=tt(e,["id","title","description","data","series","loading","showTable","confirmDelete","headerStyle","icons","topRightItems","toggleTableView","toggleDeleteConfirm","onDelete"]);return o.a.createElement(Ae,{className:"counter-widget",id:"widget-chart-".concat(t),title:n,icons:h,topLeftItems:nt({loading:u,title:n,description:r,showTable:c,toggleTableView:y}),confirmDelete:p,onDelete:x,toggleDeleteConfirm:v,headerStyle:f,topRightItems:m},o.a.createElement(Je.a,et({id:t,isAnimationActive:!u,loading:u,data:a,series:l,iconFit:!0},_)))})),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.onDelete,p=void 0===d?function(){}:d,f=it(e,["toggleDeleteConfirm","id","title","icons","headerStyle","confirmDelete","topRightItems","onDelete"]);return o.a.createElement(Ae,{id:"widget-text-".concat(r),title:i,confirmDelete:u,onDelete:p,toggleDeleteConfirm:n,headerStyle:s,icons:a,topRightItems:c},o.a.createElement(at,f))}));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(E(n),E(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,E([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(E.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?N({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(E.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(E.j)(t.getState());return r(e)})).switchMap((function(){var e=Object(E.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 D({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 D({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&&N({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,E=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:E})})).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:E}))})).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(j.f)(r),p=Object(j.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:""}))),N({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(j(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(j(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=E({},"time","".concat(T(l.start),"/").concat(T(l.end)));return Object(b.c)(t.source.url,c,"time",E({},"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 N}));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.N)("mapSync",e),Object(a.N)("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.z.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),{},E({},n,"".concat(t,".").concat(s[n]))):Object(i.endsWith)(t,"map")?Object(i.includes)(u,n)?S(S({},e),{},E({},n,"map"===t?s[n]:"".concat(t,".").concat(s[n]))):S(S({},e),{},E({},n,"".concat(t.replace(".map",""),".").concat(s[n]))):e}),{});return e?S(S(S({},d),p),{},(E(r={},"dependenciesMap","".concat(t.replace(".map",""),".dependenciesMap")),E(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.M)(e.reduce((function(e,t){var n,r,o=t.replace(".map","");return Object(i.endsWith)(t,"map")?S(S({},e),{},(E(n={},"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),E(n,"".concat(o,".mapSync"),"".concat(o,".mapSync")),E(n,"map"===t?"viewport":"".concat(t,".viewport"),"".concat(t,".bbox")),E(n,"map"===t?"center":"".concat(t,".center"),"".concat(t,".center")),E(n,"map"===t?"zoom":"".concat(t,".zoom"),"".concat(t,".zoom")),E(n,"map"===t?"layers":"".concat(t,".layers"),"map"===t?"layers.flat":"".concat(t,".layers")),n)):S(S({},e),{},(E(r={},"".concat(t,".filter"),"".concat(t,".filter")),E(r,"".concat(t,".quickFilters"),"".concat(t,".quickFilters")),E(r,"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),E(r,"".concat(o,".mapSync"),"".concat(o,".mapSync")),E(r,"".concat(t,".layer"),"".concat(t,".layer")),E(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.T)(n,{availableDependencies:u})).merge(e.ofType(a.A).filter((function(){return Object(l.p)(r())})).switchMap((function(e){var t=e.widget,s=Object(i.get)(Object(l.f)(r()),"availableDependencies").filter((function(e){return(a.z.exec(e)||[])[1]===t.id}));return C(n,s[0],c,t.dependeciesMap).concat(o.a.Observable.of(Object(a.T)(!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(j).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.D)()):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.V)(u)]:[]))}))},N=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.V)(s)]:[]))}))})).mergeAll()};t.default={exportWidgetData:T,alignDependenciesToWidgets:k,toggleWidgetConnectFlow:A,clearWidgetsOnLocationChange:P,exportWidgetImage:M,updateLayerOnLayerPropertiesChange:I,updateLayerOnLoadingErrorChange:N}},"./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(E(o,[].concat(g(l?[j(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(E(o,[j(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 E}));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))}))},E=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"),E=n("./MapStore2/web/client/utils/LayersUtils.js");function j(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,Ee=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx"),je=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/utils/ResourceUtils.js"),Pe=n("./MapStore2/web/client/components/misc/Thumbnail.jsx");function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(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)})),Be(Fe(e),"getThumbnailDataUri",(function(t){e.getDataUri(e.files,t)})),Be(Fe(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)}))})),Be(Fe(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))})),Be(Fe(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}))})),Be(Fe(e),"deleteThumbnail",(function(t,n){if(t&&-1!==t.indexOf("geostore")){var r=Object(Ae.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(N.default,{msgId:"map.error"})),this.props.thumbnailErrors.map((function(e){return I.a.createElement("div",{id:"error"+e,key:"error"+e,className:"error"+e},qe[e])}))):null}},{key:"render",value:function(){var e=this;return I.a.createElement(Pe.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(N.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);Be(Ue,"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])}),Be(Ue,"contextTypes",{messages:R.a.object}),Be(Ue,"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(N.default,{msgId:"map.message"}),suggestion:I.a.createElement(N.default,{msgId:"map.suggestion"}),map:{},thumbnailErrors:[]});var Ge=Ue,He=n("./MapStore2/web/client/utils/LocaleUtils.js"),Ve=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");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 Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(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 Ze(e){return function(e){if(Array.isArray(e))return Qe(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 Qe(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 Qe(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 Qe(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(N.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(N.default,{msgId:"layerProperties.format"})),I.a.createElement(je.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(it,null,I.a.createElement("div",{style:{display:"flex",alignItems:"center"}},I.a.createElement(K.ControlLabel,{style:{flex:1}},I.a.createElement(N.default,{msgId:"backgroundDialog.additionalParameters"})),I.a.createElement(it,{className:"square-button-md",tooltipId:"backgroundDialog.addAdditionalParameterTooltip",style:{borderColor:"transparent"},onClick:function(){var t=Math.max.apply(Math,Ze(e.state.additionalParameters.length>0?e.state.additionalParameters.map((function(e){return e.id})):[-1]))+1;e.setState({additionalParameters:[].concat(Ze(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(He.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(je.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(He.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(je.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 Ke(Ke({},Xe(t,["label"])),{},{label:Object(He.f)(e.context.messages,n)})}))}),I.a.createElement(it,{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(N.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(N.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,ot({},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(Ge,{onUpdate:function(t,n){return e.setState({thumbnail:{data:t,url:n}})},onError:function(t){return e.setState({thumbnailErrors:t})},message:I.a.createElement(N.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(N.default,{msgId:"layerProperties.title"})),I.a.createElement(K.FormControl,{value:this.state.title,placeholder:Object(He.f)(this.context.messages,"backgroundDialog.titlePlaceholder"),onChange:function(t){return e.setState({title:t.target.value})}})),this.renderSpecificTypeForm()))}}])&&$e(t.prototype,n),r&&$e(t,r),a}(I.a.Component);ot(at,"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}),ot(at,"contextTypes",{messages:R.a.object}),ot(at,"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 st=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx");function lt(e){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ut(){return(ut=Object.assign||function(e){for(var t=1;t1&&I.a.createElement(Ee.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(Ee.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}))})):[]})),yt(mt(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}})),yt(mt(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(st.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(N.default,{msgId:"confirm"}),closeText:I.a.createElement(N.default,{msgId:"cancel"}),closeGlyph:"1-close"},I.a.createElement(N.default,{msgId:"backgroundSelector.confirmDelete",msgParams:{title:S}})),e.props.modalParams&&I.a.createElement(at,ut({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}}])&&dt(t.prototype,n),r&&dt(t,r),i}(I.a.Component);yt(bt,"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}),yt(bt,"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 vt=bt;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 xt(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);j(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}),j(A,"contextTypes",{messages:a.a.object,router:a.a.object}),j(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"),E=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),j=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(j.a,null,s.a.createElement(E.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})))))},N=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:""}})},D=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(Ne.b)(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(Ne.d)(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:De.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.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(Ee.e)(t.getState()),(function(e){return"geometry"===e.type}))||{}).attribute||Object(r.get)(Object(je.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:De.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:Ne.j,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(D.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(N,{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(j.a,null,s.a.createElement(E.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)([j,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"),N=n("./MapStore2/web/client/actions/draw.js"),D={drawStatus:null,drawOwner:null,drawMethod:null,options:{},features:[],tempFeatures:[]};var R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case N.a:return c()({},e,{drawStatus:t.status,drawOwner:t.owner,drawMethod:t.method,options:t.options,features:t.features,style:t.style});case N.e:return c()({},e,{currentStyle:t.currentStyle});case N.d:return c()({},e,{tempFeatures:t.features});case N.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,je({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]}))}},E=n("./MapStore2/web/client/observables/epics.js"),j=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",N({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):j.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(E.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(E.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(E.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(j.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)})),j.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"),E=n("./MapStore2/web/client/selectors/maptype.js"),j=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(j.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,E.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},N=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 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 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,_),E=Object(r.difference)(_,O),j=Object(r.intersection)(_,O);Object(r.each)(E,(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)(j,(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,E.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)(E.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,N,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");function xe(){return(xe=Object.assign||function(e){for(var t=1;t0},De=Object(p.compose)(Object(d.connect)(Object(f.a)(E.f,E.q,_.a,E.a,_.g,S.h,S.j,E.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)(E.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=Me(c)&&Ie(c)*t||c,l=Me(l)&&Ie(l)*t||l;if(t){var d=t-c-l-i-a;return{hide:d<410,compactToolbar:d<880,style:ke(ke(ke({},n),r),{},{minWidth:410})}}return{style:ke(ke(ke({},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,E=n.hideLayersName,j=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:ke(ke({position:"absolute",marginBottom:35,marginLeft:100,background:"transparent"},b),{},{right:j?"auto":b.right||0}),className:"timeline-plugin".concat(E?" hide-layers-name":"").concat(f?" with-time-offset":"")},f&&u.a.createElement(x.a,{clickable:!j,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:!j,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:!j,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:E?"timeline.showLayerName":"timeline.hideLayerName"}),bsStyle:E?"primary":"success",visible:!j,active:!E,onClick:function(){return o(ke(ke({},n),{},{hideLayersName:!E}))}},{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,Ce({},C,{settingsStyle:{right:j||S?40:"unset"}}))),u.a.createElement(Pe,{onClick:function(){return o(ke(ke({},n),{},{collapsed:!j}))},className:"square-button-sm ms-timeline-expand",bsStyle:"primary",tooltip:u.a.createElement(y.default,{msgId:j?"timeline.expand":"timeline.collapse"})},u.a.createElement(c.Glyphicon,{glyph:j?"chevron-up":"chevron-down"}))),!j&&u.a.createElement(ye,{offsetEnabled:f,playbackEnabled:!0,hideLayersName:E}))}));t.a={TimelinePlugin:s()(De,{disablePluginIf:"{state('mapType') === 'cesium'}",WidgetsTray:{tool:u.a.createElement(je,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/OverlayTrigger.jsx"),h=n("./MapStore2/web/client/utils/MapUtils.js"),m=n("./MapStore2/web/client/utils/ConfigUtils.js");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 y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n0&&u.a.createElement(s,v({},t.innerProps,{mapType:e.props.mapType,tools:l,panels:t.childPanels}))),t)})),k(C(e),"renderTools",(function(){return e.props.tools.map(e.renderTool)})),k(C(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,v({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}))})),k(C(e),"mergeHandlers",(function(e,t){return Object.keys(t).reduce((function(n,r){return i()(n,k({},r,e[r]?Object(p.d)(e[r],t[r]):t[r]))}),e)})),k(C(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())}}])&&O(t.prototype,n),o&&O(t,o),s}(u.a.Component);k(P,"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}),k(P,"contextTypes",{messages:s.a.object,router:s.a.object}),k(P,"defaultProps",{container:c.Panel,className:"tools-container",style:{},toolStyle:"default",activeStyle:"primary",tools:[],panels:[],tool:c.Button,mapType:"leaflet",eventSelector:"onClick",panelStyle:{},panelClassName:"tools-container-panel",toolSize:null,toolCfg:{}}),t.a=P},"./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",11,31],"./leaflet/index":["./MapStore2/web/client/plugins/map/leaflet/index.js",0,3,10,20],"./openlayers/index":["./MapStore2/web/client/plugins/map/openlayers/index.js",0,3,4,5,16]};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}})),E=e.responses||[],j="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"};j?(E=[].concat(d(E),[C]),x={reqId:0}):(E[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(E)}),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.l:return i()({},e,{searchText:t.text});case r.y:return i()({},e,{searchFilter:c(c({},e.searchFilter),{},d({},t.filter,t.filterData))});case r.B:return i()({},e,{searchFilter:t.searchFilter});case r.A:return i()({},e,{contexts:t.contexts});case r.e:return i()({},e,{loading:t.value,loadFlags:c(c({},e.loadFlags||{}),"loading"!==t.name?d({},t.name,t.value):{})});case r.r:return i()({},e,{metadata:i()({},e.metadata,d({},t.prop,t.value))});case r.C:return i()({},e,{showMapDetails:t.showMapDetails});case r.i:return i()({},e,{loading:!0,start:t.params&&t.params.start,limit:t.params&&t.params.limit,searchText:t.searchText});case r.h: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.j:return{loadingError:t.error};case r.q: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",E=t.value,j=E.value,C=E.label;return c()({},e,(g(O={},S,j),g(O,"uom",c()({},t.previousUom,g({},t.uom,{unit:j,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 N=f(e,["id"]);return"info"===t.control?m(m({},N),{},{len:0,area:0,bearing:0,lineMeasureEnabled:!1,areaMeasureEnabled:!1,bearingMeasureEnabled:!1,feature:{properties:{disabled:!0}},geomType:""}):"measure"===t.control?m(m({},N),{},{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 D=t.coordinates.map((function(e){return[e.lon,e.lat]})),R=e.features||[],L=R[e.currentFeature]||{},F=D.filter((function(e){return!isNaN(parseFloat(e[0]))&&!isNaN(parseFloat(e[1]))})).length!==D.length;return m(m({},e),{},{feature:{type:"Feature",properties:{disabled:D.filter((function(e){return!isNaN(parseFloat(e[0]))&&!isNaN(parseFloat(e[1]))})).length!==D.length},geometry:{type:e.bearingMeasureEnabled?"LineString":e.geomType,coordinates:e.areaMeasureEnabled?[Object(l.dropRight)(D)]:D}},features:[].concat(d(R.slice(0,e.currentFeature)),[m(m({},L),{},{type:"Feature",properties:m(m({},L.properties||{}),{},{disabled:F||e.bearingMeasureEnabled&&D.length<2}),geometry:{type:e.bearingMeasureEnabled?"LineString":e.geomType,coordinates:e.areaMeasureEnabled?[[].concat(d(D),[D[0]])]:D}})],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.y: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.x: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 E=Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(S.id));if(E){var j=[].concat(p(Object(c.get)(t,"containers[".concat(n.target,"].layout"),[])),p(Object(c.castArray)(Object(c.get)(E,"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)(E,"layouts[".concat(t,"]"),[]))))}));return Object(c.omit)(Object(d.d)(u()("containers[".concat(n.target,"].layout"),j),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.u:var T=Object(c.get)(t,"containers[".concat(n.target,"].widgets"),[]).filter((function(e){return!e.dataGrid||!e.dataGrid.static})),k=T.filter((function(e){return Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(e.id,"]"))})),A=T.filter((function(e){return!Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(e.id,"]"))})),P=0===A.length;return P?k.reduce((function(t,n){return e(t,Object(r.Q)(n))}),t):A.length>0?A.reduce((function(t,n){return e(t,Object(r.Q)(n))}),t):t;case r.w: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 E})),n.d(t,"f",(function(){return j})),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}))},N=function(e){return e&&e.featuregrid&&e.featuregrid.mode},D=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 E})),n.d(t,"s",(function(){return j})),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 N})),n.d(t,"w",(function(){return D})),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))},E=function(e){return Object(r.get)(e,"geostory.selectedCard","")},j=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")},N=function(e){return p(Object(r.get)(e,"geostory.focusedContent.path",""))(e)},D=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 E})),n.d(t,"o",(function(){return j})),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):[]},E=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))}),[]))})),j=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))},N=l.f,D=Object(o.a)(N,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0})),R=function(e){return!v(e)&&D(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=Object(b.a)(T,k,(function(e,t){return e&&t?e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id;return!t[n]})):e})),P=Object(b.a)(k,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e)})),M=function(e){return(T(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"map"===t}))},I=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)(M,I,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,"]")})))}})),D=Object(b.a)(M,I,o.l,a.a,j,(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,"]")})))}})),R=function(e){return Object(r.get)(O(e),"".concat(s.f))},L=function(e){return Object(r.get)(R(e),"active")},F=(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"))}),z=function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].layout"))},B=function(e){return Object(r.get)(e,"widgets.tray")},q=function(e){return Object(r.get)(e,"widgets.builder.editor.returnToFeatureGrid",!1)},U=function(e){return Object(r.get)(j(e),"filter")},G=Object(v.a)(S,E,(function(e){return E(e).map((function(t){return 0===t.indexOf("map.")?Object(r.get)(Object(o.l)(e),t.slice(4)):t.match(s.z)?function(e,t){var n=s.z.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:F})},"./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])},N=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)},D=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?D(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:E,STYLE_POINT_SYMBOL:{iconAnchor:[.5,.5],anchorXUnits:"fraction",anchorYUnits:"fraction",color:"#000000",fillColor:"#000000",opacity:1,size:64,fillOpacity:1},STYLE_TEXT:j,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=N(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]:j;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]:j;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:D,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 E})),n.d(t,"c",(function(){return j})),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 N}));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 E={type:"arcgis",url:l.value,SRS:[],params:{name:l.name}};O.push(E)}r&&(0===r.indexOf("http")||(r=(b(t&&t.url)||"")+r));var j={boundingBox:e.boundingBox&&e.boundingBox.extent&&Object(i.castArray)(e.boundingBox.extent.join(","))};if(u&&(j=g(g({},j),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&&(j=g(g({},j),{},{uri:[""]})),u&&u.subject&&Object(i.castArray)(u.subject)&&Object(i.castArray)(u.subject).length&&(j=g(g({},j),{},{subject:["
    "+Object(i.castArray)(u.subject).map((function(e){return"
  • ".concat(e,"
  • ")})).join("")+"
"]})),O&&Object(i.castArray)(O).length?j=g(g({},j),{},{references:[""]}):delete j.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:""}));j=g(g({},j),{},{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:j}})):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}},E=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)})))}},j=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=E(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,j=x.params;p=_,f=j}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=j(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,E=_.maxx,j=_.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"],N=A.extension,D=[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(E),maxy:parseFloat(j)}},tileSets:R,origin:{x:parseFloat(T),y:parseFloat(k)},format:I,tileSize:D,extension:N}},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)},N=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 E})),n.d(t,"g",(function(){return j})),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 N}));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)}}))},E=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}:{})}))},j=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}},N=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,E=0;Ee.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 N})),n.d(t,"f",(function(){return D})),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),E=n("./node_modules/uuid/index.js"),j=n.n(E);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:j()(),type:P.TITLE,title:n("geostory.builder.defaults.titleTitle"),cover:!1,contents:[{id:j()(),type:M.TEXT,html:"",size:"large",align:"center",theme:"",background:{fit:"cover",size:"full",align:"center"}}]};case P.BANNER:return{id:j()(),type:P.BANNER,title:n("geostory.builder.defaults.titleBanner"),cover:!1,contents:[{id:j()(),background:{fit:"cover",size:"full",align:"center"}}]};case P.PARAGRAPH:return{id:j()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleParagraph"),contents:[{id:j()(),type:M.COLUMN,size:"full",align:"center",contents:[{id:j()(),type:M.TEXT,html:""}]}]};case P.IMMERSIVE:return{id:j()(),type:P.IMMERSIVE,title:n("geostory.builder.defaults.titleImmersive"),contents:[e(M.COLUMN,n)]};case I.MEDIA:return{id:j()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleMedia"),contents:[{id:j()(),type:M.COLUMN,contents:[{id:j()(),type:M.MEDIA,size:"large",align:"center"}]}]};case I.WEBPAGE:return{id:j()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleWebPageSection"),contents:[{id:j()(),type:M.COLUMN,contents:[{id:j()(),type:M.WEBPAGE,size:"medium",align:"center"}]}]};case M.COLUMN:return{id:j()(),type:M.COLUMN,align:"left",size:"small",theme:"",title:n("geostory.builder.defaults.titleImmersiveContent"),contents:[{id:j()(),type:M.TEXT,html:""}],background:{fit:"cover",size:"full",align:"center"}};case M.TEXT:return{id:j()(),type:M.TEXT,title:n("geostory.builder.defaults.titleText"),html:""};case M.IMAGE:return{id:j()(),type:t,title:n("geostory.builder.defaults.titleMedia"),size:"full",align:"center"};case M.WEBPAGE:return{id:j()(),type:t,title:n("geostory.builder.defaults.titleWebPage"),size:"medium",align:"center"};case M.MEDIA:return{id:j()(),type:t,title:n("geostory.builder.defaults.titleUnknown"),size:"large",align:"center"};default:return{id:j()(),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 N})),n.d(t,"b",(function(){return D})),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),E=n("./MapStore2/web/client/utils/styleeditor/stylesTemplates.js");function j(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(N).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(E.baseTemplates))}return[].concat(C(E.customTemplates),C(E.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=j(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 E})),n.d(t,"registerGeometryFunctions",(function(){return j})),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 N})),n.d(t,"domNodeToString",(function(){return D})),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(){}}},E=function(e,t){return S[e]&&S[e][t]},j=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},N=function(e){if(e)return T(JSON.stringify(e));throw new Error("hashAndStringify: specify mandatory params: style")},D=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([D(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=N(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(N(e))?R(e,e.symbolUrl||e.symbolUrlCustomized).then((function(t){return t?f(f({},e),{},{symbolUrlCustomized:t}):M(N(e))})).catch((function(){return f(f({},e),{},{symbolUrlCustomized:n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})})):new Promise((function(t){t(_(e)?M(N(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({},j(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/v2/index.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return w})),n.d(t,"a",(function(){return x})),n.d(t,"f",(function(){return _}));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/isArray.js"),s=n.n(a),l=n("./MapStore2/node_modules/lodash/castArray.js"),u=n.n(l);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;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 h={base_resources:"/api/v2/base_resources",maps:"/api/v2/maps",geoapps:"/api/v2/geoapps",geostories:"/api/v2/geostories",documents:"/api/v2/documents"},m=function(e,t){var n=Object(i.a)(e);return n?t(n):o.a.options(Object(i.b)(h[e])).then((function(n){var r=n.data;return Object(i.c)(e,r),t(r)})).catch((function(){var n={error:!0};return Object(i.c)(e,n),t(n)}))},g=function(){return o.a.get("/api/v2/").then((function(e){var t=e.data;return function(e){h=e}(t),t}))};function y(e,t){if(!t)return e;var n=Object.keys(t).reduce((function(e,n,r){var o=0===r?"?":"&",i=u()(t[n]);return i.length>1?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 b=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,a=e.page,l=void 0===a?1:a,u=e.sort,c=f(e,["q","pageSize","page","sort"]);return m("maps",(function(){return o.a.get(Object(i.b)(y(h.maps,t&&{search:t,search_fields:["title","abstract"]})),{params:d(d(d({},c),u&&{sort:s()(u)?u:[u]}),{},{page:l,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}))}}))}))},v=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,l=t.page,u=void 0===l?1:l,c=t.sort,p=f(t,["q","pageSize","page","sort"]);return m("maps",(function(){return o.a.get(Object(i.b)(y(h.documents,n&&{search:n,search_fields:["title","abstract"]})),{params:d(d(d({},p),c&&{sort:s()(c)?c:[c]}),{},{"filter{doc_type}":[e],page:u,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}))}}))}))},w=function(e){return o.a.get(Object(i.b)("".concat(h.base_resources,"/").concat(e))).then((function(e){return e.data.resource}))},x=function(e){return o.a.post(Object(i.b)("".concat(h.geostories)),e,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},_=function(e,t){return o.a.patch(Object(i.b)("".concat(h.geostories,"/").concat(e)),t,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))}},"./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.w).exhaustMap((function(e){var n,r=e.resource,i=Object(j.mapValues)(r.attributes,(function(e){if(Object(j.isObject)(e)){var t=null;try{t=JSON.stringify(e)}catch(e){t=null}return t}return e})),a=Object(j.keys)(i).filter((function(e){return"thumbnail"!==e&&"details"!==e&&!Object(j.isNil)(i[e])}));return o.a.Observable.forkJoin((n=Object(j.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.M)(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(E.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(E.a)(R(R({},Object(k.c)(e,"geostore","mapsError")),{},{autoDismiss:6,position:"tc"})))})).startWith(r.id?Object(C.P)(r.metadata):Object(C.T)(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.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 nn})),n.d(r,"textSearch",(function(){return rn})),n.d(r,"validate",(function(){return on})),n.d(r,"testService",(function(){return an}));var o={};n.r(o),n.d(o,"parseUrl",(function(){return mn})),n.d(o,"getRecords",(function(){return gn})),n.d(o,"textSearch",(function(){return yn}));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 Nl})),n.d(i,"scaleQuantize",(function(){return Dl})),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 Ed})),n.d(i,"interpolateMagma",(function(){return jd})),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 EB})),n.d(a,"resetQueryPanel",(function(){return jB})),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 NB})),n.d(a,"resetControlsOnEnterInEditMode",(function(){return DB})),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 E(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,Ee=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),je=n("./MapStore2/web/client/components/maps/modals/ConfirmModal.jsx"),Ce=(n("./MapStore2/web/client/components/TOC/fragments/css/settingsModal.css"),n("./MapStore2/web/client/components/data/template/jsx/Template.jsx")),Te=n("./MapStore2/web/client/components/misc/Dialog.jsx"),ke=n("./MapStore2/web/client/components/TOC/fragments/template/index.js"),Ae=n("./MapStore2/web/client/utils/StringUtils.js"),Pe=n("./MapStore2/web/client/utils/URLUtils.js");function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(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:Ne(Ne({},t.state.collapsed),{},qe({},e,n))})},i=function(e,n){return c.a.createElement("div",{style:{display:"flex",flexDirection:"row"}},e,c.a.createElement(v.Button,{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(Ae.b)(l),w=Object(Pe.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()}}])&&De(t.prototype,n),r&&De(t,r),i}(c.a.Component);qe(Ue,"propTypes",{model:p.a.object}),qe(Ue,"contextTypes",{messages:p.a.object}),qe(Ue,"defaultProps",{model:{}});var Ge=Ue;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 Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(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})),ht(pt(e),"getSelectedGroup",(function(){return e.props.selectedGroups.length>0&&e.props.selectedGroups[e.props.selectedGroups.length-1]})),ht(pt(e),"getSelectedNodeDepth",(function(){return"DESELECT"===e.getStatus()?0:e.getSelectedGroup().id.split(".").length+1})),ht(pt(e),"addLayer",(function(){var t=e.getSelectedGroup();e.props.onToolsActions.onAddLayer(t&&t.id)})),ht(pt(e),"addGroup",(function(){var t=e.getSelectedGroup();e.props.onToolsActions.onAddGroup(t&&t.id)})),ht(pt(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})})),ht(pt(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})})),ht(pt(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})),ht(pt(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(v.Button,{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(Ee.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(v.Button,{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(Ee.a,{key:"queryPanel",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-layerFilter"},this.props.text.layerFilterTooltip)},c.a.createElement(v.Button,{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(Ee.a,{key:"featuresGrid",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-featuresGrid"},this.props.text.featuresGridTooltip)},c.a.createElement(v.Button,{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(Ee.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(v.Button,{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(Ee.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(v.Button,{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(Ee.a,{key:"widgets",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-widgets"},this.props.text.createWidgetTooltip)},c.a.createElement(v.Button,{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(Ee.a,{key:"downloadTool",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-downloadTool"},this.props.text.downloadToolTooltip)},c.a.createElement(v.Button,{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(Ee.a,{key:"layerMetadata",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"legend-tooltip-metadata"},this.props.text.layerMetadataTooltip)},c.a.createElement(v.Button,{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)(at(at({},e.props),{},{status:t}))})).map((function(n){var r=n.Component;return c.a.createElement(r,ot({},e.props,{status:t}))})),c.a.createElement(je.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}}])&<(t.prototype,n),r&<(t,r),i}(c.a.Component);ht(mt,"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])}),ht(mt,"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 gt=mt,yt=n("./MapStore2/web/client/components/TOC/DefaultGroup.jsx"),bt=n("./MapStore2/web/client/components/TOC/DefaultLayer.jsx"),vt=n("./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx"),wt=n("./MapStore2/web/client/api/CSW.js"),xt=n("./MapStore2/web/client/api/WMS.js"),_t=n("./MapStore2/web/client/api/WMTS.js"),Ot=n("./MapStore2/web/client/utils/ConfigUtils.js"),St=n("./node_modules/xml2js/lib/xml2js.js"),Et=n.n(St),jt=n("./MapStore2/web/client/libs/ajax.js"),Ct=n.n(jt),Tt=n("./MapStore2/web/client/utils/SecurityUtils.js"),kt=n("./MapStore2/web/client/utils/TMSUtils.js");function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(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 Pt(Pt({},r),{},{href:Object(Tt.cleanAuthParamsFromURL)(r.href),identifier:Object(Tt.cleanAuthParamsFromURL)(r.href),format:Object(kt.a)(r.href),tmsUrl:Object(Tt.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&&Lt(e,t,n,r,o),Ht(0,t,n,r,o)},rn=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?Lt(e,t,n,r,o):Ht(0,t,n,r,o)},on=function(e){return"tms"===e.provider?en(e):Vt(e)},an=function(e){return"tms"===e.provider?tn({parseUrl:Rt})(e):function(e){return zt.Observable.of(e)}(e)},sn=n("./MapStore2/web/client/api/WFS.js");function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(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(Tt.cleanAuthParamsFromURL)(e.url),name:n,title:r,description:o,SRS:[i].concat(dn(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(gt,{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(vt.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)}}])&&jn(t.prototype,n),r&&jn(t,r),i}(c.a.Component);Mn(Rn,"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}),Mn(Rn,"contextTypes",{messages:p.a.object}),Mn(Rn,"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 Ln=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)}})),Fn=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}}))),zn=Object(f.connect)(Dn,{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.F)()},refreshLayerVersion:x.U,onLayerInfo:w.g.bind(null,"layerinfo","enabled",!0,!1)})(Object(L.compose)(Ln,Fn)(Rn)),Bn={TOCPlugin:oe()(zn,{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(_n)},qn=n("./MapStore2/web/client/plugins/Map.jsx"),Un=n("./MapStore2/web/client/plugins/Toolbar.jsx"),Gn=(n("./MapStore2/web/client/plugins/drawer/drawer.css"),n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx")),Hn=n("./MapStore2/web/client/selectors/maplayout.js"),Vn=n("./node_modules/react-sidebar/dist-modules/index.js"),Wn=n.n(Vn),Yn=n("./node_modules/react-resizable/index.js");function Kn(e){return(Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zn(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 Jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n0?c.a.createElement("div",{id:this.props.id},c.a.createElement(Dr,Or({},this.props,{id:"drawer-menu-button"})),c.a.createElement(Nr,Or({single:this.props.singleSection},this.props.menuOptions,{title:c.a.createElement(xr.a,{msgId:"menu"}),alignment:"left"}),this.renderItems())):null}}])&&Er(t.prototype,n),r&&Er(t,r),i}(c.a.Component);Pr(Rr,"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}),Pr(Rr,"contextTypes",{messages:p.a.object,router:p.a.object}),Pr(Rr,"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 Lr=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)})(Rr),Fr={DrawerMenuPlugin:oe()(Lr,{disablePluginIf:"{state('featuregridmode') === 'EDIT'}",FloatingLegend:{priority:1,name:"drawer-menu",button:Dr}}),reducers:{}},zr=n("./MapStore2/web/client/plugins/ZoomAll.jsx"),Br=n("./MapStore2/web/client/plugins/MapLoading.jsx"),qr=n("./MapStore2/web/client/plugins/OmniBar.jsx"),Ur=n("./MapStore2/web/client/plugins/BackgroundSelector.jsx"),Gr=n("./MapStore2/web/client/plugins/FullScreen.jsx"),Hr=n("./MapStore2/web/client/plugins/ZoomIn.jsx"),Vr=n("./MapStore2/web/client/plugins/ZoomOut.jsx"),Wr=n("./MapStore2/web/client/plugins/Expander.jsx"),Yr=n("./MapStore2/web/client/plugins/BurgerMenu.jsx"),Kr=n("./node_modules/redux-undo/lib/index.js"),Xr=n.n(Kr);function Zr(e){return(Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qr(){return(Qr=Object.assign||function(e){for(var t=1;t0)}}),{onClick:xo})(wo),So=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:_o})(so),Eo={UndoPlugin:oe()(Oo,{Toolbar:{name:"undo",position:5,tool:!0,tooltip:"history.undoBtnTooltip",icon:c.a.createElement(v.Glyphicon,{glyph:"step-backward"}),help:c.a.createElement(xr.a,{msgId:"helptexts.historyundo"}),priority:1}}),RedoPlugin:oe()(So,{Toolbar:{name:"redo",position:6,tool:!0,tooltip:"history.redoBtnTooltip",icon:c.a.createElement(v.Glyphicon,{glyph:"step-forward"}),help:c.a.createElement(xr.a,{msgId:"helptexts.historyredo"}),priority:1}}),reducers:{}},jo=n("./MapStore2/web/client/plugins/ScaleBox.jsx"),Co=n("./MapStore2/web/client/plugins/MapFooter.jsx"),To=n("./MapStore2/web/client/plugins/Print.jsx"),ko=n("./MapStore2/web/client/actions/annotations.js"),Ao=n("./MapStore2/web/client/actions/measurement.js"),Po=n("./MapStore2/web/client/selectors/measurement.js"),Mo=n("./node_modules/react-widgets/lib/index.js"),Io=n("./node_modules/uuid/v1.js"),No=n.n(Io),Do=n("./MapStore2/web/client/utils/FileUtils.js"),Ro=n("./MapStore2/web/client/utils/MeasurementUtils.js"),Lo=n("./MapStore2/web/client/utils/MeasureUtils.js"),Fo=n("./MapStore2/web/client/components/I18N/Number.jsx"),zo=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),Bo=n("./MapStore2/web/client/components/misc/OverlayTriggerCustom.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(Lo.convertUom)(parseFloat(e),t,n):e},Xo=function(e,t,n){return Object(se.isNumber)(parseFloat(e))&&!isNaN(parseFloat(e))?parseFloat(Object(Lo.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(Lo.getFormattedBearingValue)(Object(se.round)(e||0,6),t)},onChangeUom:function(){},onChangeFormat:function(){},onMount:function(){},onUpdateOptions:function(){},onAddAsLayer:function(){}});var Ei=Si,ji=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 D(!1)},buttons:[{bsStyle:"primary",text:c.a.createElement(b.default,{msgId:"close"}),onClick:function(){return E(!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),Ea=n("./MapStore2/node_modules/lodash/sortBy.js"),ja=n.n(Ea),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),Na=Ia.right,Da=(Ia.left,Na);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 js(t[1],t[2],t[3],1):(t=fs.exec(e))?new js(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 js(NaN,NaN,NaN,0):null}function _s(e){return new js(e>>16&255,e>>8&255,255&e,1)}function Os(e,t,n,r){return r<=0&&(e=t=n=NaN),new js(e,t,n,r)}function Ss(e){return e instanceof ss||(e=xs(e)),e?new js((e=e.rgb()).r,e.g,e.b,e.opacity):new js}function Es(e,t,n,r){return 1===arguments.length?Ss(e):new js(e,t,n,null==r?1:r)}function js(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 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}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(js,Es,as(ss,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new js(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new js(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 js(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 Ds=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):Ds(isNaN(t)?n:t)}}function Fs(e,t){var n=t-e;return n?Rs(e,n):Ds(isNaN(e)?t:e)}var zs=function e(t){var n=Ls(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=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 E=p.length+e.length+O.length,j=E>1)+p+e+O+j.slice(E);break;default:e=j+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 Dl().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[Da(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,Eu,ju={"-":"",_:" ",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 Ec(e,t){return Sc(e,t)+"000"}function jc(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 Nc(e,t){return Au(cu.count(vu(e)-1,e),t,2)}function Dc(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:Ec,g:Rc,G:Fc,H:xc,I:_c,j:Oc,L:Sc,m:jc,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:Nc,x:null,X:null,y:Dc,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:Du,U:Ru,V:Lu,w:Nu,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 ju?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,Eu=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):Ds(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 Ed=Sd(ed("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),jd=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)},Nd=0,Dd=function(e){return""+(e||"")+ ++Nd},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=ja()(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,Ep=function(e){return function(){return e}},jp=Math.PI,Cp=2*jp;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=Ep(!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: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};Dp(kp);function Np(e){this._curve=e}function Dp(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 Rp={draw:function(e,t){var n=Math.sqrt(t/jp);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(jp/10)/Math.sin(7*jp/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,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 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,Eh=n("./MapStore2/node_modules/lodash/debounce.js"),jh=n.n(Eh),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?jh()(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,E=O.lineTangency,j=O.theta,C=Math.abs(a-s)-_-j;if(C<0)return b+"L"+t+","+n+"Z";b+="L"+E.x+","+E.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,Eg,jg,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),Eg.displayName="PolarAngleAxis",Eg.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}),Eg.defaultProps={cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1},Sg=jg))||Sg,Ng=n("./MapStore2/node_modules/lodash/isPlainObject.js"),Dg=n.n(Ng),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=Dd("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*E/2-g)<=0&&(m=O.tickCoord+h*(E/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,E=void 0,j=void 0,C=void 0;return Array.isArray(m)?(j=m[0],C=m[1]):(j=m,C=m),"vertical"===n?(_=s.scale,y=f+t,b=_((g=h)-j),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},E={x1:b,y1:v,x2:b,y2:x}):"horizontal"===n&&(_=l.scale,b=(g=p+t)-r,w=g+r,v=_((y=h)-j),O={x1:b,y1:x=_(y+C),x2:w,y2:x},S={x1:g,y1:v,x2:g,y2:x},E={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",E),";")}))}},{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,jb=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:ja()(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=Dd("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[Dd("_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(){Nv.on(Dv,this.handleReceiveSyncEvent),Nv.setMaxListeners&&Nv._maxListeners&&Nv.setMaxListeners(Nv._maxListeners+1)}},{key:"removeListener",value:function(){Nv.removeListener(Dv,this.handleReceiveSyncEvent),Nv.setMaxListeners&&Nv._maxListeners&&Nv.setMaxListeners(Nv._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)||Nv.emit(Dv,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[j].stackGroups),E=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:E,sizeList:g[C],maxBarSize:A})}var P=t&&t({props:r,xAxis:v,yAxis:w,xTicks:x,yTicks:_,dataKey:d,item:e,bandSize:E,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;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=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")),Nw=n.n(Iw),Dw=n("./MapStore2/node_modules/lodash/min.js"),Rw=n.n(Dw),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(jx(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(jx(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(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,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,[Eb,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){j_(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){j_(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=E_(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):E_(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 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 DS(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;iE.a.commands.autocomplete(t,null,{completeSingle:!1,container:o})}}})),wE(bE(e),"onUpdate",(function(){e.update.cancel(),e.update()})),wE(bE(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(cE({},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(zo.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(sE.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(aE.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),iE.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})}})})))))}}])&&hE(t.prototype,n),r&&hE(t,r),i}(c.a.Component);wE(xE,"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}),wE(xE,"defaultProps",{mode:"geocss",theme:"lesser-dark",style:{},code:"",onChange:function(){},waitTime:1e3,hintProperties:{},inlineWidgets:[]});var _E=xE,OE=n("./MapStore2/node_modules/lodash/find.js"),SE=n.n(OE),EE=n("./MapStore2/node_modules/lodash/identity.js"),jE=n.n(EE),CE=n("./MapStore2/node_modules/lodash/omit.js"),TE=n.n(CE),kE=n("./MapStore2/web/client/components/style/ColorSelector.jsx"),AE=n("./MapStore2/web/client/components/misc/Slider.jsx");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 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 DE=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 RE(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=NE(e,["options"]);return ME(ME({},o),{},{options:r,ramp:i?i(o,r):(Object(hO.c)(r.base,r.range,n+1,r.options)||["#AAA"]).splice(1)})})),l=SE()(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:DE,optionRenderer:DE,onChange:function(e){e&&r(e)}})}RE.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},RE.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 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(e){return function(e){if(Array.isArray(e))return BE(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 BE(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 BE(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 BE(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 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 fj(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=mj(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,E=c.height,j=u.top,C=u.left,T=u.width,k=u.height,A=[C+T/2,j+k/2],P=A[0]-O>w/2+10&&O+S-A[0]>w/2+10,M=A[1]-_>x/2+10&&_+E-A[1]>x/2+10,I={top:{filter:function(){return P&&j-_>x+10},styles:function(){return{picker:{position:"absolute",top:j-x-10-_,left:C+T/2-w/2-O},overlay:{},arrow:{top:j+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:j-x/2-_,left:C+T+10-O},overlay:{},arrow:{top:j+k/2,left:C+T-2,transform:"translate(-50%, -50%) rotateZ(0deg) translateX(50%)"}}}},bottom:{filter:function(){return P&&_+E-(j+k)>x+10},styles:function(){return{picker:{position:"absolute",top:j+k+10-_,left:C+T/2-w/2-O},overlay:{},arrow:{top:j+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:j-x/2-_,left:C-w-10-O},overlay:{},arrow:{top:j+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(uj.createPortal)(c.a.createElement("div",{className:"ms-popover-overlay",ref:y,style:fj({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:fj({pointerEvents:"auto"},null==h?void 0:h.picker)},o),c.a.createElement("div",{className:"ms-popover-arrow",style:fj({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 bj=function(e){var t=e.open,n=e.onOpen,r=void 0===n?function(){}:n,o=dj(e,["open","onOpen"]),i=mj(Object(u.useState)(t),2),a=i[0],s=i[1];return c.a.createElement(yj,cj({},o,{open:a,onOpen:function(e){s(e),r(e)}}))},vj=[{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"}]}}],wj=Object(Gn.a)(v.Button);var xj=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?vj:a,l=s.find((function(e){return e.value===t}));return c.a.createElement(bj,{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(wj,{className:"ms-mark-preview",active:e.value===t,onClick:function(){return i(e.value)}},c.a.createElement(IS,e.preview)))}))))},c.a.createElement(wj,{className:"ms-mark-preview"},l&&c.a.createElement(IS,l.preview)))};var _j=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(lj,{label:n},c.a.createElement(Uo.default,{clearable:!1,options:o,value:r,onChange:function(e){return i("band",e.value)}})),c.a.createElement(lj,{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 Oj(){return(Oj=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 kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aj(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(Ej(e)):e}function v(e){return n?[{value:n,label:n}].reduce(y,e):e}var w=i(p),x=Sj(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?Nj:Ij,E=!l||l({value:n});return c.a.createElement(lj,{label:t,invalid:!E},c.a.createElement(S,Oj({clearable:m,placeholder:"styleeditor.selectPlaceholder",noResultsText:"styleeditor.noResultsSelectInput"},s,{options:_.map((function(e){return Aj(Aj({},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(Tj(e,["label","value","config","onChange"]));return c.a.createElement(lj,{label:t},c.a.createElement(LE,{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(sj,{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(_j,{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:Aj(Aj({},o.channelSelection),{},Pj({},e,Aj(Aj({},o.channelSelection[e]),{},{sourceChannelName:n})))}):"enhancementType"===t?i({contrastEnhancement:{},channelSelection:Aj(Aj({},o.channelSelection),{},Pj({},e,Aj(Aj({},o.channelSelection[e]),{},{contrastEnhancement:Aj(Aj({},s[e].contrastEnhancement),{},{enhancementType:n})})))}):null}}),c.a.createElement(lj,{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(_j,{label:"styleeditor.grayChannel",value:d,bands:[{label:c.a.createElement(b.default,{msgId:"styleeditor.channelAuto"}),value:"auto"}].concat(Ej(u)),enhancementType:(null==p?void 0:p.enhancementType)||"none",onChange:function(e,t){return"band"===e?i("auto"===t?Aj(Aj({},o),{},{channelSelection:void 0}):{contrastEnhancement:{},channelSelection:{grayChannel:Aj(Aj({contrastEnhancement:{}},null==s?void 0:s.grayChannel),{},{sourceChannelName:t})}}):"enhancementType"===e?i("auto"===l?{channelSelection:void 0,contrastEnhancement:Aj(Aj({},o.contrastEnhancement),{},{enhancementType:t})}:{contrastEnhancement:{},channelSelection:Object.keys(s).reduce((function(e,n){return Aj(Aj({},e),{},Pj({},n,Aj(Aj({},s[n]),{},{contrastEnhancement:Aj(Aj({},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(lj,{label:t},c.a.createElement(ZE,{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 Rj(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=Dj[s],g=l&&l(t[h],i.current.properties);return m&&c.a.createElement(m,Oj({},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 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(){return(zj=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(Kj,{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)}}])&&Qj(t.prototype,n),r&&Qj(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 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 jC(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(Mo.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(Mo.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(Mo.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)))})),DC(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=jC(jC({},this.props.style),{},{borderColor:"#FF0000"})),c.a.createElement(Ee.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);DC(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}),DC(RC,"contextTypes",{messages:p.a.object}),DC(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(bj,{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(bj,{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,E=_.classification,j=_.attribute,C=_.intervals,T=_.reverse,k=_.continuous,A=Object(u.useRef)();A.current={ruleId:t,intervals:C,method:S,attribute:j,reverse:T,ramp:O,continuous:k,classification:E};var P=r.reduce((function(e,t){return _a()(t)?jk(jk({},e),t(i)):jk(jk({},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(Lj,{properties:_,config:{attributes:d,methods:h,getColors:function(){var e="custom"===O&&E.length>0&&{name:"custom",colors:E.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 jk({label:t?"global.colors.".concat(t):void 0,name:t},n)})):[]},bands:x,method:S},params:P,onChange:function(e){return p(jk(jk({},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 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 Dk(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 Dk((Lk(t={},n,Ik()(Dk(Dk({},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 Dk(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 Dk(Dk(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!!SE()(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,N=g.hideInputLabel,D=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:N?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(sE.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:D,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:j,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(Lj,{properties:o,params:a,config:{bands:_,attributes:x,fonts:E},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:rE.b,classificationRaster:rE.a,classification:rE.b,"classification-raster":rE.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)([eE.c,eE.g,eE.m,eE.f,eE.n,eE.j,eE.h,K.p,K.l,eE.s],(function(e,t,n,r,o,i,a,s,l,u){var c,d;return{code:e,mode:Object(tE.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)||nE.a.methods}})),{onError:Yi.v.bind(null,"edit")})(_A);MA.defaultProps={getColors:nE.a.getColors,styleUpdateTypes:AA};var IA={visual:MA,textarea:Object(f.connect)(Object(R.a)([eE.c,eE.g,eE.m,eE.f,eE.n],(function(e,t,n,r,o){return{code:e,mode:Object(tE.g)(t),hintProperties:n,error:r.edit||null,loading:o}})))(_E)};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=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(zo.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,jA({},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)}}]})))))}NA.defaultProps={inlineWidgets:EA};var DA=Object(f.connect)(Object(OA.a)(eE.c,eE.f,eE.b,(function(e){var t=Object(eE.d)(e);return null==t?void 0:t.editorType}),(function(e){try{var t=Object(eE.d)(e);return JSON.parse(null==t?void 0:t.styleJSON)}catch(e){return null}}),eE.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})(NA),RA=Object(tE.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)([eE.t,eE.a,eE.h,eE.b,eE.s,eE.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)([eE.r,eE.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)([eE.r,eE.t,eE.f,eE.k,eE.c,eE.n,eE.q,eE.b,eE.i,eE.s,eE.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:jS.h.bind(null,tE.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)([eE.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(zo.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.e)())})(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:ES};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}))},EP=Object(R.a)([H.o,H.p,H.k,X.b,X.a,function(e){return Object(Hn.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}})),jP=Object(L.compose)(Object(f.connect)(EP,{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:jP,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.i,$.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)(Hn.e,Hn.a,de.a,(function(e,t,n){return{enabled:!e&&!t&&!n}}))),NP=n("./node_modules/react-container-dimensions/lib/index.js"),DP=n.n(NP),RP=n("./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js");var LP=function(e){return Object(L.compose)(Object(L.withStateHandlers)((function(){return{}}),{onResize:function(){return function(e){return{height:e.height}}}}),Object(RP.a)(e))},FP=n("./node_modules/react-grid-layout/index.js");function zP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BP(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 XP=Object(L.branch)((function(e){var t=e.useDefaultWidthProvider;return void 0===t||t}),FP.WidthProvider)(FP.Responsive),ZP=GP(n("./MapStore2/web/client/components/widgets/widget/DefaultWidget.jsx").default),QP=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}))}))},$P=function(e){return e<480?e-34:e},JP=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,E=e.showGroupColor,j=e.groups,C=void 0===j?[]:j,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,N=e.updateWidgetProperty,D=void 0===N?function(){}:N,R=e.deleteWidget,L=void 0===R?function(){}:R,F=e.toggleCollapse,z=void 0===F?function(){}:F,B=e.editWidget,q=void 0===B?function(){}:B,U=e.onLayoutChange,G=void 0===U?function(){}:U,H=e.language,V=e.env,W=KP(e,["id","style","className","toolsOptions","rowHeight","breakpoints","cols","widgets","layouts","dependencies","verticalCompact","compactMode","useDefaultWidthProvider","measureBeforeMount","width","showGroupColor","groups","canEdit","getWidgetClass","onWidgetClick","updateWidgetProperty","deleteWidget","toggleCollapse","editWidget","onLayoutChange","language","env"]),Y=m.filter((function(e){var t=e.mapSync,n=e.dependenciesMap;return t&&n})).map((function(e){return e.dependenciesMap})),K=function(e){return"table"===e.widgetType&&Y.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(XP,{key:t||"widgets-view",useDefaultWidthProvider:_,measureBeforeMount:O,width:_?void 0:$P(S),isResizable:k,isDraggable:k,draggableHandle:".draggableHandle",onLayoutChange:G,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?WP(WP({},e),{},{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(ZP,HP({"data-grid":e.dataGrid},W,e,{quickFilters:K(e)?e.quickFilters:void 0,toolsOptions:a,groups:QP(C,e),showGroupColor:E,dependencies:y,enableColumnFilters:K(e),canEdit:k,updateProperty:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=n.width;return c.a.createElement(e,cM({width:r},t))}))}}),Object(L.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=n-120,o=4,i=Math.floor(r/o-20);return{rowHeight:i,className:"on-map",breakpoints:{md:480,xxs:0},cols:{md:6,xxs:1},style:{left:t&&t>800?"500px":"0",marginTop:52,bottom:65,height:Math.floor((n-100)/(i+10))*(i+10),width:"calc(100% - ".concat(t&&t>800?570:70,"px)"),position:"absolute",zIndex:50}}}))),Object(L.compose)(Object(L.defaultProps)({toolsOptions:{showPin:"user.role===ADMIN",seeHidden:"user.role===ADMIN",showHide:!1,showCollapse:!0}}),MP("toolsOptions",{asObject:!0}),Object(L.compose)(Object(f.connect)(Object(R.a)(TP.o,(function(e){return{tray:e}}))),Object(L.withPropsOnChange)(["toolsOptions","tray"],(function(e){var t=e.toolsOptions,n=e.tray;return{toolsOptions:t?lM(lM({},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}))}}))))(JP),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&&rM(e,t)}(i,e);var t,n,r,o=oM(i);function i(){return tM(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}}])&&nM(t.prototype,n),r&&nM(t,r),i}(c.a.Component);uM(pM,"propTypes",{enabled:p.a.bool}),uM(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 Bt.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 Bt.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 Bt.a.Observable.of(Object(le.H)(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 Bt.a.Observable.of(Object(mM.fb)(),Object(le.H)(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.N)("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 Bt.a.Observable.of(vM.u.apply(void 0,xM(jM(r()))),Object(yM.ab)(Object(TP.h)(r())),Object(w.g)("widgetBuilder","enabled",!1),Object(w.g)("queryPanel","enabled",!0)).concat(Bt.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?Bt.a.Observable.of(Object(le.N)("filter",e.filterObj)):Bt.a.Observable.empty()).merge(Bt.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(Bt.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.q)(e)}}),{backToWidgetList:function(){return Object(le.N)("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"),NM=function(e,t){return zt.Observable.defer((function(){return Ct.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 DM(e){return NM(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 zt.Observable.forkJoin.apply(zt.Observable,[Object(PM.a)({layer:n})].concat(FM(t?[DM(n)]:[DM(n).catch((function(){return zt.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),zt.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(NT,{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 Bt.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 Bt.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.N)("layer",e)},onResetChange:le.N}),ZM=Object(L.compose)(Object(L.setDisplayName)("ChartLayerSelector"),XM,Object(L.defaultProps)({layerValidationStream:function(e){return e.switchMap((function(e){return function(e){return zt.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.p,(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.n,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.n,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(v.Button,{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(v.Button,{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(v.Button,{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);jI(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}),jI(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 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?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,NI({},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 tN={value:1};function nN(e){try{if(!e)return[!0];var t=Object(ZI.a)(e,tN);return[!Object(se.isNil)(t)&&!Object(se.isNaN)(t)&&!Object(se.isError)(t),t]}catch(e){return[!1,e]}}function rN(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 oN(e,t){return t?e?"success":"error":null}function iN(e){var t=e.onChange,n=e.value,r=eN(e,["onChange","value"]),o=$I(nN(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:oN(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:rN(l,f)},r,{type:"text",value:g,onChange:function(e){var n=$I(nN(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 aN=Object(AS.a)("options")(Uo.default),sN=[{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 lN(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 uN(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(lN,{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(aN,{value:m.yAxisOpts&&m.yAxisOpts.type||"-",options:sN,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(iN,{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(aN,{value:null!==(o=null==m||null===(i=m.xAxisOpts)||void 0===i?void 0:i.type)&&void 0!==o?o:"-",options:sN,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(sE.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(AE.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 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;t1&&void 0!==arguments[1]?arguments[1]:{};return"widgets.".concat(e,".").concat(t.type||t.widgetType||"default")},gN=c.a.createElement(b.default,{msgId:mN("placeHolder")}),yN=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:mN("groupByAttributes",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(Uo.default,{value:r.options&&r.options.groupByAttributes,options:s,placeholder:gN,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:mN("aggregationAttribute",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(Uo.default,{value:r.options&&r.options.aggregationAttribute,options:s,placeholder:gN,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:mN("aggregateFunction",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(Uo.default,{value:r.options&&r.options.aggregateFunction,options:p,placeholder:gN,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:mN("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:mN("colorRamp",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(LE,{items:hN(r.type),value:Object(se.head)(hN(r.type).filter((function(e){return r.autoColorOptions&&e.name===r.autoColorOptions.name}))),samples:"pie"===r.type?5:1,onChange:function(e){i("autoColorOptions",dN(dN({},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:mN("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(uN,{data:r,onChange:i}))))},bN=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)}}))))))},vN=n("./MapStore2/web/client/components/widgets/enhancers/multiProtocolChart.js"),wN=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToWidget.js"),xN=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToFilter.js"),_N=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToOptions.js"),ON=n("./MapStore2/web/client/components/widgets/enhancers/emptyChartState.js"),SN=n("./MapStore2/web/client/components/widgets/enhancers/errorChartState.js");function EN(){return(EN=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),TN=HI(yN),kN=Object(L.compose)(wN.a,xN.a,_N.a,vN.a,jN,SN.a,ON.a)(MI.a),AN=PI(MI.a),PN={width:430,height:200},MN=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)},IN=kI(TI),NN=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 MN(n.options,{hasAggregateProcess:l})?c.a.createElement(kN,EN({key:"preview-chart",onLoad:function(){return s(!0)},onLoadError:function(){return s(!1)},isAnimationActive:!1,dependencies:i,dependenciesMap:n.dependenciesMap},PN,{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(AN,EN({hasAggregateProcess:l,key:"sample-chart",isAnimationActive:!1},PN,{type:n.type,autoColorOptions:n.autoColorOptions,legend:n.legend,cartesian:n.cartesian,yAxis:n.yAxis}))},DN=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&&!MN(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(IN,{step:m,setPage:a,onFinish:o,isStepValid:function(e){return 0===e?d.chartType:1!==e||MN(d.options,{hasAggregateProcess:v})},hideButtons:!0},c.a.createElement(CN,{key:"type",featureTypeProperties:y,type:d.type,onSelect:function(e){n("type",e)}}),c.a.createElement(TN,{hasAggregateProcess:v,dependencies:b,key:"chart-options",featureTypeProperties:y,types:g,data:d,onChange:n,layer:d.layer||f,sampleChart:NN({hasAggregateProcess:v,data:d,layer:d.layer||f,dependencies:b,setValid:function(e){return l(e&&MN(d.options,{hasAggregateProcess:v}))}})}),c.a.createElement(bN,{key:"widget-options",data:d,onChange:n,layer:d.layer||f,sampleChart:NN({hasAggregateProcess:v,data:d,layer:d.layer||f,dependencies:b,setValid:function(e){return l(e&&MN(d.options,{hasAggregateProcess:v}))}})}))}));function RN(e){return function(e){if(Array.isArray(e))return LN(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 LN(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 LN(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 LN(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(RN(o),[{onClick:a,disabled:!t,tooltipId:"widgets.builder.wizard.useTheSelectedLayer",visible:n,glyph:"arrow-right"}])})},zN=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(v.Button,{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))))},BN=zN;function qN(e){return(qN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function UN(e){return function(e){if(Array.isArray(e))return GN(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 GN(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 GN(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 GN(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 KN(e){var t=function(e,t){if("object"!==qN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qN(t)?t:String(t)}var XN=n("./node_modules/rxjs/Rx.js"),ZN=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(XN.Observable.of({loading:!1})).concat(t.throttleTime(u).distinct().exhaustMap((function(t){return n(e,t).startWith({loading:!0}).concat(XN.Observable.of({loading:!1}))}))).scan((function(e,t){var n=e[i],r=YN(e,[i].map(KN)),o=t[i],a=YN(t,[i].map(KN));return VN(VN(WN({},i,o?[].concat(UN(n||[]),UN(o)):n||[]),r),a)})).map((function(e){return VN({},e)}))})).catch((function(e){return XN.Observable.of({loading:!1,error:e})}))},QN=n("./MapStore2/web/client/components/misc/enhancers/infiniteScroll/withScrollSpy.js"),$N=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 XN.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(ZN(l,i,e,t).startWith({}),(function(e,t){return VN(VN(VN({},e),t),{},{onLoadMore:o,loadFirst:s})}))}))}(t,o),Object(L.defaultProps)({hasMore:i,isScrolled:a}),Object(QN.a)(n,r))},JN=n("./MapStore2/web/client/components/misc/enhancers/withControllableState.js"),eD=n("./MapStore2/web/client/components/misc/FitIcon.jsx"),tD=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),nD=Object(AS.a)(["placeholder","clearValueText","noResultsText"])(n("./node_modules/react-select/dist/react-select.es.js").default),rD=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(nD,{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"})))},oD=Object(AS.a)("placeholder")(v.FormControl),iD=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(rD,{servieces:s,catalog:a,isValidServiceSelected:l})):null,c.a.createElement(v.FormGroup,{controlId:"catalog-form"},c.a.createElement(oD,{type:"text",placeholder:"catalog.textSearchPlaceholder",value:r,onChange:function(e){return n(e.currentTarget.value)}})))))};function aD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sD(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"}):cD,record:e}})),total:r&&r.numberOfRecordsMatched}},fD={querySelector:".ms2-border-layout-body",pageSize:10},hD=Object(L.compose)(Object(JN.a)("searchText","setSearchText",""),$N({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 Bt.a.Observable.fromPromise(uD[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(pD)},scrollSpyOptions:fD}),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(zo.a,{className:"compat-catalog",header:c.a.createElement(iD,{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(tD.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(dD,{items:l.map((function(e){return e===r||r&&e&&e.record&&r.identifier===e.record.identifier?sD(sD({},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)}}))})),mD=Object(L.defaultProps)({title:c.a.createElement(b.default,{msgId:"widgets.builder.wizard.selectALayer"})})(hD),gD=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}})))))(mD),yD=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(zo.a,{className:"bg-body layer-selector",header:c.a.createElement(BN,{onClose:n},c.a.createElement(FN,{stepButtons:s,canProceed:d,onProceed:function(){return a(p)}}),l&&!d&&u?c.a.createElement(sE.a,{trigger:!1,glyph:"warning-sign",bsStyle:"warning",title:c.a.createElement(IT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),text:c.a.createElement(NT,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}):null)},c.a.createElement(gD,{services:h,selected:l,catalog:f,onRecordSelected:function(e){return o(e)}}))};function bD(e){return function(e){if(Array.isArray(e))return vD(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 vD(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 vD(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 vD(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 OD(){return(OD=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 ED=Object(f.connect)(yI,{setPage:le.P,setValid:function(e){return Object(le.B)("valid",e)},onEditorChange:le.N,insertWidget:le.L},gI)(Object(L.compose)(qM({needWPS:!1}),Object(L.renameProps)({editorData:"data",onEditorChange:"onChange"}))(DN)),jD=Object(L.compose)(Object(f.connect)(yI,{openFilterEditor:le.O,setPage:le.P,onChange:le.N,insertWidget:le.L},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:wD(n)}].concat(bD(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:xD(n)},{onClick:function(){return u(Math.min(n+1,1))},visible:2===n,glyph:"floppy-disk",tooltipId:_D(n,o)}])})})),CD=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(yD))))((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=SD(e,["enabled","onClose","exitButton","editorData","toggleConnection","availableDependencies","dependencies"]);return c.a.createElement("div",{className:"mapstore-chart-advance-options"},c.a.createElement(zo.a,{header:c.a.createElement(BN,{onClose:r},c.a.createElement(jD,{exitButton:o,editorData:i,toggleConnection:a,availableDependencies:l,onClose:r}))},t?c.a.createElement(ED,OD({dependencies:u},d)):null))}));function TD(e){return function(e){if(Array.isArray(e))return kD(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 kD(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 kD(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 kD(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"},PD=Object(AS.a)("placeholder")(v.FormControl),MD=Object(AS.a)("placeholder")(w_.a),ID=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(PD,{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(MD,{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)}}))},ND=kI(TI),DD=Object(L.compose)(Object(f.connect)(yI,{setPage:le.P,insertWidget:le.L,onResetChange:le.N},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(TD(a),[{onClick:function(){return l(Math.min(n+1,1))},visible:0===n,glyph:"floppy-disk",tooltipId:AD(n,o)}])})})),RD=Object(f.connect)(yI,{onChange:le.N},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(ND,{step:l,setPage:a,onFinish:o,hideButtons:!0},c.a.createElement(ID,{key:"widget-options",data:d,onChange:n}))})),LD=n("./node_modules/react-data-grid/index.js"),FD=n.n(LD);function zD(e){return function(e){if(Array.isArray(e))return BD(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 BD(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 BD(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 BD(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 UD(UD({},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(HD(e),HD(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(FD.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(zD(e),zD(t.hide?[]:[n]))}),[])}}}))})),YD=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(WD,{options:n.options,onChange:o,attributes:i}),n.options&&n.options.columnSettings?c.a.createElement(v.Button,{style:{float:"right"},onClick:function(){return o("options.columnSettings",void 0)}},c.a.createElement(b.default,{msgId:"widgets.builder.wizard.resetColumnsSizes"})):null)))},KD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.aggregateFunction&&e.aggregationAttribute&&e.groupByAttributes},XD=kI(TI),ZD=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&&!KD(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(XD,{step:f,setPage:a,onFinish:o,isStepValid:function(e){return 1!==e||KD(l.options)},hideButtons:!0},c.a.createElement(YD,{dependencies:g,key:"chart-options",featureTypeProperties:m,types:h,data:l,onChange:n,layer:l.layer||d}),c.a.createElement(bN,{key:"widget-options",data:l,onChange:n,layer:l.layer||d}))}));function QD(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);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.P,setValid:function(e){return Object(le.B)("valid",e)},onEditorChange:le.N,insertWidget:le.L},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())})))(ZD)),aR=Object(L.compose)(Object(f.connect)(yI,{openFilterEditor:le.O,setPage:le.P,onChange:le.N,insertWidget:le.L},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(QD(a),[{visible:o>=0,onClick:n,disabled:!JD(l),glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return d(Math.min(o+1,2))},visible:0===o,disabled:0===o&&!JD(l),glyph:"arrow-right",tooltipId:tR(0,JD(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(yD))))((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(zo.a,{header:c.a.createElement(BN,{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(sE.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.p,(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.B)("editNode",e)},closeNodeEditor:function(){return Object(le.B)("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 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(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&&nt.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)()}}))),DR=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.P,onChange:le.N,insertWidget:le.L},gI),kR,OR,AR,NR,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"}]}}))),DR,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}})))))(mD),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 Bt.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)($N((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(JN.a)("searchText","setSearchText",""),tL=($N({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?Ct.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?Ot.default.normalizeConfig(t.map):Ot.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(tD.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(zo.a,{className:"bg-body layer-selector",header:c.a.createElement(zN,{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.N)("map",Object(ee.normalizeMap)(t))},onResetChange:le.N}),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.N}),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(zo.a,{className:"bg-body layer-selector",header:c.a.createElement(BN,{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(sE.a,{glyph:"exclamation-mark",bsStyle:"warning",title:c.a.createElement(IT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),text:c.a.createElement(NT,{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.N},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(bN,{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,E=void 0===S?function(){}:S;return c.a.createElement(zo.a,{className:"map-selector",header:c.a.createElement(BN,{onClose:r},c.a.createElement(vL,{exitButton:g,editorData:s,availableDependencies:O,toggleConnection:E,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 zt.Observable.forkJoin(Object(PM.a)({layer:e}),DM(e))}(e)}))}}),UM,KM),SL=n("./MapStore2/web/client/components/widgets/enhancers/wpsCounter.js"),EL=n("./MapStore2/web/client/components/widgets/widget/CounterView.jsx");function jL(){return(jL=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)(wN.a,xN.a,_N.a,SL.a,AL,CL,SN.a,ON.a),ML={style:{width:450,height:100}},IL=kI(TI),NL=PL(EL.a),DL=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(NL,jL({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(EL.a,jL({},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(DL,{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(bN,{key:"widget-options",data:f,onChange:n,layer:f.layer||m,sampleChart:c.a.createElement(DL,{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.P,setValid:function(e){return Object(le.B)("valid",e)},onEditorChange:le.N,insertWidget:le.L},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.O,setPage:le.P,onChange:le.N,insertWidget:le.L},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(yD))))((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(zo.a,{header:c.a.createElement(BN,{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.P,onEditorChange:le.N,insertWidget:le.L},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(bN,{key:"widget-options",onChange:n}))})),cF=Object(L.compose)(Object(f.connect)(yI,{openFilterEditor:le.O,setPage:le.P,onChange:le.N,insertWidget:le.L},gI),oF,sF,Object(f.connect)((function(){return{}}),{onLayerChoice:function(e){return Object(le.N)("layer",e)},onResetChange:le.N}),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(zo.a,{header:c.a.createElement(BN,{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(sE.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:CD,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(zo.a,{header:c.a.createElement(BN,{onClose:r},c.a.createElement(DD,null))},t?c.a.createElement(RD,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(zo.a,{className:"bg-body",header:c.a.createElement(BN,{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 NF=Object(f.connect)(Object(R.a)(Z.k,(function(e){return Object(Hn.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),DF=Object(_.d)("WidgetsBuilder",{component:NF,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.m,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{widgets:e}})),{onClick:function(){return Object(le.R)()}}),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(zo.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.U}),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 Bt.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 Bt.a.Observable.merge(e.ofType(le.t,le.u,fz.d,le.y,le.m).filter((function(){return bz(r())&&Object(hz.f)(r())}))).switchMap((function(){return Bt.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 Bt.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 Bt.a.Observable.of(Object(le.R)())})).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.y,fz.d).filter((function(){return!Object(hz.f)(r())&&Object(hz.b)(r())})).filter((function(){return!bz(r())})).switchMap((function(){return Bt.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"),Ez=n.n(Sz),jz=n("./node_modules/@turf/bbox/index.js"),Cz=n.n(jz),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"),Nz=n("./MapStore2/web/client/actions/highlight.js"),Dz=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(Dz.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 Bt.a.Observable.defer((function(){return Ct.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(Dz.C)(e.getState()),s=a.id,l=Bz({},Object(se.get)(e.getState(),'featuregrid.advancedFilters["'.concat(s,'"]')));if(l){var u=Object(Dz.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(Dz.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=Bt.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)?Bt.a.Observable.of(s(),Object(vM.u)(r,o)):Bt.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 Bt.a.Observable.of(Object(mM.Db)(e.id))}))},Zz=function(e,t){return e.ofType(vM.j).switchMap((function(){return Bt.a.Observable.of(Object(mM.bb)(0)).concat(Object(Dz.s)(t.getState())===mM.x.VIEW?Bt.a.Observable.of(Object(mM.Sb)()):Bt.a.Observable.empty())}))},Qz=function(e,t){return e.ofType(mM.N).switchMap((function(n){var r=n.sortBy,o=n.sortOrder;return Bt.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(Dz.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(Dz.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,Bt.a.Observable.from([Object(mM.Eb)(1e5),Object(mM.Cb)([]),Yz(t)(e)])):Bt.a.Observable.of(Yz(t)(e))})).takeUntil(Bt.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?Bt.a.Observable.of(Object(mM.Eb)(r),Yz(t)(e)):Bt.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?Bt.a.Observable.of(Object(mM.Eb)(r),o,Yz(t)(o)):Bt.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(Dz.s)(t.getState())===mM.x.EDIT})).switchMap((function(){return(Object(se.find)(Object(Dz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{}).value?Bt.a.Observable.empty():Bt.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 Bt.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(Dz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},u=Object(K.o)(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?Bt.a.Observable.empty():Bt.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(Bt.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.o)(t.getState()),u=Object(se.find)(Object(Dz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{};return u.deactivated?Bt.a.Observable.empty():Bt.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(Bt.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 Bt.a.Observable.of(Object(Iz.d)("start"))}))},iB=function(e){return Bt.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 Bt.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(Dz.t)(t.getState()),i=Object(se.find)(Object(Dz.e)(t.getState()),(function(e){return"geometry"===e.type}));return Bt.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 Bt.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(Dz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},n=Object(Dz.i)(t.getState()),r=Object(Dz.k)(t.getState());return Bt.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 Bt.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(Dz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{};return e.deactivated?Bt.a.Observable.empty():Bt.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 Bt.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(Dz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},n=Object(Dz.i)(t.getState()),r=Object(Dz.k)(t.getState());return!e.deactivated||n||r?Bt.a.Observable.empty():Bt.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 Bt.a.Observable.of(Object(vM.w)(Object(wM.n)(i),Gz(Bz({},Object(wM.m)(i)),Uz(i,{page:n,size:r})),Object(Dz.w)(i),o))}}(t)(n).merge(e.ofType(vM.l).map((function(e){var n=Object(se.get)(e,"result.features",[]),r=Object(Dz.t)(t.getState()),o=Object(se.find)(Object(Dz.e)(t.getState()),(function(e){return"geometry"===e.type}));return r&&o.enabled&&(n=Object(Dz.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 Bt.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(Dz.w)(t.getState())),Object(x.U)(Object(Dz.A)(t.getState()))).merge(e.ofType(vM.l).map((function(e){return Bt.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 Bt.a.Observable.of(Object(mM.Cb)([]))}))},hB=function(e,t){return e.ofType(mM.A).switchMap((function(){return Bt.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(Dz.a)(t.getState()),Object(Dz.u)(t.getState()),Object(wM.b)(t.getState()),Object(wM.n)(t.getState())).map((function(){return Object(mM.Bb)()})).catch((function(e){return Bt.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 Bt.a.Observable.of(Object(mM.sb)()).concat((e=Object(Dz.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 Bt.a.Observable.of(Object(mM.Ab)(),Object(G.f)({title:"featuregrid.errorSaving",message:e.message||"Unknown Exception",uid:"saveError"}))})).concat(Bt.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(Dz.x)(e),{type:"Feature"}),s=Object(Dz.a)(e);return s[a.id]&&s[a.id]&&s[a.id].geometry&&(a.geometry=s[a.id].geometry),Bt.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(Dz.x)(e),{type:"Feature"}),a=Object(Dz.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(Dz.u)(e)).geometry);var s={featureProjection:r,stopAfterDrawing:!0,editEnabled:!Object(Dz.m)(e),drawEnabled:Object(Dz.m)(e)};return Bt.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(Dz.s)(t.getState())===mM.x.EDIT})).take(1).switchMap((function(){return e.ofType(bM.b,mM.f).take(1).switchMap((function(){return Bt.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)),Bt.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(Dz.z)(n)[t].id,_new:Object(Dz.z)(n)[t]._new,type:"Feature"})})),i=oe()({},Object(se.head)(e.features),{id:Object(Dz.x)(n).id,_new:Object(Dz.x)(n)._new,type:"Feature"}),a="enterEditMode"===e.enableEdit?Bt.a.Observable.of(Object(gM.f)("drawOrEdit",i.geometry.type,"featureGrid",o,r)):Bt.a.Observable.empty();return Bt.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 Bt.a.Observable.from([Object(mM.nb)(Object(Dz.z)(e)),Object(gM.h)()])}))},_B=function(e,t){return e.ofType(mM.E,mM.n,mM.c,mM.U).filter((function(){return Object(Dz.s)(t.getState())===mM.x.EDIT&&Object(Dz.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(Dz.z)(e).map((function(n){var r=oe()({},n,{type:"Feature"});if(!Object(se.isEmpty)(r)){var o=Object(Dz.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(Dz.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?Bt.a.Observable.from([Object(gM.f)("drawOrEdit",r,"featureGrid",i,o)]):Bt.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 Bt.a.Observable.of(Object(gM.h)())}))},SB=function(e,t){return e.ofType(mM.U).switchMap((function(e){return e.mode===mM.x.VIEW?Bt.a.Observable.of(Object(gM.h)(),Object(Nz.d)("featuregrid.select")):e.mode!==mM.x.EDIT||Object(Dz.l)(t.getState())?Bt.a.Observable.of(Object(Nz.d)()):Bt.a.Observable.of(Object(gM.h)(),Object(Nz.d)("featuregrid.select"),Object(G.k)({title:"featuregrid.notSupportedGeometryTitle",message:"featuregrid.notSupportedGeometry",uid:"notSupportedGeometryWarning",autoDismiss:5}))}))},EB=function(e){return e.ofType(mM.z).switchMap((function(){return e.ofType(bM.b).take(1).switchMap((function(){return Bt.a.Observable.of(Object(mM.Sb)(),Object(mM.fb)())})).takeUntil(e.ofType(mM.f))}))},jB=function(e,t){return e.ofType(bM.b).switchMap((function(){return Object(Z.g)(t.getState())?Bt.a.Observable.of(Object(w.g)("queryPanel","enabled",!1)):Bt.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(Dz.o)(t.getState())})).switchMap((function(){return Bt.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(Dz.i)(e)||Object(Dz.k)(e)?Bt.a.Observable.of(Object(mM.Rb)("featureCloseConfirm",!0)):Bt.a.Observable.of(Object(mM.fb)())}))},kB=function(e){return e.ofType(mM.d).switchMap((function(){return Bt.a.Observable.of(Object(mM.db)(),Object(mM.Rb)("clearConfirm",!1))}))},AB=function(e){return e.ofType(mM.r).switchMap((function(){return Bt.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 Bt.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 Bt.a.Observable.race(e.ofType(Mz.j).take(1),e.ofType(mM.f).take(1)).exhaustMap((function(t){return t.type===mM.f?Bt.a.Observable.empty():e.ofType(Mz.l).switchMap((function(){return Bt.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(Dz.z)(t.getState());return Bt.a.Observable.of(Object(mM.Cb)([]),Object(yM.ab)(Object(se.get)(t.getState(),'featuregrid.advancedFilters["'.concat(Object(Dz.A)(t.getState()),'"]'))),Object(mM.fb)(),Object(w.g)("queryPanel","enabled",!0)).merge(Bt.a.Observable.race(e.ofType(yM.o).mergeMap((function(e){return Bt.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 Bt.a.Observable.from(e.concat(Object(mM.Cb)(n,!0),Object(mM.yb)()))}))).takeUntil(e.ofType(mM.z,bM.b)))}))},NB=function(e,t){return e.ofType(mM.Z).filter((function(){return!Object(se.get)(t.getState(),"featuregird.virtualScroll",!1)})).switchMap((function(){return Bt.a.Observable.of(Object(U.I)(Cz()(Object(wM.c)(t.getState())),"EPSG:4326"))}))},DB=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 Bt.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 Bt.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 Bt.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 Bt.a.Observable.merge(Bt.a.Observable.of(Object(wM.h)(t.getState())).filter((function(e){return e})),e.ofType(mM.Q)).mergeMap((function(){return Bt.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 Bt.a.Observable.of(Object(vM.w)(Object(wM.n)(r),Gz(Bz({},Object(wM.m)(r)),{startIndex:d[0]*c,maxFeatures:p*c}),Object(Dz.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(Dz.A)(r()))&&Object(se.includes)(Object.keys(i),"time")&&Object(Dz.G)(r())})).merge(e.ofType(mM.K)).filter((function(){return Object(Dz.o)(r())})).withLatestFrom(e.ofType(vM.i),(function(e,t){return t})).switchMap((function(e){return Bt.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 Bt.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,Gn.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(v.Button,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(Ee.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"}))}}],Eq={onPageChange:function(e,t){return Object(mM.bb)(e,t)},moreFeatures:mM.wb},jq={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.E)()}},Cq=Oq,Tq=Sq,kq=Eq,Aq=jq,Pq=Object(f.connect)((function(e){return{attributes:Object(Dz.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,E=e.isSyncActive,j=void 0!==E&&E,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,N=e.showChartButton,D=void 0===N||N,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&&D,onClick:s.chart,glyph:"stats"}),c.a.createElement(wq,{id:"grid-map-filter",keyProp:"grid-map-filter",tooltipId:"featuregrid.toolbar.syncOnMap",disabled:t,active:j,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)(Dz.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(v.Button,{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}),Dz.y,(function(e,t,n,r){return Nq(Nq({},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(v.Button,{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(v.Button,{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(v.Button,{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(v.Button,{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)(Dz.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)(Dz.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 Nq(Nq({},e),{},Dq({},t.name,Object(f.connect)(Object(R.a)((function(e){return Object(Dz.d)(e,t.name)}),Dz.s,(function(e,n){var r=Nq({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?Nq(Nq({},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(DP.a,null,(function(t){var n=t.height;return c.a.createElement(zo.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(Mo.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(Pe.b)(e,r)||Object(Pe.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?zt.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 zt.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 zt.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 zt.Observable.of({errorObj:e,loadingAttributes:!1,featureTypeProperties:[]})}))})).catch((function(e){return zt.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(ur.a,{show:!!this.props.showGeneratedFilter,bsSize:"large"},c.a.createElement(ur.a.Header,null,c.a.createElement(ur.a.Title,null,this.props.resultTitle)),c.a.createElement(ur.a.Body,null,c.a.createElement("textarea",{style:{width:"862px",maxWidth:"862px",height:"236px",maxHeight:"236px"}},this.props.showGeneratedFilter)),c.a.createElement(ur.a.Footer,null,c.a.createElement(v.Button,{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 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 DU(){return(DU=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(Mo.Combobox,{dropUp:e.props.dropUp,busy:e.props.busy,data:i,disabled:e.props.disabled,itemComponent:function(t){return c.a.createElement(a,DU({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})),EG(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(Kj,{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);EG(jG,"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}),EG(jG,"contextTypes",{messages:p.a.object}),EG(jG,"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=jG;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(DG(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(DG(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(DG(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(DG(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(DG(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(DG(e),"resetSpatialFilter",(function(){e.changeDrawingStatus("clean","","queryform",[]),e.props.actions.onRemoveSpatialSelection(),e.props.actions.onShowSpatialSelectionDetails(!1)})),LG(DG(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(Kj,{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,E=void 0===S?function(){}:S,j=e.setQueryCollectionParameter,C=void 0===j?function(){}:j,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,N=h.typeName,D=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(N?[{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:N,onChange:function(e){C("typeName",e&&e.value)}}))),N&&D?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 E(t)},spatialOperations:fU(r)}))):null,N&&D&&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(zo.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(v.Button,{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(Ot.getParsedUrl)(e.url,{version:"1.0.0",REQUEST:"DescribeProcess",IDENTIFIER:"gs:PagedUnique"},Object(ce.b)(t.getState()));return null===n?Bt.a.Observable.of(Object(yM.mb)(!1)):Bt.a.Observable.fromPromise(Ct.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),Bt.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(Bt.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 Bt.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 zt.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(Dz.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(Dz.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 Bt.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 Bt.a.Observable.of(Object(vM.x)(e))})).startWith(Object(vM.r)(!0)).concat(Bt.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.l)(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 Bt.a.Observable.of(Object(yM.ub)(Wo.default.getViewportGeometry(r,n.bbox.crs)))}return Bt.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 Bt.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]:jH,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LAYER_FILTER:INIT_LAYER_FILTER":return SH(SH({},jH),{},{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(Gn.a)(v.Button),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,Ct.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(tD.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(Gn.a)(v.Button),EV=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)},jV=n("./MapStore2/web/client/components/catalog/img/default.jpg"),CV=n.n(jV),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}}])&&DV(t.prototype,n),r&&DV(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(zo.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(sE.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 EW=function(e){return e.map((function(e){return{label:"".concat(e,"x").concat(e),value:e}}))},jW=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=EW(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:EW([(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 jW;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===DW,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(NW,{onChange:function(e){var t=e.target.value;a("provider","".concat(t)),t!==DW&&t!==RW?f(t):y||w||f("")},value:g,componentClass:"select"},[DW,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(sE.a,{text:c.a.createElement(qS.a,{msgId:"catalog.tms.urlTemplateHint"})})),c.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 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(NW,{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(NW,{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(NW,{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(_n)},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)([eE.r,eE.n,eE.j,eE.f,$.d,eE.b,eE.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"),NY=n("./MapStore2/web/client/components/mapcontrols/mouseposition/MousePosition.jsx");var DY=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&&(D&&clearTimeout(D),R(setTimeout((function(){P()}),O)))},onFocus:function(){b&&g&&E()},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 NK=Object(f.connect)((function(e){return{coordinate:e.search.coordinate||{}}}),{onZoomToPoint:rK.L,onChangeCoord:rK.w})(IK);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 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 jX(e){return(jX="function"==typeof Symbol&&"symbol"==typeof Symbol.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:j,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 Ee;return c.a.createElement(cK,null,c.a.createElement(v.FormGroup,null,c.a.createElement("div",{className:"input-group",style:{display:"flex"}},j&&j.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:j,onSearch:ge,onSearchTextChange:X,onCancelSelectedItem:Z,onPurgeResults:pe}),"coordinatesSearch"===r&&H&&c.a.createElement(NK,{format:D,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(D,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||j&&j.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||j&&j.length>0)&&d),onClick:function(){return u&&ge()}},"coordinatesSearch"===r&&MK.searchIcon(r,S,ue,T)),"bookmarkSearch"===r&&CK.searchIcon(r,me)),{tooltip:(Ee=I,Ee?c.a.createElement(b.default,{msgId:Ee.msgId||"search.generic_error",msgParams:{message:Ee.message,serviceType:Ee.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.l,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=DX=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(DX,"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(DX,"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 zt.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,zt.Observable.of(r).do((function(e){throw e}))}return zt.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 zt.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 zt.Observable.of(Object(rK.y)());var i=Object(H.h)(o,n);return i&&r?zt.Observable.defer((function(){return Object(sn.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?zt.Observable.of(Object(Mz.J)({latlng:a},o,[o],bX({},o,{cql_filter:r})),Object(Mz.T)()):zt.Observable.empty()})).catch((function(){return zt.Observable.of(Object(rK.H)())})):zt.Observable.empty()}))},searchItemSelected:function(e,t){return e.ofType(rK.h).switchMap((function(e){var n=zt.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 zt.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 zt.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?zt.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))):zt.Observable.empty(),a=r.__SERVICE__&&r.__SERVICE__.searchTextTemplate,s=a?zt.Observable.of(Object(rK.D)(Object(IU.generateTemplateString)(a)(r))):zt.Observable.empty();return zt.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 zt.Observable.from([Object(jS.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=zt.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)])):zt.Observable.empty()}))}},reducers:{search:EX,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 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 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(xr.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"),E$=n("./MapStore2/web/client/reducers/maps.js"),j$=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:N,IdentifyPlugin:D.a,TOCPlugin:Bn,MapPlugin:qn.a,ToolbarPlugin:Un.a,DrawerMenuPlugin:Fr,ZoomAllPlugin:zr.a,MapLoadingPlugin:Br.a,OmniBarPlugin:qr.default,BackgroundSelectorPlugin:Ur.a,FullScreenPlugin:Gr.a,ZoomInPlugin:Hr.a,ZoomOutPlugin:Vr.a,ExpanderPlugin:Wr.a,BurgerMenuPlugin:Yr.default,UndoPlugin:Eo,RedoPlugin:Eo,ScaleBoxPlugin:jo.a,MapFooterPlugin:Co.a,PrintPlugin:To.a,MeasurePlugin:Vi,FilterLayerPlugin:Wi,TOCItemsSettingsPlugin:CP,WidgetsPlugin:hM,WidgetsBuilderPlugin:DF,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:E$.a,maplayout:j$.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(b,{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)))}}])&&O(t.prototype,n),r&&O(t,r),a}(o.a.Component);k(A,"propTypes",{shareUrl:a.a.string,showTOCToggle:a.a.bool}),k(A,"defaultProps",{showTOCToggle:!0,shareUrl:""});var P=A;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 I(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]}},"./node_modules/@babel/runtime/helpers/assertThisInitialized.js":function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},"./node_modules/@babel/runtime/helpers/defineProperty.js":function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},"./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||(o[n]=e[n]);return o}},"./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/@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 E(e,t){return{promise:t}}var j={promiseCreated:E,promiseFulfilled:E,promiseRejected:E,promiseResolved:E,promiseCancelled:E,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:E},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,j[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 N(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=N,n.prototype._onCancel=P,n.prototype._setOnCancel=M,n.prototype._attachCancellationCallback=A,n.prototype._execute=k,D=N,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 D=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 D},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)(j(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 E(e){return S.test(e)}function j(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 N(){}function D(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,E=e.systemId;if(t.push("');else if(E&&"."!=E)t.push(' SYSTEM "',E,'">');else{var j=e.internalSubset;j&&t.push(" [",j,"]"),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),N.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 j)._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 j;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(N,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}))}},N.prototype.getElementsByTagName=z.prototype.getElementsByTagName,N.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 E(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,E=S.createTextNode(e.substr(_));S.appendChild(E),r.currentElement=E}return}switch(O>_&&d(O),e.charAt(O+1)){case"/":var j=e.indexOf(">",O+3),C=e.substring(O+2,j),T=w.pop();j<0?(C=e.substring(O+2).replace(/[\s<].*/,""),o.error("end tag name: "+C+" is not complete:"+T.tagName),j=O+1+C.length):C.match(/\s_?_=j: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([[14,6,"plugins/geostory-navigation-plugin~plugins/share-plugin",9,"vendors~plugins/notifications-plugin",19],{"./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("./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 E})),n.d(t,"s",(function(){return j})),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 E(e){return{type:o,backgroundId:e}}function j(){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 E})),n.d(t,"c",(function(){return j})),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 N})),n.d(t,"r",(function(){return D})),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("./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:E,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:D,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:N,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:j,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 E})),n.d(t,"b",(function(){return j})),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 N})),n.d(t,"r",(function(){return D})),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 Ee})),n.d(t,"rb",(function(){return je})),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 Ne})),n.d(t,"fb",(function(){return De})),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",E="QUERY:UPDATE_FILTER",j="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",N="FEATUREGRID:CLEAR_CHANGES_CONFIRMED",D="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:N}}function se(){return{type:D}}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:j,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:E,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 Ee(){return{type:l,mode:Y.VIEW}}function je(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 Ne(){return{type:P}}function De(){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("./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 E})),n.d(t,"y",(function(){return j})),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 N})),n.d(t,"E",(function(){return D})),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",E="IDENTIFY:CHANGE_FORMAT",j="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 N(){return{type:g}}function D(){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:E,format:e}},J=function(e){return{type:j,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 E})),n.d(t,"B",(function(){return j})),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 N}));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 E})),n.d(t,"n",(function(){return j})),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}},E=function(){return{type:p}},j=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 E})),n.d(t,"C",(function(){return j})),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 N})),n.d(t,"L",(function(){return D})),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 Ee})),n.d(t,"cb",(function(){return je})),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",E="REMOVE_SPATIAL_SELECT",j="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",N="ZONE_CHANGE",D="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:E}}function me(e){return{type:j,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:N,id:e,value:t}}function Se(e){return{type:U,rowId:(new Date).getTime(),groupId:e}}function Ee(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 je(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 E})),n.d(t,"C",(function(){return j})),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 N})),n.d(t,"I",(function(){return D})),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 E(e){return{type:v,activeSearchTool:e}}function j(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 N(e,t,n){return{type:m,item:e,mapConfig:t,resultsStyle:n}}var D=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 E})),n.d(t,"s",(function(){return j})),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 N})),n.d(t,"B",(function(){return D})),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 E(){return{type:d}}function j(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 N(e){return{type:y,canEdit:e}}function D(){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 E})),n.d(t,"y",(function(){return j})),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 E(e){return{type:s,isLoading:e}}function j(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,"y",(function(){return f})),n.d(t,"x",(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 E})),n.d(t,"A",(function(){return j})),n.d(t,"p",(function(){return C})),n.d(t,"d",(function(){return T})),n.d(t,"f",(function(){return k})),n.d(t,"z",(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,"F",(function(){return N})),n.d(t,"E",(function(){return D})),n.d(t,"L",(function(){return R})),n.d(t,"W",(function(){return L})),n.d(t,"V",(function(){return F})),n.d(t,"G",(function(){return z})),n.d(t,"D",(function(){return B})),n.d(t,"C",(function(){return q})),n.d(t,"I",(function(){return U})),n.d(t,"H",(function(){return G})),n.d(t,"N",(function(){return H})),n.d(t,"B",(function(){return V})),n.d(t,"M",(function(){return W})),n.d(t,"S",(function(){return Y})),n.d(t,"P",(function(){return K})),n.d(t,"J",(function(){return X})),n.d(t,"K",(function(){return Z})),n.d(t,"O",(function(){return Q})),n.d(t,"T",(function(){return $})),n.d(t,"Q",(function(){return J})),n.d(t,"R",(function(){return ee})),n.d(t,"U",(function(){return te}));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",E="WIDGETS:EXPORT_IMAGE",j="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_TRAY",N=function(e){return{type:l,widget:e}},D=function(){return{type:C}},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return{type:s,target:t,id:o()(),widget:e}},L=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}},F=function(e){return{type:h,layer:e}},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return{type:g,target:t,widget:e}},B=function(){return{type:y}},q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;return{type:m,allLayouts:t,layout:e,target:n}},U=function(e){return{type:u,widget:e}},G=function(e,t){return{type:c,widget:e,settings:t}},H=function(e,t){return{type:d,key:e,value:t}},V=function(e,t){return{type:p,key:e,value:t}},W=function(e){return{type:w,dependencies:e}},Y=function(e,t,n,r){return{type:_,active:e,availableDependencies:t,options:n,target:r}},K=function(e){return V("step",e)},X=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}},Z=function(e){var t=e.widgetDivId;return{type:E,widgetDivId:t}},Q=function(){return{type:O}},$=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}},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T;return{type:M,target:e}},te=function(e){return{type:I,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("./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(2),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("./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("./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=j(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=E({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=E({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=E({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=E({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(j(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=j({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(j({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("./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.h)(n,e,t)},g=Object(i.h)(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("./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("./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("./node_modules/lodash/isArray.js"),u=n.n(l),c=n("./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("./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("./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,E=e.setEditingLayerName,j=void 0===E?function(){}:E,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):j(!1)):j(!1):j(!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 j.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("./node_modules/lodash/lodash.js"),I=n("./MapStore2/web/client/utils/featuregrid/EditorRegistry.jsx"),N=n.n(I),D=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=N.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)})),D.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})}})),E(O(e),"scrollDown",(function(t){var n=e.itemsRef[t];n&&n.offsetTop>e.listRef.offsetHeight&&(e.listRef.scrollTop=n.offsetTop-e.listRef.offsetTop)})),E(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 je}));var Ee={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}},je=function(e,t){return Ee[e]?Ee[e](e,t):Ee.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()))}}])&&c(t.prototype,n),r&&c(t,r),i}(a.a.Component);g(y,"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(y,"defaultProps",{useButtons:!0}),t.a=y},"./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.g)(),validator:o.j})},"./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("./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",7,11,"map-library-cesium-js"],"./leaflet.js":["./MapStore2/web/client/components/map/plugins/leaflet.js",0,3,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",10,"map-library-leaflet-js"],"./openlayers.js":["./MapStore2/web/client/components/map/plugins/openlayers.js",0,3,"vendors~map-library-cesium-js~map-library-leaflet-js~map-library-openlayers-js~plugins/geostory-plug~a4b89b50",4,"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("./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("./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/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/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;t0})),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(E,"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(E,"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=E},"./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=E?["SIZE"]:[])),e)):null})).catch((function(e){return L.current?(B(!1),N(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("./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,E=void 0===S?{}:S,j=e.styleTools,C=void 0===j?{}:j,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:E},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("./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 E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.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 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}})),D(I(e),"getSexagesimalStep",(function(e){return e>=60?1:e<0?-1:0})),D(I(e),"getInputStyle",(function(e){return isNaN(e)||""===e?{borderColor:"#a94442"}:{}})),D(I(e),"verifyOnKeyDownEvent",(function(t){69===t.keyCode&&t.preventDefault(),13===t.keyCode&&(t.preventDefault(),t.stopPropagation(),e.props.onKeyDown())})),D(I(e),"roundToNextSexagesimalStep",(function(e){return e<0?60+e:e>=60?e-60:e})),D(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("./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("./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("./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("./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("./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("./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=t.customOverlayTrigger,g=void 0===m?s.a:m,y=c(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args","customOverlayTrigger"]);return o.a.createElement(g,{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,y))}}),(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("./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("./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={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"}},d=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,d=e.fullscreen,p=void 0!==d&&d,f=e.showFullscreen,h=void 0!==f&&f,m=e.glyph,g=void 0===m?"info-sign":m,y=e.additionalRows,b=e.onFullscreen,v=void 0===b?function(){}:b,w=r?o.a.createElement(u.Button,{key:"ms-header-close",className:"square-button ms-close",onClick:r,bsStyle:a},o.a.createElement(u.Glyphicon,{glyph:"1-close"})):null,x=h?o.a.createElement(u.Button,{key:"ms-header-glyph",className:"square-button",bsStyle:a,onClick:function(){return v(!p)}},o.a.createElement(u.Glyphicon,{glyph:c[n]&&c[n][p]||"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:g,className:"".concat("default"===a?"text-primary":"")})),_="left"===n?[w,x]:[x,w];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},_[0]),o.a.createElement(u.Col,{xs:8},o.a.createElement("h4",null,l)),o.a.createElement(u.Col,{xs:2},_[1])),y)};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,p=e.size,f=void 0===p?550:p,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,E=e.footer,j=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(d,{position:u,onClose:b,bsStyle:v,title:w,fullscreen:l,showFullscreen:_,glyph:O,additionalRows:S,onFullscreen:T}),footer:c&&E},c&&j)))}))},"./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)}}])&&S(t.prototype,n),r&&S(t,r),a}(o.a.Component);A(I,"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}),A(I,"defaultProps",{title:"",expanded:!1,onSwitch:function(){},locked:!1,buttons:[],useToolbar:!1});t.a=I},"./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("./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");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}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,h=void 0===d?"":d,m=e.loaderProps,g=void 0===m?{}:m,y=e.children,b=f(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return o.a.createElement(l.Button,Object(s.omit)(b,["pullRight","confirmNo","confirmYes"]),t&&!n?o.a.createElement(l.Glyphicon,{glyph:t,className:h}):null,c?o.a.createElement(a.default,{msgId:c}):i,n?o.a.createElement(u.a,p({className:"ms-loader".concat(b.bsStyle&&" ms-loader-"+b.bsStyle||"").concat(b.bsSize&&" ms-loader-"+b.bsSize||"")},g)):null,y)}))},"./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("./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-j[0]>m/2+10,T=j[1]-y>g/2+10&&y+x-j[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:_+E/2,left:O+S-2,transform:"translate(-50%, -50%) rotateZ(0deg) translateX(50%)"}}}},bottom:{filter:function(){return C&&y+x-(_+E)>g+10},styles:function(){return{picker:{position:"absolute",top:_+E+10-y,left:O+S/2-m/2-b},overlay:{},arrow:{top:_+E-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:_+E/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 j(N())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(r.useEffect)((function(){T&&j(N())}),[T]);var D,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==E?void 0:E.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==E?void 0:E.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==E?void 0:E.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:(D=_||t||"transparent",R=d()(D).toRgbString(),s?{boxSizing:"border-box",border:"4px solid ".concat(R),backgroundColor:"transparent"}:{color:"transparent"===D?"#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("./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("./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},E=function(e){return e.context.prev&&(e.context=e.context.prev),e.context.type},j=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 j(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 E(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"):j(e,t,n)},b.prop=function(e,t,n){if(";"===e)return E(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?E(n):"word"===e?(o="property","maybeprop"):n.context.type},b.parens=function(e,t,n){return"{"===e||"}"===e?C(e,t,n):")"===e?E(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):j(n,t,r)},b.at=function(e,t,n){return";"===e?E(n):"{"===e||"}"===e?C(e,t,n):("word"===e?o="tag":"hash"===e&&(o="builtin"),"at")},b.interpolation=function(e,t,n){return"}"===e?E(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("./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/misc/enhancers/tooltip.jsx"),u=n("./node_modules/lodash/lodash.js"),c=n("./node_modules/moment/moment.js"),d=n.n(c);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;n2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(""!==n){var o=d()(e.props.date).utc(),i=o["day"===t?"date":t]&&d()(o)["day"===t?"date":t](r(n));i.isValid()&&!isNaN(i.toDate().getTime())&&e.props.onUpdate(i.toISOString())}})),w(b(e),"getForm",(function(){var t=e.props.date&&d()(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(u.isNil)(e)&&""!==e&&d.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(u.padStart)(e/60,2,0)}}]})),e}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.getForm();return o.a.createElement(s.Form,{className:"ms-inline-datetime ".concat(this.props.className),style:this.props.style},o.a.createElement(s.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(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})),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(x,{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(s.Button,{bsSize:"xs",disabled:!e.props.date,onClick:function(){return e.onUpdate(t.name,!0)}},o.a.createElement(x,{glyph:"chevron-up"})),o.a.createElement(s.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(s.Button,{bsSize:"xs",disabled:!e.props.date,onClick:function(){return e.onUpdate(t.name)}},o.a.createElement(x,{glyph:"chevron-down"})))}))))}}])&&h(t.prototype,n),r&&h(t,r),a}(o.a.Component);w(_,"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}),w(_,"defaultProps",{date:"",onIconClick:function(){},clickable:!1,onUpdate:function(){},glyph:"time",style:{},className:"",tooltip:""}),t.a=_},"./MapStore2/web/client/components/widgets/builder/wizard/map/NodeEditor.jsx":function(e,t,n){"use strict";var r=n("./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,E=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({},E,{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("./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("./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("./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("./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/I18N/Message.jsx");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;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(g.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(h.Button,{bsStyle:"primary",style:{float:"right"},onClick:function(){return e.props.retrieveLayerData(e.props.element)}},f.a.createElement(h.Glyphicon,{glyph:"refresh"})," ",f.a.createElement(g.default,{msgId:"layerProperties.stylesRefreshList"})),f.a.createElement("br",null)))}}])&&v(t.prototype,n),o&&v(t,o),a}(f.a.Component);E(j,"propTypes",{retrieveLayerData:d.a.func,onChange:d.a.func,element:d.a.object,groups:d.a.array}),E(j,"defaultProps",{element:{},retrieveLayerData:function(){},onChange:function(){}});var C=j,T=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"),A=n("./node_modules/rxjs/Rx.js"),P=n.n(A),M=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(M.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 P.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 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)}var F=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"===L(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 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 B(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:B(B({},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)(T.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,B(B({},n.props),e))}}})),s.a,Object(a.a)("activeTab","setActiveTab","general"),G)},"./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("./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,E=_.property,j=_.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(j.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(j.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"):[]),[E(o).intersects(k)])))}}return{filter:S(j.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("./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("./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("./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("./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);n0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(y).length>0};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);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(j).length>0},T=Object(O.a)(x.MenuItem);function k(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]:[];return e.filter(P).length>0};n.d(t,"d",(function(){return D})),n.d(t,"b",(function(){return z})),n.d(t,"c",(function(){return B})),n.d(t,"a",(function(){return U})),n.d(t,"e",(function(){return G}));var I=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:M(r)?[].concat(k(n),[m.a.createElement(g.a,{btnGroupProps:{style:{position:"absolute",left:14}},btnDefaultProps:{className:"no-border",bsSize:"small",bsStyle:"link",style:{paddingLeft:4,paddingRight:4}},buttons:r.filter(P)})]):n}})))},N=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.toolsOptions,o=void 0===r?{}:r,i=e.updateProperty,a=void 0===i?function(){}:i,s=e.dataGrid,l=void 0===s?{}:s;return{widgetTools:o.showPin?[].concat(p(n),[{glyph:"pushpin",bsStyle:l.static&&"primary",glyphClassName:l.static?"active":void 0,tooltipId:l.static?"widgets.widget.menu.unpin":"widgets.widget.menu.pin",target:"icons",onClick:function(){return a("dataGrid.static",!l.static)}}]):n}})))},D=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.toolsOptions,o=void 0===r?{}:r,i=e.canEdit,a=e.updateProperty,s=void 0===a?function(){}:a,l=e.hide,u=void 0!==l&&l;return{widgetTools:o.showHide?[].concat(c(n),[{glyph:"lock",target:"menu",active:u,textId:u?"widgets.widget.menu.unhide":"widgets.widget.menu.hide",tooltipId:u?"widgets.widget.menu.unhideDescription":"widgets.widget.menu.hideDescription",visible:i,onClick:function(){return s("hide",!u)}}]):n}})))},R=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:C(t)?[].concat(S(o),[m.a.createElement(x.ButtonToolbar,null,m.a.createElement(x.DropdownButton,{pullRight:!0,bsStyle:"default",className:n,title:m.a.createElement(x.Glyphicon,{glyph:i}),noCaret:!0,id:"dropdown-no-caret"},t.filter(j).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 m.a.createElement(T,{active:d,tooltipId:c,onSelect:r,disabled:i,eventKey:t},m.a.createElement(x.Glyphicon,{className:s,glyph:a}),u?m.a.createElement(_.default,{msgId:u}):l)}))))]):o}}))},L=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:b(r)?m.a.createElement(g.a,{btnDefaultProps:{className:"no-border",bsSize:"xs",bsStyle:"link"},buttons:r.filter(y)}):n}})))},F=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(v(n),[{glyph:"question-sign",popover:{title:r,trigger:!0,text:o},target:"icons"}]):n}})))},z=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,s=e.onEdit,l=void 0===s?function(){}:s,u=e.toggleDeleteConfirm,c=void 0===u?function(){}:u;return{widgetTools:i?[].concat(a(n),[{glyph:"pencil",target:"menu",visible:i&&!o.static,textId:"widgets.widget.menu.edit",onClick:function(){return l()}},{glyph:"trash",target:"menu",visible:i&&!o.static,textId:"widgets.widget.menu.delete",onClick:function(){return c(!0)}}]):n}}))},B=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(l(n),[{glyph:"download",glyphClassName:"exportCSV",target:"menu",textId:"widgets.widget.menu.downloadData",disabled:!r||!r.length,onClick:function(){return a({data:r,title:o})}}])}}))},q=function(){return Object(r.compose)(Object(r.withProps)((function(e){var t=e.widgetTools,n=void 0===t?[]:t,r=e.dataGrid,i=void 0===r?{}:r,a=e.toggleCollapse,s=void 0===a?function(){}:a,l=e.toolsOptions;return{widgetTools:(void 0===l?{}:l).showCollapse?[].concat(o(n),[{glyph:"minus",target:"icons",tooltipId:"widgets.widget.menu.collapse",visible:!i.static,onClick:function(){return s()}}]):n}})))},U=function(){return Object(r.compose)(N(),q(),F())},G=function(){return Object(r.compose)(I(),L(),R())}},"./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("./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("./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"),E=n("./node_modules/rxjs/Rx.js"),j=n.n(E),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 j.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 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;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 E.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 E.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}),E.Observable.of({loading:!1})})).startWith({loading:!0}).catch((function(e){return E.Observable.of({error:"error getting bounds from filter",details:e})}))}return E.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"),Ee=Object(xe.a)()(Object(_e.a)(Object(Oe.a)(Se.a))),je=function(e){return o.a.createElement("div",{className:"mapstore-widget-chart"},o.a.createElement(we.a,null,o.a.createElement(Ee,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.handle,l=void 0===s?"draggableHandle":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||"")},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},Ne=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.onDelete,y=void 0===g?function(){}:g,b=e.toggleTableView,v=void 0===b?function(){}:b,w=e.toggleDeleteConfirm,x=void 0===w?function(){}:w,_=Me(e,["id","title","description","headerStyle","data","series","loading","icons","showTable","topRightItems","confirmDelete","onDelete","toggleTableView","toggleDeleteConfirm"]);return o.a.createElement(Ae,{id:"widget-chart-".concat(t),headerStyle:i,title:n,icons:d,topLeftItems:Ie({loading:c,title:n,description:r,showTable:p,toggleTableView:v}),confirmDelete:m,onDelete:y,toggleDeleteConfirm:x,topRightItems:f},p?o.a.createElement(be,Pe({data:s},_)):o.a.createElement(je,Pe({id:t,isAnimationActive:!c,loading:c,data:s,series:u,iconFit:!0},_)))},De=n("./MapStore2/web/client/components/misc/enhancers/emptyState.jsx"),Re=Object(De.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,E=e.pages,j=e.error,C=e.pagination,T=void 0===C?{}:C,k=e.virtualScroll,A=void 0===k||k;return o.a.createElement(Ae,{id:"widget-chart-".concat(t),title:n,headerStyle:u,icons:c,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===j&&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:A,enableColumnFilters:l,filterRenderers:x,features:O,pages:E,error:j,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)(Ne),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.confirmDelete,p=void 0!==d&&d,f=e.onDelete,h=void 0===f?function(){}:f;return o.a.createElement(Ae,{id:"widget-text-".concat(a),title:s,confirmDelete:p,onDelete:h,toggleDeleteConfirm:n,headerStyle:u,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.onDelete,v=void 0===b?function(){}:b,w=e.headerStyle,x=e.env;return o.a.createElement(Ae,{id:"widget-text-".concat(a),title:s,confirmDelete:m,onDelete:v,toggleDeleteConfirm:i,headerStyle:w,icons:u,topRightItems:f},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:x})))})),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.toggleTableView,y=void 0===g?function(){}:g,b=e.toggleDeleteConfirm,v=void 0===b?function(){}:b,w=e.onDelete,x=void 0===w?function(){}:w,_=tt(e,["id","title","description","data","series","loading","showTable","confirmDelete","headerStyle","icons","topRightItems","toggleTableView","toggleDeleteConfirm","onDelete"]);return o.a.createElement(Ae,{className:"counter-widget",id:"widget-chart-".concat(t),title:n,icons:h,topLeftItems:nt({loading:u,title:n,description:r,showTable:c,toggleTableView:y}),confirmDelete:p,onDelete:x,toggleDeleteConfirm:v,headerStyle:f,topRightItems:m},o.a.createElement(Je.a,et({id:t,isAnimationActive:!u,loading:u,data:a,series:l,iconFit:!0},_)))})),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.onDelete,p=void 0===d?function(){}:d,f=it(e,["toggleDeleteConfirm","id","title","icons","headerStyle","confirmDelete","topRightItems","onDelete"]);return o.a.createElement(Ae,{id:"widget-text-".concat(r),title:i,confirmDelete:u,onDelete:p,toggleDeleteConfirm:n,headerStyle:s,icons:a,topRightItems:c},o.a.createElement(at,f))}));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(E(n),E(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,E([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(E.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?N({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(E.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(E.j)(t.getState());return r(e)})).switchMap((function(){var e=Object(E.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 D({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 D({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&&N({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,E=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:E})})).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:E}))})).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(j.f)(r),p=Object(j.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:""}))),N({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("./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(j(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(j(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=E({},"time","".concat(T(l.start),"/").concat(T(l.end)));return Object(b.c)(t.source.url,c,"time",E({},"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 N}));var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./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.N)("mapSync",e),Object(a.N)("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.z.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),{},E({},n,"".concat(t,".").concat(s[n]))):Object(i.endsWith)(t,"map")?Object(i.includes)(u,n)?S(S({},e),{},E({},n,"map"===t?s[n]:"".concat(t,".").concat(s[n]))):S(S({},e),{},E({},n,"".concat(t.replace(".map",""),".").concat(s[n]))):e}),{});return e?S(S(S({},d),p),{},(E(r={},"dependenciesMap","".concat(t.replace(".map",""),".dependenciesMap")),E(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.M)(e.reduce((function(e,t){var n,r,o=t.replace(".map","");return Object(i.endsWith)(t,"map")?S(S({},e),{},(E(n={},"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),E(n,"".concat(o,".mapSync"),"".concat(o,".mapSync")),E(n,"map"===t?"viewport":"".concat(t,".viewport"),"".concat(t,".bbox")),E(n,"map"===t?"center":"".concat(t,".center"),"".concat(t,".center")),E(n,"map"===t?"zoom":"".concat(t,".zoom"),"".concat(t,".zoom")),E(n,"map"===t?"layers":"".concat(t,".layers"),"map"===t?"layers.flat":"".concat(t,".layers")),n)):S(S({},e),{},(E(r={},"".concat(t,".filter"),"".concat(t,".filter")),E(r,"".concat(t,".quickFilters"),"".concat(t,".quickFilters")),E(r,"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),E(r,"".concat(o,".mapSync"),"".concat(o,".mapSync")),E(r,"".concat(t,".layer"),"".concat(t,".layer")),E(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.T)(n,{availableDependencies:u})).merge(e.ofType(a.A).filter((function(){return Object(l.p)(r())})).switchMap((function(e){var t=e.widget,s=Object(i.get)(Object(l.f)(r()),"availableDependencies").filter((function(e){return(a.z.exec(e)||[])[1]===t.id}));return C(n,s[0],c,t.dependeciesMap).concat(o.a.Observable.of(Object(a.T)(!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(j).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.D)()):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.V)(u)]:[]))}))},N=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.V)(s)]:[]))}))})).mergeAll()};t.default={exportWidgetData:T,alignDependenciesToWidgets:k,toggleWidgetConnectFlow:A,clearWidgetsOnLocationChange:P,exportWidgetImage:M,updateLayerOnLayerPropertiesChange:I,updateLayerOnLoadingErrorChange:N}},"./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("./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("./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(E(o,[].concat(g(l?[j(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(E(o,[j(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("./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("./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("./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 E}));var r=n("./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))}))},E=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("./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"),E=n("./MapStore2/web/client/utils/LayersUtils.js");function j(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,Ee=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx"),je=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/utils/ResourceUtils.js"),Pe=n("./MapStore2/web/client/components/misc/Thumbnail.jsx");function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(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)})),Be(Fe(e),"getThumbnailDataUri",(function(t){e.getDataUri(e.files,t)})),Be(Fe(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)}))})),Be(Fe(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))})),Be(Fe(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}))})),Be(Fe(e),"deleteThumbnail",(function(t,n){if(t&&-1!==t.indexOf("geostore")){var r=Object(Ae.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(N.default,{msgId:"map.error"})),this.props.thumbnailErrors.map((function(e){return I.a.createElement("div",{id:"error"+e,key:"error"+e,className:"error"+e},qe[e])}))):null}},{key:"render",value:function(){var e=this;return I.a.createElement(Pe.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(N.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);Be(Ue,"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])}),Be(Ue,"contextTypes",{messages:R.a.object}),Be(Ue,"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(N.default,{msgId:"map.message"}),suggestion:I.a.createElement(N.default,{msgId:"map.suggestion"}),map:{},thumbnailErrors:[]});var Ge=Ue,He=n("./MapStore2/web/client/utils/LocaleUtils.js"),Ve=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");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 Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(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 Ze(e){return function(e){if(Array.isArray(e))return Qe(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 Qe(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 Qe(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 Qe(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(N.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(N.default,{msgId:"layerProperties.format"})),I.a.createElement(je.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(it,null,I.a.createElement("div",{style:{display:"flex",alignItems:"center"}},I.a.createElement(K.ControlLabel,{style:{flex:1}},I.a.createElement(N.default,{msgId:"backgroundDialog.additionalParameters"})),I.a.createElement(it,{className:"square-button-md",tooltipId:"backgroundDialog.addAdditionalParameterTooltip",style:{borderColor:"transparent"},onClick:function(){var t=Math.max.apply(Math,Ze(e.state.additionalParameters.length>0?e.state.additionalParameters.map((function(e){return e.id})):[-1]))+1;e.setState({additionalParameters:[].concat(Ze(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(He.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(je.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(He.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(je.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 Ke(Ke({},Xe(t,["label"])),{},{label:Object(He.f)(e.context.messages,n)})}))}),I.a.createElement(it,{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(N.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(N.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,ot({},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(Ge,{onUpdate:function(t,n){return e.setState({thumbnail:{data:t,url:n}})},onError:function(t){return e.setState({thumbnailErrors:t})},message:I.a.createElement(N.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(N.default,{msgId:"layerProperties.title"})),I.a.createElement(K.FormControl,{value:this.state.title,placeholder:Object(He.f)(this.context.messages,"backgroundDialog.titlePlaceholder"),onChange:function(t){return e.setState({title:t.target.value})}})),this.renderSpecificTypeForm()))}}])&&$e(t.prototype,n),r&&$e(t,r),a}(I.a.Component);ot(at,"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}),ot(at,"contextTypes",{messages:R.a.object}),ot(at,"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 st=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx");function lt(e){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ut(){return(ut=Object.assign||function(e){for(var t=1;t1&&I.a.createElement(Ee.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(Ee.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}))})):[]})),yt(mt(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}})),yt(mt(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(st.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(N.default,{msgId:"confirm"}),closeText:I.a.createElement(N.default,{msgId:"cancel"}),closeGlyph:"1-close"},I.a.createElement(N.default,{msgId:"backgroundSelector.confirmDelete",msgParams:{title:S}})),e.props.modalParams&&I.a.createElement(at,ut({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}}])&&dt(t.prototype,n),r&&dt(t,r),i}(I.a.Component);yt(bt,"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}),yt(bt,"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 vt=bt;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 xt(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);j(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}),j(A,"contextTypes",{messages:a.a.object,router:a.a.object}),j(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("./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("./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"),E=n("./MapStore2/web/client/components/misc/ResizableModal.jsx"),j=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(j.a,null,s.a.createElement(E.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})))))},N=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:""}})},D=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(Ne.b)(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(Ne.d)(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:De.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.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(Ee.e)(t.getState()),(function(e){return"geometry"===e.type}))||{}).attribute||Object(r.get)(Object(je.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:De.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:Ne.j,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(D.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(N,{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(j.a,null,s.a.createElement(E.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("./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)([j,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"),N=n("./MapStore2/web/client/actions/draw.js"),D={drawStatus:null,drawOwner:null,drawMethod:null,options:{},features:[],tempFeatures:[]};var R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case N.a:return c()({},e,{drawStatus:t.status,drawOwner:t.owner,drawMethod:t.method,options:t.options,features:t.features,style:t.style});case N.e:return c()({},e,{currentStyle:t.currentStyle});case N.d:return c()({},e,{tempFeatures:t.features});case N.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,je({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]}))}},E=n("./MapStore2/web/client/observables/epics.js"),j=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",N({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):j.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(E.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(E.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(E.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(j.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)})),j.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("./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"),E=n("./MapStore2/web/client/selectors/maptype.js"),j=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(j.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,E.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},N=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 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 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,_),E=Object(r.difference)(_,O),j=Object(r.intersection)(_,O);Object(r.each)(E,(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)(j,(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,E.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)(E.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,N,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");function xe(){return(xe=Object.assign||function(e){for(var t=1;t0},De=Object(p.compose)(Object(d.connect)(Object(f.a)(E.f,E.q,_.a,E.a,_.g,S.h,S.j,E.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)(E.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=Me(c)&&Ie(c)*t||c,l=Me(l)&&Ie(l)*t||l;if(t){var d=t-c-l-i-a;return{hide:d<410,compactToolbar:d<880,style:ke(ke(ke({},n),r),{},{minWidth:410})}}return{style:ke(ke(ke({},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,E=n.hideLayersName,j=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:ke(ke({position:"absolute",marginBottom:35,marginLeft:100,background:"transparent"},b),{},{right:j?"auto":b.right||0}),className:"timeline-plugin".concat(E?" hide-layers-name":"").concat(f?" with-time-offset":"")},f&&u.a.createElement(x.a,{clickable:!j,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:!j,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:!j,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:E?"timeline.showLayerName":"timeline.hideLayerName"}),bsStyle:E?"primary":"success",visible:!j,active:!E,onClick:function(){return o(ke(ke({},n),{},{hideLayersName:!E}))}},{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,Ce({},C,{settingsStyle:{right:j||S?40:"unset"}}))),u.a.createElement(Pe,{onClick:function(){return o(ke(ke({},n),{},{collapsed:!j}))},className:"square-button-sm ms-timeline-expand",bsStyle:"primary",tooltip:u.a.createElement(y.default,{msgId:j?"timeline.expand":"timeline.collapse"})},u.a.createElement(c.Glyphicon,{glyph:j?"chevron-up":"chevron-down"}))),!j&&u.a.createElement(ye,{offsetEnabled:f,playbackEnabled:!0,hideLayersName:E}))}));t.a={TimelinePlugin:s()(De,{disablePluginIf:"{state('mapType') === 'cesium'}",WidgetsTray:{tool:u.a.createElement(je,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/OverlayTrigger.jsx"),h=n("./MapStore2/web/client/utils/MapUtils.js"),m=n("./MapStore2/web/client/utils/ConfigUtils.js");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 y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n0&&u.a.createElement(s,v({},t.innerProps,{mapType:e.props.mapType,tools:l,panels:t.childPanels}))),t)})),k(C(e),"renderTools",(function(){return e.props.tools.map(e.renderTool)})),k(C(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,v({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}))})),k(C(e),"mergeHandlers",(function(e,t){return Object.keys(t).reduce((function(n,r){return i()(n,k({},r,e[r]?Object(p.d)(e[r],t[r]):t[r]))}),e)})),k(C(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())}}])&&O(t.prototype,n),o&&O(t,o),s}(u.a.Component);k(P,"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}),k(P,"contextTypes",{messages:s.a.object,router:s.a.object}),k(P,"defaultProps",{container:c.Panel,className:"tools-container",style:{},toolStyle:"default",activeStyle:"primary",tools:[],panels:[],tool:c.Button,mapType:"leaflet",eventSelector:"onClick",panelStyle:{},panelClassName:"tools-container-panel",toolSize:null,toolCfg:{}}),t.a=P},"./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",11,31],"./leaflet/index":["./MapStore2/web/client/plugins/map/leaflet/index.js",0,3,10,20],"./openlayers/index":["./MapStore2/web/client/plugins/map/openlayers/index.js",0,3,4,5,16]};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("./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("./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("./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}})),E=e.responses||[],j="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"};j?(E=[].concat(d(E),[C]),x={reqId:0}):(E[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(E)}),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("./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.l:return i()({},e,{searchText:t.text});case r.y:return i()({},e,{searchFilter:c(c({},e.searchFilter),{},d({},t.filter,t.filterData))});case r.B:return i()({},e,{searchFilter:t.searchFilter});case r.A:return i()({},e,{contexts:t.contexts});case r.e:return i()({},e,{loading:t.value,loadFlags:c(c({},e.loadFlags||{}),"loading"!==t.name?d({},t.name,t.value):{})});case r.r:return i()({},e,{metadata:i()({},e.metadata,d({},t.prop,t.value))});case r.C:return i()({},e,{showMapDetails:t.showMapDetails});case r.i:return i()({},e,{loading:!0,start:t.params&&t.params.start,limit:t.params&&t.params.limit,searchText:t.searchText});case r.h: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.j:return{loadingError:t.error};case r.q: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("./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",E=t.value,j=E.value,C=E.label;return c()({},e,(g(O={},S,j),g(O,"uom",c()({},t.previousUom,g({},t.uom,{unit:j,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 N=f(e,["id"]);return"info"===t.control?m(m({},N),{},{len:0,area:0,bearing:0,lineMeasureEnabled:!1,areaMeasureEnabled:!1,bearingMeasureEnabled:!1,feature:{properties:{disabled:!0}},geomType:""}):"measure"===t.control?m(m({},N),{},{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 D=t.coordinates.map((function(e){return[e.lon,e.lat]})),R=e.features||[],L=R[e.currentFeature]||{},F=D.filter((function(e){return!isNaN(parseFloat(e[0]))&&!isNaN(parseFloat(e[1]))})).length!==D.length;return m(m({},e),{},{feature:{type:"Feature",properties:{disabled:D.filter((function(e){return!isNaN(parseFloat(e[0]))&&!isNaN(parseFloat(e[1]))})).length!==D.length},geometry:{type:e.bearingMeasureEnabled?"LineString":e.geomType,coordinates:e.areaMeasureEnabled?[Object(l.dropRight)(D)]:D}},features:[].concat(d(R.slice(0,e.currentFeature)),[m(m({},L),{},{type:"Feature",properties:m(m({},L.properties||{}),{},{disabled:F||e.bearingMeasureEnabled&&D.length<2}),geometry:{type:e.bearingMeasureEnabled?"LineString":e.geomType,coordinates:e.areaMeasureEnabled?[[].concat(d(D),[D[0]])]:D}})],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("./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("./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("./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("./node_modules/lodash/fp/set.js"),u=n.n(l),c=n("./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.y: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.x: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 E=Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(S.id));if(E){var j=[].concat(p(Object(c.get)(t,"containers[".concat(n.target,"].layout"),[])),p(Object(c.castArray)(Object(c.get)(E,"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)(E,"layouts[".concat(t,"]"),[]))))}));return Object(c.omit)(Object(d.d)(u()("containers[".concat(n.target,"].layout"),j),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.u:var T=Object(c.get)(t,"containers[".concat(n.target,"].widgets"),[]).filter((function(e){return!e.dataGrid||!e.dataGrid.static})),k=T.filter((function(e){return Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(e.id,"]"))})),A=T.filter((function(e){return!Object(c.get)(t,"containers[".concat(n.target,"].collapsed[").concat(e.id,"]"))})),P=0===A.length;return P?k.reduce((function(t,n){return e(t,Object(r.Q)(n))}),t):A.length>0?A.reduce((function(t,n){return e(t,Object(r.Q)(n))}),t):t;case r.w: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 E})),n.d(t,"f",(function(){return j})),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("./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}))},N=function(e){return e&&e.featuregrid&&e.featuregrid.mode},D=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 E})),n.d(t,"s",(function(){return j})),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 N})),n.d(t,"w",(function(){return D})),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("./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))},E=function(e){return Object(r.get)(e,"geostory.selectedCard","")},j=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")},N=function(e){return p(Object(r.get)(e,"geostory.focusedContent.path",""))(e)},D=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("./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("./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("./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("./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("./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 E})),n.d(t,"o",(function(){return j})),n.d(t,"i",(function(){return C})),n.d(t,"d",(function(){return T})),n.d(t,"p",(function(){return k}));var r=n("./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):[]},E=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))}),[]))})),j=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))},N=l.f,D=Object(o.a)(N,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0})),R=function(e){return!v(e)&&D(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=Object(b.a)(T,k,(function(e,t){return e&&t?e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id;return!t[n]})):e})),P=Object(b.a)(k,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e)})),M=function(e){return(T(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType;return"map"===t}))},I=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)(M,I,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,"]")})))}})),D=Object(b.a)(M,I,o.l,a.a,j,(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,"]")})))}})),R=function(e){return Object(r.get)(O(e),"".concat(s.f))},L=function(e){return Object(r.get)(R(e),"active")},F=(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"))}),z=function(e){return Object(r.get)(e,"widgets.containers[".concat(s.d,"].layout"))},B=function(e){return Object(r.get)(e,"widgets.tray")},q=function(e){return Object(r.get)(e,"widgets.builder.editor.returnToFeatureGrid",!1)},U=function(e){return Object(r.get)(j(e),"filter")},G=Object(v.a)(S,E,(function(e){return E(e).map((function(t){return 0===t.indexOf("map.")?Object(r.get)(Object(o.l)(e),t.slice(4)):t.match(s.z)?function(e,t){var n=s.z.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:F})},"./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("./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])},N=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)},D=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?D(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:E,STYLE_POINT_SYMBOL:{iconAnchor:[.5,.5],anchorXUnits:"fraction",anchorYUnits:"fraction",color:"#000000",fillColor:"#000000",opacity:1,size:64,fillOpacity:1},STYLE_TEXT:j,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=N(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]:j;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]:j;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:D,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 E})),n.d(t,"c",(function(){return j})),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 N}));var r=n("./node_modules/object-assign/index.js"),o=n.n(r),i=n("./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 E={type:"arcgis",url:l.value,SRS:[],params:{name:l.name}};O.push(E)}r&&(0===r.indexOf("http")||(r=(b(t&&t.url)||"")+r));var j={boundingBox:e.boundingBox&&e.boundingBox.extent&&Object(i.castArray)(e.boundingBox.extent.join(","))};if(u&&(j=g(g({},j),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&&(j=g(g({},j),{},{uri:[""]})),u&&u.subject&&Object(i.castArray)(u.subject)&&Object(i.castArray)(u.subject).length&&(j=g(g({},j),{},{subject:["
    "+Object(i.castArray)(u.subject).map((function(e){return"
  • ".concat(e,"
  • ")})).join("")+"
"]})),O&&Object(i.castArray)(O).length?j=g(g({},j),{},{references:[""]}):delete j.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:""}));j=g(g({},j),{},{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:j}})):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}},E=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)})))}},j=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=E(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,j=x.params;p=_,f=j}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=j(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,E=_.maxx,j=_.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"],N=A.extension,D=[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(E),maxy:parseFloat(j)}},tileSets:R,origin:{x:parseFloat(T),y:parseFloat(k)},format:I,tileSize:D,extension:N}},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)},N=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("./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 E})),n.d(t,"g",(function(){return j})),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 N}));var r=n("./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)}}))},E=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}:{})}))},j=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}},N=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,E=0;Ee.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 N})),n.d(t,"f",(function(){return D})),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("./node_modules/lodash/get.js"),o=n.n(r),i=n("./node_modules/lodash/findIndex.js"),a=n.n(i),s=n("./node_modules/lodash/toPath.js"),l=n.n(s),u=n("./node_modules/lodash/isArray.js"),c=n.n(u),d=n("./node_modules/lodash/values.js"),p=n.n(d),f=n("./node_modules/lodash/filter.js"),h=n.n(f),m=n("./node_modules/lodash/merge.js"),g=n.n(m),y=n("./node_modules/lodash/isString.js"),b=n.n(y),v=n("./node_modules/lodash/isObject.js"),w=n.n(v),x=n("./node_modules/lodash/includes.js"),_=n.n(x),O=n("./node_modules/lodash/replace.js"),S=n.n(O),E=n("./node_modules/uuid/index.js"),j=n.n(E);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:j()(),type:P.TITLE,title:n("geostory.builder.defaults.titleTitle"),cover:!1,contents:[{id:j()(),type:M.TEXT,html:"",size:"large",align:"center",theme:"",background:{fit:"cover",size:"full",align:"center"}}]};case P.BANNER:return{id:j()(),type:P.BANNER,title:n("geostory.builder.defaults.titleBanner"),cover:!1,contents:[{id:j()(),background:{fit:"cover",size:"full",align:"center"}}]};case P.PARAGRAPH:return{id:j()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleParagraph"),contents:[{id:j()(),type:M.COLUMN,size:"full",align:"center",contents:[{id:j()(),type:M.TEXT,html:""}]}]};case P.IMMERSIVE:return{id:j()(),type:P.IMMERSIVE,title:n("geostory.builder.defaults.titleImmersive"),contents:[e(M.COLUMN,n)]};case I.MEDIA:return{id:j()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleMedia"),contents:[{id:j()(),type:M.COLUMN,contents:[{id:j()(),type:M.MEDIA,size:"large",align:"center"}]}]};case I.WEBPAGE:return{id:j()(),type:P.PARAGRAPH,title:n("geostory.builder.defaults.titleWebPageSection"),contents:[{id:j()(),type:M.COLUMN,contents:[{id:j()(),type:M.WEBPAGE,size:"medium",align:"center"}]}]};case M.COLUMN:return{id:j()(),type:M.COLUMN,align:"left",size:"small",theme:"",title:n("geostory.builder.defaults.titleImmersiveContent"),contents:[{id:j()(),type:M.TEXT,html:""}],background:{fit:"cover",size:"full",align:"center"}};case M.TEXT:return{id:j()(),type:M.TEXT,title:n("geostory.builder.defaults.titleText"),html:""};case M.IMAGE:return{id:j()(),type:t,title:n("geostory.builder.defaults.titleMedia"),size:"full",align:"center"};case M.WEBPAGE:return{id:j()(),type:t,title:n("geostory.builder.defaults.titleWebPage"),size:"medium",align:"center"};case M.MEDIA:return{id:j()(),type:t,title:n("geostory.builder.defaults.titleUnknown"),size:"large",align:"center"};default:return{id:j()(),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("./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("./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("./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("./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 N})),n.d(t,"b",(function(){return D})),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("./node_modules/lodash/head.js"),o=n.n(r),i=n("./node_modules/lodash/get.js"),a=n.n(i),s=n("./node_modules/lodash/isArray.js"),l=n.n(s),u=n("./node_modules/lodash/isString.js"),c=n.n(u),d=n("./node_modules/lodash/flatten.js"),p=n.n(d),f=n("./node_modules/lodash/isNil.js"),h=n.n(f),m=n("./node_modules/lodash/omit.js"),g=n.n(m),y=n("./node_modules/lodash/omitBy.js"),b=n.n(y),v=n("./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),E=n("./MapStore2/web/client/utils/styleeditor/stylesTemplates.js");function j(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(N).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(E.baseTemplates))}return[].concat(C(E.customTemplates),C(E.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=j(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("./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("./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 E})),n.d(t,"registerGeometryFunctions",(function(){return j})),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 N})),n.d(t,"domNodeToString",(function(){return D})),n.d(t,"createSvgUrl",(function(){return R})),n.d(t,"createStylesAsync",(function(){return L})),n.d(t,"getStyleParser",(function(){return F}));var r=n("./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(){}}},E=function(e,t){return S[e]&&S[e][t]},j=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},N=function(e){if(e)return T(JSON.stringify(e));throw new Error("hashAndStringify: specify mandatory params: style")},D=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([D(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=N(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(N(e))?R(e,e.symbolUrl||e.symbolUrlCustomized).then((function(t){return t?f(f({},e),{},{symbolUrlCustomized:t}):M(N(e))})).catch((function(){return f(f({},e),{},{symbolUrlCustomized:n("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})})):new Promise((function(t){t(_(e)?M(N(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({},j(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/v2/index.js":function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return w})),n.d(t,"a",(function(){return x})),n.d(t,"f",(function(){return _}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r),i=n("./js/utils/APIUtils.js"),a=n("./node_modules/lodash/isArray.js"),s=n.n(a),l=n("./node_modules/lodash/castArray.js"),u=n.n(l);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;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 h={base_resources:"/api/v2/base_resources",maps:"/api/v2/maps",geoapps:"/api/v2/geoapps",geostories:"/api/v2/geostories",documents:"/api/v2/documents"},m=function(e,t){var n=Object(i.a)(e);return n?t(n):o.a.options(Object(i.b)(h[e])).then((function(n){var r=n.data;return Object(i.c)(e,r),t(r)})).catch((function(){var n={error:!0};return Object(i.c)(e,n),t(n)}))},g=function(){return o.a.get("/api/v2/").then((function(e){var t=e.data;return function(e){h=e}(t),t}))};function y(e,t){if(!t)return e;var n=Object.keys(t).reduce((function(e,n,r){var o=0===r?"?":"&",i=u()(t[n]);return i.length>1?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 b=function(e){var t=e.q,n=e.pageSize,r=void 0===n?20:n,a=e.page,l=void 0===a?1:a,u=e.sort,c=f(e,["q","pageSize","page","sort"]);return m("maps",(function(){return o.a.get(Object(i.b)(y(h.maps,t&&{search:t,search_fields:["title","abstract"]})),{params:d(d(d({},c),u&&{sort:s()(u)?u:[u]}),{},{page:l,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}))}}))}))},v=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,l=t.page,u=void 0===l?1:l,c=t.sort,p=f(t,["q","pageSize","page","sort"]);return m("maps",(function(){return o.a.get(Object(i.b)(y(h.documents,n&&{search:n,search_fields:["title","abstract"]})),{params:d(d(d({},p),c&&{sort:s()(c)?c:[c]}),{},{"filter{doc_type}":[e],page:u,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}))}}))}))},w=function(e){return o.a.get(Object(i.b)("".concat(h.base_resources,"/").concat(e))).then((function(e){return e.data.resource}))},x=function(e){return o.a.post(Object(i.b)("".concat(h.geostories)),e,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))},_=function(e,t){return o.a.patch(Object(i.b)("".concat(h.geostories,"/").concat(e)),t,{params:{include:["data"]}}).then((function(e){return e.data.geostory}))}},"./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.w).exhaustMap((function(e){var n,r=e.resource,i=Object(j.mapValues)(r.attributes,(function(e){if(Object(j.isObject)(e)){var t=null;try{t=JSON.stringify(e)}catch(e){t=null}return t}return e})),a=Object(j.keys)(i).filter((function(e){return"thumbnail"!==e&&"details"!==e&&!Object(j.isNil)(i[e])}));return o.a.Observable.forkJoin((n=Object(j.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.M)(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(E.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(E.a)(R(R({},Object(k.c)(e,"geostore","mapsError")),{},{autoDismiss:6,position:"tc"})))})).startWith(r.id?Object(C.P)(r.metadata):Object(C.T)(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.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 nn})),n.d(r,"textSearch",(function(){return rn})),n.d(r,"validate",(function(){return on})),n.d(r,"testService",(function(){return an}));var o={};n.r(o),n.d(o,"parseUrl",(function(){return mn})),n.d(o,"getRecords",(function(){return gn})),n.d(o,"textSearch",(function(){return yn}));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 Nl})),n.d(i,"scaleQuantize",(function(){return Dl})),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 Ed})),n.d(i,"interpolateMagma",(function(){return jd})),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 Vz})),n.d(a,"featureGridLayerSelectionInitialization",(function(){return Wz})),n.d(a,"featureGridStartupQuery",(function(){return Yz})),n.d(a,"featureGridSort",(function(){return Kz})),n.d(a,"featureGridUpdateGeometryFilter",(function(){return Xz})),n.d(a,"featureGridUpdateTextFilters",(function(){return Zz})),n.d(a,"enableGeometryFilterOnEditMode",(function(){return Qz})),n.d(a,"disableMultiSelect",(function(){return $z})),n.d(a,"handleClickOnMap",(function(){return Jz})),n.d(a,"handleBoxSelectionDrawEnd",(function(){return eB})),n.d(a,"activateBoxSelectionTool",(function(){return tB})),n.d(a,"deactivateBoxSelectionTool",(function(){return nB})),n.d(a,"selectFeaturesOnMapClickResult",(function(){return rB})),n.d(a,"activateTemporaryChangesEpic",(function(){return oB})),n.d(a,"handleGeometryFilterActivation",(function(){return iB})),n.d(a,"deactivateGeometryFilter",(function(){return aB})),n.d(a,"activateGeometryFilter",(function(){return sB})),n.d(a,"featureGridChangePage",(function(){return lB})),n.d(a,"featureGridReloadPageOnSaveSuccess",(function(){return uB})),n.d(a,"updateSelectedOnSaveOrCloseFeatureGrid",(function(){return cB})),n.d(a,"savePendingFeatureGridChanges",(function(){return dB})),n.d(a,"deleteSelectedFeatureGridFeatures",(function(){return pB})),n.d(a,"handleEditFeature",(function(){return fB})),n.d(a,"handleDrawFeature",(function(){return hB})),n.d(a,"resetEditingOnFeatureGridClose",(function(){return mB})),n.d(a,"closeRightPanelOnFeatureGridOpen",(function(){return gB})),n.d(a,"onFeatureGridGeometryEditing",(function(){return yB})),n.d(a,"deleteGeometryFeature",(function(){return bB})),n.d(a,"triggerDrawSupportOnSelectionChange",(function(){return vB})),n.d(a,"onFeatureGridCreateNewFeature",(function(){return wB})),n.d(a,"setHighlightFeaturesPath",(function(){return xB})),n.d(a,"resetGridOnLocationChange",(function(){return _B})),n.d(a,"resetQueryPanel",(function(){return OB})),n.d(a,"autoCloseFeatureGridEpicOnDrowerOpen",(function(){return SB})),n.d(a,"askChangesConfirmOnFeatureGridClose",(function(){return EB})),n.d(a,"onClearChangeConfirmedFeatureGrid",(function(){return jB})),n.d(a,"onCloseFeatureGridConfirmed",(function(){return CB})),n.d(a,"removeWmsFilterOnGridClose",(function(){return TB})),n.d(a,"autoReopenFeatureGridOnFeatureInfoClose",(function(){return kB})),n.d(a,"onOpenAdvancedSearch",(function(){return AB})),n.d(a,"onFeatureGridZoomAll",(function(){return PB})),n.d(a,"resetControlsOnEnterInEditMode",(function(){return MB})),n.d(a,"closeIdentifyWhenOpenFeatureGrid",(function(){return IB})),n.d(a,"startSyncWmsFilter",(function(){return NB})),n.d(a,"stopSyncWmsFilter",(function(){return DB})),n.d(a,"deactivateSyncWmsFilterOnFeatureGridClose",(function(){return RB})),n.d(a,"syncMapWmsFilter",(function(){return LB})),n.d(a,"virtualScrollLoadFeatures",(function(){return FB})),n.d(a,"replayOnTimeDimensionChange",(function(){return zB})),n.d(a,"hideFeatureGridOnDrawerOpenMobile",(function(){return BB})),n.d(a,"hideDrawerOnFeatureGridOpenMobile",(function(){return qB}));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("./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 E(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,Ee=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx"),je=n("./MapStore2/web/client/components/maps/modals/ConfirmModal.jsx"),Ce=(n("./MapStore2/web/client/components/TOC/fragments/css/settingsModal.css"),n("./MapStore2/web/client/components/data/template/jsx/Template.jsx")),Te=n("./MapStore2/web/client/components/misc/Dialog.jsx"),ke=n("./MapStore2/web/client/components/TOC/fragments/template/index.js"),Ae=n("./MapStore2/web/client/utils/StringUtils.js"),Pe=n("./MapStore2/web/client/utils/URLUtils.js");function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(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:Ne(Ne({},t.state.collapsed),{},qe({},e,n))})},i=function(e,n){return c.a.createElement("div",{style:{display:"flex",flexDirection:"row"}},e,c.a.createElement(v.Button,{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(Ae.b)(l),w=Object(Pe.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()}}])&&De(t.prototype,n),r&&De(t,r),i}(c.a.Component);qe(Ue,"propTypes",{model:p.a.object}),qe(Ue,"contextTypes",{messages:p.a.object}),qe(Ue,"defaultProps",{model:{}});var Ge=Ue;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 Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(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})),ht(pt(e),"getSelectedGroup",(function(){return e.props.selectedGroups.length>0&&e.props.selectedGroups[e.props.selectedGroups.length-1]})),ht(pt(e),"getSelectedNodeDepth",(function(){return"DESELECT"===e.getStatus()?0:e.getSelectedGroup().id.split(".").length+1})),ht(pt(e),"addLayer",(function(){var t=e.getSelectedGroup();e.props.onToolsActions.onAddLayer(t&&t.id)})),ht(pt(e),"addGroup",(function(){var t=e.getSelectedGroup();e.props.onToolsActions.onAddGroup(t&&t.id)})),ht(pt(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})})),ht(pt(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})})),ht(pt(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})),ht(pt(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(v.Button,{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(Ee.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(v.Button,{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(Ee.a,{key:"queryPanel",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-layerFilter"},this.props.text.layerFilterTooltip)},c.a.createElement(v.Button,{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(Ee.a,{key:"featuresGrid",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-featuresGrid"},this.props.text.featuresGridTooltip)},c.a.createElement(v.Button,{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(Ee.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(v.Button,{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(Ee.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(v.Button,{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(Ee.a,{key:"widgets",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-widgets"},this.props.text.createWidgetTooltip)},c.a.createElement(v.Button,{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(Ee.a,{key:"downloadTool",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"toc-tooltip-downloadTool"},this.props.text.downloadToolTooltip)},c.a.createElement(v.Button,{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(Ee.a,{key:"layerMetadata",placement:"top",overlay:c.a.createElement(v.Tooltip,{id:"legend-tooltip-metadata"},this.props.text.layerMetadataTooltip)},c.a.createElement(v.Button,{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)(at(at({},e.props),{},{status:t}))})).map((function(n){var r=n.Component;return c.a.createElement(r,ot({},e.props,{status:t}))})),c.a.createElement(je.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}}])&<(t.prototype,n),r&<(t,r),i}(c.a.Component);ht(mt,"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])}),ht(mt,"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 gt=mt,yt=n("./MapStore2/web/client/components/TOC/DefaultGroup.jsx"),bt=n("./MapStore2/web/client/components/TOC/DefaultLayer.jsx"),vt=n("./MapStore2/web/client/components/TOC/DefaultLayerOrGroup.jsx"),wt=n("./MapStore2/web/client/api/CSW.js"),xt=n("./MapStore2/web/client/api/WMS.js"),_t=n("./MapStore2/web/client/api/WMTS.js"),Ot=n("./MapStore2/web/client/utils/ConfigUtils.js"),St=n("./node_modules/xml2js/lib/xml2js.js"),Et=n.n(St),jt=n("./MapStore2/web/client/libs/ajax.js"),Ct=n.n(jt),Tt=n("./MapStore2/web/client/utils/SecurityUtils.js"),kt=n("./MapStore2/web/client/utils/TMSUtils.js");function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(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 Pt(Pt({},r),{},{href:Object(Tt.cleanAuthParamsFromURL)(r.href),identifier:Object(Tt.cleanAuthParamsFromURL)(r.href),format:Object(kt.a)(r.href),tmsUrl:Object(Tt.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&&Lt(e,t,n,r,o),Ht(0,t,n,r,o)},rn=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?Lt(e,t,n,r,o):Ht(0,t,n,r,o)},on=function(e){return"tms"===e.provider?en(e):Vt(e)},an=function(e){return"tms"===e.provider?tn({parseUrl:Rt})(e):function(e){return zt.Observable.of(e)}(e)},sn=n("./MapStore2/web/client/api/WFS.js");function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(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(Tt.cleanAuthParamsFromURL)(e.url),name:n,title:r,description:o,SRS:[i].concat(dn(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(gt,{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(vt.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)}}])&&jn(t.prototype,n),r&&jn(t,r),i}(c.a.Component);Mn(Rn,"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}),Mn(Rn,"contextTypes",{messages:p.a.object}),Mn(Rn,"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 Ln=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)}})),Fn=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}}))),zn=Object(f.connect)(Dn,{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.F)()},refreshLayerVersion:x.U,onLayerInfo:w.g.bind(null,"layerinfo","enabled",!0,!1)})(Object(L.compose)(Ln,Fn)(Rn)),Bn={TOCPlugin:oe()(zn,{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(_n)},qn=n("./MapStore2/web/client/plugins/Map.jsx"),Un=n("./MapStore2/web/client/plugins/Toolbar.jsx"),Gn=(n("./MapStore2/web/client/plugins/drawer/drawer.css"),n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx")),Hn=n("./MapStore2/web/client/selectors/maplayout.js"),Vn=n("./node_modules/react-sidebar/dist-modules/index.js"),Wn=n.n(Vn),Yn=n("./node_modules/react-resizable/index.js");function Kn(e){return(Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zn(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 Jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n0?c.a.createElement("div",{id:this.props.id},c.a.createElement(Dr,Or({},this.props,{id:"drawer-menu-button"})),c.a.createElement(Nr,Or({single:this.props.singleSection},this.props.menuOptions,{title:c.a.createElement(xr.a,{msgId:"menu"}),alignment:"left"}),this.renderItems())):null}}])&&Er(t.prototype,n),r&&Er(t,r),i}(c.a.Component);Pr(Rr,"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}),Pr(Rr,"contextTypes",{messages:p.a.object,router:p.a.object}),Pr(Rr,"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 Lr=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)})(Rr),Fr={DrawerMenuPlugin:oe()(Lr,{disablePluginIf:"{state('featuregridmode') === 'EDIT'}",FloatingLegend:{priority:1,name:"drawer-menu",button:Dr}}),reducers:{}},zr=n("./MapStore2/web/client/plugins/ZoomAll.jsx"),Br=n("./MapStore2/web/client/plugins/MapLoading.jsx"),qr=n("./MapStore2/web/client/plugins/OmniBar.jsx"),Ur=n("./MapStore2/web/client/plugins/BackgroundSelector.jsx"),Gr=n("./MapStore2/web/client/plugins/FullScreen.jsx"),Hr=n("./MapStore2/web/client/plugins/ZoomIn.jsx"),Vr=n("./MapStore2/web/client/plugins/ZoomOut.jsx"),Wr=n("./MapStore2/web/client/plugins/Expander.jsx"),Yr=n("./MapStore2/web/client/plugins/BurgerMenu.jsx"),Kr=n("./node_modules/redux-undo/lib/index.js"),Xr=n.n(Kr);function Zr(e){return(Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qr(){return(Qr=Object.assign||function(e){for(var t=1;t0)}}),{onClick:xo})(wo),So=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:_o})(so),Eo={UndoPlugin:oe()(Oo,{Toolbar:{name:"undo",position:5,tool:!0,tooltip:"history.undoBtnTooltip",icon:c.a.createElement(v.Glyphicon,{glyph:"step-backward"}),help:c.a.createElement(xr.a,{msgId:"helptexts.historyundo"}),priority:1}}),RedoPlugin:oe()(So,{Toolbar:{name:"redo",position:6,tool:!0,tooltip:"history.redoBtnTooltip",icon:c.a.createElement(v.Glyphicon,{glyph:"step-forward"}),help:c.a.createElement(xr.a,{msgId:"helptexts.historyredo"}),priority:1}}),reducers:{}},jo=n("./MapStore2/web/client/plugins/ScaleBox.jsx"),Co=n("./MapStore2/web/client/plugins/MapFooter.jsx"),To=n("./MapStore2/web/client/plugins/Print.jsx"),ko=n("./MapStore2/web/client/actions/annotations.js"),Ao=n("./MapStore2/web/client/actions/measurement.js"),Po=n("./MapStore2/web/client/selectors/measurement.js"),Mo=n("./node_modules/react-widgets/lib/index.js"),Io=n("./node_modules/uuid/v1.js"),No=n.n(Io),Do=n("./MapStore2/web/client/utils/FileUtils.js"),Ro=n("./MapStore2/web/client/utils/MeasurementUtils.js"),Lo=n("./MapStore2/web/client/utils/MeasureUtils.js"),Fo=n("./MapStore2/web/client/components/I18N/Number.jsx"),zo=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),Bo=n("./MapStore2/web/client/components/misc/OverlayTriggerCustom.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(Lo.convertUom)(parseFloat(e),t,n):e},Xo=function(e,t,n){return Object(se.isNumber)(parseFloat(e))&&!isNaN(parseFloat(e))?parseFloat(Object(Lo.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(Lo.getFormattedBearingValue)(Object(se.round)(e||0,6),t)},onChangeUom:function(){},onChangeFormat:function(){},onMount:function(){},onUpdateOptions:function(){},onAddAsLayer:function(){}});var Ei=Si,ji=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 D(!1)},buttons:[{bsStyle:"primary",text:c.a.createElement(b.default,{msgId:"close"}),onClick:function(){return E(!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("./node_modules/lodash/isNil.js"),ga=n.n(ma),ya=n("./node_modules/lodash/isString.js"),ba=n.n(ya),va=n("./node_modules/lodash/isObject.js"),wa=n.n(va),xa=n("./node_modules/lodash/isFunction.js"),_a=n.n(xa),Oa=n("./node_modules/lodash/isArray.js"),Sa=n.n(Oa),Ea=n("./node_modules/lodash/sortBy.js"),ja=n.n(Ea),Ca=n("./node_modules/lodash/isNaN.js"),Ta=n.n(Ca),ka=n("./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),Na=Ia.right,Da=(Ia.left,Na);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 js(t[1],t[2],t[3],1):(t=fs.exec(e))?new js(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 js(NaN,NaN,NaN,0):null}function _s(e){return new js(e>>16&255,e>>8&255,255&e,1)}function Os(e,t,n,r){return r<=0&&(e=t=n=NaN),new js(e,t,n,r)}function Ss(e){return e instanceof ss||(e=xs(e)),e?new js((e=e.rgb()).r,e.g,e.b,e.opacity):new js}function Es(e,t,n,r){return 1===arguments.length?Ss(e):new js(e,t,n,null==r?1:r)}function js(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 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}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(js,Es,as(ss,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new js(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new js(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 js(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 Ds=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):Ds(isNaN(t)?n:t)}}function Fs(e,t){var n=t-e;return n?Rs(e,n):Ds(isNaN(e)?t:e)}var zs=function e(t){var n=Ls(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=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 E=p.length+e.length+O.length,j=E>1)+p+e+O+j.slice(E);break;default:e=j+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 Dl().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[Da(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,Eu,ju={"-":"",_:" ",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 Ec(e,t){return Sc(e,t)+"000"}function jc(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 Nc(e,t){return Au(cu.count(vu(e)-1,e),t,2)}function Dc(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:Ec,g:Rc,G:Fc,H:xc,I:_c,j:Oc,L:Sc,m:jc,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:Nc,x:null,X:null,y:Dc,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:Du,U:Ru,V:Lu,w:Nu,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 ju?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,Eu=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):Ds(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 Ed=Sd(ed("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),jd=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)},Nd=0,Dd=function(e){return""+(e||"")+ ++Nd},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=ja()(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,Ep=function(e){return function(){return e}},jp=Math.PI,Cp=2*jp;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=Ep(!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: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};Dp(kp);function Np(e){this._curve=e}function Dp(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 Rp={draw:function(e,t){var n=Math.sqrt(t/jp);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(jp/10)/Math.sin(7*jp/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,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 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,Eh=n("./node_modules/lodash/debounce.js"),jh=n.n(Eh),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?jh()(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,E=O.lineTangency,j=O.theta,C=Math.abs(a-s)-_-j;if(C<0)return b+"L"+t+","+n+"Z";b+="L"+E.x+","+E.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,Eg,jg,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),Eg.displayName="PolarAngleAxis",Eg.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}),Eg.defaultProps={cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1},Sg=jg))||Sg,Ng=n("./node_modules/lodash/isPlainObject.js"),Dg=n.n(Ng),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=Dd("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("./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*E/2-g)<=0&&(m=O.tickCoord+h*(E/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,E=void 0,j=void 0,C=void 0;return Array.isArray(m)?(j=m[0],C=m[1]):(j=m,C=m),"vertical"===n?(_=s.scale,y=f+t,b=_((g=h)-j),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},E={x1:b,y1:v,x2:b,y2:x}):"horizontal"===n&&(_=l.scale,b=(g=p+t)-r,w=g+r,v=_((y=h)-j),O={x1:b,y1:x=_(y+C),x2:w,y2:x},S={x1:g,y1:v,x2:g,y2:x},E={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",E),";")}))}},{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,jb=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:ja()(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=Dd("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[Dd("_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(){Nv.on(Dv,this.handleReceiveSyncEvent),Nv.setMaxListeners&&Nv._maxListeners&&Nv.setMaxListeners(Nv._maxListeners+1)}},{key:"removeListener",value:function(){Nv.removeListener(Dv,this.handleReceiveSyncEvent),Nv.setMaxListeners&&Nv._maxListeners&&Nv.setMaxListeners(Nv._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)||Nv.emit(Dv,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[j].stackGroups),E=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:E,sizeList:g[C],maxBarSize:A})}var P=t&&t({props:r,xAxis:v,yAxis:w,xTicks:x,yTicks:_,dataKey:d,item:e,bandSize:E,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;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=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("./node_modules/lodash/sumBy.js")),Nw=n.n(Iw),Dw=n("./node_modules/lodash/min.js"),Rw=n.n(Dw),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(jx(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(jx(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(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,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,[Eb,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"})}}})),A_(C_(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){O_(n,e);var t=E_(n);function n(){var e;k_(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)}))})),A_(C_(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){O_(a,e);var t,r,o,i=E_(a);function a(){return k_(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=__(T_(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:w_({},e.style)}:""}}],(r=[{key:"format",value:function(e,t){h.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):__(T_(a.prototype),"format",this).call(this,e,t)}}])&&x_(t.prototype,r),o&&x_(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]:{};k_(this,t),A_(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()})),A_(this,"onUpdate",(function(){r.repositionElements(),r.modules.forEach((function(e){e.onUpdate()}))})),A_(this,"removeModules",(function(){r.modules.forEach((function(e){e.onDestroy()})),r.modules=[]})),A_(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()})),A_(this,"show",(function(e){r.domNode=e,r.showOverlay(),r.initializeModules()})),A_(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()})),A_(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("")}})),A_(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")})}})),A_(this,"hide",(function(){r.hideOverlay(),r.removeModules(),r.domNode=void 0})),A_(this,"setUserSelect",(function(e){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach((function(t){r.quill.root.style[t]=e,document.documentElement.style[t]=e}))})),A_(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}}(W_),K_=Y_.ResizeModule,X_=Y_.IFrame,Z_=Y_.toolbarConfig;W_.register({"formats/video":X_,"modules/resizeModule":K_});var Q_=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&&B_(e,t)}(i,e);var t,n,r,o=q_(i);function i(){var e;F_(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 AS=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=kS(e,["type"]);return"polygon"===(n||t)&&c.a.createElement("path",TS({},r,{d:"M20 20 L180 20 L180 180 L20 180Z"}))||"linestring"===(n||t)&&c.a.createElement("path",TS({},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=kS(e,["text"]);return c.a.createElement("text",TS({x:"100",y:"100",textAnchor:"middle",alignmentBaseline:"middle"},n),t)})))};function PS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MS(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;nE.a.commands.autocomplete(t,null,{completeSingle:!1,container:o})}}})),yE(mE(e),"onUpdate",(function(){e.update.cancel(),e.update()})),yE(mE(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(sE({},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(zo.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(ES.a,{className:"ms-style-editor-loader",size:20}),this.props.error&&c.a.createElement(oE.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(rE.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),nE.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})}})})))))}}])&&dE(t.prototype,n),r&&dE(t,r),i}(c.a.Component);yE(bE,"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}),yE(bE,"defaultProps",{mode:"geocss",theme:"lesser-dark",style:{},code:"",onChange:function(){},waitTime:1e3,hintProperties:{},inlineWidgets:[]});var vE=bE,wE=n("./node_modules/lodash/find.js"),xE=n.n(wE),_E=n("./node_modules/lodash/identity.js"),OE=n.n(_E),SE=n("./node_modules/lodash/omit.js"),EE=n.n(SE),jE=n("./MapStore2/web/client/components/style/ColorSelector.jsx"),CE=n("./MapStore2/web/client/components/misc/Slider.jsx");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 kE(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 ME=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 IE(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=PE(e,["options"]);return kE(kE({},o),{},{options:r,ramp:i?i(o,r):(Object(dO.c)(r.base,r.range,n+1,r.options)||["#AAA"]).splice(1)})})),l=xE()(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:ME,optionRenderer:ME,onChange:function(e){e&&r(e)}})}IE.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},IE.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 NE=IE;function DE(e){return(DE="function"==typeof Symbol&&"symbol"==typeof Symbol.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){return function(e){if(Array.isArray(e))return LE(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 LE(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 LE(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 LE(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 uj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cj(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=pj(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,E=c.height,j=u.top,C=u.left,T=u.width,k=u.height,A=[C+T/2,j+k/2],P=A[0]-O>w/2+10&&O+S-A[0]>w/2+10,M=A[1]-_>x/2+10&&_+E-A[1]>x/2+10,I={top:{filter:function(){return P&&j-_>x+10},styles:function(){return{picker:{position:"absolute",top:j-x-10-_,left:C+T/2-w/2-O},overlay:{},arrow:{top:j+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:j-x/2-_,left:C+T+10-O},overlay:{},arrow:{top:j+k/2,left:C+T-2,transform:"translate(-50%, -50%) rotateZ(0deg) translateX(50%)"}}}},bottom:{filter:function(){return P&&_+E-(j+k)>x+10},styles:function(){return{picker:{position:"absolute",top:j+k+10-_,left:C+T/2-w/2-O},overlay:{},arrow:{top:j+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:j-x/2-_,left:C-w-10-O},overlay:{},arrow:{top:j+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(aj.createPortal)(c.a.createElement("div",{className:"ms-popover-overlay",ref:y,style:cj({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:cj({pointerEvents:"auto"},null==h?void 0:h.picker)},o),c.a.createElement("div",{className:"ms-popover-arrow",style:cj({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 mj=function(e){var t=e.open,n=e.onOpen,r=void 0===n?function(){}:n,o=lj(e,["open","onOpen"]),i=pj(Object(u.useState)(t),2),a=i[0],s=i[1];return c.a.createElement(hj,sj({},o,{open:a,onOpen:function(e){s(e),r(e)}}))},gj=[{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"}]}}],yj=Object(Gn.a)(v.Button);var bj=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?gj:a,l=s.find((function(e){return e.value===t}));return c.a.createElement(mj,{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(yj,{className:"ms-mark-preview",active:e.value===t,onClick:function(){return i(e.value)}},c.a.createElement(AS,e.preview)))}))))},c.a.createElement(yj,{className:"ms-mark-preview"},l&&c.a.createElement(AS,l.preview)))};var vj=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(ij,{label:n},c.a.createElement(Uo.default,{clearable:!1,options:o,value:r,onChange:function(e){return i("band",e.value)}})),c.a.createElement(ij,{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 wj(){return(wj=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 jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cj(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(_j(e)):e}function v(e){return n?[{value:n,label:n}].reduce(y,e):e}var w=i(p),x=xj(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?Pj:Aj,E=!l||l({value:n});return c.a.createElement(ij,{label:t,invalid:!E},c.a.createElement(S,wj({clearable:m,placeholder:"styleeditor.selectPlaceholder",noResultsText:"styleeditor.noResultsSelectInput"},s,{options:_.map((function(e){return Cj(Cj({},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(Ej(e,["label","value","config","onChange"]));return c.a.createElement(ij,{label:t},c.a.createElement(NE,{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(oj,{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(vj,{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:Cj(Cj({},o.channelSelection),{},Tj({},e,Cj(Cj({},o.channelSelection[e]),{},{sourceChannelName:n})))}):"enhancementType"===t?i({contrastEnhancement:{},channelSelection:Cj(Cj({},o.channelSelection),{},Tj({},e,Cj(Cj({},o.channelSelection[e]),{},{contrastEnhancement:Cj(Cj({},s[e].contrastEnhancement),{},{enhancementType:n})})))}):null}}),c.a.createElement(ij,{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(vj,{label:"styleeditor.grayChannel",value:d,bands:[{label:c.a.createElement(b.default,{msgId:"styleeditor.channelAuto"}),value:"auto"}].concat(_j(u)),enhancementType:(null==p?void 0:p.enhancementType)||"none",onChange:function(e,t){return"band"===e?i("auto"===t?Cj(Cj({},o),{},{channelSelection:void 0}):{contrastEnhancement:{},channelSelection:{grayChannel:Cj(Cj({contrastEnhancement:{}},null==s?void 0:s.grayChannel),{},{sourceChannelName:t})}}):"enhancementType"===e?i("auto"===l?{channelSelection:void 0,contrastEnhancement:Cj(Cj({},o.contrastEnhancement),{},{enhancementType:t})}:{contrastEnhancement:{},channelSelection:Object.keys(s).reduce((function(e,n){return Cj(Cj({},e),{},Tj({},n,Cj(Cj({},s[n]),{},{contrastEnhancement:Cj(Cj({},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(ij,{label:t},c.a.createElement(YE,{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 Ij(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=Mj[s],g=l&&l(t[h],i.current.properties);return m&&c.a.createElement(m,wj({},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 Nj=Ij;function Dj(e){return(Dj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rj(){return(Rj=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(Vj,{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)}}])&&Kj(t.prototype,n),r&&Kj(t,r),i}(c.a.Component);eC(tC,"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}),eC(tC,"contextTypes",{messages:p.a.object}),eC(tC,"defaultProps",{attributes:[],filterField:null,operatorOptions:["=",">","<",">=","<=","<>","><"],onUpdateField:function(){},toggleMenu:function(){},onUpdateExceptionField:function(){},onChangeCascadingValue:function(){}});var nC=tC,rC=n("./node_modules/moment/moment.js"),oC=n.n(rC),iC=n("./node_modules/react-widgets/lib/localizers/moment.js"),aC=n.n(iC),sC=n("./MapStore2/web/client/components/misc/enhancers/utcDateWrapper.js"),lC=n("./MapStore2/web/client/utils/TimeUtils.js");function uC(e){return(uC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dC(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(bC,{type:this.props.attType,defaultValue:t,value:t,calendar:this.props.dateEnabled,time:this.props.timeEnabled,format:Object(lC.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(bC,{type:this.props.attType,defaultValue:n,value:n,calendar:this.props.dateEnabled,time:this.props.timeEnabled,format:Object(lC.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(bC,{type:this.props.attType,defaultValue:t,value:t,time:this.props.timeEnabled,calendar:this.props.dateEnabled,format:Object(lC.c)(this.context.locale,this.props.attType),onChange:function(t){e.updateValueState({startDate:t,endDate:null})}}))}}])&&dC(t.prototype,n),r&&dC(t,r),i}(c.a.Component);yC(vC,"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}),yC(vC,"contextTypes",{locale:p.a.string}),yC(vC,"defaultProps",{timeEnabled:!1,dateEnabled:!0,operator:null,fieldName:null,fieldRowId:null,attType:null,fieldValue:null,fieldException:null,onUpdateField:function(){},onUpdateExceptionField:function(){},showLabels:!1});var wC=vC;function xC(e){return(xC="function"==typeof Symbol&&"symbol"==typeof Symbol.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 OC(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(Mo.NumberPicker,SC({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(Mo.NumberPicker,SC({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(Mo.NumberPicker,SC({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)))})),MC(AC(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=OC(OC({},this.props.style),{},{borderColor:"#FF0000"})),c.a.createElement(Ee.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))}}])&&jC(t.prototype,n),r&&jC(t,r),i}(c.a.Component);MC(IC,"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}),MC(IC,"contextTypes",{messages:p.a.object}),MC(IC,"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 NC=IC,DC=n("./MapStore2/web/client/utils/FilterUtils.js");function RC(e){return(RC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function LC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FC(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(IT.Message,{msgId:t})}})," ",c.a.createElement("span",{className:"group_label_b"},c.a.createElement(IT.Message,{msgId:"queryform.attributefilter.group_label_b"}))),e.renderGroupButtons(t))})),HT(UT(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(DT(n),DT(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))})),HT(UT(e),"renderHeader",(function(){return Object(ne.f)(e.context.messages,"queryform.attributefilter.attribute_filter_header")})),HT(UT(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(aT.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))}}])&&FT(t.prototype,n),r&&FT(t,r),i}(c.a.Component);HT(VT,"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}),HT(VT,"contextTypes",{messages:p.a.object}),HT(VT,"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 WT=VT;function YT(e){return function(e){if(Array.isArray(e))return KT(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 KT(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 KT(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 KT(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=ZT(ZT({},t),{},(QT(e={},n.fieldName,n.fieldValue),QT(e,"type",n.fieldType),QT(e,"fieldOptions",ZT(ZT({},t.fieldOptions),{},{currentPage:void 0===n.fieldOptions.currentPage?1:n.fieldOptions.currentPage})),e));return"attribute"===n.fieldName?ZT(ZT({},r),{},{value:"string"===n.fieldType?"":null,operator:""}):"operator"===n.fieldName?ZT(ZT({},r),{},{value:null}):r},ek=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(WT,{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(YT(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(YT(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?JT(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?ZT(ZT({},n),{},{exception:t}):n})),groupFields:u})},onUpdateLogicCombo:function(e,t){l({filterFields:d,groupFields:u.map((function(n){return n.id===e?ZT(ZT({},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 tk(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(mj,{placement:a,content:c.a.createElement(ek,{filterObj:t,attributes:r,onChange:function(e){return o({filter:e})}})},c.a.createElement($T,{className:"square-button-md no-border",active:!!t,tooltipId:"styleeditor.openFilterBuilder"},c.a.createElement(v.Glyphicon,{glyph:"filter"})))}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);nt.value?-1:1})):e}var s=ik(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(pk,{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(rk(rk({},t),{},{max:e})),d(a(l,e))}}),c.a.createElement(pk,{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(rk(rk({},t),{},{min:e})),d(a(l,e))}}))}function hk(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(mj,{placement:u,content:c.a.createElement(fk,{value:n,zoom:i,scales:o,onChange:function(e){return s({scaleDenominator:e})}})},c.a.createElement(ck,{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 mk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gk(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 jk=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,_=Ek(e,["ruleId","glyph","params","kind","symbolizerKind","classificationType","attributes","onUpdate","onReplace","methods","getColors","ruleBlock","symbolizerBlock","bands"]),O=_.ramp,S=_.method,E=_.classification,j=_.attribute,C=_.intervals,T=_.reverse,k=_.continuous,A=Object(u.useRef)();A.current={ruleId:t,intervals:C,method:S,attribute:j,reverse:T,ramp:O,continuous:k,classification:E};var P=r.reduce((function(e,t){return _a()(t)?Ok(Ok({},e),t(i)):Ok(Ok({},e),t)}),{}),M=(w[i]||{}).glyph;return c.a.createElement(xk,{key:"Classification",glyph:M||n,tools:c.a.createElement(wk,{ruleKind:o,symbolizerKind:i,ruleId:t,onSelect:f,ruleBlock:b,symbolizerBlock:w})},c.a.createElement(Nj,{properties:_,config:{attributes:d,methods:h,getColors:function(){var e="custom"===O&&E.length>0&&{name:"custom",colors:E.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=Ek(e,["name"]);return Ok({label:t?"global.colors.".concat(t):void 0,name:t},n)})):[]},bands:x,method:S},params:P,onChange:function(e){return p(Ok(Ok({},A.current),{},{type:s,values:e}))}}))},Ck=n("./node_modules/lodash/isEqual.js"),Tk=n.n(Ck),kk=n("./node_modules/tinycolor2/tinycolor.js"),Ak=n.n(kk);function Pk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mk(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 Nk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dk={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 Ak()(e).setAlpha(r).toRgb()},getValue:function(e){var t,r;if(u&&wa()(e)&&e.kind)return Nk(r={},i,e),Nk(r,n,void 0),Nk(r,o,void 0),r;var a=e||{},s=a.a,l=Ik(a,["a"]);return Mk((Nk(t={},n,Ak()(Mk(Mk({},l),{},{a:1})).toHexString()),Nk(t,o,s),t),u&&Nk({},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 Mk(Nk({},n,o),i&&Nk({},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(Tk()(e,["0"]))return Nk({},n,void 0);var r=void 0===t.width?1:t.width,o=!(e||[]).find((function(e){return Ta()(parseFloat(e))}));return Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Nk({},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 Mk(Mk(Nk({},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 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);ni&&c>u||(e.onSort(o,i),t.getItem().index=i)}(e,t,n)}},(function(e){return{connectDropTarget:e.dropTarget()}}))(Object(Uk.DragSource)("RULE",{beginDrag:function(e){return{id:e.id,index:e.index}}},(function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}}))(Gk));function Vk(){return(Vk=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 Yk(e){return function(e){if(Array.isArray(e))return Kk(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 Kk(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 Kk(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 Kk(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!!xE()(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(Yk(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:[Zk(Zk({},f[e].deaultProperties),{},{symbolizerId:No()()})]})}}}))),Yk(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(Zk({name:"",ruleId:No()()},d[e].deaultProperties))}}}))))}))),c.a.createElement("ul",{className:"ms-style-rules-editor-body"},0===r.length&&c.a.createElement(eA,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,N=g.hideInputLabel,D=g.hideFilter,R=g.hideScaleDenominator,L=g.classificationType;return c.a.createElement(Hk,{key:u+(r.length>1?"_draggable":""),draggable:r.length>1,id:u,index:t,errorId:h,onSort:M,title:N?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(Jk,{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(oE.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(tk,{hide:D,value:a,attributes:x,onChange:function(e){return k({values:e,ruleId:u},!0)}}),c.a.createElement(hk,{hide:R,value:l,scales:O,zoom:S,onChange:function(e){return k({values:e,ruleId:u},!0)}}),c.a.createElement($k,{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(jk,Vk({},e,{ruleBlock:d,symbolizerBlock:f,glyph:A,classificationType:L,params:w,methods:j,getColors:C,bands:_,attributes:x&&x.map((function(e){return Zk(Zk({},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=Wk(e,["kind","symbolizerId"]),i=f[n]||{},a=i.params,s=i.glyph;return a&&c.a.createElement(xk,{key:r,defaultExpanded:!0,draggable:!0,glyph:s,tools:c.a.createElement(wk,{hide:"Icon"===n,symbolizerKind:n,ruleBlock:d,symbolizerBlock:f,ruleId:u,onSelect:P,graphic:o.graphicFill||o.graphicStroke,channelSelection:o.channelSelection})},c.a.createElement(Nj,{properties:o,params:a,config:{bands:_,attributes:x,fonts:E},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"}})))})),nA=qk(),rA=nA.symbolizerBlock,oA=nA.ruleBlock;tA.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},tA.defaultProps={rules:[],config:{},ruleBlock:oA,symbolizerBlock:rA,onUpdate:function(){},onChange:function(){}};var iA=tA;function aA(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 sA(e){return function(e){if(Array.isArray(e))return cA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||uA(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 lA(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)||uA(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 uA(e,t){if(e){if("string"==typeof e)return cA(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)?cA(e,t):void 0}}function cA(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 CA={classificationVector:eE.b,classificationRaster:eE.a,classification:eE.b,"classification-raster":eE.a};function TA(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 kA=Object(f.connect)(Object(R.a)([QS.c,QS.g,QS.m,QS.f,QS.n,QS.j,QS.h,K.p,K.l,QS.s],(function(e,t,n,r,o,i,a,s,l,u){var c,d;return{code:e,mode:Object($S.g)(t),bands:Sa()(n)&&"raster"===a&&n||[],attributes:TA(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)||JS.a.methods}})),{onError:Yi.v.bind(null,"edit")})(vA);kA.defaultProps={getColors:JS.a.getColors,styleUpdateTypes:CA};var AA={visual:kA,textarea:Object(f.connect)(Object(R.a)([QS.c,QS.g,QS.m,QS.f,QS.n],(function(e,t,n,r,o){return{code:e,mode:Object($S.g)(t),hintProperties:n,error:r.edit||null,loading:o}})))(vE)};function PA(e){var t=e.code,n=e.error,r=e.canEdit,o=e.editorType,i=e.onUpdateMetadata,a=e.onChange,s=e.loading,l=jA(e,["code","error","canEdit","editorType","onUpdateMetadata","onChange","loading"]),d=SA(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(ES.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=AA[o]||AA.textarea;return c.a.createElement(zo.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,OA({},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)}}]})))))}PA.defaultProps={inlineWidgets:_A};var MA=Object(f.connect)(Object(wA.a)(QS.c,QS.f,QS.b,(function(e){var t=Object(QS.d)(e);return null==t?void 0:t.editorType}),(function(e){try{var t=Object(QS.d)(e);return JSON.parse(null==t?void 0:t.styleJSON)}catch(e){return null}}),QS.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})(PA),IA=Object($S.i)(),NA=Object(sO.a)((function(e){return!e.canEdit}),{glyph:"exclamation-mark",title:c.a.createElement(b.default,{msgId:"styleeditor.noPermission"})}),DA=function(e){return Object(aO.a)(e,{size:150,style:{margin:"auto"}},(function(e){return c.a.createElement("div",{style:{position:"relative",height:"100%",display:"flex"}},c.a.createElement(ES.a,e))}))},RA=Object(L.compose)(Object(L.defaultProps)({templates:IA}),Object(f.connect)(Object(R.a)([QS.t,QS.a,QS.h,QS.b,QS.s,QS.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}),NA,DA((function(e){return!e.geometryType})),Object(L.withState)("filterText","onFilter",""),Object(L.withState)("styleSettings","onUpdate",{}))(YS),LA=Object(L.compose)(Object(f.connect)(Object(R.a)([QS.r,QS.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(SS.a)((function(e){var t=e.status,n=e.readOnly;return"template"===t&&!n}),(function(){return c.a.createElement(RA,null)}),{maskContainerStyle:{display:"flex",position:"relative"},maskStyle:{overflowY:"auto",left:0}}))(LS),FA=Object(L.compose)(Object(L.withState)("showModal","onShowModal"),Object(f.connect)(Object(R.a)([QS.r,QS.t,QS.f,QS.k,QS.c,QS.n,QS.q,QS.b,QS.i,QS.s,QS.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:OS.h.bind(null,$S.b,[{}]),onAdd:Yi.r.bind(null,!0),onUpdate:Yi.G,onDelete:Yi.t,onSetDefault:Yi.B}))(ZS),zA=Object(L.compose)(Object(f.connect)(Object(R.a)([QS.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)}}),DA((function(e){var t=e.layer,n=void 0===t?{}:t;return n&&n.capabilitiesLoading})))((function(){return c.a.createElement(zo.a,{className:"ms-style-editor-container",footer:c.a.createElement("div",{style:{height:25}})},c.a.createElement(LA,{readOnly:!0}))})),BA=Object(L.branch)((function(e){return e.readOnly}),(function(){return zA}))(LA),qA=n("./MapStore2/web/client/components/misc/cardgrids/SideCard.jsx");function UA(){return(UA=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}tP(nP,"propTypes",{element:p.a.object,defaultInfoFormat:p.a.object,onChange:p.a.func,formatCards:p.a.object}),tP(nP,"defaultProps",{element:{},defaultInfoFormat:[],onChange:function(){},formatCards:{}});var cP={html:tO.a,json:JSON.parse(rO.a),text:iO.a},dP=Object(L.defaultProps)({readOnly:!0})(BA),pP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.settings,n=void 0===t?{}:t;return"layers"===n.nodeType},fP=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},hP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,n=void 0===t?{}:t;return"wms"===n.type},mP=function(e){return pP(e)&&(hP(e)||fP(e))},gP={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:cP.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:cP.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:cP.json}))}},TEMPLATE:{titleId:"layerProperties.templateFormatTitle",descId:"layerProperties.templateFormatDescription",glyph:"ext-empty",body:function(e){var t=e.template,n=void 0===t?"":t,r=uP(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($_,lP({template:n},r))))}}},yP=Object(L.defaultProps)({formatCards:gP,defaultInfoFormat:Object.assign({HIDDEN:"text/html"},Object(ia.e)())})(nP),bP={},vP=function(e,t,n){if(e){var r=bP[e.name];return r||(r=Object(_.f)(e,t,n))&&r.loaded&&(bP[e.name]=r),r}return e},wP=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=uP(e,["settings","items","loadedPlugins","onToggleStyleEditor","onUpdateParams","element"]);if(fP({element:u}))return{Component:_S};var p=Object(se.sortBy)(Object(se.filter)(aP(r),{target:"style"}),["priority"]).filter((function(e){var t=e.selector;return!t||t(oP(oP({},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&&vP(f,o,c.a.createElement(J_.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:vP(oP(oP({},g),{},{cfg:oP(oP({},y||{}),{},{active:!0})}),o,c.a.createElement(J_.a,{width:100,height:100})),toolbarComponent:g.ToolbarComponent&&(y&&Object(L.defaultProps)(y)(g.ToolbarComponent)||g.ToolbarComponent)}}return{}},xP=function(e){var t=e.showFeatureInfoTab,n=void 0===t||t,r=e.loadedPlugins,o=e.items,i=e.onToggleStyleEditor,a=uP(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:pP(a),Component:sa.a},oP({id:"style",titleId:"layerProperties.style",tooltipId:"layerProperties.style",glyph:"dropper",visible:mP(a),Component:dP},wP(oP({items:o,loadedPlugins:r,onToggleStyleEditor:i},a))),{id:"feature",titleId:"layerProperties.featureInfo",tooltipId:"layerProperties.featureInfo",glyph:"map-marker",visible:n&&pP(a)&&hP(a)&&!(a.element.featureInfo&&a.element.featureInfo.viewer),Component:yP,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:pP(a)&&hP(a)&&a.element.dimensions&&a.getDimension&&a.getDimension(a.element.dimensions,"elevation"),Component:m_}].filter((function(e){return e.visible}))},_P=Object(R.a)([H.o,H.p,H.k,X.b,X.a,function(e){return Object(Hn.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}})),OP=Object(L.compose)(Object(f.connect)(_P,{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:xP(e)}})))(ea),SP=Object(_.d)("TOCItemsSettings",{component:OP,containers:{TOC:{doNotHide:!0,name:"TOCItemsSettings"}}}),EP=n("./MapStore2/web/client/selectors/widgets.js");function jP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CP=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})}},TP=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 jP({},e,r?Object(se.mapValues)(t[e],CP({accessInfo:t[l],postProcessValue:i,reduceFun:a})):CP({accessInfo:t[l],postProcessValue:i,reduceFun:a})(t[e]))}))},kP=function(){return Object(L.compose)(Object(f.connect)(Object(R.a)(K.g,K.i,$.e,(function(e,t,n){return{accessInfo:{mapId:e,mapInfo:t,user:n}}}))),TP.apply(void 0,arguments))},AP=Object(f.connect)(Object(R.a)(Hn.e,Hn.a,de.a,(function(e,t,n){return{enabled:!e&&!t&&!n}}))),PP=n("./node_modules/react-container-dimensions/lib/index.js"),MP=n.n(PP),IP=n("./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js");var NP=function(e){return Object(L.compose)(Object(L.withStateHandlers)((function(){return{}}),{onResize:function(){return function(e){return{height:e.height}}}}),Object(IP.a)(e))},DP=n("./node_modules/react-grid-layout/index.js");function RP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LP(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 WP=Object(L.branch)((function(e){var t=e.useDefaultWidthProvider;return void 0===t||t}),DP.WidthProvider)(DP.Responsive),YP=BP(n("./MapStore2/web/client/components/widgets/widget/DefaultWidget.jsx").default),KP=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}))}))},XP=function(e){return e<480?e-34:e},ZP=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,E=e.showGroupColor,j=e.groups,C=void 0===j?[]:j,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,N=e.updateWidgetProperty,D=void 0===N?function(){}:N,R=e.deleteWidget,L=void 0===R?function(){}:R,F=e.toggleCollapse,z=void 0===F?function(){}:F,B=e.editWidget,q=void 0===B?function(){}:B,U=e.onLayoutChange,G=void 0===U?function(){}:U,H=e.language,V=e.env,W=VP(e,["id","style","className","toolsOptions","rowHeight","breakpoints","cols","widgets","layouts","dependencies","verticalCompact","compactMode","useDefaultWidthProvider","measureBeforeMount","width","showGroupColor","groups","canEdit","getWidgetClass","onWidgetClick","updateWidgetProperty","deleteWidget","toggleCollapse","editWidget","onLayoutChange","language","env"]),Y=m.filter((function(e){var t=e.mapSync,n=e.dependenciesMap;return t&&n})).map((function(e){return e.dependenciesMap})),K=function(e){return"table"===e.widgetType&&Y.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(WP,{key:t||"widgets-view",useDefaultWidthProvider:_,measureBeforeMount:O,width:_?void 0:XP(S),isResizable:k,isDraggable:k,draggableHandle:".draggableHandle",onLayoutChange:G,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?GP(GP({},e),{},{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(YP,qP({"data-grid":e.dataGrid},W,e,{quickFilters:K(e)?e.quickFilters:void 0,toolsOptions:a,groups:KP(C,e),showGroupColor:E,dependencies:y,enableColumnFilters:K(e),canEdit:k,updateProperty:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=n.width;return c.a.createElement(e,sM({width:r},t))}))}}),Object(L.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=n-120,o=4,i=Math.floor(r/o-20);return{rowHeight:i,className:"on-map",breakpoints:{md:480,xxs:0},cols:{md:6,xxs:1},style:{left:t&&t>800?"500px":"0",marginTop:52,bottom:65,height:Math.floor((n-100)/(i+10))*(i+10),width:"calc(100% - ".concat(t&&t>800?570:70,"px)"),position:"absolute",zIndex:50}}}))),Object(L.compose)(Object(L.defaultProps)({toolsOptions:{showPin:"user.role===ADMIN",seeHidden:"user.role===ADMIN",showHide:!1,showCollapse:!0}}),kP("toolsOptions",{asObject:!0}),Object(L.compose)(Object(f.connect)(Object(R.a)(EP.o,(function(e){return{tray:e}}))),Object(L.withPropsOnChange)(["toolsOptions","tray"],(function(e){var t=e.toolsOptions,n=e.tray;return{toolsOptions:t?iM(iM({},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}))}}))))(ZP),uM=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&&eM(e,t)}(i,e);var t,n,r,o=tM(i);function i(){return $P(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return this.props.enabled?c.a.createElement(lM,this.props):null}}])&&JP(t.prototype,n),r&&JP(t,r),i}(c.a.Component);aM(uM,"propTypes",{enabled:p.a.bool}),aM(uM,"defaultProps",{enabled:!0});var cM=AP(uM),dM=Object(_.d)("WidgetsPlugin",{component:cM,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}),pM=n("./MapStore2/web/client/actions/featuregrid.js"),fM=n("./MapStore2/web/client/actions/draw.js"),hM=n("./MapStore2/web/client/actions/queryform.js"),mM=n("./node_modules/connected-react-router/esm/actions.js"),gM=n("./MapStore2/web/client/actions/wfsquery.js"),yM=n("./MapStore2/web/client/selectors/query.js");function bM(e){return function(e){if(Array.isArray(e))return vM(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 vM(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 vM(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 vM(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 Bt.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 Bt.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 Bt.a.Observable.of(Object(le.H)(xM(xM({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 Bt.a.Observable.of(Object(pM.fb)(),Object(le.H)(xM(xM({legend:!1,mapSync:!0,cartesian:!0,yAxis:!0,widgetType:"chart",filter:Object(yM.m)(r())},e),{},{type:void 0}),{step:0}),Object(le.N)("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 Bt.a.Observable.of(gM.u.apply(void 0,bM(OM(r()))),Object(hM.ab)(Object(EP.h)(r())),Object(w.g)("widgetBuilder","enabled",!1),Object(w.g)("queryPanel","enabled",!0)).concat(Bt.a.Observable.race(e.ofType(hM.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?Bt.a.Observable.of(Object(le.N)("filter",e.filterObj)):Bt.a.Observable.empty()).merge(Bt.a.Observable.of(Object(w.g)("widgetBuilder","enabled",!0)))}))).takeUntil(e.ofType(mM.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(Bt.a.Observable.of(Object(fM.h)(),Object(w.g)("queryPanel","enabled",!1)))}))}},EM=n("./MapStore2/web/client/components/misc/panels/DockPanel.jsx"),jM=Object(L.compose)(Object(f.connect)((function(e){return{returnToFeatureGrid:Object(EP.q)(e)}}),{backToWidgetList:function(){return Object(le.N)("widgetType",void 0)},closeWidgetBuilder:function(){return Object(w.g)("widgetBuilder","enabled",!1,!1)},openFeatureGridTable:function(){return Object(pM.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"}}}))),CM=n("./MapStore2/web/client/components/misc/enhancers/propsStreamFactory.jsx"),TM=n("./MapStore2/web/client/observables/wfs.js"),kM=n("./MapStore2/web/client/utils/ObservableUtils.js"),AM=n("./MapStore2/web/client/observables/wps/common.js"),PM=function(e,t){return zt.Observable.defer((function(){return Ct.a.get(Object(AM.a)(e,{version:"1.0.0",REQUEST:"DescribeProcess",IDENTIFIER:t}),{timeout:5e3,headers:{Accept:"application/json","Content-Type":"application/xml"}})})).let(kM.b)};function MM(e){return PM(e.url,"gs:Aggregate")}var IM=n("./MapStore2/web/client/utils/ogc/WFS/base.js");function NM(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)||RM(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 DM(e){return function(e){if(Array.isArray(e))return LM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||RM(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 RM(e,t){if(e){if("string"==typeof e)return LM(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)?LM(e,t):void 0}}function LM(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 zt.Observable.forkJoin.apply(zt.Observable,[Object(TM.a)({layer:n})].concat(DM(t?[MM(n)]:[MM(n).catch((function(){return zt.Observable.of(!1)}))]))).do((function(e){var t=NM(e,1)[0],n=Object(se.get)(Object(IM.findGeometryProperty)(t.data||{}),"name");n&&o("geomProp",n)})).map((function(e){var t=NM(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),zt.Observable.of({errorObj:e,loading:!1,featureTypeProperties:[]})})).startWith({loading:!0})}}),CM.a,Object(aO.a)(),Object(sO.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(AT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),description:c.a.createElement(PT,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}})))},zM=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)}}]}})),BM=n("./MapStore2/web/client/observables/wms.js"),qM=n("./MapStore2/web/client/utils/CatalogUtils.js");function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GM(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 Bt.a.Observable.of(Object(qM.g)(t)).let(r).switchMap((function(){return Object(BM.a)(Object(qM.g)(t))})).do((function(e){return i(e)})).mapTo({canProceed:!0}).catch((function(e){return Bt.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 GM({error:n,canProceed:t},r)}))}))),WM=Object(f.connect)((function(){return{}}),{onLayerChoice:function(e){return Object(le.N)("layer",e)},onResetChange:le.N}),YM=Object(L.compose)(Object(L.setDisplayName)("ChartLayerSelector"),WM,Object(L.defaultProps)({layerValidationStream:function(e){return e.switchMap((function(e){return function(e){return zt.Observable.forkJoin(Object(TM.a)({layer:e}))}(e)}))}}),zM,VM),KM=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})}}})},XM=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},ZM=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||XM(o,n.widgetType,n),connected:n.mapSync}})),KM({viewport:"viewport",layers:"layers",filter:"filter",quickFilters:"quickFilters",layer:"layer",options:"options",mapSync:"mapSync",dependenciesMap:"dependenciesMap"})),QM=Object(L.compose)(Object(f.connect)(Object(R.a)(EP.p,(function(e){return{widgetSelectionActive:e}}))),Object(SS.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 $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 JM(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 oI=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=rI(n,["stepButtons","exitButton"]);return{stepButtons:[JM(JM({},i),{},{visible:e(JM({stepButtons:o,exitButton:i},a))},t)].concat(tI(o))}}))};function iI(e){return function(e){if(Array.isArray(e))return aI(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 aI(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 aI(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 aI(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 lI=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=sI(t,["disableMultiDependencySupport","stepButtons","toggleConnection","availableDependencies","canConnect","connected"]);return{stepButtons:[].concat(iI(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"}])}})))},uI=n("./MapStore2/web/client/selectors/dashboard.js");function cI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dI(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 dI(dI(dI(dI({},n),e),t),{},{step:e&&e.settings&&e.settings.step,valid:e&&e.settings&&e.settings.valid,onFinish:function(){return t.insertWidget&&t.insertWidget(dI({layer:e.layer,url:e.layer&&e.layer.url},e.editorData||{}),n.target)}})},hI=Object(R.a)(EP.n,EP.g,EP.i,EP.j,(function(e,t,n,r){return{layer:t&&t.layer||e,editorData:t,settings:n,widgets:r}}));Object(R.a)(EP.g,uI.c,EP.c,EP.a,(function(e,t,n,r){return dI({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}})),EP.n,EP.a;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;n=0?i.length:1;return e.props.hideButtons?null:(e.props.step>0&&t.push(c.a.createElement(v.Button,{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(v.Button,{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(v.Button,{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()))}}])&&yI(t.prototype,n),r&&yI(t,r),i}(c.a.Component);OI(SI,"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}),OI(SI,"defaultProps",{step:0,isStepValid:function(){return!0},hideButtons:!1,onNextPage:function(){},onPrevPage:function(){},onFinish:function(){}});var EI=SI,jI=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))}}})),CI=(Object(L.compose)(Object(L.withState)("step","setPage",0),jI),function(e){return Object(sO.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"})}),TI=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}}),kI=n("./MapStore2/web/client/components/charts/SimpleChart.jsx"),AI=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 PI(){return(PI=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?LI:i,s=e.type;return c.a.createElement(v.Row,null,c.a.createElement(AI,{key:"title",title:c.a.createElement(b.default,{msgId:"widgets.selectChartType.title"})}),c.a.createElement(jS.default,{key:"content",onItemClick:function(e){n(e.type),o()},items:a&&LI.map((function(e){return II(II({},e),{},{selected:e.type===s,preview:c.a.createElement(DI,PI({},RI,{type:e.type,autoColorOptions:e.type===s?{base:0,s:0,v:0}:void 0}))})}))}))})),zI=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}}))},BI=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"}]},qI=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:zI(n),aggregationOptions:("counter"!==(null==o?void 0:o.widgetType)?[{value:"None",label:"widgets.operations.NONE"}]:[]).concat(BI(o.options&&o.options.aggregationAttribute,n))}})),Object(CS.a)("aggregationOptions")),UI=n("./MapStore2/web/client/components/misc/switch/SwitchButton.jsx"),GI=n("./MapStore2/web/client/components/misc/Overlay.jsx");function HI(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 VI(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 VI(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 VI(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 $I={value:1};function JI(e){try{if(!e)return[!0];var t=Object(YI.a)(e,$I);return[!Object(se.isNil)(t)&&!Object(se.isNaN)(t)&&!Object(se.isError)(t),t]}catch(e){return[!1,e]}}function eN(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 tN(e,t){return t?e?"success":"error":null}function nN(e){var t=e.onChange,n=e.value,r=QI(e,["onChange","value"]),o=XI(JI(n),2),i=o[0],a=o[1],s=XI(Object(u.useState)(i),2),l=s[0],d=s[1],p=XI(Object(u.useState)(a),2),f=p[0],h=p[1],m=XI(Object(u.useState)(n),2),g=m[0],y=m[1];return c.a.createElement(v.FormGroup,{validationState:tN(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(WI,{placement:"top",title:c.a.createElement(b.default,{msgId:"widgets.advanced.formula"}),text:c.a.createElement(FS.a,{msgId:"widgets.advanced.formulaExamples"})}),c.a.createElement(v.FormControl,KI({placeholder:"e.g. value / 100",feedback:eN(l,f)},r,{type:"text",value:g,onChange:function(e){var n=XI(JI(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 rN=Object(CS.a)("options")(Uo.default),oN=[{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 iN(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 aN(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(aT.a,{id:"displayCartesian",header:c.a.createElement(iN,{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(UI.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(rN,{value:m.yAxisOpts&&m.yAxisOpts.type||"-",options:oN,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(UI.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(WI,{placement:"top",title:c.a.createElement(b.default,{msgId:"widgets.advanced.examples"}),text:c.a.createElement(FS.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(nN,{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(rN,{value:null!==(o=null==m||null===(i=m.xAxisOpts)||void 0===i?void 0:i.type)&&void 0!==o?o:"-",options:oN,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(UI.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(UI.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(oE.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(UI.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(CE.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 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;t1&&void 0!==arguments[1]?arguments[1]:{};return"widgets.".concat(e,".").concat(t.type||t.widgetType||"default")},fN=c.a.createElement(b.default,{msgId:pN("placeHolder")}),hN=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(AI,{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:pN("groupByAttributes",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(Uo.default,{value:r.options&&r.options.groupByAttributes,options:s,placeholder:fN,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:pN("aggregationAttribute",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(Uo.default,{value:r.options&&r.options.aggregationAttribute,options:s,placeholder:fN,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:pN("aggregateFunction",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(Uo.default,{value:r.options&&r.options.aggregateFunction,options:p,placeholder:fN,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:pN("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:pN("colorRamp",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(NE,{items:dN(r.type),value:Object(se.head)(dN(r.type).filter((function(e){return r.autoColorOptions&&e.name===r.autoColorOptions.name}))),samples:"pie"===r.type?5:1,onChange:function(e){i("autoColorOptions",lN(lN({},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:pN("displayLegend",r)})),c.a.createElement(v.Col,{sm:6},c.a.createElement(UI.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(aN,{data:r,onChange:i}))))},mN=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(AI,{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)}}))))))},gN=n("./MapStore2/web/client/components/widgets/enhancers/multiProtocolChart.js"),yN=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToWidget.js"),bN=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToFilter.js"),vN=n("./MapStore2/web/client/components/widgets/enhancers/dependenciesToOptions.js"),wN=n("./MapStore2/web/client/components/widgets/enhancers/emptyChartState.js"),xN=n("./MapStore2/web/client/components/widgets/enhancers/errorChartState.js");function _N(){return(_N=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}))(FI),EN=qI(hN),jN=Object(L.compose)(yN.a,bN.a,vN.a,gN.a,ON,xN.a,wN.a)(kI.a),CN=TI(kI.a),TN={width:430,height:200},kN=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)},AN=jI(EI),PN=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 kN(n.options,{hasAggregateProcess:l})?c.a.createElement(jN,_N({key:"preview-chart",onLoad:function(){return s(!0)},onLoadError:function(){return s(!1)},isAnimationActive:!1,dependencies:i,dependenciesMap:n.dependenciesMap},TN,{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(CN,_N({hasAggregateProcess:l,key:"sample-chart",isAnimationActive:!1},TN,{type:n.type,autoColorOptions:n.autoColorOptions,legend:n.legend,cartesian:n.cartesian,yAxis:n.yAxis}))},MN=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&&!kN(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(AN,{step:m,setPage:a,onFinish:o,isStepValid:function(e){return 0===e?d.chartType:1!==e||kN(d.options,{hasAggregateProcess:v})},hideButtons:!0},c.a.createElement(SN,{key:"type",featureTypeProperties:y,type:d.type,onSelect:function(e){n("type",e)}}),c.a.createElement(EN,{hasAggregateProcess:v,dependencies:b,key:"chart-options",featureTypeProperties:y,types:g,data:d,onChange:n,layer:d.layer||f,sampleChart:PN({hasAggregateProcess:v,data:d,layer:d.layer||f,dependencies:b,setValid:function(e){return l(e&&kN(d.options,{hasAggregateProcess:v}))}})}),c.a.createElement(mN,{key:"widget-options",data:d,onChange:n,layer:d.layer||f,sampleChart:PN({hasAggregateProcess:v,data:d,layer:d.layer||f,dependencies:b,setValid:function(e){return l(e&&kN(d.options,{hasAggregateProcess:v}))}})}))}));function IN(e){return function(e){if(Array.isArray(e))return NN(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 NN(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 NN(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 NN(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(IN(o),[{onClick:a,disabled:!t,tooltipId:"widgets.builder.wizard.useTheSelectedLayer",visible:n,glyph:"arrow-right"}])})},RN=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(v.Button,{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))))},LN=RN;function FN(e){return(FN="function"==typeof Symbol&&"symbol"==typeof Symbol.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){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);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 VN(e){var t=function(e,t){if("object"!==FN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==FN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===FN(t)?t:String(t)}var WN=n("./node_modules/rxjs/Rx.js"),YN=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(WN.Observable.of({loading:!1})).concat(t.throttleTime(u).distinct().exhaustMap((function(t){return n(e,t).startWith({loading:!0}).concat(WN.Observable.of({loading:!1}))}))).scan((function(e,t){var n=e[i],r=HN(e,[i].map(VN)),o=t[i],a=HN(t,[i].map(VN));return UN(UN(GN({},i,o?[].concat(zN(n||[]),zN(o)):n||[]),r),a)})).map((function(e){return UN({},e)}))})).catch((function(e){return WN.Observable.of({loading:!1,error:e})}))},KN=n("./MapStore2/web/client/components/misc/enhancers/infiniteScroll/withScrollSpy.js"),XN=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 WN.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(YN(l,i,e,t).startWith({}),(function(e,t){return UN(UN(UN({},e),t),{},{onLoadMore:o,loadFirst:s})}))}))}(t,o),Object(L.defaultProps)({hasMore:i,isScrolled:a}),Object(KN.a)(n,r))},ZN=n("./MapStore2/web/client/components/misc/enhancers/withControllableState.js"),QN=n("./MapStore2/web/client/components/misc/FitIcon.jsx"),$N=n("./MapStore2/web/client/components/misc/LoadingSpinner.jsx"),JN=Object(CS.a)(["placeholder","clearValueText","noResultsText"])(n("./node_modules/react-select/dist/react-select.es.js").default),eD=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(JN,{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"})))},tD=Object(CS.a)("placeholder")(v.FormControl),nD=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(eD,{servieces:s,catalog:a,isValidServiceSelected:l})):null,c.a.createElement(v.FormGroup,{controlId:"catalog-form"},c.a.createElement(tD,{type:"text",placeholder:"catalog.textSearchPlaceholder",value:r,onChange:function(e){return n(e.currentTarget.value)}})))))};function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oD(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"}):sD,record:e}})),total:r&&r.numberOfRecordsMatched}},cD={querySelector:".ms2-border-layout-body",pageSize:10},dD=Object(L.compose)(Object(ZN.a)("searchText","setSearchText",""),XN({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 Bt.a.Observable.fromPromise(aD[r.type].textSearch(r.url,10*o+("csw"===r.type?1:0),10,t)).map((function(e){return{result:e,records:Object(qM.e)(r.type,e||[],{url:r&&r.url,service:r})}})).map(uD)},scrollSpyOptions:cD}),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(zo.a,{className:"compat-catalog",header:c.a.createElement(nD,{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($N.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(lD,{items:l.map((function(e){return e===r||r&&e&&e.record&&r.identifier===e.record.identifier?oD(oD({},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)}}))})),pD=Object(L.defaultProps)({title:c.a.createElement(b.default,{msgId:"widgets.builder.wizard.selectALayer"})})(dD),fD=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}})))))(pD),hD=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(zo.a,{className:"bg-body layer-selector",header:c.a.createElement(LN,{onClose:n},c.a.createElement(DN,{stepButtons:s,canProceed:d,onProceed:function(){return a(p)}}),l&&!d&&u?c.a.createElement(oE.a,{trigger:!1,glyph:"warning-sign",bsStyle:"warning",title:c.a.createElement(AT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),text:c.a.createElement(PT,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}):null)},c.a.createElement(fD,{services:h,selected:l,catalog:f,onRecordSelected:function(e){return o(e)}}))};function mD(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);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.id;return n?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"};function wD(){return(wD=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 _D=Object(f.connect)(hI,{setPage:le.P,setValid:function(e){return Object(le.B)("valid",e)},onEditorChange:le.N,insertWidget:le.L},fI)(Object(L.compose)(FM({needWPS:!1}),Object(L.renameProps)({editorData:"data",onEditorChange:"onChange"}))(MN)),OD=Object(L.compose)(Object(f.connect)(hI,{openFilterEditor:le.O,setPage:le.P,onChange:le.N,insertWidget:le.L},fI),ZM,oI(),lI((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:yD(n)}].concat(mD(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:bD(n)},{onClick:function(){return u(Math.min(n+1,1))},visible:2===n,glyph:"floppy-disk",tooltipId:vD(n,o)}])})})),SD=Object(L.compose)(Object(f.connect)(hI),QM,Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!t}),Object(L.renderComponent)(YM(hD))))((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=xD(e,["enabled","onClose","exitButton","editorData","toggleConnection","availableDependencies","dependencies"]);return c.a.createElement("div",{className:"mapstore-chart-advance-options"},c.a.createElement(zo.a,{header:c.a.createElement(LN,{onClose:r},c.a.createElement(OD,{exitButton:o,editorData:i,toggleConnection:a,availableDependencies:l,onClose:r}))},t?c.a.createElement(_D,wD({dependencies:u},d)):null))}));function ED(e){return function(e){if(Array.isArray(e))return jD(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 jD(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 jD(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 jD(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"},TD=Object(CS.a)("placeholder")(v.FormControl),kD=Object(CS.a)("placeholder")(y_.a),AD=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(TD,{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(kD,{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)}}))},PD=jI(EI),MD=Object(L.compose)(Object(f.connect)(hI,{setPage:le.P,insertWidget:le.L,onResetChange:le.N},fI),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)}}}})),oI())((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(ED(a),[{onClick:function(){return l(Math.min(n+1,1))},visible:0===n,glyph:"floppy-disk",tooltipId:CD(n,o)}])})})),ID=Object(f.connect)(hI,{onChange:le.N},fI)((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(PD,{step:l,setPage:a,onFinish:o,hideButtons:!0},c.a.createElement(AD,{key:"widget-options",data:d,onChange:n}))})),ND=n("./node_modules/react-data-grid/index.js"),DD=n.n(ND);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);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(IM.isGeometryType)(e)})).map((function(e){return zD(zD({},e),{},{label:e.name,attribute:e.name,hide:o.propertyName&&o.propertyName.indexOf(e.name)<0})}))}})),CI((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(qD(e),qD(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(DD.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(RD(e),RD(t.hide?[]:[n]))}),[])}}}))})),HD=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(AI,{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(GD,{options:n.options,onChange:o,attributes:i}),n.options&&n.options.columnSettings?c.a.createElement(v.Button,{style:{float:"right"},onClick:function(){return o("options.columnSettings",void 0)}},c.a.createElement(b.default,{msgId:"widgets.builder.wizard.resetColumnsSizes"})):null)))},VD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.aggregateFunction&&e.aggregationAttribute&&e.groupByAttributes},WD=jI(EI),YD=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&&!VD(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(WD,{step:f,setPage:a,onFinish:o,isStepValid:function(e){return 1!==e||VD(l.options)},hideButtons:!0},c.a.createElement(HD,{dependencies:g,key:"chart-options",featureTypeProperties:m,types:h,data:l,onChange:n,layer:l.layer||d}),c.a.createElement(mN,{key:"widget-options",data:l,onChange:n,layer:l.layer||d}))}));function KD(e){return function(e){if(Array.isArray(e))return XD(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 XD(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 XD(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 XD(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 eR(){return(eR=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 nR=Object(f.connect)(hI,{setPage:le.P,setValid:function(e){return Object(le.B)("valid",e)},onEditorChange:le.N,insertWidget:le.L},fI)(Object(L.compose)(FM(),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(IM.isGeometryType)(e)})).map((function(e){return e.name})))})).ignoreElements())})))(YD)),rR=Object(L.compose)(Object(f.connect)(hI,{openFilterEditor:le.O,setPage:le.P,onChange:le.N,insertWidget:le.L},fI),ZM,oI(),lI((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:QD(o)}].concat(KD(a),[{visible:o>=0,onClick:n,disabled:!ZD(l),glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return d(Math.min(o+1,2))},visible:0===o,disabled:0===o&&!ZD(l),glyph:"arrow-right",tooltipId:$D(0,ZD(l))},{onClick:function(){return f(Math.min(o+1,1))},visible:1===o,glyph:"floppy-disk",tooltipId:JD(o,l)}])})})),oR=Object(L.compose)(Object(f.connect)(hI),QM,Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!t}),Object(L.renderComponent)(YM(hD))))((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=tR(e,["enabled","onClose","editorData","exitButton","toggleConnection","availableDependencies","dependencies"]);return c.a.createElement(zo.a,{header:c.a.createElement(LN,{onClose:r},c.a.createElement(rR,{editorData:i,exitButton:a,toggleConnection:s,availableDependencies:u,onClose:r}),0===Object(se.get)(i,"options.propertyName.length")?c.a.createElement(oE.a,{trigger:!1,glyph:"exclamation-mark",bsStyle:"warning",text:c.a.createElement(b.default,{msgId:"widgets.builder.errors.checkAtLeastOneAttribute"})}):null)},t?c.a.createElement(nR,eR({editorData:i,dependencies:d},p)):null)})),iR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/handleNodeSelection.js");function aR(e){return function(e){if(Array.isArray(e))return sR(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 sR(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 sR(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 sR(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"},uR=n("./MapStore2/web/client/components/misc/enhancers/localizeStringMap.js"),cR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/enhancers/nodeEditor.js"),dR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/NodeEditor.jsx"),pR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/TOC.jsx"),fR=Object(sO.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"})}}))(pR.a),hR=Object(cR.a)(dR.a),mR=Object(L.compose)(cR.a,Object(L.withProps)((function(e){var t=e.selectedNode;return{title:t&&t.title}})),Object(uR.a)("title"))(AI),gR=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(AI,{title:c.a.createElement(b.default,{msgId:"widgets.builder.wizard.configureMapOptions"})}),c.a.createElement("div",{key:"sample",style:{marginTop:10}},c.a.createElement(AI,{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(mR,{map:r,editNode:d}),c.a.createElement(hR,{closeNodeEditor:f,editNode:d,map:r,onChange:i,isLocalizedLayerStylesEnabled:h})]:[c.a.createElement(AI,{title:c.a.createElement(b.default,{msgId:"layers"})}),c.a.createElement(fR,{selectedNodes:s,onSelect:u,onChange:i,map:r})])},yR=n("./MapStore2/web/client/components/widgets/builder/wizard/map/PreviewMap.jsx"),bR=jI(EI),vR=Object(L.compose)(Object(f.connect)(Object(R.a)(EP.p,(function(e){return{widgetSelectionActive:e}}))),Object(SS.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})),wR=Object(f.connect)(Object(R.a)(EP.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.B)("editNode",e)},closeNodeEditor:function(){return Object(le.B)("editNode",void 0)}});function xR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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]:[];return o(n.filter((function(t){return!Object(se.find)(Object(se.castArray)(e),(function(e){return e===t.id}))})))}}})),CR=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 TR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kR(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&&nt.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=kR(kR({},t.bbox),{},{bounds:p});o(kR(kR({},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)()}}))),MR=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}})),KM({center:"center",zoom:"zoom",filter:"filter",quickFilters:"quickFilters",layer:"layer",options:"options",mapSync:"mapSync",dependenciesMap:"dependenciesMap"})),IR=Object(L.compose)(Object(f.connect)(hI,{setPage:le.P,onChange:le.N,insertWidget:le.L},fI),jR,wR,CR,PR,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"}]}}))),MR,oI(void 0,{tooltipId:"widgets.builder.wizard.backToMapSelection"}),lI((function(e){return 0===e.step}))),NR=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}})))))(pD),DR=n("./MapStore2/web/client/api/persistence/index.js");function RR(e){return function(e){if(Array.isArray(e))return LR(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 LR(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 LR(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 LR(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 zR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BR(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)}):VR,map:e}})),total:n}},YR=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(DR.e)({category:"MAP",query:n,options:BR({params:{start:10*i,limit:10}},o)}).map(WR).catch((function(e){return Bt.a.Observable.of({error:e,items:[],total:0})}))},KR={querySelector:".ms2-border-layout-body",pageSize:10},XR=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 BR(BR({},FR(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:VR,map:{id:"new.json"}}].concat(RR(t))})})):e(t,n)}},ZR=Object(L.compose)(XN((GR=(UR={loadPage:YR,scrollSpyOptions:KR,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,HR=UR.scrollSpyOptions,BR(BR({},FR(UR,["loadPage","scrollSpyOptions"])),{},{scrollSpyOptions:BR({skip:1},HR),loadPage:XR(GR),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}}))),QR=Object(ZN.a)("searchText","setSearchText",""),$R=(XN({loadPage:YR,scrollSpyOptions:KR,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()})))}))),JR=Object(L.compose)(QR,ZR,$R),eL=Object(CS.a)("placeholder")(v.FormControl),tL=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(eL,{type:"text",placeholder:"catalog.textSearchPlaceholder",value:r,onChange:function(e){return n(e.currentTarget.value)}})))))};function nL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rL(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?Ct.a.get(e.id).then((function(e){return e.data})):aL.a.getData(e.id,{baseURL:o.baseURL})).then((function(t){var n=t.version||"string"==typeof e.id?Ot.default.normalizeConfig(t.map):Ot.default.convertFromLegacy(t);return lL(lL(lL({},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 lL(lL({},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 lL({canProceed:t},n)}))})));function dL(e){return function(e){if(Array.isArray(e))return pL(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 pL(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 pL(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 pL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?c.a.createElement($N.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(iL,{loaderProps:f,items:d.map((function(e){return e===r||r&&e&&e.map&&r.id===e.map.id?rL(rL({},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)}}))})),hL=cL((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(zo.a,{className:"bg-body layer-selector",header:c.a.createElement(RN,{onClose:n},c.a.createElement(qo.a,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[].concat(dL(l),[{tooltipId:"widgets.builder.wizard.useThisMap",onClick:function(){return a(u)},visible:!0,disabled:!u,glyph:"arrow-right"}])}))},c.a.createElement(fL,{title:c.a.createElement(b.default,{msgId:"widgets.builder.wizard.selectAMap"}),selected:u,onSelected:function(e){return o(e)}}))})),mL=Object(L.compose)(Object(f.connect)((function(){return{}}),{onMapSelected:function(e){var t=e.map;return Object(le.N)("map",Object(ee.normalizeMap)(t))},onResetChange:le.N}),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)}}]}})))(hL),gL=IR((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(aR(0===n?i:[]),[{onClick:function(){return p(Math.max(n-1,0))},visible:1===n,glyph:"arrow-left",tooltipId:"widgets.builder.wizard.configureMapOptions"}],aR(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:lR(n,u)}])})})),yL=Object(L.compose)(Object(f.connect)(hI,{onResetChange:le.N}),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)(mL)),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)(jR,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)}}}),VM)((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(zo.a,{className:"bg-body layer-selector",header:c.a.createElement(LN,{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(oE.a,{glyph:"exclamation-mark",bsStyle:"warning",title:c.a.createElement(AT,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),text:c.a.createElement(PT,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}):null)},c.a.createElement(NR,{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)}}}}))),bL=Object(f.connect)(hI,{onChange:le.N},fI)((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(bR,{step:l,setPage:a,onFinish:o,hideButtons:!0},c.a.createElement(gR,{editNode:g,setEditNode:b,closeNodeEditor:w,onNodeSelect:f,selectedNodes:d,onChange:n,isLocalizedLayerStylesEnabled:x,preview:c.a.createElement(yR.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(mN,{key:"widget-options",data:m,onChange:n}))})),vL=Object(L.compose)(yL,Object(L.withProps)((function(e){var t=e.editorData;return{map:(void 0===t?{}:t).map}})),vR,iR.a,wR)((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,E=void 0===S?function(){}:S;return c.a.createElement(zo.a,{className:"map-selector",header:c.a.createElement(LN,{onClose:r},c.a.createElement(gL,{exitButton:g,editorData:s,availableDependencies:O,toggleConnection:E,selectedNodes:v,selectedLayers:b,selectedGroups:m,onNodeSelect:x,toggleLayerSelector:i}))},t?c.a.createElement(bL,{setEditNode:u,editNode:l,closeNodeEditor:d,onNodeSelect:x,isLocalizedLayerStylesEnabled:p,env:f,selectedNodes:v}):null)})),wL=Object(L.compose)(Object(L.setDisplayName)("CounterLayerSelector"),WM,Object(L.defaultProps)({layerValidationStream:function(e){return e.switchMap((function(e){return function(e){return zt.Observable.forkJoin(Object(TM.a)({layer:e}),MM(e))}(e)}))}}),zM,VM),xL=n("./MapStore2/web/client/components/widgets/enhancers/wpsCounter.js"),_L=n("./MapStore2/web/client/components/widgets/widget/CounterView.jsx");function OL(){return(OL=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},CL=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&&jL(i,{hasAggregateProcess:u})&&s(c)}})),TL=Object(L.compose)(yN.a,bN.a,vN.a,xL.a,CL,SL,xN.a,wN.a),kL={style:{width:450,height:100}},AL=jI(EI),PL=TL(_L.a),ML=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 jL(n.options,{hasAggregateProcess:u})?c.a.createElement(PL,OL({hasAggregateProcess:u},kL,{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(_L.a,OL({},kL,{data:[{data:42}],options:n.options,series:[{dataKey:"data"}]}))},IL=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&&!jL(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(AL,{step:y,setPage:a,onFinish:o,isStepValid:function(e){return 1!==e||jL(f.options,{hasAggregateProcess:x})},hideButtons:!0},c.a.createElement(EL,{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(ML,{hasAggregateProcess:x,data:f,valid:u,layer:f.layer||m,dependencies:w,setValid:function(e){return l(e&&jL(f.options,{hasAggregateProcess:x}))}})}),c.a.createElement(mN,{key:"widget-options",data:f,onChange:n,layer:f.layer||m,sampleChart:c.a.createElement(ML,{hasAggregateProcess:x,data:f,valid:u,layer:f.layer||m,dependencies:w,setValid:function(e){return l(e&&jL(f.options,{hasAggregateProcess:x}))}})}))}));function NL(e){return function(e){if(Array.isArray(e))return DL(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 DL(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 DL(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 DL(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 zL(){return(zL=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 qL=Object(f.connect)(hI,{setPage:le.P,setValid:function(e){return Object(le.B)("valid",e)},onEditorChange:le.N,insertWidget:le.L},fI)(Object(L.compose)(FM({needsWPS:!0}),Object(L.renameProps)({editorData:"data",onEditorChange:"onChange"}))(IL)),UL=Object(L.compose)(Object(f.connect)(hI,{openFilterEditor:le.O,setPage:le.P,onChange:le.N,insertWidget:le.L},fI),ZM,oI(),lI((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:RL(o)}].concat(NL(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:LL(o)},{onClick:function(){return h(Math.min(o+1,1))},visible:1===o,glyph:"floppy-disk",tooltipId:FL(o,l)}])})})),GL=Object(L.compose)(Object(f.connect)(hI),QM,Object(L.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return!t}),Object(L.renderComponent)(wL(hD))))((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=BL(e,["enabled","onClose","exitButton","editorData","toggleConnection","availableDependencies","dependencies"]);return c.a.createElement(zo.a,{header:c.a.createElement(LN,{onClose:r},c.a.createElement(UL,{exitButton:o,editorData:i,toggleConnection:a,availableDependencies:l,onClose:r}))},t?c.a.createElement(qL,zL({formOptions:{showColorRamp:!1,showUom:!0,showGroupBy:!1,showLegend:!1},dependencies:u},d)):null)}));function HL(e){return function(e){if(Array.isArray(e))return VL(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 VL(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 VL(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 VL(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"},ZL=n("./MapStore2/web/client/components/widgets/enhancers/emptyLegendState.js"),QL=n("./MapStore2/web/client/components/widgets/enhancers/legendWidget.js"),$L=n("./MapStore2/web/client/components/widgets/widget/LegendView.jsx"),JL=jI(EI),eF=Object(L.compose)(QL.a,Object(sO.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(ZL.a)(!1))($L.a),tF=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 nF(){return(nF=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 oF=Object(L.withProps)((function(e){var t=e.availableDependencies,n=void 0===t?[]:t,r=e.editorData;return{valid:n.length>0&&r.mapSync}})),iF=Object(R.a)(X.b,(function(e){return{currentLocale:e}})),aF=Object(L.compose)(Object(f.connect)(hI,{setPage:le.P,onEditorChange:le.N,insertWidget:le.L},fI),Object(f.connect)(iF),oF,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(JL,{step:l,setPage:a,onFinish:o,hideButtons:!0},c.a.createElement(v.Row,null,c.a.createElement(AI,{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(eF,{valid:d,dependencies:u,dependenciesMap:f.dependenciesMap,key:"widget-options",onChange:n,currentLocale:h,language:m})))),c.a.createElement(mN,{key:"widget-options",onChange:n}))})),sF=Object(L.compose)(Object(f.connect)(hI,{openFilterEditor:le.O,setPage:le.P,onChange:le.N,insertWidget:le.L},fI),tF,oF,Object(f.connect)((function(){return{}}),{onLayerChoice:function(e){return Object(le.N)("layer",e)},onResetChange:le.N}),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)}}}})),oI((function(e){return 0===e.step})),lI((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:WL(n)}].concat(HL(s),[{onClick:function(){return p(Math.min(n+1,1))},visible:0===n,disabled:0===n&&!KL(o)||!i,glyph:"arrow-right",tooltipId:YL(0,i)},{onClick:function(){return u(Math.min(n+1,1))},visible:1===n,glyph:"floppy-disk",tooltipId:XL(n,o)}])})})),lF=Object(L.compose)(Object(f.connect)(hI),QM,tF,KM({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=rF(e,["enabled","onClose","editorData","exitButton","toggleConnection","availableDependencies","dependencies"]);return c.a.createElement(zo.a,{header:c.a.createElement(LN,{onClose:r},c.a.createElement(sF,{editorData:i,exitButton:a,toggleConnection:s,availableDependencies:u,onClose:r}),0===Object(se.get)(i,"options.propertyName.length")?c.a.createElement(oE.a,{trigger:!1,glyph:"exclamation-mark",bsStyle:"warning",text:c.a.createElement(b.default,{msgId:"widgets.builder.errors.checkAtLeastOneAttribute"})}):null)},t?c.a.createElement(aF,nF({availableDependencies:u,editorData:i,dependencies:d},p)):null)}));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 cF(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 gF=Object(R.a)(EP.g,(function(e){return{widgetType:e&&e.widgetType}})),yF={chart:SD,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(zo.a,{header:c.a.createElement(LN,{onClose:r},c.a.createElement(MD,null))},t?c.a.createElement(ID,null):null)},table:oR,map:vL,counter:GL,legend:lF},bF=Object(L.compose)(Object(f.connect)(gF),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(zo.a,{className:"bg-body",header:c.a.createElement(LN,{onClose:r},c.a.createElement(b.default,{msgId:"widgets.selectWidgetType"}))},t?c.a.createElement(fF,{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=mF(e,["widgetType","onClose"]),i=yF[t];return c.a.createElement(i,hF({},o,{onClose:r,widgetType:t}))}})))();function vF(e){return(vF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xF(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return"map"!==t&&"legend"!==t}}))}}])&&xF(t.prototype,n),r&&xF(t,r),i}(c.a.Component);TF(AF,"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}),TF(AF,"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 PF=Object(f.connect)(Object(R.a)(Z.k,(function(e){return Object(Hn.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)})(AF),MF=Object(_.d)("WidgetsBuilder",{component:PF,epics:SM,containers:{TOC:{doNotHide:!0,name:"WidgetBuilder"}}});function IF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NF(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(RF).map((function(e){return Object(se.findIndex)(t,(function(t){return t===e.id}))>=0?NF(NF({},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}))})),FF=Object(L.compose)(Object(L.defaultProps)({toolsOptions:{seeHidden:"user.role===ADMIN"}}),kP("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 zF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BF(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"}},GF=Object(L.compose)(Object(L.withPropsOnChange)(["btnGroupProps"],(function(e){var t=e.btnGroupProps;return{btnGroupProps:BF(BF({},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:UF(e),tooltip:e.title,className:e.collapsed?"btn-tray":"btn-tray active",onClick:function(){return o(e)}}}))}})))(qo.a);function HF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VF(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(oz,{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"}))},az=Object(L.compose)(Object(f.connect)(Object(R.a)(EP.m,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{widgets:e}})),{onClick:function(){return Object(le.R)()}}),FF,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(oz,{tooltipId:o?"widgets.tray.expandAll":"widgets.tray.collapseAll",bsStyle:o?"primary":"success active",bsSize:"xsmall",onClick:n},c.a.createElement(v.Glyphicon,{glyph:"list"}))})),sz=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&&JF(e,t)}(i,e);var t,n,r,o=ez(i);function i(){return QF(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(zo.a,{columns:[c.a.createElement(iz,{key:"collapse-tray",toolsOptions:this.props.toolsOptions,expanded:this.props.expanded,onClick:function(){return e.props.setExpanded(!e.props.expanded)}}),c.a.createElement(az,{key:"collapse-all",toolsOptions:this.props.toolsOptions})].concat(XF(this.props.items.map((function(e){return e.tool}))||[]))},this.props.expanded?c.a.createElement(YF,{toolsOptions:this.props.toolsOptions}):null)):null}}])&&$F(t.prototype,n),r&&$F(t,r),i}(c.a.Component);rz(sz,"propTypes",{enabled:p.a.bool,toolsOptions:p.a.object,items:p.a.array,expanded:p.a.bool,setExpanded:p.a.func}),rz(sz,"defaultProps",{enabled:!0,items:[],expanded:!1,setExpanded:function(){}});var lz=Object(L.compose)(Object(L.withState)("expanded","setExpanded",!1),Object(f.connect)(Object(R.a)(LF,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{widgets:e}})),{toggleTray:le.U}),FF,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}})))(sz),uz=n("./MapStore2/web/client/actions/timeline.js"),cz=n("./MapStore2/web/client/actions/config.js"),dz=n("./MapStore2/web/client/selectors/timeline.js");function pz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fz(e){for(var t=1;t0},gz=function(e){return function(t){return t.take(1).switchMap((function(){return Bt.a.Observable.of(Object(G.h)(fz(fz({},e),{},{autoDismiss:8,position:"tr",uid:"timeline-collapsed"})))})).merge(t)}},yz={collapseTimelineOnWidgetsEvents:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return Bt.a.Observable.merge(e.ofType(le.t,le.u,cz.d,le.y,le.m).filter((function(){return mz(r())&&Object(dz.f)(r())}))).switchMap((function(){return Bt.a.Observable.of(Object(uz.p)(!0))})).let(gz({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 Bt.a.Observable.merge(e.ofType(uz.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 mz(r())&&Object(dz.b)(r())&&Object(dz.f)(r())})).switchMap((function(){return Bt.a.Observable.of(Object(le.R)())})).let(gz({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.y,cz.d).filter((function(){return!Object(dz.f)(r())&&Object(dz.b)(r())})).filter((function(){return!mz(r())})).switchMap((function(){return Bt.a.Observable.of(Object(uz.p)(!1))}))}},bz={WidgetsTrayPlugin:AP(lz),epics:yz},vz=n("./MapStore2/web/client/plugins/Notifications.jsx"),wz=n("./node_modules/redux/es/index.js"),xz=n("./node_modules/react-dock/lib/index.js"),_z=n.n(xz),Oz=n("./node_modules/@turf/bbox/index.js"),Sz=n.n(Oz),Ez=n("./MapStore2/web/client/utils/ogc/Filter/filter.js"),jz=n("./MapStore2/web/client/utils/FeatureGridUtils.js"),Cz=n("./MapStore2/web/client/utils/ogc/WFST/RequestBuilder.js"),Tz=n.n(Cz),kz=n("./MapStore2/web/client/actions/mapInfo.js"),Az=n("./MapStore2/web/client/actions/box.js"),Pz=n("./MapStore2/web/client/actions/highlight.js"),Mz=n("./MapStore2/web/client/selectors/featuregrid.js"),Iz=n("./MapStore2/web/client/selectors/queryform.js");function Nz(e){return function(e){if(Array.isArray(e))return Dz(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 Dz(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 Dz(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 Dz(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(Mz.v)(e),i=void 0!==r?r:o.size;return{startIndex:void 0!==n?n*i:o.page*i,maxFeatures:i}},Bz=function(e,t){return Lz(Lz({},e),{},{pagination:t})},qz=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(Ez.fidFilter)("ogc",t)])}))})))},Uz=function(e,t){return Bt.a.Observable.defer((function(){return Ct.a.post(e,t,{headers:{"Content-Type":"application/xml"}})})).let(kM.b)},Gz=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featuregrid;return Object(x.H)(t.selectedLayer,{filterObj:void 0})},Hz=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(Mz.C)(e.getState()),s=a.id,l=Lz({},Object(se.get)(e.getState(),'featuregrid.advancedFilters["'.concat(s,'"]')));if(l){var u=Object(Mz.e)(e.getState())||{},c=Object(se.reduce)(u,(function(e,t,n){return Object(jz.m)(Lz({attribute:n},t),e)}),{}),d="AND";c.spatialField&&(l.spatialField=void 0,d=c.spatialFieldOperator);var p=Object(DC.composeAttributeFilters)([l,c],"AND",d),f=Lz(Lz({},l),p);return Object(gM.B)(f,o.type)}var h=o;return i&&null!=o&&o.attribute&&(h=Object(Mz.e)(e.getState())[null==o?void 0:o.attribute]),Object(gM.B)(Object(jz.m)(h,Object(yM.m)(e.getState())),null===(t=h)||void 0===t?void 0:t.type)}},Vz=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=Bt.a.Observable).of.apply(r,Nz(i!==o.name?[Object(hM.gb)()]:[]).concat([Object(w.g)("drawer","enabled",!1),Object(pM.Db)(o.id),Object(pM.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(gM.q)(r,a||{featureTypeName:o,filterType:"OGC",ogcVersion:"1.1.0"})};return Object(yM.f)(t.getState(),o)?Bt.a.Observable.of(s(),Object(gM.u)(r,o)):Bt.a.Observable.of(Object(gM.u)(r,o)).merge(e.ofType(gM.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))}))},Wz=function(e){return e.ofType(gM.h).switchMap((function(e){return Bt.a.Observable.of(Object(pM.Db)(e.id))}))},Yz=function(e,t){return e.ofType(gM.j).switchMap((function(){return Bt.a.Observable.of(Object(pM.bb)(0)).concat(Object(Mz.s)(t.getState())===pM.x.VIEW?Bt.a.Observable.of(Object(pM.Sb)()):Bt.a.Observable.empty())}))},Kz=function(e,t){return e.ofType(pM.N).switchMap((function(n){var r=n.sortBy,o=n.sortOrder;return Bt.a.Observable.of(Object(gM.w)(Object(yM.n)(t.getState()),Bz(Lz(Lz({},Object(yM.m)(t.getState())),{},{sortOptions:{sortBy:r,sortOrder:o}}),zz(t.getState())),Object(Mz.w)(t.getState()))).merge(e.ofType(gM.l).map((function(e){return Object(pM.qb)(Object(se.get)(e,"result.features",[]),[Object(se.get)(e,"filterObj.pagination.startIndex")])})).takeUntil(e.ofType(gM.k)).take(1))}))},Xz=function(e,t){return e.ofType(pM.z).switchMap((function(){var n,r=null===(n=Object(Mz.v)(t.getState()))||void 0===n?void 0:n.size;return e.ofType(pM.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(pM.Y).filter((function(e){var t=e.update;return"geometry"===(void 0===t?{}:t).type})).switchMap((function(e,r){return 0===r?(n=!0,Bt.a.Observable.from([Object(pM.Eb)(1e5),Object(pM.Cb)([]),Hz(t)(e)])):Bt.a.Observable.of(Hz(t)(e))})).takeUntil(Bt.a.Observable.merge(e.ofType(pM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})),e.ofType(pM.f,mM.b))).merge(e.ofType(pM.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?Bt.a.Observable.of(Object(pM.Eb)(r),Hz(t)(e)):Bt.a.Observable.of(Hz(t)(e))})).takeUntil(e.ofType(pM.f,mM.b))).merge(e.ofType(pM.f,mM.b).take(1).switchMap((function(){var e,o=Object(pM.Tb)({attribute:null===(e=Object(IM.findGeometryProperty)(Object(yM.b)(t.getState())))||void 0===e?void 0:e.name,enabled:!1,type:"geometry"});return n?Bt.a.Observable.of(Object(pM.Eb)(r),o,Hz(t)(o)):Bt.a.Observable.of(o,Hz(t)(o))})))}))}))},Zz=function(e,t){return e.ofType(gM.j).switchMap((function(){return e.ofType(pM.Y).filter((function(e){var t=e.update;return"geometry"!==(void 0===t?{}:t).type})).map(Hz(t))}))},Qz=function(e,t){return e.ofType(pM.U).filter((function(){return Object(Mz.s)(t.getState())===pM.x.EDIT})).switchMap((function(){return(Object(se.find)(Object(Mz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{}).value?Bt.a.Observable.empty():Bt.a.Observable.of(Object(pM.Tb)({attribute:Object(IM.findGeometryProperty)(Object(yM.b)(t.getState())).name,enabled:!0,type:"geometry"}))}))},$z=function(e){return e.ofType(pM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})).switchMap((function(){return Bt.a.Observable.of(Object(pM.Gb)())}))},Jz=function(e,t){return e.ofType(pM.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(Mz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},u=Object(K.o)(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?Bt.a.Observable.empty():Bt.a.Observable.of(Object(pM.Gb)({multiselect:a||s}),Object(pM.Tb)(Lz(Lz({},l),{},{value:{attribute:l.attribute||Object(se.get)(Object(Iz.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(Bt.a.Observable.merge(e.ofType(pM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})),e.ofType(mM.b)))}))},eB=function(e,t){return e.ofType(pM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&n.enabled})).switchMap((function(){return e.ofType(Az.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.o)(t.getState()),u=Object(se.find)(Object(Mz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{};return u.deactivated?Bt.a.Observable.empty():Bt.a.Observable.of(Object(pM.Gb)({multiselect:i||a}),Object(pM.Tb)(Lz(Lz({},u),{},{value:{geometry:Lz(Lz({},s.geometry),{},{projection:l}),attribute:u.attribute||Object(se.get)(Object(Iz.k)(t.getState()),"attribute"),method:"Rectangle",operation:"INTERSECTS"}}),i||a))})).takeUntil(Bt.a.Observable.merge(e.ofType(pM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled}))))}))},tB=function(e){return e.ofType(pM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&n.enabled})).switchMap((function(){return Bt.a.Observable.of(Object(Az.d)("start"))}))},nB=function(e){return Bt.a.Observable.merge(e.ofType(pM.Y).filter((function(e){var t=e.update,n=void 0===t?{}:t;return"geometry"===n.type&&!n.enabled})),e.ofType(pM.f)).switchMap((function(){return Bt.a.Observable.of(Object(Az.d)("end"))}))},rB=function(e,t){return e.ofType(gM.l).filter((function(e){return"geometry"===e.reason})).switchMap((function(e){var n=e.result,r=Object(se.get)(n,"features"),o=Object(Mz.t)(t.getState()),i=Object(se.find)(Object(Mz.e)(t.getState()),(function(e){return"geometry"===e.type}));return Bt.a.Observable.of(Object(pM.Cb)(r.length>0&&i&&i.value?Nz(r):[],o))}))},oB=function(e){return e.ofType(pM.a).flatMap((function(e){var t=e.activated;return Bt.a.Observable.of(Object(pM.pb)(t),Object(pM.kb)(t))}))},iB=function(e,t){return e.ofType(pM.O).flatMap((function(){var e=Object(se.find)(Object(Mz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},n=Object(Mz.i)(t.getState()),r=Object(Mz.k)(t.getState());return Bt.a.Observable.of(Object(pM.Tb)(Lz(Lz({},e),{},{type:"geometry",attribute:e.attribute||Object(se.get)(Object(Iz.k)(t.getState()),"attribute"),deactivated:!(!n&&!r)||!e.deactivated})))}))},aB=function(e,t){return Bt.a.Observable.merge(e.ofType(pM.h,fM.d,pM.k,pM.q),e.ofType(pM.j).filter((function(e){return!!e.deactivated}))).flatMap((function(){var e=Object(se.find)(Object(Mz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{};return e.deactivated?Bt.a.Observable.empty():Bt.a.Observable.of(Object(pM.Tb)(Lz(Lz({},e),{},{type:"geometry",attribute:e.attribute||Object(se.get)(Object(Iz.k)(t.getState()),"attribute"),deactivated:!0})))}))},sB=function(e,t){return Bt.a.Observable.merge(e.ofType(pM.C,pM.c),e.ofType(pM.j).filter((function(e){return!e.deactivated}))).flatMap((function(){var e=Object(se.find)(Object(Mz.e)(t.getState()),(function(e){return"geometry"===e.type}))||{},n=Object(Mz.i)(t.getState()),r=Object(Mz.k)(t.getState());return!e.deactivated||n||r?Bt.a.Observable.empty():Bt.a.Observable.of(Object(pM.Tb)(Lz(Lz({},e),{},{type:"geometry",attribute:e.attribute||Object(se.get)(Object(Iz.k)(t.getState()),"attribute"),deactivated:!1})))}))},lB=function(e,t){return e.ofType(pM.b).merge(e.ofType(gM.p).debounceTime(500).map((function(e){return Lz(Lz({},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 Bt.a.Observable.of(Object(gM.w)(Object(yM.n)(i),Bz(Lz({},Object(yM.m)(i)),zz(i,{page:n,size:r})),Object(Mz.w)(i),o))}}(t)(n).merge(e.ofType(gM.l).map((function(e){var n=Object(se.get)(e,"result.features",[]),r=Object(Mz.t)(t.getState()),o=Object(se.find)(Object(Mz.e)(t.getState()),(function(e){return"geometry"===e.type}));return r&&o.enabled&&(n=Object(Mz.z)(t.getState())),Object(pM.qb)(n,[Object(se.get)(e,"filterObj.pagination.startIndex")])})).take(1).takeUntil(e.ofType(gM.k)))}))},uB=function(e,t){return e.ofType(pM.C).switchMap((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.page,o=n.size;return Bt.a.Observable.of(Object(gM.w)(Object(yM.n)(t.getState()),Bz(Lz({},Object(yM.m)(t.getState())),zz(t.getState(),{page:r,size:o})),Object(Mz.w)(t.getState())),Object(x.U)(Object(Mz.A)(t.getState()))).merge(e.ofType(gM.l).map((function(e){return Bt.a.Observable.of(Object(pM.db)(),Object(pM.qb)(Object(se.get)(e,"result.features",[]),[Object(se.get)(e,"filterObj.pagination.startIndex")]))})).mergeAll().takeUntil(e.ofType(gM.k)).take(2))}))},cB=function(e){return e.ofType(pM.C,pM.f).switchMap((function(){return Bt.a.Observable.of(Object(pM.Cb)([]))}))},dB=function(e,t){return e.ofType(pM.A).switchMap((function(){return Bt.a.Observable.of(Object(pM.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 Uz(r,qz(e,t,Tz()(n)))}(Object(Mz.a)(t.getState()),Object(Mz.u)(t.getState()),Object(yM.b)(t.getState()),Object(yM.n)(t.getState())).map((function(){return Object(pM.Bb)()})).catch((function(e){return Bt.a.Observable.of(Object(pM.Ab)(),Object(G.f)({title:"featuregrid.errorSaving",message:e.message||"Unknown Exception",uid:"saveError",autoDismiss:5}))})))}))},pB=function(e,t){return e.ofType(pM.m).switchMap((function(){return Bt.a.Observable.of(Object(pM.sb)()).concat((e=Object(Mz.z)(t.getState()),n=Object(yM.b)(t.getState()),r=Object(yM.n)(t.getState()),Uz(r,function(e,t){var n=t.transaction,r=t.deleteFeature;return n(e.map(r))}(e,Tz()(n)))).map((function(){return Object(pM.Bb)()})).catch((function(e){return Bt.a.Observable.of(Object(pM.Ab)(),Object(G.f)({title:"featuregrid.errorSaving",message:e.message||"Unknown Exception",uid:"saveError"}))})).concat(Bt.a.Observable.of(Object(pM.Rb)("deleteConfirm"),Object(pM.eb)())));var e,n,r}))},fB=function(e,t){return e.ofType(pM.P).switchMap((function(){var e=t.getState(),n=Object(yM.b)(e),r=Object(jz.f)(),o=Object(IM.findGeometryProperty)(n).localType,i={featureProjection:r,stopAfterDrawing:!1,editEnabled:!0,drawEnabled:!1},a=oe()({},Object(Mz.x)(e),{type:"Feature"}),s=Object(Mz.a)(e);return s[a.id]&&s[a.id]&&s[a.id].geometry&&(a.geometry=s[a.id].geometry),Bt.a.Observable.of(Object(fM.f)("drawOrEdit",o,"featureGrid",[a],i))}))},hB=function(e,t){return e.ofType(pM.O).switchMap((function(){var e=t.getState(),n=Object(yM.b)(e),r=Object(jz.f)(),o=Object(IM.findGeometryProperty)(n).localType,i=oe()({},Object(Mz.x)(e),{type:"Feature"}),a=Object(Mz.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(Mz.u)(e)).geometry);var s={featureProjection:r,stopAfterDrawing:!0,editEnabled:!Object(Mz.m)(e),drawEnabled:Object(Mz.m)(e)};return Bt.a.Observable.of(Object(fM.f)("drawOrEdit",o,"featureGrid",[i],s))}))},mB=function(e,t){return e.ofType(pM.z).switchMap((function(){return e.ofType(pM.U).filter((function(){return Object(Mz.s)(t.getState())===pM.x.EDIT})).take(1).switchMap((function(){return e.ofType(mM.b,pM.f).take(1).switchMap((function(){return Bt.a.Observable.of(Object(fM.h)())}))}))}))},gB=function(e,t){return e.ofType(pM.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)),Bt.a.Observable.from(e)}))},yB=function(e,t){return e.ofType(fM.d).filter((function(e){return"featureGrid"===e.owner})).switchMap((function(e){var n=t.getState(),r={featureProjection:Object(jz.f)(),stopAfterDrawing:!1,editEnabled:!0,drawEnabled:!1},o=e.features.map((function(e,t){return oe()({},e,{id:Object(Mz.z)(n)[t].id,_new:Object(Mz.z)(n)[t]._new,type:"Feature"})})),i=oe()({},Object(se.head)(e.features),{id:Object(Mz.x)(n).id,_new:Object(Mz.x)(n)._new,type:"Feature"}),a="enterEditMode"===e.enableEdit?Bt.a.Observable.of(Object(fM.f)("drawOrEdit",i.geometry.type,"featureGrid",o,r)):Bt.a.Observable.empty();return Bt.a.Observable.of(Object(pM.tb)(o)).concat(a)}))},bB=function(e,t){return e.ofType(pM.k).switchMap((function(){var e=t.getState();return Bt.a.Observable.from([Object(pM.nb)(Object(Mz.z)(e)),Object(fM.h)()])}))},vB=function(e,t){return e.ofType(pM.E,pM.n,pM.c,pM.U).filter((function(){return Object(Mz.s)(t.getState())===pM.x.EDIT&&Object(Mz.l)(t.getState())})).switchMap((function(e){return function(e,t){var n=Object(jz.f)(),r=Object(IM.findGeometryProperty)(Object(yM.b)(e)).localType,o={featureProjection:n,stopAfterDrawing:te.default.isSimpleGeomType(r),editEnabled:!0,drawEnabled:!1},i=Object(Mz.z)(e).map((function(n){var r=oe()({},n,{type:"Feature"});if(!Object(se.isEmpty)(r)){var o=Object(Mz.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(Mz.u)(e),{id:r.id});i&&i.geometry&&(r.geometry=i.geometry)}t&&(r.geometry=Object(yM.e)(e,r.id)?Object(yM.e)(e,r.id).geometry:null)}return r})).filter((function(e){return null!==e.geometry||"empty_row"!==e.id}));return i.length>0?Bt.a.Observable.from([Object(fM.f)("drawOrEdit",r,"featureGrid",i,o)]):Bt.a.Observable.from([Object(fM.f)("clean","","featureGrid",[],{})])}(t.getState(),e.type===pM.c)}))},wB=function(e){return e.ofType(pM.h).switchMap((function(){return Bt.a.Observable.of(Object(fM.h)())}))},xB=function(e,t){return e.ofType(pM.U).switchMap((function(e){return e.mode===pM.x.VIEW?Bt.a.Observable.of(Object(fM.h)(),Object(Pz.d)("featuregrid.select")):e.mode!==pM.x.EDIT||Object(Mz.l)(t.getState())?Bt.a.Observable.of(Object(Pz.d)()):Bt.a.Observable.of(Object(fM.h)(),Object(Pz.d)("featuregrid.select"),Object(G.k)({title:"featuregrid.notSupportedGeometryTitle",message:"featuregrid.notSupportedGeometry",uid:"notSupportedGeometryWarning",autoDismiss:5}))}))},_B=function(e){return e.ofType(pM.z).switchMap((function(){return e.ofType(mM.b).take(1).switchMap((function(){return Bt.a.Observable.of(Object(pM.Sb)(),Object(pM.fb)())})).takeUntil(e.ofType(pM.f))}))},OB=function(e,t){return e.ofType(mM.b).switchMap((function(){return Object(Z.g)(t.getState())?Bt.a.Observable.of(Object(w.g)("queryPanel","enabled",!1)):Bt.a.Observable.empty()}))},SB=function(e,t){return e.ofType(pM.z).switchMap((function(){return e.ofType(w.d).filter((function(e){return e.control&&"drawer"===e.control&&Object(Mz.o)(t.getState())})).switchMap((function(){return Bt.a.Observable.of(Object(pM.fb)(),Object(pM.Cb)([]))})).takeUntil(e.ofType(mM.b))}))},EB=function(e,t){return e.ofType(pM.g).switchMap((function(){var e=t.getState();return Object(Mz.i)(e)||Object(Mz.k)(e)?Bt.a.Observable.of(Object(pM.Rb)("featureCloseConfirm",!0)):Bt.a.Observable.of(Object(pM.fb)())}))},jB=function(e){return e.ofType(pM.d).switchMap((function(){return Bt.a.Observable.of(Object(pM.db)(),Object(pM.Rb)("clearConfirm",!1))}))},CB=function(e){return e.ofType(pM.r).switchMap((function(){return Bt.a.Observable.of(Object(w.g)("drawer","enabled",!1),Object(pM.Rb)("featureCloseConfirm",!1))}))},TB=function(e,t){return e.ofType(pM.z).exhaustMap((function(){return e.ofType(pM.f).delay(50).filter((function(){return Object(yM.h)(t.getState())})).switchMap((function(){return Bt.a.Observable.of(Gz(t.getState()))})).takeUntil(e.ofType(mM.b,kz.j,pM.y))}))},kB=function(e){return e.ofType(pM.z).switchMap((function(){return Bt.a.Observable.race(e.ofType(kz.j).take(1),e.ofType(pM.f).take(1)).exhaustMap((function(t){return t.type===pM.f?Bt.a.Observable.empty():e.ofType(kz.l).switchMap((function(){return Bt.a.Observable.of(Object(pM.yb)())}))})).takeUntil(e.ofType(mM.b,w.d).filter((function(e){return e.type===mM.b||e.control&&"drawer"===e.control})).merge(e.ofType(pM.f).withLatestFrom(e.ofType(kz.j,kz.l).scan((function(e,t){switch(t.type){case kz.j:return!1;case kz.l:return!0;default:return!1}}),!0).startWith(!0),(function(e,t){return t})).filter((function(e){return e}))))}))},AB=function(e,t){return e.ofType(pM.y).switchMap((function(){var n=Object(Mz.z)(t.getState());return Bt.a.Observable.of(Object(pM.Cb)([]),Object(hM.ab)(Object(se.get)(t.getState(),'featuregrid.advancedFilters["'.concat(Object(Mz.A)(t.getState()),'"]'))),Object(pM.fb)(),Object(w.g)("queryPanel","enabled",!0)).merge(Bt.a.Observable.race(e.ofType(hM.o).mergeMap((function(e){return Bt.a.Observable.of(Object(gM.q)(e.searchUrl,e.filterObj),Object(pM.Ob)(oe()({},Object(Iz.e)(t.getState()),e.filterObj)),Object(w.g)("queryPanel","enabled",!1),Object(pM.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(fM.f)("clean","","featureGrid",[],{})]:[];return Bt.a.Observable.from(e.concat(Object(pM.Cb)(n,!0),Object(pM.yb)()))}))).takeUntil(e.ofType(pM.z,mM.b)))}))},PB=function(e,t){return e.ofType(pM.Z).filter((function(){return!Object(se.get)(t.getState(),"featuregird.virtualScroll",!1)})).switchMap((function(){return Bt.a.Observable.of(Object(U.I)(Sz()(Object(yM.c)(t.getState())),"EPSG:4326"))}))},MB=function(e){return e.ofType(pM.U).filter((function(e){return e.mode===pM.x.EDIT})).map((function(){return Object(w.e)(["query"])}))},IB=function(e){return e.ofType(pM.z).switchMap((function(){return Bt.a.Observable.of(Object(kz.F)())}))},NB=function(e,t){return e.ofType(gM.o).filter((function(){return Object(yM.h)(t.getState())})).mapTo(Object(pM.Nb)())},DB=function(e,t){return e.ofType(gM.o).filter((function(){return!Object(yM.h)(t.getState())})).switchMap((function(){return Bt.a.Observable.from([Gz(t.getState()),{type:pM.R}])}))},RB=function(e,t){return e.ofType(pM.f).filter((function(){return Object(yM.h)(t.getState())})).switchMap((function(){return Bt.a.Observable.of(Object(gM.A)())}))},LB=function(e,t){return e.ofType(gM.j,gM.p).filter((function(e){var n=t.getState().featuregrid.disableQuickFilterSync;return e.type===gM.j||!n})).switchMap((function(){var n=t.getState(),r=n.query,o=(n.featuregrid||{}).selectedLayer,i=(r||{}).filterObj;return Bt.a.Observable.merge(Bt.a.Observable.of(Object(yM.h)(t.getState())).filter((function(e){return e})),e.ofType(pM.Q)).mergeMap((function(){return Bt.a.Observable.of(function(e,t){return Object(x.H)(e,{filterObj:t})}(o,i))}))}))},FB=function(e,t){var n=t.getState;return e.ofType(pM.w).filter((function(){return!Object(yM.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(jz.h)(i,a,l,c),p=d[1]-d[0]+1;return Bt.a.Observable.of(Object(gM.w)(Object(yM.n)(r),Bz(Lz({},Object(yM.m)(r)),{startIndex:d[0]*c,maxFeatures:p*c}),Object(Mz.w)(r))).filter((function(){return d.length>0})).merge(e.ofType(gM.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(jz.r)(r,{endPage:a,startPage:i},{pages:l,features:u||[]},{size:c,startIndex:p,maxStoredPages:d}),h=f.pages,m=f.features;return Object(pM.qb)(m,h)})).take(1).takeUntil(e.ofType(gM.k))).merge(e.ofType(gM.c).filter((function(){return d.length>0})).filter((function(e){return!e.isLoading})).withLatestFrom(e.ofType(pM.w)).map((function(e){return e[1]})).take(1).takeUntil(e.ofType(gM.k)))}))},zB=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(Mz.A)(r()))&&Object(se.includes)(Object.keys(i),"time")&&Object(Mz.G)(r())})).merge(e.ofType(pM.K)).filter((function(){return Object(Mz.o)(r())})).withLatestFrom(e.ofType(gM.i),(function(e,t){return t})).switchMap((function(e){return Bt.a.Observable.of(Object(gM.q)(e.searchUrl,e.filterObj))}))},BB=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 Bt.a.Observable.of(Object(kz.L)(),Object(pM.yb)())}))},qB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(kz.j).filter((function(){return n().browser&&n().browser.mobile&&Object(Z.c)(n())})).mapTo(Object(w.h)("drawer","enabled"))},UB=n("./node_modules/uuid/index.js"),GB=n.n(UB);function HB(e){return function(e){if(Array.isArray(e))return VB(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 VB(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 VB(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 VB(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 ZB(e,t)})).length>0},$B=function(e,t,n,r){return e.map((function(e){return QB(e,t)?function(e,t,n){return YB(YB({},e),{},n?{properties:YB(YB({},e.properties),t),geometry:n.geometry}:{properties:YB(YB({},e.properties),t)})}(e,n,r):e}))};var JB=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:XB,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pM.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 pM.w:case pM.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 pM.H:var n;return YB(YB({},e),{},{pagination:YB(YB({},null!==(n=e.pagination)&&void 0!==n?n:{}),{},{size:t.size})});case pM.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(HB(e.select),HB(r)),"id"):r}):r&&e.select&&e.select[0]&&r[0]&&1===e.select.length&&ZB(r[0],e.select[0])?e:oe()({},e,{select:r||[]});case pM.T:var o=e.select.filter((function(e){return!QB(e,t.features)})),i=t.features.filter((function(t){return!QB(t,e.select)})),a=o.concat(i||[]);return oe()({},e,{select:a});case pM.n:return oe()({},e,{select:e.select.filter((function(e){return!QB(e,t.features)}))});case pM.J:return oe()({},e,{multiselect:t.multiselect});case pM.X:return oe()({},e,{customEditorsOptions:t.payload});case pM.L:return oe()({},e,t.options||{});case pM.e:return oe()({},e,{select:[],changes:[]});case pM.F:return oe()({},e,{features:t.features});case pM.p:return oe()({},e,{dockSize:t.dockSize});case pM.G:return oe()({},e,{selectedLayer:t.id});case pM.W:return oe()({},e,{tools:YB(YB({},e.tools),{},KB({},t.tool,void 0===t.value?!(e.tools&&e.tools[t.tool]):t.value))});case pM.i:return oe()({},e,{attributes:YB(YB({},e.attributes),{},KB({},t.name,YB(YB({},e.attributes&&e.attributes[t.name]||{}),{},KB({},t.key,t.value||e.attributes&&e.attributes[t.name]&&!e.attributes[t.name][t.key]))))});case pM.U:return oe()({},e,{showPopoverSync:localStorage&&null!==localStorage.getItem("showPopoverSync")?"true"===localStorage.getItem("showPopoverSync"):t.mode!==pM.x.EDIT,tools:t.mode===pM.x.EDIT?{}:e.tools,mode:t.mode,multiselect:t.mode===pM.x.EDIT,drawing:!1});case pM.q:var s=t.features.filter((function(e){return e._new}))||[];return oe()({},e,{newFeatures:s.length>0?$B(e.newFeatures,s,t.updated,null):e.newFeatures,changes:[].concat(HB(e&&e.changes||[]),HB(t.features.filter((function(e){return!e._new})).map((function(e){return{id:e.id,updated:t.updated}}))))});case pM.D:return oe()({},e,{saving:!0,loading:!0});case pM.C:return oe()({},e,{deleteConfirm:!1,saved:!0,saving:!1,drawing:!1,loading:!1});case pM.c:return oe()({},e,{saved:!1,deleteConfirm:!1,drawing:!1,newFeatures:[],changes:[]});case pM.h:var l=GB.a.v1();return oe()({},e,{newFeatures:t.features.map((function(e){return YB(YB({},e),{},{_new:!0,id:l,type:"Feature",geometry:null})})),select:t.features.map((function(e){return YB(YB({},e),{},{_new:!0,id:l,type:"Feature",geometry:null})}))});case pM.B:return oe()({},e,{deleteConfirm:!1,saving:!1,loading:!1,drawing:!1});case pM.s:var u=t.features.filter((function(e){return e._new}))||[];return oe()({},e,{newFeatures:u.length>0?$B(e.newFeatures,u,null,{geometry:YB({},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 pM.l:var c=t.features.filter((function(e){return e._new}))||[];return oe()({},e,{newFeatures:c.length>0?$B(e.newFeatures,c,null,{geometry:null}):e.newFeatures,changes:[].concat(HB(e&&e.changes||[]),HB(t.features.filter((function(e){return!e._new})).map((function(e){return{id:e.id,updated:{geometry:null}}}))))});case gM.e:return oe()({},e,{localType:Object(se.get)(t,"featureType.original.featureTypes[0].properties[1].localType")});case pM.O:return oe()({},e,{drawing:!e.drawing});case pM.z:return oe()({},e,{open:!0});case pM.f:return oe()({},e,{open:!1,pagination:{page:0,size:e.pagination.size},mode:pM.x.VIEW,tools:{},saved:!1,deleteConfirm:!1,drawing:!1,newFeatures:[],changes:[]});case pM.o:return oe()({},e,{disableToolbar:t.disabled});case pM.I:return oe()({},e,{canEdit:t.permission.canEdit});case fM.a:return"clean"===t.status?oe()({},e,{drawing:!1}):e;case pM.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(HB(h),[t.update.value]);return oe()({},e,{filters:KB({},p,{attribute:p,enabled:!0,type:"geometry",operator:"OR",value:m})})}return p?oe()({},e,{filters:YB(YB({},e.filters),{},KB({},p,t.update))}):e;case gM.j:return oe()({},e,{filters:{}});case pM.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 pM.S:return oe()({},e,{advancedFilters:oe()({},e.advancedFilters,KB({},e.selectedLayer,t.filterObj))});case pM.t:return oe()({},e,{features:t.features||[],pages:t.pages||[]});case pM.u:return oe()({},e,{showPopoverSync:!1});case pM.V:return oe()({},e,{showAgain:!e.showAgain});case pM.K:return oe()({},e,{timeSync:t.value});default:return e}},eq=n("./MapStore2/web/client/components/data/featuregrid/FeatureGrid.jsx"),tq=n("./MapStore2/web/client/components/misc/ConfirmDialog.jsx"),nq=n("./MapStore2/web/client/components/data/featuregrid/EmptyRowsView.jsx"),rq=n("./MapStore2/web/client/components/data/featuregrid/filterRenderers/index.js"),oq=n("./node_modules/react-spinkit/dist/index.js"),iq=n.n(oq),aq=(n("./MapStore2/web/client/components/data/featuregrid/toolbars/toolbar.css"),n("./MapStore2/web/client/components/data/featuregrid/enhancers/withPopover.js"));function sq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lq(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 dq=Object(L.compose)(Object(L.withProps)((function(e){var t=e.renderPopover,n=e.popoverOptions,r=cq(e,["renderPopover","popoverOptions"]);return lq(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}),aq.a,Gn.a));function pq(){return(pq=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 hq={width:0,padding:0,borderWidth:0},mq={},gq=function(e){return e?mq:hq},yq=dq(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=fq(e,["disabled","id","visible","onClick","glyph","active","className"]);return c.a.createElement(v.Button,pq({ref:t},d,{bsStyle:s?"success":"primary",disabled:n,id:"fg-".concat(r),style:gq(o),className:u,onClick:function(){return!n&&i()}}),c.a.createElement(v.Glyphicon,{glyph:a}))}))),bq=function(e,t){return e?"featuregrid.toolbar.stopDrawGeom":t?"featuregrid.toolbar.drawGeom":"featuregrid.toolbar.addGeom"},vq=function(e){var t=e.saving,n=e.saved;return t||n?"featuregrid.toolbar.saving":"featuregrid.toolbar.saveChanges"},wq={onGridSort:function(e,t){return Object(pM.Kb)(e,t)},onAddFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(pM.Tb)(e)},onTemporaryChanges:function(e){return Object(pM.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(pM.rb)(s,a)},onRowsToggled:function(e,t){return Object(pM.Cb)(e.map((function(e){return t(e.rowIdx)})),!1)},onRowsSelected:function(e,t){return Object(pM.Cb)(e.map((function(e){return t(e.rowIdx)})),!0)},onRowsDeselected:function(e,t){return Object(pM.ob)(e.map((function(e){return t(e.rowIdx)})))}},xq=[{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)(Sz()(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(Ee.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"}))}}],_q={onPageChange:function(e,t){return Object(pM.bb)(e,t)},moreFeatures:pM.wb},Oq={createFeature:function(){return Object(pM.ib)([{}])},saveChanges:function(){return Object(pM.zb)()},clearFeatureEditing:function(){return Object(pM.Rb)("clearConfirm",!0)},deleteGeometry:function(){return Object(pM.mb)()},deleteFeatures:function(){return Object(pM.Rb)("deleteConfirm",!0)},download:function(){return Object(w.h)("layerdownload")},settings:function(){return Object(pM.Rb)("settings")},switchEditMode:function(){return Object(pM.Pb)()},startEditingFeature:function(){return Object(pM.Mb)()},startDrawingFeature:function(){return Object(pM.Lb)()},switchViewMode:function(){return Object(pM.Sb)()},onClose:function(){return Object(pM.gb)()},showQueryPanel:function(){return Object(pM.xb)()},zoomAll:function(){return Object(pM.Ub)()},sync:function(){return Object(gM.A)()},setTimeSync:pM.Hb,hideSyncPopover:function(){return Object(pM.ub)()},toggleShowAgain:function(){return Object(pM.Qb)()},chart:function(){return Object(le.E)()}},Sq=wq,Eq=xq,jq=_q,Cq=Oq,Tq=Object(f.connect)((function(e){return{attributes:Object(Mz.f)(e)}}),{onChange:function(e,t){return Object(pM.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 kq(){return(kq=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,E=e.isSyncActive,j=void 0!==E&&E,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,N=e.showChartButton,D=void 0===N||N,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(yq,{id:"edit-mode",keyProp:"edit-mode",tooltipId:"featuregrid.toolbar.editMode",disabled:t,visible:"VIEW"===G&&y,onClick:s.switchEditMode,glyph:"pencil"}),c.a.createElement(yq,{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(yq,{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(yq,{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(yq,{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(yq,{id:"draw-feature",keyProp:"draw-feature",tooltipId:bq(g,S),disabled:t,visible:"EDIT"===G&&1===P&&(!u||u&&!S)&&f,onClick:s.startDrawingFeature,active:g,glyph:"pencil-add"}),c.a.createElement(yq,{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(yq,{id:"save-feature",keyProp:"save-feature",tooltipId:vq({saving:A,saved:T}),disabled:A||T||t,visible:"EDIT"===G&&l||d,active:T,onClick:s.saveChanges,glyph:"floppy-disk"}),c.a.createElement(yq,{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(yq,{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(yq,{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(yq,{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(yq,{id:"grid-map-chart",keyProp:"grid-map-chart",tooltipId:"featuregrid.toolbar.createNewChart",disabled:t,visible:"VIEW"===G&&D,onClick:s.chart,glyph:"stats"}),c.a.createElement(yq,{id:"grid-map-filter",keyProp:"grid-map-filter",tooltipId:"featuregrid.toolbar.syncOnMap",disabled:t,active:j,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(yq,{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"}))})),Dq=Object(f.connect)(Object(R.a)(Mz.h,(function(e){return{title:e}})),{onClose:Cq.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(v.Button,{onClick:e.onClose,style:{float:"right"},className:"square-button no-border featuregrid-top-toolbar-margin"},c.a.createElement(v.Glyphicon,{glyph:"1-close"})))))})),Rq=Object(f.connect)(Object(R.a)(Object(R.c)(yM.j),yM.d,(function(e){return e&&e.featuregrid&&!!e.featuregrid.virtualScroll}),Mz.y,(function(e,t,n,r){return Pq(Pq({},e),{},{selected:r,loading:t,virtualScroll:n})})),jq)((function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loading:!1,onPageChange:function(){}},r=Object(jz.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(v.Button,{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(v.Button,{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(v.Button,{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(v.Button,{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(iq.a,{spinnerName:"circle",style:{float:"right"},noFadeIn:!0})):null)))})),Lq=Object(f.connect)(Object(R.a)(Mz.y,(function(e){return{count:e}})),{onClose:function(){return Object(pM.Rb)("deleteConfirm",!1)},onConfirm:function(){return Object(pM.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(tq.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}})))})),Fq=Object(f.connect)(Object(R.a)(Mz.y,(function(e){return{count:e}})),{onClose:function(){return Object(pM.Rb)("clearConfirm",!1)},onConfirm:function(){return Object(pM.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(tq.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"})))})),zq=Object(f.connect)((function(){}),{onClose:function(){return Object(pM.hb)()},onConfirm:function(){return Object(pM.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(tq.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"})))})),Bq={settings:Tq},qq={deleteConfirm:Lq,featureCloseConfirm:zq,clearConfirm:Fq},Uq={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}}},Gq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(t){return e[t]&&Bq[t]})).map((function(e){var t=Bq[e];return c.a.createElement(t,kq({key:e},Uq[e]||{}))}))},Hq=function(){return c.a.createElement(Dq,null,c.a.createElement(Nq,null))},Vq=function(e){return e.focusOnEdit&&e.hasChanges||e.newFeatures.length>0?null:c.a.createElement(Rq,null)},Wq=function(){return Iq},Yq=Object(R.a)((function(e){return e}),(function(e){return e?(Object(IM.getFeatureTypeProperties)(e)||[]).reduce((function(e,t){return Pq(Pq({},e),{},Mq({},t.name,Object(f.connect)(Object(R.a)((function(e){return Object(Mz.d)(e,t.name)}),Mz.s,(function(e,n){var r=Pq({value:e&&(e.rawValue||e.value)},Object(IM.isGeometryType)(t)?{filterEnabled:null==e?void 0:e.enabled,filterDeactivated:null==e?void 0:e.deactivated}:{}),o=Object(IM.isGeometryType)(t)?{}:{disabled:!0,tooltipMsgId:"featuregrid.filter.tooltips.editMode"};return"EDIT"===n?Pq(Pq({},r),o):r})))(Object(rq.a)(Object(IM.isGeometryType)(t)?"geometry":t.localType,{name:t.name}))))}),{}):{}})),Kq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(t){return e[t]&&qq[t]})).map((function(e){var t=qq[e];return c.a.createElement(t,{key:e})}))};function Xq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zq(e){for(var t=1;t5&&void 0!==arguments[5]?arguments[5]:Jq,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]:Jq,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(jz.p)(d),pagination:g,pages:y,size:b}})),rU=Object(L.compose)(Object(f.connect)(nU,(function(e){return{onMount:Object(wz.b)(pM.Ib,e),gridEvents:Object(wz.b)(Sq,e),pageEvents:Object(wz.b)(jq,e),initPlugin:Object(wz.b)((function(e){return Object(pM.vb)(e)}),e),toolbarEvents:Object(wz.b)(Cq,e),gridTools:Eq.map((function(t){return Zq(Zq({},t),{},{events:Object(wz.b)(t.events,e)})})),onSizeChange:function(){return e(pM.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:eU,dialogs:eU,select:Jq},t={dimMode:"none",defaultSize:.35,fluid:!0,isVisible:e.open,maxDockSize:.7,minDockSize:.1,position:"bottom",setDockSize:function(){},zIndex:1030};return c.a.createElement(tU,$q({},t,{onSizeChange:function(n){e.onSizeChange(n,t)}}),e.open&&c.a.createElement(MP.a,null,(function(t){var n=t.height;return c.a.createElement(zo.a,{className:"feature-grid-container",key:"feature-grid-container",height:n-94,header:Hq(),columns:Gq(e.tools),footer:Vq(e)},Kq(e.tools),c.a.createElement(eq.a,{editingAllowedRoles:e.editingAllowedRoles,initPlugin:e.initPlugin,customEditorsOptions:e.customEditorsOptions,autocompleteEnabled:e.autocompleteEnabled,url:e.url,typeName:e.typeName,filterRenderers:Yq(e.describe),enableColumnFilters:e.enableColumnFilters,emptyRowsView:Wq(),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}))})))})),oU=Object(_.d)("FeatureEditor",{component:rU,epics:a,reducers:{featuregrid:JB},containers:{TOC:{doNotHide:!0,name:"FeatureEditor"}}}),iU=(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)}),aU=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(Mo.DropdownList,{valueField:"id",className:"geometry-operation-selector",onChange:o,data:n,valueComponent:iU,value:i,itemComponent:iU})};function sU(e){return function(e){if(Array.isArray(e))return lU(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 lU(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 lU(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 lU(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(Pe.b)(e,r)||Object(Pe.b)(e,n&&n.url)},cU=function(e){return(e||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return"BBOX"!==t}))},dU={"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"},pU=function(e){return Object(se.get)(e,"featureTypes[0].properties").filter((function(e){return 0!==e.type.indexOf("gml:")&&dU[e.type]})).map((function(e){return{label:e.name,attribute:e.name,type:dU[e.type],valueId:"id",valueLabel:"name",values:[]}}))};function fU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hU(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?zt.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(TM.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 zt.Observable.of({errorObj:e,loadingAttributes:!1,loadingCapabilities:!1,featureTypeProperties:[]})})).startWith({loadingCapabilities:!0})})).startWith({})},yU=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 zt.Observable.defer((function(){return Object(TM.a)({layer:n})})).do((function(e){var n=Object(se.get)(Object(IM.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 pU(n)})).map((function(e){return{attributes:e,loadingAttributes:!1}})).startWith({loadingAttributes:!0}).catch((function(e){return zt.Observable.of({errorObj:e,loadingAttributes:!1,featureTypeProperties:[]})}))})).catch((function(e){return zt.Observable.of({errorObj:e,loadingAttributes:!1,loadingCapabilities:!1,featureTypeProperties:[]})})).startWith({})},bU=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 gU(e).combineLatest(yU(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 hU(hU({},t),e)})).startWith({})}}),CM.a);function vU(e){return(vU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wU(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(DC.isFilterEmpty)(this.props),i=Object(DC.isFilterEmpty)(this.props.appliedFilter),a=this.isCurrentFilterChanged(),s=r||this.props.spatialField.geometry||Object(DC.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(ur.a,{show:!!this.props.showGeneratedFilter,bsSize:"large"},c.a.createElement(ur.a.Header,null,c.a.createElement(ur.a.Title,null,this.props.resultTitle)),c.a.createElement(ur.a.Body,null,c.a.createElement("textarea",{style:{width:"862px",maxWidth:"862px",height:"236px",maxHeight:"236px"}},this.props.showGeneratedFilter)),c.a.createElement(ur.a.Footer,null,c.a.createElement(v.Button,{style:{float:"right"},onClick:function(){return e.props.actions.onQuery(null,null)}},"Close"))))}}])&&wU(t.prototype,n),r&&wU(t,r),i}(c.a.Component);jU(CU,"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}),jU(CU,"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 TU=CU,kU=n("./MapStore2/web/client/observables/autocomplete.js"),AU=n("./MapStore2/web/client/utils/TemplateUtils.js");function PU(e){return(PU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function MU(){return(MU=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((BU(t={},e.props.textField,""),BU(t,e.props.valueField,""),BU(t,"disabled",!0),BU(t,"pagination",e.renderPagination()),t));var o=!1,i=e.props.loading?[]:r,a=e.props.itemComponent,s=c.a.createElement(Mo.Combobox,{dropUp:e.props.dropUp,busy:e.props.busy,data:i,disabled:e.props.disabled,itemComponent:function(t){return c.a.createElement(a,MU({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())}}])&&NU(t.prototype,n),r&&NU(t,r),i}(c.a.Component);BU(qU,"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}),BU(qU,"contextTypes",{messages:p.a.object}),BU(qU,"defaultProps",{dropUp:!1,features:[],filter:"",itemComponent:YC.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 UU=qU;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 HU(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(AU.generateTemplateString)(t.crossLayer.cqlTemplate||"",DC.escapeCQLStrings)(n)}}:void 0}),i(!0)}}}))(WU);function KU(e){return(KU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function XU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZU(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])})),dG(uG(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})})),dG(uG(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)})),dG(uG(e),"onClosePanel",(function(){e.resetGeom(),e.props.onShowPanel(!1)})),dG(uG(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)})),dG(uG(e),"getStepCircle",(function(t,n){var r=e.getStep(t);return"radius"===n&&!e.isWGS84()&&1e4*r||r})),dG(uG(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]}})),dG(uG(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}})),dG(uG(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)}}))})),dG(uG(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)}})})),dG(uG(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(IT.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(IT.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(IT.Message,{msgId:"queryform.spatialfilter.details.details_circle_label"})))))}return t})),dG(uG(e),"isWGS84",(function(){return"EPSG:4326"===e.props.projection})),dG(uG(e),"roundValue",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e6;return Math.round(e*t)/t})),dG(uG(e),"resetGeom",(function(){"BBOX"===e.props.type?e.resetBBOX():"Circle"===e.props.type&&e.resetCircle()})),dG(uG(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)}})),dG(uG(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(aT.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(IT.Message,{msgId:"queryform.spatialfilter.details.details_header"}),locked:!0,expanded:!0,className:"details-panel",bsStyle:"primary"},this.renderDetailsContent())}}])&&iG(t.prototype,n),r&&iG(t,r),i}(c.a.Component);dG(pG,"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}),dG(pG,"defaultProps",{useMapProjection:!0,geometry:null,type:null,onShowPanel:function(){},onChangeDrawingStatus:function(){}});var fG=pG;function hG(e){return(hG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gG(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(DC.toOGCFilter)(e.props.typeName,r,e.props.wfs,e.props.sort||{sortBy:e.props.searchAttribute,sortOrder:"ASC"});return o})),_G(wG(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"!==hG(n)?n:n.status+" "+n.statusText+": "+n.data),c.a.createElement("div",{className:"zone-combo"},t,c.a.createElement(Vj,{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)}}}))}}])&&gG(t.prototype,n),r&&gG(t,r),i}(c.a.Component);_G(OG,"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}),_G(OG,"contextTypes",{messages:p.a.object}),_G(OG,"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 SG=OG;function EG(e){return(EG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jG(){return(jG=Object.assign||function(e){for(var t=1;t0?e.props.spatialField.zoneFields.map((function(t){return c.a.createElement(SG,{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})),NG(MG(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(YU,{originalValue:n,key:e.props.spatialField.method,options:t,autocompleteStreamFactory:kU.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})))))})),NG(MG(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))})),NG(MG(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})),NG(MG(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",[])})),NG(MG(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)})),NG(MG(e),"resetSpatialFilter",(function(){e.changeDrawingStatus("clean","","queryform",[]),e.props.actions.onRemoveSpatialSelection(),e.props.actions.onShowSpatialSelectionDetails(!1)})),NG(MG(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(IT.Message,{msgId:"queryform.spatialfilter.draw_start_label"}))));var r=this.getMethodFromId(this.props.spatialField.method),o=this.props.showDetailsPanel?c.a.createElement(fG,{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(IT.Message,{msgId:"queryform.spatialfilter.geometric_operation"})),c.a.createElement(v.Col,{xs:6},c.a.createElement(Vj,{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(aT.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)}}])&&TG(t.prototype,n),r&&TG(t,r),i}(c.a.Component);NG(DG,"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}),NG(DG,"contextTypes",{messages:p.a.object}),NG(DG,"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 RG=DG;function LG(e){return(LG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function FG(){return(FG=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,E=void 0===S?function(){}:S,j=e.setQueryCollectionParameter,C=void 0===j?function(){}:j,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,N=h.typeName,D=h.geometryName,R=h.filterFields,L=h.groupFields,F=void 0===L?[{id:1,logic:"OR",index:0}]:L;return c.a.createElement(aT.a,{loading:d,expanded:n&&!d&&!l,error:l,errorMsgId:"queryPanel",buttons:sU(N?[{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 uU(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:N,onChange:function(e){C("typeName",e&&e.value)}}))),N&&D?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(aU,{value:y,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id;return E(t)},spatialOperations:cU(r)}))):null,N&&D&&y?c.a.createElement(v.Row,{className:"filter-field-fixed-row"},c.a.createElement(v.Col,{xs:12},c.a.createElement(WT,{autocompleteEnabled:!1,withContainer:!1,attributes:g,groupLevels:-1,filterFields:R,actions:{onUpdateLogicCombo:x,onAddFilterField:k,onUpdateFilterField:P,onRemoveFilterField:I},groupFields:F,filterField:!0}))):null)})),YG=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&&qG(e,t)}(i,e);var t,n,r,o=UG(i);function i(){return zG(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(TU,{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(zo.a,{header:e,className:"mapstore-query-builder",id:"query-form-panel"},c.a.createElement(WT,{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(RG,{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(WG,FG({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(iq.a,{spinnerName:"three-bounce",overrideSpinnerClassName:"spinner"}))}}])&&BG(t.prototype,n),r&&BG(t,r),i}(c.a.Component);VG(YG,"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}),VG(YG,"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 KG=YG,XG=n("./MapStore2/web/client/components/misc/enhancers/popover.js");function ZG(){return(ZG=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(v.Button,{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(QG,{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"})))},JG=n("./MapStore2/web/client/utils/ogc/WPS/autocomplete.js"),eH={isAutoCompleteEnabled:function(e,t){return e.ofType(gM.f).switchMap((function(e){var n=Object(Ot.getParsedUrl)(e.url,{version:"1.0.0",REQUEST:"DescribeProcess",IDENTIFIER:"gs:PagedUnique"},Object(ce.b)(t.getState()));return null===n?Bt.a.Observable.of(Object(hM.mb)(!1)):Bt.a.Observable.fromPromise(Ct.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)?nH({},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(DC.setupCrossLayerFilterDefaults)(t.crossLayerFilter)||null),Bt.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(mM.b)))}}(e)).concat(Bt.a.Observable.from([Object(gM.z)(),Object(hM.gb)(),Object(fM.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 Bt.a.Observable.of(Object(fM.f)("clean","","queryform",[]),Object(hM.ab)(r),Object(hM.ib)(t,r,e),Object(gM.v)())}))},onApplyFilter:function(e,t){var n=t.getState;return e.ofType("LAYER_FILTER:APPLY_FILTER").map((function(){var e=nH({},Object(se.get)(n(),"queryform",{}));return{type:"LAYER_FILTER:APPLIED_FILTER",filter:e}}))}},iH={updateSpatialFilterValue:function(e){return e.ofType(hM.h).switchMap((function(e){var t=e.feature,n=e.srsName,r=e.style,o=e.options;return zt.Observable.of(Object(fM.f)("drawOrEdit",t.geometry.type,"queryform",[t],{editEnabled:!1,stopAfterDrawing:!0,featureProjection:n},r)).concat(t&&o&&o.autoZoom?[Object(U.I)(Sz()(t),n)]:[])}))}},aH=n("./node_modules/url/url.js"),sH=n("./MapStore2/web/client/selectors/dimension.js");function lH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uH(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return"cql_filter"===e.toLowerCase()})),p=Object(DC.mergeFiltersToOGC)({ogcVersion:"1.1.0"},d,u,n.filterObj),f=function(e,t,n){var r=Object(Mz.A)(n),o=Object(sH.d)({id:r},"time")(n),i=Object(H.g)(n,r)||{},a=Object(se.get)(i,'params["time"]');if(Object(Mz.G)(n)&&o&&a){var s=Object(aH.parse)(e)||{};return{url:Object(aH.format)(uH(uH({},s),{},{query:uH(uH({},s.query),{},{time:a})})),options:t}}return{url:e,options:t}}(s,n.queryOptions||{},t.getState()),h=f.url,m=f.options,g=pH(pH({},n.filterObj.pagination),{},{totalFeatures:a,sortOptions:i},m);return Bt.a.Observable.merge(Object(TM.b)(pH(pH({},l),{},{search:pH(pH({},l.search),{},{url:h})}),p,g).map((function(e){return Object(gM.y)(e,n.searchUrl,n.filterObj,n.queryOptions,n.reason)})).catch((function(e){return Bt.a.Observable.of(Object(gM.x)(e))})).startWith(Object(gM.r)(!0)).concat(Bt.a.Observable.of(Object(gM.r)(!1)))).takeUntil(e.ofType(gM.p))}))},bH=function(e,t){return e.ofType(hM.y,U.e).switchMap((function(e){var n=e.type===U.e?e:Object(K.l)(t.getState());if((e.type===hM.y||e.type===U.e&&"Viewport"===Object(Iz.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,fH({},t,parseFloat(n.bbox.bounds[t])))}),{});return Bt.a.Observable.of(Object(hM.ub)(Wo.default.getViewportGeometry(r,n.bbox.crs)))}return Bt.a.Observable.empty()}))},vH=function(e,t){return e.ofType(gM.g).switchMap((function(){var e=t.getState(),n=Object(Iz.k)(e),r={type:"Feature",geometry:{type:Object(Iz.i)(e),coordinates:Object(Iz.f)(e)}},o=Object(Iz.h)(e)?Object(fM.f)("drawOrEdit",n.method||"","queryform",[r],{featureProjection:Object(Iz.g)(e),drawEnabled:!1,editEnabled:!1}):Object(fM.f)("clean",n.method||"","queryform",[],{drawEnabled:!1,editEnabled:!1});return Bt.a.Observable.of(o)}))};function wH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xH(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:OH,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LAYER_FILTER:INIT_LAYER_FILTER":return xH(xH({},OH),{},{persisted:t.filter,applied:t.filter});case"LAYER_FILTER:DISCARD_CURRENT_FILTER":return xH(xH({},e),{},{applied:e.persisted});case"LAYER_FILTER:APPLIED_FILTER":return xH(xH({},e),{},{applied:t.filter});case"LAYER_FILTER:STORE_CURRENT_APPLIED_FILTER":return xH(xH({},e),{},{persisted:e.applied});case hM.n:return xH(xH({},e),{},{applied:void 0});default:return e}},EH=n("./MapStore2/web/client/reducers/query.js"),jH=n("./MapStore2/web/client/reducers/queryform.js");function CH(e){return(CH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function TH(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 iV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aV(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 yV=Object(Gn.a)(v.Button),bV=function(e){var t=e.record,n=e.service,r=e.children,o=e.addLayer,i=void 0===o?function(){}:o,a=gV(e,["record","service","children","addLayer"]),s=hV(Object(u.useState)(!1),2),l=s[0],d=s[1];return c.a.createElement(yV,fV({disabled:l},a,{onClick:function(){var e;d(!0),(e=t.tileMapUrl,Ct.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(qM.i)(t,e,n))}))}}),l?c.a.createElement($N.a,null):r)};function vV(){return(vV=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 xV=Object(Gn.a)(v.Button),_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"]);return c.a.createElement(xV,vV({},a,{onClick:function(){i(Object(qM.h)(t,n))}}),r)},OV=n("./MapStore2/web/client/components/catalog/img/default.jpg"),SV=n.n(OV),EV=n("./MapStore2/web/client/plugins/background/DefaultThumbs.js");function jV(e){return(jV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function CV(e){return function(e){if(Array.isArray(e))return TV(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 TV(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 TV(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 TV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&p.push(c.a.createElement(pV,{key:"sharing-links",popoverContainer:RV(e),links:h,onCopy:e.props.onCopy,buttonSize:e.props.buttonSize,addAuthentication:e.props.addAuthentication}))}return p})),FV(RV(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(AU.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})),FV(RV(e),"isLinkCopied",(function(t){return e.state[t]})),FV(RV(e),"setLinkCopiedStatus",(function(t,n){e.setState(FV({},t,n))})),FV(RV(e),"getLayerFormat",(function(t){return 0===t.length||t.filter((function(t){return t===e.props.defaultFormat})).length>0?e.props.defaultFormat:t[0]})),FV(RV(e),"makeLayer",(function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[e.props.defaultFormat],o=Object(qM.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(qM.g)(e.props.record,t,AV({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)})),FV(RV(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(AV(AV({},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})}})),FV(RV(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(AU.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(qM.d)(t),r=n.wms,o=n.wmts,i=n.tms,a=n.wfs,s=Object(qM.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(qA.a,{style:{transform:"none",opacity:d?.4:1},fullText:this.state.fullText,preview:!this.props.hideThumbnail&&this.renderThumb(t&&t.thumbnail||u&&EV.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(CV((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}}])&&MV(t.prototype,n),r&&MV(t,r),i}(c.a.Component);FV(BV,"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}),FV(BV,"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"}),FV(BV,"contextTypes",{messages:p.a.object});var qV=BV;function UV(e){return(UV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function GV(){return(GV=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]}})})),dW(uW(e),"reset",(function(){e.props.onReset()})),dW(uW(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(zo.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())}}])&&iW(t.prototype,n),r&&iW(t,r),i}(c.a.Component);dW(pW,"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}),dW(pW,"contextTypes",{messages:p.a.object}),dW(pW,"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 fW=pW,hW=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(oE.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(y_.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 mW(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);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 _W=function(e){return e.map((function(e){return{label:"".concat(e,"x").concat(e),value:e}}))},OW=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,xW(e,["service","formatOptions","onChangeServiceFormat","onChangeServiceProperty","tileSizeOptions","currentWMSCatalogLayerSize","selectedService"])),d=_W(l);return c.a.createElement(hW,wW({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:_W([(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 SW(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 EW=function(e){var t=e.onToggleAdvancedSettings,n=void 0===t?function(){}:t,r=SW(e,["onToggleAdvancedSettings"]),o=r.service,i=void 0===o?{}:o,a=function(e){switch(e){case"tms":return vW;case"wmts":case"wfs":return hW;case"wms":case"csw":return OW;default:return hW}}(i.type);return c.a.createElement(aT.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 jW(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 CW(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 CW(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 CW(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===IW?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===MW,w=g===IW,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(PW,{onChange:function(e){var t=e.target.value;a("provider","".concat(t)),t!==MW&&t!==IW?f(t):y||w||f("")},value:g,componentClass:"select"},[MW,IW].concat(kW(m)).map((function(e){return{name:e,label:DW(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(oE.a,{text:c.a.createElement(FS.a,{msgId:"catalog.tms.urlTemplateHint"})})),c.a.createElement(PW,{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(PW,{type:"text",style:{textOverflow:"ellipsis"},placeholder:TW(l),value:l&&l.url,onChange:function(e){return d(e.target.value)}})):null))},LW=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?RW:NW;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(PW,{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(PW,{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 FW(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 zW(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 zW(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 zW(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))})))}}])&&HW(t.prototype,n),r&&HW(t,r),i}(c.a.Component);QW(eY,"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}),QW(eY,"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 tY=Object(f.connect)($W,{clearModal:UH.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:UH.o,onFocusServicesList:ue.T,onPropertiesChange:x.H,onAddBackground:UH.q,onToggle:w.h.bind(null,"backgroundSelector",null),onLayerChange:w.g.bind(null,"backgroundSelector"),onStartChange:w.g.bind(null,"backgroundSelector","start")})(eY),nY={MetadataExplorerPlugin:oe()(tY,{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(_n)},rY=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx");function oY(e){return(oY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function iY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aY(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)([QS.r,QS.n,QS.j,QS.f,$.d,QS.b,QS.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?yY(yY({},n.styleService),{},{isStatic:!0}):yY({},e.styleService);return yY(yY(yY(yY({},n),e),t),{},{styleService:s})})),Object(sO.a)((function(e){return e.error}),{glyph:"exclamation-mark",title:c.a.createElement(FS.a,{msgId:"styleeditor.missingAvailableStyles"}),description:c.a.createElement(FS.a,{msgId:"styleeditor.missingAvailableStylesMessage"}),style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},mainViewStyle:{margin:"auto",width:300}}),Object(aO.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(ES.a,e))})),Object(L.compose)(Object(f.connect)((function(){return{}}),{toggleStyleEditor:Yi.D}),Object(L.lifecycle)({componentDidMount:function(){this.props.toggleStyleEditor(null,!0)}})))(EY),CY={StyleEditorPlugin:oe()(jY,{TOC:{priority:1,container:"TOCItemSettings"},TOCItemsSettings:{name:"StyleEditor",target:"style",priority:1,ToolbarComponent:FA}}),reducers:{styleeditor:n("./MapStore2/web/client/reducers/styleeditor.js").default},epics:n("./MapStore2/web/client/epics/styleeditor.js").default},TY=n("./MapStore2/web/client/plugins/Timeline.jsx"),kY=n("./MapStore2/web/client/plugins/Playback.jsx");var AY=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx"),PY=n("./MapStore2/web/client/components/mapcontrols/mouseposition/MousePosition.jsx");var MY=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 IY(e){return(IY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function NY(){return(NY=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 RY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LY(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(rK,nK({disabled:o},oK,iK),n.length?n.map((function(e){return e})):null)},sK=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 lK(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 uK(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 uK(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 uK(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&&(D&&clearTimeout(D),R(setTimeout((function(){P()}),O)))},onFocus:function(){b&&g&&E()},onChange:function(e){var t=e.target.value;C(t),b&&(F&&clearTimeout(F),z(setTimeout((function(){U(!0)}),x)))}})};cK.contextTypes={messages:p.a.object};var dK=cK;function pK(){return(pK=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:TK.a}},removeIcon:function(e,t,n,r){return{visible:"coordinatesSearch"===e&&(Object(se.isNumber)(t.lon)||Object(se.isNumber)(t.lat)),onClick:function(){return kK.clearCoordinates(n,r)}}},searchIcon:function(e,t,n,r){return{visible:"coordinatesSearch"===e,onClick:function(){"coordinatesSearch"===e&&kK.areValidCoordinates(t)&&kK.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"}))}},AK=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=kK.zoomToPoint,h=kK.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(CK.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(CK.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()}})))))};AK.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 PK=Object(f.connect)((function(e){return{coordinate:e.search.coordinate||{}}}),{onZoomToPoint:eK.L,onChangeCoord:eK.w})(AK);function MK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IK(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 FK(e){return(FK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BK(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 eK.i:return oe()({},e,{loading:t.loading});case eK.g:return oe()({},e,{error:t.error});case eK.q:return oe()({},e,{searchText:t.searchText,error:null});case eK.l:var n=t.results;return!0===t.append&&e&&e.results&&(n=[].concat(wX(e.results),wX(t.results))),oe()({},e,{results:n,error:null});case eK.m:return oe()({},e,{results:null,error:null});case eK.e:return oe()({},e,{markerPosition:t.markerPosition,markerLabel:t.markerLabel});case eK.n:return oe()({},e,{highlightedFeature:t.highlightedFeature});case eK.k:return{style:e.style||{}};case w.a:return null;case eK.j:return oe()({},e,{selectedServices:t.services,searchText:t.searchText,selectedItems:(e.selectedItems||[]).concat(t.items)});case eK.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 eK.r:return oe()({},e,{style:t.style});case eK.c:return bX(bX({},e),{},{activeSearchTool:t.activeSearchTool});case eK.b:return bX(bX({},e),{},{format:t.format});case eK.a:return bX(bX({},e),{},{coordinate:bX(bX({},e.coordinate),{},vX({},t.coord,t.val))});default:return e}};function OX(e){return(OX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EX(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:j,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(kK.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=DK(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=IK(IK({},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 Ee;return c.a.createElement(sK,null,c.a.createElement(v.FormGroup,null,c.a.createElement("div",{className:"input-group",style:{display:"flex"}},j&&j.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(dK,{show:"addressSearch"===r,delay:w,typeAhead:_,blurResetDelay:x,placeholder:R,placeholderMsgId:F,searchText:f,selectedItems:j,onSearch:ge,onSearchTextChange:X,onCancelSelectedItem:Z,onPurgeResults:pe}),"coordinatesSearch"===r&&H&&c.a.createElement(PK,{format:D,defaultZoomLevel:T,onClearCoordinatesSearch:ne}),"bookmarkSearch"===r&&W&&c.a.createElement(jK,{mapInitial:me.mapInitial}),c.a.createElement(gK,{splitTools:!1,toolbarButtons:[IK({},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 kK.coordinateFormatChange(D,oe,B,r);if("bookmarkSearch"===r)return t}return{}}()),IK({glyph:i,className:"square-button-md no-border",bsStyle:"default",pullRight:!0,loading:!Object(se.isUndefined)(y)&&y,visible:"addressSearch"===r&&(""!==f||j&&j.length>0),onClick:function(){"addressSearch"===r&&ye()}},"coordinatesSearch"===r&&kK.removeIcon(r,S,ne,$)),IK(IK({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||j&&j.length>0)&&d),onClick:function(){return u&&ge()}},"coordinatesSearch"===r&&kK.searchIcon(r,S,ue,T)),"bookmarkSearch"===r&&SK.searchIcon(r,me)),{tooltip:(Ee=I,Ee?c.a.createElement(b.default,{msgId:Ee.msgId||"search.generic_error",msgParams:{message:Ee.message,serviceType:Ee.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(aK,{disabled:B,menuItems:be})}]}))))})),XX=Object(R.a)([K.l,H.p,function(e){return e.search||null}],(function(e,t,n){return{mapConfig:e,layers:t,results:n?n.results:null}})),ZX=Object(f.connect)(XX,{onItemClick:eK.G,addMarker:eK.t,showGFI:eK.I})(iX),QX=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:eK.K})((IX=MX=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&&qX(e,t)}(i,e);var t,n,r,o=UX(i);function i(){var e;zX(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})),WX(HX(e),"getCurrentServices",(function(){var t=e.props.selectedServices,n=e.getSearchOptions();return t&&t.length>0?oe()({},n,{services:t}):n})),WX(HX(e),"getSearchAndToggleButton",(function(){var t=c.a.createElement(KX,FX({key:"searchBar"},e.props,{searchOptions:e.getCurrentServices(),placeholder:e.getServiceOverrides("placeholder"),placeholderMsgId:e.getServiceOverrides("placeholderMsgId")}));return!0===e.props.withToggle?[c.a.createElement(NX,null)].concat(e.props.enabled?[t]:null):Object(se.isArray)(e.props.withToggle)?c.a.createElement("span",null,c.a.createElement(JY.a,{query:"("+e.props.withToggle[0]+")"},c.a.createElement(NX,null),e.props.enabled?t:null),c.a.createElement(JY.a,{query:"("+e.props.withToggle[1]+")"},t)):t})),e}return t=i,(n=[{key:"componentDidMount",value:function(){this.props.onUpdateResultsStyle(LX(LX({},XK.a),this.props.resultsStyle))}},{key:"render",value:function(){return c.a.createElement("span",null,this.getSearchAndToggleButton(),c.a.createElement(ZX,{fitToMapSize:this.props.fitResultsToMapSize,searchOptions:this.props.searchOptions,onUpdateResultsStyle:this.props.onUpdateResultsStyle,key:"nominatimresults"}))}}])&&BX(t.prototype,n),r&&BX(t,r),i}(c.a.Component),WX(MX,"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}),WX(MX,"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}),IX)),$X={SearchPlugin:oe()(QX,{OmniBar:{name:"search",position:1,tool:!0,priority:1}}),epics:{searchEpic:function(e){return e.ofType(eK.p).debounceTime(250).switchMap((function(t){return zt.Observable.from((t.services||[{type:"nominatim",priority:5}]).map((function(e){var n=cX.a.Utils.getService(e.type);if(!n){var r=new Error("Service Missing");return r.msgId="search.service_missing",r.serviceType=e.type,zt.Observable.of(r).do((function(e){throw e}))}return zt.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 hX(hX({},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(dX(e),dX(t)),["__PRIORITY__"])})).map((function(e){return Object(eK.C)(e.slice(0,t.maxResults||15),!1)})).startWith(Object(eK.E)(!0)).takeUntil(e.ofType(eK.m,eK.k,eK.h)).concat([Object(eK.E)(!1)]).catch((function(e){var t=hX(hX({msgId:"search.generic_error"},e),{},{message:e.message,stack:e.stack});return zt.Observable.from([Object(eK.B)(t),Object(eK.E)(!1)])}))}))},searchOnStartEpic:function(e,t){return e.ofType(eK.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 zt.Observable.of(Object(eK.y)());var i=Object(H.h)(o,n);return i&&r?zt.Observable.defer((function(){return Object(sn.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&&hX(hX({},e.features[0]),{},{typeName:n})}))})).switchMap((function(e){var t=e.type,n=e.geometry,o=e.typeName,i=uX()({type:t,geometry:n}).geometry.coordinates,a={lng:i[0],lat:i[1]};return i?zt.Observable.of(Object(kz.J)({latlng:a},o,[o],mX({},o,{cql_filter:r})),Object(kz.T)()):zt.Observable.empty()})).catch((function(){return zt.Observable.of(Object(eK.H)())})):zt.Observable.empty()}))},searchItemSelected:function(e,t){return e.ofType(eK.h).switchMap((function(e){var n=zt.Observable.of(e.item).concatMap((function(t){if(t&&t.__SERVICE__&&t.__SERVICE__.geomService){var n=Object(AU.generateTemplateString)(t.__SERVICE__.geomService.options.staticFilter||"")(t);return zt.Observable.fromPromise(cX.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 zt.Observable.of(e.item)})).concatMap((function(e){var n=e.bbox||e.properties.bbox||sX()(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(eK.t)(e)];if(e.__SERVICE__&&!Object(se.isNil)(e.__SERVICE__.launchInfoPanel)&&e.__SERVICE__.options&&e.__SERVICE__.options.typeName){var o=uX()(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=mX({},e.__SERVICE__.options.typeName,{info_format:"application/json"})),[].concat(dX(d&&s?[Object(x.H)(s.id,{visibility:!0})]:[]),dX(e.__SERVICE__.openFeatureInfoButtonEnabled?[]:[Object(kz.J)({latlng:i},a,u,c,l)]),[Object(kz.T)()],r)}}return r})),r=e.item,o=r&&r.__SERVICE__&&r.__SERVICE__.then,i=o?zt.Observable.of(Object(eK.F)(o.map((function(e){return hX(hX({},e),{},{options:hX({item:r},e.options)})})),{text:Object(AU.generateTemplateString)(r.__SERVICE__.displayName||"")(r),placeholder:r.__SERVICE__.nestedPlaceholder&&Object(AU.generateTemplateString)(r.__SERVICE__.nestedPlaceholder||"")(r),placeholderMsgId:r.__SERVICE__.nestedPlaceholderMsgId&&Object(AU.generateTemplateString)(r.__SERVICE__.nestedPlaceholderMsgId||"")(r)},Object(AU.generateTemplateString)(r.__SERVICE__.searchTextTemplate||"")(r))):zt.Observable.empty(),a=r.__SERVICE__&&r.__SERVICE__.searchTextTemplate,s=a?zt.Observable.of(Object(eK.D)(Object(AU.generateTemplateString)(a)(r))):zt.Observable.empty();return zt.Observable.of(Object(eK.A)()).concat(n,i,s)}))},zoomAndAddPointEpic:function(e,t){return e.ofType(eK.s).switchMap((function(e){var n={type:"Feature",geometry:{type:"Point",coordinates:[e.pos.x,e.pos.y]}},r=t.getState();return zt.Observable.from([Object(OS.g)("search","search","overlay",{features:[n],type:"vector",name:"searchPoints",id:"searchPoints",visibility:!0,style:r.search&&r.search.style||XK.a}),Object(U.J)(e.pos,e.zoom,e.crs)])}))},textSearchShowGFIEpic:function(e,t){return e.ofType(eK.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||sX()(l),f=uX()(l).geometry.coordinates,h={lng:f[0],lat:f[1]};return f&&Object(XK.c)(null==l?void 0:l.__SERVICE__)&&Object(XK.b)(d,null==l?void 0:l.__SERVICE__)?(o=zt.Observable).of.apply(o,dX(null!=l&&null!==(i=l.__SERVICE__)&&void 0!==i&&i.forceSearchLayerVisibility&&d?[Object(x.H)(d.id,{visibility:!0})]:[]).concat([Object(kz.J)({latlng:h},c,[c],mX({},c,{info_format:"application/json"}),l.id),Object(kz.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(eK.t)(l)])):zt.Observable.empty()}))}},reducers:{search:_X,mapInfo:gX.a}};function JX(e){return(JX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eZ(){return(eZ=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 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 DZ(){return(DZ=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.displayName&&e.displayName.length>0}};function KZ(e){return(KZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function XZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZZ(e){for(var t=1;t1?e.props.onPropertyChange("page",t-1):1===t&&e.props.restServiceConfig(0)})),yQ(mQ(e),"next",(function(){var t=e.props,n=t.page;n1&&void 0!==arguments[1]?arguments[1]:"active";return{type:wQ,active:e,prop:t}}function OQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SQ(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:xQ,mode:e}}})(KQ)},Map:{name:"Swipe",Tool:ZQ}},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 wQ:return oe()({},e,EQ({},t.prop,t.active));case xQ:return oe()({},e,{mode:t.mode});case"SWIPE:SET_SWIPE_TOOL_DIRECTION":var n=SQ(SQ({},e.swipe),{},{direction:t.direction});return oe()({},e,{swipe:n});case"SWIPE:SET_SPY_TOOL_RADIUS":var r=SQ(SQ({},e.spy),{},{radius:t.radius});return oe()({},e,{spy:r});default:return e}}},epics:jQ}),$Q=n("./MapStore2/web/client/actions/locate.js"),JQ=n("./MapStore2/web/client/components/misc/spinners/InlineSpinner/img/spinner.gif"),e$=n.n(JQ);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 n$(){return(n$=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 $Q.a:return oe()({},e,{state:t.state});case $Q.b:return oe()({},e,{error:t.error});default:return e}},g$=(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:$Q.c})(h$)),y$=Object(_.d)("Locate",{component:g$,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(xr.a,{msgId:"helptexts.locateBtn"}),priority:1}},reducers:{locate:m$}}),b$=n("./js/plugins/Save.jsx"),v$=n("./js/plugins/SaveAs.jsx"),w$=n("./js/plugins/Share.jsx"),x$=n("./MapStore2/web/client/reducers/security.js"),_$=n("./MapStore2/web/client/reducers/maps.js"),O$=n("./MapStore2/web/client/reducers/maplayout.js"),S$=n("./node_modules/react-swipeable-views/lib/index.js"),E$=n.n(S$),j$=n("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx"),C$={plugins:{AddGroupPlugin:N,IdentifyPlugin:D.a,TOCPlugin:Bn,MapPlugin:qn.a,ToolbarPlugin:Un.a,DrawerMenuPlugin:Fr,ZoomAllPlugin:zr.a,MapLoadingPlugin:Br.a,OmniBarPlugin:qr.default,BackgroundSelectorPlugin:Ur.a,FullScreenPlugin:Gr.a,ZoomInPlugin:Hr.a,ZoomOutPlugin:Vr.a,ExpanderPlugin:Wr.a,BurgerMenuPlugin:Yr.default,UndoPlugin:Eo,RedoPlugin:Eo,ScaleBoxPlugin:jo.a,MapFooterPlugin:Co.a,PrintPlugin:To.a,MeasurePlugin:Vi,FilterLayerPlugin:Wi,TOCItemsSettingsPlugin:SP,WidgetsPlugin:dM,WidgetsBuilderPlugin:MF,WidgetsTrayPlugin:bz,NotificationsPlugin:vz.default,FeatureEditorPlugin:oU,QueryPanelPlugin:qH,SavePlugin:b$.default,SaveAsPlugin:v$.default,MetadataExplorerPlugin:nY,GridContainerPlugin:hY,StyleEditorPlugin:CY,TimelinePlugin:TY.a,PlaybackPlugin:kY.a,MousePositionPlugin:QY,SearchPlugin:$X,SearchServicesConfigPlugin:vQ,SwipePlugin:QQ,LocatePlugin:y$,SharePlugin:w$.default,AddReducersAndEpics:{reducers:{security:x$.default,maps:_$.a,maplayout:O$.a},epics:s.b}},requires:{ReactSwipe:E$.a,SwipeHeader:j$.a}},T$=l.a?Object(l.a)(C$):C$;t.default=T$},"./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(b,{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)))}}])&&O(t.prototype,n),r&&O(t,r),a}(o.a.Component);k(A,"propTypes",{shareUrl:a.a.string,showTOCToggle:a.a.bool}),k(A,"defaultProps",{showTOCToggle:!0,shareUrl:""});var P=A;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 I(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]}},"./node_modules/@babel/runtime/helpers/assertThisInitialized.js":function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},"./node_modules/@babel/runtime/helpers/defineProperty.js":function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},"./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||(o[n]=e[n]);return o}},"./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/@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:o]*>/,""),(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 N(){}function D(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,E=e.systemId;if(t.push("');else if(E&&"."!=E)t.push(' SYSTEM "',E,'">');else{var j=e.internalSubset;j&&t.push(" [",j,"]"),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),N.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 j)._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 j;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(N,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}))}},N.prototype.getElementsByTagName=z.prototype.getElementsByTagName,N.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 E(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,E=S.createTextNode(e.substr(_));S.appendChild(E),r.currentElement=E}return}switch(O>_&&d(O),e.charAt(O+1)){case"/":var j=e.indexOf(">",O+3),C=e.substring(O+2,j),T=w.pop();j<0?(C=e.substring(O+2).replace(/[\s<].*/,""),o.error("end tag name: "+C+" is not complete:"+T.tagName),j=O+1+C.length):C.match(/\s_?_=j: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 * @@ -55,19 +55,19 @@ _.brewer=w={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","# Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var o=0;os.clientHeight+1,_=a.getScrollInfo();if(w>0){var O=v.bottom-v.top;if(f.top-(f.bottom-v.top)-O>0)s.style.top=(m=f.top-O)+"px",g=!1;else if(O>b){s.style.height=b-5+"px",s.style.top=(m=f.bottom-v.top)+"px";var S=a.getCursor();n.from.ch!=S.ch&&(f=a.cursorCoords(S),s.style.left=(h=f.left)+"px",v=s.getBoundingClientRect())}}var E,j=v.right-y;if(j>0&&(v.right-v.left>y&&(s.style.width=y-5+"px",j-=v.right-v.left-y),s.style.left=(h=f.left-j)+"px"),x)for(var C=s.firstChild;C;C=C.nextSibling)C.style.paddingRight=a.display.nativeBarWidth+"px";return a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},r=e.options.customKeys,o=r?{}:n;function i(e,r){var i;i="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,o[e]=i}if(r)for(var a in r)r.hasOwnProperty(a)&&i(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&i(a,s[a]);return o}(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:l.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){E=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(E)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),r=m+_.top-e.top,o=r-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(g||(o+=s.offsetHeight),o<=n.top||o>=n.bottom)return t.close();s.style.top=r+"px",s.style.left=h+_.left-e.left+"px"}),e.on(s,"dblclick",(function(e){var t=i(s,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(s,"click",(function(e){var n=i(s,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(s,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),e.signal(n,"select",l[0],s.firstChild),!0}function s(e,t,n,r){if(e.async)e(t,r,n);else{var o=e(t,n);o&&o.then?o.then(r):r(o)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n];r.hint?r.hint(this.cm,t,r):this.cm.replaceRange(o(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch0&&r.to.ch-r.from.ch!=o.to.ch-o.from.ch)||(this.data=t,t&&t.list.length&&(i&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown"))))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r.className=r.className.replace(" CodeMirror-hint-active",""),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",r.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,o=t.getHelpers(n,"hint");if(o.length){var i=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):o(i+1)}))}(0)};return i.async=!0,i.supportsSelection=!0,i}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r=t.getCursor(),o=t.getTokenAt(r),i=e.Pos(r.line,o.end);if(o.string&&/\w/.test(o.string[o.string.length-1]))var a=o.string,s=e.Pos(r.line,o.start);else a="",s=i;for(var l=[],u=0;u,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n("./node_modules/codemirror/lib/codemirror.js"))},"./node_modules/codemirror/addon/lint/json-lint.js":function(e,t,n){!function(e){"use strict";e.registerHelper("lint","json",(function(t){var n=[];jsonlint.parseError=function(t,r){var o=r.loc;n.push({from:e.Pos(o.first_line-1,o.first_column),to:e.Pos(o.last_line-1,o.last_column),message:t})};try{jsonlint.parse(t)}catch(e){}return n}))}(n("./node_modules/codemirror/lib/codemirror.js"))},"./node_modules/codemirror/addon/lint/lint.js":function(e,t,n){!function(e){"use strict";var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,o){var i=function(t,n){var r=document.createElement("div");function o(t){if(!r.parentNode)return e.off(document,"mousemove",o);r.style.top=Math.max(0,t.clientY-r.offsetHeight-5)+"px",r.style.left=t.clientX+5+"px"}return r.className="CodeMirror-lint-tooltip",r.appendChild(n.cloneNode(!0)),document.body.appendChild(r),e.on(document,"mousemove",o),o(t),null!=r.style.opacity&&(r.style.opacity=1),r}(t,r);function a(){var t;e.off(o,"mouseout",a),i&&((t=i).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),i=null)}var s=setInterval((function(){if(i)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){a();break}}if(!i)return clearInterval(s)}),400);e.on(o,"mouseout",a)}function o(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var o=n.getBoundingClientRect(),i=(o.left+o.right)/2,a=(o.top+o.bottom)/2,l=e.findMarksAt(e.coordsChar({left:i,top:a},"client")),u=[],c=0;c1,l.options.tooltips))}}u.onUpdateLinting&&u.onUpdateLinting(n,c,e)}function c(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){l(e)}),t.options.delay||500))}e.defineOption("lint",!1,(function(n,r,a){if(a&&a!=e.Init&&(i(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",c),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),u=!1,d=0;d-1)return c=r(l,u,c),{from:t(i.line,c),to:t(i.line,c+a.length)}}else{var u,c;if(l=e.getLine(i.line).slice(i.ch),(c=(u=s(l)).indexOf(n))>-1)return c=r(l,u,c)+i.ch,{from:t(i.line,c),to:t(i.line,c+a.length)}}}:this.matches=function(){};else{var u=a.split("\n");this.matches=function(n,r){var o,i=l.length-1;if(n){if(r.line-(l.length-1)=1;--d,--c)if(l[d]!=s(e.getLine(c)))return;var p=(o=e.getLine(c)).length-u[0].length;if(s(o.slice(p))!=l[0])return;return{from:t(c,p),to:a}}if(!(r.line+(l.length-1)>e.lastLine())&&(p=(o=e.getLine(r.line)).length-u[0].length,s(o.slice(p))==l[0])){var f=t(r.line,p);for(c=r.line+1,d=1;dn))return r;--r}}}n.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){var n=this,r=this.doc.clipPos(e?this.pos.from:this.pos.to);function o(e){var r=t(e,0);return n.pos={from:r,to:r},n.atOccurrence=!1,!1}for(;;){if(this.pos=this.matches(e,r))return this.atOccurrence=!0,this.pos.match||!0;if(e){if(!r.line)return o(0);r=t(r.line-1,this.doc.getLine(r.line-1).length)}else{var i=this.doc.lineCount();if(r.line==i-1)return o(i);r=t(r.line+1,0)}}},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(n,r){if(this.atOccurrence){var o=e.splitLines(n);this.doc.replaceRange(o,this.pos.from,this.pos.to,r),this.pos.to=t(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,r){return new n(this.doc,e,t,r)})),e.defineDocExtension("getSearchCursor",(function(e,t,r){return new n(this,e,t,r)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],o=this.getSearchCursor(t,this.getCursor("from"),n);o.findNext()&&!(e.cmpPos(o.to(),this.getCursor("to"))>0);)r.push({anchor:o.from(),head:o.to()});r.length&&this.setSelections(r,0)}))}(n("./node_modules/codemirror/lib/codemirror.js"))},"./node_modules/codemirror/addon/selection/mark-selection.js":function(e,t,n){!function(e){"use strict";function t(e){e.operation((function(){!function(e){if(!e.somethingSelected())return a(e);if(e.listSelections().length>1)return s(e);var t=e.getCursor("start"),n=e.getCursor("end"),r=e.state.markedSelection;if(!r.length)return i(e,t,n);var l=r[0].find(),u=r[r.length-1].find();if(!l||!u||n.line-t.line<8||o(t,u.to)>=0||o(n,l.from)<=0)return s(e);for(;o(t,l.from)>0;)r.shift().clear(),l=r[0].find();for(o(t,l.from)<0&&(l.to.line-t.line<8?(r.shift().clear(),i(e,t,l.to,0)):i(e,t,l.from,0));o(n,u.to)<0;)r.pop().clear(),u=r[r.length-1].find();o(n,u.to)>0&&(n.line-u.from.line<8?(r.pop().clear(),i(e,u.from,n)):i(e,u.to,n))}(e)}))}function n(e){e.state.markedSelection.length&&e.operation((function(){a(e)}))}e.defineOption("styleSelectedText",!1,(function(r,o,i){var l=i&&i!=e.Init;o&&!l?(r.state.markedSelection=[],r.state.markedSelectionStyle="string"==typeof o?o:"CodeMirror-selectedtext",s(r),r.on("cursorActivity",t),r.on("change",n)):!o&&l&&(r.off("cursorActivity",t),r.off("change",n),a(r),r.state.markedSelection=r.state.markedSelectionStyle=null)}));var r=e.Pos,o=e.cmpPos;function i(e,t,n,i){if(0!=o(t,n))for(var a=e.state.markedSelection,s=e.state.markedSelectionStyle,l=t.line;;){var u=l==t.line?t:r(l,0),c=l+8,d=c>=n.line,p=d?n:r(c,0),f=e.markText(u,p,{className:s});if(null==i?a.push(f):a.splice(i++,0,f),d)break;l=c}}function a(e){for(var t=e.state.markedSelection,n=0;n=15&&(c=!1,s=!0);var w=g&&(l||c&&(null==v||v<12.11)),x=n||i&&a>=9,_=!1,O=!1;function S(e,t){if(!(this instanceof S))return new S(e,t);this.options=t=t?_i(t):{},_i(er,t,!1),R(t);var n=t.value;"string"==typeof n&&(n=new bo(n,t.mode,null,t.lineSeparator)),this.doc=n;var r=new S.inputStyles[t.inputStyle](this),o=this.display=new E(e,n,r);o.wrapper.CodeMirror=this,M(this),A(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),t.autofocus&&!m&&o.input.focus(),B(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new di,keySeq:null,specialChars:null};var l=this;for(var u in i&&a<11&&setTimeout((function(){l.display.input.reset(!0)}),20),function(e){var t=e.display;Ko(t.scroller,"mousedown",Zt(e,dn)),Ko(t.scroller,"dblclick",i&&a<11?Zt(e,(function(t){if(!ni(e,t)){var n=cn(e,t);if(n&&!fn(e,t)&&!un(e.display,t)){Uo(t);var r=e.findWordAt(n);qe(e.doc,r.anchor,r.head)}}})):function(t){ni(e,t)||Uo(t)}),x||Ko(t.scroller,"contextmenu",(function(t){In(e,t)}));var n,r={end:0};function o(){t.activeTouch&&(n=setTimeout((function(){t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function s(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}Ko(t.scroller,"touchstart",(function(o){if(!ni(e,o)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(o)){clearTimeout(n);var i=+new Date;t.activeTouch={start:i,moved:!1,prev:i-r.end<=300?r:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}})),Ko(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),Ko(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!un(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,a=e.coordsChar(t.activeTouch,"page");i=!r.prev||s(r,r.prev)?new Ie(a,a):!r.prev.prev||s(r,r.prev.prev)?e.findWordAt(a):new Ie(fe(a.line,0),Le(e.doc,fe(a.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),Uo(n)}o()})),Ko(t.scroller,"touchcancel",o),Ko(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(yn(e,t.scroller.scrollTop),bn(e,t.scroller.scrollLeft,!0),$o(e,"scroll",e))})),Ko(t.scroller,"mousewheel",(function(t){_n(e,t)})),Ko(t.scroller,"DOMMouseScroll",(function(t){_n(e,t)})),Ko(t.wrapper,"scroll",(function(){t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ni(e,t)||Vo(t)},over:function(t){ni(e,t)||(function(e,t){var n=cn(e,t);if(n){var r=document.createDocumentFragment();nt(e,n,r),e.display.dragCursor||(e.display.dragCursor=Pi("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),Ii(e.display.dragCursor,r)}}(e,t),Vo(t))},start:function(t){!function(e,t){if(i&&(!e.state.draggingText||+new Date-hn<100))Vo(t);else if(!ni(e,t)&&!un(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=Pi("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",c&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),c&&n.parentNode.removeChild(n)}}(e,t)},drop:Zt(e,mn),leave:function(t){ni(e,t)||gn(e)}};var l=t.input.getField();Ko(l,"keyup",(function(t){kn.call(e,t)})),Ko(l,"keydown",Zt(e,Tn)),Ko(l,"keypress",Zt(e,An)),Ko(l,"focus",Oi(Pn,e)),Ko(l,"blur",Oi(Mn,e))}(this),function(){var e;Gi||(Ko(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Bi(ln)}),100))})),Ko(window,"blur",(function(){Bi(Mn)})),Gi=!0)}(),Ut(this),this.curOp.forceUpdate=!0,_o(this,n),t.autofocus&&!m||l.hasFocus()?setTimeout(Oi(Pn,this),20):Mn(this),tr)tr.hasOwnProperty(u)&&tr[u](this,t[u],rr);V(this),t.finishInit&&t.finishInit(this);for(var p=0;pt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}function R(e){var t=bi(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function L(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+ut(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+dt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function F(e,t,n){this.cm=n;var r=this.vert=Pi("div",[Pi("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=Pi("div",[Pi("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),Ko(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),Ko(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,i&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function z(){}function B(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Li(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new S.scrollbarModel[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ko(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?bn(e,t):yn(e,t)}),e),e.display.scrollbars.addClass&&Fi(e.display.wrapper,e.display.scrollbars.addClass)}function q(e,t){t||(t=L(e));var n=e.display.barWidth,r=e.display.barHeight;U(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&J(e),U(e,L(e)),n=e.display.barWidth,r=e.display.barHeight}function U(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function G(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-lt(e));var o=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,i=To(t,r),a=To(t,o);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s=a&&(i=To(t,ko(Oo(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function H(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Y(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==sn(e))return!1;V(e)&&(rn(e),t.dims=te(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),O&&(i=qr(e.doc,i),a=Ur(e.doc,a));var l=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=en(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=en(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,on(e,n)))),r.viewTo=n}(e,i,a),n.viewOffset=ko(Oo(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=sn(e);if(!l&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Di();return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,o=e.options.lineNumbers,i=r.lineDiv,a=i.firstChild;function l(t){var n=t.nextSibling;return s&&g&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d-1&&(f=!1),ne(e,p,c,n)),f&&(Mi(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(W(e.options,c)))),a=p.node.nextSibling}else{var h=ue(e,p,c,n);i.insertBefore(h,a)}c+=p.size}for(;a;)a=l(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,c&&Di()!=c&&c.offsetHeight&&c.focus(),Mi(n.cursorDiv),Mi(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,it(e,400)),n.updateLineNumbers=null,!0}function Z(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=pt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+ut(e.display)-ft(e),n.top)}),t.visible=G(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&X(e,t);r=!1){J(e);var o=L(e);et(e),q(e,o),$(e,o)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Q(e,t){var n=new K(e,t);if(X(e,n)){J(e),Z(e,n);var r=L(e);et(e),q(e,r),$(e,r),n.finish()}}function $(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+dt(e)+"px"}function J(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.001||c<-.001)&&(jo(s.line,o),ee(s.line),s.rest))for(var d=0;de.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=e.scrollWidth-e.clientWidth+i+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},setScrollLeft:function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},setScrollTop:function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},zeroWidthHack:function(){var e=g&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new di,this.disableVert=new di},enableZeroWidthBar:function(e,t){e.style.pointerEvents="auto",t.set(1e3,(function n(){var r=e.getBoundingClientRect();document.elementFromPoint(r.left+1,r.bottom-1)!=e?e.style.pointerEvents="none":t.set(1e3,n)}))},clear:function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)}},F.prototype),z.prototype=_i({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},z.prototype),S.scrollbarModel={native:F,null:z},K.prototype.signal=function(e,t){oi(e,t)&&this.events.push(arguments)},K.prototype.finish=function(){for(var e=0;e1)if(ve&&ve.text.join("\n")==t){if(r.ranges.length%ve.text.length==0){l=[];for(var u=0;u=0;u--){var c=r.ranges[u],d=c.from(),p=c.to();c.empty()&&(n&&n>0?d=fe(d.line,d.ch-n):e.state.overwrite&&!a?p=fe(p.line,Math.min(Oo(i,p.line).text.length,p.ch+gi(s).length)):ve&&ve.lineWise&&ve.text.join("\n")==t&&(d=p=fe(d.line,0)));var f=e.curOp.updateInput,h={from:d,to:p,text:l?l[u%l.length]:s,origin:o||(a?"paste":e.state.cutIncoming?"cut":"+input")};zn(e.doc,h),ei(e,"inputRead",e,h)}t&&!a&&_e(e,t),Yn(e),e.curOp.updateInput=f,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function xe(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Xt(t,(function(){we(t,n,0,null,"paste")})),!0}function _e(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s-1){a=Xn(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Oo(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Xn(e,o.head.line,"smart"));a&&ei(e,"electricInput",e,o.head.line)}}}function Oe(e){for(var t=[],n=[],r=0;r=0){var a=ye(i.from(),o.from()),s=ge(i.to(),o.to()),l=i.empty()?o.from()==o.head:i.from()==i.head;r<=t&&--t,e.splice(--r,2,new Ie(l?s:a,l?a:s))}}return new Me(e,t)}function De(e,t){return new Me([new Ie(e,t||e)],0)}function Re(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Le(e,t){if(t.linen?fe(n,Oo(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?fe(e.line,t):n<0?fe(e.line,0):e}(t,Oo(e,t.line).text.length)}function Fe(e,t){return t>=e.first&&t=t.ch:s.to>t.ch))){if(o&&($o(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var u,c=l.find(r<0?1:-1);if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(c=Je(e,c,-r,c&&c.line==t.line?i:null)),c&&c.line==t.line&&(u=he(c,n))&&(r<0?u<0:u>0))return Qe(e,c,t,r,o)}var d=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(d=Je(e,d,r,d.line==t.line?i:null)),d?Qe(e,d,t,r,o):null}}return t}function $e(e,t,n,r,o){var i=r||1,a=Qe(e,t,n,i,o)||!o&&Qe(e,t,n,i,!0)||Qe(e,t,n,-i,o)||!o&&Qe(e,t,n,-i,!0);return a||(e.cantEdit=!0,fe(e.first,0))}function Je(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?Le(e,fe(t.line-1)):null:n>0&&t.ch==(r||Oo(e,t.line)).text.length?t.line=e.display.viewTo||s.to().linet||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),o=!0)}o||r(t,n,"ltr")}(Ao(c),n||0,null==r?d:r,(function(e,t,o){var c,f,h,m=p(e,"left");if(e==t)c=m,f=h=m.left;else{if(c=p(t-1,"right"),"rtl"==o){var g=m;m=c,c=g}f=m.left,h=c.right}null==n&&0==e&&(f=s),c.top-m.top>3&&(u(f,m.top,null,m.bottom),f=s,m.bottoma.bottom||c.bottom==a.bottom&&c.right>a.right)&&(a=c),f0?t.blinker=setInterval((function(){t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function it(e,t){e.doc.mode.startState&&e.doc.frontier=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ur(t.mode,st(e,t.frontier)),o=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(t.frontier>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength,l=to(e,i,s?ur(t.mode,r):r,!0);i.styles=l.styles;var u=i.styleClasses,c=l.classes;c?i.styleClasses=c:u&&(i.styleClasses=null);for(var d=!a||a.length!=i.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!d&&pn)return it(e,e.options.workDelay),!0})),o.length&&Xt(e,(function(){for(var t=0;ta;--s){if(s<=i.first)return i.first;var l=Oo(i,s-1);if(l.stateAfter&&(!n||s<=i.frontier))return s;var u=pi(l.text,null,e.options.tabSize);(null==o||r>u)&&(o=s-1,r=u)}return o}(e,t,n),a=i>r.first&&Oo(r,i-1).stateAfter;return a=a?ur(r.mode,a):cr(r.mode),r.iter(i,t,(function(n){ro(e,n.text,a);var s=i==t-1||i%5==0||i>=o.viewFrom&&in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function mt(e,t,n,r){return bt(e,yt(e,t),n,r)}function gt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&i.push((l.bottom+u.top)/2-n.top)}}i.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(s=function(e,t,n,r){var o,s=xt(t.map,n,r),l=s.node,u=s.start,c=s.end,d=s.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;u&&Ai(t.line.text.charAt(s.coverStart+u));)--u;for(;s.coverStart+c1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,o))}else{var f;u>0&&(d=r="right"),o=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(i&&a<9&&!u&&(!o||!o.left&&!o.right)){var h=l.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+Lt(e.display),top:h.top,bottom:h.bottom}:wt}var m=o.top-t.rect.top,g=o.bottom-t.rect.top,y=(m+g)/2,b=t.view.measure.heights;for(p=0;p=9&&t.hasSelection&&(t.hasSelection=null),t.poll()})),Ko(o,"paste",(function(e){ni(n,e)||xe(e,n)||(n.state.pasteIncoming=!0,t.fastPoll())})),Ko(o,"cut",s),Ko(o,"copy",s),Ko(e.scroller,"paste",(function(r){un(e,r)||ni(n,r)||(n.state.pasteIncoming=!0,t.focus())})),Ko(e.lineSpace,"selectstart",(function(t){un(e,t)||Uo(t)})),Ko(o,"compositionstart",(function(){var e=n.getCursor("from");t.composing&&t.composing.range.clear(),t.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),Ko(o,"compositionend",(function(){t.composing&&(t.poll(),t.composing.range.clear(),t.composing=null)}))},prepareSelection:function(){var e=this.cm,t=e.display,n=e.doc,r=tt(e);if(e.options.moveInputWithCursor){var o=Pt(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},showSelection:function(e){var t=this.cm.display;Ii(t.cursorDiv,e.cursors),Ii(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},reset:function(e){if(!this.contextMenuPending){var t,n,r=this.cm,o=r.doc;if(r.somethingSelected()){this.prevInput="";var s=o.sel.primary(),l=(t=Qi&&(s.to().line-s.from().line>100||(n=r.getSelection()).length>1e3))?"-":n||r.getSelection();this.textarea.value=l,r.state.focused&&yi(this.textarea),i&&a>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",i&&a>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!m||Di()!=this.textarea))try{this.textarea.focus()}catch(e){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var e=this;e.pollingFast||e.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},fastPoll:function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},poll:function(){var e=this.cm,t=this.textarea,n=this.prevInput;if(this.contextMenuPending||!e.state.focused||Zi(t)&&!n&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=t.value;if(r==n&&!e.somethingSelected())return!1;if(i&&a>=9&&this.hasSelection===r||g&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,l=Math.min(n.length,r.length);s1e3||r.indexOf("\n")>-1?t.value=u.prevInput="":u.prevInput=r,u.composing&&(u.composing.range.clear(),u.composing.range=e.markText(u.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){i&&a>=9&&(this.hasSelection=null),this.fastPoll()},onContextMenu:function(e){var t=this,n=t.cm,r=n.display,o=t.textarea,l=cn(n,e),u=r.scroller.scrollTop;if(l&&!c){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(l)&&Zt(n,We)(n.doc,De(l),li);var d=o.style.cssText,p=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var f=t.wrapper.getBoundingClientRect();if(o.style.cssText="position: absolute; width: 30px; height: 30px; top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px; z-index: 1000; background: "+(i?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s)var h=window.scrollY;if(r.input.focus(),s&&window.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=!0,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),i&&a>=9&&g(),x){Vo(e);var m=function(){Qo(window,"mouseup",m),setTimeout(y,20)};Ko(window,"mouseup",m)}else setTimeout(y,50)}function g(){if(null!=o.selectionStart){var e=n.somethingSelected(),i="​"+(e?o.value:"");o.value="⇚",o.value=i,t.prevInput=e?"":"​",o.selectionStart=1,o.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=p,o.style.cssText=d,i&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=o.selectionStart){(!i||i&&a<9)&&g();var e=0,s=function(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"​"==t.prevInput?Zt(n,dr.selectAll)(n):e++<10?r.detectingSelectAll=setTimeout(s,500):r.input.reset()};r.detectingSelectAll=setTimeout(s,200)}}},readOnlyChanged:function(e){e||this.reset()},setUneditable:wi,needsContentAttribute:!1},Ee.prototype),Ce.prototype=_i({init:function(e){var t=this,n=t.cm,r=t.div=e.lineDiv;function o(e){if(!ni(n,e)){if(n.somethingSelected())ve={lineWise:!1,text:n.getSelections()},"cut"==e.type&&n.replaceSelection("",null,"cut");else{if(!n.options.lineWiseCopyCut)return;var o=Oe(n);ve={lineWise:!0,text:o.text},"cut"==e.type&&n.operation((function(){n.setSelections(o.ranges,0,li),n.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var i=ve.text.join("\n");if(e.clipboardData.setData("Text",i),e.clipboardData.getData("Text")==i)return void e.preventDefault()}var a=je(),s=a.firstChild;n.display.lineSpace.insertBefore(a,n.display.lineSpace.firstChild),s.value=ve.text.join("\n");var l=document.activeElement;yi(s),setTimeout((function(){n.display.lineSpace.removeChild(a),l.focus(),l==r&&t.showPrimarySelection()}),50)}}Se(r,n.options.spellcheck),Ko(r,"paste",(function(e){ni(n,e)||xe(e,n)||a<=11&&setTimeout(Zt(n,(function(){t.pollContent()||tn(n)})),20)})),Ko(r,"compositionstart",(function(e){var r=e.data;if(t.composing={sel:n.doc.sel,data:r,startData:r},r){var o=n.doc.sel.primary(),i=n.getLine(o.head.line).indexOf(r,Math.max(0,o.head.ch-r.length));i>-1&&i<=o.head.ch&&(t.composing.sel=De(fe(o.head.line,i),fe(o.head.line,i+r.length)))}})),Ko(r,"compositionupdate",(function(e){t.composing.data=e.data})),Ko(r,"compositionend",(function(e){var n=t.composing;n&&(e.data==n.startData||/\u200b/.test(e.data)||(n.data=e.data),setTimeout((function(){n.handled||t.applyComposition(n),t.composing==n&&(t.composing=null)}),50))})),Ko(r,"touchstart",(function(){t.forceCompositionEnd()})),Ko(r,"input",(function(){t.composing||!n.isReadOnly()&&t.pollContent()||Xt(t.cm,(function(){tn(n)}))})),Ko(r,"copy",o),Ko(r,"cut",o)},prepareSelection:function(){var e=tt(this.cm,!1);return e.focus=this.cm.state.focused,e},showSelection:function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},showPrimarySelection:function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),r=Ae(this.cm,e.anchorNode,e.anchorOffset),o=Ae(this.cm,e.focusNode,e.focusOffset);if(!r||r.bad||!o||o.bad||0!=he(ye(r,o),t.from())||0!=he(ge(r,o),t.to())){var i=Te(this.cm,t.from()),a=Te(this.cm,t.to());if(i||a){var s=this.cm.display.view,l=e.rangeCount&&e.getRangeAt(0);if(i){if(!a){var u=s[s.length-1].measure,c=u.maps?u.maps[u.maps.length-1]:u.map;a={node:c[c.length-1],offset:c[c.length-2]-c[c.length-3]}}}else i={node:s[0].measure.map[2],offset:0};try{var d=Ti(i.node,i.offset,a.offset,a.node)}catch(e){}d&&(!n&&this.cm.state.focused?(e.collapse(i.node,i.offset),d.collapsed||e.addRange(d)):(e.removeAllRanges(),e.addRange(d)),l&&null==e.anchorNode?e.addRange(l):n&&this.startGracePeriod()),this.rememberSelection()}}},startGracePeriod:function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){e.cm.curOp.selectionChanged=!0}))}),20)},showMultipleSelections:function(e){Ii(this.cm.display.cursorDiv,e.cursors),Ii(this.cm.display.selectionDiv,e.selection)},rememberSelection:function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},selectionInEditor:function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return Ni(this.div,t)},focus:function(){"nocursor"!=this.cm.options.readOnly&&this.div.focus()},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){var e=this;this.selectionInEditor()?this.pollSelection():Xt(this.cm,(function(){e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},selectionChanged:function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;this.rememberSelection();var n=Ae(t,e.anchorNode,e.anchorOffset),r=Ae(t,e.focusNode,e.focusOffset);n&&r&&Xt(t,(function(){We(t.doc,De(n,r),li),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}},pollContent:function(){var e,t=this.cm,n=t.display,r=t.doc.sel.primary(),o=r.from(),i=r.to();if(o.linen.viewTo-1)return!1;if(o.line==n.viewFrom||0==(e=on(t,o.line)))var a=Co(n.view[0].line),s=n.view[0].node;else a=Co(n.view[e].line),s=n.view[e-1].node.nextSibling;var l=on(t,i.line);if(l==n.view.length-1)var u=n.viewTo-1,c=n.lineDiv.lastChild;else u=Co(n.view[l+1].line)-1,c=n.view[l+1].node.previousSibling;for(var d=t.doc.splitLines(function(e,t,n,r,o){var i="",a=!1,s=e.doc.lineSeparator();function l(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return""==n&&(n=t.textContent.replace(/\u200b/g,"")),void(i+=n);var u,c=t.getAttribute("cm-marker");if(c){var d=e.findMarks(fe(r,0),fe(o+1,0),(h=+c,function(e){return e.id==h}));return void(d.length&&(u=d[0].find())&&(i+=So(e.doc,u.from,u.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;for(var p=0;p1&&p.length>1;)if(gi(d)==gi(p))d.pop(),p.pop(),u--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),a++}for(var f=0,h=0,m=d[0],g=p[0],y=Math.min(m.length,g.length);f1||d[0]||he(x,_)?(Hn(t.doc,d,x,_,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&!this.composing.handled&&(this.applyComposition(this.composing),this.composing.handled=!0,this.div.blur(),this.div.focus())},applyComposition:function(e){this.cm.isReadOnly()?Zt(this.cm,tn)(this.cm):e.data&&e.data!=e.startData&&Zt(this.cm,we)(this.cm,e.data,0,e.sel)},setUneditable:function(e){e.contentEditable="false"},onKeyPress:function(e){e.preventDefault(),this.cm.isReadOnly()||Zt(this.cm,we)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0)},readOnlyChanged:function(e){this.div.contentEditable=String("nocursor"!=e)},onContextMenu:wi,resetPosition:wi,needsContentAttribute:!0},Ce.prototype),S.inputStyles={textarea:Ee,contenteditable:Ce},Me.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t=0&&he(e,r.to())<=0)return n}return-1}},Ie.prototype={from:function(){return ye(this.anchor,this.head)},to:function(){return ge(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var vt,wt={left:0,right:0,top:0,bottom:0};function xt(e,t,n){for(var r,o,i,a,s=0;st)&&(o=(i=u-l)-1,t>=u&&(a="right")),null!=o){if(r=e[s+2],l==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)r=e[2+(s-=3)],a="left";if("right"==n&&o==u-l)for(;s=0&&(n=e[r]).left==n.right;r--);return n}function Ot(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;tn.from?a(e-1):a(e,r)}r=r||Oo(e.doc,t.line),o||(o=yt(e,r));var l=Ao(r),u=t.ch;if(!l)return a(u);var c=s(u,sa(l,u));return null!=Ki&&(c.other=s(u,Ki)),c}function Mt(e,t){var n=0;t=Le(e.doc,t),e.options.lineWrapping||(n=Lt(e.display)*t.ch);var r=Oo(e.doc,t.line),o=ko(r)+lt(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function It(e,t,n,r){var o=fe(e,t);return o.xRel=r,n&&(o.outside=!0),o}function Nt(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return It(r.first,0,!0,-1);var o=To(r,n),i=r.first+r.size-1;if(o>i)return It(r.first+r.size-1,Oo(r,i).text.length,!0,1);t<0&&(t=0);for(var a=Oo(r,o);;){var s=Dt(e,a,o,t,n),l=Fr(a),u=l&&l.find(0,!0);if(!l||!(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0))return s;o=Co(a=u.to.line)}}function Dt(e,t,n,r,o){var i=o-ko(t),a=!1,s=2*e.display.wrapper.clientWidth,l=yt(e,t);function u(r){var o=Pt(e,fe(n,r),"line",t,l);return a=!0,i>o.bottom?o.left-s:ig)return It(n,f,y,1);for(;;){if(c?f==p||f==ua(t,p,1):f-p<=1){var b=r0&&b1){var x=bt(e,l,b,"right");i<=x.bottom&&i>=x.top&&Math.abs(r-x.right)1?1:0)}var _=Math.ceil(d/2),O=p+_;if(c){O=p;for(var S=0;S<_;++S)O=ua(t,O,1)}var E=u(O);E>r?(f=O,g=E,(y=a)&&(g+=1e3),d=_):(p=O,h=E,m=a,d-=_)}}function Rt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==vt){vt=Pi("pre");for(var t=0;t<49;++t)vt.appendChild(document.createTextNode("x")),vt.appendChild(Pi("br"));vt.appendChild(document.createTextNode("x"))}Ii(e.measure,vt);var n=vt.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),Mi(e.measure),n||1}function Lt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=Pi("span","xxxxxxxxxx"),n=Pi("pre",[t]);Ii(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}var Ft,zt,Bt=null,qt=0;function Ut(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qt},Bt?Bt.ops.push(e.curOp):e.curOp.ownsGroup=Bt={ops:[e.curOp],delayedCallbacks:[]}}function Gt(e){var t=e.curOp.ownsGroup;if(t)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new K(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Vt(e){e.updatedDisplay=e.mustUpdate&&X(e.cm,e.update)}function Wt(e){var t=e.cm,n=t.display;e.updatedDisplay&&J(t),e.barMeasure=L(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=mt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+dt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-pt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function Yt(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft1&&(i=!0)),null!=l.scrollLeft&&(bn(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-c)>1&&(i=!0)),!i)break}return a}(t,Le(r,e.scrollToPos.from),Le(r,e.scrollToPos.to),e.scrollToPos.margin);e.scrollToPos.isCursor&&t.state.focused&&function(e,t){if(!ni(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null;if(t.top+r.top<0?o=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!f){var i=Pi("div","​",null,"position: absolute; top: "+(t.top-n.viewOffset-lt(e.display))+"px; height: "+(t.bottom-t.top+dt(e)+n.barHeight)+"px; left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}(t,o)}var i=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(i)for(var s=0;st)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)O&&qr(e.doc,t)o.viewFrom?rn(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)rn(e);else if(t<=o.viewFrom)(i=an(e,n,n+r,1))?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):rn(e);else if(n>=o.viewTo){var i;(i=an(e,t,t,-1))?(o.view=o.view.slice(0,i.index),o.viewTo=i.lineN):rn(e)}else{var a=an(e,t,t,-1),s=an(e,n,n+r,1);a&&s?(o.view=o.view.slice(0,a.index).concat(en(e,a.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=r):rn(e)}var l=o.externalMeasured;l&&(n=o.lineN&&t=r.viewTo)){var i=r.view[on(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==bi(a,n)&&a.push(n)}}}function rn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function on(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,n+=o}for(;qr(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function sn(e){for(var t=e.display.view,n=0,r=0;ro-400&&0==he(zt.pos,n)?r="triple":Ft&&Ft.time>o-400&&0==he(Ft.pos,n)?(r="double",zt={time:o,pos:n}):(r="single",Ft={time:o,pos:n});var l,u=e.doc.sel,c=g?t.metaKey:t.ctrlKey;e.options.dragDrop&&Hi&&!e.isReadOnly()&&"single"==r&&(l=u.contains(n))>-1&&(he((l=u.ranges[l]).from(),n)<0||n.xRel>0)&&(he(l.to(),n)>0||n.xRel<0)?function(e,t,n,r){var o=e.display,l=+new Date,u=Zt(e,(function(c){s&&(o.scroller.draggable=!1),e.state.draggingText=!1,Qo(document,"mouseup",u),Qo(o.scroller,"drop",u),Math.abs(t.clientX-c.clientX)+Math.abs(t.clientY-c.clientY)<10&&(Uo(c),!r&&+new Date-200-1?c[l]:new Ie(n,n)):(s=a.sel.primary(),l=a.sel.primIndex),y?t.shiftKey&&t.metaKey:t.altKey)r="rect",o||(s=new Ie(n,n)),n=cn(e,t,!0,!0),l=-1;else if("double"==r){var d=e.findWordAt(n);s=e.display.shift||a.extend?Be(a,s,d.anchor,d.head):d}else if("triple"==r){var p=new Ie(fe(n.line,0),Le(a,fe(n.line+1,0)));s=e.display.shift||a.extend?Be(a,s,p.anchor,p.head):p}else s=Be(a,s,n);o?-1==l?(l=c.length,We(a,Ne(c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"single"==r&&!t.shiftKey?(We(a,Ne(c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=a.sel):Ge(a,l,s,ui):(l=0,We(a,new Me([s],0),ui),u=a.sel);var f=n,h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var o=++m,c=cn(e,t,!0,"rect"==r);if(c)if(0!=he(c,f)){e.curOp.focus=Di(),function(t){if(0!=he(f,t))if(f=t,"rect"==r){for(var o=[],i=e.options.tabSize,c=pi(Oo(a,n.line).text,n.ch,i),d=pi(Oo(a,t.line).text,t.ch,i),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var y=Oo(a,m).text,b=fi(y,p,i);p==h?o.push(new Ie(fe(m,b),fe(m,b))):y.length>b&&o.push(new Ie(fe(m,b),fe(m,fi(y,h,i))))}o.length||o.push(new Ie(n,n)),We(a,Ne(u.ranges.slice(0,l).concat(o),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var v=s,w=v.anchor,x=t;if("single"!=r){if("double"==r)var _=e.findWordAt(t);else _=new Ie(fe(t.line,0),Le(a,fe(t.line+1,0)));he(_.anchor,w)>0?(x=_.head,w=ye(v.from(),_.anchor)):(x=_.anchor,w=ge(v.to(),_.head))}(o=u.ranges.slice(0))[l]=new Ie(Le(a,w),x),We(a,Ne(o,l),ui)}}(c);var d=G(i,a);(c.line>=d.to||c.lineh.bottom?20:0;p&&setTimeout(Zt(e,(function(){m==o&&(i.scroller.scrollTop+=p,g(t))})),50)}}function b(t){e.state.selectingText=!1,m=1/0,Uo(t),i.input.focus(),Qo(document,"mousemove",v),Qo(document,"mouseup",w),a.history.lastSelOrigin=null}var v=Zt(e,(function(e){Yo(e)?g(e):b(e)})),w=Zt(e,b);e.state.selectingText=w,Ko(document,"mousemove",v),Ko(document,"mouseup",w)}(e,t,n,r,c)}(t,e,r):Wo(e)==n.scroller&&Uo(e);break;case 2:s&&(t.state.lastMiddleDown=+new Date),r&&qe(t.doc,r),setTimeout((function(){n.input.focus()}),20),Uo(e);break;case 3:x?In(t,e):function(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Mn(e))}),100)}(t)}}}function pn(e,t,n,r){try{var o=t.clientX,i=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Uo(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!oi(e,n))return Ho(t);i-=s.top-a.viewOffset;for(var l=0;l=o){var c=To(e.doc,i),d=e.options.gutters[l];return $o(e,n,e,c,d,t),Ho(t)}}}function fn(e,t){return pn(e,t,"gutterClick",!0)}var hn=0;function mn(e){var t=this;if(gn(t),!ni(t,e)&&!un(t.display,e)){Uo(e),i&&(hn=+new Date);var n=cn(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,a=Array(o),s=0,l=function(e,r){if(!t.options.allowDropFileTypes||-1!=bi(t.options.allowDropFileTypes,e.type)){var i=new FileReader;i.onload=Zt(t,(function(){var e=i.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),a[r]=e,++s==o){var l={from:n=Le(t.doc,n),to:n,text:t.doc.splitLines(a.join(t.doc.lineSeparator())),origin:"paste"};zn(t.doc,l),Ve(t.doc,De(n,Nn(l)))}})),i.readAsText(e)}},u=0;u-1)return t.state.draggingText(e),void setTimeout((function(){t.display.input.focus()}),20);try{if(a=e.dataTransfer.getData("Text")){if(t.state.draggingText&&!t.state.draggingText.copy)var c=t.listSelections();if(Ye(t.doc,De(n,n)),c)for(u=0;ul.clientWidth,d=l.scrollHeight>l.clientHeight;if(o&&u||i&&d){if(i&&g&&s)e:for(var p=t.target,f=a.view;p!=l;p=p.parentNode)for(var h=0;h0)){var c=[l,1],d=he(u.from,s.from),p=he(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:s.to,to:u.to}),o.splice.apply(o,c),l+=c.length-1}}return o}(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)Bn(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text});else Bn(e,t)}}function Bn(e,t){if(1!=t.text.length||""!=t.text[0]||0!=he(t.from,t.to)){var n=Rn(e,t);No(e,t,n,e.cm?e.cm.curOp.id:NaN),Gn(e,t,n,Tr(e,t));var r=[];xo(e,(function(e,n){n||-1!=bi(r,e.history)||(qo(e.history,t),r.push(e.history)),Gn(e,t,null,Tr(e,t))}))}}function qn(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var r,o=e.history,i=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,l=0;l=0;--l){var d=r.changes[l];if(d.origin=t,c&&!Fn(e,d,!1))return void(a.length=0);u.push(Mo(e,d));var p=l?Rn(e,d):gi(a);Gn(e,d,p,Ar(e,d)),!l&&e.cm&&e.cm.scrollIntoView({from:d.from,to:Nn(d)});var f=[];xo(e,(function(e,t){t||-1!=bi(f,e.history)||(qo(e.history,d),f.push(e.history)),Gn(e,d,null,Ar(e,d))}))}}}}function Un(e,t){if(0!=t&&(e.first+=t,e.sel=new Me(vi(e.sel.ranges,(function(e){return new Ie(fe(e.anchor.line+t,e.anchor.ch),fe(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){tn(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:fe(i,Oo(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=So(e,t.from,t.to),n||(n=Rn(e,t)),e.cm?function(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,l=i.line;e.options.lineWrapping||(l=Co(Br(Oo(r,i.line))),r.iter(l,a.line+1,(function(e){if(e==o.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ri(e),ho(r,t,n,T(e)),e.options.lineWrapping||(r.iter(l,i.line+t.text.length,(function(e){var t=N(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,i.line),it(e,400);var u=t.text.length-(a.line-i.line)-1;t.full?tn(e):i.line!=a.line||1!=t.text.length||fo(e.doc,t)?tn(e,i.line,a.line+1,u):nn(e,i.line,"text");var c=oi(e,"changes"),d=oi(e,"change");if(d||c){var p={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&ei(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):ho(e,t,r),Ye(e,n,li)}}function Hn(e,t,n,r,o){if(r||(r=n),he(r,n)<0){var i=r;r=n,n=i}"string"==typeof t&&(t=e.splitLines(t)),zn(e,{from:n,to:r,text:t,origin:o})}function Vn(e,t,n,r,o){var i=e.display,a=Rt(e.display);n<0&&(n=0);var s=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:i.scroller.scrollTop,l=ft(e),u={};o-n>l&&(o=n+l);var c=e.doc.height+ut(i),d=nc-a;if(ns+l){var f=Math.min(n,(p?c:o)-l);f!=s&&(u.scrollTop=f)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:i.scroller.scrollLeft,m=pt(e)-(e.options.fixedGutter?i.gutters.offsetWidth:0),g=r-t>m;return g&&(r=t+m),t<10?u.scrollLeft=0:tm+h-3&&(u.scrollLeft=r+(g?0:10)-m),u}function Wn(e,t,n){null==t&&null==n||Kn(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Yn(e){Kn(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?fe(t.line,t.ch-1):t,r=fe(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin,isCursor:!0}}function Kn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Mt(e,t.from),r=Mt(e,t.to),o=Vn(e,Math.min(n.left,r.left),Math.min(n.top,r.top)-t.margin,Math.max(n.right,r.right),Math.max(n.bottom,r.bottom)+t.margin);e.scrollTo(o.scrollLeft,o.scrollTop)}}function Xn(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=st(e,t):n="prev");var a=e.options.tabSize,s=Oo(i,t),l=pi(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=i.mode.indent(o,s.text.slice(c.length),s.text))==si||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>i.first?pi(Oo(i,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",p=0;if(e.options.indentWithTabs)for(var f=Math.floor(u/a);f;--f)p+=a,d+="\t";if(p=0;t--)Hn(e.doc,"",r[t].from,r[t].to,"+delete");Yn(e)}))}function $n(e,t,n,r,o){var i=t.line,a=t.ch,s=n,l=Oo(e,i);function u(t){var r,s=(o?ua:ca)(l,a,n,!0);if(null==s){if(t||(r=i+n)=e.first+e.size||(i=r,!(l=Oo(e,r))))return!1;a=o?(n<0?ra:na)(l):n<0?l.text.length:0}else a=s;return!0}if("char"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||u(!f);f=!1){var h=l.text.charAt(a)||"\n",m=ji(h,p)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||f||m||(m="s"),c&&c!=m){n<0&&(n=1,u());break}if(m&&(c=m),n>0&&!u(!f))break}var g=$e(e,fe(i,a),t,s,!0);return he(t,g)||(g.hitSide=!0),g}function Jn(e,t,n,r){var o,i=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);o=t.top+n*(s-(n<0?1.5:.5)*Rt(e.display))}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;;){var l=Nt(e,a,o);if(!l.outside)break;if(n<0?o<=0:o>=i.height){l.hitSide=!0;break}o+=5*n}return l}S.prototype={constructor:S,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,tr.hasOwnProperty(e)&&Zt(this,tr[e])(this,t,r))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](yr(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Xn(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&Yn(this));else{var i=o.from(),a=o.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Ge(this.doc,r,new Ie(i,u[r].to()),li)}}})),getTokenAt:function(e,t){return Jr(this,e,t)},getLineTokens:function(e,t){return Jr(this,fe(e),t,!0)},getTokenTypeAt:function(e){e=Le(this.doc,e);var t,n=no(this,Oo(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]o&&(e=o,r=!0),n=Oo(this.doc,e)}else n=e;return Tt(this,n,{top:0,left:0},t||"page").top+(r?this.doc.height-ko(n):0)},defaultTextHeight:function(){return Rt(this.display)},defaultCharWidth:function(){return Lt(this.display)},setGutterMarker:Qt((function(e,t,n){return Zn(this.doc,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&Ci(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Qt((function(e){var t=this,n=t.doc,r=n.first;n.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&(n.gutterMarkers[e]=null,nn(t,r,"gutter"),Ci(n.gutterMarkers)&&(n.gutterMarkers=null)),++r}))})),lineInfo:function(e){if("number"==typeof e){if(!Fe(this.doc,e))return null;var t=e;if(!(e=Oo(this.doc,e)))return null}else if(null==(t=Co(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i,a,s,l,u,c,d=this.display,p=(e=Pt(this,Le(this.doc,e))).bottom,f=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),d.sizer.appendChild(t),"over"==r)p=e.top;else if("above"==r||"near"==r){var h=Math.max(d.wrapper.clientHeight,this.doc.height),m=Math.max(d.sizer.clientWidth,d.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>h)&&e.top>t.offsetHeight?p=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=h&&(p=e.bottom),f+t.offsetWidth>m&&(f=m-t.offsetWidth)}t.style.top=p+"px",t.style.left=t.style.right="","right"==o?(f=d.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?f=0:"middle"==o&&(f=(d.sizer.clientWidth-t.offsetWidth)/2),t.style.left=f+"px"),n&&(i=this,a=f,s=p,l=f+t.offsetWidth,u=p+t.offsetHeight,null!=(c=Vn(i,a,s,l,u)).scrollTop&&yn(i,c.scrollTop),null!=c.scrollLeft&&bn(i,c.scrollLeft))},triggerOnKeyDown:Qt(Tn),triggerOnKeyPress:Qt(An),triggerOnKeyUp:kn,execCommand:function(e){if(dr.hasOwnProperty(e))return dr[e].call(null,this)},triggerElectric:Qt((function(e){_e(this,e)})),findPosH:function(e,t,n,r){var o=1;t<0&&(o=-1,t=-t);for(var i=0,a=Le(this.doc,e);i0&&a(t.charAt(n-1));)--n;for(;r.5)&&k(this),$o(this,"refresh",this)})),swapDoc:Qt((function(e){var t=this.doc;return t.cm=null,_o(this,e),Et(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ei(this,"swapDoc",this,t),t})),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ii(S);var er=S.defaults={},tr=S.optionHandlers={};function nr(e,t,n,r){S.defaults[e]=t,n&&(tr[e]=r?function(e,t,r){r!=rr&&n(e,t,r)}:n)}var rr=S.Init={toString:function(){return"CodeMirror.Init"}};nr("value","",(function(e,t){e.setValue(t)}),!0),nr("mode",null,(function(e,t){e.doc.modeOption=t,j(e)}),!0),nr("indentUnit",2,j,!0),nr("indentWithTabs",!1),nr("smartIndent",!0),nr("tabSize",4,(function(e){C(e),Et(e),tn(e)}),!0),nr("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(fe(r,i))}r++}));for(var o=n.length-1;o>=0;o--)Hn(e.doc,t,n[o],fe(n[o].line,n[o].ch+t.length))}})),nr("specialChars",/[\u0000-\u001f\u007f\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=S.Init&&e.refresh()})),nr("specialCharPlaceholder",(function(e){var t=Pi("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}),(function(e){e.refresh()}),!0),nr("electricChars",!0),nr("inputStyle",m?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),nr("spellcheck",!1,(function(e,t){e.getInputField().spellcheck=t}),!0),nr("rtlMoveVisually",!b),nr("wholeLineUpdateBefore",!0),nr("theme","default",(function(e){A(e),P(e)}),!0),nr("keyMap","default",(function(e,t,n){var r=yr(t),o=n!=S.Init&&yr(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)})),nr("extraKeys",null),nr("lineWrapping",!1,(function(e){e.options.lineWrapping?(Fi(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Li(e.display.wrapper,"CodeMirror-wrap"),D(e)),k(e),tn(e),Et(e),setTimeout((function(){q(e)}),100)}),!0),nr("gutters",[],(function(e){R(e.options),P(e)}),!0),nr("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Y(e.display)+"px":"0",e.refresh()}),!0),nr("coverGutterNextToScrollbar",!1,(function(e){q(e)}),!0),nr("scrollbarStyle","native",(function(e){B(e),q(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),nr("lineNumbers",!1,(function(e){R(e.options),P(e)}),!0),nr("firstLineNumber",1,P,!0),nr("lineNumberFormatter",(function(e){return e}),P,!0),nr("showCursorWhenSelecting",!1,et,!0),nr("resetSelectionOnContextMenu",!0),nr("lineWiseCopyCut",!0),nr("readOnly",!1,(function(e,t){"nocursor"==t?(Mn(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)})),nr("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),nr("dragDrop",!0,(function(e,t,n){if(!t!=!(n&&n!=S.Init)){var r=e.display.dragFunctions,o=t?Ko:Qo;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}})),nr("allowDropFileTypes",null),nr("cursorBlinkRate",530),nr("cursorScrollMargin",0),nr("cursorHeight",1,et,!0),nr("singleCursorHeightPerLine",!0,et,!0),nr("workTime",100),nr("workDelay",100),nr("flattenSpans",!0,C,!0),nr("addModeClass",!1,C,!0),nr("pollInterval",100),nr("undoDepth",200,(function(e,t){e.doc.history.undoDepth=t})),nr("historyEventDelay",1250),nr("viewportMargin",10,(function(e){e.refresh()}),!0),nr("maxHighlightLength",1e4,C,!0),nr("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),nr("tabindex",null,(function(e,t){e.display.input.getField().tabIndex=t||""})),nr("autofocus",null);var or=S.modes={},ir=S.mimeModes={};S.defineMode=function(e,t){S.defaults.mode||"null"==e||(S.defaults.mode=e),arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),or[e]=t},S.defineMIME=function(e,t){ir[e]=t},S.resolveMode=function(e){if("string"==typeof e&&ir.hasOwnProperty(e))e=ir[e];else if(e&&"string"==typeof e.name&&ir.hasOwnProperty(e.name)){var t=ir[e.name];"string"==typeof t&&(t={name:t}),(e=xi(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return S.resolveMode("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return S.resolveMode("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}},S.getMode=function(e,t){t=S.resolveMode(t);var n=or[t.name];if(!n)return S.getMode(e,"text/plain");var r=n(e,t);if(ar.hasOwnProperty(t.name)){var o=ar[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var i in t.modeProps)r[i]=t.modeProps[i];return r},S.defineMode("null",(function(){return{token:function(e){e.skipToEnd()}}})),S.defineMIME("text/plain","null");var ar=S.modeExtensions={};S.extendMode=function(e,t){_i(t,ar.hasOwnProperty(e)?ar[e]:ar[e]={})},S.defineExtension=function(e,t){S.prototype[e]=t},S.defineDocExtension=function(e,t){bo.prototype[e]=t},S.defineOption=nr;var sr=[];S.defineInitHook=function(e){sr.push(e)};var lr=S.helpers={};S.registerHelper=function(e,t,n){lr.hasOwnProperty(e)||(lr[e]=S[e]={_global:[]}),lr[e][t]=n},S.registerGlobalHelper=function(e,t,n,r){S.registerHelper(e,t,r),lr[e]._global.push({pred:n,val:r})};var ur=S.copyState=function(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n},cr=S.startState=function(e,t,n){return!e.startState||e.startState(t,n)};S.innerMode=function(e,t){for(;e.innerMode;){var n=e.innerMode(t);if(!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}};var dr=S.commands={selectAll:function(e){e.setSelection(fe(e.firstLine(),0),fe(e.lastLine()),li)},singleSelection:function(e){e.setSelection(e.getCursor("anchor"),e.getCursor("head"),li)},killLine:function(e){Qn(e,(function(t){if(t.empty()){var n=Oo(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new fe(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),fe(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Oo(e.doc,o.line-1).text;a&&e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),fe(o.line-1,a.length-1),fe(o.line,1),"+transpose")}n.push(new Ie(o,o))}e.setSelections(n)}))},newlineAndIndent:function(e){Xt(e,(function(){for(var t=e.listSelections().length,n=0;n=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.post},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var vr=0,wr=S.TextMarker=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++vr};function xr(e,t,n,r,o){if(r&&r.shared)return function(e,t,n,r,o){(r=_i(r)).shared=!1;var i=[xr(e,t,n,r,o)],a=i[0],s=r.widgetNode;return xo(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),i.push(xr(e,Le(e,t),Le(e,n),r,o));for(var l=0;l0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=Pi("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(zr(e,t.line,t,n,i)||t.line!=n.line&&zr(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");O=!0}i.addToHistory&&No(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(e){u&&i.collapsed&&!u.options.lineWrapping&&Br(e)==u.display.maxLine&&(s=!0),i.collapsed&&l!=t.line&&jo(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Er(i,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){Gr(e,t)&&jo(t,0)})),i.clearOnEnter&&Ko(i,"beforeCursorEnter",(function(){i.clear()})),i.readOnly&&(_=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++vr,i.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),i.collapsed)tn(u,t.line,n.line+1);else if(i.className||i.title||i.startStyle||i.endStyle||i.css)for(var c=t.line;c<=n.line;c++)nn(u,c,"text");i.atomic&&Xe(u.doc),ei(u,"markerAdded",u,i)}return i}ii(wr),wr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ut(e),oi(this,"clear")){var n=this.find();n&&ei(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&tn(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Xe(e.doc)),e&&ei(e,"markerCleared",e,this),t&&Gt(e),this.parent&&this.parent.clear()}},wr.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o=t:i.to>t);(r||(r=[])).push(new Er(a,i.from,s?null:i.to))}}return r}(n,o,a),l=function(e,t,n){if(e)for(var r,o=0;o=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&s)for(d=0;d=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?he(u.to,n)>=0:he(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?he(u.from,r)<=0:he(u.from,r)<0)))return!0}}}function Br(e){for(var t;t=Lr(e);)e=t.find(-1,!0).line;return e}function qr(e,t){var n=Oo(e,t),r=Br(n);return n==r?t:Co(r)}function Ur(e,t){if(t>e.lastLine())return t;var n,r=Oo(e,t);if(!Gr(e,r))return t;for(;n=Fr(r);)r=n.find(1,!0).line;return Co(r)+1}function Gr(e,t){var n=O&&t.markedSpans;if(n)for(var r,o=0;ot.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}function Jr(e,t,n,r){function o(e){return{start:d.start,end:d.pos,string:d.current(),type:i||null,state:e?ur(a.mode,c):c}}var i,a=e.doc,s=a.mode;t=Le(a,t);var l,u=Oo(a,t.line),c=st(e,t.line,n),d=new br(u.text,e.options.tabSize);for(r&&(l=[]);(r||d.pose.options.maxHighlightLength?(s=!1,a&&ro(e,t,r,d.pos),d.pos=t.length,l=null):l=Zr($r(n,d,r,p),i),p){var f=p[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||c!=l){for(;ue&&o.splice(l,1,e,o[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,l-n,e,"cm-overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength?ur(e.doc.mode,r):r);t.stateAfter=r,t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function ro(e,t,n,r){var o=e.doc.mode,i=new br(t,e.options.tabSize);for(i.start=i.pos=r||0,""==t&&Qr(o,n);!i.eol();)$r(o,i,n),i.start=i.pos}ii(Kr),Kr.prototype.lineNo=function(){return Co(this)};var oo={},io={};function ao(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?io:oo;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function so(e,t){var n=Pi("span",null,null,s?"padding-right: .1px":null),r={pre:Pi("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(i||s)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a,l=o?t.rest[o-1]:t.line;r.pos=0,r.addToken=lo,Wi(e.display.measure)&&(a=Ao(l))&&(r.addToken=uo(r.addToken,a)),r.map=[],po(l,r,no(e,l,t!=e.display.externalMeasured&&Co(l))),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=zi(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=zi(l.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Vi(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return $o(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=zi(r.pre.className,r.textClass||"")),r}function lo(e,t,n,r,o,s,l){if(t){var u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;ou&&p.from<=u)break}if(p.to>=c)return e(n,r,o,i,a,s,l);e(n,r.slice(0,p.to-u),o,i,null,s,l),i=null,r=r.slice(p.to-u),u=p.to}}}function co(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function po(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,l,u,c,d,p,f=o.length,h=0,m=(E=1,""),g=0;;){if(g==h){l=u=c=d=s="",p=null,g=1/0;for(var y,b=[],v=0;vh||x.collapsed&&w.to==h&&w.from==h)?(null!=w.to&&w.to!=h&&g>w.to&&(g=w.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==h&&(c+=" "+x.startStyle),x.endStyle&&w.to==g&&(y||(y=[])).push(x.endStyle,w.to),x.title&&!d&&(d=x.title),x.collapsed&&(!p||Dr(p.marker,x)<0)&&(p=w)):w.from>h&&g>w.from&&(g=w.from)}if(y)for(v=0;v=f)break;for(var _=Math.min(f,g);;){if(m){var O=h+m.length;if(!p){var S=O>_?m.slice(0,_-h):m;t.addToken(t,S,a?a+l:l,c,h+S.length==g?u:"",d,s)}if(O>=_){m=m.slice(_-h),h=_;break}h=O,c=""}m=o.slice(i,i=n[E++]),a=ao(n[E++],t.cm.options)}}else for(var E=1;E1&&e.remove(s.line+1,h-1),e.insert(s.line+1,m));ei(e,"change",e,t)}function mo(e){this.lines=e,this.parent=null;for(var t=0,n=0;t1||!(this.children[0]instanceof mo))){var s=[];this.collapse(s),this.children=[new mo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r=0;i--)zn(this,r[i]);s?Ve(this,s):this.cm&&Yn(this.cm)})),undo:$t((function(){qn(this,"undo")})),redo:$t((function(){qn(this,"redo")})),undoSelection:$t((function(){qn(this,"undo",!0)})),redoSelection:$t((function(){qn(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=Le(this,e),t=Le(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,(function(i){var a=i.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++o})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=i,++n})),Le(this,fe(n,t))},indexFromPos:function(e){var t=(e=Le(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(ta-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(i=function(e,t){return t?(Io(e.done),gi(e.done)):e.done.length&&!gi(e.done).ranges?gi(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),gi(e.done)):void 0}(o,o.lastOp==r))){var s=gi(i.changes);0==he(t.from,t.to)&&0==he(t.from,s.to)?s.to=Nn(t):i.changes.push(Mo(e,t))}else{var l=gi(o.done);for(l&&l.ranges||Do(e.sel,o.done),i={changes:[Mo(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=a,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,s||$o(e,"historyAdded")}function Do(e,t){var n=gi(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ro(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Lo(e){if(!e)return null;for(var t,n=0;n-1&&(gi(s)[d]=c[d],delete c[d])}}}return o}function zo(e,t,n,r){n0?r.slice():Xo:r||Xo}var Qo=S.off=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else for(var r=Zo(e,t,!1),o=0;o0}function ii(e){e.prototype.on=function(e,t){Ko(this,e,t)},e.prototype.off=function(e,t){Qo(this,e,t)}}var ai=30,si=S.Pass={toString:function(){return"CodeMirror.Pass"}},li={scroll:!1},ui={origin:"*mouse"},ci={origin:"+move"};function di(){this.id=null}di.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var pi=S.countColumn=function(e,t,n,r,o){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var i=r||0,a=o||0;;){var s=e.indexOf("\t",i);if(s<0||s>=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}},fi=S.findColumn=function(e,t,n){for(var r=0,o=0;;){var i=e.indexOf("\t",r);-1==i&&(i=e.length);var a=i-r;if(i==e.length||o+a>=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}},hi=[""];function mi(e){for(;hi.length<=e;)hi.push(gi(hi)+" ");return hi[e]}function gi(e){return e[e.length-1]}var yi=function(e){e.select()};function bi(e,t){for(var n=0;n"€"&&(e.toUpperCase()!=e.toLowerCase()||Si.test(e))};function ji(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Ei(e))||t.test(e):Ei(e)}function Ci(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ti,ki=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ai(e){return e.charCodeAt(0)>=768&&ki.test(e)}function Pi(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i0;--t)e.removeChild(e.firstChild);return e}function Ii(e,t){return Mi(e).appendChild(t)}Ti=document.createRange?function(e,t,n,r){var o=document.createRange();return o.setEnd(r||e,n),o.setStart(e,t),o}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ni=S.contains=function(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)};function Di(){for(var e=document.activeElement;e&&e.root&&e.root.activeElement;)e=e.root.activeElement;return e}function Ri(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}i&&a<11&&(Di=function(){try{return document.activeElement}catch(e){return document.body}});var Li=S.rmClass=function(e,t){var n=e.className,r=Ri(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}},Fi=S.addClass=function(e,t){var n=e.className;Ri(t).test(n)||(e.className+=(n?" ":"")+t)};function zi(e,t){for(var n=e.split(" "),r=0;r2&&!(i&&a<8))}var n=qi?Pi("span","​"):Pi("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Wi(e){if(null!=Ui)return Ui;var t=Ii(e,document.createTextNode("AخA")),n=Ti(t,0,1).getBoundingClientRect(),r=Ti(t,1,2).getBoundingClientRect();return Mi(e),!(!n||n.left==n.right)&&(Ui=r.right-n.right<3)}var Yi,Ki,Xi=S.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Zi=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Qi="oncopy"in(Yi=Pi("div"))||(Yi.setAttribute("oncopy","return;"),"function"==typeof Yi.oncopy),$i=null,Ji=S.keyNames={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};function ea(e){return e.level%2?e.to:e.from}function ta(e){return e.level%2?e.from:e.to}function na(e){var t=Ao(e);return t?ea(t[0]):0}function ra(e){var t=Ao(e);return t?ta(gi(t)):e.text.length}function oa(e,t){var n=Oo(e.doc,t),r=Br(n);r!=n&&(t=Co(r));var o=Ao(r),i=o?o[0].level%2?ra(r):na(r):0;return fe(t,i)}function ia(e,t){var n=oa(e,t.line),r=Oo(e.doc,n.line),o=Ao(r);if(!o||0==o[0].level){var i=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=i&&t.ch;return fe(n.line,a?0:i)}return n}function aa(e,t,n){var r=e[0].level;return t==r||n!=r&&tt)return r;if(o.from==t||o.to==t){if(null!=n)return aa(e,o.level,e[n].level)?(o.from!=o.to&&(Ki=n),r):(o.from!=o.to&&(Ki=r),n);n=r}}return n}function la(e,t,n,r){if(!r)return t+n;do{t+=n}while(t>0&&Ai(e.text.charAt(t)));return t}function ua(e,t,n,r){var o=Ao(e);if(!o)return ca(e,t,n,r);for(var i=sa(o,t),a=o[i],s=la(e,t,a.level%2?-n:n,r);;){if(s>a.from&&s0==(a=o[i+=n]).level%2?a.to:a.from;if(!(a=o[i+=n]))return null;s=n>0==a.level%2?la(e,a.to,-1,r):la(e,a.from,1,r)}}function ca(e,t,n,r){var o=t+n;if(r)for(;o>0&&Ai(e.text.charAt(o));)o+=n;return o<0||o>e.text.length?null:o}!function(){for(var e=0;e<10;e++)Ji[e+48]=Ji[e+96]=String(e);for(e=65;e<=90;e++)Ji[e]=String.fromCharCode(e);for(e=1;e<=12;e++)Ji[e+111]=Ji[e+63235]="F"+e}();var da=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,o=/[1n]/;function i(e,t,n){this.level=e,this.from=t,this.to=n}return function(a){if(!e.test(a))return!1;for(var s,l=a.length,u=[],c=0;c)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}e.defineMode("javascript",(function(n,r){var o,i,a=n.indentUnit,s=r.statementIndent,l=r.jsonld,u=r.json||l,c=r.typescript,d=r.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),o=e("operator"),i={type:"atom",style:"atom"},a={if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:e("new"),delete:r,throw:r,debugger:r,var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r,async:e("async")};if(c){var s={type:"variable",style:"variable-3"},l={interface:e("class"),implements:r,namespace:r,module:e("module"),enum:e("module"),public:e("modifier"),private:e("modifier"),protected:e("modifier"),abstract:e("modifier"),as:o,string:s,number:s,boolean:s,any:s};for(var u in l)a[u]=l[u]}return a}(),f=/[+\-*&%=<>!?|~^]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return o=e,i=n,t}function g(e,n){var r,o=e.next();if('"'==o||"'"==o)return n.tokenize=(r=o,function(e,t){var n,o=!1;if(l&&"@"==e.peek()&&e.match(h))return t.tokenize=g,m("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||o);)o=!o&&"\\"==n;return o||(t.tokenize=g),m("string","string")}),n.tokenize(e,n);if("."==o&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return m("number","number");if("."==o&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(o))return m(o);if("="==o&&e.eat(">"))return m("=>","operator");if("0"==o&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),m("number","number");if("0"==o&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),m("number","number");if("0"==o&&e.eat(/b/i))return e.eatWhile(/[01]/i),m("number","number");if(/\d/.test(o))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),m("number","number");if("/"==o)return e.eat("*")?(n.tokenize=y,y(e,n)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):t(e,n,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),m("regexp","string-2")):(e.eatWhile(f),m("operator","operator",e.current()));if("`"==o)return n.tokenize=b,b(e,n);if("#"==o)return e.skipToEnd(),m("error","error");if(f.test(o))return e.eatWhile(f),m("operator","operator",e.current());if(d.test(o)){e.eatWhile(d);var i=e.current(),a=p.propertyIsEnumerable(i)&&p[i];return a&&"."!=n.lastType?m(a.type,a.style,i):m("variable","variable",i)}}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function b(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}function v(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){for(var r=0,o=!1,i=n-1;i>=0;--i){var a=e.string.charAt(i),s="([{}])".indexOf(a);if(s>=0&&s<3){if(!r){++i;break}if(0==--r){"("==a&&(o=!0);break}}else if(s>=3&&s<6)++r;else if(d.test(a))o=!0;else{if(/["'\/]/.test(a))return;if(o&&!r){++i;break}}}o&&!r&&(t.fatArrowAt=i)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function x(e,t,n,r,o,i){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=i,null!=r&&(this.align=r)}function _(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var O={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)O.cc.push(arguments[e])}function E(){return S.apply(null,arguments),!0}function j(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var n=O.state;if(O.marked="def",n.context){if(t(n.localVars))return;n.localVars={name:e,next:n.localVars}}else{if(t(n.globalVars))return;r.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}var C={name:"this",next:{name:"arguments"}};function T(){O.state.context={prev:O.state.context,vars:O.state.localVars},O.state.localVars=C}function k(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}function A(e,t){var n=function(){var n=O.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new x(r,O.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function P(){var e=O.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function M(e){return function t(n){return n==e?E():";"==e?S():E(t)}}function I(e,t){return"var"==e?E(A("vardef",t.length),le,M(";"),P):"keyword a"==e?E(A("form"),N,I,P):"keyword b"==e?E(A("form"),I,P):"{"==e?E(A("}"),ee,P):";"==e?E():"if"==e?("else"==O.state.lexical.info&&O.state.cc[O.state.cc.length-1]==P&&O.state.cc.pop()(),E(A("form"),N,I,P,fe)):"function"==e?E(ve):"for"==e?E(A("form"),he,I,P):"variable"==e?E(A("stat"),Y):"switch"==e?E(A("form"),N,A("}","switch"),M("{"),ee,P,P):"case"==e?E(N,M(":")):"default"==e?E(M(":")):"catch"==e?E(A("form"),T,M("("),we,M(")"),I,P,k):"class"==e?E(A("form"),xe,P):"export"==e?E(A("stat"),Ee,P):"import"==e?E(A("stat"),je,P):"module"==e?E(A("form"),ue,A("}"),M("{"),ee,P,P):"async"==e?E(I):S(A("stat"),N,M(";"),P)}function N(e){return R(e,!1)}function D(e){return R(e,!0)}function R(e,t){if(O.state.fatArrowAt==O.stream.start){var n=t?H:G;if("("==e)return E(T,A(")"),$(ue,")"),P,M("=>"),n,k);if("variable"==e)return S(T,ue,M("=>"),n,k)}var r=t?B:z;return w.hasOwnProperty(e)?E(r):"function"==e?E(ve,r):"keyword c"==e||"async"==e?E(t?F:L):"("==e?E(A(")"),L,M(")"),P,r):"operator"==e||"spread"==e?E(t?D:N):"["==e?E(A("]"),Ae,P,r):"{"==e?J(X,"}",null,r):"quasi"==e?S(q,r):"new"==e?E(function(e){return function(t){return"."==t?E(e?W:V):S(e?D:N)}}(t)):E()}function L(e){return e.match(/[;\}\)\],]/)?S():S(N)}function F(e){return e.match(/[;\}\)\],]/)?S():S(D)}function z(e,t){return","==e?E(N):B(e,t,!1)}function B(e,t,n){var r=0==n?z:B,o=0==n?N:D;return"=>"==e?E(T,n?H:G,k):"operator"==e?/\+\+|--/.test(t)?E(r):"?"==t?E(N,M(":"),o):E(o):"quasi"==e?S(q,r):";"!=e?"("==e?J(D,")","call",r):"."==e?E(K,r):"["==e?E(A("]"),L,M("]"),P,r):void 0:void 0}function q(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?E(q):E(N,U)}function U(e){if("}"==e)return O.marked="string-2",O.state.tokenize=b,E(q)}function G(e){return v(O.stream,O.state),S("{"==e?I:N)}function H(e){return v(O.stream,O.state),S("{"==e?I:D)}function V(e,t){if("target"==t)return O.marked="keyword",E(z)}function W(e,t){if("target"==t)return O.marked="keyword",E(B)}function Y(e){return":"==e?E(P,I):S(z,M(";"),P)}function K(e){if("variable"==e)return O.marked="property",E()}function X(e,t){return"async"==e?(O.marked="property",E(X)):"variable"==e||"keyword"==O.style?(O.marked="property",E("get"==t||"set"==t?Z:Q)):"number"==e||"string"==e?(O.marked=l?"property":O.style+" property",E(Q)):"jsonld-keyword"==e?E(Q):"modifier"==e?E(X):"["==e?E(N,M("]"),Q):"spread"==e?E(N):":"==e?S(Q):void 0}function Z(e){return"variable"!=e?S(Q):(O.marked="property",E(ve))}function Q(e){return":"==e?E(D):"("==e?S(ve):void 0}function $(e,t){function n(r,o){if(","==r){var i=O.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),E((function(n,r){return n==t||r==t?S():S(e)}),n)}return r==t||o==t?E():E(M(t))}return function(r,o){return r==t||o==t?E():S(e,n)}}function J(e,t,n){for(var r=3;r"==e)return E(re)}function ie(e){return"variable"==e||"keyword"==O.style?(O.marked="property",E(ie)):":"==e?E(re):void 0}function ae(e){return"variable"==e?E(ae):":"==e?E(re):void 0}function se(e,t){return"<"==t?E($(re,">"),se):"["==e?E(M("]"),se):void 0}function le(){return S(ue,te,de,pe)}function ue(e,t){return"modifier"==e?E(ue):"variable"==e?(j(t),E()):"spread"==e?E(ue):"["==e?J(ue,"]"):"{"==e?J(ce,"}"):void 0}function ce(e,t){return"variable"!=e||O.stream.match(/^\s*:/,!1)?("variable"==e&&(O.marked="property"),"spread"==e?E(ue):"}"==e?S():E(M(":"),ue,de)):(j(t),E(de))}function de(e,t){if("="==t)return E(D)}function pe(e){if(","==e)return E(le)}function fe(e,t){if("keyword b"==e&&"else"==t)return E(A("form","else"),I,P)}function he(e){if("("==e)return E(A(")"),me,M(")"),P)}function me(e){return"var"==e?E(le,M(";"),ye):";"==e?E(ye):"variable"==e?E(ge):S(N,M(";"),ye)}function ge(e,t){return"in"==t||"of"==t?(O.marked="keyword",E(N)):E(z,ye)}function ye(e,t){return";"==e?E(be):"in"==t||"of"==t?(O.marked="keyword",E(N)):S(N,M(";"),be)}function be(e){")"!=e&&E(N)}function ve(e,t){return"*"==t?(O.marked="keyword",E(ve)):"variable"==e?(j(t),E(ve)):"("==e?E(T,A(")"),$(we,")"),P,te,I,k):void 0}function we(e){return"spread"==e?E(we):S(ue,te,ne)}function xe(e,t){if("variable"==e)return j(t),E(_e)}function _e(e,t){return"extends"==t?E(c?re:N,_e):"{"==e?E(A("}"),Oe,P):void 0}function Oe(e,t){return"variable"==e||"keyword"==O.style?"static"==t?(O.marked="keyword",E(Oe)):(O.marked="property","get"==t||"set"==t?E(Se,ve,Oe):E(ve,Oe)):"*"==t?(O.marked="keyword",E(Oe)):";"==e?E(Oe):"}"==e?E():void 0}function Se(e){return"variable"!=e?S():(O.marked="property",E())}function Ee(e,t){return"*"==t?(O.marked="keyword",E(ke,M(";"))):"default"==t?(O.marked="keyword",E(N,M(";"))):S(I)}function je(e){return"string"==e?E():S(Ce,ke)}function Ce(e,t){return"{"==e?J(Ce,"}"):("variable"==e&&j(t),"*"==t&&(O.marked="keyword"),E(Te))}function Te(e,t){if("as"==t)return O.marked="keyword",E(Ce)}function ke(e,t){if("from"==t)return O.marked="keyword",E(N)}function Ae(e){return"]"==e?E():S($(D,"]"))}return P.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-a,0,"block",!1),localVars:r.localVars,context:r.localVars&&{vars:r.localVars},indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),v(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==o?n:(t.lastType="operator"!=o||"++"!=i&&"--"!=i?o:"incdec",function(e,t,n,r,o){var i=e.cc;for(O.state=e,O.stream=o,O.marked=null,O.cc=i,O.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():u?N:I)(n,r)){for(;i.length&&i[i.length-1].lex;)i.pop()();return O.marked?O.marked:"variable"==n&&_(e,r)?"variable-2":t}}(t,n,o,i,e))},indent:function(t,n){if(t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var o=n&&n.charAt(0),i=t.lexical;if(!/^\s*else\b/.test(n))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==P)i=i.prev;else if(u!=fe)break}"stat"==i.type&&"}"==o&&(i=i.prev),s&&")"==i.type&&"stat"==i.prev.type&&(i=i.prev);var c=i.type,d=o==c;return"vardef"==c?i.indented+("operator"==t.lastType||","==t.lastType?i.info+1:0):"form"==c&&"{"==o?i.indented:"form"==c?i.indented+a:"stat"==c?i.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?s||a:0):"switch"!=i.info||d||0==r.doubleIndentSwitch?i.align?i.column+(d?0:1):i.indented+(d?0:a):i.indented+(/^(?:case|default)\b/.test(n)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:l,jsonMode:u,expressionAllowed:t,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=N&&t!=D||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n("./node_modules/codemirror/lib/codemirror.js"))},"./node_modules/codemirror/mode/xml/xml.js":function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};e.defineMode("xml",(function(r,o){var i,a,s=r.indentUnit,l={},u=o.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in o)l[c]=o[c];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(f("atom","]]>")):null:e.match("--")?n(f("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(function e(t){return function(n,r){for(var o;null!=(o=n.next());){if("<"==o)return r.tokenize=e(t+1),r.tokenize(n,r);if(">"==o){if(1==t){r.tokenize=d;break}return r.tokenize=e(t-1),r.tokenize(n,r)}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=f("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=p,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function p(e,t){var n,r,o=e.next();if(">"==o||"/"==o&&e.eat(">"))return t.tokenize=d,i=">"==o?"endTag":"selfcloseTag","tag bracket";if("="==o)return i="equals",null;if("<"==o){t.tokenize=d,t.state=y,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(o)?(t.tokenize=(n=o,(r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=p;break}return"string"}).isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function h(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function g(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function y(e,t,n){return"openTag"==e?(n.tagStart=t.column(),b):"closeTag"==e?v:y}function b(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",_):(a="error",b)}function v(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",w):(a="tag error",x)}return a="error",x}function w(e,t,n){return"endTag"!=e?(a="error",w):(m(n),y)}function x(e,t,n){return a="error",w(e,0,n)}function _(e,t,n){if("word"==e)return a="attribute",O;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(r)?g(n,r):(g(n,r),n.context=new h(n,r,o==n.indented)),y}return a="error",_}function O(e,t,n){return"equals"==e?S:(l.allowMissing||(a="error"),_(e,0,n))}function S(e,t,n){return"string"==e?E:"word"==e&&l.allowUnquoted?(a="string",_):(a="error",_(e,0,n))}function E(e,t,n){return"string"==e?E:_(e,0,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:y,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;i=null;var n=t.tokenize(e,t);return(n||i)&&"comment"!=n&&(a=null,t.state=t.state(i||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=p&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==S&&(e.state=_)}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n("./node_modules/codemirror/lib/codemirror.js"))},"./node_modules/copy-to-clipboard/index.js":function(e,t,n){"use strict";var r=n("./node_modules/toggle-selection/index.js"),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},"./node_modules/core-js/library/fn/array/from.js":function(e,t,n){n("./node_modules/core-js/library/modules/es6.string.iterator.js"),n("./node_modules/core-js/library/modules/es6.array.from.js"),e.exports=n("./node_modules/core-js/library/modules/_core.js").Array.from},"./node_modules/core-js/library/fn/object/define-property.js":function(e,t,n){n("./node_modules/core-js/library/modules/es6.object.define-property.js");var r=n("./node_modules/core-js/library/modules/_core.js").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"./node_modules/core-js/library/fn/object/entries.js":function(e,t,n){n("./node_modules/core-js/library/modules/es7.object.entries.js"),e.exports=n("./node_modules/core-js/library/modules/_core.js").Object.entries},"./node_modules/core-js/library/fn/object/get-prototype-of.js":function(e,t,n){n("./node_modules/core-js/library/modules/es6.object.get-prototype-of.js"),e.exports=n("./node_modules/core-js/library/modules/_core.js").Object.getPrototypeOf},"./node_modules/core-js/library/fn/object/values.js":function(e,t,n){n("./node_modules/core-js/library/modules/es7.object.values.js"),e.exports=n("./node_modules/core-js/library/modules/_core.js").Object.values},"./node_modules/core-js/library/modules/_create-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/library/modules/_object-dp.js"),o=n("./node_modules/core-js/library/modules/_property-desc.js");e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},"./node_modules/core-js/library/modules/_is-array-iter.js":function(e,t,n){var r=n("./node_modules/core-js/library/modules/_iterators.js"),o=n("./node_modules/core-js/library/modules/_wks.js")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},"./node_modules/core-js/library/modules/_iter-call.js":function(e,t,n){var r=n("./node_modules/core-js/library/modules/_an-object.js");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},"./node_modules/core-js/library/modules/_iter-detect.js":function(e,t,n){var r=n("./node_modules/core-js/library/modules/_wks.js")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},"./node_modules/core-js/library/modules/_object-to-array.js":function(e,t,n){var r=n("./node_modules/core-js/library/modules/_descriptors.js"),o=n("./node_modules/core-js/library/modules/_object-keys.js"),i=n("./node_modules/core-js/library/modules/_to-iobject.js"),a=n("./node_modules/core-js/library/modules/_object-pie.js").f;e.exports=function(e){return function(t){for(var n,s=i(t),l=o(s),u=l.length,c=0,d=[];u>c;)n=l[c++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},"./node_modules/core-js/library/modules/es6.array.from.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/library/modules/_ctx.js"),o=n("./node_modules/core-js/library/modules/_export.js"),i=n("./node_modules/core-js/library/modules/_to-object.js"),a=n("./node_modules/core-js/library/modules/_iter-call.js"),s=n("./node_modules/core-js/library/modules/_is-array-iter.js"),l=n("./node_modules/core-js/library/modules/_to-length.js"),u=n("./node_modules/core-js/library/modules/_create-property.js"),c=n("./node_modules/core-js/library/modules/core.get-iterator-method.js");o(o.S+o.F*!n("./node_modules/core-js/library/modules/_iter-detect.js")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,d,p=i(e),f="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m,y=0,b=c(p);if(g&&(m=r(m,h>2?arguments[2]:void 0,2)),null==b||f==Array&&s(b))for(n=new f(t=l(p.length));t>y;y++)u(n,y,g?m(p[y],y):p[y]);else for(d=b.call(p),n=new f;!(o=d.next()).done;y++)u(n,y,g?a(d,m,[o.value,y],!0):o.value);return n.length=y,n}})},"./node_modules/core-js/library/modules/es6.object.define-property.js":function(e,t,n){var r=n("./node_modules/core-js/library/modules/_export.js");r(r.S+r.F*!n("./node_modules/core-js/library/modules/_descriptors.js"),"Object",{defineProperty:n("./node_modules/core-js/library/modules/_object-dp.js").f})},"./node_modules/core-js/library/modules/es6.object.get-prototype-of.js":function(e,t,n){var r=n("./node_modules/core-js/library/modules/_to-object.js"),o=n("./node_modules/core-js/library/modules/_object-gpo.js");n("./node_modules/core-js/library/modules/_object-sap.js")("getPrototypeOf",(function(){return function(e){return o(r(e))}}))},"./node_modules/core-js/library/modules/es7.object.entries.js":function(e,t,n){var r=n("./node_modules/core-js/library/modules/_export.js"),o=n("./node_modules/core-js/library/modules/_object-to-array.js")(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},"./node_modules/core-js/library/modules/es7.object.values.js":function(e,t,n){var r=n("./node_modules/core-js/library/modules/_export.js"),o=n("./node_modules/core-js/library/modules/_object-to-array.js")(!1);r(r.S,"Object",{values:function(e){return o(e)}})},"./node_modules/create-react-class/factory.js":function(e,t,n){"use strict";var r=n("./node_modules/object-assign/index.js"),o=n("./node_modules/fbjs/lib/emptyObject.js"),i=n("./node_modules/fbjs/lib/invariant.js");e.exports=function(e,t,n){var a=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n .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/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/settingsModal.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"\r\n.msgapi #mapstore-layer-settings {\r\n min-width: 400px;\r\n}\r\n\r\n.msgapi .portal-dialog {\r\n position: absolute;\r\n}\r\n\r\n@media all and (min-width: 635px) {\r\n .msgapi .portal-dialog {\r\n left: calc(50% - 315px);\r\n top: 100px;\r\n max-width: 630px;\r\n background-color: #fff;\r\n }\r\n}\r\n\r\n@media all and (max-width: 634px) {\r\n .msgapi .portal-dialog {\r\n width: 100%;\r\n }\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?!./MapStore2/web/client/components/TOC/fragments/settings/css/elevation.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mapstore-elevation {\r\n width: 100%;\r\n /*margin-top: -46px;*/\r\n height: 80px;\r\n padding: 0 5px;\r\n}\r\n\r\n.msgapi label#mapstore-elevation-label {\r\n margin-top: 10px;\r\n}\r\n\r\n.msgapi .custom-tooltip {\r\n width: auto;\r\n margin: 0;\r\n line-height: 24px;\r\n border: 1px solid #C1C1C1;\r\n background-color: rgba(255, 255, 255, 0.8);\r\n padding: 5px;\r\n}\r\n.msgapi .custom-tooltip .label {\r\n margin: 0;\r\n color: #82CA9D;\r\n font-weight: bold;\r\n font-size: 16px;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/background/css/previewbutton.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"\r\n.msgapi .background-preview-button-label {\r\n position: absolute;\r\n overflow: hidden;\r\n font-weight: bold;\r\n font-size: 12px;\r\n text-align: center;\r\n -webkit-transition: all 0.0s;\r\n -moz-transition: all 0.0s;\r\n -o-transition: all 0.0s;\r\n transition: all 0.0s;\r\n\r\n}\r\n\r\n.msgapi .background-preview-button-label div {\r\n overflow: hidden;\r\n opacity: 0.8;\r\n box-shadow: 0 7px 14px rgba(0,0,0,0.12), 0 5px 5px rgba(0,0,0,0.11);\r\n -webkit-box-shadow: 0 7px 14px rgba(0,0,0,0.12), 0 5px 5px rgba(0,0,0,0.11);\r\n -moz-box-shadow: 0 7px 14px rgba(0,0,0,0.12), 0 5px 5px rgba(0,0,0,0.11);\r\n}\r\n\r\n.msgapi .background-preview-button-container {\r\n -webkit-transition: all 0.3s;\r\n -moz-transition: all 0.3s;\r\n -o-transition: all 0.3s;\r\n transition: all 0.3s;\r\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -moz-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n}\r\n\r\n.msgapi .background-preview-button-frame {\r\n overflow: hidden;\r\n -webkit-transition: all 0.3s;\r\n -moz-transition: all 0.3s;\r\n -o-transition: all 0.3s;\r\n transition: all 0.3s;\r\n}\r\n\r\n.msgapi .background-preview-button-frame img{\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.msgapi .background-preview-button-container:hover {\r\n cursor: pointer;\r\n box-shadow: none;\r\n}\r\n\r\n.msgapi .background-preview-button-container:active {\r\n opacity: 0.6;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/background/css/previewicon.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"\r\n.msgapi .background-preview-icon-frame {\r\n overflow: hidden;\r\n}\r\n\r\n.msgapi .background-preview-icon-frame img{\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.msgapi .background-preview-icon-container-horizontal {\r\n cursor: pointer;\r\n float: left;\r\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -moz-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n}\r\n\r\n.msgapi .background-preview-icon-container-horizontal:hover {\r\n cursor: pointer;\r\n box-shadow: none;\r\n opacity: 0.9;\r\n}\r\n\r\n.msgapi .background-preview-icon-container-horizontal:active {\r\n opacity: 0.6;\r\n}\r\n\r\n.msgapi .background-preview-icon-container-horizontal.disabled-icon {\r\n cursor: not-allowed;\r\n float: left;\r\n opacity: 0.5;\r\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -moz-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n}\r\n\r\n.msgapi .background-preview-icon-container-vertical {\r\n cursor: pointer;\r\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -moz-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n}\r\n\r\n.msgapi .background-preview-icon-container-vertical:hover {\r\n cursor: pointer;\r\n box-shadow: none;\r\n opacity: 0.9;\r\n}\r\n\r\n.msgapi .background-preview-icon-container-vertical:active {\r\n opacity: 0.6;\r\n}\r\n\r\n.msgapi .background-preview-icon-container-vertical.disabled-icon {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -moz-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/data/featuregrid/toolbars/toolbar.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"\r\n.msgapi .featuregrid-toolbar {\r\n margin-top: 5px;\r\n margin-bottom: 5px;\r\n}\r\n\r\n.msgapi #featuregrid-toolbar .btn {\r\n overflow: hidden;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/data/query/queryform.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/help/help.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .mapToolbar .mapstore-tb-helpbadge {\r\n display: block;\r\n background-color: #777;\r\n position: absolute;\r\n z-index: 1000;\r\n top : -10px;\r\n left: -10px;\r\n}\r\n\r\n\r\n.msgapi #helpbadge-zoomToMaxExtent {\r\n display: inline;\r\n position: absolute;\r\n left: 34px;\r\n top: 72px;\r\n z-index: 100000\r\n}\r\n\r\n.msgapi #helpbadge-scaleBox {\r\n display: inline;\r\n position: absolute;\r\n left: 116px;\r\n bottom: 48px;\r\n z-index: 100000\r\n}\r\n\r\n.msgapi #helpbadge-seachBar {\r\n display: inline;\r\n position: absolute;\r\n left: 46px;\r\n top: 10px;\r\n z-index: 100000\r\n}\r\n\r\n\r\n.msgapi .btn .badge {\r\n position: absolute;\r\n top: -10px;\r\n left: -10px;\r\n}\r\n\r\n.msgapi .themed .btn .badge {\r\n top: -35px;\r\n left: -50px;\r\n}\r\n\r\n.msgapi .badge {\r\n cursor: pointer;\r\n}\r\n\r\n.msgapi #helpbadge-scaleBox {\r\n left: 0 !important;\r\n}\r\n\r\n.msgapi #mapstore-navbar #helpbadge-search-help {\r\n position: absolute;\r\n left: -10px;\r\n bottom: -8px;\r\n z-index: 1;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/mapcontrols/mouseposition/mousePosition.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i," .msgapi #mapstore-mouseposition {\r\n z-index: 10;\r\n top: -10px;\r\n right: 45%;\r\n position: absolute;\r\n margin: 8px;\r\n text-shadow: -1px -1px 1px #000,\r\n 1px -1px 1px #000,\r\n -1px 1px 1px #000,\r\n 1px 1px 1px #000;\r\n}\r\n\r\n.msgapi #mapstore-mouseposition .label {\r\n max-width: 350px;\r\n min-width: 200px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n vertical-align: middle;\r\n\r\n}\r\n\r\n.msgapi #mapstore-mouseposition .label-info {\r\n background-color:rgba(91,192,222,0);\r\n color: white;\r\n font-size: 110%;\r\n}\r\n\r\n.msgapi #mapstore-mouseposition h5 {\r\n display: inline-block;\r\n}\r\n\r\n\r\n.msgapi #mapstore-mousepositionsettings .form-group {\r\n margin-bottom: 0 !important;\r\n}\r\n\r\n.msgapi #mapstore-mousepositionsettings select, .msgapi #mapstore-mousepositionsettings button {\r\n width: 60% !important;\r\n float: right;\r\n height: 35px;\r\n}\r\n\r\n.msgapi #mapstore-mousepositionsettings label {\r\n width: 100% !important;\r\n}\r\n\r\n\r\n.msgapi #mapstore-mouseposition .label-info {\r\n white-space: normal;\r\n color: black;\r\n font-size: 110%;\r\n padding: 0;\r\n}\r\n\r\n.msgapi #mapstore-mouseposition {\r\n bottom: 5px;\r\n right: 264px;\r\n top: auto;\r\n margin: 0;\r\n text-shadow: none;\r\n background-color: white;\r\n width: 160px;\r\n height: 46px;\r\n padding-left: 5px;\r\n padding-top: 2px;\r\n}\r\n\r\n.msgapi #mapstore-mouseposition h5 {\r\n margin-top: 5px;\r\n}\r\n\r\n.msgapi .mouseposition-separator {\r\n display: block;\r\n}\r\n\r\n.msgapi #mapstore-mouseposition-mobile {\r\n bottom: 25px;\r\n right: 30px;\r\n z-index: 10;\r\n position: absolute;\r\n text-shadow: -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, 1px 1px 1px #000;\r\n }\r\n\r\n.msgapi #mapstore-mouseposition-mobile .label {\r\n display: inline-block;\r\n max-width: 280px;\r\n min-width: 200px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n vertical-align: middle;\r\n}\r\n\r\n.msgapi #mapstore-mouseposition-mobile .label-info {\r\n background-color:rgba(91,192,222,0);\r\n color: white;\r\n font-size: 90%;\r\n}\r\n\r\n.msgapi #mapstore-mouseposition .form-group {\r\n float: right;\r\n}\r\n\r\n.msgapi #mapstore-mouseposition .form-group .control-label {\r\n display: none;\r\n}\r\n\r\n.msgapi #mapstore-mouseposition .form-group select {\r\n width: 90px;\r\n font-size: 11px;\r\n padding: 2px;\r\n}\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":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,'\r\n\r\n.msgapi .ql-snow .ms-ql-iframe-tooltip[data-mode=video]::before {\r\n content: "Enter iframe url:";\r\n}\r\n\r\n\r\n',""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/misc/style/filter.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .mapstore-filter input::-ms-clear,\r\n.msgapi .mapstore-filter input::-ms-reveal {\r\n display: none;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/burgermenu/burgermenu.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mapstore-burger-menu {\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n}\r\n\r\n.msgapi .burger-menu-submenu {\r\n display: none;\r\n position: absolute;\r\n left: -160px;\r\n top: 0px;\r\n background-color: white;\r\n width: 160px;\r\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\r\n}\r\n\r\n.msgapi .burger-menu-submenu li:hover {\r\n background-color: #dddddd;\r\n}\r\n\r\n.msgapi .burger-menu-submenu li a {\r\n display: block;\r\n padding: 10px 15px;\r\n}\r\n\r\n.msgapi .burger-menu-submenu li a:hover {\r\n text-decoration: none;\r\n background-color: #dddddd;\r\n}\r\n\r\n.msgapi #mapstore-burger-menu .dropdown-menu > li > a:hover > span > .burger-menu-submenu,\r\n.msgapi .burger-menu-submenu > li > a:hover > span > .burger-menu-submenu {\r\n display: block;\r\n}\r\n\r\n.msgapi .burger-menu-submenu span {\r\n overflow: hidden;\r\n}\r\n\r\n.msgapi #mapstore-navbar #mapstore-burger-menu {\r\n position: relative;\r\n float: right;\r\n left: 0;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/drawer/drawer.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"/* Menu Button */\r\n.msgapi .drawer-menu-button {\r\n position: absolute;\r\n z-index:1000;\r\n left: 30px;\r\n top: 8px;\r\n width:30px;\r\n background: transparent;\r\n outline: none;\r\n border: transparent;\r\n font-size: 14px;\r\n}\r\n\r\n.msgapi .drawer-menu-button:hover {\r\n background: transparent;\r\n}\r\n\r\n.msgapi #drawer-menu-button:active{\r\n box-shadow: none;\r\n}\r\n\r\n.msgapi #mapstore-drawermenu > div > div:nth-child(2) {\r\n display: none;\r\n}\r\n\r\n.msgapi .nav-content #background-switcher .thumbnail {\r\n border-radius: 0 !important;\r\n margin-bottom: 40px;\r\n width: 220px !important;\r\n}\r\n.msgapi .nav-content #background-switcher .thumbnail img {\r\n border-radius: 0 !important;\r\n height: 90px;\r\n width: 220px !important;\r\n}\r\n\r\n.msgapi .nav-content #background-switcher .thumbnail .caption {\r\n font-size: 14px !important;\r\n text-align: left !important;\r\n top: -20px !important;\r\n position: absolute !important;\r\n}\r\n\r\n.msgapi .nav-content #background-switcher {\r\n margin-top: 10px;\r\n}\r\n\r\n.msgapi #mapstore-drawermenu .panel {\r\n border: none;\r\n box-shadow: none;\r\n}\r\n\r\n.msgapi div.nav-menu {\r\n -webkit-transform: translate3d(300px, 0, 0);\r\n -moz-transform: \t translate3d(300px, 0, 0);\r\n -ms-transform: \t\t translate3d(300px, 0, 0);\r\n -o-transform: \t\t translate3d(300px, 0, 0);\r\n box-shadow: 2px 0px 15px #A7A7A7;\r\n}\r\n\r\n.msgapi .nav-menu .navHeader {\r\n height: 50px;\r\n}\r\n.msgapi .nav-menu > .nav-content .navHeader .title{\r\n font-size: 16px;\r\n position: absolute;\r\n margin: 13px;\r\n font-weight: bold;\r\n}\r\n.msgapi .nav-content .section {\r\n margin-bottom: 2px;\r\n}\r\n.msgapi .nav-content .section .sectionHeader{\r\n padding: 5px;\r\n cursor: pointer;\r\n}\r\n.msgapi .nav-content .section .sectionHeader>.glyphicon{\r\n /* Firefox */\r\n -moz-transition: all .3s ease;\r\n /* WebKit */\r\n -webkit-transition: all .3s ease;\r\n /* Opera */\r\n -o-transition: all .3s ease;\r\n /* Standard */\r\n transition: all .3s ease;\r\n}\r\n.msgapi .nav-content .section .sectionTitle{\r\n padding-left: 10px;\r\n\r\n}\r\n.msgapi .nav-content .section .sectionContent{\r\n -moz-transition: max-height .3s ease;\r\n -webkit-transition: max-height .3s ease;\r\n -o-transition: max-height .3s ease;\r\n transition: max-height .3s ease;\r\n\r\n box-shadow: inset 0px 0px 10px rgba(0,0,0,.5);\r\n padding: 5px;\r\n}\r\n\r\n.msgapi .navButtons {\r\n float: right;\r\n}\r\n\r\n.msgapi #drawer-menu-button {\r\n position: absolute;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/identify/identify.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .swipe-header-left-button {\r\n float: left;\r\n}\r\n\r\n.msgapi .swipe-header-right-button {\r\n float: right;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/locate/locate.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #locate-btn {\r\n position: absolute;\r\n z-index: 1000;\r\n right: 10px;\r\n bottom: 150px;\r\n}\r\n\r\n.msgapi #mapstore-toolbar #locate-btn {\r\n position: static;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/map/css/map.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .mapErrorMessage {\r\n font-size: 16px;\r\n color: red;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/maploading/maploading.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mapstore-globalspinner {\r\n width: 28px;\r\n height: 28px;\r\n box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.2);\r\n background-color: white;\r\n background-size: 80px 80px;\r\n background-repeat: no-repeat;\r\n border-radius: 4px;\r\n border: 1px solid #999;\r\n z-index: 10;\r\n top: 90px;\r\n left: 2px;\r\n position: absolute;\r\n margin: 8px;\r\n}\r\n\r\n.msgapi #mapstore-globalspinner .circle-wrapper {\r\n margin-left: 2px;\r\n margin-top: 1px;\r\n}\r\n\r\n.msgapi #mapstore-toolbar #mapstore-globalspinner {\r\n position: static;\r\n width: 42px;\r\n margin: 0;\r\n margin-top: 0;\r\n height: 35px;\r\n box-shadow: none;\r\n}\r\n\r\n.msgapi .ms2-loading .sk-circle-wrapper {\r\n width: 30px;\r\n height: 30px;\r\n margin-left: 10px !important;\r\n margin-top: 10px !important;\r\n }\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/metadataexplorer/css/style.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi div.record-grid {\r\n padding-left: 0;\r\n padding-right: 0;\r\n}\r\n\r\n.msgapi div.record-grid .record-item{\r\n height: auto;\r\n}\r\n.msgapi div.record-grid .record-item .panel-body{\r\n padding: 0;\r\n}\r\n\r\n.msgapi #mapstore-catalog-panel button.search-button {\r\n margin-bottom: 10px;\r\n}\r\n\r\n.msgapi #mapstore-catalog-panel .record-item {\r\n min-height: 150px;\r\n}\r\n.msgapi #catalog-root {\r\n position: static!important;\r\n}\r\n\r\n/*\r\n!important is needed because the library we used\r\nuse inline style which cannot be overridden unless\r\nwe use !important*/\r\n@media (max-width: 500px) {\r\n .msgapi div .catalog-sidebar.nav-menu {\r\n width: 100% !important\r\n }\r\n}\r\n\r\n.msgapi #mapstore-metadata-explorer{\r\n margin-bottom: 0\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/omnibar/omnibar.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"/*viewer navbar */\r\n.msgapi .navbar-dx{\r\n\tposition:absolute;\r\n\tright:0;\r\n\ttop:0;\r\n}\r\n\r\n.msgapi .navbar-dx > ul{\r\n\tpadding:0;\r\n}\r\n\r\n.msgapi .navbar-dx > ul > li{\r\n\tfloat: left;\r\n\tlist-style:none;\r\n}\r\n\r\n.msgapi .navbar-dx .search-wrap .MapSearchBar{\r\n right: 0;\r\n top: 0;\r\n left: 0;\r\n}\r\n\r\n.msgapi .navbar-dx .search-wrap .form-control,.msgapi .navbar-dx .search-wrap .form-control:focus{\r\n border-color: #fff;\r\n border-right: 0;\r\n webkit-box-shadow: none;\r\n box-shadow: none;\r\n}\r\n.msgapi .navbar-dx .search-wrap .MapSearchBar .input-group-addon{\r\n border: 0;\r\n}\r\n.msgapi .navbar-dx .search-result-list{\r\n left: 0;\r\n max-height: none;\r\n}\r\n\r\n.msgapi .navbar-dx .dropdown-menu {\r\n\tmargin:0;\r\n\tpadding-top: 0;\r\n}\r\n\r\n@media (min-width: 1200px) {\r\n .msgapi .navbar-dx .search-wrap {\r\n width: 500px;\r\n height: 50px;\r\n }\r\n}\r\n\r\n.msgapi .navbar-dx > * {\r\n\tdisplay: inline-block;\r\n}\r\n/* Page Navbar */\r\n.msgapi .navbar-home .dropdown {\r\n\tfloat: right;\r\n}\r\n.msgapi .navbar-home .navbar-header {\r\n\tmargin-top: 7px;\r\n\tmargin-left: 10px;\r\n\tmargin-right: 10px;\r\n\tdisplay: inline-block;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/print/print.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mappreview-scalebox {\r\n position: relative;\r\n top: -36px;\r\n width: 150px;\r\n left: 10px;\r\n}\r\n\r\n.msgapi .print-error {\r\n height: 100px;\r\n color: #600;\r\n background-color: #E8BABA;\r\n border: solid #600 1px;\r\n border-radius: 10px;\r\n padding: 10px;\r\n}\r\n.msgapi .print-error span, .msgapi .print-warning span {\r\n display: inline-block;\r\n max-height: 80px;\r\n overflow: auto;\r\n width: 100%;\r\n}\r\n.msgapi .print-warning {\r\n height: 50px;\r\n color: #660;\r\n background-color: #E6E8BA;\r\n border: solid #660 1px;\r\n border-radius: 10px;\r\n padding: 10px;\r\n}\r\n.msgapi .print-preview-panel .spinner {\r\n display: inline-block;\r\n}\r\n\r\n.msgapi .print-mappreview-refresh {\r\n position: relative;\r\n top: -83px;\r\n right: -155px;\r\n z-index: 1000;\r\n}\r\n.msgapi #mapstore-print-panel.modal-dialog {\r\n z-index: 2000;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .modal-body {\r\n max-height: calc(100vh - 190px);\r\n overflow-y: auto;\r\n}\r\n\r\n.msgapi .mapstore-print-panel {\r\n width: 850px;\r\n position: absolute;\r\n top: 50px;\r\n right: 60px;\r\n zIndex: 100;\r\n}\r\n\r\n.msgapi .mapstore-print-panel .form-inline label {\r\n margin-right: 20px;\r\n}\r\n\r\n.msgapi .mapstore-print-panel .print-download {\r\n margin-right: 10px;\r\n display: inline-block;\r\n width: 30px;\r\n height: 34px;\r\n border: solid 1px #CCC;\r\n padding: 7px;\r\n border-radius: 4px;\r\n padding-right: 25px;\r\n padding-left: 11px;\r\n top: 2px;\r\n position: relative;\r\n}\r\n\r\n.msgapi .print-layout .panel-title {\r\n padding-left: 10px;\r\n}\r\n\r\n.msgapi .print-layout .panel-title a{\r\n text-decoration: none;\r\n}\r\n\r\n.msgapi .print-layout .panel-title a:hover{\r\n color: #d6d6d6;\r\n}\r\n\r\n.msgapi .print-legend-options .panel-title {\r\n padding-left: 10px;\r\n}\r\n\r\n.msgapi .print-legend-options .panel-title a{\r\n text-decoration: none;\r\n}\r\n\r\n.msgapi .print-legend-options .panel-title a:hover{\r\n color: #d6d6d6;\r\n}\r\n\r\n\r\n@media (min-width: 992px) {\r\n .msgapi #mapstore-print-panel {\r\n width: 825px;\r\n }\r\n}\r\n\r\n@media (max-width: 991px) {\r\n .msgapi #mapstore-print-panel {\r\n width: 700px;\r\n }\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .msgapi #mapstore-print-panel {\r\n width: 98%;\r\n }\r\n}\r\n\r\n.msgapi #mapstore-print-panel .modal-body .print-mappreview-refresh {\r\n top: -96px;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .print-submit {\r\n float: right;\r\n}\r\n\r\n@media (min-width: 768px) {\r\n .msgapi #mapstore-print-panel input[type=radio] {\r\n margin: 0 8px 0 20px;\r\n }\r\n}\r\n\r\n.msgapi #mapstore-print-panel .print-map-preview {\r\n margin-bottom: 15px;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .panel-default {\r\n border: none;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .panel-heading .panel-title {\r\n font-weight: bold;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .panel-heading {\r\n padding-left: 0;\r\n background-color: transparent;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .panel-body {\r\n padding: 10px;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .form-control {\r\n padding: 0 10px;\r\n height: 25px;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .print-download {\r\n margin-right: 10px;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .print-download a {\r\n color: white;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .print-legend-options .container-fluid {\r\n padding-left: 0;\r\n padding-right: 0;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/scalebox/scalebox.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mapstore-scalebox {\r\n /*z-index: 10;\r\n bottom: 6px;\r\n left: -2px;\r\n position: absolute;\r\n margin: 8px;\r\n width: 148px;*/\r\n}\r\n\r\n.msgapi #mapstore-scalebox-container {\r\n /*z-index: 10;\r\n bottom: -16px;\r\n right: 55px;\r\n left: auto;\r\n position: absolute;\r\n margin: 8px;\r\n width: 148px;*/\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .mapToolbar {\r\n position: absolute;\r\n bottom: 5px;\r\n right: 0;\r\n z-index: 1000;\r\n margin-bottom: 35px;\r\n margin-right: 5px;\r\n}\r\n\r\n.msgapi .toolbarexpand-enter {\r\n opacity: 0.01;\r\n}\r\n\r\n.msgapi .toolbarexpand-enter.toolbarexpand-enter-active {\r\n opacity: 1;\r\n transition: opacity 500ms ease-in;\r\n}\r\n\r\n.msgapi .toolbarexpand-leave {\r\n opacity: 1;\r\n}\r\n\r\n.msgapi .toolbarexpand-leave.toolbarexpand-leave-active {\r\n opacity: 0.01;\r\n transition: opacity 300ms ease-in;\r\n}\r\n\r\n.msgapi #navigationBar .toolbar-panel {\r\n bottom: 80px !important;\r\n}\r\n\r\n.msgapi #identifyBar .mapToolbar {\r\n top: auto !important;\r\n bottom: 5px;\r\n right: 212px !important;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoom/zoom.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #zoomin-btn, .msgapi #zoomout-btn {\r\n z-index: 1;\r\n position: relative;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoomall/zoomall.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mapstore-zoomtomaxextent {\r\n z-index: 1;\r\n position: relative;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/codemirror/addon/hint/show-hint.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .CodeMirror-hints {\n position: absolute;\n z-index: 10;\n overflow: hidden;\n list-style: none;\n\n margin: 0;\n padding: 2px;\n\n -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n border-radius: 3px;\n border: 1px solid silver;\n\n background: white;\n font-size: 90%;\n font-family: monospace;\n\n max-height: 20em;\n overflow-y: auto;\n}\n\n.msgapi .CodeMirror-hint {\n margin: 0;\n padding: 0 4px;\n border-radius: 2px;\n white-space: pre;\n color: black;\n cursor: pointer;\n}\n\n.msgapi li.CodeMirror-hint-active {\n background: #08f;\n color: white;\n}\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/codemirror/lib/codemirror.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"/* BASICS */\n\n.msgapi .CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n}\n\n/* PADDING */\n\n.msgapi .CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.msgapi .CodeMirror pre {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.msgapi .CodeMirror-scrollbar-filler, .msgapi .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.msgapi .CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.msgapi .CodeMirror-linenumbers {}\n.msgapi .CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.msgapi .CodeMirror-guttermarker { color: black; }\n.msgapi .CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.msgapi .CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.msgapi .CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.msgapi .cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.msgapi .cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n\n.msgapi .cm-animate-fat-cursor {\n width: auto;\n border: 0;\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n background-color: #7e7;\n}\n@-moz-keyframes blink {\n .msgapi 0% {}\n .msgapi 50% { background-color: transparent; }\n .msgapi 100% {}\n}\n@-webkit-keyframes blink {\n .msgapi 0% {}\n .msgapi 50% { background-color: transparent; }\n .msgapi 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.msgapi .CodeMirror-overwrite .CodeMirror-cursor {}\n\n.msgapi .cm-tab { display: inline-block; text-decoration: inherit; }\n\n.msgapi .CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: -20px;\n overflow: hidden;\n}\n.msgapi .CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.msgapi .cm-s-default .cm-header {color: blue;}\n.msgapi .cm-s-default .cm-quote {color: #090;}\n.msgapi .cm-negative {color: #d44;}\n.msgapi .cm-positive {color: #292;}\n.msgapi .cm-header, .msgapi .cm-strong {font-weight: bold;}\n.msgapi .cm-em {font-style: italic;}\n.msgapi .cm-link {text-decoration: underline;}\n.msgapi .cm-strikethrough {text-decoration: line-through;}\n\n.msgapi .cm-s-default .cm-keyword {color: #708;}\n.msgapi .cm-s-default .cm-atom {color: #219;}\n.msgapi .cm-s-default .cm-number {color: #164;}\n.msgapi .cm-s-default .cm-def {color: #00f;}\n.msgapi .cm-s-default .cm-variable,\n.msgapi .cm-s-default .cm-punctuation,\n.msgapi .cm-s-default .cm-property,\n.msgapi .cm-s-default .cm-operator {}\n.msgapi .cm-s-default .cm-variable-2 {color: #05a;}\n.msgapi .cm-s-default .cm-variable-3 {color: #085;}\n.msgapi .cm-s-default .cm-comment {color: #a50;}\n.msgapi .cm-s-default .cm-string {color: #a11;}\n.msgapi .cm-s-default .cm-string-2 {color: #f50;}\n.msgapi .cm-s-default .cm-meta {color: #555;}\n.msgapi .cm-s-default .cm-qualifier {color: #555;}\n.msgapi .cm-s-default .cm-builtin {color: #30a;}\n.msgapi .cm-s-default .cm-bracket {color: #997;}\n.msgapi .cm-s-default .cm-tag {color: #170;}\n.msgapi .cm-s-default .cm-attribute {color: #00c;}\n.msgapi .cm-s-default .cm-hr {color: #999;}\n.msgapi .cm-s-default .cm-link {color: #00c;}\n\n.msgapi .cm-s-default .cm-error {color: #f00;}\n.msgapi .cm-invalidchar {color: #f00;}\n\n.msgapi .CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\n.msgapi div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}\n.msgapi div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}\n.msgapi .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.msgapi .CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.msgapi .CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.msgapi .CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -30px; margin-right: -30px;\n padding-bottom: 30px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n}\n.msgapi .CodeMirror-sizer {\n position: relative;\n border-right: 30px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.msgapi .CodeMirror-vscrollbar, .msgapi .CodeMirror-hscrollbar, .msgapi .CodeMirror-scrollbar-filler, .msgapi .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n}\n.msgapi .CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.msgapi .CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.msgapi .CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.msgapi .CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.msgapi .CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.msgapi .CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -30px;\n /* Hack to make IE7 behave */\n *zoom:1;\n *display:inline;\n}\n.msgapi .CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.msgapi .CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.msgapi .CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.msgapi .CodeMirror-gutter-wrapper {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.msgapi .CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.msgapi .CodeMirror pre {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n}\n.msgapi .CodeMirror-wrap pre {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.msgapi .CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.msgapi .CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n overflow: auto;\n}\n\n.msgapi .CodeMirror-widget {}\n\n.msgapi .CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.msgapi .CodeMirror-scroll,\n.msgapi .CodeMirror-sizer,\n.msgapi .CodeMirror-gutter,\n.msgapi .CodeMirror-gutters,\n.msgapi .CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.msgapi .CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.msgapi .CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.msgapi .CodeMirror-measure pre { position: static; }\n\n.msgapi div.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\n.msgapi div.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.msgapi .CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.msgapi .CodeMirror-selected { background: #d9d9d9; }\n.msgapi .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.msgapi .CodeMirror-crosshair { cursor: crosshair; }\n.msgapi .CodeMirror-line::selection, .msgapi .CodeMirror-line > span::selection, .msgapi .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.msgapi .CodeMirror-line::-moz-selection, .msgapi .CodeMirror-line > span::-moz-selection, .msgapi .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.msgapi .cm-searching {\n background: #ffa;\n background: rgba(255, 255, 0, .4);\n}\n\n/* IE7 hack to prevent it from returning funny offsetTops on the spans */\n.msgapi .CodeMirror span { *vertical-align: text-bottom; }\n\n/* Used to force a border model for a node */\n.msgapi .cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .msgapi .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.msgapi .cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\n.msgapi span.CodeMirror-selectedtext { background: none; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/react-grid-layout/css/styles.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,'.msgapi .react-grid-layout {\n position: relative;\n transition: height 200ms ease;\n}\n.msgapi .react-grid-item {\n transition: all 200ms ease;\n transition-property: left, top;\n}\n.msgapi .react-grid-item.cssTransforms {\n transition-property: transform;\n}\n.msgapi .react-grid-item.resizing {\n z-index: 1;\n will-change: width, height;\n}\n\n.msgapi .react-grid-item.react-draggable-dragging {\n transition: none;\n z-index: 3;\n will-change: transform;\n}\n\n.msgapi .react-grid-item.react-grid-placeholder {\n background: red;\n opacity: 0.2;\n transition-duration: 100ms;\n z-index: 2;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -o-user-select: none;\n user-select: none;\n}\n\n.msgapi .react-grid-item > .react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n bottom: 0;\n right: 0;\n cursor: se-resize;\n}\n\n.msgapi .react-grid-item > .react-resizable-handle::after {\n content: "";\n position: absolute;\n right: 3px;\n bottom: 3px;\n width: 5px;\n height: 5px;\n border-right: 2px solid rgba(0, 0, 0, 0.4);\n border-bottom: 2px solid rgba(0, 0, 0, 0.4);\n}\n',""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/react-quill/dist/quill.snow.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"/*!\n * Quill Editor v1.3.0\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.msgapi .ql-container {\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.msgapi .ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.msgapi .ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.msgapi .ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.msgapi .ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.msgapi .ql-editor {\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.msgapi .ql-editor > * {\n cursor: text;\n}\n.msgapi .ql-editor p,\n.msgapi .ql-editor ol,\n.msgapi .ql-editor ul,\n.msgapi .ql-editor pre,\n.msgapi .ql-editor blockquote,\n.msgapi .ql-editor h1,\n.msgapi .ql-editor h2,\n.msgapi .ql-editor h3,\n.msgapi .ql-editor h4,\n.msgapi .ql-editor h5,\n.msgapi .ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol,\n.msgapi .ql-editor ul {\n padding-left: 1.5em;\n}\n.msgapi .ql-editor ol > li,\n.msgapi .ql-editor ul > li {\n list-style-type: none;\n}\n.msgapi .ql-editor ul > li::before {\n content: '\\2022';\n}\n.msgapi .ql-editor ul[data-checked=true],\n.msgapi .ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.msgapi .ql-editor ul[data-checked=true] > li *,\n.msgapi .ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.msgapi .ql-editor ul[data-checked=true] > li::before,\n.msgapi .ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.msgapi .ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.msgapi .ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.msgapi .ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2em;\n}\n.msgapi .ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5em;\n margin-right: 0.3em;\n text-align: right;\n}\n.msgapi .ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3em;\n margin-right: -1.5em;\n}\n.msgapi .ql-editor ol li:not(.ql-direction-rtl),\n.msgapi .ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5em;\n}\n.msgapi .ql-editor ol li.ql-direction-rtl,\n.msgapi .ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5em;\n}\n.msgapi .ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.msgapi .ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.msgapi .ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.msgapi .ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.msgapi .ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.msgapi .ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.msgapi .ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.msgapi .ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.msgapi .ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.msgapi .ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.msgapi .ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3em;\n}\n.msgapi .ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5em;\n}\n.msgapi .ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3em;\n}\n.msgapi .ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5em;\n}\n.msgapi .ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6em;\n}\n.msgapi .ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5em;\n}\n.msgapi .ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6em;\n}\n.msgapi .ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5em;\n}\n.msgapi .ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9em;\n}\n.msgapi .ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5em;\n}\n.msgapi .ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9em;\n}\n.msgapi .ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5em;\n}\n.msgapi .ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12em;\n}\n.msgapi .ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5em;\n}\n.msgapi .ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12em;\n}\n.msgapi .ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5em;\n}\n.msgapi .ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15em;\n}\n.msgapi .ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5em;\n}\n.msgapi .ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15em;\n}\n.msgapi .ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5em;\n}\n.msgapi .ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18em;\n}\n.msgapi .ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5em;\n}\n.msgapi .ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18em;\n}\n.msgapi .ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5em;\n}\n.msgapi .ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21em;\n}\n.msgapi .ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5em;\n}\n.msgapi .ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21em;\n}\n.msgapi .ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5em;\n}\n.msgapi .ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24em;\n}\n.msgapi .ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5em;\n}\n.msgapi .ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24em;\n}\n.msgapi .ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5em;\n}\n.msgapi .ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27em;\n}\n.msgapi .ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5em;\n}\n.msgapi .ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27em;\n}\n.msgapi .ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5em;\n}\n.msgapi .ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.msgapi .ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.msgapi .ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.msgapi .ql-editor .ql-bg-black {\n background-color: #000;\n}\n.msgapi .ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.msgapi .ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.msgapi .ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.msgapi .ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.msgapi .ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.msgapi .ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.msgapi .ql-editor .ql-color-white {\n color: #fff;\n}\n.msgapi .ql-editor .ql-color-red {\n color: #e60000;\n}\n.msgapi .ql-editor .ql-color-orange {\n color: #f90;\n}\n.msgapi .ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.msgapi .ql-editor .ql-color-green {\n color: #008a00;\n}\n.msgapi .ql-editor .ql-color-blue {\n color: #06c;\n}\n.msgapi .ql-editor .ql-color-purple {\n color: #93f;\n}\n.msgapi .ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.msgapi .ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.msgapi .ql-editor .ql-size-small {\n font-size: 0.75em;\n}\n.msgapi .ql-editor .ql-size-large {\n font-size: 1.5em;\n}\n.msgapi .ql-editor .ql-size-huge {\n font-size: 2.5em;\n}\n.msgapi .ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.msgapi .ql-editor .ql-align-center {\n text-align: center;\n}\n.msgapi .ql-editor .ql-align-justify {\n text-align: justify;\n}\n.msgapi .ql-editor .ql-align-right {\n text-align: right;\n}\n.msgapi .ql-editor .ql-embed-selected {\n border: 1px solid #777;\n user-select: none;\n}\n.msgapi .ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n pointer-events: none;\n position: absolute;\n}\n.msgapi .ql-snow.ql-toolbar:after,\n.msgapi .ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.msgapi .ql-snow.ql-toolbar button,\n.msgapi .ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.msgapi .ql-snow.ql-toolbar button svg,\n.msgapi .ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.msgapi .ql-snow.ql-toolbar button:active:hover,\n.msgapi .ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.msgapi .ql-snow.ql-toolbar input.ql-image[type=file],\n.msgapi .ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.msgapi .ql-snow.ql-toolbar button:hover,\n.msgapi .ql-snow .ql-toolbar button:hover,\n.msgapi .ql-snow.ql-toolbar button:focus,\n.msgapi .ql-snow .ql-toolbar button:focus,\n.msgapi .ql-snow.ql-toolbar button.ql-active,\n.msgapi .ql-snow .ql-toolbar button.ql-active,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label:hover,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label:hover,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item:hover,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item:hover,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.msgapi .ql-snow.ql-toolbar button:hover .ql-fill,\n.msgapi .ql-snow .ql-toolbar button:hover .ql-fill,\n.msgapi .ql-snow.ql-toolbar button:focus .ql-fill,\n.msgapi .ql-snow .ql-toolbar button:focus .ql-fill,\n.msgapi .ql-snow.ql-toolbar button.ql-active .ql-fill,\n.msgapi .ql-snow .ql-toolbar button.ql-active .ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.msgapi .ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.msgapi .ql-snow.ql-toolbar button:hover .ql-stroke,\n.msgapi .ql-snow .ql-toolbar button:hover .ql-stroke,\n.msgapi .ql-snow.ql-toolbar button:focus .ql-stroke,\n.msgapi .ql-snow .ql-toolbar button:focus .ql-stroke,\n.msgapi .ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.msgapi .ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.msgapi .ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n .msgapi .ql-snow.ql-toolbar button:hover:not(.ql-active),\n .msgapi .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n }\n .msgapi .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .msgapi .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .msgapi .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .msgapi .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n }\n .msgapi .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .msgapi .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .msgapi .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .msgapi .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n }\n}\n.msgapi .ql-snow {\n box-sizing: border-box;\n}\n.msgapi .ql-snow * {\n box-sizing: border-box;\n}\n.msgapi .ql-snow .ql-hidden {\n display: none;\n}\n.msgapi .ql-snow .ql-out-bottom,\n.msgapi .ql-snow .ql-out-top {\n visibility: hidden;\n}\n.msgapi .ql-snow .ql-tooltip {\n position: absolute;\n transform: translateY(10px);\n}\n.msgapi .ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.msgapi .ql-snow .ql-tooltip.ql-flip {\n transform: translateY(-10px);\n}\n.msgapi .ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.msgapi .ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.msgapi .ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.msgapi .ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.msgapi .ql-snow .ql-fill,\n.msgapi .ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.msgapi .ql-snow .ql-empty {\n fill: none;\n}\n.msgapi .ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.msgapi .ql-snow .ql-thin,\n.msgapi .ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.msgapi .ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.msgapi .ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.msgapi .ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.msgapi .ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.msgapi .ql-snow .ql-editor h1 {\n font-size: 2em;\n}\n.msgapi .ql-snow .ql-editor h2 {\n font-size: 1.5em;\n}\n.msgapi .ql-snow .ql-editor h3 {\n font-size: 1.17em;\n}\n.msgapi .ql-snow .ql-editor h4 {\n font-size: 1em;\n}\n.msgapi .ql-snow .ql-editor h5 {\n font-size: 0.83em;\n}\n.msgapi .ql-snow .ql-editor h6 {\n font-size: 0.67em;\n}\n.msgapi .ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.msgapi .ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.msgapi .ql-snow .ql-editor code,\n.msgapi .ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.msgapi .ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.msgapi .ql-snow .ql-editor code {\n font-size: 85%;\n padding-bottom: 2px;\n padding-top: 2px;\n}\n.msgapi .ql-snow .ql-editor code:before,\n.msgapi .ql-snow .ql-editor code:after {\n content: \"\\A0\";\n letter-spacing: -2px;\n}\n.msgapi .ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.msgapi .ql-snow .ql-editor img {\n max-width: 100%;\n}\n.msgapi .ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.msgapi .ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.msgapi .ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.msgapi .ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.msgapi .ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.msgapi .ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.msgapi .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.msgapi .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.msgapi .ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.msgapi .ql-snow .ql-color-picker,\n.msgapi .ql-snow .ql-icon-picker {\n width: 28px;\n}\n.msgapi .ql-snow .ql-color-picker .ql-picker-label,\n.msgapi .ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.msgapi .ql-snow .ql-color-picker .ql-picker-label svg,\n.msgapi .ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.msgapi .ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.msgapi .ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.msgapi .ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.msgapi .ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.msgapi .ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.msgapi .ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2em;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5em;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17em;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1em;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83em;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67em;\n}\n.msgapi .ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.msgapi .ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.msgapi .ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.msgapi .ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.msgapi .ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.msgapi .ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.msgapi .ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.msgapi .ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.msgapi .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.msgapi .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.msgapi .ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.msgapi .ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.msgapi .ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.msgapi .ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.msgapi .ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.msgapi .ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.msgapi .ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.msgapi .ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.msgapi .ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.msgapi .ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.msgapi .ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.msgapi .ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.msgapi .ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.msgapi .ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.msgapi .ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.msgapi .ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.msgapi .ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.msgapi .ql-snow a {\n color: #06c;\n}\n.msgapi .ql-container.ql-snow {\n border: 1px solid #ccc;\n}\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/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vis/dist/vis-timeline-graph2d.min.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,'.msgapi .vis .overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.msgapi .vis-active{box-shadow:0 0 10px #86d5f8}.msgapi .vis [class*=span]{min-height:0;width:auto}.msgapi div.vis-configuration{position:relative;display:block;float:left;font-size:12px}.msgapi div.vis-configuration-wrapper{display:block;width:700px}.msgapi div.vis-configuration-wrapper::after{clear:both;content:"";display:block}.msgapi div.vis-configuration.vis-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}.msgapi div.vis-configuration.vis-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}.msgapi div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}.msgapi div.vis-configuration.vis-config-item{display:block;float:left;width:495px;height:25px;vertical-align:middle;line-height:25px}.msgapi div.vis-configuration.vis-config-item.vis-config-s2{left:10px;background-color:#f7f8fa;padding-left:5px;border-radius:3px}.msgapi div.vis-configuration.vis-config-item.vis-config-s3{left:20px;background-color:#e4e9f0;padding-left:5px;border-radius:3px}.msgapi div.vis-configuration.vis-config-item.vis-config-s4{left:30px;background-color:#cfd8e6;padding-left:5px;border-radius:3px}.msgapi div.vis-configuration.vis-config-header{font-size:18px;font-weight:700}.msgapi div.vis-configuration.vis-config-label{width:120px;height:25px;line-height:25px}.msgapi div.vis-configuration.vis-config-label.vis-config-s3{width:110px}.msgapi div.vis-configuration.vis-config-label.vis-config-s4{width:100px}.msgapi div.vis-configuration.vis-config-colorBlock{top:1px;width:30px;height:19px;border:1px solid #444;border-radius:2px;padding:0;margin:0;cursor:pointer}.msgapi input.vis-configuration.vis-config-checkbox{left:-5px}.msgapi input.vis-configuration.vis-config-rangeinput{position:relative;top:-5px;width:60px;padding:1px;margin:0;pointer-events:none}.msgapi input.vis-configuration.vis-config-range{-webkit-appearance:none;border:0 solid #fff;background-color:rgba(0,0,0,0);width:300px;height:20px}.msgapi input.vis-configuration.vis-config-range::-webkit-slider-runnable-track{width:300px;height:5px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(to bottom,#dedede 0,#c8c8c8 99%);border:1px solid #999;box-shadow:#aaa 0 0 3px 0;border-radius:3px}.msgapi input.vis-configuration.vis-config-range::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #14334b;height:17px;width:17px;border-radius:50%;background:#3876c2;background:-moz-linear-gradient(top,#3876c2 0,#385380 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2 0,#385380 100%);background:-o-linear-gradient(top,#3876c2 0,#385380 100%);background:-ms-linear-gradient(top,#3876c2 0,#385380 100%);background:linear-gradient(to bottom,#3876c2 0,#385380 100%);box-shadow:#111927 0 0 1px 0;margin-top:-7px}.msgapi input.vis-configuration.vis-config-range:focus{outline:0}.msgapi input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-moz-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-o-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:linear-gradient(to bottom,#9d9d9d 0,#c8c8c8 99%)}.msgapi input.vis-configuration.vis-config-range::-moz-range-track{width:300px;height:10px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(to bottom,#dedede 0,#c8c8c8 99%);border:1px solid #999;box-shadow:#aaa 0 0 3px 0;border-radius:3px}.msgapi input.vis-configuration.vis-config-range::-moz-range-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}.msgapi input.vis-configuration.vis-config-range:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}.msgapi input.vis-configuration.vis-config-range::-ms-track{width:300px;height:5px;background:0 0;border-color:transparent;border-width:6px 0;color:transparent}.msgapi input.vis-configuration.vis-config-range::-ms-fill-lower{background:#777;border-radius:10px}.msgapi input.vis-configuration.vis-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}.msgapi input.vis-configuration.vis-config-range::-ms-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}.msgapi input.vis-configuration.vis-config-range:focus::-ms-fill-lower{background:#888}.msgapi input.vis-configuration.vis-config-range:focus::-ms-fill-upper{background:#ccc}.msgapi .vis-configuration-popup{position:absolute;background:rgba(57,76,89,.85);border:2px solid #f2faff;line-height:30px;height:30px;width:150px;text-align:center;color:#fff;font-size:14px;border-radius:4px;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.msgapi .vis-configuration-popup:after,.msgapi .vis-configuration-popup:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.msgapi .vis-configuration-popup:after{border-color:rgba(136,183,213,0);border-left-color:rgba(57,76,89,.85);border-width:8px;margin-top:-8px}.msgapi .vis-configuration-popup:before{border-color:rgba(194,225,245,0);border-left-color:#f2faff;border-width:12px;margin-top:-12px}.msgapi div.vis-tooltip{position:absolute;visibility:hidden;padding:5px;white-space:nowrap;font-family:verdana;font-size:14px;color:#000;background-color:#f5f4ed;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:1px solid #808074;box-shadow:3px 3px 10px rgba(0,0,0,.2);pointer-events:none;z-index:5}.msgapi .vis-current-time{background-color:#ff7f6e;width:2px;z-index:1;pointer-events:none}.msgapi .vis-rolling-mode-btn{height:40px;width:40px;position:absolute;top:7px;right:20px;border-radius:50%;font-size:28px;cursor:pointer;opacity:.8;color:#fff;font-weight:700;text-align:center;background:#3876c2}.msgapi .vis-rolling-mode-btn:before{content:"\\26F6"}.msgapi .vis-rolling-mode-btn:hover{opacity:1}.msgapi .vis-custom-time{background-color:#6e94ff;width:2px;cursor:move;z-index:1}.msgapi .vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal{position:absolute;width:100%;height:0;border-bottom:1px solid}.msgapi .vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor{border-color:#e5e5e5}.msgapi .vis-panel.vis-background.vis-horizontal .vis-grid.vis-major{border-color:#bfbfbf}.msgapi .vis-data-axis .vis-y-axis.vis-major{width:100%;position:absolute;color:#4d4d4d;white-space:nowrap}.msgapi .vis-data-axis .vis-y-axis.vis-major.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.msgapi .vis-data-axis .vis-y-axis.vis-minor{position:absolute;width:100%;color:#bebebe;white-space:nowrap}.msgapi .vis-data-axis .vis-y-axis.vis-minor.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.msgapi .vis-data-axis .vis-y-axis.vis-title{position:absolute;color:#4d4d4d;white-space:nowrap;bottom:20px;text-align:center}.msgapi .vis-data-axis .vis-y-axis.vis-title.vis-measure{padding:0;margin:0;visibility:hidden;width:auto}.msgapi .vis-data-axis .vis-y-axis.vis-title.vis-left{bottom:0;-webkit-transform-origin:left top;-moz-transform-origin:left top;-ms-transform-origin:left top;-o-transform-origin:left top;transform-origin:left bottom;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}.msgapi .vis-data-axis .vis-y-axis.vis-title.vis-right{bottom:0;-webkit-transform-origin:right bottom;-moz-transform-origin:right bottom;-ms-transform-origin:right bottom;-o-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.msgapi .vis-legend{background-color:rgba(247,252,255,.65);padding:5px;border:1px solid #b3b3b3;box-shadow:2px 2px 10px rgba(154,154,154,.55)}.msgapi .vis-legend-text{white-space:nowrap;display:inline-block}.msgapi .vis-item{position:absolute;color:#1a1a1a;border-color:#97b0f8;border-width:1px;background-color:#d5ddf6;display:inline-block;z-index:1}.msgapi .vis-item.vis-selected{border-color:#ffc200;background-color:#fff785;z-index:2}.msgapi .vis-editable.vis-selected{cursor:move}.msgapi .vis-item.vis-point.vis-selected{background-color:#fff785}.msgapi .vis-item.vis-box{text-align:center;border-style:solid;border-radius:2px}.msgapi .vis-item.vis-point{background:0 0}.msgapi .vis-item.vis-dot{position:absolute;padding:0;border-width:4px;border-style:solid;border-radius:4px}.msgapi .vis-item.vis-range{border-style:solid;border-radius:2px;box-sizing:border-box}.msgapi .vis-item.vis-background{border:none;background-color:rgba(213,221,246,.4);box-sizing:border-box;padding:0;margin:0}.msgapi .vis-item .vis-item-overflow{position:relative;width:100%;height:100%;padding:0;margin:0;overflow:hidden}.msgapi .vis-item-visible-frame{white-space:nowrap}.msgapi .vis-item.vis-range .vis-item-content{position:relative;display:inline-block}.msgapi .vis-item.vis-background .vis-item-content{position:absolute;display:inline-block}.msgapi .vis-item.vis-line{padding:0;position:absolute;width:0;border-left-width:1px;border-left-style:solid}.msgapi .vis-item .vis-item-content{white-space:nowrap;box-sizing:border-box;padding:5px}.msgapi .vis-item .vis-onUpdateTime-tooltip{position:absolute;background:#4f81bd;color:#fff;width:200px;text-align:center;white-space:nowrap;padding:5px;border-radius:1px;transition:.4s;-o-transition:.4s;-moz-transition:.4s;-webkit-transition:.4s}.msgapi .vis-item .vis-delete,.msgapi .vis-item .vis-delete-rtl{position:absolute;top:0;width:24px;height:24px;box-sizing:border-box;padding:0 5px;cursor:pointer;-webkit-transition:background .2s linear;-moz-transition:background .2s linear;-ms-transition:background .2s linear;-o-transition:background .2s linear;transition:background .2s linear}.msgapi .vis-item .vis-delete{right:-24px}.msgapi .vis-item .vis-delete-rtl{left:-24px}.msgapi .vis-item .vis-delete-rtl:after,.msgapi .vis-item .vis-delete:after{content:"\\D7";color:red;font-family:arial,sans-serif;font-size:22px;font-weight:700;-webkit-transition:color .2s linear;-moz-transition:color .2s linear;-ms-transition:color .2s linear;-o-transition:color .2s linear;transition:color .2s linear}.msgapi .vis-item .vis-delete-rtl:hover,.msgapi .vis-item .vis-delete:hover{background:red}.msgapi .vis-item .vis-delete-rtl:hover:after,.msgapi .vis-item .vis-delete:hover:after{color:#fff}.msgapi .vis-item .vis-drag-center{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.msgapi .vis-item.vis-range .vis-drag-left{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0;left:-4px;cursor:w-resize}.msgapi .vis-item.vis-range .vis-drag-right{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0;right:-4px;cursor:e-resize}.msgapi .vis-range.vis-item.vis-readonly .vis-drag-left,.msgapi .vis-range.vis-item.vis-readonly .vis-drag-right{cursor:auto}.msgapi .vis-itemset{position:relative;padding:0;margin:0;box-sizing:border-box}.msgapi .vis-itemset .vis-background,.msgapi .vis-itemset .vis-foreground{position:absolute;width:100%;height:100%;overflow:visible}.msgapi .vis-axis{position:absolute;width:100%;height:0;left:0;z-index:1}.msgapi .vis-foreground .vis-group{position:relative;box-sizing:border-box;border-bottom:1px solid #bfbfbf}.msgapi .vis-foreground .vis-group:last-child{border-bottom:none}.msgapi .vis-nesting-group{cursor:pointer}.msgapi .vis-nested-group{background:#f5f5f5}.msgapi .vis-label.vis-nesting-group.expanded:before{content:"\\25BC"}.msgapi .vis-label.vis-nesting-group.collapsed-rtl:before{content:"\\25C0"}.msgapi .vis-label.vis-nesting-group.collapsed:before{content:"\\25B6"}.msgapi .vis-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.msgapi .vis-labelset{position:relative;overflow:hidden;box-sizing:border-box}.msgapi .vis-labelset .vis-label{position:relative;left:0;top:0;width:100%;color:#4d4d4d;box-sizing:border-box}.msgapi .vis-labelset .vis-label{border-bottom:1px solid #bfbfbf}.msgapi .vis-labelset .vis-label.draggable{cursor:pointer}.msgapi .vis-labelset .vis-label:last-child{border-bottom:none}.msgapi .vis-labelset .vis-label .vis-inner{display:inline-block;padding:5px}.msgapi .vis-labelset .vis-label .vis-inner.vis-hidden{padding:0}.msgapi .vis-panel{position:absolute;padding:0;margin:0;box-sizing:border-box}.msgapi .vis-panel.vis-bottom,.msgapi .vis-panel.vis-center,.msgapi .vis-panel.vis-left,.msgapi .vis-panel.vis-right,.msgapi .vis-panel.vis-top{border:1px #bfbfbf}.msgapi .vis-panel.vis-center,.msgapi .vis-panel.vis-left,.msgapi .vis-panel.vis-right{border-top-style:solid;border-bottom-style:solid;overflow:hidden}.msgapi .vis-left.vis-panel.vis-vertical-scroll,.msgapi .vis-right.vis-panel.vis-vertical-scroll{height:100%;overflow-x:hidden;overflow-y:scroll}.msgapi .vis-left.vis-panel.vis-vertical-scroll{direction:rtl}.msgapi .vis-left.vis-panel.vis-vertical-scroll .vis-content{direction:ltr}.msgapi .vis-right.vis-panel.vis-vertical-scroll{direction:ltr}.msgapi .vis-right.vis-panel.vis-vertical-scroll .vis-content{direction:rtl}.msgapi .vis-panel.vis-bottom,.msgapi .vis-panel.vis-center,.msgapi .vis-panel.vis-top{border-left-style:solid;border-right-style:solid}.msgapi .vis-background{overflow:hidden}.msgapi .vis-panel>.vis-content{position:relative}.msgapi .vis-panel .vis-shadow{position:absolute;width:100%;height:1px;box-shadow:0 0 10px rgba(0,0,0,.8)}.msgapi .vis-panel .vis-shadow.vis-top{top:-1px;left:0}.msgapi .vis-panel .vis-shadow.vis-bottom{bottom:-1px;left:0}.msgapi .vis-graph-group0{fill:#4f81bd;fill-opacity:0;stroke-width:2px;stroke:#4f81bd}.msgapi .vis-graph-group1{fill:#f79646;fill-opacity:0;stroke-width:2px;stroke:#f79646}.msgapi .vis-graph-group2{fill:#8c51cf;fill-opacity:0;stroke-width:2px;stroke:#8c51cf}.msgapi .vis-graph-group3{fill:#75c841;fill-opacity:0;stroke-width:2px;stroke:#75c841}.msgapi .vis-graph-group4{fill:#ff0100;fill-opacity:0;stroke-width:2px;stroke:#ff0100}.msgapi .vis-graph-group5{fill:#37d8e6;fill-opacity:0;stroke-width:2px;stroke:#37d8e6}.msgapi .vis-graph-group6{fill:#042662;fill-opacity:0;stroke-width:2px;stroke:#042662}.msgapi .vis-graph-group7{fill:#00ff26;fill-opacity:0;stroke-width:2px;stroke:#00ff26}.msgapi .vis-graph-group8{fill:#f0f;fill-opacity:0;stroke-width:2px;stroke:#f0f}.msgapi .vis-graph-group9{fill:#8f3938;fill-opacity:0;stroke-width:2px;stroke:#8f3938}.msgapi .vis-timeline .vis-fill{fill-opacity:.1;stroke:none}.msgapi .vis-timeline .vis-bar{fill-opacity:.5;stroke-width:1px}.msgapi .vis-timeline .vis-point{stroke-width:2px;fill-opacity:1}.msgapi .vis-timeline .vis-legend-background{stroke-width:1px;fill-opacity:.9;fill:#fff;stroke:#c2c2c2}.msgapi .vis-timeline .vis-outline{stroke-width:1px;fill-opacity:1;fill:#fff;stroke:#e5e5e5}.msgapi .vis-timeline .vis-icon-fill{fill-opacity:.3;stroke:none}.msgapi .vis-time-axis{position:relative;overflow:hidden}.msgapi .vis-time-axis.vis-foreground{top:0;left:0;width:100%}.msgapi .vis-time-axis.vis-background{position:absolute;top:0;left:0;width:100%;height:100%}.msgapi .vis-time-axis .vis-text{position:absolute;color:#4d4d4d;padding:3px;overflow:hidden;box-sizing:border-box;white-space:nowrap}.msgapi .vis-time-axis .vis-text.vis-measure{position:absolute;padding-left:0;padding-right:0;margin-left:0;margin-right:0;visibility:hidden}.msgapi .vis-time-axis .vis-grid.vis-vertical{position:absolute;border-left:1px solid}.msgapi .vis-time-axis .vis-grid.vis-vertical-rtl{position:absolute;border-right:1px solid}.msgapi .vis-time-axis .vis-grid.vis-minor{border-color:#e5e5e5}.msgapi .vis-time-axis .vis-grid.vis-major{border-color:#bfbfbf}.msgapi .vis-timeline{position:relative;border:1px solid #bfbfbf;overflow:hidden;padding:0;margin:0;box-sizing:border-box}',""])},"./node_modules/css-tree/dist/default-syntax.json":function(e){e.exports=JSON.parse('{"generic":true,"types":{"absolute-size":"xx-small | x-small | small | medium | large | x-large | xx-large","alpha-value":" | ","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":"