diff --git a/Makefile b/Makefile index e4259214..06e256fe 100644 --- a/Makefile +++ b/Makefile @@ -79,10 +79,7 @@ recalculate: $(FLASK) recalculate run: - $(MAKE) P="run-server run-workers run-client" make-p - -run-client: - serve -s fittrackee_client/build -l 3000 >> serve.log 2>&1 + $(MAKE) P="run-server run-workers" make-p run-server: cd fittrackee_api && $(GUNICORN) -b 127.0.0.1:5000 "fittrackee_api:create_app()" --error-logfile ../gunicorn.log diff --git a/Makefile.config b/Makefile.config index 8eeca9f8..5129fcbd 100644 --- a/Makefile.config +++ b/Makefile.config @@ -5,7 +5,8 @@ CLIENT_PORT = 3000 export FLASK_APP = $(PWD)/fittrackee_api/server.py export APP_SETTINGS=fittrackee_api.config.DevelopmentConfig export FLASK_ENV=development -export TEST_URL = http://$(HOST):$(CLIENT_PORT) +export TEST_URL = http://$(HOST):$(API_PORT) +export TEST_CLIENT_URL = http://$(HOST):$(CLIENT_PORT) export DATABASE_URL = postgres://fittrackee:fittrackee@$(HOST):5432/fittrackee export DATABASE_TEST_URL = postgres://fittrackee:fittrackee@$(HOST):5432/fittrackee_test export MIGRATIONS = $(PWD)/fittrackee_api/migrations diff --git a/fittrackee_api/dist/asset-manifest.json b/fittrackee_api/dist/asset-manifest.json new file mode 100644 index 00000000..ec70b84c --- /dev/null +++ b/fittrackee_api/dist/asset-manifest.json @@ -0,0 +1,26 @@ +{ + "files": { + "main.css": "/static/css/main.9eb63bc2.chunk.css", + "main.js": "/static/js/main.e589eaf8.chunk.js", + "main.js.map": "/static/js/main.e589eaf8.chunk.js.map", + "runtime-main.js": "/static/js/runtime-main.2d7c76f9.js", + "runtime-main.js.map": "/static/js/runtime-main.2d7c76f9.js.map", + "static/js/2.8ad7236a.chunk.js": "/static/js/2.8ad7236a.chunk.js", + "static/js/2.8ad7236a.chunk.js.map": "/static/js/2.8ad7236a.chunk.js.map", + "index.html": "/index.html", + "precache-manifest.5c6aeed76c2cb8cfc6f5407698470a91.js": "/precache-manifest.5c6aeed76c2cb8cfc6f5407698470a91.js", + "service-worker.js": "/service-worker.js", + "static/css/main.9eb63bc2.chunk.css.map": "/static/css/main.9eb63bc2.chunk.css.map", + "static/js/2.8ad7236a.chunk.js.LICENSE.txt": "/static/js/2.8ad7236a.chunk.js.LICENSE.txt", + "static/media/en.501888db.svg": "/static/media/en.501888db.svg", + "static/media/fr.b75cd962.svg": "/static/media/fr.b75cd962.svg", + "static/media/mail-send.66b8d739.svg": "/static/media/mail-send.66b8d739.svg", + "static/media/password.488f5f4c.svg": "/static/media/password.488f5f4c.svg" + }, + "entrypoints": [ + "static/js/runtime-main.2d7c76f9.js", + "static/js/2.8ad7236a.chunk.js", + "static/css/main.9eb63bc2.chunk.css", + "static/js/main.e589eaf8.chunk.js" + ] +} \ No newline at end of file diff --git a/fittrackee_api/dist/favicon.ico b/fittrackee_api/dist/favicon.ico new file mode 100644 index 00000000..fa0ad4fc Binary files /dev/null and b/fittrackee_api/dist/favicon.ico differ diff --git a/fittrackee_api/dist/img/photo.png b/fittrackee_api/dist/img/photo.png new file mode 100644 index 00000000..a802c0d7 Binary files /dev/null and b/fittrackee_api/dist/img/photo.png differ diff --git a/fittrackee_api/dist/img/sports/cycling-sport.png b/fittrackee_api/dist/img/sports/cycling-sport.png new file mode 100644 index 00000000..25f5e0df Binary files /dev/null and b/fittrackee_api/dist/img/sports/cycling-sport.png differ diff --git a/fittrackee_api/dist/img/sports/cycling-transport.png b/fittrackee_api/dist/img/sports/cycling-transport.png new file mode 100644 index 00000000..5df055c8 Binary files /dev/null and b/fittrackee_api/dist/img/sports/cycling-transport.png differ diff --git a/fittrackee_api/dist/img/sports/hiking.png b/fittrackee_api/dist/img/sports/hiking.png new file mode 100644 index 00000000..cc06eeb8 Binary files /dev/null and b/fittrackee_api/dist/img/sports/hiking.png differ diff --git a/fittrackee_api/dist/img/sports/mountain-biking.png b/fittrackee_api/dist/img/sports/mountain-biking.png new file mode 100644 index 00000000..9b26acfc Binary files /dev/null and b/fittrackee_api/dist/img/sports/mountain-biking.png differ diff --git a/fittrackee_api/dist/img/sports/running.png b/fittrackee_api/dist/img/sports/running.png new file mode 100644 index 00000000..fe4a2814 Binary files /dev/null and b/fittrackee_api/dist/img/sports/running.png differ diff --git a/fittrackee_api/dist/img/sports/walking.png b/fittrackee_api/dist/img/sports/walking.png new file mode 100644 index 00000000..1fc5c0d7 Binary files /dev/null and b/fittrackee_api/dist/img/sports/walking.png differ diff --git a/fittrackee_api/dist/img/weather/breeze.png b/fittrackee_api/dist/img/weather/breeze.png new file mode 100644 index 00000000..96b9e567 Binary files /dev/null and b/fittrackee_api/dist/img/weather/breeze.png differ diff --git a/fittrackee_api/dist/img/weather/clear-day.png b/fittrackee_api/dist/img/weather/clear-day.png new file mode 100644 index 00000000..94fb9add Binary files /dev/null and b/fittrackee_api/dist/img/weather/clear-day.png differ diff --git a/fittrackee_api/dist/img/weather/clear-night.png b/fittrackee_api/dist/img/weather/clear-night.png new file mode 100644 index 00000000..bf3374f5 Binary files /dev/null and b/fittrackee_api/dist/img/weather/clear-night.png differ diff --git a/fittrackee_api/dist/img/weather/cloudy.png b/fittrackee_api/dist/img/weather/cloudy.png new file mode 100644 index 00000000..3d441c46 Binary files /dev/null and b/fittrackee_api/dist/img/weather/cloudy.png differ diff --git a/fittrackee_api/dist/img/weather/fog.png b/fittrackee_api/dist/img/weather/fog.png new file mode 100644 index 00000000..6c096343 Binary files /dev/null and b/fittrackee_api/dist/img/weather/fog.png differ diff --git a/fittrackee_api/dist/img/weather/partly-cloudy-day.png b/fittrackee_api/dist/img/weather/partly-cloudy-day.png new file mode 100644 index 00000000..9ab61a21 Binary files /dev/null and b/fittrackee_api/dist/img/weather/partly-cloudy-day.png differ diff --git a/fittrackee_api/dist/img/weather/partly-cloudy-night.png b/fittrackee_api/dist/img/weather/partly-cloudy-night.png new file mode 100644 index 00000000..89a03524 Binary files /dev/null and b/fittrackee_api/dist/img/weather/partly-cloudy-night.png differ diff --git a/fittrackee_api/dist/img/weather/pour-rain.png b/fittrackee_api/dist/img/weather/pour-rain.png new file mode 100644 index 00000000..fab8baa8 Binary files /dev/null and b/fittrackee_api/dist/img/weather/pour-rain.png differ diff --git a/fittrackee_api/dist/img/weather/rain.png b/fittrackee_api/dist/img/weather/rain.png new file mode 100644 index 00000000..801fb9cc Binary files /dev/null and b/fittrackee_api/dist/img/weather/rain.png differ diff --git a/fittrackee_api/dist/img/weather/sleet.png b/fittrackee_api/dist/img/weather/sleet.png new file mode 100644 index 00000000..ea411b82 Binary files /dev/null and b/fittrackee_api/dist/img/weather/sleet.png differ diff --git a/fittrackee_api/dist/img/weather/snow.png b/fittrackee_api/dist/img/weather/snow.png new file mode 100644 index 00000000..8b3871a2 Binary files /dev/null and b/fittrackee_api/dist/img/weather/snow.png differ diff --git a/fittrackee_api/dist/img/weather/temperature.png b/fittrackee_api/dist/img/weather/temperature.png new file mode 100644 index 00000000..29b2caa9 Binary files /dev/null and b/fittrackee_api/dist/img/weather/temperature.png differ diff --git a/fittrackee_api/dist/img/weather/wind.png b/fittrackee_api/dist/img/weather/wind.png new file mode 100644 index 00000000..3a9b96fe Binary files /dev/null and b/fittrackee_api/dist/img/weather/wind.png differ diff --git a/fittrackee_api/dist/index.html b/fittrackee_api/dist/index.html new file mode 100644 index 00000000..6766131d --- /dev/null +++ b/fittrackee_api/dist/index.html @@ -0,0 +1 @@ +FitTrackee
\ No newline at end of file diff --git a/fittrackee_api/dist/manifest.json b/fittrackee_api/dist/manifest.json new file mode 100644 index 00000000..e782e789 --- /dev/null +++ b/fittrackee_api/dist/manifest.json @@ -0,0 +1,16 @@ +{ + "short_name": "FitTrackee", + "name": "Self hosted workout/activity tracker", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": "./index.html", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff", + "version": "0.2.0-beta" +} diff --git a/fittrackee_api/dist/precache-manifest.5c6aeed76c2cb8cfc6f5407698470a91.js b/fittrackee_api/dist/precache-manifest.5c6aeed76c2cb8cfc6f5407698470a91.js new file mode 100644 index 00000000..9e6d383c --- /dev/null +++ b/fittrackee_api/dist/precache-manifest.5c6aeed76c2cb8cfc6f5407698470a91.js @@ -0,0 +1,42 @@ +self.__precacheManifest = (self.__precacheManifest || []).concat([ + { + "revision": "ce27ec4197f51699274b624e1dd24806", + "url": "/index.html" + }, + { + "revision": "18e9a261449a30132350", + "url": "/static/css/main.9eb63bc2.chunk.css" + }, + { + "revision": "4fea69143e8c947ba6e0", + "url": "/static/js/2.8ad7236a.chunk.js" + }, + { + "revision": "92427c76d8e49274b27c017747c41b82", + "url": "/static/js/2.8ad7236a.chunk.js.LICENSE.txt" + }, + { + "revision": "18e9a261449a30132350", + "url": "/static/js/main.e589eaf8.chunk.js" + }, + { + "revision": "c25e4b04867fdd1a7bb1", + "url": "/static/js/runtime-main.2d7c76f9.js" + }, + { + "revision": "501888db26f05ed93528eae579c09ce9", + "url": "/static/media/en.501888db.svg" + }, + { + "revision": "b75cd9624fb6c184c40c24f5bc035610", + "url": "/static/media/fr.b75cd962.svg" + }, + { + "revision": "66b8d739b7190f68ea99314d55e1f53d", + "url": "/static/media/mail-send.66b8d739.svg" + }, + { + "revision": "488f5f4cd9648db1147b97d8f1357e24", + "url": "/static/media/password.488f5f4c.svg" + } +]); \ No newline at end of file diff --git a/fittrackee_api/dist/service-worker.js b/fittrackee_api/dist/service-worker.js new file mode 100644 index 00000000..7a351a59 --- /dev/null +++ b/fittrackee_api/dist/service-worker.js @@ -0,0 +1,39 @@ +/** + * Welcome to your Workbox-powered service worker! + * + * You'll need to register this file in your web app and you should + * disable HTTP caching for this file too. + * See https://goo.gl/nhQhGp + * + * The rest of the code is auto-generated. Please don't update this file + * directly; instead, make changes to your Workbox build configuration + * and re-run your build process. + * See https://goo.gl/2aRDsh + */ + +importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); + +importScripts( + "/precache-manifest.5c6aeed76c2cb8cfc6f5407698470a91.js" +); + +self.addEventListener('message', (event) => { + if (event.data && event.data.type === 'SKIP_WAITING') { + self.skipWaiting(); + } +}); + +workbox.core.clientsClaim(); + +/** + * The workboxSW.precacheAndRoute() method efficiently caches and responds to + * requests for URLs in the manifest. + * See https://goo.gl/S9QRab + */ +self.__precacheManifest = [].concat(self.__precacheManifest || []); +workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); + +workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), { + + blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/], +}); diff --git a/fittrackee_api/dist/static/css/main.9eb63bc2.chunk.css b/fittrackee_api/dist/static/css/main.9eb63bc2.chunk.css new file mode 100644 index 00000000..db0c3d5d --- /dev/null +++ b/fittrackee_api/dist/static/css/main.9eb63bc2.chunk.css @@ -0,0 +1,2 @@ +html{height:100vh}body{background-color:#eaeaea;margin:0;min-height:100vh;padding-bottom:50px;position:relative}.App{padding-bottom:20px;text-align:center}.App-logo{-webkit-animation:App-logo-spin 20s linear infinite;animation:App-logo-spin 20s linear infinite;height:80px}.App-header{background-color:#222;height:150px;padding:20px;color:#fff}.App-title{font-size:1.5em}.App-intro{font-size:large}.App-nav-profile-img{max-width:32px;max-height:32px;border-radius:50%}.App-profile-img-small{max-width:150px;max-height:150px;border-radius:50%}@-webkit-keyframes App-logo-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes App-logo-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a{color:#40578a}input[type=text],label,textarea{width:100%}.activities-result{font-size:.85em}.activity-card{margin-bottom:15px}.activity-details{font-size:.95em}.activity-date{font-size:.75em}.activity-filter{font-size:.9em}.activity-filter .col-2,.col-5{padding:0}.activity-label{font-size:.8em;color:#666}.activity-logo{margin:0 5px;max-width:20px;max-height:20px}.activity-map{background-color:#eaeaea;height:225px;width:400px}.activity-no-map{background-color:#eaeaea;color:#666;font-style:italic;height:400px;line-height:400px}.activity-notes,.actvitiy-segments{font-size:.9em;font-style:italic;margin-top:10px;padding:5px}.activity-page{margin-top:20px}.activity-segments-list{list-style:square}.activity-sport{margin-right:1px;max-width:18px;max-height:18px}.activity-title .map-attribution-list,.activity-title img{display:none}.activity-title img{border:1px solid #d3d3d3;border-radius:4px;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19)}.activity-title .map-attribution-list,.activity-title img{display:none;margin-left:20px;position:absolute;z-index:1000}.activity-title .map-attribution-list{font-size:11px}.activity-title:hover .map-attribution-list,.activity-title:hover img{display:block}.add-activity{margin-top:50px}.add-activity-radio{margin-right:10px}.admin-img{max-width:35px;max-height:35px}.admin-items{list-style-type:square}.admin-message{color:#7c7c7d;font-size:.9em;font-style:italic;margin-left:10px}.app-config-form label{font-weight:700}.btn{margin-right:10px}.card{text-align:left}.chart{font-size:.9em}.chart-activities{margin-left:60px}.chart-arrows{margin-top:7px}.chart-filters{padding-bottom:10px}.chart-info{font-size:.8em;font-style:italic}.chart-radio{display:flex;font-size:.9em}.chart-radio input{margin-right:10px}.chart-stats{font-size:.8em}.chart-title{font-size:1.1em;margin-bottom:10px}.col-activity-logo{padding-right:0}.custom-modal{background-color:#fff;border-radius:5px;max-width:500px;margin:20% auto;z-index:1250}.custom-modal-backdrop{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.3);padding:50px;z-index:1240}.custom-fa{margin-right:5px}.custom-fa-small{font-size:.8em;margin-left:-.8em}@media only screen and (max-width:992px){.custom-fa-small{font-size:.6em}}.custom-tooltip{background-color:#fff;border:1px solid #d3d3d3;padding:10px}.custom-tooltip p{margin:5px}.custom-tooltip-label{font-weight:700}.dashboard{height:100%}.dashboard,.history{margin-top:30px}.dropdown-wrapper{width:50px}.dropdown-list{background-color:#f8f9fa;padding:5px 0;position:absolute;text-align:left;z-index:10}.dropdown-item{cursor:default;font-size:.9em}.dropdown-item-selected{font-weight:700}.dropdown-item-selected:after{content:" ✔"}.error-message{margin-top:10px}.fa-as-link{cursor:pointer;color:#40578a}.fa-as-link:hover{color:#0056b3}.fa-question-circle{color:#6c757d;margin-left:3px}.fa-trophy{color:#daa520}.fa-color{color:#405976}.footer{background-color:#f8f9fa;bottom:0;color:#8b8c8c;font-size:.9em;height:50px;line-height:50px;position:absolute;width:100%}.form-disabled .form-group input::-webkit-inner-spin-button,.form-disabled .form-group input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.form-disabled .form-group input[type=number]{-moz-appearance:textfield}.form-disabled .form-group input{border:none;pointer-events:none}.gpx-file{height:inherit}.huge{font-size:25px}.i18n-flag svg{height:100%;opacity:.9;width:15px}.inactive-link{color:#d3d3d3}.leaflet-container{height:400px}.loader{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;border:8px solid #f3f3f3;border-top-color:#3498db;border-radius:50%;height:60px;margin-left:41%;width:60px}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.map-attribution{bottom:0;font-size:11px;position:absolute}.map-attribution-text{background-color:hsla(0,0%,100%,.5);padding-left:2px;padding-right:2px}.no-picture{color:#405976}.page-title{font-size:2em;margin:1em;text-align:center}.password-forget{margin:10px;font-size:.9em;font-style:italic}.radioLabel{text-align:center}.record-logo{margin-right:5px;max-width:25px;max-height:25px}.record-table table,.record-table td,.record-table th{font-size:.9em;padding:.1em}.sport-img{max-width:35px;max-height:35px}.sport-img-medium{max-width:45px;max-height:45px}.stats-disabled{opacity:.3;pointer-events:none}.svg-icon{fill:#405976;height:70px;margin-left:auto;margin-right:auto;width:70px}.time-frames{align-items:center;display:inline-flex}.time-frame label{float:left;padding:0 5px}.time-frame label input{display:none}.time-frame label span{border:1px solid #a9a9a9;border-radius:9%;color:#7b7b7b;display:block;font-size:.9em;padding:2px 6px;text-align:center}.time-frame input:checked+span{background-color:#a9a9a9;color:#fff}.timezone-custom{font-size:.9em!important;height:inherit!important}.timezone-custom input{border:0!important;padding:5px 1px!important}.timezone-custom ul{background:#fff}.timezone-picker{padding:0}.timezone-picker-textfield{font-size:15px}.unlink{color:#000}.user-filters{font-size:.9em;margin-bottom:10px}.user-label{font-weight:700}.weather-img{max-width:35px;max-height:35px}.weather-img-small{max-width:20px;max-height:20px}.weather-table{margin-bottom:0}.weather-table table,.weather-table td,.weather-table th{font-size:.9em;padding:.1em}.heading-span,.heading-span-absolute{background:#eee;color:#696969;display:none;font-size:10px;font-weight:700;padding:5px;text-transform:uppercase;top:0;left:0}.heading-span-absolute{position:absolute;display:none}@media(max-width:1024px){table thead{left:-9999px;position:absolute;visibility:hidden}table tr{border-bottom:0;display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:40px}table td{border:1px solid #d3d3d3;margin:0 -1px -1px 0;padding-top:30px!important;position:relative;text-align:center;width:50%}.record-tr{margin-bottom:0}.record-td{padding-top:0!important}.heading-span,.heading-span-absolute{display:block}}:root{--main-color:#1a8fff;--text-color:#777;--text-color-light:#ccc;--border-color:#eee;--bg-color:#f9f9f9;--neutral-color:#fff}.calendar .col-start{justify-content:flex-start;text-align:left}.calendar .col-center{justify-content:center;text-align:center}.calendar .col-end{justify-content:flex-end;text-align:right}.calendar{display:block;position:relative;width:100%;background:#fff;background:var(--neutral-color);border:1px solid #eee;border:1px solid var(--border-color)}.calendar .header{text-transform:uppercase;font-weight:700;padding:.5em 0;border-bottom:1px solid #eee;border-bottom:1px solid var(--border-color)}.calendar .header .icon{cursor:pointer;transition:.15s ease-out}.calendar .header .icon:hover{transform:scale(1.75);transition:.25s ease-out;color:#1a8fff;color:var(--main-color)}.calendar .header .icon:first-of-type{margin-left:1em}.calendar .header .icon:last-of-type{margin-right:1em}.calendar .days{text-transform:uppercase;font-weight:400;color:#ccc;color:var(--text-color-light);font-size:70%;padding:.75em 0;border-bottom:1px solid #eee;border-bottom:1px solid var(--border-color)}.calendar .body .cell{position:relative;height:3em;border-right:1px solid #eee;border-right:1px solid var(--border-color);background:#fff;background:var(--neutral-color)}.calendar .body .cell:hover{background:#f9f9f9;background:var(--bg-color)}.calendar .body .selected{border-left:10px solid transparent;border-image:linear-gradient(45deg,#1a8fff,#53cbf1 40%)}.calendar .body .row{border-bottom:1px solid #eee;border-bottom:1px solid var(--border-color);margin:0}.calendar .body .row:last-child{border-bottom:none}.calendar .body .cell:last-child{border-right:none}.calendar .body .cell .number{position:absolute;font-size:82.5%;line-height:1;top:.75em;right:.75em;font-weight:700}.calendar .body .disabled{color:#ccc;color:var(--text-color-light);pointer-events:none}.calendar .body .col{flex-grow:0;flex-basis:14.28571%;width:14.28571%}.calendar .body .img-disabled{opacity:.4}.calendar .body .weekend{background:#f5f5f5}.calendar .body .today{background:#eff1f3}.calendar-activity,.calendar-more{display:none}.calendar-more{color:#405976;font-size:.7em;margin-left:.3em}.calendar-display-more{background:#f5f5f5;border-radius:4px;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);margin-bottom:10px;padding:10px 15px;position:absolute;min-width:52px;z-index:1000}.calendar-activity-more{display:none}@media only screen and (max-width:992px){.calendar-activity-more:nth-child(n+3),.calendar-activity:nth-child(-n+2),.calendar-activity:nth-child(n+3)~.calendar-more{display:inline-block}}@media only screen and (min-width:992px) and (max-width:1200px){.calendar-activity-more:nth-child(n+5),.calendar-activity:nth-child(-n+4),.calendar-activity:nth-child(n+5)~.calendar-more{display:inline-block}}@media only screen and (min-width:1200px){.calendar-activity-more:nth-child(n+7),.calendar-activity:nth-child(-n+6),.calendar-activity:nth-child(n+7)~.calendar-more{display:inline-block}} +/*# sourceMappingURL=main.9eb63bc2.chunk.css.map */ \ No newline at end of file diff --git a/fittrackee_api/dist/static/css/main.9eb63bc2.chunk.css.map b/fittrackee_api/dist/static/css/main.9eb63bc2.chunk.css.map new file mode 100644 index 00000000..5d000b60 --- /dev/null +++ b/fittrackee_api/dist/static/css/main.9eb63bc2.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["App.css"],"names":[],"mappings":"AAAA,KACE,YACF,CAEA,KACE,wBAAyB,CACzB,QAAS,CACT,gBAAiB,CACjB,mBAAoB,CACpB,iBACA,CAEF,KACE,mBAAoB,CACpB,iBACF,CAEA,UACE,mDAA4C,CAA5C,2CAA4C,CAC5C,WACF,CAEA,YACE,qBAAsB,CACtB,YAAa,CACb,YAAa,CACb,UACF,CAEA,WACE,eACF,CAEA,WACE,eACF,CAEA,qBACE,cAAe,CACf,eAAgB,CAChB,iBACF,CAEA,uBACE,eAAgB,CAChB,gBAAiB,CACjB,iBACF,CAEA,iCACE,GAAO,sBAAyB,CAChC,GAAK,uBAA2B,CAClC,CAHA,yBACE,GAAO,sBAAyB,CAChC,GAAK,uBAA2B,CAClC,CAEA,EACE,aACF,CAMA,gCACE,UACF,CAEA,mBACE,eACF,CAEA,eACE,kBACF,CAEA,kBACE,eACF,CACA,eACE,eACF,CAEA,iBACE,cACF,CAEA,+BACE,SACF,CAEA,gBACE,cAAgB,CAChB,UACF,CAEA,eACE,YAAa,CACb,cAAe,CACf,eACF,CAEA,cACE,wBAAyB,CACzB,YAAa,CACb,WACF,CAEA,iBACE,wBAAyB,CACzB,UAAc,CACd,iBAAkB,CAClB,YAAa,CACb,iBACF,CAEA,mCACE,cAAgB,CAChB,iBAAkB,CAClB,eAAgB,CAChB,WACF,CAEA,eACE,eACF,CAEA,wBACE,iBACF,CAEA,gBACE,gBAAiB,CACjB,cAAe,CACf,eACF,CAEA,0DACE,YACF,CAEA,oBACE,wBAA2B,CAC3B,iBAAkB,CAClB,kEAKF,CAEA,0DANE,YAAa,CACb,gBAAiB,CACjB,iBAAkB,CAClB,YASF,CANA,sCAEE,cAIF,CAEA,sEACE,aACF,CAEA,cACE,eACF,CAEA,oBACE,iBACF,CAEA,WACE,cAAe,CACf,eACF,CAEA,aACE,sBACF,CAEA,eACE,aAAc,CACd,cAAgB,CAChB,iBAAkB,CAClB,gBACF,CAEA,uBACE,eACF,CAEA,KACE,iBACF,CAEA,MACE,eACF,CAEA,OACE,cACF,CAEA,kBACE,gBACF,CAEA,cACE,cACF,CAEA,eACE,mBACF,CAEA,YACE,cAAgB,CAChB,iBACF,CAEA,aACE,YAAa,CACb,cACF,CAMA,mBACE,iBACF,CAEA,aACE,cACF,CAEA,aACE,eAAgB,CAChB,kBACF,CAEA,mBACE,eACF,CAEA,cACE,qBAAsB,CACtB,iBAAkB,CAClB,eAAgB,CAChB,eAAgB,CAChB,YACF,CAEA,uBACE,cAAe,CACf,KAAM,CACN,QAAS,CACT,MAAO,CACP,OAAQ,CACR,+BAAiC,CACjC,YAAa,CACb,YACF,CAEA,WACE,gBACF,CAEA,iBACE,cAAgB,CAChB,iBACF,CAEA,yCACE,iBACE,cACF,CACF,CAEA,gBACE,qBAAsB,CACtB,wBAA2B,CAC3B,YACF,CAEA,kBACE,UACF,CAEA,sBACE,eACF,CAEA,WACE,WACF,CACA,oBACE,eACF,CAEA,kBACE,UACF,CAEA,eACE,wBAAyB,CACzB,aAAc,CACd,iBAAkB,CAClB,eAAgB,CAChB,UACF,CAEA,eACE,cAAe,CACf,cACF,CAEA,wBACE,eACF,CAEA,8BACE,YACF,CAEA,eACE,eACF,CAEA,YACE,cAAc,CACd,aACF,CAEA,kBACE,aACF,CAEA,oBACE,aAAc,CACd,eACF,CAEA,WACE,aACF,CAEA,UACE,aACF,CAEA,QACE,wBAAyB,CACzB,QAAS,CACT,aAAc,CACd,cAAgB,CAChB,WAAY,CACZ,gBAAiB,CACjB,iBAAkB,CAClB,UACF,CAGA,wHAEE,uBAAwB,CACxB,QACF,CAGA,8CACE,yBACF,CAEA,iCACE,WAAY,CACZ,mBACF,CAGA,UACE,cACF,CAEA,MACE,cACF,CAEA,eACE,WAAY,CACZ,UAAW,CACX,UACF,CAEA,eACE,aACF,CAEA,mBACE,YACF,CAEA,QACE,yCAAkC,CAAlC,iCAAkC,CAElC,wBAA6B,CAA7B,wBAA6B,CAC7B,iBAAkB,CAClB,WAAY,CACZ,eAAgB,CAChB,UACF,CAEA,wBACE,GAAK,sBAAyB,CAC9B,GAAO,uBAA2B,CACpC,CAHA,gBACE,GAAK,sBAAyB,CAC9B,GAAO,uBAA2B,CACpC,CAEA,iBACE,QAAS,CACT,cAAe,CACf,iBACF,CAEA,sBACE,mCAAyC,CACzC,gBAAiB,CACjB,iBACF,CAEA,YACE,aACF,CAEA,YACE,aAAc,CACd,UAAW,CACX,iBACF,CAEA,iBACE,WAAY,CACZ,cAAe,CACf,iBACF,CAEA,YACE,iBACF,CAEA,aACE,gBAAiB,CACjB,cAAe,CACf,eACF,CAEA,sDACE,cAAgB,CAChB,YACF,CAEA,WACE,cAAe,CACf,eACF,CAEA,kBACE,cAAe,CACf,eACF,CAEA,gBACE,UAAY,CACZ,mBACF,CAEA,UACE,YAAa,CACb,WAAY,CACZ,gBAAiB,CACjB,iBAAkB,CAClB,UACF,CAEA,aACE,kBAAmB,CACnB,mBACF,CAEA,kBACE,UAAW,CACX,aACF,CAEA,wBACE,YACF,CAEA,uBACE,wBAAyB,CACzB,gBAAiB,CACjB,aAAc,CACd,aAAc,CACd,cAAgB,CAChB,eAAgB,CAChB,iBACF,CAEA,+BACE,wBAAyB,CACzB,UACF,CAEA,iBACE,wBAA0B,CAC1B,wBACF,CAEA,uBACE,kBAAoB,CACpB,yBACF,CAEA,oBACE,eACF,CAEA,iBACE,SACF,CAEA,2BACE,cACF,CAEA,QACE,UACF,CAEA,cACE,cAAgB,CAChB,kBACF,CAEA,YACE,eACF,CAEA,aACE,cAAe,CACf,eACF,CAEA,mBACE,cAAe,CACf,eACF,CAEA,eACE,eACF,CAEA,yDACE,cAAgB,CAChB,YACF,CAIA,qCAEE,eAAgB,CAChB,aAAc,CACd,YAAa,CACb,cAAe,CACf,eAAiB,CACjB,WAAY,CACZ,wBAAyB,CACzB,KAAM,CACN,MACF,CAEA,uBACE,iBAAkB,CAClB,YACF,CAEA,yBACE,YACE,YAAa,CACb,iBAAkB,CAClB,iBACF,CACA,SACE,eAAgB,CAChB,YAAa,CACb,kBAAmB,CACnB,cAAe,CACf,kBACF,CACA,SACE,wBAA2B,CAC3B,oBAAqB,CACrB,0BAA4B,CAC5B,iBAAkB,CAClB,iBAAkB,CAClB,SACF,CACA,WACE,eACF,CACA,WACE,uBACF,CACA,qCACE,aACF,CACF,CAGA,MACE,oBAAqB,CACrB,iBAAkB,CAClB,uBAAwB,CACxB,mBAAoB,CACpB,kBAAmB,CACnB,oBACF,CAEA,qBACE,0BAA2B,CAC3B,eACF,CAEA,sBACE,sBAAuB,CACvB,iBACF,CAEA,mBACE,wBAAyB,CACzB,gBACF,CAEA,UACE,aAAc,CACd,iBAAkB,CAClB,UAAW,CACX,eAAgC,CAAhC,+BAAgC,CAChC,qBAAqC,CAArC,oCACF,CAEA,kBACE,wBAAyB,CACzB,eAAgB,CAEhB,cAAgB,CAChB,4BAA4C,CAA5C,2CACF,CAEA,wBACE,cAAe,CACf,wBACF,CAEA,8BACE,qBAAsB,CACtB,wBAAyB,CACzB,aAAwB,CAAxB,uBACF,CAEA,sCACE,eACF,CAEA,qCACE,gBACF,CAEA,gBACE,wBAAyB,CACzB,eAAgB,CAChB,UAA8B,CAA9B,6BAA8B,CAC9B,aAAc,CACd,eAAgB,CAChB,4BAA4C,CAA5C,2CACF,CAEA,sBACE,iBAAkB,CAClB,UAAW,CACX,2BAA2C,CAA3C,0CAA2C,CAC3C,eAAgC,CAAhC,+BACF,CAEA,4BACE,kBAA2B,CAA3B,0BACF,CAEA,0BACE,kCAAmC,CACnC,uDACF,CAEA,qBACE,4BAA4C,CAA5C,2CAA4C,CAC5C,QACF,CAEA,gCACE,kBACF,CAEA,iCACE,iBACF,CAEA,8BACE,iBAAkB,CAClB,eAAgB,CAChB,aAAc,CACd,SAAU,CACV,WAAY,CACZ,eACF,CAEA,0BACE,UAA8B,CAA9B,6BAA8B,CAC9B,mBACF,CAEA,qBACE,WAAY,CACZ,oBAAwB,CACxB,eACF,CAEA,8BACE,UACF,CAEA,yBACE,kBACF,CAEA,uBACE,kBACF,CAEA,kCAEE,YACF,CAEA,eACE,aAAc,CACd,cAAe,CACf,gBACF,CAEA,uBACE,kBAAsB,CACtB,iBAAkB,CAClB,kEAA4E,CAC5E,kBAAmB,CACnB,iBAAkB,CAClB,iBAAkB,CAClB,cAAe,CACf,YACF,CAEA,wBACE,YACF,CAEA,yCAEE,2HAGE,oBACF,CAEF,CAEA,gEAEE,2HAGE,oBACF,CAEF,CAEA,0CAEE,2HAGE,oBACF,CAEF","file":"main.9eb63bc2.chunk.css","sourcesContent":["html {\n height: 100vh;\n}\n\nbody {\n background-color: #eaeaea;\n margin: 0;\n min-height: 100vh;\n padding-bottom: 50px;\n position: relative;\n }\n\n.App {\n padding-bottom: 20px;\n text-align: center;\n}\n\n.App-logo {\n animation: App-logo-spin infinite 20s linear;\n height: 80px;\n}\n\n.App-header {\n background-color: #222;\n height: 150px;\n padding: 20px;\n color: white;\n}\n\n.App-title {\n font-size: 1.5em;\n}\n\n.App-intro {\n font-size: large;\n}\n\n.App-nav-profile-img {\n max-width: 32px;\n max-height: 32px;\n border-radius: 50%;\n}\n\n.App-profile-img-small {\n max-width: 150px;\n max-height: 150px;\n border-radius: 50%;\n}\n\n@keyframes App-logo-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\na {\n color: #40578a;\n}\n\ninput[type=\"text\"], textarea {\n width: 100%;\n}\n\nlabel {\n width: 100%;\n}\n\n.activities-result {\n font-size: 0.85em;\n}\n\n.activity-card {\n margin-bottom: 15px;\n}\n\n.activity-details {\n font-size: 0.95em;\n}\n.activity-date {\n font-size: 0.75em;\n}\n\n.activity-filter {\n font-size: 0.9em;\n}\n\n.activity-filter .col-2, .col-5{\n padding: 0;\n}\n\n.activity-label {\n font-size: 0.8em;\n color: #666\n}\n\n.activity-logo {\n margin: 0 5px;\n max-width: 20px;\n max-height: 20px;\n}\n\n.activity-map {\n background-color: #eaeaea;\n height: 225px;\n width: 400px;\n}\n\n.activity-no-map {\n background-color: #eaeaea;\n color: #666666;\n font-style: italic;\n height: 400px;\n line-height: 400px;\n}\n\n.activity-notes, .actvitiy-segments {\n font-size: 0.9em;\n font-style: italic;\n margin-top: 10px;\n padding: 5px;\n}\n\n.activity-page {\n margin-top: 20px;\n}\n\n.activity-segments-list {\n list-style: square;\n}\n\n.activity-sport {\n margin-right: 1px;\n max-width: 18px;\n max-height: 18px;\n}\n\n.activity-title img, .activity-title .map-attribution-list {\n display: none;\n}\n\n.activity-title img {\n border: 1px solid lightgrey;\n border-radius: 4px;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n display: none;\n margin-left: 20px;\n position: absolute;\n z-index: 1000;\n}\n\n.activity-title .map-attribution-list {\n display: none;\n font-size: 11px;\n margin-left: 20px;\n position: absolute;\n z-index: 1000;\n}\n\n.activity-title:hover img, .activity-title:hover .map-attribution-list {\n display: block;\n}\n\n.add-activity {\n margin-top: 50px;\n}\n\n.add-activity-radio {\n margin-right: 10px;\n}\n\n.admin-img {\n max-width: 35px;\n max-height: 35px;\n}\n\n.admin-items {\n list-style-type: square;\n}\n\n.admin-message {\n color: #7c7c7d;\n font-size: 0.9em;\n font-style: italic;\n margin-left: 10px;\n}\n\n.app-config-form label {\n font-weight: bold;\n}\n\n.btn {\n margin-right: 10px;\n}\n\n.card {\n text-align: left;\n}\n\n.chart {\n font-size: 0.9em;\n}\n\n.chart-activities {\n margin-left: 60px;\n}\n\n.chart-arrows {\n margin-top: 7px;\n}\n\n.chart-filters {\n padding-bottom: 10px;\n}\n\n.chart-info {\n font-size: 0.8em;\n font-style: italic;\n}\n\n.chart-radio {\n display: flex;\n font-size: 0.9em;\n}\n\n.chart-radio label {\n /* display: flex; */\n}\n\n.chart-radio input {\n margin-right: 10px;\n}\n\n.chart-stats {\n font-size: 0.8em;\n}\n\n.chart-title {\n font-size: 1.1em;\n margin-bottom: 10px;\n}\n\n.col-activity-logo{\n padding-right: 0;\n}\n\n.custom-modal {\n background-color: #fff;\n border-radius: 5px;\n max-width: 500px;\n margin: 20% auto;\n z-index: 1250;\n}\n\n.custom-modal-backdrop {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(0,0,0,0.3);\n padding: 50px;\n z-index: 1240;\n}\n\n.custom-fa {\n margin-right: 5px;\n}\n\n.custom-fa-small {\n font-size: 0.8em;\n margin-left: -0.8em;\n}\n\n@media only screen and (max-width: 992px) {\n .custom-fa-small {\n font-size: 0.6em;\n }\n}\n\n.custom-tooltip {\n background-color: #fff;\n border: 1px solid lightgrey;\n padding: 10px;\n}\n\n.custom-tooltip p {\n margin: 5px;\n}\n\n.custom-tooltip-label {\n font-weight: bold;\n}\n\n.dashboard {\n height: 100%;\n}\n.dashboard, .history {\n margin-top: 30px;\n}\n\n.dropdown-wrapper {\n width: 50px;\n}\n\n.dropdown-list {\n background-color: #f8f9fa;\n padding: 5px 0;\n position: absolute;\n text-align: left;\n z-index: 10;\n}\n\n.dropdown-item {\n cursor: default;\n font-size: 0.9em;\n}\n\n.dropdown-item-selected {\n font-weight: bold;\n}\n\n.dropdown-item-selected::after {\n content: \" ✔\";\n}\n\n.error-message {\n margin-top: 10px;\n}\n\n.fa-as-link {\n cursor:pointer;\n color: #40578a;\n}\n\n.fa-as-link:hover {\n color: #0056b3;\n}\n\n.fa-question-circle {\n color: #6c757d;\n margin-left: 3px;\n}\n\n.fa-trophy {\n color: goldenrod;\n}\n\n.fa-color {\n color: #405976;\n}\n\n.footer {\n background-color: #f8f9fa;\n bottom: 0;\n color: #8b8c8c;\n font-size: 0.9em;\n height: 50px;\n line-height: 50px;\n position: absolute;\n width: 100%;\n}\n\n/* Chrome, Safari, Edge, Opera */\n.form-disabled .form-group input::-webkit-outer-spin-button,\n.form-disabled .form-group input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\n.form-disabled .form-group input[type=number] {\n -moz-appearance: textfield;\n}\n\n.form-disabled .form-group input{\n border: none;\n pointer-events: none;\n}\n\n\n.gpx-file {\n height: inherit;\n}\n\n.huge {\n font-size: 25px;\n}\n\n.i18n-flag svg {\n height: 100%;\n opacity: .9;\n width: 15px;\n}\n\n.inactive-link {\n color: lightgrey;\n}\n\n.leaflet-container {\n height: 400px;\n}\n\n.loader {\n animation: spin 2s linear infinite;\n border: 8px solid #f3f3f3;\n border-top: 8px solid #3498db;\n border-radius: 50%;\n height: 60px;\n margin-left: 41%;\n width: 60px;\n}\n\n@keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n.map-attribution {\n bottom: 0;\n font-size: 11px;\n position: absolute;\n}\n\n.map-attribution-text {\n background-color: rgba(255, 255, 255, .5);\n padding-left: 2px;\n padding-right: 2px;\n}\n\n.no-picture {\n color: #405976;\n}\n\n.page-title {\n font-size: 2em;\n margin: 1em;\n text-align: center;\n}\n\n.password-forget {\n margin: 10px;\n font-size: .9em;\n font-style: italic;\n}\n\n.radioLabel {\n text-align: center;\n}\n\n.record-logo {\n margin-right: 5px;\n max-width: 25px;\n max-height: 25px;\n}\n\n.record-table table, .record-table th, .record-table td{\n font-size: 0.9em;\n padding: 0.1em;\n}\n\n.sport-img {\n max-width: 35px;\n max-height: 35px;\n}\n\n.sport-img-medium {\n max-width: 45px;\n max-height: 45px;\n}\n\n.stats-disabled {\n opacity: 0.3;\n pointer-events: none;\n}\n\n.svg-icon {\n fill: #405976;\n height: 70px;\n margin-left: auto;\n margin-right: auto;\n width: 70px;\n}\n\n.time-frames {\n align-items: center;\n display: inline-flex;\n}\n\n.time-frame label {\n float: left;\n padding: 0 5px;\n}\n\n.time-frame label input {\n display: none;\n}\n\n.time-frame label span {\n border: #a9a9a9 solid 1px;\n border-radius: 9%;\n color: #7b7b7b;\n display: block;\n font-size: 0.9em;\n padding: 2px 6px;\n text-align: center;\n}\n\n.time-frame input:checked + span {\n background-color: #a9a9a9;\n color: #ffffff;\n}\n\n.timezone-custom {\n font-size: .9em !important;\n height: inherit !important;\n}\n\n.timezone-custom input {\n border: 0 !important;\n padding: 5px 1px !important;\n}\n\n.timezone-custom ul {\n background: white;\n}\n\n.timezone-picker {\n padding: 0;\n}\n\n.timezone-picker-textfield {\n font-size: 15px;\n}\n\n.unlink {\n color: black;\n}\n\n.user-filters {\n font-size: 0.9em;\n margin-bottom: 10px;\n}\n\n.user-label {\n font-weight: bold;\n}\n\n.weather-img {\n max-width: 35px;\n max-height: 35px;\n}\n\n.weather-img-small {\n max-width: 20px;\n max-height: 20px;\n}\n\n.weather-table {\n margin-bottom: 0;\n}\n\n.weather-table table, .weather-table th, .weather-table td{\n font-size: 0.9em;\n padding: 0.1em;\n}\n\n/* responsive table */\n/* adapted from https://uglyduck.ca/making-tables-responsive-with-minimal-css/ */\n.heading-span,\n.heading-span-absolute {\n background: #eee;\n color: dimgrey;\n display: none;\n font-size: 10px;\n font-weight: bold;\n padding: 5px;\n text-transform: uppercase;\n top: 0;\n left: 0;\n}\n\n.heading-span-absolute {\n position: absolute;\n display: none;\n}\n\n@media(max-width: 1024px) {\n table thead {\n left: -9999px;\n position: absolute;\n visibility: hidden;\n }\n table tr {\n border-bottom: 0;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin-bottom: 40px;\n }\n table td {\n border: 1px solid lightgrey;\n margin: 0 -1px -1px 0;\n padding-top: 30px !important;\n position: relative;\n text-align: center;\n width: 50%;\n }\n .record-tr {\n margin-bottom: 0;\n }\n .record-td {\n padding-top: 0 !important;\n }\n .heading-span, .heading-span-absolute {\n display: block;\n }\n}\n\n/* calendar */\n:root {\n --main-color: #1a8fff;\n --text-color: #777;\n --text-color-light: #ccc;\n --border-color: #eee;\n --bg-color: #f9f9f9;\n --neutral-color: #fff;\n}\n\n.calendar .col-start {\n justify-content: flex-start;\n text-align: left;\n}\n\n.calendar .col-center {\n justify-content: center;\n text-align: center;\n}\n\n.calendar .col-end {\n justify-content: flex-end;\n text-align: right;\n}\n\n.calendar {\n display: block;\n position: relative;\n width: 100%;\n background: var(--neutral-color);\n border: 1px solid var(--border-color);\n}\n\n.calendar .header {\n text-transform: uppercase;\n font-weight: 700;\n /*font-size: 115%;*/\n padding: 0.5em 0;\n border-bottom: 1px solid var(--border-color);\n}\n\n.calendar .header .icon {\n cursor: pointer;\n transition: .15s ease-out;\n}\n\n.calendar .header .icon:hover {\n transform: scale(1.75);\n transition: .25s ease-out;\n color: var(--main-color);\n}\n\n.calendar .header .icon:first-of-type {\n margin-left: 1em;\n}\n\n.calendar .header .icon:last-of-type {\n margin-right: 1em;\n}\n\n.calendar .days {\n text-transform: uppercase;\n font-weight: 400;\n color: var(--text-color-light);\n font-size: 70%;\n padding: .75em 0;\n border-bottom: 1px solid var(--border-color);\n}\n\n.calendar .body .cell {\n position: relative;\n height: 3em;\n border-right: 1px solid var(--border-color);\n background: var(--neutral-color);\n}\n\n.calendar .body .cell:hover {\n background: var(--bg-color);\n}\n\n.calendar .body .selected {\n border-left: 10px solid transparent;\n border-image: linear-gradient(45deg, #1a8fff 0%,#53cbf1 40%);\n}\n\n.calendar .body .row {\n border-bottom: 1px solid var(--border-color);\n margin: 0;\n}\n\n.calendar .body .row:last-child {\n border-bottom: none;\n}\n\n.calendar .body .cell:last-child {\n border-right: none;\n}\n\n.calendar .body .cell .number {\n position: absolute;\n font-size: 82.5%;\n line-height: 1;\n top: .75em;\n right: .75em;\n font-weight: 700;\n}\n\n.calendar .body .disabled {\n color: var(--text-color-light);\n pointer-events: none;\n}\n\n.calendar .body .col {\n flex-grow: 0;\n flex-basis: calc(100%/7);\n width: calc(100%/7);\n}\n\n.calendar .body .img-disabled {\n opacity: .4;\n}\n\n.calendar .body .weekend {\n background: #f5f5f5;\n}\n\n.calendar .body .today {\n background: #eff1f3;\n}\n\n.calendar-activity,\n.calendar-more {\n display: none;\n}\n\n.calendar-more {\n color: #405976;\n font-size: .7em;\n margin-left: 0.3em;\n}\n\n.calendar-display-more {\n background: whitesmoke;\n border-radius: 4px;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n margin-bottom: 10px;\n padding: 10px 15px;\n position: absolute;\n min-width: 52px;\n z-index: 1000;\n}\n\n.calendar-activity-more {\n display: none;\n}\n\n@media only screen and (max-width: 992px) {\n\n .calendar-activity:nth-child(-n+2),\n .calendar-activity:nth-child(n+3) ~ .calendar-more,\n .calendar-activity-more:nth-child(n+3) {\n display: inline-block;\n }\n\n}\n\n@media only screen and (min-width: 992px) and (max-width: 1200px) {\n\n .calendar-activity:nth-child(-n+4),\n .calendar-activity:nth-child(n+5) ~ .calendar-more,\n .calendar-activity-more:nth-child(n+5) {\n display: inline-block;\n }\n\n}\n\n@media only screen and (min-width: 1200px) {\n\n .calendar-activity:nth-child(-n+6),\n .calendar-activity:nth-child(n+7) ~ .calendar-more,\n .calendar-activity-more:nth-child(n+7) {\n display: inline-block;\n }\n\n}\n"]} \ No newline at end of file diff --git a/fittrackee_api/dist/static/js/2.8ad7236a.chunk.js b/fittrackee_api/dist/static/js/2.8ad7236a.chunk.js new file mode 100644 index 00000000..6716760f --- /dev/null +++ b/fittrackee_api/dist/static/js/2.8ad7236a.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 2.8ad7236a.chunk.js.LICENSE.txt */ +(this.webpackJsonpfittrackee_client=this.webpackJsonpfittrackee_client||[]).push([[2],[function(t,e,n){"use strict";t.exports=n(262)},function(t,e,n){t.exports=n(266)()},function(t,e,n){"use strict";function r(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}n.d(e,"a",(function(){return r}))},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r=n(58),i=n(25);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n=0;r--){var i=e[r](t);if(i)return i}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function B(t,e){return t===e}function F(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?T:n,i=e.mapStateToPropsFactories,o=void 0===i?C:i,a=e.mapDispatchToPropsFactories,s=void 0===a?A:a,u=e.mergePropsFactories,c=void 0===u?N:u,l=e.selectorFactory,p=void 0===l?R:l;return function(t,e,n,i){void 0===i&&(i={});var a=i,u=a.pure,l=void 0===u||u,d=a.areStatesEqual,m=void 0===d?B:d,y=a.areOwnPropsEqual,v=void 0===y?S:y,g=a.areStatePropsEqual,b=void 0===g?S:g,w=a.areMergedPropsEqual,_=void 0===w?S:w,x=Object(h.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),O=z(t,o,"mapStateToProps"),T=z(e,s,"mapDispatchToProps"),k=z(n,c,"mergeProps");return r(p,Object(f.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:O,initMapDispatchToProps:T,initMergeProps:k,pure:l,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:_},x))}}var U=F();var W,H=n(67);W=H.unstable_batchedUpdates,a=W},function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function o(t){return(o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==o(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return function(){var e,n=r(t);if(i()){var o=r(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return a(this,e)}}n.d(e,"a",(function(){return s}))},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";function r(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2);function i(t){Object(r.a)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},U=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},W=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},H=function(t){var e=Y(t,y.TITLE),n=Y(t,L);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var r=Y(t,j);return e||r||void 0},Z=function(t){return Y(t,C)||function(){}},V=function(t,e){return e.filter((function(e){return"undefined"!==typeof e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return B({},t,e)}),{})},q=function(t,e){return e.filter((function(t){return"undefined"!==typeof t[y.BASE]})).map((function(t){return t[y.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),i=0;i=0;n--){var r=t[n];if(r.hasOwnProperty(e))return r[e]}return null},K=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout((function(){K(e)}),0)}}(),$=function(t){return clearTimeout(t)},X="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||K:t.requestAnimationFrame||K,J="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||$:t.cancelAnimationFrame||$,Q=function(t){return console&&"function"===typeof console.warn&&console.warn(t)},tt=null,et=function(t,e){var n=t.baseTag,r=t.bodyAttributes,i=t.htmlAttributes,o=t.linkTags,a=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,l=t.styleTags,f=t.title,h=t.titleAttributes;it(y.BODY,r),it(y.HTML,i),rt(f,h);var p={baseTag:ot(y.BASE,n),linkTags:ot(y.LINK,o),metaTags:ot(y.META,a),noscriptTags:ot(y.NOSCRIPT,s),scriptTags:ot(y.SCRIPT,c),styleTags:ot(y.STYLE,l)},d={},m={};Object.keys(p).forEach((function(t){var e=p[t],n=e.newTags,r=e.oldTags;n.length&&(d[t]=n),r.length&&(m[t]=p[t].oldTags)})),e&&e(),u(t,d,m)},nt=function(t){return Array.isArray(t)?t.join(""):t},rt=function(t,e){"undefined"!==typeof t&&document.title!==t&&(document.title=nt(t)),it(y.TITLE,e)},it=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute("data-react-helmet"),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(e),s=0;s=0;f--)n.removeAttribute(o[f]);i.length===o.length?n.removeAttribute("data-react-helmet"):n.getAttribute("data-react-helmet")!==a.join(",")&&n.setAttribute("data-react-helmet",a.join(","))}},ot=function(t,e){var n=document.head||document.querySelector(y.HEAD),r=n.querySelectorAll(t+"[data-react-helmet]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var r in e)if(e.hasOwnProperty(r))if(r===_)n.innerHTML=e.innerHTML;else if(r===g)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var s="undefined"===typeof e[r]?"":e[r];n.setAttribute(r,s)}n.setAttribute("data-react-helmet","true"),i.some((function(t,e){return a=e,n.isEqualNode(t)}))?i.splice(a,1):o.push(n)})),i.forEach((function(t){return t.parentNode.removeChild(t)})),o.forEach((function(t){return n.appendChild(t)})),{oldTags:i,newTags:o}},at=function(t){return Object.keys(t).reduce((function(e,n){var r="undefined"!==typeof t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},st=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[P[n]||n]=t[n],e}),e)},ut=function(t,e,n){switch(t){case y.TITLE:return{toComponent:function(){return function(t,e,n){var r,i=((r={key:e})["data-react-helmet"]=!0,r),o=st(n,i);return[l.a.createElement(y.TITLE,o,e)]}(0,e.title,e.titleAttributes)},toString:function(){return function(t,e,n,r){var i=at(n),o=nt(e);return i?"<"+t+' data-react-helmet="true" '+i+">"+W(o,r)+"":"<"+t+' data-react-helmet="true">'+W(o,r)+""}(t,e.title,e.titleAttributes,n)}};case p:case d:return{toComponent:function(){return st(e)},toString:function(){return at(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var r,i=((r={key:n})["data-react-helmet"]=!0,r);return Object.keys(e).forEach((function(t){var n=P[t]||t;if(n===_||n===g){var r=e.innerHTML||e.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=e[t]})),l.a.createElement(t,i)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var i=Object.keys(r).filter((function(t){return!(t===_||t===g)})).reduce((function(t,e){var i="undefined"===typeof r[e]?e:e+'="'+W(r[e],n)+'"';return t?t+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===I.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+i+(a?"/>":">"+o+"")}),"")}(t,e,n)}}}},ct=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,i=t.htmlAttributes,o=t.linkTags,a=t.metaTags,s=t.noscriptTags,u=t.scriptTags,c=t.styleTags,l=t.title,f=void 0===l?"":l,h=t.titleAttributes;return{base:ut(y.BASE,e,r),bodyAttributes:ut(p,n,r),htmlAttributes:ut(d,i,r),link:ut(y.LINK,o,r),meta:ut(y.META,a,r),noscript:ut(y.NOSCRIPT,s,r),script:ut(y.SCRIPT,u,r),style:ut(y.STYLE,c,r),title:ut(y.TITLE,{title:f,titleAttributes:h},r)}},lt=function(t){var e,n;return n=e=function(e){function n(){return R(this,n),U(this,e.apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),n.prototype.shouldComponentUpdate=function(t){return!u()(this.props,t)},n.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case y.SCRIPT:case y.NOSCRIPT:return{innerHTML:e};case y.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,r=t.arrayTypeChildren,i=t.newChildProps,o=t.nestedChildren;return B({},r,((e={})[n.type]=[].concat(r[n.type]||[],[B({},i,this.mapNestedChildrenToProps(n,o))]),e))},n.prototype.mapObjectTypeChildren=function(t){var e,n,r=t.child,i=t.newProps,o=t.newChildProps,a=t.nestedChildren;switch(r.type){case y.TITLE:return B({},i,((e={})[r.type]=a,e.titleAttributes=B({},o),e));case y.BODY:return B({},i,{bodyAttributes:B({},o)});case y.HTML:return B({},i,{htmlAttributes:B({},o)})}return B({},i,((n={})[r.type]=B({},o),n))},n.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=B({},e);return Object.keys(t).forEach((function(e){var r;n=B({},n,((r={})[e]=t[e],r))})),n},n.prototype.warnOnInvalidChildren=function(t,e){return!0},n.prototype.mapChildrenToProps=function(t,e){var n=this,r={};return l.a.Children.forEach(t,(function(t){if(t&&t.props){var i=t.props,o=i.children,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[N[n]||n]=t[n],e}),e)}(F(i,["children"]));switch(n.warnOnInvalidChildren(t,o),t.type){case y.LINK:case y.META:case y.NOSCRIPT:case y.SCRIPT:case y.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:a,nestedChildren:o})}}})),e=this.mapArrayTypeChildrenToProps(r,e)},n.prototype.render=function(){var e=this.props,n=e.children,r=F(e,["children"]),i=B({},r);return n&&(i=this.mapChildrenToProps(n,i)),l.a.createElement(t,i)},z(n,null,[{key:"canUseDOM",set:function(e){t.canUseDOM=e}}]),n}(l.a.Component),e.propTypes={base:i.a.object,bodyAttributes:i.a.object,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node]),defaultTitle:i.a.string,defer:i.a.bool,encodeSpecialCharacters:i.a.bool,htmlAttributes:i.a.object,link:i.a.arrayOf(i.a.object),meta:i.a.arrayOf(i.a.object),noscript:i.a.arrayOf(i.a.object),onChangeClientState:i.a.func,script:i.a.arrayOf(i.a.object),style:i.a.arrayOf(i.a.object),title:i.a.string,titleAttributes:i.a.object,titleTemplate:i.a.string},e.defaultProps={defer:!0,encodeSpecialCharacters:!0},e.peek=t.peek,e.rewind=function(){var e=t.rewind();return e||(e=ct({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},n}(a()((function(t){return{baseTag:q([b,E],t),bodyAttributes:V(p,t),defer:Y(t,M),encode:Y(t,A),htmlAttributes:V(d,t),linkTags:G(y.LINK,[k,b],t),metaTags:G(y.META,[O,v,w,T,x],t),noscriptTags:G(y.NOSCRIPT,[_],t),onChangeClientState:Z(t),scriptTags:G(y.SCRIPT,[S,_],t),styleTags:G(y.STYLE,[g],t),title:H(t),titleAttributes:V(m,t)}}),(function(t){tt&&J(tt),t.defer?tt=X((function(){et(t,(function(){tt=null}))})):(et(t),tt=null)}),ct)((function(){return null})));lt.renderStatic=lt.rewind}).call(this,n(52))},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var r="@@router/LOCATION_CHANGE",i=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:r,payload:{location:t,action:e,isFirstRendering:n}}},o="@@router/CALL_HISTORY_METHOD",a=function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(i){n<0&&(n=i),i-n>e?(t(i),n=-1):g()(r)};g()(r)}function w(t){return(w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function x(){var t=function(){return null},e=!1;return{stop:function(){e=!0},start:function(n){e=!1,function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=_(r),o=i[0],a=i.slice(1);return"number"===typeof o?void b(n.bind(null,a),o):(n(o),void b(n.bind(null,a)))}"object"===w(r)&&t(r),"function"===typeof r&&r()}}(n)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}var O=n(222),T=n.n(O);function k(t){for(var e=1;e=0&&t<=1}));var l=z(r,o),f=z(i,a),h=B(r,o),p=function(t){return t>1?1:t<0?0:t},d=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var i=l(n)-e,o=h(n);if(Math.abs(i-e)<1e-4||o<1e-4)return f(n);n=p(n-i/o)}return f(n)};return d.isStepper=!1,d},U=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,s=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,s=r*a/1e3+t;return Math.abs(s-e)<1e-4&&Math.abs(o)<1e-4?[e,0]:[s,o]};return s.isStepper=!0,s.dt=a,s},W=n(223),H=n.n(W);function Z(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Q(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0?n[i-1]:r,h=c||Object.keys(u);if("function"===typeof s||"spring"===s)return Q(t).concat([e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:s}),o]);var p=L(h,o,s),d=tt({},f.style,u,{transition:p});return Q(t).concat([d,o,l]).filter(M)}),[a,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=x());var e=t.begin,n=t.duration,r=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,s=t.onAnimationEnd,u=t.steps,c=t.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!==typeof o&&"function"!==typeof c&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=r?et({},r,i):i,h=L(Object.keys(f),n,o);l.start([a,e,tt({},f,{transition:h}),n,s])}else this.runJSAnimation(t)}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration,t.attributeName,t.easing,t.isActive),r=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,J(t,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),i=f.Children.count(e),o=C(this.state.style);if("function"===typeof e)return e(o);if(!n||0===i)return e;var a=function(t){var e=t.props,n=e.style,i=void 0===n?{}:n,a=e.className;return Object(f.cloneElement)(t,tt({},r,{style:tt({},i,o),className:a}))};return 1===i?a(f.Children.only(e)):h.a.createElement("div",null,f.Children.map(e,(function(t){return a(t)})))}}])&&nt(n.prototype,r),i&&nt(n,i),e}(f.PureComponent);st.displayName="Animate",st.propTypes={from:d.a.oneOfType([d.a.object,d.a.string]),to:d.a.oneOfType([d.a.object,d.a.string]),attributeName:d.a.string,duration:d.a.number,begin:d.a.number,easing:d.a.oneOfType([d.a.string,d.a.func]),steps:d.a.arrayOf(d.a.shape({duration:d.a.number.isRequired,style:d.a.object.isRequired,easing:d.a.oneOfType([d.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),d.a.func]),properties:d.a.arrayOf("string"),onAnimationEnd:d.a.func})),children:d.a.oneOfType([d.a.node,d.a.func]),isActive:d.a.bool,canBegin:d.a.bool,onAnimationEnd:d.a.func,shouldReAnimate:d.a.bool,onAnimationStart:d.a.func,onAnimationReStart:d.a.func},st.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var ut=st,ct=n(106),lt=n(69),ft=n.n(lt);function ht(t){return(ht="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pt(){return(pt=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vt(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(ft()(e.duration)&&e.duration>0?e.duration:0)}),0):ft()(n)?n:0},xt=function(t){function e(){var t,n;yt(this,e);for(var r=arguments.length,i=new Array(r),o=0;o0?1:-1},Bt=function(t){return Rt()(t)&&t.indexOf("%")===t.length-1},Ft=function(t){return ft()(t)&&!It()(t)},Ut=function(t){return Ft(t)||Rt()(t)},Wt=0,Ht=function(t){var e=++Wt;return"".concat(t||"").concat(e)},Zt=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Ft(t)&&!Rt()(t))return r;if(Bt(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return It()(n)&&(n=r),i&&n>e&&(n=e),n},Vt=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},qt=function(t,e){return Ft(t)&&Ft(e)?function(n){return t+n*(e-t)}:function(){return e}},Gt=function(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"===typeof e?e(t):Lt()(t,e))===n})):null};function Yt(t){return(Yt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function $t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xt(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var he={"aria-current":d.a.string,"aria-details":d.a.any,"aria-disabled":d.a.any,"aria-hidden":d.a.any,"aria-invalid":d.a.any,"aria-keyshortcuts":d.a.any,"aria-label":d.a.any,"aria-roledescription":d.a.any,"aria-autocomplete":d.a.any,"aria-checked":d.a.any,"aria-expanded":d.a.any,"aria-haspopup":d.a.any,"aria-level":d.a.any,"aria-modal":d.a.any,"aria-multiline":d.a.any,"aria-multiselectable":d.a.any,"aria-orientation":d.a.any,"aria-placeholder":d.a.any,"aria-pressed":d.a.any,"aria-readonly":d.a.any,"aria-required":d.a.any,"aria-selected":d.a.any,"aria-sort":d.a.any,"aria-valuemax":d.a.any,"aria-valuemin":d.a.any,"aria-valuenow":d.a.any,"aria-valuetext":d.a.any,"aria-atomic":d.a.any,"aria-busy":d.a.any,"aria-live":d.a.any,"aria-relevant":d.a.any,"aria-dropeffect":d.a.any,"aria-grabbed":d.a.any,"aria-activedescendant":d.a.any,"aria-colcount":d.a.any,"aria-colindex":d.a.any,"aria-colspan":d.a.any,"aria-controls":d.a.any,"aria-describedby":d.a.any,"aria-errormessage":d.a.any,"aria-flowto":d.a.any,"aria-labelledby":d.a.any,"aria-owns":d.a.any,"aria-posinset":d.a.any,"aria-rowcount":d.a.any,"aria-rowindex":d.a.any,"aria-rowspan":d.a.any,"aria-setsize":d.a.any,alignmentBaseline:d.a.string,angle:d.a.number,baselineShift:d.a.string,clip:d.a.string,clipPath:d.a.string,clipRule:d.a.string,color:d.a.string,colorInterpolation:d.a.string,colorInterpolationFilters:d.a.string,colorProfile:d.a.string,colorRendering:d.a.string,cursor:d.a.string,direction:d.a.oneOf(["ltr","rtl","inherit"]),display:d.a.string,dominantBaseline:d.a.string,enableBackground:d.a.string,fill:d.a.string,fillOpacity:d.a.oneOfType([d.a.string,d.a.number]),fillRule:d.a.oneOf(["nonzero","evenodd","inherit"]),filter:d.a.string,floodColor:d.a.string,floodOpacity:d.a.oneOfType([d.a.string,d.a.number]),font:d.a.string,fontFamily:d.a.string,fontSize:d.a.oneOfType([d.a.number,d.a.string]),fontSizeAdjust:d.a.oneOfType([d.a.number,d.a.string]),fontStretch:d.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:d.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:d.a.oneOf(["normal","small-caps","inherit"]),fontWeight:d.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:d.a.string,glyphOrientationVertical:d.a.string,imageRendering:d.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:d.a.oneOfType([d.a.number,d.a.string]),letterSpacing:d.a.oneOfType([d.a.number,d.a.string]),lightingColor:d.a.string,lineHeight:d.a.oneOfType([d.a.number,d.a.string]),markerEnd:d.a.string,markerMid:d.a.string,markerStart:d.a.string,mask:d.a.string,opacity:d.a.oneOfType([d.a.number,d.a.string]),overflow:d.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:d.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:d.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:d.a.string,stopOpacity:d.a.oneOfType([d.a.number,d.a.string]),stroke:d.a.oneOfType([d.a.number,d.a.string]),strokeDasharray:d.a.string,strokeDashoffset:d.a.oneOfType([d.a.number,d.a.string]),strokeLinecap:d.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:d.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:d.a.oneOfType([d.a.number,d.a.string]),strokeOpacity:d.a.oneOfType([d.a.number,d.a.string]),strokeWidth:d.a.oneOfType([d.a.number,d.a.string]),textAnchor:d.a.oneOf(["start","middle","end","inherit"]),textDecoration:d.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:d.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:d.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:d.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:d.a.oneOfType([d.a.number,d.a.string]),writingMode:d.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:d.a.string,role:d.a.string,focusable:d.a.string,tabIndex:d.a.string,style:d.a.object,width:d.a.number,height:d.a.number,dx:d.a.number,dy:d.a.number,x:d.a.number,y:d.a.number,r:d.a.number,radius:d.a.oneOfType([d.a.number,d.a.array])},pe={onClick:d.a.func,onMouseDown:d.a.func,onMouseUp:d.a.func,onMouseOver:d.a.func,onMouseMove:d.a.func,onMouseOut:d.a.func,onMouseEnter:d.a.func,onMouseLeave:d.a.func,onTouchEnd:d.a.func,onTouchMove:d.a.func,onTouchStart:d.a.func,onTouchCancel:d.a.func},de={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},me=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],ye=["none"],ve=function(t){return"string"===typeof t?t:t?t.displayName||t.name||"Component":""},ge=function(t,e){var n=[],r=[];return r=At()(e)?e.map((function(t){return ve(t)})):[ve(e)],h.a.Children.forEach(t,(function(t){var e=t&&t.type&&(t.type.displayName||t.type.name);-1!==r.indexOf(e)&&n.push(t)})),n},be=function(t,e){var n=ge(t,e);return n&&n[0]},we=function(t){if(!t||u()(t))return null;var e=h.a.isValidElement(t)?t.props:t;if(!ue()(e))return null;var n=null;for(var r in e)({}).hasOwnProperty.call(e,r)&&he[r]&&(n||(n={}),n[r]=e[r]);return n},_e=function(t,e){return function(n){return t(e,n),null}},xe=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||u()(t))return null;var r=h.a.isValidElement(t)?t.props:t;if(!ue()(r))return null;var i=null;for(var o in r)({}).hasOwnProperty.call(r,o)&&pe[o]&&(i||(i={}),i[o]=e||(n?_e(r[o],r):r[o]));return i},Oe=function(t,e,n){return function(r){return t(e,n,r),null}},Te=function(t,e,n){if(!ue()(t))return null;var r=null;for(var i in t)({}).hasOwnProperty.call(t,i)&&pe[i]&&u()(t[i])&&(r||(r={}),r[i]=Oe(t[i],e,n));return r},ke=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!Ft(n)||n<=0||!Ft(r)||r<=0)},Se=function(){return!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout)},Ee=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Pe=function(t,e){if(a()(t)&&a()(e))return!0;if(!a()(t)&&!a()(e)){var n=t.props||{},r=n.children,i=fe(n,["children"]),o=e.props||{},s=o.children,u=fe(o,["children"]);return r&&s?ce(i,u)&&je(r,s):!r&&!s&&ce(i,u)}return!1},je=function t(e,n){if(e===n)return!0;if(f.Children.count(e)!==f.Children.count(n))return!1;var r=f.Children.count(e);if(0===r)return!0;if(1===r)return Pe(At()(e)?e[0]:e,At()(n)?n[0]:n);for(var i=0;i=0}(t))n.push(t);else if(t&&e[ve(t.type)]){var o=ve(t.type),a=e[o],s=a.handler,u=a.once;if(u&&!r[o]||!u){var c=s(t,o,i);At()(c)?n=[n].concat(le(c)):n.push(c),r[o]=!0}}})),n},Ae=function(t,e){var n=-1;return f.Children.forEach(e,(function(e,r){e===t&&(n=r)})),n};function Ce(t){return(Ce="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Le(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ne(t){for(var e=1;el[e]+i?Math.max(f,l[e]):Math.max(h,l[e])},n}var n,r,i;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fe(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-e)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var t,e,n,r=this,i=this.props,o=i.payload,s=i.isAnimationActive,c=i.animationDuration,f=i.animationEasing,p=i.filterNull,d=function(t,e){return!0===t?l()(e,We):u()(t)?l()(e,t):e}(i.paylodUniqBy,p&&o&&o.length?o.filter((function(t){return!a()(t.value)})):o),m=d&&d.length,y=this.props,v=y.content,g=y.viewBox,b=y.coordinate,w=y.position,_=y.active,x=Ne({pointerEvents:"none",visibility:_&&m?"visible":"hidden",position:"absolute",top:0},y.wrapperStyle);if(w&&Ft(w.x)&&Ft(w.y))e=w.x,n=w.y;else{var O=this.state,T=O.boxWidth,k=O.boxHeight;T>0&&k>0&&b?(e=this.getTranslate({key:"x",tooltipDimension:T,viewBoxDimension:g.width}),n=this.getTranslate({key:"y",tooltipDimension:k,viewBoxDimension:g.height})):x.visibility="hidden"}x=Ne({},C({transform:this.props.useTranslate3d?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")}),{},x),s&&_&&(x=Ne({},C({transition:"transform ".concat(c,"ms ").concat(f)}),{},x));var S=Et()(Ue,(Ie(t={},"".concat(Ue,"-right"),Ft(e)&&b&&Ft(b.x)&&e>=b.x),Ie(t,"".concat(Ue,"-left"),Ft(e)&&b&&Ft(b.x)&&e=b.y),Ie(t,"".concat(Ue,"-top"),Ft(n)&&b&&Ft(b.y)&&n0?Ye()(n.updateDimensionsImmediate,t.debounce):n.updateDimensionsImmediate,n}var n,r,i;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&en(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var t=this.getContainerSize();t&&this.setState(t)}},{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 t=this.state,e=t.containerWidth,n=t.containerHeight;if(e<0||n<0)return null;var r=this.props,i=r.aspect,o=r.width,a=r.height,s=(r.minWidth,r.minHeight,r.maxHeight),u=r.children;Bt(o)||Bt(a);var c=Bt(o)?e:o,l=Bt(a)?n:a;return i&&i>0&&(c?l=c/i:l&&(c=l*i),s&&l>s&&(l=s)),h.a.cloneElement(u,{width:c,height:l})}},{key:"render",value:function(){var t=this,e=this.props,n=e.minWidth,r=e.minHeight,i=e.width,o=e.height,a=e.maxHeight,s=e.id,u=e.className,c={width:i,height:o,minWidth:n,minHeight:r,maxHeight:a};return h.a.createElement("div",{id:s,className:Et()("recharts-responsive-container",u),style:c,ref:function(e){t.container=e}},this.renderChart(),h.a.createElement($e.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&Je(n.prototype,r),i&&Je(n,i),e}(f.Component);nn.displayName="ResponsiveContainer",nn.propTypes={aspect:d.a.number,width:d.a.oneOfType([d.a.string,d.a.number]),height:d.a.oneOfType([d.a.string,d.a.number]),minHeight:d.a.oneOfType([d.a.string,d.a.number]),minWidth:d.a.oneOfType([d.a.string,d.a.number]),maxHeight:d.a.oneOfType([d.a.string,d.a.number]),children:d.a.node.isRequired,debounce:d.a.number,id:d.a.oneOfType([d.a.string,d.a.number]),className:d.a.oneOfType([d.a.string,d.a.number])},nn.defaultProps={width:"100%",height:"100%",debounce:0};var rn=nn,on=function(){};function an(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function sn(t){this._context=t}sn.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:an(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:an(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function un(t){this._context=t}un.prototype={areaStart:on,areaEnd:on,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:an(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function cn(t){this._context=t}cn.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(t,e){switch(t=+t,e=+e,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+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:an(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ln(t){this._context=t}ln.prototype={areaStart:on,areaEnd:on,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function fn(t){this._context=t}fn.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var hn=function(t){return new fn(t)};function pn(t){return t<0?-1:1}function dn(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(pn(o)+pn(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function mn(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function yn(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function vn(t){this._context=t}function gn(t){this._context=new bn(t)}function bn(t){this._context=t}function wn(t){this._context=t}function _n(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var On=Math.PI,Tn=2*On,kn=Tn-1e-6;function Sn(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function En(){return new Sn}Sn.prototype=En.prototype={constructor:Sn,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,u=r-e,c=o-t,l=a-e,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>1e-6)if(Math.abs(l*s-u*c)>1e-6&&i){var h=n-o,p=r-a,d=s*s+u*u,m=h*h+p*p,y=Math.sqrt(d),v=Math.sqrt(f),g=i*Math.tan((On-Math.acos((d+f-m)/(2*y*v)))/2),b=g/v,w=g/y;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*c)+","+(e+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*p)+","+(this._x1=t+w*s)+","+(this._y1=e+w*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,l=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%Tn+Tn),f>kn?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=On)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Pn=En,jn=function(t){return function(){return t}};function Mn(t){return t[0]}function An(t){return t[1]}var Cn=function(){var t=Mn,e=An,n=jn(!0),r=null,i=hn,o=null;function a(a){var s,u,c,l=a.length,f=!1;for(null==r&&(o=i(c=Pn())),s=0;s<=l;++s)!(s=l;--f)s.point(y[f],v[f]);s.lineEnd(),s.areaEnd()}m&&(y[c]=+t(h,c,u),v[c]=+n(h,c,u),s.point(e?+e(h,c,u):y[c],r?+r(h,c,u):v[c]))}if(p)return s=null,p+""||null}function c(){return Cn().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:jn(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:jn(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:jn(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:jn(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:jn(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:jn(+t),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(n)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(e).y(n)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:jn(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u};function Nn(t){return(Nn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function In(){return(In=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var sr={className:d.a.string,children:d.a.oneOfType([d.a.arrayOf(d.a.node),d.a.node])};function ur(t){var e=t.children,n=t.className,r=ar(t,["children","className"]),i=Et()("recharts-layer",n);return h.a.createElement("g",or({className:i},r),e)}ur.propTypes=sr;var cr=ur,lr=n(226),fr=n.n(lr),hr=n(113),pr=n.n(hr);function dr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mr(t){for(var e=1;e=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},xr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===t||null===t||Se())return{width:0,height:0};var n="".concat(t),r=_r(e),i="".concat(n,"-").concat(r);if(gr.widthCache[i])return gr.widthCache[i];try{var o=document.getElementById("recharts_measurement_span");o||((o=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(o));var a=mr({},br,{},e);Object.keys(a).map((function(t){return o.style[t]=a[t],t})),o.textContent=n;var s=o.getBoundingClientRect(),u={width:s.width,height:s.height};return gr.widthCache[i]=u,++gr.cacheCount>2e3&&(gr.cacheCount=0,gr.widthCache={}),u}catch(c){return{width:0,height:0}}};function Or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kr(t){return(kr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sr(){return(Sr=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Pr(t,e){for(var n=0;ne?1:t>=e?0:NaN},Hr=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return Wr(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};var Zr=Hr(Wr),Vr=Zr.right,qr=(Zr.left,Vr);var Gr=function(t){return null===t?NaN:+t},Yr=Array.prototype,Kr=(Yr.slice,Yr.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=$r?10:o>=Xr?5:o>=Jr?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=$r?10:o>=Xr?5:o>=Jr?2:1)}function ei(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=$r?i*=10:o>=Xr?i*=5:o>=Jr&&(i*=2),e=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}};function ri(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function ii(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}function oi(){}function ai(t,e){var n=new oi;if(t instanceof oi)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ri(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ri(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Si.exec(t))?new Fi(e[1],e[2],e[3],1):(e=Ei.exec(t))?new Fi(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pi.exec(t))?Ri(e[1],e[2],e[3],e[4]):(e=ji.exec(t))?Ri(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Mi.exec(t))?Zi(e[1],e[2]/100,e[3]/100,1):(e=Ai.exec(t))?Zi(e[1],e[2]/100,e[3]/100,e[4]):Ci.hasOwnProperty(t)?Di(Ci[t]):"transparent"===t?new Fi(NaN,NaN,NaN,0):null}function Di(t){return new Fi(t>>16&255,t>>8&255,255&t,1)}function Ri(t,e,n,r){return r<=0&&(t=e=n=NaN),new Fi(t,e,n,r)}function zi(t){return t instanceof _i||(t=Ii(t)),t?new Fi((t=t.rgb()).r,t.g,t.b,t.opacity):new Fi}function Bi(t,e,n,r){return 1===arguments.length?zi(t):new Fi(t,e,n,null==r?1:r)}function Fi(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ui(){return"#"+Hi(this.r)+Hi(this.g)+Hi(this.b)}function Wi(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Hi(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Zi(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new qi(t,e,n,r)}function Vi(t){if(t instanceof qi)return new qi(t.h,t.s,t.l,t.opacity);if(t instanceof _i||(t=Ii(t)),!t)return new qi;if(t instanceof qi)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new qi(a,s,u,t.opacity)}function qi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Gi(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Yi(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}bi(_i,Ii,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Li,formatHex:Li,formatHsl:function(){return Vi(this).formatHsl()},formatRgb:Ni,toString:Ni}),bi(Fi,Bi,wi(_i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Fi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Fi(this.r*t,this.g*t,this.b*t,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:Ui,formatHex:Ui,formatRgb:Wi,toString:Wi})),bi(qi,(function(t,e,n,r){return 1===arguments.length?Vi(t):new qi(t,e,n,null==r?1:r)}),wi(_i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new qi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new qi(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Fi(Gi(t>=240?t-240:t+120,i,r),Gi(t,i,r),Gi(t<120?t+240:t-120,i,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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Ki=function(t){return function(){return t}};function $i(t,e){return function(n){return t+n*e}}function Xi(t){return 1===(t=+t)?Ji:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ki(isNaN(e)?n:e)}}function Ji(t,e){var n=e-t;return n?$i(t,n):Ki(isNaN(t)?e:t)}var Qi=function t(e){var n=Xi(e);function r(t,e){var r=n((t=Bi(t)).r,(e=Bi(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Ji(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function to(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:oo(n,r)})),o=uo.lastIndex;return or&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function go(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?bo:go,i=o=null,f}function f(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return f.invert=function(n){return c(e((o||(o=r(s,a.map(t),oo)))(n)))},f.domain=function(t){return arguments.length?(a=hi.call(t,ho),c===mo||(c=vo(a)),l()):a.slice()},f.range=function(t){return arguments.length?(s=pi.call(t),l()):s.slice()},f.rangeRound=function(t){return s=pi.call(t),u=fo,l()},f.clamp=function(t){return arguments.length?(c=t?vo(a):mo,f):c!==mo},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function xo(t,e){return _o()(t,e)}var Oo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function To(t){if(!(e=Oo.exec(t)))throw new Error("invalid format: "+t);var e;return new ko({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ko(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}To.prototype=ko.prototype,ko.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 So(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}var Eo,Po,jo,Mo,Ao=function(t){return(t=So(Math.abs(t)))?t[1]:NaN},Co=function(t,e){var n=So(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Lo={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Co(100*t,e)},r:Co,s:function(t,e){var n=So(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Eo=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+So(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},No=function(t){return t},Io=Array.prototype.map,Do=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];Po=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?No:(e=Io.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?No:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Io.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=To(t)).fill,n=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,m=t.comma,y=t.precision,v=t.trim,g=t.type;"n"===g?(m=!0,g="g"):Lo[g]||(void 0===y&&(y=12),v=!0,g="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===h?o:/[%p]/.test(g)?u:"",_=Lo[g],x=/[defgprs%]/.test(g);function O(t){var i,o,u,h=b,O=w;if("c"===g)O=_(t)+O,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:_(Math.abs(t),y),v&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),T&&0===+t&&"+"!==f&&(T=!1),h=(T?"("===f?f:c:"-"===f||"("===f?"":f)+h,O=("s"===g?Do[8+Eo/3]:"")+O+(T&&"("===f?")":""),x)for(i=-1,o=t.length;++i(u=t.charCodeAt(i))||u>57){O=(46===u?a+t.slice(i+1):t.slice(i))+O,t=t.slice(0,i);break}}m&&!p&&(t=r(t,1/0));var k=h.length+t.length+O.length,S=k>1)+h+t+O+S.slice(k);break;default:t=S+h+t+O}return s(t)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return t+""},O}return{format:f,formatPrefix:function(t,e){var n=f(((t=To(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ao(e)/3))),i=Math.pow(10,-r),o=Do[8+r/3];return function(t){return n(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),jo=Po.format,Mo=Po.formatPrefix;var Ro=function(t,e,n,r){var i,o=ei(t,e,n);switch((r=To(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ao(e)/3)))-Ao(Math.abs(t)))}(o,a))||(r.precision=i),Mo(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ao(e)-Ao(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Ao(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return jo(r)};function zo(t){var e=t.domain;return t.ticks=function(t){var n=e();return Qr(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Ro(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],u=i[a];return u0?r=ti(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=ti(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,e(i)),t},t}function Bo(){var t=xo(mo,mo);return t.copy=function(){return wo(t,Bo())},ri.apply(t,arguments),zo(t)}function Fo(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=hi.call(e,ho),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Fo(t).unknown(e)},t=arguments.length?hi.call(t,ho):[0,1],zo(n)}var Uo=function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;hu)break;m.push(f)}}else for(;h=1;--l)if(!((f=c*l)u)break;m.push(f)}}else m=Qr(h,p,Math.min(p-h,d)).map(n);return r?m.reverse():m},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=jo(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o0?r[i-1]:e[0],i=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return sa().domain([e,n]).range(o).unknown(t)},ri.apply(zo(a),arguments)}function ua(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[qr(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=pi.call(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=pi.call(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return ua().domain(e).range(n).unknown(t)},ri.apply(i,arguments)}var ca=new Date,la=new Date;function fa(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return ca.setTime(+e),la.setTime(+r),t(ca),t(la),Math.floor(n(ca,la))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var ha=fa((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ha.every=function(t){return isFinite(t=Math.floor(t))&&t>0?fa((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var pa=ha,da=(ha.range,fa((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),ma=da;da.range;function ya(t){return fa((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var va=ya(0),ga=ya(1),ba=ya(2),wa=ya(3),_a=ya(4),xa=ya(5),Oa=ya(6),Ta=(va.range,ga.range,ba.range,wa.range,_a.range,xa.range,Oa.range,fa((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),ka=Ta,Sa=(Ta.range,fa((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),Ea=Sa,Pa=(Sa.range,fa((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()}))),ja=Pa,Ma=(Pa.range,fa((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),Aa=Ma,Ca=(Ma.range,fa((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));Ca.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?fa((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Ca:null};var La=Ca;Ca.range;function Na(t){return fa((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var Ia=Na(0),Da=Na(1),Ra=Na(2),za=Na(3),Ba=Na(4),Fa=Na(5),Ua=Na(6),Wa=(Ia.range,Da.range,Ra.range,za.range,Ba.range,Fa.range,Ua.range,fa((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),Ha=Wa,Za=(Wa.range,fa((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Za.every=function(t){return isFinite(t=Math.floor(t))&&t>0?fa((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Va=Za;Za.range;function qa(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ga(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ya(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Ka,$a,Xa,Ja={"-":"",_:" ",0:"0"},Qa=/^\s*\d+/,ts=/^%/,es=/[\\^$*+?|[\]().{}]/g;function ns(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function ps(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ds(t,e,n){var r=Qa.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ms(t,e,n){var r=Qa.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ys(t,e,n){var r=Qa.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function vs(t,e,n){var r=Qa.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function gs(t,e,n){var r=Qa.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function bs(t,e,n){var r=Qa.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ws(t,e,n){var r=Qa.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function _s(t,e,n){var r=Qa.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function xs(t,e,n){var r=Qa.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Os(t,e,n){var r=ts.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Ts(t,e,n){var r=Qa.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function ks(t,e,n){var r=Qa.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ss(t,e){return ns(t.getDate(),e,2)}function Es(t,e){return ns(t.getHours(),e,2)}function Ps(t,e){return ns(t.getHours()%12||12,e,2)}function js(t,e){return ns(1+ka.count(pa(t),t),e,3)}function Ms(t,e){return ns(t.getMilliseconds(),e,3)}function As(t,e){return Ms(t,e)+"000"}function Cs(t,e){return ns(t.getMonth()+1,e,2)}function Ls(t,e){return ns(t.getMinutes(),e,2)}function Ns(t,e){return ns(t.getSeconds(),e,2)}function Is(t){var e=t.getDay();return 0===e?7:e}function Ds(t,e){return ns(va.count(pa(t)-1,t),e,2)}function Rs(t){var e=t.getDay();return e>=4||0===e?_a(t):_a.ceil(t)}function zs(t,e){return t=Rs(t),ns(_a.count(pa(t),t)+(4===pa(t).getDay()),e,2)}function Bs(t){return t.getDay()}function Fs(t,e){return ns(ga.count(pa(t)-1,t),e,2)}function Us(t,e){return ns(t.getFullYear()%100,e,2)}function Ws(t,e){return ns((t=Rs(t)).getFullYear()%100,e,2)}function Hs(t,e){return ns(t.getFullYear()%1e4,e,4)}function Zs(t,e){var n=t.getDay();return ns((t=n>=4||0===n?_a(t):_a.ceil(t)).getFullYear()%1e4,e,4)}function Vs(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ns(e/60|0,"0",2)+ns(e%60,"0",2)}function qs(t,e){return ns(t.getUTCDate(),e,2)}function Gs(t,e){return ns(t.getUTCHours(),e,2)}function Ys(t,e){return ns(t.getUTCHours()%12||12,e,2)}function Ks(t,e){return ns(1+Ha.count(Va(t),t),e,3)}function $s(t,e){return ns(t.getUTCMilliseconds(),e,3)}function Xs(t,e){return $s(t,e)+"000"}function Js(t,e){return ns(t.getUTCMonth()+1,e,2)}function Qs(t,e){return ns(t.getUTCMinutes(),e,2)}function tu(t,e){return ns(t.getUTCSeconds(),e,2)}function eu(t){var e=t.getUTCDay();return 0===e?7:e}function nu(t,e){return ns(Ia.count(Va(t)-1,t),e,2)}function ru(t){var e=t.getUTCDay();return e>=4||0===e?Ba(t):Ba.ceil(t)}function iu(t,e){return t=ru(t),ns(Ba.count(Va(t),t)+(4===Va(t).getUTCDay()),e,2)}function ou(t){return t.getUTCDay()}function au(t,e){return ns(Da.count(Va(t)-1,t),e,2)}function su(t,e){return ns(t.getUTCFullYear()%100,e,2)}function uu(t,e){return ns((t=ru(t)).getUTCFullYear()%100,e,2)}function cu(t,e){return ns(t.getUTCFullYear()%1e4,e,4)}function lu(t,e){var n=t.getUTCDay();return ns((t=n>=4||0===n?Ba(t):Ba.ceil(t)).getUTCFullYear()%1e4,e,4)}function fu(){return"+0000"}function hu(){return"%"}function pu(t){return+t}function du(t){return Math.floor(+t/1e3)}!function(t){Ka=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=is(i),l=os(i),f=is(o),h=os(o),p=is(a),d=os(a),m=is(s),y=os(s),v=is(u),g=os(u),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Ss,e:Ss,f:As,g:Ws,G:Zs,H:Es,I:Ps,j:js,L:Ms,m:Cs,M:Ls,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:pu,s:du,S:Ns,u:Is,U:Ds,V:zs,w:Bs,W:Fs,x:null,X:null,y:Us,Y:Hs,Z:Vs,"%":hu},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:qs,e:qs,f:Xs,g:uu,G:lu,H:Gs,I:Ys,j:Ks,L:$s,m:Js,M:Qs,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:pu,s:du,S:tu,u:eu,U:nu,V:iu,w:ou,W:au,x:null,X:null,y:su,Y:cu,Z:fu,"%":hu},_={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return T(t,e,n,r)},d:ys,e:ys,f:xs,g:hs,G:fs,H:gs,I:gs,j:vs,L:_s,m:ms,M:bs,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},q:ds,Q:Ts,s:ks,S:ws,u:ss,U:us,V:cs,w:as,W:ls,x:function(t,e,r){return T(t,n,e,r)},X:function(t,e,n){return T(t,r,e,n)},y:hs,Y:fs,Z:ps,"%":Os};function x(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Ga(Ya(o.y,0,1))).getUTCDay(),r=i>4||0===i?Da.ceil(r):Da(r),r=Ha.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=qa(Ya(o.y,0,1))).getDay(),r=i>4||0===i?ga.ceil(r):ga(r),r=ka.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Ga(Ya(o.y,0,1)).getUTCDay():qa(Ya(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Ga(o)):qa(o)}}function T(t,e,n,r){for(var i,o,a=0,s=e.length,u=n.length;a=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=_[i in Ja?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),w.x=x(n,w),w.X=x(r,w),w.c=x(e,w),{format:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t+="",!0);return e.toString=function(){return t},e}}}(t),$a=Ka.format,Ka.parse,Xa=Ka.utcFormat,Ka.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 mu(t){return new Date(t)}function yu(t){return t instanceof Date?+t:+new Date(+t)}function vu(t,e,n,r,i,o,a,s,u){var c=xo(mo,mo),l=c.invert,f=c.domain,h=u(".%L"),p=u(":%S"),d=u("%I:%M"),m=u("%I %p"),y=u("%a %d"),v=u("%b %d"),g=u("%B"),b=u("%Y"),w=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function _(s){return(a(s)1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o=0;)n[e]=e;return n};function Hu(t,e){return t[e]}function Zu(t){return(Zu="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vu(){return(Vu=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Yu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ku(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var rc={width:d.a.number.isRequired,height:d.a.number.isRequired,viewBox:d.a.shape({x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number}),className:d.a.string,style:d.a.object,children:d.a.oneOfType([d.a.arrayOf(d.a.node),d.a.node])};function ic(t){var e=t.children,n=t.width,r=t.height,i=t.viewBox,o=t.className,a=t.style,s=nc(t,["children","width","height","viewBox","className","style"]),u=i||{width:n,height:r,x:0,y:0},c=Et()("recharts-surface",o),l=we(s);return h.a.createElement("svg",ec({},l,{className:c,width:n,height:r,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height),version:"1.1"}),e)}ic.propTypes=rc;var oc=ic,ac=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),sc=2*ac;var uc={draw:function(t,e){var n=Math.sqrt(e/ac);t.moveTo(n,0),t.arc(0,0,n,0,sc)}},cc={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},lc=Math.sqrt(1/3),fc=2*lc,hc={draw:function(t,e){var n=Math.sqrt(e/fc),r=n*lc;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},pc={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},dc=Math.sin(ac/10)/Math.sin(7*ac/10),mc=Math.sin(sc/10)*dc,yc=-Math.cos(sc/10)*dc,vc={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=mc*n,i=yc*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=sc*o/5,s=Math.cos(a),u=Math.sin(a);t.lineTo(u*n,-s*n),t.lineTo(s*r-u*i,u*r+s*i)}t.closePath()}},gc=Math.sqrt(3),bc={draw:function(t,e){var n=-Math.sqrt(e/(3*gc));t.moveTo(0,2*n),t.lineTo(-gc*n,-n),t.lineTo(gc*n,-n),t.closePath()}},wc=Math.sqrt(3)/2,_c=1/Math.sqrt(12),xc=3*(_c/2+1),Oc={draw:function(t,e){var n=Math.sqrt(e/xc),r=n/2,i=n*_c,o=r,a=n*_c+n,s=-o,u=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,u),t.lineTo(-.5*r-wc*i,wc*r+-.5*i),t.lineTo(-.5*o-wc*a,wc*o+-.5*a),t.lineTo(-.5*s-wc*u,wc*s+-.5*u),t.lineTo(-.5*r+wc*i,-.5*i-wc*r),t.lineTo(-.5*o+wc*a,-.5*a-wc*o),t.lineTo(-.5*s+wc*u,-.5*u-wc*s),t.closePath()}};function Tc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sc(t){return(Sc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ec(){return(Ec=Object.assign||function(t){for(var e=1;e=0&&n>=0?{width:e,height:n}:null}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,s=r.margin,u=r.chartWidth,c=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-(this.getBBox()||{width:0}).width)/2}:"right"===o?{right:s&&s.right||0}:{left:s&&s.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((c||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),$c({},e,{},n)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-e)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},(function(){r&&r(i)}))}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,i=e.height,o=e.wrapperStyle,a=e.paylodUniqBy,s=e.payload,c=$c({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(o),{},o);return h.a.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){return h.a.isValidElement(t)?h.a.cloneElement(t,e):u()(t)?t(e):h.a.createElement(Gc,e)}(n,$c({},this.props,{payload:il(a,s)})))}}])&&Qc(n.prototype,r),i&&Qc(n,i),e}(f.PureComponent);al.displayName="Legend",al.propTypes={content:d.a.oneOfType([d.a.element,d.a.func]),wrapperStyle:d.a.object,chartWidth:d.a.number,chartHeight:d.a.number,width:d.a.number,height:d.a.number,iconSize:d.a.number,iconType:d.a.oneOf(ol),layout:d.a.oneOf(["horizontal","vertical"]),align:d.a.oneOf(["center","left","right"]),verticalAlign:d.a.oneOf(["top","bottom","middle"]),margin:d.a.shape({top:d.a.number,left:d.a.number,bottom:d.a.number,right:d.a.number}),payload:d.a.arrayOf(d.a.shape({value:d.a.any,id:d.a.any,type:d.a.oneOf(me)})),paylodUniqBy:d.a.oneOfType([d.a.func,d.a.bool]),formatter:d.a.func,onMouseEnter:d.a.func,onMouseLeave:d.a.func,onClick:d.a.func,onBBoxUpdate:d.a.func},al.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var sl=al;function ul(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0}));if(o&&o.length){var s=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=hl(e,n,0),i=At()(r)?[zr()(r),Dr()(r)]:[r,r],o=s.reduce((function(t,n){var r=hl(e,n,0),o=i[0]-Math.abs(At()(r)?r[0]:r),a=i[1]+Math.abs(At()(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},vl=function(t,e,n,r){var i=e.map((function(e){var i=e.props.dataKey;return"number"===n&&i&&yl(t,e,i)||pl(t,i,n,r)}));if("number"===n)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var o={};return i.reduce((function(t,e){for(var n=0,r=e.length;n=0||e.indexOf("AreaChart")>=0)?{scale:gi(),realScaleType:"point"}:"category"===i?{scale:yi(),realScaleType:"band"}:{scale:Bo(),realScaleType:"linear"};if(Rt()(n)){var s="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[s]||gi)(),realScaleType:r[s]?s:"point"}}return u()(n)?{scale:n}:{scale:gi(),realScaleType:"point"}},Ol=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=t(e[0]),s=t(e[n-1]);(ao||so)&&t.domain([e[0],e[n-1]])}},Tl={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n=0?(t[a][n][0]=i,t[a][n][1]=i+s,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a=2){for(var n=jt()(e,(function(t){return t.coordinate})),r=1/0,i=1,o=n.length;io&&(u=2*Math.PI-u),{radius:a,angle:Bl(u),angleInRadian:u}},Wl=function(t,e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return t+360*Math.min(i,o)},Hl=function(t,e){var n=t.x,r=t.y,i=Ul({x:n,y:r},e),o=i.radius,a=i.angle,s=e.innerRadius,u=e.outerRadius;if(ou)return!1;if(0===o)return!0;var c,l=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:e-360*o,endAngle:n-360*o}}(e),f=l.startAngle,h=l.endAngle,p=a;if(f<=h){for(;p>h;)p-=360;for(;p=f&&p<=h}else{for(;p>f;)p-=360;for(;p=h&&p<=f}return c?Dl({},e,{radius:o,angle:Wl(p,e)}):null};function Zl(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0?1:-1;"insideStart"===o?(r=m+w*u,i=v):"insideEnd"===o?(r=y-w*u,i=!v):"end"===o&&(r=y+w*u,i=v),i=b<=0?i:!i;var _=Fl(l,f,g,r),x=Fl(l,f,g,r+359*(i?1:-1)),O="M".concat(_.x,",").concat(_.y,"\n A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),T=a()(t.id)?Ht("recharts-radial-line-"):t.id;return h.a.createElement("text",Vl({},n,{dominantBaseline:"central",className:Et()("recharts-radial-bar-label",c)}),h.a.createElement("defs",null,h.a.createElement("path",{id:T,d:O})),h.a.createElement("textPath",{xlinkHref:"#".concat(T)},e))};function Jl(t){var e,n=t.viewBox,r=t.position,i=t.value,o=t.children,s=t.content,c=t.className,l=void 0===c?"":c;if(!n||a()(i)&&a()(o)&&!Object(f.isValidElement)(s)&&!u()(s))return null;if(Object(f.isValidElement)(s))return Object(f.cloneElement)(s,t);if(u()(s)){if(e=s(t),Object(f.isValidElement)(e))return e}else e=function(t){var e=t.value,n=t.formatter,r=a()(t.children)?e:t.children;return u()(n)?n(r):r}(t);var p=function(t){return Ft(t.cx)}(n),d=we(t),m=xe(t);if(p&&("insideStart"===r||"insideEnd"===r||"end"===r))return Xl(t,e,d);var y=p?function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.cx,o=e.cy,a=e.innerRadius,s=e.outerRadius,u=(e.startAngle+e.endAngle)/2;if("outside"===r){var c=Fl(i,o,s+n,u),l=c.x;return{x:l,y:c.y,textAnchor:l>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=Fl(i,o,(a+s)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}}(t):function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.x,o=e.y,a=e.width,s=e.height,u=s>=0?1:-1;return"top"===r?{x:i+a/2,y:o-u*n,textAnchor:"middle",verticalAnchor:u>0?"end":"start"}:"bottom"===r?{x:i+a/2,y:o+s+u*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:i-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:i+a+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:i+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:i+a-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:i+a/2,y:o+u*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:i+a/2,y:o+s-u*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:i+n,y:o+u*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:i+a-n,y:o+u*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:i+n,y:o+s-u*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:i+a-n,y:o+s-u*n,textAnchor:"end",verticalAnchor:"end"}:ue()(r)&&(Ft(r.x)||Bt(r.x))&&(Ft(r.y)||Bt(r.y))?{x:i+Zt(r.x,a),y:o+Zt(r.y,s),textAnchor:"end",verticalAnchor:"end"}:{x:i+a/2,y:o+s/2,textAnchor:"middle",verticalAnchor:"middle"}}(t);return h.a.createElement(Nr,Vl({className:Et()("recharts-label",l)},d,y,m),e)}Jl.displayName="Label",Jl.defaultProps={offset:5},Jl.propTypes=$l;var Ql=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,s=t.radius,u=t.innerRadius,c=t.outerRadius,l=t.x,f=t.y,h=t.top,p=t.left,d=t.width,m=t.height,y=t.clockWise;if(Ft(d)&&Ft(m)){if(Ft(l)&&Ft(f))return{x:l,y:f,width:d,height:m};if(Ft(h)&&Ft(p))return{x:h,y:p,width:d,height:m}}return Ft(l)&&Ft(f)?{x:l,y:f,width:0,height:0}:Ft(e)&&Ft(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:u||0,outerRadius:c||s||a||0,clockWise:y}:t.viewBox?t.viewBox:{}},tf=function(t,e){return t?!0===t?h.a.createElement(Jl,{key:"label-implicit",viewBox:e}):Ut(t)?h.a.createElement(Jl,{key:"label-implicit",viewBox:e,value:t}):Object(f.isValidElement)(t)?t.type===Jl?Object(f.cloneElement)(t,{key:"label-implicit",viewBox:e}):h.a.createElement(Jl,{key:"label-implicit",content:t,viewBox:e}):u()(t)?h.a.createElement(Jl,{key:"label-implicit",content:t,viewBox:e}):ue()(t)?h.a.createElement(Jl,Vl({viewBox:e},t,{key:"label-implicit"})):null:null};Jl.parseViewBox=Ql,Jl.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=Ql(t),o=ge(r,Jl).map((function(t,n){return Object(f.cloneElement)(t,{viewBox:e||i,key:"label-".concat(n)})}));if(!n)return o;var a=tf(t.label,e||i);return[a].concat(Zl(o))};var ef=Jl;function nf(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var cf={id:d.a.string,data:d.a.arrayOf(d.a.object),valueAccessor:d.a.func,clockWise:d.a.bool,dataKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func])},lf={valueAccessor:function(t){return At()(t.value)?fr()(t.value):t.value}};function ff(t){var e=t.data,n=t.valueAccessor,r=t.dataKey,i=t.clockWise,o=t.id,s=uf(t,["data","valueAccessor","dataKey","clockWise","id"]);return e&&e.length?h.a.createElement(cr,{className:"recharts-label-list"},e.map((function(t,e){var u=a()(r)?n(t,e):hl(t&&t.payload,r),c=a()(o)?{}:{id:"".concat(o,"-").concat(e)};return h.a.createElement(ef,rf({},we(t),s,c,{index:e,value:u,viewBox:ef.parseViewBox(a()(i)?t:af({},t,{clockWise:i})),key:"label-".concat(e)}))}))):null}ff.propTypes=cf,ff.displayName="LabelList";var hf=function(t,e){return t?!0===t?h.a.createElement(ff,{key:"labelList-implicit",data:e}):h.a.isValidElement(t)||u()(t)?h.a.createElement(ff,{key:"labelList-implicit",data:e,content:t}):ue()(t)?h.a.createElement(ff,rf({data:e},t,{key:"labelList-implicit"})):null:null};ff.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=ge(r,ff).map((function(t,n){return Object(f.cloneElement)(t,{data:e,key:"labelList-".concat(n)})}));if(!n)return i;var o=hf(t.label,e);return[o].concat(nf(i))},ff.defaultProps=lf;var pf=ff;function df(t){return(df="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mf(){return(mf=Object.assign||function(t){for(var e=1;eo){s=[].concat(bf(n.slice(0,u)),[o-c]);break}var l=s.length%2===0?[0,a]:[a];return[].concat(bf(this.constructor.repeat(n,i)),bf(s),l).map((function(t){return"".concat(t,"px")})).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,e=t.points,n=t.xAxis,r=t.yAxis,i=t.layout,o=t.children,a=ge(o,tc);if(!a)return null;function s(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:hl(t.payload,e)}}return a.map((function(t,o){return h.a.cloneElement(t,{key:o,data:e,xAxis:n,yAxis:r,layout:i,dataPointFormatter:s})}))}},{key:"renderDots",value:function(t,e){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,o=r.points,a=r.dataKey,s=we(this.props),u=we(i),c=xe(i),l=o.map((function(t,e){var r=vf({key:"dot-".concat(e),r:3},s,{},u,{},c,{value:t.value,dataKey:a,cx:t.x,cy:t.y,index:e,payload:t.payload});return n.constructor.renderDotItem(i,r)})),f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return h.a.createElement(cr,mf({className:"recharts-line-dots",key:"dots"},f),l)}},{key:"renderCurveStatically",value:function(t,e,n,r){var i=this.props,o=i.type,a=i.layout,s=i.connectNulls,u=vf({},we(this.props),{},xe(this.props),{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},r,{type:o,layout:a,connectNulls:s});return h.a.createElement(Kn,mf({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,a=r.isAnimationActive,s=r.animationBegin,u=r.animationDuration,c=r.animationEasing,l=r.animationId,f=r.width,p=r.height,d=this.state,m=d.prevPoints,y=d.totalLength;return h.a.createElement(kt,{begin:s,duration:u,isActive:a,easing:c,from:{t:0},to:{t:1},key:"line-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(m){var s=m.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*s);if(m[r]){var i=m[r],o=qt(i.x,t.x),u=qt(i.y,t.y);return vf({},t,{x:o(a),y:u(a)})}if(n.animateNewValues){var c=qt(2*f,t.x),l=qt(p/2,t.y);return vf({},t,{x:c(a),y:l(a)})}return vf({},t,{x:t.x,y:t.y})}));return n.renderCurveStatically(u,t,e)}var c,l=qt(0,y)(a);if(o){var h=o.split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));c=n.getStrokeDasharray(l,y,h)}else c="".concat(l,"px ").concat(y-l,"px");return n.renderCurveStatically(i,t,e,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,s=o.totalLength;return i&&r&&r.length&&(!a&&s>0||!y()(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.dot,r=t.points,i=t.className,o=t.xAxis,s=t.yAxis,u=t.top,c=t.left,l=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,y=1===r.length,v=Et()("recharts-line",i),g=o&&o.allowDataOverflow||s&&s.allowDataOverflow,b=a()(d)?this.id:d;return h.a.createElement(cr,{className:v},g?h.a.createElement("defs",null,h.a.createElement("clipPath",{id:"clipPath-".concat(b)},h.a.createElement("rect",{x:c,y:u,width:l,height:f}))):null,!y&&this.renderCurve(g,b),this.renderErrorBar(),(y||n)&&this.renderDots(g,b),(!p||m)&&pf.renderCallByParent(this.props,r))}}])&&_f(n.prototype,r),i&&_f(n,i),e}(f.PureComponent);kf.displayName="Line",kf.propTypes=vf({},he,{},pe,{className:d.a.string,type:d.a.oneOfType([d.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),d.a.func]),unit:d.a.oneOfType([d.a.string,d.a.number]),name:d.a.oneOfType([d.a.string,d.a.number]),yAxisId:d.a.oneOfType([d.a.string,d.a.number]),xAxisId:d.a.oneOfType([d.a.string,d.a.number]),yAxis:d.a.object,xAxis:d.a.object,legendType:d.a.oneOf(me),tooltipType:d.a.oneOf(ye),layout:d.a.oneOf(["horizontal","vertical"]),connectNulls:d.a.bool,hide:d.a.bool,activeDot:d.a.oneOfType([d.a.object,d.a.element,d.a.func,d.a.bool]),dot:d.a.oneOfType([d.a.object,d.a.element,d.a.func,d.a.bool]),top:d.a.number,left:d.a.number,width:d.a.number,height:d.a.number,points:d.a.arrayOf(d.a.shape({x:d.a.number,y:d.a.number,value:d.a.value})),onAnimationStart:d.a.func,onAnimationEnd:d.a.func,isAnimationActive:d.a.bool,animateNewValues:d.a.bool,animationBegin:d.a.number,animationDuration:d.a.number,animationEasing:d.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:d.a.number,id:d.a.string}),kf.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Se(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},kf.getComposedData=function(t){var e=t.props,n=t.xAxis,r=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,s=t.dataKey,u=t.bandSize,c=t.displayedData,l=t.offset,f=e.layout;return vf({points:c.map((function(t,e){var c=hl(t,s);return"horizontal"===f?{x:El({axis:n,ticks:i,bandSize:u,entry:t,index:e}),y:a()(c)?null:r.scale(c),value:c,payload:t}:{x:a()(c)?null:n.scale(c),y:El({axis:r,ticks:o,bandSize:u,entry:t,index:e}),value:c,payload:t}})),layout:f},l)};var Sf=kf;function Ef(t){return(Ef="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pf(){return(Pf=Object.assign||function(t){for(var e=1;e0||!y()(s,r)||!y()(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,i,t,e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.dot,r=t.points,i=t.className,o=t.top,s=t.left,u=t.xAxis,c=t.yAxis,l=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,y=1===r.length,v=Et()("recharts-area",i),g=u&&u.allowDataOverflow||c&&c.allowDataOverflow,b=a()(d)?this.id:d;return h.a.createElement(cr,{className:v},g?h.a.createElement("defs",null,h.a.createElement("clipPath",{id:"clipPath-".concat(b)},h.a.createElement("rect",{x:s,y:o,width:l,height:parseInt(f,10)}))):null,y?null:this.renderArea(g,b),(n||y)&&this.renderDots(g,b),(!p||m)&&pf.renderCallByParent(this.props,r))}}])&&Lf(n.prototype,r),i&&Lf(n,i),e}(f.PureComponent);Rf.displayName="Area",Rf.propTypes=Mf({},he,{},pe,{className:d.a.string,dataKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func]).isRequired,type:d.a.oneOfType([d.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),d.a.func]),unit:d.a.oneOfType([d.a.string,d.a.number]),name:d.a.oneOfType([d.a.string,d.a.number]),yAxisId:d.a.oneOfType([d.a.string,d.a.number]),xAxisId:d.a.oneOfType([d.a.string,d.a.number]),yAxis:d.a.object,xAxis:d.a.object,stackId:d.a.oneOfType([d.a.number,d.a.string]),legendType:d.a.oneOf(me),tooltipType:d.a.oneOf(ye),connectNulls:d.a.bool,activeDot:d.a.oneOfType([d.a.object,d.a.element,d.a.func,d.a.bool]),dot:d.a.oneOfType([d.a.func,d.a.element,d.a.object,d.a.bool]),label:d.a.oneOfType([d.a.func,d.a.element,d.a.object,d.a.bool]),hide:d.a.bool,layout:d.a.oneOf(["horizontal","vertical"]),baseLine:d.a.oneOfType([d.a.number,d.a.array]),isRange:d.a.bool,points:d.a.arrayOf(d.a.shape({x:d.a.number,y:d.a.number,value:d.a.oneOfType([d.a.number,d.a.array])})),onAnimationStart:d.a.func,onAnimationEnd:d.a.func,animationId:d.a.number,isAnimationActive:d.a.bool,animationBegin:d.a.number,animationDuration:d.a.number,animationEasing:d.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:d.a.string}),Rf.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Se(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},Rf.getBaseValue=function(t,e,n){var r=t.layout,i=t.baseValue;if(Ft(i))return i;var o="horizontal"===r?n:e,a=o.scale.domain();if("number"===o.type){var s=Math.max(a[0],a[1]),u=Math.min(a[0],a[1]);return"dataMin"===i?u:"dataMax"===i||s<0?s:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===i?a[0]:"dataMax"===i?a[1]:a[0]},Rf.getComposedData=function(t){var e,n=t.props,r=t.xAxis,i=t.yAxis,o=t.xAxisTicks,s=t.yAxisTicks,u=t.bandSize,c=t.dataKey,l=t.stackedData,f=t.dataStartIndex,h=t.displayedData,p=t.offset,d=n.layout,m=l&&l.length,y=Rf.getBaseValue(n,r,i),v=!1,g=h.map((function(t,e){var n;return m?n=l[f+e]:(n=hl(t,c),At()(n)?v=!0:n=[y,n]),"horizontal"===d?{x:El({axis:r,ticks:o,bandSize:u,entry:t,index:e}),y:a()(n[1])?null:i.scale(n[1]),value:n,payload:t}:{x:a()(n[1])?null:r.scale(n[1]),y:El({axis:i,ticks:s,bandSize:u,entry:t,index:e}),value:n,payload:t}}));return e=m||v?g.map((function(t){return"horizontal"===d?{x:t.x,y:a()(Lt()(t,"value[0]"))?null:i.scale(Lt()(t,"value[0]"))}:{x:a()(Lt()(t,"value[0]"))?null:r.scale(Lt()(t,"value[0]")),y:t.y}})):"horizontal"===d?i.scale(y):r.scale(y),Mf({points:g,baseLine:e,layout:d,isRange:v},p)},Rf.renderDotItem=function(t,e){return h.a.isValidElement(t)?h.a.cloneElement(t,e):u()(t)?t(e):h.a.createElement(ir,Pf({},e,{className:"recharts-area-dot"}))};var zf=Rf;function Bf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ff(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uf(t){return(Uf="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wf(){return(Wf=Object.assign||function(t){for(var e=1;e=0?1:-1,u=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var l=[],f=0;f<4;f++)l[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+s*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+u*l[0],",").concat(e)),o+="L ".concat(t+n-u*l[1],",").concat(e),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,",\n ").concat(t+n,",").concat(e+s*l[1])),o+="L ".concat(t+n,",").concat(e+r-s*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,",\n ").concat(t+n-u*l[2],",").concat(e+r)),o+="L ".concat(t+u*l[3],",").concat(e+r),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,",\n ").concat(t,",").concat(e+r-s*l[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);o="M ".concat(t,",").concat(e+s*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t+u*h,",").concat(e,"\n L ").concat(t+n-u*h,",").concat(e,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t+n,",").concat(e+s*h,"\n L ").concat(t+n,",").concat(e+r-s*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t+n-u*h,",").concat(e+r,"\n L ").concat(t+u*h,",").concat(e+r,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t,",").concat(e+r-s*h," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},Kf=function(t){function e(){var t,n;Hf(this,e);for(var r=arguments.length,i=new Array(r),o=0;o0,from:{width:i,height:o,x:n,y:r},to:{width:i,height:o,x:n,y:r},duration:f,animationEasing:l,isActive:m},(function(e){var n=e.width,r=e.height,i=e.x,o=e.y;return h.a.createElement(kt,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:f,isActive:d,easing:l},h.a.createElement("path",Wf({},we(t.props),xe(t.props),{className:y,d:Yf(i,o,n,r,a),ref:function(e){t.node=e}})))})):h.a.createElement("path",Wf({},we(this.props),xe(this.props),{className:y,d:Yf(n,r,i,o,a)}))}}])&&Zf(n.prototype,r),i&&Zf(n,i),e}(f.PureComponent);Kf.displayName="Rectangle",Kf.propTypes=function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function rh(){return(rh=Object.assign||function(t){for(var e=1;e=0?0:i<0?i:r}return n[0]}({props:e,numericAxis:b}),x=ge(v,th),O=f.map((function(t,e){var n,r,f,h,m,v;if(c?n=function(t,e){if(!e||2!==e.length||!Ft(e[0])||!Ft(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Ft(t[0])||t[0]r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]0&&Math.abs(m)0&&Math.abs(h)180),",").concat(+(o>s),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var f=Fl(e,n,r,o),h=Fl(e,n,r,s);l+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(e,",").concat(n," Z");return l},ap=function(t){function e(){return Qh(this,e),ep(this,np(e).apply(this,arguments))}var n,r,i;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rp(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,l=t.className;if(i0&&Math.abs(u-c)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,l=zt(c-u),f=ip({cx:e,cy:n,radius:i,angle:u,sign:l,cornerRadius:o,cornerIsExternal:s}),h=f.circleTangency,p=f.lineTangency,d=f.theta,m=ip({cx:e,cy:n,radius:i,angle:c,sign:-l,cornerRadius:o,cornerIsExternal:s}),y=m.circleTangency,v=m.lineTangency,g=m.theta,b=Math.abs(u-c)-d-g;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):op({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:c});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var _=ip({cx:e,cy:n,radius:r,angle:u,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),x=_.circleTangency,O=_.lineTangency,T=_.theta,k=ip({cx:e,cy:n,radius:r,angle:c,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),S=k.circleTangency,E=k.lineTangency,P=k.theta,j=Math.abs(u-c)-T-P;if(j<0)return"".concat(w,"L").concat(e,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"\n A").concat(r,",").concat(r,",0,").concat(+(j>180),",").concat(+(l>0),",").concat(x.x,",").concat(x.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,"Z")}else w+="L".concat(e,",").concat(n,"Z");return w}({cx:e,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(m,d/2),forceCornerRadius:a,cornerIsExternal:s,startAngle:u,endAngle:c}):op({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:c}),h.a.createElement("path",Jh({},we(this.props),xe(this.props),{className:p,d:f}))}}])&&tp(n.prototype,r),i&&tp(n,i),e}(f.PureComponent);ap.displayName="Sector",ap.propTypes=function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function dp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mp(t,e){for(var n=0;n=2?zt(y[1].coordinate-y[0].coordinate):1;if(1===b?(n="width"===m?f:h,r="width"===m?f+p:h+d):(n="width"===m?f+p:h+d,r="width"===m?f:h),e){var w=i[g-1],_=u()(o)?o(w.value):w.value,x=xr(_)[m]+v,O=b*(w.coordinate+b*x/2-r);y[g-1]=w=fp({},w,{tickCoord:O>0?w.coordinate-O*b:w.coordinate}),b*(w.tickCoord-b*x/2-n)>=0&&b*(w.tickCoord+b*x/2-r)<=0&&(r=w.tickCoord-b*(x/2+c),y[g-1]=fp({},w,{isShow:!0}))}for(var T=e?g-1:g,k=0;k=0&&b*(S.tickCoord+b*P/2-r)<=0&&(n=S.tickCoord+b*(P/2+c),y[k]=fp({},S,{isShow:!0}))}return y.filter((function(t){return t.isShow}))}},{key:"getTicksEnd",value:function(t){var e,n,r=t.ticks,i=t.tickFormatter,o=t.viewBox,a=t.orientation,s=t.minTickGap,c=t.unit,l=o.x,f=o.y,h=o.width,p=o.height,d="top"===a||"bottom"===a?"width":"height",m=c&&"width"===d?xr(c)[d]:0,y=(r||[]).slice(),v=y.length,g=v>=2?zt(y[1].coordinate-y[0].coordinate):1;1===g?(e="width"===d?l:f,n="width"===d?l+h:f+p):(e="width"===d?l+h:f+p,n="width"===d?l:f);for(var b=v-1;b>=0;b--){var w=y[b],_=u()(i)?i(w.value):w.value,x=xr(_)[d]+m;if(b===v-1){var O=g*(w.coordinate+g*x/2-n);y[b]=w=fp({},w,{tickCoord:O>0?w.coordinate-O*g:w.coordinate})}else y[b]=w=fp({},w,{tickCoord:w.coordinate});g*(w.tickCoord-g*x/2-e)>=0&&g*(w.tickCoord+g*x/2-n)<=0&&(n=w.tickCoord-g*(x/2+s),y[b]=fp({},w,{isShow:!0}))}return y.filter((function(t){return t.isShow}))}},{key:"renderTickItem",value:function(t,e,n){return h.a.isValidElement(t)?h.a.cloneElement(t,e):u()(t)?t(e):h.a.createElement(Nr,cp({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=pp(t,["viewBox"]),i=this.props,o=i.viewBox,a=pp(i,["viewBox"]);return!ce(n,o)||!ce(r,a)||!ce(e,this.state)}},{key:"getTickLineCoord",value:function(t){var e,n,r,i,o,a,s=this.props,u=s.x,c=s.y,l=s.width,f=s.height,h=s.orientation,p=s.tickSize,d=s.mirror,m=s.tickMargin,y=d?-1:1,v=t.tickSize||p,g=Ft(t.tickCoord)?t.tickCoord:t.coordinate;switch(h){case"top":e=n=t.coordinate,a=(r=(i=c+!d*f)-y*v)-y*m,o=g;break;case"left":r=i=t.coordinate,o=(e=(n=u+!d*l)-y*v)-y*m,a=g;break;case"right":r=i=t.coordinate,o=(e=(n=u+d*l)+y*v)+y*m,a=g;break;default:e=n=t.coordinate,a=(r=(i=c+d*f)+y*v)+y*m,o=g}return{line:{x1:e,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.orientation,a=t.axisLine,s=t.mirror,u=fp({},we(this.props),{fill:"none"},we(a));if("top"===o||"bottom"===o){var c="top"===o&&!s||"bottom"===o&&s;u=fp({},u,{x1:e,y1:n+c*i,x2:e+r,y2:n+c*i})}else{var l="left"===o&&!s||"right"===o&&s;u=fp({},u,{x1:e+l*r,y1:n,x2:e+l*r,y2:n+i})}return h.a.createElement("line",cp({className:"recharts-cartesian-axis-line"},u))}},{key:"renderTicks",value:function(t){var n=this,r=this.props,i=r.tickLine,o=r.stroke,a=r.tick,s=r.tickFormatter,c=r.unit,l=e.getTicks(fp({},this.props,{ticks:t})),f=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=we(this.props),m=we(a),y=fp({},d,{fill:"none"},we(i)),v=l.map((function(t,e){var r=n.getTickLineCoord(t),v=r.line,g=r.tick,b=fp({textAnchor:f,verticalAnchor:p},d,{stroke:"none",fill:o},m,{},g,{index:e,payload:t,visibleTicksCount:l.length});return h.a.createElement(cr,cp({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},Te(n.props,t,e)),i&&h.a.createElement("line",cp({className:"recharts-cartesian-axis-tick-line"},y,v)),a&&n.constructor.renderTickItem(a,b,"".concat(u()(s)?s(t.value):t.value).concat(c||"")))}));return h.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var t=this.props,e=t.axisLine,n=t.width,r=t.height,i=t.ticksGenerator,o=t.className;if(t.hide)return null;var a=this.props,s=a.ticks,c=pp(a,["ticks"]),l=s;return u()(i)&&(l=s&&s.length>0?i(this.props):i(c)),n<=0||r<=0||!l||!l.length?null:h.a.createElement(cr,{className:Et()("recharts-cartesian-axis",o)},e&&this.renderAxisLine(),this.renderTicks(l),ef.renderCallByParent(this.props))}}])&&mp(n.prototype,r),i&&mp(n,i),e}(f.Component);bp.displayName="CartesianAxis",bp.propTypes=fp({},he,{},pe,{className:d.a.string,x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number,orientation:d.a.oneOf(["top","bottom","left","right"]),viewBox:d.a.shape({x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number}),tick:d.a.oneOfType([d.a.bool,d.a.func,d.a.object,d.a.element]),axisLine:d.a.oneOfType([d.a.bool,d.a.object]),tickLine:d.a.oneOfType([d.a.bool,d.a.object]),mirror:d.a.bool,tickMargin:d.a.number.isRequired,minTickGap:d.a.number,ticks:d.a.array,tickSize:d.a.number,stroke:d.a.string,tickFormatter:d.a.func,ticksGenerator:d.a.func,interval:d.a.oneOfType([d.a.number,d.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),bp.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,tickMargin:2,interval:"preserveEnd"};var wp=bp;function _p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Op=["Webkit","Moz","O","ms"],Tp=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),r=Op.reduce((function(t,r){return function(t){for(var e=1;e0&&n.handleDrag(t.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,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(t){var e=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(Mp(n),"startX"),endX:n.handleTravellerDragStart.bind(Mp(n),"endX")},n.state=t.data&&t.data.length?n.updateScale(t):{},n}var n,r,i;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ap(t,e)}(e,t),n=e,i=[{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i}return e>=t[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(t){var e=this,n=this.props,r=n.data,i=n.width,o=n.x,a=n.travellerWidth,s=n.updateId;(t.data!==r||t.updateId!==s)&&t.data&&t.data.length?this.setState(this.updateScale(t)):t.width===i&&t.x===o&&t.travellerWidth===a||(this.scale.range([t.x,t.x+t.width-t.travellerWidth]),this.scaleValues=this.scale.domain().map((function(t){return e.scale(t)})),this.setState({startX:this.scale(t.startIndex),endX:this.scale(t.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.props,i=r.gap,o=r.data.length-1,a=Math.min(e,n),s=Math.max(e,n),u=this.constructor.getIndexInRange(this.scaleValues,a),c=this.constructor.getIndexInRange(this.scaleValues,s);return{startIndex:u-u%i,endIndex:c===o?o:c-c%i}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=hl(n[t],i,t);return u()(r)?r(o):o}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,s=o.width,u=o.travellerWidth,c=o.startIndex,l=o.endIndex,f=o.onChange,h=t.pageX-n;h>0?h=Math.min(h,a+s-u-i,a+s-u-r):h<0&&(h=Math.max(h,a-r,a-i));var p=this.getIndex({startX:r+h,endX:i+h});p.startIndex===c&&p.endIndex===l||!f||f(p),this.setState({startX:r+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,s=this.state[i],u=this.props,c=u.x,l=u.width,f=u.travellerWidth,h=u.onChange,p=u.gap,d=u.data,m={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-f-s):y<0&&(y=Math.max(y,c-s)),m[i]=s+y;var v=this.getIndex(m),g=v.startIndex,b=v.endIndex;this.setState((Ep(e={},i,s+y),Ep(e,"brushMoveStartX",t.pageX),e),(function(){h&&function(){var t=d.length-1;return"startX"===i&&(o>a?g%p===0:b%p===0)||oa?b%p===0:g%p===0)||o>a&&b===t}()&&h(v)}))}},{key:"updateScale",value:function(t){var e=this,n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth,u=n.length;return this.scale=gi().domain(Ih()(0,u)).range([o,o+a-s]),this.scaleValues=this.scale.domain().map((function(t){return e.scale(t)})),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(i)}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.fill,a=t.stroke;return h.a.createElement("rect",{stroke:a,fill:o,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.data,a=t.children,s=t.padding,u=f.Children.only(a);return u?h.a.cloneElement(u,{x:e,y:n,width:r,height:i,margin:s,compact:!0,data:o}):null}},{key:"renderTraveller",value:function(t,e){var n=this.props,r=n.y,i=n.travellerWidth,o=n.height,a=n.stroke,s=Math.floor(r+o/2)-1,u=Math.max(t,this.props.x);return h.a.createElement(cr,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],style:{cursor:"col-resize"}},h.a.createElement("rect",{x:u,y:r,width:i,height:o,fill:a,stroke:"none"}),h.a.createElement("line",{x1:u+1,y1:s,x2:u+i-1,y2:s,fill:"none",stroke:"#fff"}),h.a.createElement("line",{x1:u+1,y1:s+2,x2:u+i-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,o=n.stroke;return h.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:o,fillOpacity:.2,x:Math.min(t,e),y:r,width:Math.abs(e-t),height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,s=this.state,u=s.startX,c=s.endX,l={pointerEvents:"none",fill:a};return h.a.createElement(cr,{className:"recharts-brush-texts"},h.a.createElement(Nr,Sp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,c)-5,y:r+i/2},l),this.getTextOfTick(e)),h.a.createElement(Nr,Sp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,c)+o+5,y:r+i/2},l),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,o=t.y,a=t.width,s=t.height,u=t.alwaysShowText,c=this.state,l=c.startX,f=c.endX,p=c.isTextActive,d=c.isSlideMoving,m=c.isTravellerMoving;if(!e||!e.length||!Ft(i)||!Ft(o)||!Ft(a)||!Ft(s)||a<=0||s<=0)return null;var y=Et()("recharts-brush",n),v=1===h.a.Children.count(r),g=Tp("userSelect","none");return h.a.createElement(cr,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(l,f),this.renderTraveller(l,"startX"),this.renderTraveller(f,"endX"),(p||d||m||u)&&this.renderText())}}])&&Pp(n.prototype,r),i&&Pp(n,i),e}(f.PureComponent);Cp.displayName="Brush",Cp.propTypes={className:d.a.string,fill:d.a.string,stroke:d.a.string,x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number.isRequired,travellerWidth:d.a.number,gap:d.a.number,padding:d.a.shape({top:d.a.number,right:d.a.number,bottom:d.a.number,left:d.a.number}),dataKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func]),data:d.a.array,startIndex:d.a.number,endIndex:d.a.number,tickFormatter:d.a.func,children:d.a.node,onChange:d.a.func,updateId:d.a.oneOfType([d.a.string,d.a.number]),leaveTimeOut:d.a.number,alwaysShowText:d.a.bool},Cp.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var Lp=Cp,Np=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},Ip=n(143),Dp=n.n(Ip);function Rp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zp(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o;default:return this.scale(t)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),t}();Vp.EPS=1e-4;var qp=function(){function t(e){Rp(this,t),this.scales=Dp()(e,Vp.create),Object.assign(this,this.scales)}return Bp(t,null,[{key:"create",value:function(t){return new this(t)}}]),Bp(t,[{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=this.scales;return Dp()(t,(function(t,e){return r[e].apply(t,{bandAware:n})}))}},{key:"isInRange",value:function(t){var e=this.scales;return Ah()(t,(function(t,n){return e[n].isInRange(t)}))}}]),t}();function Gp(t){return(Gp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yp(){return(Yp=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function zd(){return(zd=Object.assign||function(t){for(var e=1;e0&&n.handleMouseMove(t.changedTouches[0])},n.handleTouchStart=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseDown(t.changedTouches[0])},n.handleTouchEnd=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseUp(t.changedTouches[0])},n.verticalCoordinatesGenerator=function(t){var e=t.xAxis,n=t.width,r=t.height,i=t.offset;return bl(wp.getTicks(Ud({},wp.defaultProps,{},e,{ticks:wl(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},n.horizontalCoordinatesGenerator=function(t){var e=t.yAxis,n=t.width,r=t.height,i=t.offset;return bl(wp.getTicks(Ud({},wp.defaultProps,{},e,{ticks:wl(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},n.axesTicksGenerator=function(t){return wl(t,!0)},n.tooltipTicksGenerator=function(t){var e=Vt(t),n=wl(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:jt()(n,(function(t){return t.coordinate})),tooltipAxis:e,tooltipAxisBandSize:Ll(e)}},n.renderCursor=function(t){var r=n.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.offset;if(!t||!t.props.cursor||!i||!o)return null;var u,c=n.props.layout,l=Kn;if("ScatterChart"===e)u=o,l=Yh;else if("BarChart"===e)u=n.getCursorRectangle(),l=$f;else if("radial"===c){var h=n.getCursorPoints(),p=h.cx,d=h.cy,m=h.radius;u={cx:p,cy:d,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:m,outerRadius:m},l=sp}else u={points:n.getCursorPoints()},l=Kn;var y=t.key||"_recharts-cursor",v=Ud({stroke:"#ccc",pointerEvents:"none"},s,{},u,{},we(t.props.cursor),{payload:a,key:y,className:"recharts-tooltip-cursor"});return Object(f.isValidElement)(t.props.cursor)?Object(f.cloneElement)(t.props.cursor,v):Object(f.createElement)(l,v)},n.renderPolarAxis=function(t,e,r){var i=t.type.axisType,o=n.state["".concat(i,"Map")][t.props["".concat(i,"Id")]];return Object(f.cloneElement)(t,Ud({},o,{className:i,key:t.key||"".concat(e,"-").concat(r),ticks:wl(o,!0)}))},n.renderXAxis=function(t,e,r){var i=n.state.xAxisMap[t.props.xAxisId];return n.renderAxis(i,t,e,r)},n.renderYAxis=function(t,e,r){var i=n.state.yAxisMap[t.props.yAxisId];return n.renderAxis(i,t,e,r)},n.renderGrid=function(t){var e=n.state,r=e.xAxisMap,i=e.yAxisMap,o=e.offset,a=n.props,s=a.width,u=a.height,c=Vt(r),l=Lh()(i,(function(t){return Ah()(t.domain,Number.isFinite)}))||Vt(i),h=t.props||{};return Object(f.cloneElement)(t,{key:t.key||"grid",x:Ft(h.x)?h.x:o.left,y:Ft(h.y)?h.y:o.top,width:Ft(h.width)?h.width:o.width,height:Ft(h.height)?h.height:o.height,xAxis:c,yAxis:l,offset:o,chartWidth:s,chartHeight:u,verticalCoordinatesGenerator:h.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:h.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(t){var e=n.state,r=e.radiusAxisMap,i=e.angleAxisMap,o=Vt(r),a=Vt(i),s=a.cx,u=a.cy,c=a.innerRadius,l=a.outerRadius;return Object(f.cloneElement)(t,{polarAngles:wl(a,!0).map((function(t){return t.coordinate})),polarRadius:wl(o,!0).map((function(t){return t.coordinate})),cx:s,cy:u,innerRadius:c,outerRadius:l,key:t.key||"polar-grid"})},n.renderBrush=function(t){var e=n.props,r=e.margin,i=e.data,o=n.state,a=o.offset,s=o.dataStartIndex,u=o.dataEndIndex,c=o.updateId;return Object(f.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:_l(n.handleBrushChange,null,t.props.onChange),data:i,x:Ft(t.props.x)?t.props.x:a.left,y:Ft(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Ft(t.props.width)?t.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(c)})},n.renderReferenceElement=function(t,e,r){if(!t)return null;var i=Vd(n).clipPathId,o=n.state,a=o.xAxisMap,s=o.yAxisMap,u=o.offset,c=t.props,l=c.xAxisId,h=c.yAxisId;return Object(f.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[l],yAxis:s[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},n.renderGraphicChild=function(t,e,r){var i=n.filterFormatItem(t,e,r);if(!i)return null;var o=Object(f.cloneElement)(t,i.props),s=n.state,u=s.isTooltipActive,c=s.tooltipAxis,l=s.activeTooltipIndex,h=s.activeLabel,p=n.props.children,d=be(p,qe),m=i.props,y=m.points,v=m.isRange,g=m.baseLine,b=i.item.props,w=b.activeDot;if(!b.hide&&u&&d&&w&&l>=0){var _,x;if(c.dataKey&&!c.allowDuplicatedCategory){var O="function"===typeof c.dataKey?function(t){return c.dataKey(t.payload)}:"payload.".concat(c.dataKey);_=Gt(y,O,h),x=v&&g&&Gt(g,O,h)}else _=y[l],x=v&&g&&g[l];if(!a()(_))return[o].concat(Bd(n.renderActivePoints({item:i,activePoint:_,basePoint:x,childIndex:l,isRange:v})))}return v?[o,null,null]:[o,null]},n.renderCustomized=function(t){return Object(f.cloneElement)(t,Ud({},n.props,{},n.state))};var i=n.constructor.createDefaultState(t);return n.state=Ud({},i,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(Ud({props:t},i,{updateId:0}))),n.uniqueChartId=a()(t.id)?Ht("recharts"):t.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),t.throttleDelay&&(n.triggeredAfterMouseMove=Rh()(n.triggeredAfterMouseMove,t.throttleDelay)),n}var l,p,d;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qd(t,e)}(r,t),l=r,d=[{key:"getAxisNameByLayout",value:function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(t,e){var n;return n=Object(f.isValidElement)(t)?Object(f.cloneElement)(t,e):u()(t)?t(e):h.a.createElement(ir,e),h.a.createElement(cr,{className:"recharts-active-dot",key:e.key},n)}}],(p=[{key:"componentDidMount",value:function(){a()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=this.props,r=n.data,i=n.children,o=n.width,s=n.height,u=n.layout,c=n.stackOffset,l=n.margin,f=this.state.updateId;if(t.data===r&&t.width===o&&t.height===s&&t.layout===u&&t.stackOffset===c&&ce(t.margin,l)){if(!je(t.children,i)){var h=a()(t.data)?f+1:f;this.setState((function(n){return Ud({updateId:h},e.updateStateOfAxisMapsOffsetAndStackGroups(Ud({props:t},n,{updateId:h})))}))}}else{var p=this.constructor.createDefaultState(t);this.setState(Ud({},p,{updateId:f+1},this.updateStateOfAxisMapsOffsetAndStackGroups(Ud({props:t},p,{updateId:f+1}))))}a()(this.props.syncId)&&!a()(t.syncId)&&this.addListener(),!a()(this.props.syncId)&&a()(t.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){a()(this.props.syncId)||this.removeListener(),"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,c=t.children,l="".concat(r,"Id"),f=ge(c,i),h={};return f&&f.length?h=this.getAxisMapByAxes(t,{axes:f,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(h=this.getAxisMapByItems(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),h}},{key:"getAxisMapByAxes",value:function(t,e){var n=this,r=e.axes,i=e.graphicalItems,o=e.axisType,s=e.axisIdKey,u=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,f=t.layout,h=t.children,p=t.stackOffset,d=gl(f,o);return r.reduce((function(e,r){var m=r.props,y=m.type,v=m.dataKey,g=m.allowDataOverflow,b=m.allowDuplicatedCategory,w=m.scale,_=m.ticks,x=r.props[s],O=n.constructor.getDisplayedData(t,{graphicalItems:i.filter((function(t){return t.props[s]===x})),dataStartIndex:c,dataEndIndex:l}),T=O.length;if(!e[x]){var k,S,E;if(v){if(k=pl(O,v,y),"category"===y&&d){var P=function(t){if(!At()(t))return!1;for(var e=t.length,n={},r=0;r=0?t:[].concat(Bd(t),[e])}),[]))}else if("category"===y)k=b?k.filter((function(t){return""!==t&&!a()(t)})):Nl(r.props.domain,k,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||a()(e)?t:[].concat(Bd(t),[e])}),[]);else if("number"===y){var j=function(t,e,n,r){var i=e.map((function(e){return yl(t,e,n,r)})).filter((function(t){return!a()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(O,i.filter((function(t){return t.props[s]===x&&!t.props.hide})),v,o);j&&(k=j)}!d||"number"!==y&&"auto"===w||(E=pl(O,v,"category"))}else k=d?Ih()(0,T):u&&u[x]&&u[x].hasStack&&"number"===y?"expand"===p?[0,1]:jl(u[x].stackGroups,c,l):vl(O,i.filter((function(t){return t.props[s]===x&&!t.props.hide})),y,!0);return"number"===y&&(k=Cd(h,k,x,o,_),r.props.domain&&(k=Cl(r.props.domain,k,g))),Ud({},e,Wd({},x,Ud({},r.props,{axisType:o,domain:k,categoricalDomain:E,duplicateDomain:S,originalDomain:r.props.domain,isCategorial:d,layout:f})))}return e}),{})}},{key:"getAxisMapByItems",value:function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,c=t.layout,l=t.children,f=this.constructor.getDisplayedData(t,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),h=f.length,p=gl(c,i),d=-1;return n.reduce((function(t,e){var m,y=e.props[o];return t[y]?t:(d++,p?m=Ih()(0,h):a&&a[y]&&a[y].hasStack?(m=jl(a[y].stackGroups,s,u),m=Cd(l,m,y,i)):(m=Cl(r.defaultProps.domain,vl(f,n.filter((function(t){return t.props[o]===y&&!t.props.hide})),"number"),r.defaultProps.allowDataOverflow),m=Cd(l,m,y,i)),Ud({},t,Wd({},y,Ud({axisType:i},r.defaultProps,{hide:!0,orientation:Gd[i]&&Gd[i][d%2],domain:m,originalDomain:r.defaultProps.domain,isCategorial:p,layout:c}))))}),{})}},{key:"getActiveCoordinate",value:function(t,e,n){var r=this.props.layout,i=t.find((function(t){return t&&t.index===e}));if(i){if("horizontal"===r)return{x:i.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:i.coordinate};if("centric"===r){var o=i.coordinate,a=n.radius;return Ud({},n,{},Fl(n.cx,n.cy,a,o),{angle:o,radius:a})}var s=i.coordinate,u=n.angle;return Ud({},n,{},Fl(n.cx,n.cy,s,u),{angle:u,radius:s})}return Yd}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}(t,function(t){var e=t.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof t.getBoundingClientRect&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-e.clientTop,left:n.left+window.pageXOffset-e.clientLeft}}(this.container)),n=this.inRange(e.chartX,e.chartY);if(!n)return null;var r=this.state,o=r.xAxisMap,a=r.yAxisMap;if("axis"!==i&&o&&a){var s=Vt(o).scale,u=Vt(a).scale;return Ud({},e,{xValue:s&&s.invert?s.invert(e.chartX):null,yValue:u&&u.invert?u.invert(e.chartY):null})}var c=this.state,l=c.orderedTooltipTicks,f=c.tooltipAxis,h=c.tooltipTicks,p=function(t,e,n,r){var i=-1,o=e.length;if(o>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,s=0;s0?n[s-1].coordinate:n[o-1].coordinate,c=n[s].coordinate,l=s>=o-1?n[0].coordinate:n[s+1].coordinate,f=void 0;if(zt(c-u)!==zt(l-c)){var h=[];if(zt(l-c)===zt(a[1]-a[0])){f=l;var p=c+a[1]-a[0];h[0]=Math.min(p,(p+u)/2),h[1]=Math.max(p,(p+u)/2)}else{f=u;var d=l+a[1]-a[0];h[0]=Math.min(c,(d+c)/2),h[1]=Math.max(c,(d+c)/2)}var m=[Math.min(c,(f+c)/2),Math.max(c,(f+c)/2)];if(t>m[0]&&t<=m[1]||t>=h[0]&&t<=h[1]){i=n[s].index;break}}else{var y=Math.min(u,l),v=Math.max(u,l);if(t>(y+c)/2&&t<=(v+c)/2){i=n[s].index;break}}}else for(var g=0;g0&&g(e[g].coordinate+e[g-1].coordinate)/2&&t<=(e[g].coordinate+e[g+1].coordinate)/2||g===o-1&&t>(e[g].coordinate+e[g-1].coordinate)/2){i=e[g].index;break}}else i=0;return i}(this.calculateTooltipPos(n),l,h,f);if(p>=0&&h){var d=h[p]&&h[p].value;return Ud({},e,{activeTooltipIndex:p,activeLabel:d,activePayload:this.getTooltipContent(p,d),activeCoordinate:this.getActiveCoordinate(l,p,n)})}return null}},{key:"getTooltipContent",value:function(t,e){var n=this.state,r=n.graphicalItems,i=n.tooltipAxis,o=this.constructor.getDisplayedData(this.props,this.state);return t<0||!r||!r.length||t>=o.length?null:r.reduce((function(n,r){if(r.props.hide)return n;var a,s=r.props,u=s.dataKey,c=s.name,l=s.unit,f=s.formatter,h=s.data,p=s.tooltipType;return(a=i.dataKey&&!i.allowDuplicatedCategory?Gt(h||o,i.dataKey,e):h&&h[t]||o[t])?[].concat(Bd(n),[Ud({},we(r),{dataKey:u,unit:l,formatter:f,name:c||u,color:dl(r),value:hl(a,u),type:p,payload:a})]):n}),[])}},{key:"getFormatItems",value:function(t,e){var n=this,r=e.graphicalItems,i=e.stackGroups,s=e.offset,u=e.updateId,c=e.dataStartIndex,l=e.dataEndIndex,f=t.barSize,h=t.layout,p=t.barGap,d=t.barCategoryGap,m=t.maxBarSize,y=this.constructor.getAxisNameByLayout(h),v=y.numericAxisName,g=y.cateAxisName,b=this.constructor.hasBar(r),w=b&&function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),s=0,u=o.length;s=0}));if(y&&y.length){var v=y[0].props.barSize,g=y[0].props[m];i[g]||(i[g]=[]),i[g].push({item:y[0],stackList:y.slice(1),barSize:a()(v)?e:v})}}return i}({barSize:f,stackGroups:i}),_=[];return r.forEach((function(r,f){var y,x=n.constructor.getDisplayedData(t,{dataStartIndex:c,dataEndIndex:l},r),O=r.props,T=O.dataKey,k=O.maxBarSize,S=r.props["".concat(v,"Id")],E=r.props["".concat(g,"Id")],P=o.reduce((function(t,n){var i,o=e["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],s=o&&o[a];return Ud({},t,(Wd(i={},n.axisType,s),Wd(i,"".concat(n.axisType,"Ticks"),wl(s)),i))}),{}),j=P[g],M=P["".concat(g,"Ticks")],A=i&&i[S]&&i[S].hasStack&&function(t,e){var n=t.props.stackId;if(Ut(n)){var r=e[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o=0?r.stackedData[i]:null}}return null}(r,i[S].stackGroups),C=Ll(j,M),L=a()(k)?m:k,N=b&&function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,s=o.length;if(s<1)return null;var u,c=Zt(e,r,0,!0);if(o[0].barSize===+o[0].barSize){var l=!1,f=r/s,h=o.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(s-1)*c)>=r&&(h-=(s-1)*c,c=0),h>=r&&f>0&&(l=!0,h=s*(f*=.9));var p={offset:((r-h)/2>>0)-c,size:0};u=o.reduce((function(t,e){var n=[].concat(ul(t),[{item:e.item,position:{offset:p.offset+p.size+c,size:l?f:e.barSize}}]);return p=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:p})})),n}),[])}else{var d=Zt(n,r,0,!0);r-2*d-(s-1)*c<=0&&(c=0);var m=(r-2*d-(s-1)*c)/s;m>1&&(m>>=0);var y=a===+a?Math.min(m,a):m;u=o.reduce((function(t,e,n){var r=[].concat(ul(t),[{item:e.item,position:{offset:d+(m+c)*n+(m-y)/2,size:y}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),[])}return u}({barGap:p,barCategoryGap:d,bandSize:C,sizeList:w[E],maxBarSize:L}),I=r&&r.type&&r.type.getComposedData;I&&_.push({props:Ud({},I(Ud({},P,{displayedData:x,props:t,dataKey:T,item:r,bandSize:C,barPosition:N,offset:s,stackedData:A,layout:h,dataStartIndex:c,dataEndIndex:l,onItemMouseLeave:_l(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:_l(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(y={key:r.key||"item-".concat(f)},Wd(y,v,P[v]),Wd(y,g,P[g]),Wd(y,"animationId",u),y)),childIndex:Ae(r,t.children),item:r})})),_}},{key:"getCursorRectangle",value:function(){var t=this.props.layout,e=this.state,n=e.activeCoordinate,r=e.offset,i=e.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?n.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:n.y-o,width:"horizontal"===t?i:r.width-1,height:"horizontal"===t?r.height-1:i}}},{key:"getCursorPoints",value:function(){var t,e,n,r,i=this.props.layout,o=this.state,s=o.activeCoordinate,u=o.offset;if("horizontal"===i)n=t=s.x,e=u.top,r=u.top+u.height;else if("vertical"===i)r=e=s.y,t=u.left,n=u.left+u.width;else if(!a()(s.cx)||!a()(s.cy)){if("centric"!==i){var c=s.cx,l=s.cy,f=s.radius,h=s.startAngle,p=s.endAngle;return{points:[Fl(c,l,f,h),Fl(c,l,f,p)],cx:c,cy:l,radius:f,startAngle:h,endAngle:p}}var d=s.cx,m=s.cy,y=s.innerRadius,v=s.outerRadius,g=s.angle,b=Fl(d,m,y,g),w=Fl(d,m,v,g);t=b.x,e=b.y,n=w.x,r=w.y}return[{x:t,y:e},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(t){var e=this.props.layout;return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}},{key:"inRange",value:function(t,e){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return t>=r.left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height?{x:t,y:e}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=Vt(o);return Hl({x:t,y:e},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=be(t,qe)&&"axis"===i?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return Ud({},xe(this.props,this.handleOuterEvent),{},e)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(t){var r=this,i=t.props,a=t.dataStartIndex,s=t.dataEndIndex,u=t.updateId;if(!ke({props:i}))return null;var l=i.children,f=i.layout,h=i.stackOffset,p=i.data,d=i.reverseStackOrder,m=this.constructor.getAxisNameByLayout(f),y=m.numericAxisName,v=m.cateAxisName,g=ge(l,n),b=function(t,e,n,r,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[n],s=t[a]||{hasStack:!1,stackGroups:{}};if(Ut(o)){var u=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(e),s.hasStack=!0,s.stackGroups[o]=u}else s.stackGroups[Ht("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return ll({},t,fl({},a,s))}),{});return Object.keys(a).reduce((function(e,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(e,o){var a=s.stackGroups[o];return ll({},e,fl({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:kl(t,a.items,i)}))}),{})),ll({},e,fl({},o,s))}),{})}(p,g,"".concat(y,"Id"),"".concat(v,"Id"),h,d),w=o.reduce((function(t,e){return Ud({},t,Wd({},"".concat(e.axisType,"Map"),r.getAxisMap(i,Ud({},e,{graphicalItems:g,stackGroups:e.axisType===y&&b,dataStartIndex:a,dataEndIndex:s}))))}),{}),_=this.calculateOffset(Ud({},w,{props:i,graphicalItems:g}));Object.keys(w).forEach((function(t){w[t]=c(i,w[t],_,t.replace("Map",""),e)}));var x=w["".concat(v,"Map")],O=this.tooltipTicksGenerator(x),T=this.getFormatItems(i,Ud({},w,{dataStartIndex:a,dataEndIndex:s,updateId:u,graphicalItems:g,stackGroups:b,offset:_}));return Ud({formatedGraphicalItems:T,graphicalItems:g,offset:_,stackGroups:b},O,{},w)}},{key:"addListener",value:function(){Nd.on(Id,this.handleReceiveSyncEvent),Nd.setMaxListeners&&Nd._maxListeners&&Nd.setMaxListeners(Nd._maxListeners+1)}},{key:"removeListener",value:function(){Nd.removeListener(Id,this.handleReceiveSyncEvent),Nd.setMaxListeners&&Nd._maxListeners&&Nd.setMaxListeners(Nd._maxListeners-1)}},{key:"calculateOffset",value:function(t){var e=t.props,n=t.graphicalItems,r=t.xAxisMap,i=void 0===r?{}:r,o=t.yAxisMap,a=void 0===o?{}:o,s=e.width,u=e.height,c=e.children,l=e.margin||{},f=be(c,Lp),h=be(c,sl),p=Object.keys(a).reduce((function(t,e){var n=a[e],r=n.orientation;return n.mirror||n.hide?t:Ud({},t,Wd({},r,t[r]+n.width))}),{left:l.left||0,right:l.right||0}),d=Object.keys(i).reduce((function(t,e){var n=i[e],r=n.orientation;return n.mirror||n.hide?t:Ud({},t,Wd({},r,t[r]+n.height))}),{top:l.top||0,bottom:l.bottom||0}),m=Ud({},d,{},p),y=m.bottom;return f&&(m.bottom+=f.props.height||Lp.defaultProps.height),h&&this.legendInstance&&(m=function(t,e,n,r){var i=n.children,o=n.width,a=n.height,s=n.margin,u=o-(s.left||0)-(s.right||0),c=a-(s.top||0)-(s.bottom||0),l=ml({children:i,items:e,legendWidth:u,legendHeight:c}),f=t;if(l){var h=r||{},p=l.align,d=l.verticalAlign,m=l.layout;("vertical"===m||"horizontal"===m&&"center"===d)&&Ft(t[p])&&(f=ll({},t,fl({},p,f[p]+(h.width||0)))),("horizontal"===m||"vertical"===m&&"center"===p)&&Ft(t[d])&&(f=ll({},t,fl({},d,f[d]+(h.height||0))))}return f}(m,n,e,this.legendInstance.getBBox())),Ud({brushBottom:y},m,{width:s-m.left-m.right,height:u-m.top-m.bottom})}},{key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;a()(e)||Nd.emit(Id,e,this.uniqueChartId,t)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formatedGraphicalItems,i=0,o=r.length;i=0}))},m.getDisplayedData=function(t,e,n){var r=e.graphicalItems,i=e.dataStartIndex,o=e.dataEndIndex,a=(r||[]).reduce((function(t,e){var n=e.props.data;return n&&n.length?[].concat(Bd(t),Bd(n)):t}),[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var s=t.data;return s&&s.length&&Ft(i)&&Ft(o)?s.slice(i,o+1):[]},m},$d=Kd({chartName:"BarChart",GraphicalChild:ph,axisComponents:[{axisType:"xAxis",AxisComp:_h},{axisType:"yAxis",AxisComp:jh}],formatAxisMap:Hp});function Xd(t){return(Xd="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qd(t,e){for(var n=0;n0?Math.floor(t):Math.ceil(t)};function C(t,e,n){return t instanceof M?t:y(t)?new M(t[0],t[1]):void 0===t||null===t?t:"object"===typeof t&&"x"in t&&"y"in t?new M(t.x,t.y):new M(t,e,n)}function N(t,e){if(t)for(var n=e?[t,e]:t,r=0,i=n.length;r=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=I(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>=e.x&&r.x<=n.x,a=i.y>=e.y&&r.y<=n.y;return o&&a},overlaps:function(t){t=I(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>e.x&&r.xe.y&&r.y=r.lat&&n.lat<=i.lat&&e.lng>=r.lng&&n.lng<=i.lng},intersects:function(t){t=R(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>=e.lat&&r.lat<=n.lat,a=i.lng>=e.lng&&r.lng<=n.lng;return o&&a},overlaps:function(t){t=R(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>e.lat&&r.late.lng&&r.lng1,Tt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",u,e),window.removeEventListener("testPassiveEventSupport",u,e)}catch(n){}return t}(),kt=!!document.createElement("canvas").getContext,St=!(!document.createElementNS||!G("svg").createSVGRect),Et=!St&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"===typeof e.adj}catch(n){return!1}}();function Pt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var jt={ie:$,ielt9:X,edge:J,webkit:Q,android:tt,android23:et,androidStock:rt,opera:it,chrome:ot,gecko:at,safari:st,phantom:ut,opera12:ct,win:lt,ie3d:ft,webkit3d:ht,gecko3d:pt,any3d:dt,mobile:mt,mobileWebkit:yt,mobileWebkit3d:vt,msPointer:gt,pointer:bt,touch:wt,mobileOpera:_t,mobileGecko:xt,retina:Ot,passiveEvents:Tt,canvas:kt,svg:St,vml:Et},Mt=gt?"MSPointerDown":"pointerdown",At=gt?"MSPointerMove":"pointermove",Ct=gt?"MSPointerUp":"pointerup",Lt=gt?"MSPointerCancel":"pointercancel",Nt={},It=!1;function Dt(t,e,n,i){return"touchstart"===e?function(t,e,n){var i=r((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Le(t),Ft(t,e)}));t["_leaflet_touchstart"+n]=i,t.addEventListener(Mt,i,!1),It||(document.addEventListener(Mt,Rt,!0),document.addEventListener(At,zt,!0),document.addEventListener(Ct,Bt,!0),document.addEventListener(Lt,Bt,!0),It=!0)}(t,n,i):"touchmove"===e?function(t,e,n){var r=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Ft(t,e)};t["_leaflet_touchmove"+n]=r,t.addEventListener(At,r,!1)}(t,n,i):"touchend"===e&&function(t,e,n){var r=function(t){Ft(t,e)};t["_leaflet_touchend"+n]=r,t.addEventListener(Ct,r,!1),t.addEventListener(Lt,r,!1)}(t,n,i),this}function Rt(t){Nt[t.pointerId]=t}function zt(t){Nt[t.pointerId]&&(Nt[t.pointerId]=t)}function Bt(t){delete Nt[t.pointerId]}function Ft(t,e){for(var n in t.touches=[],Nt)t.touches.push(Nt[n]);t.changedTouches=[t],e(t)}var Ut,Wt,Ht,Zt,Vt,qt=gt?"MSPointerDown":bt?"pointerdown":"touchstart",Gt=gt?"MSPointerUp":bt?"pointerup":"touchend",Yt="_leaflet_",Kt=fe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$t=fe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Xt="webkitTransition"===$t||"OTransition"===$t?$t+"End":"transitionend";function Jt(t){return"string"===typeof t?document.getElementById(t):t}function Qt(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);n=r?r[e]:null}return"auto"===n?null:n}function te(t,e,n){var r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}function ee(t){var e=t.parentNode;e&&e.removeChild(t)}function ne(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function re(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ie(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function oe(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=ce(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function ae(t,e){if(void 0!==t.classList)for(var n=f(e),r=0,i=n.length;r1)return;var e=Date.now(),n=e-(r||e);i=t.touches?t.touches[0]:t,o=n>0&&n<=250,r=e}function s(t){if(o&&!i.cancelBubble){if(bt){if("mouse"===t.pointerType)return;var n,a,s={};for(a in i)n=i[a],s[a]=n&&n.bind?n.bind(i):n;i=s}i.type="dblclick",i.button=0,e(i),r=null}}t[Yt+qt+n]=a,t[Yt+Gt+n]=s,t[Yt+"dblclick"+n]=e,t.addEventListener(qt,a,!!Tt&&{passive:!1}),t.addEventListener(Gt,s,!!Tt&&{passive:!1}),t.addEventListener("dblclick",e,!1)}(t,a,i):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Ee[e]||e,a,!!Tt&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,Ue(t,e)&&s(e)},t.addEventListener(Ee[e],a,!1)):t.addEventListener(e,s,!1):"attachEvent"in t&&t.attachEvent("on"+e,a),t[Te]=t[Te]||{},t[Te][i]=a}function je(t,e,n,r){var i=e+o(n)+(r?"_"+o(r):""),a=t[Te]&&t[Te][i];if(!a)return this;bt&&0===e.indexOf("touch")?function(t,e,n){var r=t["_leaflet_"+e+n];"touchstart"===e?t.removeEventListener(Mt,r,!1):"touchmove"===e?t.removeEventListener(At,r,!1):"touchend"===e&&(t.removeEventListener(Ct,r,!1),t.removeEventListener(Lt,r,!1))}(t,e,i):wt&&"dblclick"===e&&!Se()?function(t,e){var n=t[Yt+qt+e],r=t[Yt+Gt+e],i=t[Yt+"dblclick"+e];t.removeEventListener(qt,n,!!Tt&&{passive:!1}),t.removeEventListener(Gt,r,!!Tt&&{passive:!1}),t.removeEventListener("dblclick",i,!1)}(t,i):"removeEventListener"in t?t.removeEventListener(Ee[e]||e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a),t[Te][i]=null}function Me(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Fe(t),this}function Ae(t){return Pe(t,"wheel",Me),this}function Ce(t){return Oe(t,"mousedown touchstart dblclick",Me),Pe(t,"click",Be),this}function Le(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ne(t){return Le(t),Me(t),this}function Ie(t,e){if(!e)return new M(t.clientX,t.clientY);var n=_e(e),r=n.boundingClientRect;return new M((t.clientX-r.left)/n.x-e.clientLeft,(t.clientY-r.top)/n.y-e.clientTop)}var De=lt&&ot?2*window.devicePixelRatio:at?window.devicePixelRatio:1;function Re(t){return J?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/De:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var ze={};function Be(t){ze[t.type]=!0}function Fe(t){var e=ze[t.type];return ze[t.type]=!1,e}function Ue(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(r){return!1}return n!==t}var We={on:Oe,off:ke,stopPropagation:Me,disableScrollPropagation:Ae,disableClickPropagation:Ce,preventDefault:Le,stop:Ne,getMousePosition:Ie,getWheelDelta:Re,fakeStop:Be,skipped:Fe,isExternalTarget:Ue,addListener:Oe,removeListener:ke},He=j.extend({run:function(t,e,n,r){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=de(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=T(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,R(t));return n.equals(r)||this.panTo(r,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=C((e=e||{}).paddingTopLeft||e.padding||[0,0]),r=C(e.paddingBottomRight||e.padding||[0,0]),i=this.getCenter(),o=this.project(i),a=this.project(t),s=this.getPixelBounds(),u=s.getSize().divideBy(2),c=I([s.min.add(n),s.max.subtract(r)]);if(!c.contains(a)){this._enforcingBounds=!0;var l=o.subtract(a),f=C(a.x+l.x,a.y+l.y);(a.xc.max.x)&&(f.x=o.x-l.x,l.x>0?f.x+=u.x-n.x:f.x-=u.x-r.x),(a.yc.max.y)&&(f.y=o.y-l.y,l.y>0?f.y+=u.y-n.y:f.y-=u.y-r.y),this.panTo(this.unproject(f),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),o=n.divideBy(2).round(),a=i.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=r(this._handleGeolocationResponse,this),i=r(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,i,t):navigator.geolocation.getCurrentPosition(n,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=new z(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(e,r.maxZoom?Math.min(i,r.maxZoom):i)}var o={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"===typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ee(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ee(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=te("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new D(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=R(t),n=C(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),u=this.getSize().subtract(n),c=I(this.project(s,r),this.project(a,r)).getSize(),l=dt?this.options.zoomSnap:1,f=u.x/c.x,h=u.y/c.y,p=e?Math.max(f,h):Math.min(f,h);return r=this.getScaleZoom(p,r),l&&(r=Math.round(r/(l/100))*(l/100),r=e?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(i,Math.min(o,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new N(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"===typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var r=n.zoom(t*n.scale(e));return isNaN(r)?1/0:r},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(B(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(C(t),e)},layerPointToLatLng:function(t){var e=C(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(B(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(B(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(R(t))},distance:function(t,e){return this.options.crs.distance(B(t),B(e))},containerPointToLayerPoint:function(t){return C(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return C(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(C(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(t)))},mouseEventToContainerPoint:function(t){return Ie(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=Jt(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Oe(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&dt,ae(t,"leaflet-container"+(wt?" leaflet-touch":"")+(Ot?" leaflet-retina":"")+(X?" leaflet-oldie":"")+(st?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=Qt(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),pe(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ae(t.markerPane,"leaflet-zoom-hide"),ae(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){pe(this._mapPane,new M(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var r=this._zoom!==e;this._moveStart(r,!1)._move(t,e)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var r=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){pe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[o(this._container)]=this;var e=t?ke:Oe;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),dt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){k(this._resizeRequest),this._resizeRequest=T((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,r=[],i="mouseout"===e||"mouseover"===e,a=t.target||t.srcElement,s=!1;a;){if((n=this._targets[o(a)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(i&&!Ue(a,t))break;if(r.push(n),i)break}if(a===this._container)break;a=a.parentNode}return r.length||s||i||!Ue(a,t)||(r=[this]),r},_handleDOMEvent:function(t){if(this._loaded&&!Fe(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||ge(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,r){if("click"===t.type){var i=e({},t);i.type="preclick",this._fireDOMEvent(i,i.type,r)}if(!t._stopped&&(r=(r||[]).concat(this._findEventTargets(t,n))).length){var o=r[0];"contextmenu"===n&&o.listens(n,!0)&&Le(t);var a={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var s=o.getLatLng&&(!o._radius||o._radius<=10);a.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?o.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var u=0;u0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),r=dt?this.options.zoomSnap:1;return r&&(t=Math.round(t/r)*r),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){se(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n))&&(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=te("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=Kt,n=this._proxy.style[e];he(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ee(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();he(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(e),i=this._getCenterOffset(t)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i))&&(T((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),!0)},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ae(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&se(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),T((function(){this._moveEnd(!0)}),this))}}),Ve=E.extend({options:{position:"topright"},initialize:function(t){h(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),r=t._controlCorners[n];return ae(e,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(e,r.firstChild):r.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ee(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),qe=function(t){return new Ve(t)};Ze.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=te("div",e+"control-container",this._container);function r(r,i){var o=e+r+" "+e+i;t[r+i]=te("div",o,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ee(this._controlCorners[t]);ee(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ge=Ve.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,r){return n1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(o(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(t){var e,n=document.createElement("label"),r=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=r):e=this._createRadioElement("leaflet-base-layers_"+o(this),r),this._layerControlInputs.push(e),e.layerId=o(t.layer),Oe(e,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+t.name;var a=document.createElement("div");return n.appendChild(a),a.appendChild(e),a.appendChild(i),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?r.push(e):t.checked||i.push(e);for(o=0;o=0;i--)t=n[i],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&re.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Ye=Ve.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=te("div",e+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,r,i){var o=te("a",n,r);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Ce(o),Oe(o,"click",Ne),Oe(o,"click",i,this),Oe(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";se(this._zoomInButton,e),se(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&ae(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&ae(this._zoomInButton,e)}});Ze.mergeOptions({zoomControl:!0}),Ze.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Ye,this.addControl(this.zoomControl))}));var Ke=Ve.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=te("div","leaflet-control-scale"),n=this.options;return this._addScales(n,"leaflet-control-scale-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=te("div",e,n)),t.imperial&&(this._iScale=te("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,r,i=3.2808399*t;i>5280?(e=i/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),$e=Ve.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){h(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=te("div","leaflet-control-attribution"),Ce(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});Ze.mergeOptions({attributionControl:!0}),Ze.addInitHook((function(){this.options.attributionControl&&(new $e).addTo(this)})),Ve.Layers=Ge,Ve.Zoom=Ye,Ve.Scale=Ke,Ve.Attribution=$e,qe.layers=function(t,e,n){return new Ge(t,e,n)},qe.zoom=function(t){return new Ye(t)},qe.scale=function(t){return new Ke(t)},qe.attribution=function(t){return new $e(t)};var Xe=E.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Xe.addTo=function(t,e){return t.addHandler(e,this),this};var Je,Qe={Events:P},tn=wt?"touchstart mousedown":"mousedown",en={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},nn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},rn=j.extend({options:{clickTolerance:3},initialize:function(t,e,n,r){h(this,r),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Oe(this._dragStartTarget,tn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(rn._dragging===this&&this.finishDrag(),ke(this._dragStartTarget,tn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!oe(this._element,"leaflet-zoom-anim")&&!(rn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches)&&(rn._dragging=this,this._preventOutline&&ge(this._element),ye(),Ut(),!this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=we(this._element);this._startPoint=new M(e.clientX,e.clientY),this._parentScale=_e(n),Oe(document,nn[t.type],this._onMove,this),Oe(document,en[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new M(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)c&&(a=s,c=u);c>r&&(n[a]=1,t(e,n,r,i,a),t(e,n,r,a,o))}(t,r,e,0,n-1);var i,o=[];for(i=0;ie&&(n.push(t[r]),i=r);return ie.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function ln(t,e){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function fn(t,e,n,r){var i,o=e.x,a=e.y,s=n.x-o,u=n.y-a,c=s*s+u*u;return c>0&&((i=((t.x-o)*s+(t.y-a)*u)/c)>1?(o=n.x,a=n.y):i>0&&(o+=s*i,a+=u*i)),s=t.x-o,u=t.y-a,r?s*s+u*u:new M(o,a)}function hn(t){return!y(t[0])||"object"!==typeof t[0][0]&&"undefined"!==typeof t[0][0]}function pn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),hn(t)}var dn={simplify:on,pointToSegmentDistance:an,closestPointOnSegment:function(t,e,n){return fn(t,e,n)},clipSegment:sn,_getEdgeIntersection:un,_getBitCode:cn,_sqClosestPointOnSegment:fn,isFlat:hn,_flat:pn};function mn(t,e,n){var r,i,o,a,s,u,c,l,f,h=[1,4,2,8];for(i=0,c=t.length;i1e-7;u++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),s+=c=Math.PI/2-2*Math.atan(a*e)-s;return new z(s*n,t.x*n/r)}},bn={LonLat:vn,Mercator:gn,SphericalMercator:W},wn=e({},U,{code:"EPSG:3395",projection:gn,transformation:function(){var t=.5/(Math.PI*gn.R);return Z(t,.5,-t,.5)}()}),_n=e({},U,{code:"EPSG:4326",projection:vn,transformation:Z(1/180,1,-1/180,.5)}),xn=e({},F,{projection:vn,transformation:Z(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,r=e.lat-t.lat;return Math.sqrt(n*n+r*r)},infinite:!0});F.Earth=U,F.EPSG3395=wn,F.EPSG3857=V,F.EPSG900913=q,F.EPSG4326=_n,F.Simple=xn;var On=j.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[o(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[o(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ze.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=o(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=o(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&o(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?y(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()e)return a=(r-e)/n,this._map.layerPointToLatLng([o.x-a*(o.x-i.x),o.y-a*(o.y-i.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=B(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new D,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return hn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=hn(t),r=0,i=t.length;r=2&&e[0]instanceof z&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Ln.prototype._setLatLngs.call(this,t),hn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return hn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new M(e,e);if(t=new N(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,o=this._rings.length;it.y!==r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(c=!c);return c||Ln.prototype._containsPoint.call(this,t,!0)}}),In=kn.extend({initialize:function(t,e){h(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,r,i=y(t)?t:t.features;if(i){for(e=0,n=i.length;e0?i:[e.src]}else{y(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted;for(var a=0;ai?(e.height=i+"px",ae(t,"leaflet-popup-scrolled")):se(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();pe(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(Qt(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,r=this._containerWidth,i=new M(this._containerLeft,-n-this._containerBottom);i._add(de(this._container));var o=t.layerPointToContainerPoint(i),a=C(this.options.autoPanPadding),s=C(this.options.autoPanPaddingTopLeft||a),u=C(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),l=0,f=0;o.x+r+u.x>c.x&&(l=o.x+r-c.x+u.x),o.x-l-s.x<0&&(l=o.x-s.x),o.y+n+u.y>c.y&&(f=o.y+n-c.y+u.y),o.y-f-s.y<0&&(f=o.y-s.y),(l||f)&&t.fire("autopanstart").panBy([l,f])}},_onCloseButtonClick:function(t){this._close(),Ne(t)},_getAnchor:function(){return C(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ze.mergeOptions({closePopupOnClick:!0}),Ze.include({openPopup:function(t,e,n){return t instanceof Xn||(t=new Xn(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),On.include({bindPopup:function(t,e){return t instanceof Xn?(h(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new Xn(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Ne(t),e instanceof Mn?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Jn=$n.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){$n.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){$n.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=$n.prototype.getEvents.call(this);return wt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=te("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,r=this._map,i=this._container,o=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(t),s=this.options.direction,u=i.offsetWidth,c=i.offsetHeight,l=C(this.options.offset),f=this._getAnchor();"top"===s?(e=u/2,n=c):"bottom"===s?(e=u/2,n=0):"center"===s?(e=u/2,n=c/2):"right"===s?(e=0,n=c/2):"left"===s?(e=u,n=c/2):a.xthis.options.maxZoom||nr&&this._retainParent(i,o,a,r))},_retainChildren:function(t,e,n,r){for(var i=2*t;i<2*t+2;i++)for(var o=2*e;o<2*e+2;o++){var a=new M(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),u=this._tiles[s];u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&i1)this._setView(t,n);else{for(var f=i.min.y;f<=i.max.y;f++)for(var h=i.min.x;h<=i.max.x;h++){var p=new M(h,f);if(p.z=this._tileZoom,this._isValidTile(p)){var d=this._tiles[this._tileCoordsToKey(p)];d?d.current=!0:a.push(p)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;hn.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return R(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),r=t.scaleBy(n),i=r.add(n);return[e.unproject(r,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new D(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new M(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ee(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ae(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=u,t.onmousemove=u,X&&this.options.opacity<1&&le(t,this.options.opacity),tt&&!et&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&T(r(this._tileReady,this,t,null,o)),pe(o,n),this._tiles[i]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(le(n.el,0),k(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ae(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),X||!this._map._fadeAnimated?T(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new M(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new N(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),er=tr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=h(this,e)).detectRetina&&Ot&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"===typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),tt||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Oe(n,"load",r(this._tileOnLoad,this,e,n)),Oe(n,"error",r(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:Ot?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=r),n["-y"]=r}return m(this._url,e(n,this.options))},_tileOnLoad:function(t,e){X?setTimeout(r(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var r=this.options.errorTileUrl;r&&e.getAttribute("src")!==r&&(e.src=r),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=u,e.onerror=u,e.complete||(e.src=g,ee(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return rt||e.el.setAttribute("src",g),tr.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==g))return tr.prototype._tileReady.call(this,t,e,n)}});function nr(t,e){return new er(t,e)}var rr=er.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var r=e({},this.defaultWmsParams);for(var i in n)i in this.options||(r[i]=n[i]);var o=(n=h(this,n)).detectRetina&&Ot?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,er.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,r=I(n.project(e[0]),n.project(e[1])),i=r.min,o=r.max,a=(this._wmsVersion>=1.3&&this._crs===_n?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=er.prototype.getTileUrl.call(this,t);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});er.WMS=rr,nr.wms=function(t,e){return new rr(t,e)};var ir=On.extend({options:{padding:.1,tolerance:0},initialize:function(t){h(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ae(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),r=de(this._container),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),a=this._map.project(t,e).subtract(o),s=i.multiplyBy(-n).add(r).add(i).subtract(a);dt?he(this._container,s,n):pe(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new N(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),or=ir.extend({getEvents:function(){var t=ir.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ir.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Oe(t,"mousemove",this._onMouseMove,this),Oe(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Oe(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,ee(this._container),ke(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ir.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),r=Ot?2:1;pe(e,t.min),e.width=r*n.x,e.height=r*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Ot&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ir.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[o(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,r=e.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete t._order,delete this._layers[o(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"===typeof t.options.dashArray){var e,n,r=t.options.dashArray.split(/[, ]+/),i=[];for(n=0;n')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),ur={_initContainer:function(){this._container=te("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ir.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=sr("shape");ae(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=sr("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ee(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,r=t.options,i=t._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(e||(e=t._stroke=sr("stroke")),i.appendChild(e),e.weight=r.weight+"px",e.color=r.color,e.opacity=r.opacity,r.dashArray?e.dashStyle=y(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=r.lineCap.replace("butt","flat"),e.joinstyle=r.lineJoin):e&&(i.removeChild(e),t._stroke=null),r.fill?(n||(n=t._fill=sr("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),r=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+r+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){re(t._container)},_bringToBack:function(t){ie(t._container)}},cr=Et?sr:G,lr=ir.extend({getEvents:function(){var t=ir.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=cr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=cr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ee(this._container),ke(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){ir.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),pe(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=cr("path");t.options.className&&ae(e,t.options.className),t.options.interactive&&ae(e,"leaflet-interactive"),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ee(t._path),t.removeInteractiveTarget(t._path),delete this._layers[o(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Y(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),r="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",i=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,i)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){re(t._path)},_bringToBack:function(t){ie(t._path)}});function fr(t){return St||Et?new lr(t):null}Et&&lr.include(ur),Ze.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&ar(t)||fr(t)}});var hr=Nn.extend({initialize:function(t,e){Nn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=R(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});lr.create=cr,lr.pointsToPath=Y,In.geometryToLayer=Dn,In.coordsToLatLng=zn,In.coordsToLatLngs=Bn,In.latLngToCoords=Fn,In.latLngsToCoords=Un,In.getFeature=Wn,In.asFeature=Hn,Ze.mergeOptions({boxZoom:!0});var pr=Xe.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Oe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ke(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ee(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Ut(),ye(),this._startPoint=this._map.mouseEventToContainerPoint(t),Oe(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=te("div","leaflet-zoom-box",this._container),ae(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),n=e.getSize();pe(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ee(this._box),se(this._container,"leaflet-crosshair")),Wt(),ve(),ke(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var e=new D(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ze.addInitHook("addHandler","boxZoom",pr),Ze.mergeOptions({doubleClickZoom:!0});var dr=Xe.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),r=e.options.zoomDelta,i=t.originalEvent.shiftKey?n-r:n+r;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}});Ze.addInitHook("addHandler","doubleClickZoom",dr),Ze.mergeOptions({dragging:!0,inertia:!et,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var mr=Xe.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new rn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ae(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){se(this._map._container,"leaflet-grab"),se(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=R(this._map.options.maxBounds);this._offsetLimit=I(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-e+n)%t+e-n,o=(r+e+n)%t-e-n,a=Math.abs(i+n)0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});Ze.addInitHook("addHandler","scrollWheelZoom",vr),Ze.mergeOptions({tap:!0,tapTolerance:15});var gr=Xe.extend({addHooks:function(){Oe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ke(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Le(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new M(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&ae(n,"leaflet-active"),this._holdTimeout=setTimeout(r((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Oe(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),ke(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&se(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new M(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});!wt||bt&&!st||Ze.addInitHook("addHandler","tap",gr),Ze.mergeOptions({touchZoom:wt&&!et,bounceAtZoomLimits:!0});var br=Xe.extend({addHooks:function(){ae(this._map._container,"leaflet-touch-zoom"),Oe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){se(this._map._container,"leaflet-touch-zoom"),ke(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Oe(document,"touchmove",this._onTouchMove,this),Oe(document,"touchend",this._onTouchEnd,this),Le(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),k(this._animRequest);var s=r(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=T(s,this,!0),Le(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,k(this._animRequest),ke(document,"touchmove",this._onTouchMove,this),ke(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ze.addInitHook("addHandler","touchZoom",br),Ze.BoxZoom=pr,Ze.DoubleClickZoom=dr,Ze.Drag=mr,Ze.Keyboard=yr,Ze.ScrollWheelZoom=vr,Ze.Tap=gr,Ze.TouchZoom=br,t.version="1.7.1",t.Control=Ve,t.control=qe,t.Browser=jt,t.Evented=j,t.Mixin=Qe,t.Util=S,t.Class=E,t.Handler=Xe,t.extend=e,t.bind=r,t.stamp=o,t.setOptions=h,t.DomEvent=We,t.DomUtil=xe,t.PosAnimation=He,t.Draggable=rn,t.LineUtil=dn,t.PolyUtil=yn,t.Point=M,t.point=C,t.Bounds=N,t.bounds=I,t.Transformation=H,t.transformation=Z,t.Projection=bn,t.LatLng=z,t.latLng=B,t.LatLngBounds=D,t.latLngBounds=R,t.CRS=F,t.GeoJSON=In,t.geoJSON=Vn,t.geoJson=qn,t.Layer=On,t.LayerGroup=Tn,t.layerGroup=function(t,e){return new Tn(t,e)},t.FeatureGroup=kn,t.featureGroup=function(t,e){return new kn(t,e)},t.ImageOverlay=Gn,t.imageOverlay=function(t,e,n){return new Gn(t,e,n)},t.VideoOverlay=Yn,t.videoOverlay=function(t,e,n){return new Yn(t,e,n)},t.SVGOverlay=Kn,t.svgOverlay=function(t,e,n){return new Kn(t,e,n)},t.DivOverlay=$n,t.Popup=Xn,t.popup=function(t,e){return new Xn(t,e)},t.Tooltip=Jn,t.tooltip=function(t,e){return new Jn(t,e)},t.Icon=Sn,t.icon=function(t){return new Sn(t)},t.DivIcon=Qn,t.divIcon=function(t){return new Qn(t)},t.Marker=jn,t.marker=function(t,e){return new jn(t,e)},t.TileLayer=er,t.tileLayer=nr,t.GridLayer=tr,t.gridLayer=function(t){return new tr(t)},t.SVG=lr,t.svg=fr,t.Renderer=ir,t.Canvas=or,t.canvas=ar,t.Path=Mn,t.CircleMarker=An,t.circleMarker=function(t,e){return new An(t,e)},t.Circle=Cn,t.circle=function(t,e,n){return new Cn(t,e,n)},t.Polyline=Ln,t.polyline=function(t,e){return new Ln(t,e)},t.Polygon=Nn,t.polygon=function(t,e){return new Nn(t,e)},t.Rectangle=hr,t.rectangle=function(t,e){return new hr(t,e)},t.Map=Ze,t.map=function(t,e){return new Ze(t,e)};var wr=window.L;t.noConflict=function(){return window.L=wr,this},window.L=t}(e)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return S})),n.d(e,"d",(function(){return P})),n.d(e,"c",(function(){return m})),n.d(e,"f",(function(){return y})),n.d(e,"e",(function(){return d}));var r=n(14);function i(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,i=t.length;r=0;h--){var p=a[h];"."===p?o(a,h):".."===p?(o(a,h),f++):f&&(o(a,h),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var d=a.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"===typeof e||"object"===typeof n){var r=s(e),i=s(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},c=n(33);function l(t){return"/"===t.charAt(0)?t:"/"+t}function f(t){return"/"===t.charAt(0)?t.substr(1):t}function h(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function p(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function d(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(t,e,n,i){var o;"string"===typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=Object(r.a)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function y(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&u(t.state,e.state)}function v(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"===typeof t?t(e,n):t;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;re?n.splice(e,n.length-e,r):n.push(r),f({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=m(t,e,h(),w.location);l.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=w.index+t;return e>=0&&et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(i.a)(t),f=l.getUTCDay(),h=(f2&&void 0!==arguments[2]?arguments[2]:{};if(!e.languages||!e.languages.length)return o("i18n.languages were undefined or empty",e.languages),!0;var r=e.languages[0],i=!!e.options&&e.options.fallbackLng,a=e.languages[e.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,t))&&(!!e.hasResourceBundle(r,t)||(!e.services.backendConnector.backend||!(!s(r,t)||i&&!s(a,t))))}function u(t){return t.displayName||t.name||("string"===typeof t&&t.length>0?t:"Unknown")}},function(t,e,n){var r=n(162),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(11),i=n(2);function o(t){Object(i.a)(1,arguments);var e=1,n=Object(r.a)(t),o=n.getUTCDay(),a=(o=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(s+1,0,h),p.setUTCHours(0,0,0,0);var d=Object(o.a)(p,e),m=new Date(0);m.setUTCFullYear(s,0,h),m.setUTCHours(0,0,0,0);var y=Object(o.a)(m,e);return n.getTime()>=d.getTime()?s+1:n.getTime()>=y.getTime()?s:s-1}},function(t,e,n){var r=n(58),i=n(54);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},function(t,e,n){var r=n(186),i=n(429),o=n(179),a=n(92),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(27),i=n(20),o=n(17),a=n(22),s=n(0),u=n.n(s),c=n(38),l=n(14),f=function(t){function e(e){var n;return n=t.call(this,e)||this,Object(a.a)(Object(i.a)(n),"contextValue",void 0),Object(a.a)(Object(i.a)(n),"leafletElement",void 0),n.leafletElement=n.createLeafletElement(e),n}Object(o.a)(e,t);var n=e.prototype;return n.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},n.updateLeafletElement=function(t,e){},n.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.layerContainer.addLayer(this.leafletElement)},n.componentDidUpdate=function(e){if(t.prototype.componentDidUpdate.call(this,e),this.props.attribution!==e.attribution){var n=this.props.leaflet.map;null!=n&&null!=n.attributionControl&&(n.attributionControl.removeAttribution(e.attribution),n.attributionControl.addAttribution(this.props.attribution))}this.updateLeafletElement(e,this.props)},n.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.layerContainer.removeLayer(this.leafletElement)},n.render=function(){var t=this.props.children;return null==t?null:null==this.contextValue?u.a.createElement(s.Fragment,null,t):u.a.createElement(c.a,{value:this.contextValue},t)},Object(r.a)(e,[{key:"layerContainer",get:function(){return this.props.leaflet.layerContainer||this.props.leaflet.map}}]),e}(function(t){function e(){return t.apply(this,arguments)||this}return Object(o.a)(e,t),e.prototype.getOptions=function(t){return null!=t.pane?t:null!=t.leaflet&&null!=t.leaflet.pane?Object(l.a)(Object(l.a)({},t),{},{pane:t.leaflet.pane}):t},e}(n(108).a))},function(t,e,n){var r=n(50),i=n(401);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},function(t,e,n){var r=n(456)();t.exports=r},function(t,e){function n(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(45).Symbol;t.exports=r},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n0&&void 0!==arguments[0]?arguments[0]:r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.type,a=i.payload;if(o===c.b){var s=a.location,u=a.action,l=a.isFirstRendering;return l?t:n(t,{location:e(x(s)),action:u})}return t}}};function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S={fromJS:function(t){return t},getIn:function(t,e){if(!t)return t;var n=e.length;if(n){for(var r=t,i=0;i2&&void 0!==arguments[2]&&arguments[2];r.inTimeTravelling?r.inTimeTravelling=!1:a(t,e,n)};return r.unlisten=o.listen(s),t.noInitialPop||s(o.location,o.action,!0),r}var r,o,a;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(n,t),r=n,(o=[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var t=this.props,e=t.history,n=t.children;return i.a.createElement(u.c,{history:e},n)}}])&&d(r.prototype,o),a&&d(r,a),n}(r.PureComponent);n.propTypes={store:a.a.shape({getState:a.a.func.isRequired,subscribe:a.a.func.isRequired}).isRequired,history:a.a.shape({action:a.a.string.isRequired,listen:a.a.func.isRequired,location:a.a.object.isRequired,push:a.a.func.isRequired}).isRequired,basename:a.a.string,children:a.a.oneOfType([a.a.func,a.a.node]),onLocationChanged:a.a.func.isRequired,noInitialPop:a.a.bool};var o=function(t){var e=t.context||s.b;if(null==e)throw"Please upgrade to react-redux v6";return i.a.createElement(e.Consumer,null,(function(e){var r=e.store;return i.a.createElement(n,p({store:r},t))}))};return o.propTypes={context:a.a.object},Object(s.c)(null,(function(t){return{onLocationChanged:function(e,n,r){return t(Object(c.c)(e,n,r))}}}))(o)}(S),P=O(S),j=f(S);j.getLocation,j.getAction,j.getHash,j.getSearch,j.createMatchSelector},function(t,e,n){var r=n(276);t.exports=function(t,e){if(null==t)return{};var n,i,o=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}},function(t,e,n){"use strict";var r=n(42),i=n(22);function o(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,t),this.init(e,n)}return Object(s.a)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||p,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1?e-1:0),r=1;r-1?t.replace(/###/g,"."):t}function i(){return!t||"string"===typeof t}for(var o="string"!==typeof e?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),t=t[a]}return i()?{}:{obj:t,k:r(o.shift())}}function w(t,e,n){var r=b(t,e,Object);r.obj[r.k]=n}function _(t,e){var n=b(t,e),r=n.obj,i=n.k;if(r)return r[i]}function x(t,e,n){var r=_(t,n);return void 0!==r?r:_(e,n)}function O(t,e,n){for(var r in e)"__proto__"!==r&&(r in t?"string"===typeof t[r]||t[r]instanceof String||"string"===typeof e[r]||e[r]instanceof String?n&&(t[r]=e[r]):O(t[r],e[r],n):t[r]=e[r]);return t}function T(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var k={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function S(t){return"string"===typeof t?t.replace(/[&<>"'\/]/g,(function(t){return k[t]})):t}var E="undefined"!==typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,P=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Object(a.a)(this,e),n=c(this,l(e).call(this)),E&&m.call(Object(u.a)(n)),n.data=t||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return h(e,t),Object(s.a)(e,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[t,e];return n&&"string"!==typeof n&&(o=o.concat(n)),n&&"string"===typeof n&&(o=o.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(o=t.split(".")),_(this.data,o)}},{key:"addResource",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[t,e];n&&(a=a.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(r=e,e=(a=t.split("."))[1]),this.addNamespaces(e),w(this.data,a,r),i.silent||this.emit("added",t,e,n,r)}},{key:"addResources",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!==typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(t,e,i,n[i],{silent:!0});r.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[t,e];t.indexOf(".")>-1&&(r=n,n=e,e=(s=t.split("."))[1]),this.addNamespaces(e);var u=_(this.data,s)||{};r?O(u,n,i):u=o({},u,n),w(this.data,s,u),a.silent||this.emit("added",t,e,n)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?o({},{},this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"toJSON",value:function(){return this.data}}]),e}(m),j={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,i){var o=this;return t.forEach((function(t){o.processors[t]&&(e=o.processors[t].process(e,n,r,i))})),e}},M={},A=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(this,e),n=c(this,l(e).call(this)),E&&m.call(Object(u.a)(n)),g(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,Object(u.a)(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return h(e,t),Object(s.a)(e,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,i=e.ns||this.options.defaultNS;if(n&&t.indexOf(n)>-1){var o=t.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:t,namespaces:i};var a=t.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),t=a.join(r)}return"string"===typeof i&&(i=[i]),{key:t,namespaces:i}}},{key:"translate",value:function(t,e,n){var i=this;if("object"!==Object(r.a)(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),void 0===t||null===t)return"";Array.isArray(t)||(t=[String(t)]);var a=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,s=this.extractFromKey(t[t.length-1],e),u=s.key,c=s.namespaces,l=c[c.length-1],f=e.lng||this.language,h=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(h){var p=e.nsSeparator||this.options.nsSeparator;return l+p+u}return u}var d=this.resolve(t,e),m=d&&d.res,y=d&&d.usedKey||u,v=d&&d.exactUsedKey||u,g=Object.prototype.toString.apply(m),b=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!==typeof m&&"boolean"!==typeof m&&"number"!==typeof m;if(_&&m&&x&&b.indexOf(g)<0&&("string"!==typeof w||"[object Array]"!==g)){if(!e.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,m,e):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(a){var O="[object Array]"===g,T=O?[]:{},k=O?v:y;for(var S in m)if(Object.prototype.hasOwnProperty.call(m,S)){var E="".concat(k).concat(a).concat(S);T[S]=this.translate(E,o({},e,{joinArrays:!1,ns:c})),T[S]===E&&(T[S]=m[S])}m=T}}else if(_&&"string"===typeof w&&"[object Array]"===g)(m=m.join(w))&&(m=this.extendTranslation(m,t,e,n));else{var P=!1,j=!1;if(!this.isValidLookup(m)&&void 0!==e.defaultValue){if(P=!0,void 0!==e.count){var M=this.pluralResolver.getSuffix(f,e.count);m=e["defaultValue".concat(M)]}m||(m=e.defaultValue)}this.isValidLookup(m)||(j=!0,m=u);var A=e.defaultValue&&e.defaultValue!==m&&this.options.updateMissing;if(j||P||A){if(this.logger.log(A?"updateKey":"missingKey",f,l,u,A?e.defaultValue:m),a){var C=this.resolve(u,o({},e,{keySeparator:!1}));C&&C.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var I=0;I1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof t&&(t=[t]),t.forEach((function(t){if(!a.isValidLookup(e)){var u=a.extractFromKey(t,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!==typeof s.count,h=void 0!==s.context&&"string"===typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(t){a.isValidLookup(e)||(o=t,!M["".concat(p[0],"-").concat(t)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(M["".concat(p[0],"-").concat(t)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(e)){i=n;var o,u,l=c,p=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,c,n,t,s);else f&&(o=a.pluralResolver.getSuffix(n,s.count)),f&&h&&p.push(l+o),h&&p.push(l+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(l+=o);for(;u=p.pop();)a.isValidLookup(e)||(r=u,e=a.getResource(n,t,u,s))}})))}))}})),{res:e,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,r):this.resourceStore.getResource(t,e,n,r)}}]),e}(m);function C(t){return t.charAt(0).toUpperCase()+t.slice(1)}var L=function(){function t(e){Object(a.a)(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return Object(s.a)(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"===typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(t){return t.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=C(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,n=this;return t?(t.forEach((function(t){if(!e){var r=n.formatLanguageCode(t);n.options.supportedLngs&&!n.isSupportedCode(r)||(e=r)}})),!e&&this.options.supportedLngs&&t.forEach((function(t){if(!e){var r=n.getLanguagePartFromCode(t);if(n.isSupportedCode(r))return e=r;e=n.options.supportedLngs.find((function(t){if(0===t.indexOf(r))return t}))}})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("string"===typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,r=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],o=function(t){t&&(n.isSupportedCode(t)?i.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"===typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"===typeof t&&o(this.formatLanguageCode(t)),r.forEach((function(t){i.indexOf(t)<0&&o(n.formatLanguageCode(t))})),i}}]),t}(),N=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],I={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function D(){var t={};return N.forEach((function(e){e.lngs.forEach((function(n){t[n]={numbers:e.nr,plurals:I[e.fc]}}))})),t}var R=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,t),this.languageUtils=e,this.options=n,this.logger=d.create("pluralResolver"),this.rules=D()}return Object(s.a)(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=this.getRule(t);return e&&e.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var n=this,r=[],i=this.getRule(t);return i?(i.numbers.forEach((function(i){var o=n.getSuffix(t,i);r.push("".concat(e).concat(o))})),r):r}},{key:"getSuffix",value:function(t,e){var n=this,r=this.getRule(t);if(r){var i=r.noAbs?r.plurals(e):r.plurals(Math.abs(e)),o=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"===typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),t}(),z=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,t),this.logger=d.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return Object(s.a)(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:S,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?T(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?T(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?T(e.nestingPrefix):e.nestingPrefixEscaped||T("$t("),this.nestingSuffix=e.nestingSuffix?T(e.nestingSuffix):e.nestingSuffixEscaped||T(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,r){var i,o,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(t){return t.replace(/\$/g,"$$$$")}var l=function(t){if(t.indexOf(s.formatSeparator)<0){var i=x(e,u,t);return s.alwaysFormat?s.format(i,void 0,n):i}var o=t.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(x(e,u,a),c,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return c(t)}},{regex:this.regexp,safeValue:function(t){return s.escapeValue?c(s.escape(t)):c(t)}}].forEach((function(e){for(a=0;i=e.regex.exec(t);){if(void 0===(o=l(i[1].trim())))if("function"===typeof f){var n=f(t,i,r);o="string"===typeof n?n:""}else{if(h){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),o=""}else"string"===typeof o||s.useRawValueToEscape||(o=v(o));if(t=t.replace(i[0],e.safeValue(o)),e.regex.lastIndex=0,++a>=s.maxReplaces)break}})),t}},{key:"nest",value:function(t,e){var n,r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=o({},a);function u(t,e){var n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;var r=t.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);t=r[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),e&&(s=o({},e,s))}catch(a){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),a),"".concat(t).concat(n).concat(i)}return delete s.defaultValue,t}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(t);){var c=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(t){return t.trim()}));n[1]=f.shift(),c=f,l=!0}if((r=e(u.call(this,n[1].trim(),s),s))&&n[0]===t&&"string"!==typeof r)return r;"string"!==typeof r&&(r=v(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),r=""),l&&(r=c.reduce((function(t,e){return i.format(t,e,a.lng,a)}),r.trim())),t=t.replace(n[0],r),this.regexp.lastIndex=0}return t}}]),t}();var B=function(t){function e(t,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(a.a)(this,e),i=c(this,l(e).call(this)),E&&m.call(Object(u.a)(i)),i.backend=t,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return h(e,t),Object(s.a)(e,[{key:"queueLoad",value:function(t,e,n,r){var i=this,o=[],a=[],s=[],u=[];return t.forEach((function(t){var r=!0;e.forEach((function(e){var s="".concat(t,"|").concat(e);!n.reload&&i.store.hasResourceBundle(t,e)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?a.indexOf(s)<0&&a.push(s):(i.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),u.indexOf(e)<0&&u.push(e)))})),r||s.push(t)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(t,e,n){var r=t.split("|"),i=r[0],o=r[1];e&&this.emit("failedLoading",i,o,e),n&&this.store.addResourceBundle(i,o,n),this.state[t]=e?-1:2;var a={};this.queue.forEach((function(n){!function(t,e,n,r){var i=b(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}(n.loaded,[i],o),function(t,e){for(var n=t.indexOf(e);-1!==n;)t.splice(n,1),n=t.indexOf(e)}(n.pending,t),e&&n.errors.push(e),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(t){a[t]||(a[t]=[]),n.loaded[t].length&&n.loaded[t].forEach((function(e){a[t].indexOf(e)<0&&a[t].push(e)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[n](t,e,(function(s,u){s&&u&&i<5?setTimeout((function(){r.read.call(r,t,e,n,i+1,2*o,a)}),o):a(s,u)})):a(null,{})}},{key:"prepareLoading",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"===typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"===typeof e&&(e=[e]);var o=this.queueLoad(t,e,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(t){n.loadOne(t)}))}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&e.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&e.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),e.loaded(t,r,a)}))}},{key:"saveMissing",value:function(t,e,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==n&&null!==n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,e,n,r,null,o({},a,{isUpdate:i})),t&&t[0]&&this.store.addResource(t[0],e,n,r))}}]),e}(m);function F(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===Object(r.a)(t[1])&&(e=t[1]),"string"===typeof t[1]&&(e.defaultValue=t[1]),"string"===typeof t[2]&&(e.tDescription=t[2]),"object"===Object(r.a)(t[2])||"object"===Object(r.a)(t[3])){var n=t[3]||t[2];Object.keys(n).forEach((function(t){e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function U(t){return"string"===typeof t.ns&&(t.ns=[t.ns]),"string"===typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"===typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function W(){}var H=new(function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Object(a.a)(this,e),t=c(this,l(e).call(this)),E&&m.call(Object(u.a)(t)),t.options=U(n),t.services={},t.logger=d,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),c(t,Object(u.a)(t));setTimeout((function(){t.init(n,r)}),0)}return t}return h(e,t),Object(s.a)(e,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(t){return t?"function"===typeof t?new t:t:null}if("function"===typeof e&&(n=e,e={}),e.whitelist&&!e.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),e.nonExplicitWhitelist&&!e.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=o({},F(),this.options,U(e)),this.format=this.options.interpolation.format,n||(n=W),!this.options.isClone){this.modules.logger?d.init(r(this.modules.logger),this.options):d.init(null,this.options);var i=new L(this.options);this.store=new P(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new R(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new z(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new B(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:W,r=n,i="string"===typeof t?t:this.language;if("function"===typeof t&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){o.indexOf(t)<0&&o.push(t)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(t){return a(t)}))}this.options.preload&&this.options.preload.forEach((function(t){return a(t)})),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(t,e,n){var r=y();return t||(t=this.languages),e||(e=this.options.ns),n||(n=W),this.services.backendConnector.reload(t,e,(function(t){r.resolve(),n(t)})),r}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&j.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var r=y();this.emit("languageChanging",t);var i=function(t){var i="string"===typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(t){!function(t,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),e&&e(t,(function(){return n.t.apply(n,arguments)}))}(t,i)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(t):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(t,e){var n=this,i=function t(e,i){var a;if("object"!==Object(r.a)(i)){for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,t)||(!this.services.backendConnector.backend||!(!a(r,t)||i&&!a(o,t)))}},{key:"loadNamespaces",value:function(t,e){var n=this,r=y();return this.options.ns?("string"===typeof t&&(t=[t]),t.forEach((function(t){n.options.ns.indexOf(t)<0&&n.options.ns.push(t)})),this.loadResources((function(t){r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=y();"string"===typeof t&&(t=[t]);var r=this.options.preload||[],i=t.filter((function(t){return r.indexOf(t)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(t){n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){if(t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),!t)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(t,n)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,i=o({},this.options,n,{isClone:!0}),a=new e(i),s=["store","services","language"];return s.forEach((function(e){a[e]=t[e]})),a.services=o({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new A(a.services,a.options),a.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0?r:n)(t)}},function(t,e,n){var r=n(337),i=n(338),o=n(339),a=n(340),s=n(341);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0?"in "+i:i+" ago":i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function i(t,e,n,i){return r[t]}},function(t,e,n){"use strict";var r=n(36);var i={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Object(r.a)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Object(r.a)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Object(r.a)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Object(r.a)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Object(r.a)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};e.a=i},function(t,e,n){"use strict";var r=n(99),i=n(37),o={ordinalNumber:Object(r.a)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Object(i.a)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Object(i.a)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Object(i.a)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Object(i.a)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Object(i.a)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};e.a=o},function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return{value:u=i.valueCallback?i.valueCallback(u):u,rest:r.slice(a.length)}}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));function r(t){return t.getTime()%6e4}function i(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());return e.setSeconds(0,0),6e4*n+(n>0?(6e4+r(e))%6e4:r(e))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(10),i=n(102),o=n(2);function a(t,e){Object(o.a)(2,arguments);var n=Object(r.a)(e);return Object(i.a)(t,-n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(10),i=n(11),o=n(2);function a(t,e){Object(o.a)(2,arguments);var n=Object(i.a)(t).getTime(),a=Object(r.a)(e);return new Date(n+a)}},function(t,e,n){"use strict";function r(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function i(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}var o={p:i,P:function(t,e){var n,o=t.match(/(P+)(p+)?/),a=o[1],s=o[2];if(!s)return r(t,e);switch(a){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",r(a,e)).replace("{{time}}",i(s,e))}};e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(11),i=n(46),o=n(2);function a(t){Object(o.a)(1,arguments);var e=Object(r.a)(t),n=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=Object(i.a)(a),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var c=Object(i.a)(u);return e.getTime()>=s.getTime()?n+1:e.getTime()>=c.getTime()?n:n-1}},function(t,e,n){var r=n(271),i=n(272),o=n(273),a=n(275);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()}},function(t,e,n){"use strict";var r=s(n(421)),i=s(n(426)),o=s(n(185)),a=s(n(182));function s(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},function(t,e,n){var r=n(451),i=n(452),o=n(50),a=n(16),s=n(92);t.exports=function(t,e,n){var u=a(t)?r:i;return n&&s(t,e,n)&&(e=void 0),u(t,o(e,3))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(14),i=n(20),o=n(17),a=n(22),s=n(0),u=/^on(.+)$/i,c=function(t){function e(e){var n;return n=t.call(this,e)||this,Object(a.a)(Object(i.a)(n),"_leafletEvents",void 0),Object(a.a)(Object(i.a)(n),"leafletElement",void 0),n._leafletEvents=n.extractLeafletEvents(e),n}Object(o.a)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},n.componentDidUpdate=function(t){this._leafletEvents=this.bindLeafletEvents(this.extractLeafletEvents(this.props),this._leafletEvents)},n.componentWillUnmount=function(){var t=this,e=this.leafletElement;e&&Object.keys(this._leafletEvents).forEach((function(n){e.off(n,t._leafletEvents[n])}))},n.extractLeafletEvents=function(t){return Object.keys(t).reduce((function(e,n){u.test(n)&&(null!=t[n]&&(e[n.replace(u,(function(t,e){return e.toLowerCase()}))]=t[n]));return e}),{})},n.bindLeafletEvents=function(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=this.leafletElement;if(null==n||null==n.on)return{};var i=Object(r.a)({},e);return Object.keys(e).forEach((function(r){null!=t[r]&&e[r]===t[r]||(delete i[r],n.off(r,e[r]))})),Object.keys(t).forEach((function(r){null!=e[r]&&t[r]===e[r]||(i[r]=t[r],n.on(r,t[r]))})),i},n.fireLeafletEvent=function(t,e){var n=this.leafletElement;n&&n.fire(t,e)},e}(s.Component)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(10),i=n(11),o=n(2);function a(t,e){Object(o.a)(2,arguments);var n=Object(i.a)(t),a=Object(r.a)(e);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),u=new Date(n.getTime());u.setMonth(n.getMonth()+a+1,0);var c=u.getDate();return s>=c?u:(n.setFullYear(u.getFullYear(),u.getMonth(),s),n)}},function(t,e,n){"use strict";var r=n(95),i=n(35),o={date:Object(i.a)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Object(i.a)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Object(i.a)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a=n(96),s=n(97),u=n(98),c={code:"en-US",formatDistance:r.a,formatLong:o,formatRelative:a.a,localize:s.a,match:u.a,options:{weekStartsOn:0,firstWeekContainsDate:1}};e.a=c},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(11),i=n(40),o=n(10),a=n(68),s=n(2);function u(t,e){Object(s.a)(1,arguments);var n=e||{},r=n.locale,u=r&&r.options&&r.options.firstWeekContainsDate,c=null==u?1:Object(o.a)(u),l=null==n.firstWeekContainsDate?c:Object(o.a)(n.firstWeekContainsDate),f=Object(a.a)(t,e),h=new Date(0);h.setUTCFullYear(f,0,l),h.setUTCHours(0,0,0,0);var p=Object(i.a)(h,e);return p}function c(t,e){Object(s.a)(1,arguments);var n=Object(r.a)(t),o=Object(i.a)(n,e).getTime()-u(n,e).getTime();return Math.round(o/6048e5)+1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(11),i=n(46),o=n(104),a=n(2);function s(t){Object(a.a)(1,arguments);var e=Object(o.a)(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Object(i.a)(n);return r}function u(t){Object(a.a)(1,arguments);var e=Object(r.a)(t),n=Object(i.a)(e).getTime()-s(e).getTime();return Math.round(n/6048e5)+1}},function(t,e,n){var r,i=n(443),o=n(444),a=n(446),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;t.exports=function(t,e){function n(t,o,u){if(r++>100)throw r=0,new Error("Call stack overflow for "+u);if(""===t)throw new Error(o+"(): '"+u+"' must contain a non-whitespace string");var c=function(t){var e=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(t);for(;i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(e.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(t));return e}(t=function(t,e){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,o="",a=t;for(;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var u=i("(",")",a.substring([0].index));if(""===u.body)throw new Error("'"+t+"' must contain a non-whitespace string");var c=n(u.body,"",e);o+=u.pre+c,a=u.post}return o+a}(t,u));if(c.length>1||t.indexOf("var(")>-1)return o+"("+t+")";var l=c[0]||"";"%"===l&&(t=t.replace(/\b[0-9\.]+%/g,(function(t){return.01*parseFloat(t.slice(0,-1))})));var f,h=t.replace(new RegExp(l,"gi"),"");try{f=a.eval(h)}catch(p){return o+"("+t+")"}return"%"===l&&(f*=100),(o.length||"%"===l)&&(f=Math.round(f*e)/e),f+=l}return r=0,e=Math.pow(10,void 0===e?5:e),t=t.replace(/\n+/g," "),o(t,/((?:\-[a-z]+\-)?calc)\(/,n)}},,function(t,e,n){var r=n(82),i=n(149),o=n(116),a=Object.defineProperty;e.f=n(63)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(62);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(310),i=n(121);t.exports=function(t){return r(i(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(18),i=n(121),o=n(53),a=n(124),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(t,e,n){var i={},s=o((function(){return!!a[t]()||"\u200b\x85"!="\u200b\x85"[t]()})),u=i[t]=s?e(f):a[t];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},f=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=l},function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(t,e){t.exports=function(t,e){return t===e||t!==t&&e!==e}},function(t,e,n){var r=n(59)(n(45),"Map");t.exports=r},function(t,e,n){var r=n(351),i=n(358),o=n(360),a=n(361),s=n(362);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(175),i=n(90);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n=e||n<0||y&&t-d>=l}function _(){var t=i();if(w(t))return x(t);h=setTimeout(_,function(t){var n=e-(t-p);return y?s(n,l-(t-d)):n}(t))}function x(t){return h=void 0,v&&u?g(t):(u=c=void 0,f)}function O(){var t=i(),n=w(t);if(u=arguments,c=this,p=t,n){if(void 0===h)return b(p);if(y)return clearTimeout(h),h=setTimeout(_,e),g(p)}return void 0===h&&(h=setTimeout(_,e)),f}return e=o(e)||0,r(n)&&(m=!!n.leading,l=(y="maxWait"in n)?a(o(n.maxWait)||0,e):l,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==h&&clearTimeout(h),d=0,u=p=c=h=void 0},O.flush=function(){return void 0===h?f:x(i())},O}},function(t,e,n){"use strict";(function(t,r){var i,o=n(213);i="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t?t:r;var a=Object(o.a)(i);e.a=a}).call(this,n(52),n(269)(t))},function(t,e,n){"use strict";(function(t){var r=n(0),i=n.n(r),o=n(17),a=n(1),s=n.n(a),u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:{};function c(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var l=i.a.createContext||function(t,e){var n,i,a="__create-react-context-"+function(){var t="__global_unique_id__";return u[t]=(u[t]||0)+1}()+"__",l=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=c(e.props.value),e}Object(o.a)(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[a]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,i=t.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof e?e(r,i):1073741823,0!==(n|=0)&&this.emitter.set(t.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);l.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!==((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}Object(o.a)(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(r.Component);return f.contextTypes=((i={})[a]=s.a.object,i),{Provider:l,Consumer:f}};e.a=l}).call(this,n(52))},function(t,e,n){var r=n(277);t.exports=p,t.exports.parse=o,t.exports.compile=function(t,e){return s(o(t,e),e)},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,a=0,s="",l=e&&e.delimiter||"/";null!=(n=i.exec(t));){var f=n[0],h=n[1],p=n.index;if(s+=t.slice(a,p),a=p+f.length,h)s+=h[1];else{var d=t[a],m=n[2],y=n[3],v=n[4],g=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var _=null!=m&&null!=d&&d!==m,x="+"===b||"*"===b,O="?"===b||"*"===b,T=n[2]||l,k=v||g;r.push({name:y||o++,prefix:m||"",delimiter:T,optional:O,repeat:x,partial:_,asterisk:!!w,pattern:k?c(k):w?".*":"[^"+u(T)+"]+?"})}}return a1)for(var n=1;n-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){var r=n(309),i=n(151),o=n(120),a=n(116),s=n(83),u=n(149),c=Object.getOwnPropertyDescriptor;e.f=n(63)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(83),i=n(120),o=n(312)(!1),a=n(159)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(154)("keys"),i=n(153);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(119);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(62),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(52))},function(t,e,n){var r=n(85),i=n(342),o=n(343),a=n(344),s=n(345),u=n(346);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},function(t,e,n){var r=n(129),i=n(166),o=n(130);t.exports=function(t,e,n,a,s,u){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(t),p=u.get(e);if(h&&p)return h==e&&p==t;var d=-1,m=!0,y=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++d-1}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o=0||(i[n]=t[n]);return i}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(t,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function c(){}u.contextTypes={transitionGroup:r.object},u.childContextTypes={transitionGroup:function(){}},u.propTypes={},u.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:c,onEntering:c,onEntered:c,onExit:c,onExiting:c,onExited:c},u.UNMOUNTED=0,u.EXITED=1,u.ENTERING=2,u.ENTERED=3,u.EXITING=4;var l=(0,a.polyfill)(u);e.default=l},function(t,e,n){"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function i(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function o(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"===typeof e.componentWillMount?n="componentWillMount":"function"===typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof e.componentWillUpdate?s="componentWillUpdate":"function"===typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=t.displayName||t.name,c="function"===typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=i),"function"===typeof e.getSnapshotBeforeUpdate){if("function"!==typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=o;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,r)}}return t}n.r(e),n.d(e,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(t,e,n){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0;var r;(r=n(1))&&r.__esModule;e.timeoutsShape=null;e.classNamesShape=null},function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=s(n(1)),i=s(n(0)),o=n(183),a=n(427);function s(t){return t&&t.__esModule?t:{default:t}}function u(){return(u=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,["component","childFactory"]),o=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?o:i.default.createElement(e,r,o)},r}(i.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var h=(0,o.polyfill)(f);e.default=h,t.exports=e.default},function(t,e,n){var r=n(167),i=n(428);t.exports=function t(e,n,o,a,s){var u=-1,c=e.length;for(o||(o=i),s||(s=[]);++u0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(t,e,n){var r=n(91),i=n(64);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},function(t,e,n){var r=n(25),i=n(65),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},function(t,e,n){var r=n(65);t.exports=function(t,e,n){for(var i=-1,o=t.length;++i(u=(a=Math.ceil(h/7))>u?a+1:u+1)&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((u=c.length)-(o=l.length)<0&&(o=u,r=l,l=c,c=r),n=0;o;)n=(c[--o]=c[o]+l[o]+n)/d|0,c[o]%=d;for(n&&(c.unshift(n),++i),u=c.length;0==c[--u];)c.pop();return e.d=c,e.e=i,s?E(e,h):e}function g(t,e,n){if(t!==~~t||tn)throw Error(c+t)}function b(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;et.e^o.s<0?1:-1;for(e=0,n=(r=o.d.length)<(i=t.d.length)?r:i;et.d[e]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this,e=t.d.length-1,n=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},y.dividedBy=y.div=function(t){return w(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return E(w(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return x(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return this.cmp(t)<0},y.lessThanOrEqualTo=y.lte=function(t){return this.cmp(t)<1},y.logarithm=y.log=function(t){var e,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(o))throw Error(u+"NaN");if(n.s<1)throw Error(u+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(s=!1,e=w(k(n,a),k(t,a),a),s=!0,E(e,i))},y.minus=y.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?P(e,t):v(e,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(u+"NaN");return n.s?(s=!1,e=w(n,t,0,1).times(t),s=!0,n.minus(e)):E(new r(n),i)},y.naturalExponential=y.exp=function(){return _(this)},y.naturalLogarithm=y.ln=function(){return k(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?v(e,t):P(e,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(c+t);if(e=x(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},y.squareRoot=y.sqrt=function(){var t,e,n,r,i,o,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(u+"NaN")}for(t=x(c),s=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=b(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),r=new l(e=i==1/0?"1e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(i.toString()),i=a=(n=l.precision)+3;;)if(r=(o=r).plus(w(c,o,a+2)).times(.5),b(o.d).slice(0,a)===(e=b(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(E(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=e)break;a+=4}return s=!0,E(r,n)},y.times=y.mul=function(t){var e,n,r,i,o,a,u,c,l,f=this,h=f.constructor,p=f.d,m=(t=new h(t)).d;if(!f.s||!t.s)return new h(0);for(t.s*=f.s,n=f.e+t.e,(c=p.length)<(l=m.length)&&(o=p,p=m,m=o,a=c,c=l,l=a),o=[],r=a=c+l;r--;)o.push(0);for(r=l;--r>=0;){for(e=0,i=c+r;i>r;)u=o[i]+m[r]*p[i-r-1]+e,o[i--]=u%d|0,e=u/d|0;o[i]=(o[i]+e)%d|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,s?E(t,h.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(g(t,0,1e9),void 0===e?e=r.rounding:g(e,0,8),E(n,t+x(n)+1,e))},y.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=j(r,!0):(g(t,0,1e9),void 0===e?e=i.rounding:g(e,0,8),n=j(r=E(new i(r),t+1,e),!0,t+1)),n},y.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?j(i):(g(t,0,1e9),void 0===e?e=o.rounding:g(e,0,8),n=j((r=E(new o(i),t+x(i)+1,e)).abs(),!1,t+x(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var t=this,e=t.constructor;return E(new e(t),x(t)+1,e.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,n,r,i,a,c,l=this,h=l.constructor,p=+(t=new h(t));if(!t.s)return new h(o);if(!(l=new h(l)).s){if(t.s<1)throw Error(u+"Infinity");return l}if(l.eq(o))return l;if(r=h.precision,t.eq(o))return E(l,r);if(c=(e=t.e)>=(n=t.d.length-1),a=l.s,c){if((n=p<0?-p:p)<=9007199254740991){for(i=new h(o),e=Math.ceil(r/7+4),s=!1;n%2&&M((i=i.times(l)).d,e),0!==(n=f(n/2));)M((l=l.times(l)).d,e);return s=!0,t.s<0?new h(o).div(i):E(i,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,l.s=1,s=!1,i=t.times(k(l,r+12)),s=!0,(i=_(i)).s=a,i},y.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?r=j(i,(n=x(i))<=o.toExpNeg||n>=o.toExpPos):(g(t,1,1e9),void 0===e?e=o.rounding:g(e,0,8),r=j(i=E(new o(i),t,e),t<=(n=x(i))||n<=o.toExpNeg,t)),r},y.toSignificantDigits=y.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(g(t,1,1e9),void 0===e?e=n.rounding:g(e,0,8)),E(new n(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=this,e=x(t),n=t.constructor;return j(t,e<=n.toExpNeg||e>=n.toExpPos)};var w=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%d|0,r=n/d|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]1;)t.shift()}return function(r,i,o,a){var s,c,l,f,h,p,m,y,v,g,b,w,_,O,T,k,S,P,j=r.constructor,M=r.s==i.s?1:-1,A=r.d,C=i.d;if(!r.s)return new j(r);if(!i.s)throw Error(u+"Division by zero");for(c=r.e-i.e,S=C.length,T=A.length,y=(m=new j(M)).d=[],l=0;C[l]==(A[l]||0);)++l;if(C[l]>(A[l]||0)&&--c,(w=null==o?o=j.precision:a?o+(x(r)-x(i))+1:o)<0)return new j(0);if(w=w/7+2|0,l=0,1==S)for(f=0,C=C[0],w++;(l1&&(C=t(C,f),A=t(A,f),S=C.length,T=A.length),O=S,g=(v=A.slice(0,S)).length;g=d/2&&++k;do{f=0,(s=e(C,v,S,g))<0?(b=v[0],S!=g&&(b=b*d+(v[1]||0)),(f=b/k|0)>1?(f>=d&&(f=d-1),1==(s=e(h=t(C,f),v,p=h.length,g=v.length))&&(f--,n(h,S16)throw Error(l+x(t));if(!t.s)return new p(o);for(null==e?(s=!1,u=d):u=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(u+=Math.log(h(2,f))/Math.LN10*2+5|0,n=r=i=new p(o),p.precision=u;;){if(r=E(r.times(t),u),n=n.times(++c),b((a=i.plus(w(r,n,u))).d).slice(0,u)===b(i.d).slice(0,u)){for(;f--;)i=E(i.times(i),u);return p.precision=d,null==e?(s=!0,E(i,d)):i}i=a}}function x(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function O(t,e,n){if(e>t.LN10.sd())throw s=!0,n&&(t.precision=n),Error(u+"LN10 precision limit exceeded");return E(new t(t.LN10),e)}function T(t){for(var e="";t--;)e+="0";return e}function k(t,e){var n,r,i,a,c,l,f,h,p,d=1,m=t,y=m.d,v=m.constructor,g=v.precision;if(m.s<1)throw Error(u+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new v(0);if(null==e?(s=!1,h=g):h=e,m.eq(10))return null==e&&(s=!0),O(v,h);if(h+=10,v.precision=h,r=(n=b(y)).charAt(0),a=x(m),!(Math.abs(a)<15e14))return f=O(v,h+2,g).times(a+""),m=k(new v(r+"."+n.slice(1)),h-10).plus(f),v.precision=g,null==e?(s=!0,E(m,g)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((m=m.times(t)).d)).charAt(0),d++;for(a=x(m),r>1?(m=new v("0."+n),a++):m=new v(r+"."+n.slice(1)),l=c=m=w(m.minus(o),m.plus(o),h),p=E(m.times(m),h),i=3;;){if(c=E(c.times(p),h),b((f=l.plus(w(c,new v(i),h))).d).slice(0,h)===b(l.d).slice(0,h))return l=l.times(2),0!==a&&(l=l.plus(O(v,h+2,g).times(a+""))),l=w(l,new v(d),h),v.precision=g,null==e?(s=!0,E(l,g)):l;l=f,i+=2}}function S(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=f(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),rm||t.e<-m))throw Error(l+n)}else t.s=0,t.e=0,t.d=[0];return t}function E(t,e,n){var r,i,o,a,u,c,p,y,v=t.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=7,i=e,p=v[y=0];else{if((y=Math.ceil((r+1)/7))>=(o=v.length))return t;for(p=o=v[y],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(u=p/(o=h(10,a-i-1))%10|0,c=e<0||void 0!==v[y+1]||p%o,c=n<4?(u||c)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||c||6==n&&(r>0?i>0?p/h(10,a-i):0:v[y-1])%10&1||n==(t.s<0?8:7))),e<1||!v[0])return c?(o=x(t),v.length=1,e=e-o-1,v[0]=h(10,(7-e%7)%7),t.e=f(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==r?(v.length=y,o=1,y--):(v.length=y+1,o=h(10,7-r),v[y]=i>0?(p/h(10,a-i)%h(10,i)|0)*o:0),c)for(;;){if(0==y){(v[0]+=o)==d&&(v[0]=1,++t.e);break}if(v[y]+=o,v[y]!=d)break;v[y--]=0,o=1}for(r=v.length;0===v[--r];)v.pop();if(s&&(t.e>m||t.e<-m))throw Error(l+x(t));return t}function P(t,e){var n,r,i,o,a,u,c,l,f,h,p=t.constructor,m=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),s?E(e,m):e;if(c=t.d,h=e.d,r=e.e,l=t.e,c=c.slice(),a=l-r){for((f=a<0)?(n=c,a=-a,u=h.length):(n=h,r=l,u=c.length),a>(i=Math.max(Math.ceil(m/7),u)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=c.length)<(u=h.length))&&(u=i),i=0;i0;--i)c[u++]=0;for(i=h.length;i>a;){if(c[--i]0?o=o.charAt(0)+"."+o.slice(1)+T(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+T(-i-1)+o,n&&(r=n-a)>0&&(o+=T(r))):i>=a?(o+=T(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+T(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=T(r))),t.s<0?"-"+o:o}function M(t,e){if(t.length>e)return t.length=e,!0}function A(t){if(!t||"object"!==typeof t)throw Error(u+"Object expected");var e,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=i[e+1]&&r<=i[e+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}(a=function t(e){var n,r,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"===typeof t){if(0*t!==0)throw Error(c+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):S(e,t.toString())}if("string"!==typeof t)throw Error(c+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!p.test(t))throw Error(c+t);S(e,t)}if(o.prototype=y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=A,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=e?n.apply(void 0,u):t(e-l,s((function(){for(var t=arguments.length,e=new Array(t),i=0;i0){var o=r.maxAge-0;if(isNaN(o))throw new Error("maxAge should be a Number");i+="; Max-Age="+Math.floor(o)}if(r.domain){if(!c.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!c.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch("string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},f=function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=l(t,encodeURIComponent(e),i)},h=function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r0)n[r].substring(0,i)===t.lookupQuerystring&&(e=n[r].substring(i+1))}return e}},m=null,y=function(){if(null!==m)return m;try{m="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(t){m=!1}return m},v={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&y()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&y()&&window.localStorage.setItem(e.lookupLocalStorage,t)}},g=null,b=function(){if(null!==g)return g;try{g="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(t){g=!1}return g},w={name:"sessionStorage",lookup:function(t){var e;if(t.lookupSessionStorage&&b()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupSessionStorage&&b()&&window.sessionStorage.setItem(e.lookupSessionStorage,t)}},_={name:"navigator",lookup:function(t){var e=[];if("undefined"!==typeof navigator){if(navigator.languages)for(var n=0;n0?e:void 0}},x={name:"htmlTag",lookup:function(t){var e,n=t.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(e=n.getAttribute("lang")),e}},O={name:"path",lookup:function(t){var e;if("undefined"!==typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"===typeof t.lookupFromPathIndex){if("string"!==typeof n[t.lookupFromPathIndex])return;e=n[t.lookupFromPathIndex].replace("/","")}else e=n[0].replace("/","")}return e}},T={name:"subdomain",lookup:function(t){var e;if("undefined"!==typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(e="number"===typeof t.lookupFromSubdomainIndex?n[t.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return e}};var k=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return Object(i.a)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=u(e,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(p),this.addDetector(d),this.addDetector(v),this.addDetector(w),this.addDetector(_),this.addDetector(x),this.addDetector(O),this.addDetector(T)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var e=this;t||(t=this.options.order);var n=[];return t.forEach((function(t){if(e.detectors[t]){var r=e.detectors[t].lookup(e.options);r&&"string"===typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(t,e){var n=this;e||(e=this.options.caches),e&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||e.forEach((function(e){n.detectors[e]&&n.detectors[e].cacheUserLanguage(t,n.options)})))}}]),t}();k.type="languageDetector",e.a=k},function(t,e,n){"use strict";var r=n(30),i=n(27),o=n(22),a=n(42),s=[],u=s.forEach,c=s.slice;function l(t){return u.call(c.call(arguments,1),(function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])})),t}function f(t,e){if(e&&"object"===Object(a.a)(e)){var n="",r=encodeURIComponent;for(var i in e)n+="&"+r(i)+"="+r(e[i]);if(!n)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+n.slice(1)}return t}function h(t,e,n,r,i){r&&"object"===Object(a.a)(r)&&(i||(r._t=new Date),r=f("",r).slice(1)),e.queryStringParams&&(t=f(t,e.queryStringParams));try{var o;(o=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(r?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=e.customHeaders;if(s="function"===typeof s?s():s)for(var u in s)o.setRequestHeader(u,s[u]);o.onreadystatechange=function(){o.readyState>3&&n&&n(o.responseText,o)},o.send(r)}catch(c){console&&console.log(c)}}function p(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,parsePayload:function(t,e,n){return Object(o.a)({},e,n||"")},crossDomain:!1,ajax:h}}var d=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,t),this.init(e,n),this.type="backend"}return Object(i.a)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=t,this.options=l(e,this.options||{},p())}},{key:"readMulti",value:function(t,e,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath(t,e));var i=this.services.interpolator.interpolate(r,{lng:t.join("+"),ns:e.join("+")});this.loadUrl(i,n)}},{key:"read",value:function(t,e,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath([t],[e]));var i=this.services.interpolator.interpolate(r,{lng:t,ns:e});this.loadUrl(i,n)}},{key:"loadUrl",value:function(t,e){var n=this;this.options.ajax(t,this.options,(function(r,i){if(i.status>=500&&i.status<600)return e("failed loading "+t,!0);if(i.status>=400&&i.status<500)return e("failed loading "+t,!1);var o,a;try{o=n.options.parse(r,t)}catch(s){a="failed parsing "+t+" to json"}if(a)return e(a,!1);e(null,o)}))}},{key:"create",value:function(t,e,n,r){var i=this;"string"===typeof t&&(t=[t]);var o=this.options.parsePayload(e,n,r);t.forEach((function(t){var n=i.services.interpolator.interpolate(i.options.addPath,{lng:t,ns:e});i.options.ajax(n,i.options,(function(t,e){}),o)}))}}]),t}();d.type="backend",e.a=d},,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"===typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r,i=n(0),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!==typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,c=[];function l(){u=t(c.map((function(t){return t.props}))),f.canUseDOM?e(u):n&&(u=n(u))}var f=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.peek=function(){return u},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=u;return u=void 0,c=[],t};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var t=c.indexOf(this);c.splice(t,1),l()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(f,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(r)+")"),a(f,"canUseDOM",s),f}}},function(t,e){var n="undefined"!==typeof Element,r="function"===typeof Map,i="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;t.exports=function(t,e){try{return function t(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,c,l;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(!t(e[u],a[u]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;for(l=e.entries();!(u=l.next()).done;)if(!t(u.value[1],a.get(u.value[0])))return!1;return!0}if(i&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(a,c[u]))return!1;if(n&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!e.$$typeof)&&!t(e[c[u]],a[c[u]]))return!1;return!0}return e!==e&&a!==a}(t,e)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}}},function(t,e,n){"use strict";function r(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[e++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(e=t[Symbol.iterator]()).next.bind(e)}Object.defineProperty(e,"__esModule",{value:!0});var p=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(l(Error)),d=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return o(e,t),e}(p),m=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return o(e,t),e}(p),y=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return o(e,t),e}(p),v=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(p),g=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return o(e,t),e}(p),b=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(p),w=function(t){function e(){return t.call(this,"Zone is an abstract class")||this}return o(e,t),e}(p),_="numeric",x="short",O="long",T={year:_,month:_,day:_},k={year:_,month:x,day:_},S={year:_,month:x,day:_,weekday:x},E={year:_,month:O,day:_},P={year:_,month:O,day:_,weekday:O},j={hour:_,minute:_},M={hour:_,minute:_,second:_},A={hour:_,minute:_,second:_,timeZoneName:x},C={hour:_,minute:_,second:_,timeZoneName:O},L={hour:_,minute:_,hour12:!1},N={hour:_,minute:_,second:_,hour12:!1},I={hour:_,minute:_,second:_,hour12:!1,timeZoneName:x},D={hour:_,minute:_,second:_,hour12:!1,timeZoneName:O},R={year:_,month:_,day:_,hour:_,minute:_},z={year:_,month:_,day:_,hour:_,minute:_,second:_},B={year:_,month:x,day:_,hour:_,minute:_},F={year:_,month:x,day:_,hour:_,minute:_,second:_},U={year:_,month:x,day:_,weekday:x,hour:_,minute:_},W={year:_,month:O,day:_,hour:_,minute:_,timeZoneName:x},H={year:_,month:O,day:_,hour:_,minute:_,second:_,timeZoneName:x},Z={year:_,month:O,day:_,weekday:O,hour:_,minute:_,timeZoneName:O},V={year:_,month:O,day:_,weekday:O,hour:_,minute:_,second:_,timeZoneName:O};function q(t){return"undefined"===typeof t}function G(t){return"number"===typeof t}function Y(t){return"number"===typeof t&&t%1===0}function K(){try{return"undefined"!==typeof Intl&&Intl.DateTimeFormat}catch(t){return!1}}function $(){return!q(Intl.DateTimeFormat.prototype.formatToParts)}function X(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function J(t,e,n){if(0!==t.length)return t.reduce((function(t,r){var i=[e(r),r];return t&&n(t[0],i[0])===t[0]?t:i}),null)[1]}function Q(t,e){return e.reduce((function(e,n){return e[n]=t[n],e}),{})}function tt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function et(t,e,n){return Y(t)&&t>=e&&t<=n}function nt(t,e){return void 0===e&&(e=2),t.toString().length=0&&(e=new Date(e)).setUTCFullYear(e.getUTCFullYear()-1900),+e}function lt(t){var e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===e||3===r?53:52}function ft(t){return t>99?t:t>60?1900+t:2e3+t}function ht(t,e,n,r){void 0===r&&(r=null);var i=new Date(t),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);var a=Object.assign({timeZoneName:e},o),s=K();if(s&&$()){var u=new Intl.DateTimeFormat(n,a).formatToParts(i).find((function(t){return"timezonename"===t.type.toLowerCase()}));return u?u.value:null}if(s){var c=new Intl.DateTimeFormat(n,o).format(i);return new Intl.DateTimeFormat(n,a).format(i).substring(c.length).replace(/^[, \u200e]+/,"")}return null}function pt(t,e){var n=parseInt(t,10);Number.isNaN(n)&&(n=0);var r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function dt(t){var e=Number(t);if("boolean"===typeof t||""===t||Number.isNaN(e))throw new b("Invalid unit value "+t);return e}function mt(t,e,n){var r={};for(var i in t)if(tt(t,i)){if(n.indexOf(i)>=0)continue;var o=t[i];if(void 0===o||null===o)continue;r[e(i)]=dt(o)}return r}function yt(t,e){var n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return""+i+nt(n,2)+":"+nt(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+nt(n,2)+nt(r,2);default:throw new RangeError("Value format "+e+" is out of range for property format")}}function vt(t){return Q(t,["hour","minute","second","millisecond"])}var gt=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function bt(t){return JSON.stringify(t,Object.keys(t).sort())}var wt=["January","February","March","April","May","June","July","August","September","October","November","December"],_t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],xt=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ot(t){switch(t){case"narrow":return xt;case"short":return _t;case"long":return wt;case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Tt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],kt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],St=["M","T","W","T","F","S","S"];function Et(t){switch(t){case"narrow":return St;case"short":return kt;case"long":return Tt;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Pt=["AM","PM"],jt=["Before Christ","Anno Domini"],Mt=["BC","AD"],At=["B","A"];function Ct(t){switch(t){case"narrow":return At;case"short":return Mt;case"long":return jt;default:return null}}function Lt(t,e){for(var n,r="",i=h(t);!(n=i()).done;){var o=n.value;o.literal?r+=o.val:r+=e(o.val)}return r}var Nt={D:T,DD:k,DDD:E,DDDD:P,t:j,tt:M,ttt:A,tttt:C,T:L,TT:N,TTT:I,TTTT:D,f:R,ff:B,fff:W,ffff:Z,F:z,FF:F,FFF:H,FFFF:V},It=function(){function t(t,e){this.opts=e,this.loc=t,this.systemLoc=null}t.create=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.parseFormat=function(t){for(var e=null,n="",r=!1,i=[],o=0;o0&&i.push({literal:r,val:n}),e=null,n="",r=!r):r||a===e?n+=a:(n.length>0&&i.push({literal:!1,val:n}),n=a,e=a)}return n.length>0&&i.push({literal:r,val:n}),i},t.macroTokenToFormatOpts=function(t){return Nt[t]};var e=t.prototype;return e.formatWithSystemDefault=function(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTime=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTimeParts=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).formatToParts()},e.resolvedOptions=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).resolvedOptions()},e.num=function(t,e){if(void 0===e&&(e=0),this.opts.forceSimple)return nt(t,e);var n=Object.assign({},this.opts);return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)},e.formatDateTimeFromString=function(e,n){var r=this,i="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&$(),a=function(t,n){return r.loc.extract(e,t,n)},s=function(t){return e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):""},u=function(){return i?function(t){return Pt[t.hour<12?0:1]}(e):a({hour:"numeric",hour12:!0},"dayperiod")},c=function(t,n){return i?function(t,e){return Ot(e)[t.month-1]}(e,t):a(n?{month:t}:{month:t,day:"numeric"},"month")},l=function(t,n){return i?function(t,e){return Et(e)[t.weekday-1]}(e,t):a(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday")},f=function(t){return i?function(t,e){return Ct(e)[t.year<0?0:1]}(e,t):a({era:t},"era")};return Lt(t.parseFormat(n),(function(n){switch(n){case"S":return r.num(e.millisecond);case"u":case"SSS":return r.num(e.millisecond,3);case"s":return r.num(e.second);case"ss":return r.num(e.second,2);case"m":return r.num(e.minute);case"mm":return r.num(e.minute,2);case"h":return r.num(e.hour%12===0?12:e.hour%12);case"hh":return r.num(e.hour%12===0?12:e.hour%12,2);case"H":return r.num(e.hour);case"HH":return r.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return s({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:r.loc.locale});case"z":return e.zoneName;case"a":return u();case"d":return o?a({day:"numeric"},"day"):r.num(e.day);case"dd":return o?a({day:"2-digit"},"day"):r.num(e.day,2);case"c":return r.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return r.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):r.num(e.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):r.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return o?a({month:"numeric"},"month"):r.num(e.month);case"MM":return o?a({month:"2-digit"},"month"):r.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return o?a({year:"numeric"},"year"):r.num(e.year);case"yy":return o?a({year:"2-digit"},"year"):r.num(e.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):r.num(e.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):r.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return r.num(e.weekYear.toString().slice(-2),2);case"kkkk":return r.num(e.weekYear,4);case"W":return r.num(e.weekNumber);case"WW":return r.num(e.weekNumber,2);case"o":return r.num(e.ordinal);case"ooo":return r.num(e.ordinal,3);case"q":return r.num(e.quarter);case"qq":return r.num(e.quarter,2);case"X":return r.num(Math.floor(e.ts/1e3));case"x":return r.num(e.ts);default:return function(n){var i=t.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(e,i):n}(n)}}))},e.formatDurationFromString=function(e,n){var r,i=this,o=function(t){switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},a=t.parseFormat(n),s=a.reduce((function(t,e){var n=e.literal,r=e.val;return n?t:t.concat(r)}),[]),u=e.shiftTo.apply(e,s.map(o).filter((function(t){return t})));return Lt(a,(r=u,function(t){var e=o(t);return e?i.num(r.get(e),t.length):t}))},t}(),Dt=function(){function t(t,e){this.reason=t,this.explanation=e}return t.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},t}(),Rt=function(){function t(){}var e=t.prototype;return e.offsetName=function(t,e){throw new w},e.formatOffset=function(t,e){throw new w},e.offset=function(t){throw new w},e.equals=function(t){throw new w},i(t,[{key:"type",get:function(){throw new w}},{key:"name",get:function(){throw new w}},{key:"universal",get:function(){throw new w}},{key:"isValid",get:function(){throw new w}}]),t}(),zt=null,Bt=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);var n=e.prototype;return n.offsetName=function(t,e){return ht(t,e.format,e.locale)},n.formatOffset=function(t,e){return yt(this.offset(t),e)},n.offset=function(t){return-new Date(t).getTimezoneOffset()},n.equals=function(t){return"local"===t.type},i(e,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return K()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===zt&&(zt=new e),zt}}]),e}(Rt),Ft=RegExp("^"+gt.source+"$"),Ut={};var Wt={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ht={},Zt=function(t){function e(n){var r;return(r=t.call(this)||this).zoneName=n,r.valid=e.isValidZone(n),r}o(e,t),e.create=function(t){return Ht[t]||(Ht[t]=new e(t)),Ht[t]},e.resetCache=function(){Ht={},Ut={}},e.isValidSpecifier=function(t){return!(!t||!t.match(Ft))},e.isValidZone=function(t){try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(e){return!1}},e.parseGMTOffset=function(t){if(t){var e=t.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var n=e.prototype;return n.offsetName=function(t,e){return ht(t,e.format,e.locale,this.name)},n.formatOffset=function(t,e){return yt(this.offset(t),e)},n.offset=function(t){var e,n=new Date(t),r=(e=this.name,Ut[e]||(Ut[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Ut[e]),i=r.formatToParts?function(t,e){for(var n=t.formatToParts(e),r=[],i=0;i=0?l:1e3+l))/6e4},n.equals=function(t){return"iana"===t.type&&t.name===this.name},i(e,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),e}(Rt),Vt=null,qt=function(t){function e(e){var n;return(n=t.call(this)||this).fixed=e,n}o(e,t),e.instance=function(t){return 0===t?e.utcInstance:new e(t)},e.parseSpecifier=function(t){if(t){var n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(pt(n[1],n[2]))}return null},i(e,null,[{key:"utcInstance",get:function(){return null===Vt&&(Vt=new e(0)),Vt}}]);var n=e.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(t,e){return yt(this.fixed,e)},n.offset=function(){return this.fixed},n.equals=function(t){return"fixed"===t.type&&t.fixed===this.fixed},i(e,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+yt(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),e}(Rt),Gt=function(t){function e(e){var n;return(n=t.call(this)||this).zoneName=e,n}o(e,t);var n=e.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},i(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Rt);function Yt(t,e){var n;if(q(t)||null===t)return e;if(t instanceof Rt)return t;if("string"===typeof t){var r=t.toLowerCase();return"local"===r?e:"utc"===r||"gmt"===r?qt.utcInstance:null!=(n=Zt.parseGMTOffset(t))?qt.instance(n):Zt.isValidSpecifier(r)?Zt.create(t):qt.parseSpecifier(r)||new Gt(t)}return G(t)?qt.instance(t):"object"===typeof t&&t.offset&&"number"===typeof t.offset?t:new Gt(t)}var Kt=function(){return Date.now()},$t=null,Xt=null,Jt=null,Qt=null,te=!1,ee=function(){function t(){}return t.resetCaches=function(){he.resetCache(),Zt.resetCache()},i(t,null,[{key:"now",get:function(){return Kt},set:function(t){Kt=t}},{key:"defaultZoneName",get:function(){return t.defaultZone.name},set:function(t){$t=t?Yt(t):null}},{key:"defaultZone",get:function(){return $t||Bt.instance}},{key:"defaultLocale",get:function(){return Xt},set:function(t){Xt=t}},{key:"defaultNumberingSystem",get:function(){return Jt},set:function(t){Jt=t}},{key:"defaultOutputCalendar",get:function(){return Qt},set:function(t){Qt=t}},{key:"throwOnInvalid",get:function(){return te},set:function(t){te=t}}]),t}(),ne={};function re(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),r=ne[n];return r||(r=new Intl.DateTimeFormat(t,e),ne[n]=r),r}var ie={};var oe={};function ae(t,e){void 0===e&&(e={});var n=e,r=(n.base,function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(n,["base"])),i=JSON.stringify([t,r]),o=oe[i];return o||(o=new Intl.RelativeTimeFormat(t,e),oe[i]=o),o}var se=null;function ue(t,e,n,r,i){var o=t.listingMode(n);return"error"===o?null:"en"===o?r(e):i(e)}var ce=function(){function t(t,e,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!e&&K()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),r=ie[n];return r||(r=new Intl.NumberFormat(t,e),ie[n]=r),r}(t,r)}}return t.prototype.format=function(t){if(this.inf){var e=this.floor?Math.floor(t):t;return this.inf.format(e)}return nt(this.floor?Math.floor(t):ot(t,3),this.padTo)},t}(),le=function(){function t(t,e,n){var r;if(this.opts=n,this.hasIntl=K(),t.zone.universal&&this.hasIntl?(r="UTC",n.timeZoneName?this.dt=t:this.dt=0===t.offset?t:ur.fromMillis(t.ts+60*t.offset*1e3)):"local"===t.zone.type?this.dt=t:(this.dt=t,r=t.zone.name),this.hasIntl){var i=Object.assign({},this.opts);r&&(i.timeZone=r),this.dtf=re(e,i)}}var e=t.prototype;return e.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var t=function(t){switch(bt(Q(t,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case bt(T):return"M/d/yyyy";case bt(k):return"LLL d, yyyy";case bt(S):return"EEE, LLL d, yyyy";case bt(E):return"LLLL d, yyyy";case bt(P):return"EEEE, LLLL d, yyyy";case bt(j):return"h:mm a";case bt(M):return"h:mm:ss a";case bt(A):case bt(C):return"h:mm a";case bt(L):return"HH:mm";case bt(N):return"HH:mm:ss";case bt(I):case bt(D):return"HH:mm";case bt(R):return"M/d/yyyy, h:mm a";case bt(B):return"LLL d, yyyy, h:mm a";case bt(W):return"LLLL d, yyyy, h:mm a";case bt(Z):return"EEEE, LLLL d, yyyy, h:mm a";case bt(z):return"M/d/yyyy, h:mm:ss a";case bt(F):return"LLL d, yyyy, h:mm:ss a";case bt(U):return"EEE, d LLL yyyy, h:mm a";case bt(H):return"LLLL d, yyyy, h:mm:ss a";case bt(V):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return"EEEE, LLLL d, yyyy, h:mm a"}}(this.opts),e=he.create("en-US");return It.create(e).formatDateTimeFromString(this.dt,t)},e.formatToParts=function(){return this.hasIntl&&$()?this.dtf.formatToParts(this.dt.toJSDate()):[]},e.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},t}(),fe=function(){function t(t,e,n){this.opts=Object.assign({style:"long"},n),!e&&X()&&(this.rtf=ae(t,n))}var e=t.prototype;return e.format=function(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&o){var a="days"===t;switch(e){case 1:return a?"tomorrow":"next "+i[t][0];case-1:return a?"yesterday":"last "+i[t][0];case 0:return a?"today":"this "+i[t][0]}}var s=Object.is(e,-0)||e<0,u=Math.abs(e),c=1===u,l=i[t],f=r?c?l[1]:l[2]||l[1]:c?i[t][0]:t;return s?u+" "+f+" ago":"in "+u+" "+f}(e,t,this.opts.numeric,"long"!==this.opts.style)},e.formatToParts=function(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]},t}(),he=function(){function t(t,e,n,r){var i=function(t){var e=t.indexOf("-u-");if(-1===e)return[t];var n,r=t.substring(0,e);try{n=re(t).resolvedOptions()}catch(o){n=re(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(t),o=i[0],a=i[1],s=i[2];this.locale=o,this.numberingSystem=e||a||null,this.outputCalendar=n||s||null,this.intl=function(t,e,n){return K()?n||e?(t+="-u",n&&(t+="-ca-"+n),e&&(t+="-nu-"+e),t):t:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}t.fromOpts=function(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},t.create=function(e,n,r,i){void 0===i&&(i=!1);var o=e||ee.defaultLocale;return new t(o||(i?"en-US":function(){if(se)return se;if(K()){var t=(new Intl.DateTimeFormat).resolvedOptions().locale;return se=t&&"und"!==t?t:"en-US"}return se="en-US"}()),n||ee.defaultNumberingSystem,r||ee.defaultOutputCalendar,o)},t.resetCache=function(){se=null,ne={},ie={},oe={}},t.fromObject=function(e){var n=void 0===e?{}:e,r=n.locale,i=n.numberingSystem,o=n.outputCalendar;return t.create(r,i,o)};var e=t.prototype;return e.listingMode=function(t){void 0===t&&(t=!0);var e=K()&&$(),n=this.isEnglish(),r=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e||n&&r||t?!e||n&&r?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!0}))},e.redefaultToSystem=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!1}))},e.months=function(t,e,n){var r=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),ue(this,t,n,Ot,(function(){var n=e?{month:t,day:"numeric"}:{month:t},i=e?"format":"standalone";return r.monthsCache[i][t]||(r.monthsCache[i][t]=function(t){for(var e=[],n=1;n<=12;n++){var r=ur.utc(2016,n,1);e.push(t(r))}return e}((function(t){return r.extract(t,n,"month")}))),r.monthsCache[i][t]}))},e.weekdays=function(t,e,n){var r=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),ue(this,t,n,Et,(function(){var n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=e?"format":"standalone";return r.weekdaysCache[i][t]||(r.weekdaysCache[i][t]=function(t){for(var e=[],n=1;n<=7;n++){var r=ur.utc(2016,11,13+n);e.push(t(r))}return e}((function(t){return r.extract(t,n,"weekday")}))),r.weekdaysCache[i][t]}))},e.meridiems=function(t){var e=this;return void 0===t&&(t=!0),ue(this,void 0,t,(function(){return Pt}),(function(){if(!e.meridiemCache){var t={hour:"numeric",hour12:!0};e.meridiemCache=[ur.utc(2016,11,13,9),ur.utc(2016,11,13,19)].map((function(n){return e.extract(n,t,"dayperiod")}))}return e.meridiemCache}))},e.eras=function(t,e){var n=this;return void 0===e&&(e=!0),ue(this,t,e,Ct,(function(){var e={era:t};return n.eraCache[t]||(n.eraCache[t]=[ur.utc(-40,1,1),ur.utc(2017,1,1)].map((function(t){return n.extract(t,e,"era")}))),n.eraCache[t]}))},e.extract=function(t,e,n){var r=this.dtFormatter(t,e).formatToParts().find((function(t){return t.type.toLowerCase()===n}));return r?r.value:null},e.numberFormatter=function(t){return void 0===t&&(t={}),new ce(this.intl,t.forceSimple||this.fastNumbers,t)},e.dtFormatter=function(t,e){return void 0===e&&(e={}),new le(t,this.intl,e)},e.relFormatter=function(t){return void 0===t&&(t={}),new fe(this.intl,this.isEnglish(),t)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||K()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar},i(t,[{key:"fastNumbers",get:function(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||K()&&"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),t}();function pe(){for(var t=arguments.length,e=new Array(t),n=0;n1?e-1:0),r=1;r3?Tt.indexOf(t)+1:kt.indexOf(t)+1),s}var Ne=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ie(t){var e,n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],f=t[10],h=t[11],p=Le(n,o,i,r,a,s,u);return e=c?Ce[c]:l?0:pt(f,h),[p,new qt(e)]}var De=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Re=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ze=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Be(t){var e=t[1],n=t[2],r=t[3];return[Le(e,t[4],r,n,t[5],t[6],t[7]),qt.utcInstance]}function Fe(t){var e=t[1],n=t[2],r=t[3],i=t[4],o=t[5],a=t[6];return[Le(e,t[7],n,r,i,o,a),qt.utcInstance]}var Ue=pe(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,we),We=pe(/(\d{4})-?W(\d\d)(?:-?(\d))?/,we),He=pe(/(\d{4})-?(\d{3})/,we),Ze=pe(be),Ve=de(Se,Ee,Pe),qe=de(_e,Ee,Pe),Ge=de(xe,Ee),Ye=de(Ee,Pe);var Ke=pe(/(\d{4})-(\d\d)-(\d\d)/,Te),$e=pe(Oe),Xe=de(Se,Ee,Pe,je),Je=de(Ee,Pe,je);var Qe={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},tn=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qe),en=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qe),nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rn=nn.slice(0).reverse();function on(t,e,n){void 0===n&&(n=!1);var r={values:n?e.values:Object.assign({},t.values,e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new sn(r)}function an(t,e,n,r,i){var o=t[i][n],a=e[n]/o,s=!(Math.sign(a)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(a)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(a):Math.trunc(a);r[i]+=s,e[n]-=s*o}var sn=function(){function t(t){var e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||he.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?en:tn,this.isLuxonDuration=!0}t.fromMillis=function(e,n){return t.fromObject(Object.assign({milliseconds:e},n))},t.fromObject=function(e){if(null==e||"object"!==typeof e)throw new b("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new t({values:mt(e,t.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:he.fromObject(e),conversionAccuracy:e.conversionAccuracy})},t.fromISO=function(e,n){var r=function(t){return me(t,[Me,Ae])}(e)[0];if(r){var i=Object.assign(r,n);return t.fromObject(i)}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new b("need to specify a reason the Duration is invalid");var r=e instanceof Dt?e:new Dt(e,n);if(ee.throwOnInvalid)throw new y(r);return new t({invalid:r})},t.normalizeUnit=function(t){var e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new g(t);return e},t.isDuration=function(t){return t&&t.isLuxonDuration||!1};var e=t.prototype;return e.toFormat=function(t,e){void 0===e&&(e={});var n=Object.assign({},e,{floor:!1!==e.round&&!1!==e.floor});return this.isValid?It.create(this.loc,n).formatDurationFromString(this,t):"Invalid Duration"},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.values);return t.includeConfig&&(e.conversionAccuracy=this.conversionAccuracy,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toISO=function(){if(!this.isValid)return null;var t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=ot(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.valueOf=function(){return this.as("milliseconds")},e.plus=function(t){if(!this.isValid)return this;for(var e,n=un(t),r={},i=h(nn);!(e=i()).done;){var o=e.value;(tt(n.values,o)||tt(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return on(this,{values:r},!0)},e.minus=function(t){if(!this.isValid)return this;var e=un(t);return this.plus(e.negate())},e.mapUnits=function(t){if(!this.isValid)return this;for(var e={},n=0,r=Object.keys(this.values);n=0){i=l;var f=0;for(var p in s)f+=this.matrix[p][l]*s[p],s[p]=0;G(u[l])&&(f+=u[l]);var d=Math.trunc(f);for(var m in a[l]=d,s[l]=f-d,u)nn.indexOf(m)>nn.indexOf(l)&&an(this.matrix,u,m,a,l)}else G(u[l])&&(s[l]=u[l])}for(var y in s)0!==s[y]&&(a[i]+=y===i?s[y]:s[y]/this.matrix[i][y]);return on(this,{values:a},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var t={},e=0,n=Object.keys(this.values);et},e.isBefore=function(t){return!!this.isValid&&this.e<=t},e.contains=function(t){return!!this.isValid&&(this.s<=t&&this.e>t)},e.set=function(e){var n=void 0===e?{}:e,r=n.start,i=n.end;return this.isValid?t.fromDateTimes(r||this.s,i||this.e):this},e.splitAt=function(){var e=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i+this.e?this.e:c;a.push(t.fromDateTimes(s,l)),s=l,u+=1}return a},e.splitBy=function(e){var n=un(e);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i,o=this.s,a=[];o+this.e?this.e:r,a.push(t.fromDateTimes(o,i)),o=i;return a},e.divideEqually=function(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]},e.overlaps=function(t){return this.e>t.s&&this.s=t.e)},e.equals=function(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))},e.intersection=function(e){if(!this.isValid)return this;var n=this.s>e.s?this.s:e.s,r=this.er?null:t.fromDateTimes(n,r)},e.union=function(e){if(!this.isValid)return this;var n=this.se.e?this.e:e.e;return t.fromDateTimes(n,r)},t.merge=function(t){var e=t.sort((function(t,e){return t.s-e.s})).reduce((function(t,e){var n=t[0],r=t[1];return r?r.overlaps(e)||r.abutsStart(e)?[n,r.union(e)]:[n.concat([r]),e]:[n,e]}),[[],null]),n=e[0],r=e[1];return r&&n.push(r),n},t.xor=function(e){for(var n,r,i=null,o=0,a=[],s=e.map((function(t){return[{time:t.s,type:"s"},{time:t.e,type:"e"}]})),u=h((n=Array.prototype).concat.apply(n,s).sort((function(t,e){return t.time-e.time})));!(r=u()).done;){var c=r.value;1===(o+="s"===c.type?1:-1)?i=c.time:(i&&+i!==+c.time&&a.push(t.fromDateTimes(i,c.time)),i=null)}return t.merge(a)},e.difference=function(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i=0){var f;r=c;var h,p=l(t,e);if((i=t.plus(((f={})[c]=p,f)))>e)t=t.plus(((h={})[c]=p-1,h)),p-=1;else t=i;o[c]=p}}return[t,o,i,r]}(t,e,n),o=i[0],a=i[1],s=i[2],u=i[3],c=e-o,l=n.filter((function(t){return["hours","minutes","seconds","milliseconds"].indexOf(t)>=0}));if(0===l.length){var f;if(s0?(h=sn.fromMillis(c,r)).shiftTo.apply(h,l).plus(p):p}var mn={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},yn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},vn=mn.hanidec.replace(/[\[|\]]/g,"").split("");function gn(t,e){var n=t.numberingSystem;return void 0===e&&(e=""),new RegExp(""+mn[n||"latn"]+e)}function bn(t,e){return void 0===e&&(e=function(t){return t}),{regex:t,deser:function(t){var n=t[0];return e(function(t){var e=parseInt(t,10);if(isNaN(e)){e="";for(var n=0;n=a&&r<=s&&(e+=r-a)}}return parseInt(e,10)}return e}(n))}}}var wn="( |"+String.fromCharCode(160)+")",_n=new RegExp(wn,"g");function xn(t){return t.replace(/\./g,"\\.?").replace(_n,wn)}function On(t){return t.replace(/\./g,"").replace(_n," ").toLowerCase()}function Tn(t,e){return null===t?null:{regex:RegExp(t.map(xn).join("|")),deser:function(n){var r=n[0];return t.findIndex((function(t){return On(r)===On(t)}))+e}}}function kn(t,e){return{regex:t,deser:function(t){return pt(t[1],t[2])},groups:e}}function Sn(t){return{regex:t,deser:function(t){return t[0]}}}var En={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Pn=null;function jn(t,e){if(t.literal)return t;var n=It.macroTokenToFormatOpts(t.val);if(!n)return t;var r=It.create(e,n).formatDateTimeParts((Pn||(Pn=ur.fromMillis(1555555555555)),Pn)).map((function(t){return function(t,e,n){var r=t.type,i=t.value;if("literal"===r)return{literal:!0,val:i};var o=n[r],a=En[r];return"object"===typeof a&&(a=a[o]),a?{literal:!1,val:a}:void 0}(t,0,n)}));return r.includes(void 0)?t:r}function Mn(t,e,n){var r=function(t,e){var n;return(n=Array.prototype).concat.apply(n,t.map((function(t){return jn(t,e)})))}(It.parseFormat(n),t),i=r.map((function(e){return function(t,e){var n=gn(e),r=gn(e,"{2}"),i=gn(e,"{3}"),o=gn(e,"{4}"),a=gn(e,"{6}"),s=gn(e,"{1,2}"),u=gn(e,"{1,3}"),c=gn(e,"{1,6}"),l=gn(e,"{1,9}"),f=gn(e,"{2,4}"),h=gn(e,"{4,6}"),p=function(t){return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(t){return t[0]},literal:!0};var e},d=function(d){if(t.literal)return p(d);switch(d.val){case"G":return Tn(e.eras("short",!1),0);case"GG":return Tn(e.eras("long",!1),0);case"y":return bn(c);case"yy":return bn(f,ft);case"yyyy":return bn(o);case"yyyyy":return bn(h);case"yyyyyy":return bn(a);case"M":return bn(s);case"MM":return bn(r);case"MMM":return Tn(e.months("short",!0,!1),1);case"MMMM":return Tn(e.months("long",!0,!1),1);case"L":return bn(s);case"LL":return bn(r);case"LLL":return Tn(e.months("short",!1,!1),1);case"LLLL":return Tn(e.months("long",!1,!1),1);case"d":return bn(s);case"dd":return bn(r);case"o":return bn(u);case"ooo":return bn(i);case"HH":return bn(r);case"H":return bn(s);case"hh":return bn(r);case"h":return bn(s);case"mm":return bn(r);case"m":case"q":return bn(s);case"qq":return bn(r);case"s":return bn(s);case"ss":return bn(r);case"S":return bn(u);case"SSS":return bn(i);case"u":return Sn(l);case"a":return Tn(e.meridiems(),0);case"kkkk":return bn(o);case"kk":return bn(f,ft);case"W":return bn(s);case"WW":return bn(r);case"E":case"c":return bn(n);case"EEE":return Tn(e.weekdays("short",!1,!1),1);case"EEEE":return Tn(e.weekdays("long",!1,!1),1);case"ccc":return Tn(e.weekdays("short",!0,!1),1);case"cccc":return Tn(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return kn(new RegExp("([+-]"+s.source+")(?::("+r.source+"))?"),2);case"ZZZ":return kn(new RegExp("([+-]"+s.source+")("+r.source+")?"),2);case"z":return Sn(/[a-z_+-/]{1,256}?/i);default:return p(d)}}(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return d.token=t,d}(e,t)})),o=i.find((function(t){return t.invalidReason}));if(o)return{input:e,tokens:r,invalidReason:o.invalidReason};var a=function(t){return["^"+t.map((function(t){return t.regex})).reduce((function(t,e){return t+"("+e.source+")"}),"")+"$",t]}(i),s=a[0],u=a[1],c=RegExp(s,"i"),l=function(t,e,n){var r=t.match(e);if(r){var i={},o=1;for(var a in n)if(tt(n,a)){var s=n[a],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(o,o+u))),o+=u}return[r,i]}return[r,{}]}(e,c,u),f=l[0],h=l[1],p=h?function(t){var e;return e=q(t.Z)?q(t.z)?null:Zt.create(t.z):new qt(t.Z),q(t.q)||(t.M=3*(t.q-1)+1),q(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),q(t.u)||(t.S=it(t.u)),[Object.keys(t).reduce((function(e,n){var r=function(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(e[r]=t[n]),e}),{}),e]}(h):[null,null],d=p[0],m=p[1];if(tt(h,"a")&&tt(h,"H"))throw new v("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:c,rawMatches:f,matches:h,result:d,zone:m}}var An=[0,31,59,90,120,151,181,212,243,273,304,334],Cn=[0,31,60,91,121,152,182,213,244,274,305,335];function Ln(t,e){return new Dt("unit out of range","you specified "+e+" (of type "+typeof e+") as a "+t+", which is invalid")}function Nn(t,e,n){var r=new Date(Date.UTC(t,e-1,n)).getUTCDay();return 0===r?7:r}function In(t,e,n){return n+(at(t)?Cn:An)[e-1]}function Dn(t,e){var n=at(t)?Cn:An,r=n.findIndex((function(t){return tlt(n)?(e=n+1,s=1):e=n,Object.assign({weekYear:e,weekNumber:s,weekday:a},vt(t))}function zn(t){var e,n=t.weekYear,r=t.weekNumber,i=t.weekday,o=Nn(n,1,4),a=st(n),s=7*r+i-o-3;s<1?s+=st(e=n-1):s>a?(e=n+1,s-=st(n)):e=n;var u=Dn(e,s),c=u.month,l=u.day;return Object.assign({year:e,month:c,day:l},vt(t))}function Bn(t){var e=t.year,n=In(e,t.month,t.day);return Object.assign({year:e,ordinal:n},vt(t))}function Fn(t){var e=t.year,n=Dn(e,t.ordinal),r=n.month,i=n.day;return Object.assign({year:e,month:r,day:i},vt(t))}function Un(t){var e=Y(t.year),n=et(t.month,1,12),r=et(t.day,1,ut(t.year,t.month));return e?n?!r&&Ln("day",t.day):Ln("month",t.month):Ln("year",t.year)}function Wn(t){var e=t.hour,n=t.minute,r=t.second,i=t.millisecond,o=et(e,0,23)||24===e&&0===n&&0===r&&0===i,a=et(n,0,59),s=et(r,0,59),u=et(i,0,999);return o?a?s?!u&&Ln("millisecond",i):Ln("second",r):Ln("minute",n):Ln("hour",e)}function Hn(t){return new Dt("unsupported zone",'the zone "'+t.name+'" is not supported')}function Zn(t){return null===t.weekData&&(t.weekData=Rn(t.c)),t.weekData}function Vn(t,e){var n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ur(Object.assign({},n,e,{old:n}))}function qn(t,e,n){var r=t-60*e*1e3,i=n.offset(r);if(e===i)return[r,e];r-=60*(i-e)*1e3;var o=n.offset(r);return i===o?[r,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Gn(t,e){var n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Yn(t,e,n){return qn(ct(t),e,n)}function Kn(t,e){var n=t.o,r=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),o=Object.assign({},t.c,{year:r,month:i,day:Math.min(t.c.day,ut(r,i))+Math.trunc(e.days)+7*Math.trunc(e.weeks)}),a=sn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=qn(ct(o),n,t.zone),u=s[0],c=s[1];return 0!==a&&(u+=a,c=t.zone.offset(u)),{ts:u,o:c}}function $n(t,e,n,r,i){var o=n.setZone,a=n.zone;if(t&&0!==Object.keys(t).length){var s=e||a,u=ur.fromObject(Object.assign(t,n,{zone:s,setZone:void 0}));return o?u:u.setZone(a)}return ur.invalid(new Dt("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function Xn(t,e,n){return void 0===n&&(n=!0),t.isValid?It.create(he.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Jn(t,e){var n=e.suppressSeconds,r=void 0!==n&&n,i=e.suppressMilliseconds,o=void 0!==i&&i,a=e.includeOffset,s=e.includeZone,u=void 0!==s&&s,c=e.spaceZone,l=void 0!==c&&c,f=e.format,h=void 0===f?"extended":f,p="basic"===h?"HHmm":"HH:mm";return r&&0===t.second&&0===t.millisecond||(p+="basic"===h?"ss":":ss",o&&0===t.millisecond||(p+=".SSS")),(u||a)&&l&&(p+=" "),u?p+="z":a&&(p+="basic"===h?"ZZZ":"ZZ"),Xn(t,p)}var Qn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},tr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},er={ordinal:1,hour:0,minute:0,second:0,millisecond:0},nr=["year","month","day","hour","minute","second","millisecond"],rr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ir=["year","ordinal","hour","minute","second","millisecond"];function or(t){var e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new g(t);return e}function ar(t,e){for(var n,r=h(nr);!(n=r()).done;){var i=n.value;q(t[i])&&(t[i]=Qn[i])}var o=Un(t)||Wn(t);if(o)return ur.invalid(o);var a=ee.now(),s=Yn(t,e.offset(a),e),u=s[0],c=s[1];return new ur({ts:u,zone:e,o:c})}function sr(t,e,n){var r=!!q(n.round)||n.round,i=function(t,i){return t=ot(t,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(t,i)},o=function(r){return n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r)};if(n.unit)return i(o(n.unit),n.unit);for(var a,s=h(n.units);!(a=s()).done;){var u=a.value,c=o(u);if(Math.abs(c)>=1)return i(c,u)}return i(0,n.units[n.units.length-1])}var ur=function(){function t(t){var e=t.zone||ee.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new Dt("invalid input"):null)||(e.isValid?null:Hn(e));this.ts=q(t.ts)?ee.now():t.ts;var r=null,i=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e)){var o=[t.old.c,t.old.o];r=o[0],i=o[1]}else{var a=e.offset(this.ts);r=Gn(this.ts,a),r=(n=Number.isNaN(r.year)?new Dt("invalid input"):null)?null:r,i=n?null:a}this._zone=e,this.loc=t.loc||he.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}t.local=function(e,n,r,i,o,a,s){return q(e)?new t({ts:ee.now()}):ar({year:e,month:n,day:r,hour:i,minute:o,second:a,millisecond:s},ee.defaultZone)},t.utc=function(e,n,r,i,o,a,s){return q(e)?new t({ts:ee.now(),zone:qt.utcInstance}):ar({year:e,month:n,day:r,hour:i,minute:o,second:a,millisecond:s},qt.utcInstance)},t.fromJSDate=function(e,n){void 0===n&&(n={});var r,i=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);if(Number.isNaN(i))return t.invalid("invalid input");var o=Yt(n.zone,ee.defaultZone);return o.isValid?new t({ts:i,zone:o,loc:he.fromObject(n)}):t.invalid(Hn(o))},t.fromMillis=function(e,n){if(void 0===n&&(n={}),G(e))return e<-864e13||e>864e13?t.invalid("Timestamp out of range"):new t({ts:e,zone:Yt(n.zone,ee.defaultZone),loc:he.fromObject(n)});throw new b("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},t.fromSeconds=function(e,n){if(void 0===n&&(n={}),G(e))return new t({ts:1e3*e,zone:Yt(n.zone,ee.defaultZone),loc:he.fromObject(n)});throw new b("fromSeconds requires a numerical input")},t.fromObject=function(e){var n=Yt(e.zone,ee.defaultZone);if(!n.isValid)return t.invalid(Hn(n));var r=ee.now(),i=n.offset(r),o=mt(e,or,["zone","locale","outputCalendar","numberingSystem"]),a=!q(o.ordinal),s=!q(o.year),u=!q(o.month)||!q(o.day),c=s||u,l=o.weekYear||o.weekNumber,f=he.fromObject(e);if((c||a)&&l)throw new v("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new v("Can't mix ordinal dates with month/day");var p,d,m=l||o.weekday&&!c,y=Gn(r,i);m?(p=rr,d=tr,y=Rn(y)):a?(p=ir,d=er,y=Bn(y)):(p=nr,d=Qn);for(var g,b=!1,w=h(p);!(g=w()).done;){var _=g.value;q(o[_])?o[_]=b?d[_]:y[_]:b=!0}var x=(m?function(t){var e=Y(t.weekYear),n=et(t.weekNumber,1,lt(t.weekYear)),r=et(t.weekday,1,7);return e?n?!r&&Ln("weekday",t.weekday):Ln("week",t.week):Ln("weekYear",t.weekYear)}(o):a?function(t){var e=Y(t.year),n=et(t.ordinal,1,st(t.year));return e?!n&&Ln("ordinal",t.ordinal):Ln("year",t.year)}(o):Un(o))||Wn(o);if(x)return t.invalid(x);var O=Yn(m?zn(o):a?Fn(o):o,i,n),T=new t({ts:O[0],zone:n,o:O[1],loc:f});return o.weekday&&c&&e.weekday!==T.weekday?t.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+T.toISO()):T},t.fromISO=function(t,e){void 0===e&&(e={});var n=function(t){return me(t,[Ue,Ve],[We,qe],[He,Ge],[Ze,Ye])}(t);return $n(n[0],n[1],e,"ISO 8601",t)},t.fromRFC2822=function(t,e){void 0===e&&(e={});var n=function(t){return me(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Ne,Ie])}(t);return $n(n[0],n[1],e,"RFC 2822",t)},t.fromHTTP=function(t,e){void 0===e&&(e={});var n=function(t){return me(t,[De,Be],[Re,Be],[ze,Fe])}(t);return $n(n[0],n[1],e,"HTTP",e)},t.fromFormat=function(e,n,r){if(void 0===r&&(r={}),q(e)||q(n))throw new b("fromFormat requires an input string and a format");var i=r,o=i.locale,a=void 0===o?null:o,s=i.numberingSystem,u=void 0===s?null:s,c=function(t,e,n){var r=Mn(t,e,n);return[r.result,r.zone,r.invalidReason]}(he.fromOpts({locale:a,numberingSystem:u,defaultToEN:!0}),e,n),l=c[0],f=c[1],h=c[2];return h?t.invalid(h):$n(l,f,r,"format "+n,e)},t.fromString=function(e,n,r){return void 0===r&&(r={}),t.fromFormat(e,n,r)},t.fromSQL=function(t,e){void 0===e&&(e={});var n=function(t){return me(t,[Ke,Xe],[$e,Je])}(t);return $n(n[0],n[1],e,"SQL",t)},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new b("need to specify a reason the DateTime is invalid");var r=e instanceof Dt?e:new Dt(e,n);if(ee.throwOnInvalid)throw new d(r);return new t({invalid:r})},t.isDateTime=function(t){return t&&t.isLuxonDateTime||!1};var e=t.prototype;return e.get=function(t){return this[t]},e.resolvedLocaleOpts=function(t){void 0===t&&(t={});var e=It.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(t,e){return void 0===t&&(t=0),void 0===e&&(e={}),this.setZone(qt.instance(t),e)},e.toLocal=function(){return this.setZone(ee.defaultZone)},e.setZone=function(e,n){var r=void 0===n?{}:n,i=r.keepLocalTime,o=void 0!==i&&i,a=r.keepCalendarTime,s=void 0!==a&&a;if((e=Yt(e,ee.defaultZone)).equals(this.zone))return this;if(e.isValid){var u=this.ts;if(o||s){var c=e.offset(this.ts);u=Yn(this.toObject(),c,e)[0]}return Vn(this,{ts:u,zone:e})}return t.invalid(Hn(e))},e.reconfigure=function(t){var e=void 0===t?{}:t,n=e.locale,r=e.numberingSystem,i=e.outputCalendar;return Vn(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},e.setLocale=function(t){return this.reconfigure({locale:t})},e.set=function(t){if(!this.isValid)return this;var e,n=mt(t,or,[]);!q(n.weekYear)||!q(n.weekNumber)||!q(n.weekday)?e=zn(Object.assign(Rn(this.c),n)):q(n.ordinal)?(e=Object.assign(this.toObject(),n),q(n.day)&&(e.day=Math.min(ut(e.year,e.month),e.day))):e=Fn(Object.assign(Bn(this.c),n));var r=Yn(e,this.o,this.zone);return Vn(this,{ts:r[0],o:r[1]})},e.plus=function(t){return this.isValid?Vn(this,Kn(this,un(t))):this},e.minus=function(t){return this.isValid?Vn(this,Kn(this,un(t).negate())):this},e.startOf=function(t){if(!this.isValid)return this;var e={},n=sn.normalizeUnit(t);switch(n){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===n&&(e.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);e.month=3*(r-1)+1}return this.set(e)},e.endOf=function(t){var e;return this.isValid?this.plus((e={},e[t]=1,e)).startOf(t).minus(1):this},e.toFormat=function(t,e){return void 0===e&&(e={}),this.isValid?It.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):"Invalid DateTime"},e.toLocaleString=function(t){return void 0===t&&(t=T),this.isValid?It.create(this.loc.clone(t),t).formatDateTime(this):"Invalid DateTime"},e.toLocaleParts=function(t){return void 0===t&&(t={}),this.isValid?It.create(this.loc.clone(t),t).formatDateTimeParts(this):[]},e.toISO=function(t){return void 0===t&&(t={}),this.isValid?this.toISODate(t)+"T"+this.toISOTime(t):null},e.toISODate=function(t){var e=(void 0===t?{}:t).format,n="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),Xn(this,n)},e.toISOWeekDate=function(){return Xn(this,"kkkk-'W'WW-c")},e.toISOTime=function(t){var e=void 0===t?{}:t,n=e.suppressMilliseconds,r=void 0!==n&&n,i=e.suppressSeconds,o=void 0!==i&&i,a=e.includeOffset,s=void 0===a||a,u=e.format;return Jn(this,{suppressSeconds:o,suppressMilliseconds:r,includeOffset:s,format:void 0===u?"extended":u})},e.toRFC2822=function(){return Xn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return Xn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return Xn(this,"yyyy-MM-dd")},e.toSQLTime=function(t){var e=void 0===t?{}:t,n=e.includeOffset,r=void 0===n||n,i=e.includeZone;return Jn(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},e.toSQL=function(t){return void 0===t&&(t={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(t):null},e.toString=function(){return this.isValid?this.toISO():"Invalid DateTime"},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(t,e,n){if(void 0===e&&(e="milliseconds"),void 0===n&&(n={}),!this.isValid||!t.isValid)return sn.invalid(this.invalid||t.invalid,"created by diffing an invalid DateTime");var r,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),o=(r=e,Array.isArray(r)?r:[r]).map(sn.normalizeUnit),a=t.valueOf()>this.valueOf(),s=dn(a?this:t,a?t:this,o,i);return a?s.negate():s},e.diffNow=function(e,n){return void 0===e&&(e="milliseconds"),void 0===n&&(n={}),this.diff(t.local(),e,n)},e.until=function(t){return this.isValid?fn.fromDateTimes(this,t):this},e.hasSame=function(t,e){if(!this.isValid)return!1;if("millisecond"===e)return this.valueOf()===t.valueOf();var n=t.valueOf();return this.startOf(e)<=n&&n<=this.endOf(e)},e.equals=function(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)},e.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=e.base||t.fromObject({zone:this.zone}),r=e.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return at(this.year)}},{key:"daysInMonth",get:function(){return ut(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?st(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?lt(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return T}},{key:"DATE_MED",get:function(){return k}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return S}},{key:"DATE_FULL",get:function(){return E}},{key:"DATE_HUGE",get:function(){return P}},{key:"TIME_SIMPLE",get:function(){return j}},{key:"TIME_WITH_SECONDS",get:function(){return M}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return A}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return C}},{key:"TIME_24_SIMPLE",get:function(){return L}},{key:"TIME_24_WITH_SECONDS",get:function(){return N}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return I}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return D}},{key:"DATETIME_SHORT",get:function(){return R}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_MED",get:function(){return B}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return F}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return U}},{key:"DATETIME_FULL",get:function(){return W}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return H}},{key:"DATETIME_HUGE",get:function(){return Z}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return V}}]),t}();function cr(t){if(ur.isDateTime(t))return t;if(t&&t.valueOf&&G(t.valueOf()))return ur.fromJSDate(t);if(t&&"object"===typeof t)return ur.fromObject(t);throw new b("Unknown datetime argument: "+t+", of type "+typeof t)}e.DateTime=ur,e.Duration=sn,e.FixedOffsetZone=qt,e.IANAZone=Zt,e.Info=hn,e.Interval=fn,e.InvalidZone=Gt,e.LocalZone=Bt,e.Settings=ee,e.Zone=Rt},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(105),i=n.n(r),o=n(55),a=n.n(o),s=n(0),u=n(43),c=n(44);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.i18n,r=Object(s.useContext)(u.a)||{},o=r.i18n,a=r.defaultNS,l=n||o||Object(u.d)();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new u.b),!l){Object(c.e)("You will need to pass in an i18next instance by using initReactI18next");var h=function(t){return Array.isArray(t)?t[t.length-1]:t},p=[h,{},!1];return p.t=h,p.i18n={},p.ready=!1,p}var d=f(f(f({},Object(u.c)()),l.options.react),e),m=d.useSuspense,y=t||a||l.options&&l.options.defaultNS;y="string"===typeof y?[y]:y||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(y);var v=(l.isInitialized||l.initializedStoreOnce)&&y.every((function(t){return Object(c.b)(t,l,d)}));function g(){return{t:l.getFixedT(null,"fallback"===d.nsMode?y:y[0])}}var b=Object(s.useState)(g()),w=i()(b,2),_=w[0],x=w[1],O=Object(s.useRef)(!0);Object(s.useEffect)((function(){var t=d.bindI18n,e=d.bindI18nStore;function n(){O.current&&x(g())}return O.current=!0,v||m||Object(c.c)(l,y,(function(){O.current&&x(g())})),t&&l&&l.on(t,n),e&&l&&l.store.on(e,n),function(){O.current=!1,t&&l&&t.split(" ").forEach((function(t){return l.off(t,n)})),e&&l&&e.split(" ").forEach((function(t){return l.store.off(t,n)}))}}),[y.join()]);var T=[_.t,l,v];if(T.t=_.t,T.i18n=l,T.ready=v,v)return T;if(!v&&!m)return T;throw new Promise((function(t){Object(c.c)(l,y,(function(){t()}))}))}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function d(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"===typeof u)o(u,this,e);else{var c=u.length,l=y(u,c);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){t.exports=function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return i(e[a][1][t]||t)}),u,u.exports,t,e,n,r)}return n[a].exports}for(var o=!1,a=0;a>16),l((65280&i)>>8),l(255&i);return 2==o?l(255&(i=c(t.charAt(n))<<2|c(t.charAt(n+1))>>4)):1==o&&(l((i=c(t.charAt(n))<<10|c(t.charAt(n+1))<<4|c(t.charAt(n+2))>>2)>>8&255),l(255&i)),a},t.fromByteArray=function(t){var e,n,r,i,o=t.length%3,a="";function s(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)}for(e=0,r=t.length-o;e>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a+=s((n=t[t.length-1])>>2),a+=s(n<<4&63),a+="==";break;case 2:a+=s((n=(t[t.length-2]<<8)+t[t.length-1])>>10),a+=s(n>>4&63),a+=s(n<<2&63),a+="="}return a}}(void 0===n?this.base64js={}:n)}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(t,e,n){(function(e,r,i,o,a,s,u,c,l){var f=t("base64-js"),h=t("ieee754");function i(t,e,n){if(!(this instanceof i))return new i(t,e,n);var r,o,a,s,u,c=typeof t;if("base64"===e&&"string"==c)for(t=(r=t).trim?r.trim():r.replace(/^\s+|\s+$/g,"");t.length%4!=0;)t+="=";if("number"==c)o=j(t);else if("string"==c)o=i.byteLength(t,e);else{if("object"!=c)throw new Error("First argument needs to be a number, array or string.");o=j(t.length)}if(i._useTypedArrays?a=i._augment(new Uint8Array(o)):((a=this).length=o,a._isBuffer=!0),i._useTypedArrays&&"number"==typeof t.byteLength)a._set(t);else if(M(u=t)||i.isBuffer(u)||u&&"object"==typeof u&&"number"==typeof u.length)for(s=0;s>>0)):(e+1>>0),i}function v(t,e,n,r){if(r||(B("boolean"==typeof n,"missing or invalid endian"),B(null!=e,"missing offset"),B(e+1>>8*(r?a:1-a)}function x(t,e,n,r,i){i||(B(null!=e,"missing value"),B("boolean"==typeof r,"missing or invalid endian"),B(null!=n,"missing offset"),B(n+3>>8*(r?a:3-a)&255}function O(t,e,n,r,i){i||(B(null!=e,"missing value"),B("boolean"==typeof r,"missing or invalid endian"),B(null!=n,"missing offset"),B(n+1>8,r=e%256,i.push(r),i.push(n);return i}(e),t,n,r)}(this,t,e,n);break;default:throw new Error("Unknown encoding")}return a},i.prototype.toString=function(t,e,n){var r,i,o,a,s=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,(n=void 0!==n?Number(n):n=s.length)===e)return"";switch(t){case"hex":r=function(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||rthis.length&&(r=this.length),t.length-e=this.length))return this[t]},i.prototype.readUInt16LE=function(t,e){return m(this,t,!0,e)},i.prototype.readUInt16BE=function(t,e){return m(this,t,!1,e)},i.prototype.readUInt32LE=function(t,e){return y(this,t,!0,e)},i.prototype.readUInt32BE=function(t,e){return y(this,t,!1,e)},i.prototype.readInt8=function(t,e){if(e||(B(null!=t,"missing offset"),B(t=this.length))return 128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){return v(this,t,!0,e)},i.prototype.readInt16BE=function(t,e){return v(this,t,!1,e)},i.prototype.readInt32LE=function(t,e){return g(this,t,!0,e)},i.prototype.readInt32BE=function(t,e){return g(this,t,!1,e)},i.prototype.readFloatLE=function(t,e){return b(this,t,!0,e)},i.prototype.readFloatBE=function(t,e){return b(this,t,!1,e)},i.prototype.readDoubleLE=function(t,e){return w(this,t,!0,e)},i.prototype.readDoubleBE=function(t,e){return w(this,t,!1,e)},i.prototype.writeUInt8=function(t,e,n){n||(B(null!=t,"missing value"),B(null!=e,"missing offset"),B(e=this.length||(this[e]=t)},i.prototype.writeUInt16LE=function(t,e,n){_(this,t,e,!0,n)},i.prototype.writeUInt16BE=function(t,e,n){_(this,t,e,!1,n)},i.prototype.writeUInt32LE=function(t,e,n){x(this,t,e,!0,n)},i.prototype.writeUInt32BE=function(t,e,n){x(this,t,e,!1,n)},i.prototype.writeInt8=function(t,e,n){n||(B(null!=t,"missing value"),B(null!=e,"missing offset"),B(e=this.length||(0<=t?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},i.prototype.writeInt16LE=function(t,e,n){O(this,t,e,!0,n)},i.prototype.writeInt16BE=function(t,e,n){O(this,t,e,!1,n)},i.prototype.writeInt32LE=function(t,e,n){T(this,t,e,!0,n)},i.prototype.writeInt32BE=function(t,e,n){T(this,t,e,!1,n)},i.prototype.writeFloatLE=function(t,e,n){k(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){k(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){S(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){S(this,t,e,!1,n)},i.prototype.fill=function(t,e,n){if(t=t||0,e=e||0,n=n||this.length,"string"==typeof t&&(t=t.charCodeAt(0)),B("number"==typeof t&&!isNaN(t),"value is not a number"),B(e<=n,"end < start"),n!==e&&0!==this.length){B(0<=e&&e"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;e=e.length||i>=t.length);i++)e[i+n]=t[i];return i}function I(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function D(t,e){B("number"==typeof t,"cannot write a non-number as a number"),B(0<=t,"specified a negative value for writing an unsigned value"),B(t<=e,"value is larger than maximum value for type"),B(Math.floor(t)===t,"value has a fractional component")}function R(t,e,n){B("number"==typeof t,"cannot write a non-number as a number"),B(t<=e,"value larger than maximum allowed value"),B(n<=t,"value smaller than minimum allowed value"),B(Math.floor(t)===t,"value has a fractional component")}function z(t,e,n){B("number"==typeof t,"cannot write a non-number as a number"),B(t<=e,"value larger than maximum allowed value"),B(n<=t,"value smaller than minimum allowed value")}function B(t,e){if(!t)throw new Error(e||"Failed assertion")}i._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=E.get,t.set=E.set,t.write=E.write,t.toString=E.toString,t.toLocaleString=E.toString,t.toJSON=E.toJSON,t.copy=E.copy,t.slice=E.slice,t.readUInt8=E.readUInt8,t.readUInt16LE=E.readUInt16LE,t.readUInt16BE=E.readUInt16BE,t.readUInt32LE=E.readUInt32LE,t.readUInt32BE=E.readUInt32BE,t.readInt8=E.readInt8,t.readInt16LE=E.readInt16LE,t.readInt16BE=E.readInt16BE,t.readInt32LE=E.readInt32LE,t.readInt32BE=E.readInt32BE,t.readFloatLE=E.readFloatLE,t.readFloatBE=E.readFloatBE,t.readDoubleLE=E.readDoubleLE,t.readDoubleBE=E.readDoubleBE,t.writeUInt8=E.writeUInt8,t.writeUInt16LE=E.writeUInt16LE,t.writeUInt16BE=E.writeUInt16BE,t.writeUInt32LE=E.writeUInt32LE,t.writeUInt32BE=E.writeUInt32BE,t.writeInt8=E.writeInt8,t.writeInt16LE=E.writeInt16LE,t.writeInt16BE=E.writeInt16BE,t.writeInt32LE=E.writeInt32LE,t.writeInt32BE=E.writeInt32BE,t.writeFloatLE=E.writeFloatLE,t.writeFloatBE=E.writeFloatBE,t.writeDoubleLE=E.writeDoubleLE,t.writeDoubleBE=E.writeDoubleBE,t.fill=E.fill,t.inspect=E.inspect,t.toArrayBuffer=E.toArrayBuffer,t}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(t,e,n){(function(n,r,i,o,a,s,u,c,l){var f=new(i=t("buffer").Buffer)(4);f.fill(0),e.exports={hash:function(t,e,n,r){return i.isBuffer(t)||(t=new i(t)),function(t,e,n){for(var r=new i(e),o=n?r.writeInt32BE:r.writeInt32LE,a=0;am?e=t(e):e.length>5]|=128<>>9<<4)]=e;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a>>32-s,n);var a,s}function d(t,e,n,r,i,o,a){return p(e&n|~e&r,t,e,i,o,a)}function m(t,e,n,r,i,o,a){return p(e&r|n&~r,t,e,i,o,a)}function y(t,e,n,r,i,o,a){return p(e^n^r,t,e,i,o,a)}function v(t,e,n,r,i,o,a){return p(n^(e|~r),t,e,i,o,a)}function g(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}e.exports=function(t){return f.hash(t,h,16)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(t,e,n){(function(t,n,r,i,o,a,s,u,c){var l;l=function(t){for(var e,n=new Array(t),r=0;r>>((3&r)<<3)&255;return n},e.exports=l}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(t,e,n){(function(n,r,i,o,a,s,u,c,l){var f=t("./helpers");function h(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n,r=Array(80),i=1732584193,o=-271733879,a=-1732584194,s=271733878,u=-1009589776,c=0;c>16)+(e>>16)+(n>>16)<<16|65535&n}function m(t,e){return t<>>32-e}e.exports=function(t){return f.hash(t,h,20,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(t,e,n){(function(n,r,i,o,a,s,u,c,l){function f(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function h(t,e){return t>>>e|t<<32-e}function p(t,e){return t>>>e}function d(t,e){var n,r,i,o,a,s,u,c,l,d,m,y,v,g,b,w,_,x,O=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),T=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),k=new Array(64);t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var S=0;S>1,l=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=s;0>=-l,l+=r;0>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(e+=1<=a+f?h/u:h*Math.pow(2,1-f))*u&&(a++,u/=2),l<=a+f?(s=0,a=l):1<=a+f?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));8<=i;t[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";t.exports=!0},function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(8),i=n(67),o=n(32),a=n(30)("IE_PROTO"),s=function(){},u=function(){var t,e=n(43)("iframe"),r=o.length;for(e.style.display="none",n(70).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("