← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20722: Add settings app

 

------------------------------------------------------------
revno: 20722
committer: Nicolay Ramm <nicolayr@xxxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-10-15 16:07:18 +0200
message:
  Add settings app
added:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_en.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_es.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_fr.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_id.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_km.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_lo.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_my.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_pt.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_pt_BR.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_ru.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_tg.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_vi.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_zh.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/index.html
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/manifest.webapp
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/settings-app.js
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dhis-web-settings.png
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_ar.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_es.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_fr.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_id.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_km.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_lo.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_my.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_pt.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_pt_BR.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_ru.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_tet.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_tg.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_vi.properties
  dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_zh.properties
  dhis-2/dhis-web/dhis-web-apps/src/main/resources/struts.xml
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-apps/index.html


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global.properties	2015-10-03 19:23:05 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global.properties	2015-10-15 14:07:18 +0000
@@ -81,7 +81,7 @@
 intro_dhis-web-maintenance-organisationunit=Maintain organisation units and its hierarchy, groups and group sets.
 intro_dhis-web-maintenance-user=Maintain users in terms of authorities and passwords, user roles and groups.
 intro_dhis-web-maintenance-dataadmin=Maintain resource tables, check data integrity, see statistics and more.
-intro_dhis-web-maintenance-settings=Maintain user and system settings related to appearance, notifications and more.
+intro_dhis-web-settings=Maintain user and system settings related to appearance, notifications and more.
 intro_dhis-web-maintenance-program=Maintain tracked entities and programs including attributes and identifiers.
 intro_dhis-web-maintenance-mobile=Maintain data sets plus settings for mobile reporting and SMS configuration.
 intro_dhis-web-maintenance-appmanager=Access and upload apps, which are extensions to the standard user interface.
@@ -1017,3 +1017,5 @@
 event_count=Event count
 enrollment_count=Enrollment count
 tei_count=Tracked entity instance count
+dhis-web-settings=Settings
+

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_ar.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_ar.properties	2014-12-17 10:03:49 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_ar.properties	2015-10-15 14:07:18 +0000
@@ -586,7 +586,7 @@
 armenia=\u0627\u0631\u0645\u064a\u0646\u064a\u0627
 bangladesh=\u0628\u0646\u063a\u0644\u0627\u062f\u064a\u0634
 caused_by=\u062a\u0633\u0628\u0628 \u0645\u0646 \u0642\u0628\u0644 
-intro_dhis-web-maintenance-settings=\u0635\u064a\u0627\u0646\u0629 \u0627\u0639\u062f\u062f\u0627\u062a \u0627\u0644\u0646\u0638\u0627\u0645 \u0648\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0645\u062a\u0639\u0644\u0642\u0629 \u0628\u0627\u0644\u0638\u0647\u0648\u0631 \u060c \u0627\u0644\u0627\u062e\u0637\u0627\u0631\u0627\u062a \u0648\u0627\u0644\u0645\u0632\u064a\u062f 
+intro_dhis-web-settings=\u0635\u064a\u0627\u0646\u0629 \u0627\u0639\u062f\u062f\u0627\u062a \u0627\u0644\u0646\u0638\u0627\u0645 \u0648\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0645\u062a\u0639\u0644\u0642\u0629 \u0628\u0627\u0644\u0638\u0647\u0648\u0631 \u060c \u0627\u0644\u0627\u062e\u0637\u0627\u0631\u0627\u062a \u0648\u0627\u0644\u0645\u0632\u064a\u062f
 benin=\u0628\u064a\u0646\u064a\u0646
 bhutan=\u0628\u0648\u062a\u0627\u0646
 botswana=\u0628\u062a\u0633\u0648\u0627\u0646\u0627
@@ -725,4 +725,5 @@
 intro_profile=\u0627\u0636\u0628\u0637 \u0645\u0644\u0641\u0643 \u0627\u0644\u0634\u062e\u0635\u064a \u0645\u0639 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0645\u062b\u0644 \u0627\u0633\u0645 \u0627\u0644\u0645\u0647\u0646\u0629 \u0648\u0627\u0644\u0627\u0647\u062a\u0645\u0627\u0645\u0627\u062a 
 intro_account=\u062e\u0637\u0637 \u062d\u0633\u0627\u0628\u0643 \u0645\u0646 \u0636\u0645\u0646\u0647 \u0627\u0644\u0627\u0633\u0645\u060c \u0643\u0644\u0645\u0629 \u0627\u0644\u0633\u0631\u060c \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0627\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0648\u0627\u0644\u0645\u0648\u0628\u0627\u064a\u0644
 intro_log_out=\u0627\u0630\u0647\u0628 \u0647\u0646\u0627 \u0644\u062a\u0633\u062c\u0644 \u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0627\u0644\u0646\u0638\u0627\u0645 \u0648\u062a\u0645\u0646\u0639 \u0627\u0644\u0627\u062e\u0631\u064a\u0646 \u0645\u0646 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u062d\u0633\u0627\u0628\u0643
-offline=\u0642\u0637\u0639 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0627\u0644\u0646\u062a
+offline=\u0642\u0637\u0639 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0627\u0644\u0646\u062a
+dhis-web-settings=\u0627\u0639\u062f\u0627\u062f\u0627\u062a

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_es.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_es.properties	2014-11-05 09:10:58 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_es.properties	2015-10-15 14:07:18 +0000
@@ -494,7 +494,7 @@
 botswana=Botsuana
 burkina_faso_coat_of_arms=Escudo de armas de Burkina Faso
 cambodia=Camboya
-intro_dhis-web-maintenance-settings=Mantenimiento de usuario y ajustes de sistema relacionados con la apariencia, notificaciones y m\u00e1s.
+intro_dhis-web-settings=Mantenimiento de usuario y ajustes de sistema relacionados con la apariencia, notificaciones y m\u00e1s.
 congo_brazzaville=Rep\u00fablica del Congo
 congo_kinshasa=Rep\u00fablica Democr\u00e1tica del Congo
 ethiopia=Etiop\u00eda
@@ -560,4 +560,5 @@
 intro_account=Administrar su cuenta de usuario incluyendo nombre, contrase\u00f1a, correo electr\u00f3nico y tel\u00e9fono m\u00f3vil.
 intro_log_out=Venga aqu\u00ed para salir del sistema e impedir el acceso de otros usuarios a su cuenta.
 offline=Desconectado
-online=Conectado
+online=Conectado
+dhis-web-settings=Configuraci\u00f3n

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_fr.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_fr.properties	2015-10-12 05:17:34 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_fr.properties	2015-10-15 14:07:18 +0000
@@ -81,7 +81,7 @@
 intro_dhis-web-maintenance-organisationunit=G\u00E9rer les unit\u00E9s d'organisation ainsi que leur hi\u00E9rarchie, leurs groupes et leurs ensembles de groupes.
 intro_dhis-web-maintenance-user=G\u00E9rer les utilisateurs en termes droits, mots de passe, r\u00F4les des utilisateurs et groupes.
 intro_dhis-web-maintenance-dataadmin=G\u00E9rer les tables de ressources, v\u00E9rifier l'int\u00E9grit\u00E9 des donn\u00E9es, voir les statistiques et plus.
-intro_dhis-web-maintenance-settings=G\u00E9rer les param\u00E8tres utilisateur et syst\u00E8me li\u00E9s \u00E0 l'apparence, notifications et autres.
+intro_dhis-web-settings=G\u00E9rer les param\u00E8tres utilisateur et syst\u00E8me li\u00E9s \u00E0 l'apparence, notifications et autres.
 intro_dhis-web-maintenance-program=Maintenance des entit\u00E9s suivies et des programmes, attributs et identifiants
 intro_dhis-web-maintenance-mobile=G\u00E9rer les ensembles de donn\u00E9es ainsi que les param\u00E8tres pour le rapportage mobile et configuration de SMS.
 intro_dhis-web-maintenance-appmanager=Charger des applications sur le serveur et y acc\u00E9der. Les applications sont des extensions \u00E0 l'interface utilisateur standard.
@@ -961,3 +961,4 @@
 event_count=Nombre d'\u00E9v\u00E8nements
 enrollment_count=Nombre d'enregistrements
 tei_count=Nombre d'entit\u00E9s suivies
+dhis-web-settings=Param\u00E8tres

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_id.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_id.properties	2014-07-06 17:12:17 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_id.properties	2015-10-15 14:07:18 +0000
@@ -236,7 +236,7 @@
 dhis-web-maintenance-in=Konfigurasi
 intro_dhis-web-maintenance-dataset=mempertahankan set-set data, format-format kustom, bagian-bagian dan data-data elemen yang wajib
 intro_dhis-web-maintenance-user=mempertahankan pengguna-pengguna dan rangka kewenangan-kewenangan dan password-password, peran pengguna dan grup-grup
-intro_dhis-web-maintenance-settings=mempertahankan pengguna dan seting sistem berhubungan dengan tampilan, pemberitahuan dan yang lainnya
+intro_dhis-web-settings=mempertahankan pengguna dan seting sistem berhubungan dengan tampilan, pemberitahuan dan yang lainnya
 intro_dhis-web-maintenance-patient=mempertahankan penerima manfaat dan program-program termasuk atribut-atribut dan pengidentifikasi
 intro_dhis-web-validationrule=memvalidasi dan mengakses kualitas data menggunakan aturan-aturan validasi atau metode-metode statistik
 intro_dhis-web-reporting=analisa data menggunakan peralatan laporan standar dan dinamis dan melihat rata-rata laporan
@@ -628,3 +628,4 @@
 move_all=Pindahkan semua
 users=Pengguna
 sri_lanka=Sri Lanka
+dhis-web-settings=pengaturan

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_km.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_km.properties	2015-06-01 06:36:35 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_km.properties	2015-10-15 14:07:18 +0000
@@ -354,4 +354,6 @@
 email_invite_1_1st_paragraph_after_application_title=User Account
 email_invite_2_1st_paragraph_after_application_title=User Account
 logged_in=\u1794\u17b6\u1793\u200b\u1785\u17bc\u179b\u200b\u1782\u178e\u1793\u17b8
-offline=\u1780\u17d2\u179a\u17c5\u200b\u1794\u178e\u17d2\u178a\u17b6\u1789\u17a2\u17b7\u1793\u1792\u17ba\u179a\u178e\u17c2\u178f
+offline=\u1780\u17d2\u179a\u17c5\u200b\u1794\u178e\u17d2\u178a\u17b6\u1789\u17a2\u17b7\u1793\u1792\u17ba\u179a\u178e\u17c2\u178f
+dhis-web-settings=\u1780\u17c6\u178e\u178f\u17cb
+

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_lo.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_lo.properties	2014-10-17 08:19:44 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_lo.properties	2015-10-15 14:07:18 +0000
@@ -503,7 +503,7 @@
 dhis-web-event-capture=\u200b\u0e81\u0eb2\u0e99\u200b\u0ec0\u0e81\u0eb1\u0e9a\u200b\u0e81\u0eb3\u200b\u0ec4\u0e94\u0ec9\u200b\u0ec0\u0eab\u0e94\u200b\u0e81\u0eb2\u0e99\u200b\u0e95\u0ec8\u0eb2\u0e87\u0ec6
 intro_dhis-web-maintenance-datadictionary=\u200b\u0e81\u0eb2\u0e99\u200b\u0e9b\u0eb1\u0e9a\u200b\u0e9b\u0eb8\u0e87\u200b\u0ead\u0ebb\u0e87\u200b\u0e9b\u0eb0\u200b\u0e81\u0ead\u0e9a\u200b\u0e82\u0ecd\u0ec9\u200b\u0ea1\u0eb9\u0e99, \u0e95\u0ebb\u0ea7\u200b\u0e8a\u0eb5\u0ec9\u200b\u0ea7\u0eb1\u0e94, \u0e81\u0eb2\u0e99\u200b\u0ec1\u0e9b\u200b\u0e84\u0ea7\u0eb2\u0ea1\u200b\u0edd\u0eb2\u0e8d\u200b\u0e82\u0ecd\u0ec9\u200b\u0ea1\u0eb9\u0e99, \u0e9b\u0eb0\u200b\u0ec0\u0e9e\u0e94\u200b\u0e82\u0ecd\u0ec9\u200b\u0ea1\u0eb9\u0e99 \u0ec1\u0ea5\u0eb0 \u0e81\u0eb2\u0e99\u200b\u0ec1\u0e9a\u0ec8\u0e87\u200b\u0e81\u0eb8\u0ec8\u0ea1
 intro_dhis-web-maintenance-dataadmin=\u200b\u0e81\u0eb2\u0e99\u200b\u0e9b\u0eb1\u0e9a\u200b\u0e9b\u0eb8\u0e87\u200b\u0e95\u200b\u0eb2\u200b\u0e95\u0eb0\u200b\u0ea5\u0eb2\u0e87\u200b\u0ec1\u0eab\u0ea5\u0ec8\u0e87\u200b\u0e97\u0eb5\u0ec8\u200b\u0ea1\u0eb2, \u0e81\u0eb2\u0e99\u0e81\u0ea7\u0e94\u200b\u0e81\u0eb2\u200b\u0e81\u0eb2\u0e99\u200b\u0e9b\u0eb0\u200b\u0eaa\u0eb2\u0e99\u200b\u0e82\u0ead\u0e87\u200b\u0e82\u0ecd\u0ec9\u200b\u0ea1\u0eb9\u0e99, \u0ec0\u0e9a\u0eb5\u0ec8\u0e87\u200b\u0eaa\u0eb0\u200b\u0e96\u0eb4\u200b\u0e95\u0eb4 \u0ec1\u0ea5\u0eb0 \u0ead\u0eb7\u0ec8\u0e99\u0ec6\u200b\u0ead\u0eb5\u0e81
-intro_dhis-web-maintenance-settings=Maintain user and system settings related to appearance, notifications and more.
+intro_dhis-web-settings=Maintain user and system settings related to appearance, notifications and more.
 intro_dhis-web-maintenance-program=Maintain tracked entities and programs including attributes and identifiers.
 intro_dhis-web-visualizer=Create dynamic data visualizations for data elements and indicators.
 intro_dhis-web-spreadsheet-reporting=Generate and import data based on predefined Excel templates.
@@ -748,3 +748,4 @@
 value_not_positive_integer=Data value is not a positive integer
 nepali=Nepali
 coptic=Coptic
+dhis-web-settings=\u0e95\u0eb1\u0ec9\u0e87\u0e84\u0ec8\u0eb2

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_my.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_my.properties	2014-07-06 17:12:17 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_my.properties	2015-10-15 14:07:18 +0000
@@ -541,7 +541,7 @@
 india=\u1021\u102D\u1014\u1039\u1012\u102D\u101A\u1014\u102D\u102F\u1004\u103A\u1004\u1036
 india=\u1021\u102D\u1014\u1039\u1012\u102D\u101A\u1014\u102D\u102F\u1004\u103A\u1004\u1036
 indonesia=\u1021\u1004\u103A\u1012\u102D\u102F\u1014\u102E\u1038\u101B\u103E\u102C\u1038\u1014\u102D\u102F\u1004\u103A\u1004\u1036
-intro_dhis-web-maintenance-settings=\u1021\u1015\u103C\u1004\u103A\u1021\u1006\u1004\u103A\u104A \u101E\u1010\u102D\u1015\u1031\u1038\u1001\u103B\u1000\u103A\u1010\u102D\u102F\u1037\u1014\u103E\u1004\u103A\u1037\u101E\u1000\u103A\u1006\u102D\u102F\u1004\u103A\u101E\u1031\u102C \u1005\u1014\u1005\u103A\u1010\u100A\u103A\u1006\u1031\u102C\u1000\u103A\u1019\u103E\u102F\u1015\u102F\u1036\u1005\u1036\u1014\u103E\u1004\u103A\u1037\u1021\u101E\u102F\u1036\u1038\u1015\u103C\u102F\u101E\u1030\u1000\u102D\u102F\u1001\u103D\u1032\u1001\u103C\u102C\u1038\u1011\u102D\u1014\u103A\u1038\u101E\u102D\u1019\u103A\u1038\u1001\u103C\u1004\u103A\u1038
+intro_dhis-web-settings=\u1021\u1015\u103C\u1004\u103A\u1021\u1006\u1004\u103A\u104A \u101E\u1010\u102D\u1015\u1031\u1038\u1001\u103B\u1000\u103A\u1010\u102D\u102F\u1037\u1014\u103E\u1004\u103A\u1037\u101E\u1000\u103A\u1006\u102D\u102F\u1004\u103A\u101E\u1031\u102C \u1005\u1014\u1005\u103A\u1010\u100A\u103A\u1006\u1031\u102C\u1000\u103A\u1019\u103E\u102F\u1015\u102F\u1036\u1005\u1036\u1014\u103E\u1004\u103A\u1037\u1021\u101E\u102F\u1036\u1038\u1015\u103C\u102F\u101E\u1030\u1000\u102D\u102F\u1001\u103D\u1032\u1001\u103C\u102C\u1038\u1011\u102D\u1014\u103A\u1038\u101E\u102D\u1019\u103A\u1038\u1001\u103C\u1004\u103A\u1038
 irc=\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1000\u102C\u1000\u101A\u103A\u1006\u101A\u103A\u101B\u1031\u1038\u1021\u1016\u103D\u1032\u1037
 ivory_coast=\u1021\u102D\u102F\u1004\u103A\u1017\u101B\u102E\u1000\u102D\u102F\u1037\u1005\u103A\u1014\u102D\u102F\u1004\u103A\u1004\u1036
 kenya=\u1000\u1004\u103A\u100A\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036
@@ -620,4 +620,5 @@
 offline=\u1021\u1004\u103A\u1010\u102C\u1014\u1000\u103A\u1014\u103E\u1004\u103A\u1037\u1019\u1001\u103B\u102D\u1010\u103A\u1006\u1000\u103A\u1011\u102C\u1038\u1015\u102B
 online=\u1021\u1004\u103A\u1010\u102C\u1014\u1000\u103A\u1014\u103E\u1004\u103A\u1037\u1001\u103B\u102D\u1010\u103A\u1006\u1000\u103A\u1011\u102C\u1038\u101E\u100A\u103A
 next=\u101B\u103E\u1031\u1037\u101E\u102D\u102F\u1037
-previous=\u1014\u1031\u102C\u1000\u103A\u101E\u102D\u102F\u1037
+previous=\u1014\u1031\u102C\u1000\u103A\u101E\u102D\u102F\u1037
+dhis-web-settings=\u1010\u1015\u103A\u1006\u1004\u103A/ \u1010\u100A\u103A\u1006\u1031\u102C\u1000\u103A\u1011\u102C\u1038\u101E\u100A\u103A\u1037\u1015\u102F\u1036\u1005\u1036

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_pt.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_pt.properties	2014-07-06 17:12:17 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_pt.properties	2015-10-15 14:07:18 +0000
@@ -10,7 +10,7 @@
 dhis-web-appmanager=Aplica\u00E7\u00F5es
 weekday.tuesday=Ter\u00E7a-Feira
 retype_new_password=Reintroduza nova password
-intro_dhis-web-maintenance-settings=Manter utilizador e configura\u00E7\u00F5es do sistema relacionados \u00E0 apar\u00EAncia, notifica\u00E7\u00F5es e muito mais.
+intro_dhis-web-settings=Manter utilizador e configura\u00E7\u00F5es do sistema relacionados \u00E0 apar\u00EAncia, notifica\u00E7\u00F5es e muito mais.
 login_password=Password
 new=Novo
 not_equal_to=\!\=
@@ -643,3 +643,4 @@
 nationality=Nacionalidade
 update_access_denied_message=N\u00E3o tem permiss\u00F5es de actualiza\u00E7\u00E3o sobre o objecto
 please_enter_at_least_n_words=Por favor, introduza pelo menos {0} palavras.
+dhis-web-settings=Configura\u00E7\u00F5es

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_pt_BR.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_pt_BR.properties	2014-07-06 17:12:17 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_pt_BR.properties	2015-10-15 14:07:18 +0000
@@ -11,7 +11,7 @@
 no_page_specified=Nenhuma p\u00E1gina especificada
 weekday.tuesday=Ter\u00E7a-Feira
 retype_new_password=Reintroduza nova password
-intro_dhis-web-maintenance-settings=Manter utilizador e configura\u00E7\u00F5es do sistema relacionados \u00E0 apar\u00EAncia, notifica\u00E7\u00F5es e muito mais.
+intro_dhis-web-settings=Manter utilizador e configura\u00E7\u00F5es do sistema relacionados \u00E0 apar\u00EAncia, notifica\u00E7\u00F5es e muito mais.
 new=Novo
 not_equal_to=\!\=
 dhis-web-maintenance-in=Configura\u00E7\u00E3o
@@ -605,3 +605,4 @@
 nationality=Nacionalidade
 update_access_denied_message=N\u00E3o tem permiss\u00F5es de actualiza\u00E7\u00E3o sobre o objecto
 please_enter_at_least_n_words=Por favor, introduza pelo menos {0} palavras.
+dhis-web-settings=Configura\u00E7\u00F5es

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_ru.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_ru.properties	2014-07-06 17:12:17 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_ru.properties	2015-10-15 14:07:18 +0000
@@ -75,7 +75,7 @@
 intro_dhis-web-maintenance-organisationunit = \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0439 \u0438 \u0438\u0445 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438, \u0433\u0440\u0443\u043F\u043F \u0438 \u043D\u0430\u0431\u043E\u0440\u043E\u0432 \u0433\u0440\u0443\u043F\u043F
 intro_dhis-web-maintenance-user = \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439 \u0432 \u0447\u0430\u0441\u0442\u0438 \u043F\u043E\u043B\u043D\u043E\u043C\u043E\u0447\u0438\u0439 \u0438 \u043F\u0430\u0440\u043E\u043B\u0435\u0439, \u0443\u0440\u043E\u0432\u043D\u0435\u0439 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u0438 \u0433\u0440\u0443\u043F\u043F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439.
 intro_dhis-web-maintenance-dataadmin = \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043D\u044B\u0445 \u0442\u0430\u0431\u043B\u0438\u0446, \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0446\u0435\u043B\u043E\u0441\u0442\u043D\u043E\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u044B\u0445, \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043A\u0438 \u0438 \u0442\u0430\u043A \u0434\u0430\u043B\u0435\u0435.
-intro_dhis-web-maintenance-settings = \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439 \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B, \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0441 \u0432\u043D\u0435\u0448\u043D\u0438\u043C \u0432\u0438\u0434\u043E\u043C, \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F\u043C\u0438 \u0438 \u0442\u0430\u043A \u0434\u0430\u043B\u0435\u0435.
+intro_dhis-web-settings = \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439 \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B, \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0441 \u0432\u043D\u0435\u0448\u043D\u0438\u043C \u0432\u0438\u0434\u043E\u043C, \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F\u043C\u0438 \u0438 \u0442\u0430\u043A \u0434\u0430\u043B\u0435\u0435.
 intro_dhis-web-maintenance-patient = \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435 \u0431\u0435\u043D\u0435\u0444\u0438\u0446\u0438\u0430\u0440\u0438\u0435\u0432 \u0438 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B, \u0432\u043A\u043B\u044E\u0447\u0430\u044F \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044B \u0438 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B
 intro_dhis-web-maintenance-mobile = \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435 \u043D\u0430\u0431\u043E\u0440\u043E\u0432 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u043B\u044E\u0441 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0434\u043B\u044F \u043C\u043E\u0431\u0438\u043B\u044C\u043D\u043D\u043E\u0439 \u043E\u0442\u0447\u0435\u0442\u043D\u043E\u0441\u0442\u0438 \u0438 \u0421\u041C\u0421 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438
 intro_dhis-web-caseentry = \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0431\u0435\u043D\u0435\u0444\u0438\u0446\u0438\u0430\u0440\u0438\u0435\u0432, \u0432\u0432\u043E\u0434 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u043E \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u0430\u043C \u0438 \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C, \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043E\u0442\u0447\u0435\u0442\u043E\u0432.
@@ -710,3 +710,4 @@
 create_an_account = \u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0443\u0447\u0435\u0442\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C
 wrong_username_or_password = \u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0438\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0438\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C
 powered_by = \u041D\u0430 \u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0435
+dhis-web-settings=\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_tet.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_tet.properties	2015-03-30 09:51:31 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_tet.properties	2015-10-15 14:07:18 +0000
@@ -77,7 +77,7 @@
 intro_dhis-web-maintenance-organisationunit=Mantein unidades organizasionais ho nia ierarkia, grupus no konjuntu grupus.
 intro_dhis-web-maintenance-user=Mantein utilizadores ein termus de autoridades i se\u00F1as, kompetensias utilizador no grupus.
 intro_dhis-web-maintenance-dataadmin=Mantein tabela rekursus, verifika integridade dadus, har\u00E9 estat\u00EDstikas no seluk tan.
-intro_dhis-web-maintenance-settings=Mantein utilizador no definisoens sitema ne'eb\u00E9 relasiona ho aparensia, notifikasaun no seluk tan.
+intro_dhis-web-settings=Mantein utilizador no definisoens sitema ne'eb\u00E9 relasiona ho aparensia, notifikasaun no seluk tan.
 intro_dhis-web-maintenance-program=Mantein entidade no programas rastreadus inklui atributus no identifikadores.
 intro_dhis-web-maintenance-mobile=Mantein pakote dadus no m\u00F3s definisoens ba relat\u00F3riu m\u00F3vel no konfigurasaun SMS.
 intro_dhis-web-maintenance-appmanager=Asesu no hasae aplikasoens, ne'eb\u00E9 sai nudar extensaun ba interfase utilizador padraun.
@@ -827,4 +827,5 @@
 email_invite_2_1st_paragraph_before_application_title=Ne'e konvite atu kria
 email_invite_2_1st_paragraph_after_application_title=konta utilizador
 email_invite_2_2nd_paragraph=Haruka ona email rua ba itabo'ot, ida ne'e segundu email. Favor le primeiru email no halo tuir instrusoens ne'eb\u00E9 fo iha ne'eb\u00E1. Favor uza k\u00F3digu tuir mai ne'e atu kompleta formul\u00E1riu konta foun.
-email_invite_2_3rd_paragraph=Itabo'ot tenki hat\u00E1n ba konvite ida ne'e iha fulan tolu nia laran. Se itabo'ot la halo buat ida, konvite ne'e sei expira iha tempu ne'eb\u00E1.
\ No newline at end of file
+email_invite_2_3rd_paragraph=Itabo'ot tenki hat\u00E1n ba konvite ida ne'e iha fulan tolu nia laran. Se itabo'ot la halo buat ida, konvite ne'e sei expira iha tempu ne'eb\u00E1.
+dhis-web-settings=Konfigurasaun
\ No newline at end of file

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_tg.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_tg.properties	2014-07-06 17:12:17 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_tg.properties	2015-10-15 14:07:18 +0000
@@ -75,7 +75,7 @@
 intro_dhis-web-maintenance-organisationunit = \u041D\u0438\u0433\u043E\u04B3\u0434\u043E\u0440\u0438\u0438 \u0432\u043E\u04B3\u0438\u0434\u04B3\u043E\u0438 \u0441\u043E\u0445\u0442\u043E\u0440\u04E3 \u0432\u0430 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044F\u0438 \u043E\u043D\u04B3\u043E, \u0433\u0443\u0440\u04EF\u04B3\u04B3\u043E \u0432\u0430 \u043C\u0430\u04B7\u043C\u04EF\u0438 \u0433\u0443\u0440\u04EF\u04B3\u04B3\u043E.
 intro_dhis-web-maintenance-user = \u041D\u0438\u0433\u043E\u04B3\u0434\u043E\u0440\u0438\u0438 \u043A\u043E\u0440\u0431\u0430\u0440\u043E\u043D \u0434\u0430\u0440 \u043C\u0430\u0432\u0440\u0438\u0434\u0438 \u0432\u0430\u043A\u043E\u043B\u0430\u0442\u04B3\u043E, \u043F\u0430\u0440\u043E\u043B\u04B3\u043E, \u0432\u0430\u0437\u0438\u0444\u0430\u04B3\u043E\u0438 \u043A\u043E\u0440\u0431\u0430\u0440\u043E\u043D \u0432\u0430 \u0433\u0443\u0440\u04EF\u04B3\u04B3\u043E.
 intro_dhis-web-maintenance-dataadmin = \u041D\u0438\u0433\u043E\u04B3\u0434\u043E\u0440\u0438\u0438\u04B7\u0430\u0434\u0432\u0430\u043B\u04B3\u043E\u0438 \u0437\u0430\u0445\u0438\u0440\u0430\u0432\u04E3, \u0442\u0430\u0444\u0442\u0438\u0448\u0438 \u044F\u043A\u043F\u043E\u0440\u0447\u0430\u0433\u0438\u0438 \u0438\u0442\u0442\u0438\u043B\u043E\u043E\u0442, \u0434\u0438\u0434\u0430\u043D\u0438 \u043E\u043C\u043E\u0440 \u0432\u0430 \u0493\u0430\u0439\u0440\u0430.
-intro_dhis-web-maintenance-settings = \u041D\u0438\u0433\u043E\u04B3\u0434\u043E\u0440\u0438\u0438 \u0442\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u043A\u043E\u0440\u0431\u0430\u0440 \u0432\u0430 \u0441\u0438\u0441\u0442\u0435\u043C\u0430, \u043A\u0438 \u0431\u0430 \u043D\u0430\u043C\u0443\u0434\u0438 \u0437\u043E\u04B3\u0438\u0440\u04E3, \u043E\u0433\u043E\u04B3\u0438\u04B3\u043E \u0432\u0430 \u0493\u0430\u0439\u0440\u0430 \u043C\u0430\u0440\u0431\u0443\u0442\u0430\u043D\u0434.
+intro_dhis-web-settings = \u041D\u0438\u0433\u043E\u04B3\u0434\u043E\u0440\u0438\u0438 \u0442\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u043A\u043E\u0440\u0431\u0430\u0440 \u0432\u0430 \u0441\u0438\u0441\u0442\u0435\u043C\u0430, \u043A\u0438 \u0431\u0430 \u043D\u0430\u043C\u0443\u0434\u0438 \u0437\u043E\u04B3\u0438\u0440\u04E3, \u043E\u0433\u043E\u04B3\u0438\u04B3\u043E \u0432\u0430 \u0493\u0430\u0439\u0440\u0430 \u043C\u0430\u0440\u0431\u0443\u0442\u0430\u043D\u0434.
 intro_dhis-web-maintenance-patient = \u041D\u0438\u0433\u043E\u04B3\u0434\u043E\u0440\u0438\u0438 \u043C\u0430\u043D\u0444\u0438\u0430\u0442\u0433\u0438\u0440\u0430\u043D\u0434\u0430\u0433\u043E\u043D \u0432\u0430 \u0431\u0430\u0440\u043D\u043E\u043C\u0430\u04B3\u043E, \u0430\u0437 \u04B7\u0443\u043C\u043B\u0430 \u043D\u0438\u0448\u043E\u043D\u04B3\u043E \u0432\u0430 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u04B3\u043E.
 intro_dhis-web-maintenance-mobile = \u041D\u0438\u0433\u043E\u04B3\u0434\u043E\u0440\u0438\u0438 \u043C\u0430\u04B7\u043C\u04EF\u044A\u04B3\u043E\u0438 \u0438\u0442\u0442\u0438\u043B\u043E\u043E\u0442 \u0431\u043E \u0438\u043B\u043E\u0432\u0430\u0438 \u0442\u0430\u043D\u0437\u0438\u043C\u043E\u0442 \u0431\u0430\u0440\u043E\u0438 \u04B3\u0438\u0441\u043E\u0431\u043E\u0442\u0434\u0438\u04B3\u0438\u0438 \u043C\u043E\u0431\u0438\u043B\u04E3 \u0432\u0430 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0442\u0441\u0438\u044F\u0438 \u0421\u041C\u0421.
 intro_dhis-web-caseentry = \u0411\u0430\u049B\u0430\u0439\u0434\u0433\u0438\u0440\u0438\u0438 \u043C\u0430\u043D\u0444\u0438\u0430\u0442\u0433\u0438\u0440\u0430\u043D\u0434\u0430\u0433\u043E\u043D, \u0432\u043E\u0440\u0438\u0434 \u043A\u0430\u0440\u0434\u0430\u043D\u0438 \u0438\u0442\u0442\u0438\u043B\u043E\u043E\u0442 \u0434\u0430\u0440 \u0431\u043E\u0440\u0430\u0438 \u0432\u043E\u049B\u0435\u0430\u04B3\u043E \u0432\u0430 \u0440\u04EF\u0439\u0434\u043E\u0434\u04B3\u043E \u0432\u0430 \u043D\u0430\u043C\u043E\u0438\u0448 \u0434\u043E\u0434\u0430\u043D\u0438 \u04B3\u0438\u0441\u043E\u0431\u043E\u0442\u04B3\u043E.
@@ -710,3 +710,4 @@
 create_an_account = \u0421\u043E\u0445\u0442\u0430\u043D\u0438 \u04B3\u0438\u0441\u043E\u0431
 wrong_username_or_password = \u041F\u0430\u0440\u043E\u043B \u0451 \u043D\u043E\u043C\u0438 \u043A\u043E\u0440\u0431\u0430\u0440\u0438 \u0445\u0430\u0442\u043E
 powered_by = \u041F\u0435\u0448\u043D\u0438\u04B3\u043E\u0434 \u0430\u0437
+dhis-web-settings=\u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_vi.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_vi.properties	2015-06-02 07:37:42 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_vi.properties	2015-10-15 14:07:18 +0000
@@ -82,7 +82,7 @@
 intro_dhis-web-maintenance-organisationunit=Qu\u1ea3n l\u00fd c\u00e1c \u0111\u01a1n v\u1ecb v\u00e0 nh\u00e1nh \u0111\u01a1n v\u1ecb, c\u00e1c nh\u00f3m v\u00e0 c\u00e1c t\u1eadp h\u1ee3p nh\u00f3m
 intro_dhis-web-maintenance-user=Qu\u1ea3n l\u00fd ng\u01b0\u1eddi d\u00f9ng theo c\u00e1c \u0111i\u1ec1u kho\u1ea3n, quy\u1ec1n h\u1ea1n, m\u1eadt kh\u1ea9u v\u00e0 theo nh\u00f3m
 intro_dhis-web-maintenance-dataadmin=Qu\u1ea3n l\u00fd c\u00e1c b\u1ea3ng t\u00e0i nguy\u00ean, ki\u1ec3m tra t\u00ednh r\u00e0ng bu\u1ed9c d\u1eef li\u1ec7u, xem s\u1ed1 li\u1ec7u th\u1ed1ng k\u00ea v\u00e0 c\u00f2n nhi\u1ec1u th\u1ee9 kh\u00e1c
-intro_dhis-web-maintenance-settings=Qu\u1ea3n l\u00fd c\u00e1c thi\u1ebft l\u1eadp cho ng\u01b0\u1eddi d\u00f9ng v\u00e0 h\u1ec7 th\u1ed1ng c\u00f3 li\u00ean v\u1ec1 giao di\u1ec7n, th\u00f4ng b\u00e1o v\u00e0 nhi\u1ec1u ch\u1ee9c n\u0103ng kh\u00e1c.
+intro_dhis-web-settings=Qu\u1ea3n l\u00fd c\u00e1c thi\u1ebft l\u1eadp cho ng\u01b0\u1eddi d\u00f9ng v\u00e0 h\u1ec7 th\u1ed1ng c\u00f3 li\u00ean v\u1ec1 giao di\u1ec7n, th\u00f4ng b\u00e1o v\u00e0 nhi\u1ec1u ch\u1ee9c n\u0103ng kh\u00e1c.
 intro_dhis-web-maintenance-program=Qu\u1EA3n l\u00FD theo d\u00F5i c\u00E1 th\u1EC3 v\u00E0 c\u00E1c ch\u01B0\u01A1ng tr\u00ECnh bao g\u1ED3m c\u00E1c thu\u1ED9c t\u00EDnh v\u00E0 s\u1ED1 \u0111\u1ECBnh danh.
 intro_dhis-web-maintenance-mobile=Qu\u1ea3n l\u00fd t\u1eadp thi\u1ebft l\u1eadp d\u1eef li\u1ec7u b\u1ed5 sung cho b\u00e1o c\u00e1o qua thi\u1ebft b\u1ecb di \u0111\u1ed9ng v\u00e0 c\u1ea5u h\u00ecnh SMS
 intro_dhis-web-maintenance-appmanager=Truy c\u1EADp v\u00E0 \u0111\u0103ng t\u1EA3i c\u00E1c \u1EE9ng d\u1EE5ng, g\u1ED3m c\u00E1c \u1EE9ng d\u1EE5ng m\u1EDF r\u1ED9ng c\u00F3 giao di\u1EC7n chu\u1EA9n \u0111\u1ED1i v\u1EDBi ng\u01B0\u1EDDi d\u00F9ng.
@@ -956,3 +956,4 @@
 email_invite_2_1st_paragraph_after_application_title=T\u00E0i kho\u1EA3n ng\u01B0\u1EDDi d\u00F9ng. 
 email_invite_2_2nd_paragraph=H\u1EC7 th\u1ED1ng \u0111\u00E3 g\u1EEDi cho b\u1EA1n hai th\u01B0 \u0111i\u1EC7n t\u1EED, \u0111\u00E2y l\u00E0 th\u01B0 th\u1EE9 hai. H\u00E3y \u0111\u1ECDc th\u01B0 th\u1EE9 nh\u1EA5t v\u00E0 l\u00E0m theo h\u01B0\u1EDBng d\u1EABn. H\u00E3y d\u00F9ng m\u00E3 ph\u00EDa d\u01B0\u1EDBi \u0111\u1EC3 ho\u00E0n th\u00E0nh vi\u1EC7c t\u1EA1o t\u00E0i kho\u1EA3n m\u1EDBi. 
 email_invite_2_3rd_paragraph=B\u1EA1n ph\u1EA3i tr\u1EA3 l\u1EDDi th\u01B0 m\u1EDDi n\u00E0y trong v\u00F2ng 3 th\u00E1ng. N\u1EBFu b\u1EA1n kh\u00F4ng l\u00E0m g\u00EC, th\u01B0 m\u1EDDi s\u1EBD t\u1EF1 h\u1EE7y ngay khi h\u1EBFt h\u1EA1n.
+dhis-web-settings=C\u00e1c thi\u1ebft l\u1eadp

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_zh.properties'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_zh.properties	2014-07-06 17:12:17 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/i18n_global_zh.properties	2015-10-15 14:07:18 +0000
@@ -403,7 +403,7 @@
 int=\u6570\u5B57
 translation_add=\u6DFB\u52A0
 less_than=<
-intro_dhis-web-maintenance-settings=\u7EF4\u62A4\u7528\u6237\u548C\u7CFB\u7EDF\u8BBE\u7F6E\u76F8\u5173\u7684\u5916\u89C2\u3001\u901A\u77E5\u7B49\u7B49
+intro_dhis-web-settings=\u7EF4\u62A4\u7528\u6237\u548C\u7CFB\u7EDF\u8BBE\u7F6E\u76F8\u5173\u7684\u5916\u89C2\u3001\u901A\u77E5\u7B49\u7B49
 unselect_all=\u53D6\u6D88\u5168\u90E8\u9009\u62E9
 save=\u4FDD\u5B58
 select_at_level=\u540C\u7EA7\u9009\u62E9
@@ -525,3 +525,4 @@
 ghana=\u52A0\u7EB3
 togo=\u591A\u54E5
 norway=\u632A\u5A01
+dhis-web-settings=\u7CFB\u7EDF\u8BBE\u7F6E

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-apps/src/main/resources/struts.xml	2015-06-11 18:44:52 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/resources/struts.xml	2015-10-15 14:07:18 +0000
@@ -69,5 +69,11 @@
 			<result name="success" type="redirect">index.html</result>
 		</action>
     </package>
+
+	<package name="dhis-web-settings" extends="dhis-web-commons" namespace="/dhis-web-settings">
+		<action name="index" class="org.hisp.dhis.commons.action.NoAction">
+			<result name="success" type="redirect">index.html</result>
+		</action>
+	</package>
     
 </struts>

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-apps/index.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-apps/index.html	2015-06-11 18:44:52 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-apps/index.html	2015-10-15 14:07:18 +0000
@@ -3,6 +3,7 @@
 <body>
 	<h3>Apps</h3>
     <ul>
+    	<li><a href="../dhis-web-settings/index.html">dhis-web-settings</a></li>
         <li><a href="../dhis-web-pivot/index.html">dhis-web-pivot</a></li>
         <li><a href="../dhis-web-visualizer/index.html">dhis-web-visualizer</a></li>
         <li><a href="../dhis-web-mapping/index.html">dhis-web-mapping</a></li>

=== added directory 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings'
=== added directory 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n'
=== added directory 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module'
=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_en.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_en.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_en.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,163 @@
+omit_indicators_zero_numerator_data_mart=Omit indicator values with zero numerator in data mart
+dashboard_charts_to_display=Dashboard Charts to Display
+code=Code
+system_settings=System settings
+smtp_settings=Email settings
+host_name=Host name
+username=Username
+password=Password
+refresh_token=Refresh token
+authorization_code=Authorization code
+application_title=Application title
+dhis-web-maintenance-settings=Settings
+flag=Flag
+no_flag=No flag
+macos=Mac OS
+portal=Portal
+start_page=Start page
+no_start_page=No start page
+intro_general_settings=Customize the system behavior with regard to aggregation strategy, infrastructural data elements and more.
+intro_appearance_settings=Customize the system behavior with regard to application title, style, flag, start page.
+intro_email_settings=Configure the email SMTP setup with regard to host name, user name and password.
+intro_approval_settings=Configure the levels at which data is approved according to organisation unit level and category option group.
+intro_access_settings=Configure access to the system, like which user role should be used for user self registration.
+intro_data_synchronization = Configure remote server URL and authentication for automatic synchronization of data.
+intro_calendar_settings=Configure the system calendar and date format. The system supports a wide range of calendars.
+intro_oauth2_clients=Configure which clients are allowed to access this system using OAuth2.
+general_settings=General Settings
+appearance_settings=Appearance Settings
+email_settings=Email Settings
+approval_settings=Approval Settings
+calendar_settings=Calendar Settings
+access_settings=Access Settings
+data_synchronization=Data Synchronization
+general=General
+appearance=Appearance
+email=Email
+send_test_email=Send me a test email
+info_send_test_email=Send an automatically generated email using the supplied SMTP settings to your email address
+approval=Approval
+message=Message
+hide_unapproved_data_in_analytics=Hide unapproved data in analytics
+data_approval_levels=Data approval levels
+approval_level=Approval level
+organisation_unit_level=Organisation unit level
+select_level=Select level
+select_set=Select set
+category_option_group_set=Category option group set
+add=Add
+cancel=Cancel
+move_up=Move up
+move_down=Move down
+remove=Remove
+create_new_approval_level=Create new approval level
+confirm_delete_data_approval_level=Are you sure you want to delete this data approval level?
+details=Details
+specify_organisation_unit_level=Specify organisation unit level
+approval_level_is_already_defined=Approval level is already defined
+disable_dataentry_when_dataset_completed=Disable data entry when data set completed
+data_analysis_factor=Data analysis std dev factor
+aggregation_strategy=Aggregation strategy
+real_time=Real-time
+batch=Batch
+days_after_period_timeliness=Days after period end to qualify for timely data submission
+infrastructural_data_elements=Infrastructural data elements
+infrastructural_period_type=Infrastructural period type
+feedback_recipients=Feedback recipients
+no_feedback_recipients=No message recipients
+completeness_recipients=Completeness notification recipients
+no_completeness_recipients=No completeness recipients
+system_overview=System overview
+cache_strategy=Cache strategy
+calendar=Calendar
+date_format=Date format
+no_cache=No cache
+cache_until_6am_tomorrow=Cache until 6 AM tomorrow
+cache_for_two_weeks=Cache for two weeks
+max_levels_to_offline=Max offline organisation unit levels
+relative_to_current_user=relative to current user
+phone_number_area_code = Phone number area code
+google_analytics_ua_key=Google Analytics (Universal Analytics) key
+application_introduction=Application introduction
+remote_access_settings=Remote Access Settings
+do_not_allow_self_registration=Do not allow self registration
+do_not_require_recaptcha_for_self_registration=Do not require recaptcha for self registration
+self_registration_account_user_role=Self registration account user role
+self_registration_account_organisation_unit=Self registration account organisation unit
+access=Access
+remote_access=Remote Access
+enable_user_account_recovery=Enable user account recovery
+enable_user_account_invite=Enable user account invite
+select_organisation_unit=Select organisation unit
+application_notification=Application notification
+multi_organisation_unit_forms=Enable multi-organisation unit forms
+port=Port
+tls=TLS
+email_sender=Email sender
+allows_html=allows HTML
+application_left_footer=Application left-side footer
+application_right_footer=Application right-side footer
+user_credentials_expires=Require user account password change
+never=Never
+months=Months
+openid_provider_label=OpenID provider label
+openid_provider=OpenID provider
+allow_users_to_grant_own_user_roles=Allow users to grant own user roles
+object_not_deleted_associated_by_objects=Object not deleted because it is associated by objects of type
+analytics_max_limit=Maximum number of analytics records
+unlimited=Unlimited
+uses_image_from=will use image from
+custom_login_page_logo=Custom login page logo
+custom_top_menu_logo=Custom top menu logo
+synchronization_settings=Synchronization Settings
+oauth2_clients=OAuth2 Clients
+remote_server_url=Remote server URL
+remote_server_username=Remote server username
+remote_server_password=Remote server password
+recommended=recommended
+put_analytics_in_maintenance_mode=Put analytics in maintenance mode
+returns=returns
+test_settings=Test settings
+hidden=Hidden
+no_of_database_server_cpus=Number of database server CPUs
+automatic=Automatic
+detect_based_on_web_server=Automatic (detect based on web server)
+help_page_link = Help page link
+server_base_url = Server base URL
+acceptance_required_before_approval=Acceptance required before approval
+system_notifications_email_address=System notifications email address
+default_analysis_relative_period=Default relative period for analysis
+infrastructural_indicators=Infrastructure indicators
+cors_whitelist=CORS whitelist
+require_authority_to_add_to_view_object_lists=Require authority to add to view object lists
+for_example=For example
+allow_assigning_object_to_related_objects_during_add_or_update=Allow assigning object to related objects during add or update
+delete_oauth2_client=Are you sure you want to remove this OAuth2 client?
+oauth2_client_management=OAuth2 Management
+create_new_oauth2_client=Create new OAuth2 Client
+edit_oauth2_client=Edit OAuth2 Client
+name=Name
+client_id=Client ID
+client_secret=Client Secret
+grant_types=Grant Types
+redirect_uris=Redirect URIs
+weekly=Weekly
+yearly=Yearly
+import_settings=Data Import Settings
+require_category_option_combos_to_match=Require category option combos to match category combo of data element
+require_organisation_units_to_match_assignment=Require organisation units to match assignment of data set
+require_attribute_option_combos_to_match=Require attribute option combos to match category combo of data set
+require_category_option_combo_to_be_specified=Require category option combo to be specified
+require_attribute_option_combo_to_be_specified=Require attribute option combo to be specified
+require_periods_to_match_period_type=Require periods to match period type of data set
+yyyy-MM-dd=1981-03-31 (yyyy-MM-dd)
+dd-MM-yyyy=03-31-1981 (dd-MM-yyyy)
+server_settings=Server Settings
+level=Level
+search=Search
+no_settings_found_that_match=No settings found that match search
+no_oauth2_clients_registered=There are currently no OAuth2 clients registered
+enter_one_uri_per_line=Enter one URI per line
+3_months=3 months
+6_months=6 months
+12_months=12 months

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_es.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_es.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_es.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,53 @@
+omit_indicators_zero_numerator_data_mart=Omitir valores de indicador con numerador cero en el data mart
+host_name=Nombre de host
+username=Nombre de usuario
+password=Contrase\u00f1a
+application_title=Titulo de la aplicaci\u00f3n
+dhis-web-maintenance-settings=Configuraciones
+flag=Bandera
+no_flag=Sin bandera
+start_page=Pagina inicial
+dashboard_charts_to_display=Gr\u00e1ficos del cuadro de mandos a mostrar
+no_start_page=Sin pagina inicial
+general_settings=Configuraci\u00f3n general
+appearance_settings=Configuraci\u00f3n de apariencia
+code=Codigo
+access_settings=Configuraci\u00f3n de acceso
+appearance=Apariencia
+email=Correo electr\u00f3nico
+system_settings=Configuraci\u00f3n del sistema
+message=Mensaje
+general_settings=Configuraci\u00f3n general
+disable_dataentry_when_dataset_completed=Desactivar la entrada de datos cuando el set de datos est\u00e9 completo
+data_analysis_factor=Factor de desviaci\u00f3n est\u00e1ndar del an\u00e1lisis de datos
+aggregation_strategy=Estrategia de agregaci\u00f3n
+real_time=Tiempo real
+batch=Lote
+days_after_period_timeliness=Margen, tras acabar el periodo, para calificar por entrada de datos
+infrastructural_data_elements=Elementos de datos infraestructurales
+infrastructural_period_type=Tipo de periodo infraestructural
+feedback_recipients=Comentarios de los destinatarios
+no_feedback_recipients=No hay destinatarios del mensaje
+completeness_recipients=Destinatarios de notificaci\u00f3n de completitud
+appearance_settings=Configuraci\u00f3n de apariencia
+no_completeness_recipients=No hay destinatarios de completitud
+system_overview=Visi\u00f3n general del sistema
+cache_strategy=Estrategia de cach\u00e9
+no_cache=Sin cach\u00e9
+cache_until_6am_tomorrow=Cach\u00e9 hasta ma\u00f1ana a las 6 AM
+cache_for_two_weeks=Cach\u00e9 para dos semanas
+max_levels_to_offline=M\u00e1ximos niveles de unidad organizativa en modo offline
+smtp_settings=Configuraci\u00f3n de email
+application_introduction=Introducci\u00f3n a la aplicaci\u00f3n
+access_settings=Configuraci\u00f3n de acceso
+do_not_allow_self_registration=No permitir auto-registro 
+self_registration_account_user_role=Role para cuentas de auto-registro 
+self_registration_account_organisation_unit=Unidad organizativa para cuentas de auto-registro
+access=Acceso
+enable_user_account_recovery=Recuperaci\u00f3n de cuentas de usuario
+select_organisation_unit=Seleccionar unidad organizativa
+application_notification=Notificaci\u00f3n de la aplicaci\u00f3n
+multi_organisation_unit_forms=Habilitar formularios de unidad organizativa m\u00faltiple
+port=Puerto
+allows_html=permite HTML
+application_footer=Pi\u00e9 de p\u00e1gina de la aplicaci\u00f3n

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_fr.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_fr.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_fr.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,98 @@
+omit_indicators_zero_numerator_data_mart=Omettre valeurs de l'indicateur avec z\u00e9ro valeur du num\u00e9rateur dans les exportations data mart
+host_name=Nom de l'h\u00f4te
+username=Nom d'utilisateur
+password=Mot de passe
+application_title=Titre de l'application
+dhis-web-maintenance-settings=R\u00e9glages
+flag=Drapeau
+no_flag=Pas de Drapeau
+portal=Portail
+start_page=Page d'accueil
+dashboard_charts_to_display=Graphiques pour l'affichage du tableau de bord
+no_start_page=Sans Page d'accueil
+intro_system_general_settings=Personnaliser le comportement du syst\u00e8me en mati\u00e8re de strat\u00e9gie d'agr\u00e9gation, infrastructurelles \u00e9l\u00e9ments de donn\u00e9es et plus ..
+intro_system_appearance_settings=Personnaliser le syst\u00e8me avec les param\u00e8tres utilisateur sp\u00e9cifiques pour la locale, ordre de tri, propri\u00e9t\u00e9 d'affichage, le style et plus encore.
+intro_system_email_settings=Configurez le syst\u00e8me de messagerie SMTP (nom d'h\u00f4te, nom d'utilisateur et mot de passe)
+intro_system_access_settings=Configurer l'acc\u00e8s au syst\u00e8me. Permet de d\u00e9finir par exemple quel r\u00f4le sera automatiquement attribu\u00e9 aux utilisateurs qui se sont auto-inscrits.
+system_general_settings=Param\u00e8tres G\u00e9n\u00e9raux du Syst\u00e8me
+system_appearance_settings=Param\u00e8tres d'Apparence du Syst\u00e8me
+system_email_settings=Param\u00e8tres Email Syst\u00e8me
+system_access_settings=Param\u00e8tres d'Acc\u00e8s du Syst\u00e8me
+general=G\u00e9n\u00e9ral
+appearance=Aspect
+email=Adresse e-mail
+system_settings=Param\u00e8tres du syst\u00e8me
+cancel=Annuler
+remove=Supprimer
+general_settings=Param\u00e8tres g\u00e9n\u00e9raux
+disable_dataentry_when_dataset_completed=D\u00e9sactiver la saisie de donn\u00e9es lorsque les donn\u00e9es ensemble complet
+data_analysis_factor=L'analyse des donn\u00e9es \u00e9cart facteur standard
+aggregation_strategy=Strat\u00e9gie d'agr\u00e9gation
+real_time=En temps r\u00e9el
+batch=Lot
+days_after_period_timeliness=Quelques jours apr\u00e8s fin de la p\u00e9riode pour se qualifier pour la soumission des donn\u00e9es en temps opportun
+infrastructural_data_elements=Infrastructures \u00e9l\u00e9ments de donn\u00e9es
+infrastructural_period_type=Type de p\u00e9riode d'infrastructure
+feedback_recipients=Commentaires des b\u00e9n\u00e9ficiaires
+no_feedback_recipients=Pas de destinataires du message
+completeness_recipients=Destinataires de notification de compl\u00e9tude
+no_completeness_recipients=Aucun destinataire compl\u00e9tude
+system_overview=Aper\u00e7u  du Syst\u00e8me
+cache_strategy=Strat\u00e9gie de cache
+appearance_settings=Param\u00e8tres d'apparence
+date_format=Format de date
+no_cache=Pas de cache
+cache_until_6am_tomorrow=Cache jusqu'\u00e0 6h00 demain
+cache_for_two_weeks=Cache pour deux semaines
+max_levels_to_offline=Niveau maximum d'unit\u00e9 d'organisation en offline
+google_analytics_ua_key=Cl\u00e9 de Google Analytics (Universal Analytics)
+application_introduction=Introduction \u00e0 l'application
+access_settings=Param\u00e8tres d'acc\u00e8s
+do_not_allow_self_registration=Ne pas permettre l'auto-inscription
+smtp_settings=param\u00e8tres e-mail
+self_registration_account_user_role=R\u00f4le d'utilisateur des des comptes auto-inscrits
+self_registration_account_organisation_unit=L'unit\u00e9 d'organisation des comptes auto-inscrits
+access=Acc\u00e8s
+enable_user_account_recovery=Permettre la restauration de compte utilisateur
+select_organisation_unit=Choisir l'unit\u00e9 d'organisation
+application_notification=Notification de l'application
+multi_organisation_unit_forms=Activer les formulaires multi-unit\u00e9s d'organisation
+allows_html=permettre le HTML
+application_footer=Pied de page de l'application
+code=Code
+approval_settings=Approval settings
+macos=Mac OS
+intro_system_approval_settings=Configure the levels at which data is approved according to organisation unit level and category option group.
+system_approval_settings=System Approval Settings
+approval=Approval
+message=Message
+hide_unapproved_data_in_analytics=Hide unapproved data in analytics
+data_approval_levels=Data approval levels
+approval_level=Approval level
+organisation_unit_level=Organisation unit level
+select_level=Select level
+select_set=Select set
+category_option_group_set=Category option group set
+add=Add
+move_up=Move up
+move_down=Move down
+create_new_approval_level=Create new approval level
+confirm_delete_data_approval_level=Are you sure you want to delete this data approval level?
+details=Details
+specify_organisation_unit_level=Specify organisation unit level
+approval_level_is_already_defined=Approval level is already defined
+calendar=Calendar
+phone_number_area_code=Code zone du num\u00e9ro de t\u00e9l\u00e9phone
+do_not_require_recaptcha_for_self_registration=Do not require recaptcha for self registration
+enable_user_account_invite=Enable user account invite
+port=Port
+tls=TLS
+user_credentials_expires=Require user account password change
+never=Never
+months=Months
+openid_provider_label=OpenID Provider Label
+openid_provider=OpenID Provider
+allow_users_to_grant_own_user_roles=Allow users to grant own user roles
+object_not_deleted_associated_by_objects=Object not deleted because it is associated by objects of type
+analytics_max_limit=Maximum number of analytics records
+unlimited=Unlimited

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_id.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_id.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_id.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,59 @@
+omit_indicators_zero_numerator_data_mart=hilangkan nilai indikator dengan numerator bernilai 0 di dalam Data mart
+dashboard_charts_to_display=Tampilkan dashboard grafik
+code=Kode
+system_settings=Setting sistem
+general_settings=Setting umum
+appearance_settings=Setting tampilan
+smtp_settings=Seetting email
+host_name=Host name
+username=User name
+password=Password
+application_title=Judul aplikasi
+dhis-web-maintenance-settings=Setting
+flag=Flag
+no_flag=No flag
+macos=Mac OS
+portal=Portal
+start_page=Halaman muka
+no_start_page=Tidak ada halaman muka
+intro_system_general_settings=Sesuaikan perilaku sistem yang berkaitan dengan strategi agregasi, infrastruktur elemen data, dll.
+intro_system_appearance_settings=Sesuaikan perilaku sistem yang berkaitan dengan judul aplikasi, style, flag, dan halaman muka
+intro_system_email_settings=Mengkonfigurasi pengaturan email SMTP berkaitan dengan nama host, username dan password.
+intro_system_access_settings=Mengkonfigurasi akses ke sistem, misal memilih peran pengguna yang harus digunakan untuk pendaftaran pengguna.
+system_general_settings=Sistem pengaturan umum
+system_appearance_settings=Sistem pengaturan tampilan
+system_email_settings=Sistem pengaturan email
+system_access_settings=Sistem pengaturan akses
+general=Umum
+appearance=Tampilan
+email=Email
+message=Pesan
+disable_dataentry_when_dataset_completed=Nonaktifkan entri data ketika set data telah selesai dilengkapi
+data_analysis_factor=Analisis data faktor standar deviasi
+aggregation_strategy=Strategi agregasi
+real_time=Real-time
+batch=Batch
+days_after_period_timeliness=Hari setelah periode berakhir untuk memastikan agar pengiriman data tepat waktu
+infrastructural_data_elements=Infrastruktur elemen data
+infrastructural_period_type=Infrastruktur jenis periode
+feedback_recipients=Feedback penerima
+no_feedback_recipients=Tidak ada penerima pesan
+completeness_recipients=Penerima kelengkapan notifikasi
+no_completeness_recipients=Tidak ada penerima kelengkapan
+system_overview=Overview sistem
+cache_strategy=Cache strategy
+no_cache=No cache
+cache_until_6am_tomorrow=Cache until 6 AM tomorrow
+cache_for_two_weeks=Cache for two weeks
+max_levels_to_offline=Maximum offline organisation unit levels
+phone_number_area_code=Kode area nomer telepon
+application_introduction=Pengenalan aplikasi
+access_settings=Pengaturan akses
+do_not_allow_self_registration=Tidak diperbolehkan melakukan self registration
+self_registration_account_user_role=Peran pengguna untuk akun self registration
+self_registration_account_organisation_unit=Akun self registration unit organisasi
+access=Akses
+enable_user_account_recovery=Mengaktifkan penyelamatan akun pengguna
+select_organisation_unit=Pilih unit organisasi
+application_notification=Notifikasi aplikasi
+multi_organisation_unit_forms=Aktifkan form multi unit organisasi

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_km.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_km.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_km.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,1 @@
+access_settings=Access settings

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_lo.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_lo.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_lo.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,113 @@
+openid_provider_label=OpenID Provider Label
+openid_provider=OpenID Provider
+username=User name
+general_settings=General settings
+appearance_settings=Appearance settings
+approval_settings=Approval settings
+calendar_settings=Calendar settings
+access_settings=Access settings
+date_format=Date Format
+google_analytics_ua_key=Google Analytics (Universal Analytics) Key
+omit_indicators_zero_numerator_data_mart=Omit indicator values with zero numerator in data mart
+dashboard_charts_to_display=Dashboard Charts to Display
+code=Code
+system_settings=System settings
+smtp_settings=Email settings
+host_name=Host name
+password=Password
+application_title=Application title
+dhis-web-maintenance-settings=Settings
+flag=Flag
+no_flag=No flag
+macos=Mac OS
+portal=Portal
+start_page=Start page
+no_start_page=No start page
+intro_general_settings=Customize the system behavior with regard to aggregation strategy, infrastructural data elements and more.
+intro_appearance_settings=Customize the system behavior with regard to application title, style, flag, start page.
+intro_email_settings=Configure the email SMTP setup with regard to host name, user name and password.
+intro_approval_settings=Configure the levels at which data is approved according to organisation unit level and category option group.
+intro_access_settings=Configure access to the system, like which user role should be used for user self registration.
+intro_data_synchronization=Configure remote server URL and authentication for automatic synchronization of data.
+intro_calendar_settings=Configure the system calendar and date format. The system supports a wide range of calendars.
+email_settings=Email Settings
+data_synchronization=Data Synchronization
+general=General
+appearance=Appearance
+email=Email
+send_test_email=Send me a test email
+info_send_test_email=Send an automatically generated email using the supplied SMTP settings to your email address
+approval=Approval
+message=Message
+hide_unapproved_data_in_analytics=Hide unapproved data in analytics
+data_approval_levels=Data approval levels
+approval_level=Approval level
+organisation_unit_level=Organisation unit level
+select_level=Select level
+select_set=Select set
+category_option_group_set=Category option group set
+add=Add
+cancel=Cancel
+move_up=Move up
+move_down=Move down
+remove=Remove
+create_new_approval_level=Create new approval level
+confirm_delete_data_approval_level=Are you sure you want to delete this data approval level?
+details=Details
+specify_organisation_unit_level=Specify organisation unit level
+approval_level_is_already_defined=Approval level is already defined
+disable_dataentry_when_dataset_completed=Disable data entry when data set completed
+data_analysis_factor=Data analysis std dev factor
+aggregation_strategy=Aggregation strategy
+real_time=Real-time
+batch=Batch
+days_after_period_timeliness=Days after period end to qualify for timely data submission
+infrastructural_data_elements=Infrastructural data elements
+infrastructural_period_type=Infrastructural period type
+feedback_recipients=Feedback recipients
+no_feedback_recipients=No message recipients
+completeness_recipients=Completeness notification recipients
+no_completeness_recipients=No completeness recipients
+system_overview=System overview
+cache_strategy=Cache strategy
+calendar=Calendar
+no_cache=No cache
+cache_until_6am_tomorrow=Cache until 6 AM tomorrow
+cache_for_two_weeks=Cache for two weeks
+max_levels_to_offline=Maximum offline organisation unit levels
+phone_number_area_code=Phone number area code
+application_introduction=Application introduction
+do_not_allow_self_registration=Do not allow self registration
+do_not_require_recaptcha_for_self_registration=Do not require recaptcha for self registration
+self_registration_account_user_role=Self registration account user role
+self_registration_account_organisation_unit=Self registration account organisation unit
+access=Access
+enable_user_account_recovery=Enable user account recovery
+enable_user_account_invite=Enable user account invite
+select_organisation_unit=Select organisation unit
+application_notification=Application notification
+multi_organisation_unit_forms=Enable multi-organisation unit forms
+port=Port
+tls=TLS
+email_sender=Email sender
+allows_html=allows HTML
+application_footer=Application footer
+user_credentials_expires=Require user account password change
+never=Never
+months=Months
+allow_users_to_grant_own_user_roles=Allow users to grant own user roles
+object_not_deleted_associated_by_objects=Object not deleted because it is associated by objects of type
+analytics_max_limit=Maximum number of analytics records 
+unlimited=Unlimited
+uses_image_from=will use image from
+custom_login_page_logo=Custom login page logo
+custom_top_menu_logo=Custom top menu logo
+synchronization_settings=Synchronization
+remote_server_url=Remote server URL
+remote_server_username=Remote server username
+remote_server_password=Remote server password
+recommended=recommended
+put_analytics_in_maintenance_mode=Put analytics in maintenance mode
+returns=returns
+test_settings=Test settings
+hidden=Hidden

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_my.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_my.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_my.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,2 @@
+omit_indicators_zero_numerator_data_mart=Omit indicator values with zero numerator value in data mart
+username=User name

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_pt.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_pt.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_pt.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,146 @@
+application_notification=Notifica\u00E7\u00E3o da aplica\u00E7\u00E3o
+south_africa=\u00C1frica do Sul
+application_footer=Rodap\u00E9 da aplica\u00E7\u00E3o
+batch=Lote
+do_not_allow_self_registration=N\u00E3o \u00E9 permitido auto-registo
+liberia=Lib\u00E9ria
+zimbabwe=Zimb\u00E1bue
+irc=Comit\u00EA Internacional de Salvamento
+sort_order_property=Propriedade Ordenamento
+forum_integration=F\u00F3rum de integra\u00E7\u00E3o
+no_start_page=Nenhuma p\u00E1gina inicial
+lockout_timeframe=Minutos de bloqueio ap\u00F3s o n\u00FAmero m\u00E1ximo de tentativas de login
+zambia=Z\u00E2mbia
+message=Mensagem
+portal=Portal
+data_analysis_factor=Factor de desvio padr\u00E3o de an\u00E1lise dos dados
+general_settings=Defini\u00E7\u00F5es gerais
+no_cache=Sem cache
+openhealth=OpenHealth
+style=Estilo
+custom=Personalizado
+max_levels_to_offline=Os n\u00EDveis m\u00E1ximos de unidades off-line da organiza\u00E7\u00E3o
+system_identifier=Identificador do Sistema
+self_registration_account_organisation_unit=Conta de auto-registo unidade organizacional
+appearance=Apar\u00EAncia
+gambia=G\u00E2mbia
+host_name=Nome do servidor
+zanzibar=Zanzibar
+start_page=P\u00E1gina inicial
+completeness_email_notification=Notifica\u00E7\u00E3o de e-mail sbre completude
+intro_system_appearance_settings=Personalize o comportamento do sistema em rela\u00E7\u00E3o ao t\u00EDtulo do aplicativo, estilo, bandeira, p\u00E1gina inicial.
+ivory_coast=Costa do Marfim
+completeness_recipients=Destinat\u00E1rios de notifica\u00E7\u00E3o de completude
+mali=Mali
+application_title=T\u00EDtulo da aplica\u00E7\u00E3o
+light_blue=Azul claro
+use_db_locale_no_translation=Use local de base de dados / sem tradu\u00E7\u00E3o
+ethiopia=Eti\u00F3pia
+port=Porta de conex\u00E3o
+indonesia=Indon\u00E9sia
+shortname=Nome curto
+display_property=Mostrar Propriedades
+appearance_settings=Configura\u00E7\u00F5es de apar\u00EAncia
+bangladesh=Bangladesh
+access_settings=Defini\u00E7\u00F5es de acesso
+intro_system_access_settings=Configurar o acesso ao sistema, como fun\u00E7\u00E3o do utilizador que deve ser usado para auto-registo do mesmo.
+vista=Vista
+save_zero_values=Gravar valores zero para som de elementos de dados agregados
+sierra_leone=Serra Leoa
+disable_dataentry_when_dataset_completed=Desactivar a entrada de dados quando a ficha estiver completa
+south_africa_department_of_health=\u00C1frica do Sul Departamento de Sa\u00FAde
+tajikistan=Tajiquist\u00E3o
+top_background_color=Cor de fundo do topo
+no_feedback_recipients=Mensagem sem destinat\u00E1rios
+settings_updated=Defini\u00E7\u00F5es foram actualizados com sucesso
+allows_html=Permite HTML
+no_flag=Sem bandeira
+system_access_settings=Acesse \u00E1s configura\u00E7\u00F5es do sistema
+db_language=Linguagem da base de dados
+dashboard_charts_to_display=Gr\u00E1ficos painel por exibir
+intro_system_general_settings=Personalizar o comportamento do sistema no que respeita \u00E0 estrat\u00E9gia de agrega\u00E7\u00E3o,  infra-estrutura de elementos de dados e mais.
+lesotho=Lesoto
+mozambique=Mo\u00E7ambique
+days_after_period_timeliness=Dias ap\u00F3s o fim do per\u00EDodo para se qualificar para o envio de dados em tempo \u00FAtil
+auto_save_data_entry_form=Gravar automaticamente os dados do formulario
+background_color_in_menu=Cor de fundo no menu
+feedback_recipients=Coment\u00E1rios dos destinat\u00E1rios
+general=Geral
+system_general_settings=Configura\u00E7\u00F5es gerais do sistema
+benin=Benin
+cambodia=Camboja
+user_general_settings=Configura\u00E7\u00F5es Gerais de Utilizador
+rwanda=Ruanda
+access=Acesso
+no_completeness_recipients=Nenhum destinat\u00E1rio de completude
+user_message_settings=Configura\u00E7\u00F5es de mensagem de utilizador
+password=Password
+blue=Azul
+cache_strategy=Estrat\u00E9gia de cache
+sri_lanka=Sri Lanka
+intro_user_general_settings=Personalizar o sistema com configura\u00E7\u00F5es espec\u00EDficas do utilizador para o estilo local, e muito mais.
+max_attempts=N\u00FAmero m\u00E1ximo de tentativas de login
+intro_user_message_settings=Personalizar o sistema com configura\u00E7\u00F5es espec\u00EDficas do utilizador para mensagens de notifica\u00E7\u00E3o em e-mails e sms.
+extended=Extendido
+multi_organisation_unit_forms=Ativar formas de unidade multi-organizacional
+burkina_faso=Burkina Faso
+india=\u00CDndia
+system_email_settings=Configura\u00E7\u00F5es de E-mail do Sistema
+system_overview=Vis\u00E3o geral do sistema
+system_appearance_settings=Configura\u00E7\u00F5es da Apar\u00EAncia do Sistema
+code=C\u00F3digo
+armenia=Arm\u00EAnia
+intro_system_email_settings=Configurar SMTP e-mail em rela\u00E7\u00E3o ao nome do host, nome de utilizador e password.
+macos=Mac OS
+guinea_bissau=Guin\u00E9-Bissau
+enable_user_account_recovery=Permitir recuperar conta de utilizador
+settings=Configura\u00E7\u00F5es
+color_scheme=Esquema de cor
+regular=Regular
+botswana=Botswana
+alternativename=Nome alternativo
+nigeria=Nig\u00E9ria
+kenya=Qu\u00EAnia
+aggregation_strategy=Estrat\u00E9gia de agrega\u00E7\u00E3o
+left_background_color=Cor de fundo esquerda
+menu_element_color=Cor do elemento no menu
+who=OMS
+application_introduction=Introdu\u00E7\u00E3o da aplica\u00E7\u00E3o
+title_color=Cor do texto do t\u00EDtulo
+swaziland=Suazil\u00E2ndia
+sierra_leone_coat_of_arms=Serra Leoa bras\u00E3o de armas
+senegal=Senegal
+green=Verde
+uganda=Uganda
+message_sms_notification=Notifica\u00E7\u00E3o de SMS
+self_registration_account_user_role=Role de registo de contas do utilizadores
+infrastructural_data_elements=Elementos de Dados de Infra-estrutura
+phone_number_area_code=C\u00F3dico do telefone atendendo a \u00E1rea
+malawi=Malawi
+infrastructural_period_type=Tipo de per\u00EDodo de infra-estrutura
+cache_until_6am_tomorrow=Cache at\u00E9 seis horas de amanh\u00E3
+guinea=Guin\u00E9
+smtp_settings=Configura\u00E7\u00F5es de e-mail
+omit_indicators_zero_numerator_data_mart=Omitir valores do indicador com conte\u00FAdo nulo no numerador no data mart
+username=Nome de utilizador
+dhis-web-maintenance-settings=Configura\u00E7\u00F5es
+vietnam=Vietname
+cache_for_two_weeks=Cache por duas semanas
+select_organisation_unit=Seleccione unidade de organiza\u00E7\u00E3o
+tls=TLS
+philippines=Filipinas
+namibia=Nam\u00EDbia
+data_dictionary_mode=Modo do dicion\u00E1rio de dados
+message_email_notification=Notifica\u00E7\u00E3o de e-mails
+tanzania=Tanz\u00E2nia
+user_settings=Configura\u00E7\u00F5es do utilizador
+ghana=Gana
+language=Linguagem da interface
+active_menu_element_color=Cor do elemento activo do menu
+can_be_set_once=S\u00F3 pode ser definido uma vez
+system_settings=Configura\u00E7\u00F5es do sistema
+email=E-mail
+real_time=Em tempo real
+norway=Noruega
+togo=Togo
+flag=Bandeira

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_pt_BR.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_pt_BR.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_pt_BR.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,142 @@
+gambia=G\u00E2mbia
+username=Nome de utilizador
+smtp_settings=Configura\u00E7\u00F5es de e-mail
+intro_system_appearance_settings=Personalize o comportamento do sistema em rela\u00E7\u00E3o ao t\u00EDtulo do aplicativo, estilo, bandeira, p\u00E1gina inicial.
+sri_lanka=Sri Lanka
+system_email_settings=Configura\u00E7\u00F5es de E-mail do Sistema
+no_completeness_recipients=Nenhum destinat\u00E1rio de completude
+system_identifier=Identificador do Sistema
+burkina_faso=Burkina Faso
+intro_system_general_settings=Personalizar o comportamento do sistema no que respeita \u00E0 estrat\u00E9gia de agrega\u00E7\u00E3o,  infra-estrutura de elementos de dados e mais.
+bangladesh=Bangladesh
+feedback_recipients=Coment\u00E1rios dos destinat\u00E1rios
+auto_save_data_entry_form=Gravar automaticamente os dados do formulario
+liberia=Lib\u00E9ria
+benin=Benin
+shortname=Nome curto
+norway=Noruega
+namibia=Nam\u00EDbia
+intro_user_general_settings=Personalizar o sistema com configura\u00E7\u00F5es espec\u00EDficas do utilizador para o estilo local, e muito mais.
+application_notification=Notifica\u00E7\u00E3o da aplica\u00E7\u00E3o
+data_dictionary_mode=Modo do dicion\u00E1rio de dados
+title_color=Cor do texto do t\u00EDtulo
+zanzibar=Zanzibar
+custom=Personalizado
+email=E-mail
+top_background_color=Cor de fundo do topo
+save_zero_values=Gravar valores zero para som de elementos de dados agregados
+cache_for_two_weeks=Cache por duas semanas
+sierra_leone_coat_of_arms=Serra Leoa bras\u00E3o de armas
+uganda=Uganda
+application_introduction=Introdu\u00E7\u00E3o da aplica\u00E7\u00E3o
+south_africa=\u00C1frica do Sul
+omit_indicators_zero_numerator_data_mart=Omitir valores do indicador com conteudo nulo no numerador no data mart
+cache_until_6am_tomorrow=Cache at\u00E9 seis horas de amanh\u00E3
+appearance=Apar\u00EAncia
+togo=Togo
+enable_user_account_recovery=Permitio recuperar a conta do utilizador
+user_message_settings=Configura\u00E7\u00F5es de mensagem de utilizador
+macos=Mac OS
+ivory_coast=Costa do Marfim
+data_analysis_factor=Factor de desvio padr\u00E3o de an\u00E1lise dos dados
+cache_strategy=Estrat\u00E9gia de cache
+display_property=Mostrar Propriedades
+regular=Regular
+lockout_timeframe=Minutos de bloqueio ap\u00F3s o n\u00FAmero m\u00E1ximo de tentativas de login
+forum_integration=F\u00F3rum de integra\u00E7\u00E3o
+message=Mensagem
+code=C\u00F3digo
+do_not_allow_self_registration=N\u00E3o \u00E9 permitido auto-registo
+self_registration_account_organisation_unit=Conta de auto-registo unidade organizacional
+application_title=T\u00EDtulo da aplica\u00E7\u00E3o
+system_access_settings=Acesse \u00E1s configura\u00E7\u00F5es do sistema
+zimbabwe=Zimb\u00E1bue
+guinea_bissau=Guin\u00E9-Bissau
+india=\u00CDndia
+guinea=Guin\u00E9
+intro_system_email_settings=Configurar SMTP e-mail em rela\u00E7\u00E3o ao nome do host, nome de utilizador e password.
+green=Verde
+system_overview=Vis\u00E3o geral do sistema
+appearance_settings=Configura\u00E7\u00F5es de apar\u00EAncia
+general=Geral
+disable_dataentry_when_dataset_completed=Desactivar a entrada de dados quando conjunto de dados tiver sido completado
+color_scheme=Esquema de cor
+select_organisation_unit=Selecione unidade de organiza\u00E7\u00E3o
+db_language=Linguagem da base de dados
+user_settings=Configura\u00E7\u00F5es do utilizador
+sort_order_property=Propriedade Ordenamento
+mozambique=Mo\u00E7ambique
+no_start_page=Nenhuma p\u00E1gina inicial
+style=Estilo
+left_background_color=Cor de fundo esquerda
+tajikistan=Tajiquist\u00E3o
+vietnam=Vietname
+system_settings=Configura\u00E7\u00F5es do sistema
+multi_organisation_unit_forms=Ativar formas de unidade multi-organizacional
+tanzania=Tanz\u00E2nia
+lesotho=Lesoto
+extended=Extendido
+infrastructural_period_type=Tipo de periodo de infra-estrutura
+vista=Vista
+completeness_recipients=Destinat\u00E1rios de notifica\u00E7\u00E3o de completude
+infrastructural_data_elements=Elementos de Dados de Infra-estrutura
+armenia=Arm\u00EAnia
+language=Linguagem da interface
+portal=Portal
+access=Acesso
+max_levels_to_offline=Os n\u00EDveis m\u00E1ximos de unidades off-line da organiza\u00E7\u00E3o
+alternativename=Nome alternativo
+intro_user_message_settings=Personalizar o sistema com configura\u00E7\u00F5es espec\u00EDficas do utilizador para mensagens de notifica\u00E7\u00E3o em e-mails e sms.
+intro_system_access_settings=Configurar o acesso ao sistema, como fun\u00E7\u00E3o do utilizador que deve ser usado para auto-registro do mesmo.
+malawi=Malawi
+south_africa_department_of_health=\u00C1frica do Sul Departamento de Sa\u00FAde
+senegal=Senegal
+blue=Azul
+openhealth=OpenHealth
+aggregation_strategy=Estrat\u00E9gia de agrega\u00E7\u00E3o
+menu_element_color=Cor do elemento no menu
+irc=Comit\u00EA Internacional de Salvamento
+cambodia=Camboja
+ethiopia=Eti\u00F3pia
+access_settings=Defini\u00E7\u00F5es de acesso
+rwanda=Ruanda
+no_cache=Sem cache
+mali=Mali
+light_blue=Azul claro
+real_time=Em tempo real
+system_general_settings=Configura\u00E7\u00F5es gerais do sistema
+user_general_settings=Configura\u00E7\u00F5es Gerais de Utilizador
+swaziland=Suazil\u00E2ndia
+general_settings=Defini\u00E7\u00F5es gerais
+dashboard_charts_to_display=Gr\u00E1ficos painel por exibir
+active_menu_element_color=Cor do elemento activo do menu
+self_registration_account_user_role=Role de registro de contas do utilizadores
+indonesia=Indon\u00E9sia
+who=OMS
+philippines=Filipinas
+batch=Lote
+no_flag=Sem bandeira
+password=Password
+host_name=Nome do servidor
+no_feedback_recipients=Mensagem sem destinat\u00E1rios
+settings_updated=Defini\u00E7\u00F5es foram actualizados com sucesso
+settings=Configura\u00E7\u00F5es
+kenya=Qu\u00EAnia
+phone_number_area_code=C\u00F3gico do telefone atendendo a \u00E1rea
+days_after_period_timeliness=Dias ap\u00F3s o fim do per\u00EDodo para se qualificar para o envio de dados em tempo \u00FAtil
+nigeria=Nig\u00E9ria
+ghana=Gana
+message_email_notification=Notifica\u00E7\u00E3o de e-mails
+max_attempts=N\u00FAmero m\u00E1ximo de tentativas de login
+system_appearance_settings=Configura\u00E7\u00F5es da Apar\u00EAncia do Sistema
+start_page=P\u00E1gina inicial
+dhis-web-maintenance-settings=Configura\u00E7\u00F5es
+completeness_email_notification=Notifica\u00E7\u00E3o de e-mail sbre completude
+can_be_set_once=S\u00F3 pode ser definido uma vez
+use_db_locale_no_translation=Use local de base de dados / sem tradu\u00E7\u00E3o
+message_sms_notification=Notifica\u00E7\u00E3o de SMS
+sierra_leone=Serra Leoa
+zambia=Z\u00E2mbia
+background_color_in_menu=Cor de fundo no menu
+botswana=Botswana
+flag=Bandeira

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_ru.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_ru.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_ru.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,64 @@
+omit_indicators_zero_numerator_data_mart = \u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u0441 \u043D\u0443\u043B\u0435\u0432\u044B\u043C \u0447\u0438\u0441\u043B\u0438\u0442\u0435\u043B\u0435\u043C \u0432 \u0432\u0438\u0442\u0440\u0438\u043D\u0435 \u0434\u0430\u043D\u043D\u044B\u0445
+dashboard_charts_to_display = \u0414\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0430 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439 \u043F\u0430\u043D\u0435\u043B\u0438 \u0434\u043B\u044F \u043F\u043E\u043A\u0430\u0437\u0430
+code = \u041A\u043E\u0434
+system_settings = \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B
+general_settings = \u041E\u0431\u0449\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438
+appearance_settings = \u0412\u0438\u0434 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A
+smtp_settings = \u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u043C\u0435\u0439\u043B\u0430
+host_name = \u0418\u043C\u044F \u0445\u043E\u0441\u0442\u0430
+username = \u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F
+password = \u041F\u0430\u0440\u043E\u043B\u044C
+application_title = \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0430\u043D\u043A\u0435\u0442\u044B
+dhis-web-maintenance-settings = \u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438
+flag = \u0424\u043B\u0430\u0433
+no_flag = \u041D\u0435\u0442 \u0444\u043B\u0430\u0433\u0430
+macos = Mac OS
+portal = \u041F\u043E\u0440\u0442\u0430\u043B
+start_page = \u0421\u0442\u0430\u0440\u0442\u043E\u0432\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430
+no_start_page = \u041D\u0435 \u0441\u0442\u0430\u0440\u0442\u043E\u0432\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430
+intro_system_general_settings = \u0412\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0432 \u043E\u0442\u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0430\u0433\u0440\u0435\u0433\u0430\u0446\u0438\u0438, \u0438\u043D\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u0434\u0430\u043D\u043D\u044B\u0445 \u0438 \u0434\u0430\u043B\u0435\u0435.
+intro_system_appearance_settings = \u0412\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0432 \u043E\u0442\u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F \u0430\u043F\u043B\u0438\u043A\u0430\u0446\u0438\u0438, \u0441\u0442\u0438\u043B\u044F, \u0444\u043B\u0430\u0433\u0430 \u0438 \u0441\u0442\u0430\u0440\u0442\u043E\u0432\u043E\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B
+intro_system_email_settings = \u041D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C SMTP \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0443 \u0438\u043C\u0435\u0439\u043B\u0430 \u0432 \u043E\u0442\u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u0445\u043E\u0441\u0442 \u0438\u043C\u0435\u043D\u0438, \u0438\u043C\u0435\u043D\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0438 \u043F\u0430\u0440\u043E\u043B\u044F
+intro_system_access_settings = \u041D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0441\u0438\u0441\u0442\u0435\u043C\u0435, \u043F\u043E\u0434\u043E\u0431\u043D\u043E \u0442\u043E\u043C\u0443 \u043A\u043E\u0433\u0434\u0430 \u0440\u043E\u043B\u044C \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F
+system_general_settings = \u041E\u0431\u0449\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B
+system_appearance_settings = \u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0430 \u0441\u0438\u0441\u0442\u0435\u043C\u044B
+system_email_settings = \u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u043C\u0435\u0439\u043B\u0430 \u0441\u0438\u0441\u0442\u0435\u043C\u044B
+system_access_settings = \u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u0441\u0438\u0441\u0442\u0435\u043C\u044B
+general = \u041E\u0431\u0449\u0435\u0435
+appearance = \u0412\u043D\u0435\u0448\u043D\u0438\u0439 \u0432\u0438\u0434
+email = \u0430\u0434\u0440\u0435\u0441 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u044B
+message = \u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435
+disable_dataentry_when_dataset_completed = \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u0432\u043E\u0434 \u0434\u0430\u043D\u043D\u044B\u0445 \u043A\u043E\u0433\u0434\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044F \u043D\u0430\u0431\u043E\u0440 \u0434\u0430\u043D\u043D\u044B\u0445
+data_analysis_factor = \u0410\u043D\u0430\u043B\u0438\u0437 \u0434\u0430\u043D\u043D\u044B\u0445, \u0444\u0430\u043A\u0442\u043E\u0440 \u0441\u0442\u0430\u043D.\u043D\u0430\u0440
+aggregation_strategy = \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044F \u0430\u0433\u0440\u0435\u0433\u0430\u0446\u0438\u0438
+real_time = \u0420\u0435\u0430\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F
+batch = \u0413\u0440\u0443\u043F\u043F\u0430/\u043F\u0430\u0440\u0442\u0438\u044F
+days_after_period_timeliness = \u0414\u043D\u0438 \u043F\u043E\u0441\u043B\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F \u043F\u0435\u0440\u0438\u043E\u0434\u0430 \u0434\u043B\u044F \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0438 \u0441\u0432\u043E\u0435\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0433\u043E \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445
+infrastructural_data_elements = \u0418\u043D\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u0434\u0430\u043D\u043D\u044B\u0445
+infrastructural_period_type = \u0418\u043D\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0442\u0438\u043F\u044B \u043F\u0435\u0440\u0438\u043E\u0434\u043E\u0432
+feedback_recipients = \u041E\u0442\u0437\u044B\u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u0435\u0439/\u0440\u0435\u0446\u0438\u043F\u0438\u0435\u043D\u0442\u043E\u0432
+no_feedback_recipients = \u041D\u0435\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u0435\u0439
+completeness_recipients = \u0418\u0437\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u043E \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u0435\u0439
+no_completeness_recipients = \u043E \u043D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u0435\u0439
+system_overview = \u041E\u0431\u0437\u043E\u0440 \u0441\u0438\u0441\u0442\u0435\u043C\u044B
+cache_strategy = \u041A\u044D\u0448 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044F
+no_cache = \u0411\u0435\u0437 \u043A\u044D\u0448\u0430
+cache_until_6am_tomorrow = \u041A\u044D\u0448 \u0434\u043E 6-00 \u0437\u0430\u0432\u0442\u0440\u0430
+cache_for_two_weeks = \u043A\u044D\u0448 \u043D\u0430 \u0434\u0432\u0435 \u043D\u0435\u0434\u0435\u043B\u0438
+max_levels_to_offline = \u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0440\u043E\u0432\u043D\u0438 \u043E\u0444\u043B\u0430\u0439\u043D \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0439
+phone_number_area_code = \u0440\u0435\u0433\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u043E\u0434 \u043D\u043E\u043C\u0435\u0440\u0430 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430
+application_introduction = \u0412\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u0430\u043D\u043A\u0435\u0442\u044B
+do_not_allow_self_registration = \u0421\u0430\u043C\u043E\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u043D\u0435 \u0434\u043E\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F
+access_settings = \u0414\u043E\u0441\u0442\u0443\u043F \u043A \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u043C
+do_not_allow_self_registration = \u0421\u0430\u043C\u043E\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u043D\u0435 \u0434\u043E\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F
+self_registration_account_user_role = \u0420\u043E\u043B\u044C \u0441\u0430\u043C\u043E\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430
+self_registration_account_organisation_unit = \u0421\u0430\u043C\u043E\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438/\u043E\u0442\u0434\u0435\u043B\u0430
+access = \u0414\u043E\u0441\u0442\u0443\u043F
+enable_user_account_recovery = \u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u043E\u0437\u0432\u0440\u0430\u0442 \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F
+select_organisation_unit = \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0435 \u043C\u0435\u043D\u0435\u0435 \u043E\u0434\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438
+application_notification = \u0418\u0437\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u043E \u0437\u0430\u044F\u0432\u043A\u0435
+multi_organisation_unit_forms = \u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0444\u043E\u0440\u043C\u0443 \u043C\u0443\u043B\u044C\u0442\u0438\u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0445 \u043E\u0442\u0434\u0435\u043B\u043E\u0432
+port = \u041F\u043E\u0440\u0442
+tls = TLS
+allows_html = \u041F\u043E\u0437\u0432\u043E\u043B\u0438\u0442\u044C HTML
+application_footer = \u041D\u0438\u0436\u043D\u0438\u0435 \u043A\u043E\u043B\u043E\u043D\u0442\u0438\u0442\u0443\u043B\u044B \u0430\u043F\u043B\u0438\u043A\u0430\u0446\u0438\u0438

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_tg.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_tg.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_tg.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,64 @@
+omit_indicators_zero_numerator_data_mart = \u041E\u043D \u049B\u0438\u043C\u0430\u0442\u04B3\u043E\u0438 \u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u0434\u0430\u0440 \u043A\u0438\u043E\u0441\u043A\u0438 \u0438\u0442\u0442\u0438\u043B\u043E\u043E\u0442, \u043A\u0438 \u0441\u0443\u0440\u0430\u0442\u0430\u0448\u043E\u043D \u0441\u0438\u0444\u0440 \u0430\u0441\u0442, \u043F\u0430\u0440\u0442\u043E\u0444\u0442\u0430 \u0433\u0443\u0437\u0430\u0440\u0435\u0434
+dashboard_charts_to_display = \u0413\u0440\u0430\u0444\u0438\u043A\u04B3\u043E\u0438 \u043B\u0430\u0432\u04B3\u0430\u0438 \u0430\u0431\u0437\u043E\u0440 \u0431\u0430\u0440\u043E\u0438 \u043D\u0438\u0448\u043E\u043D \u0434\u043E\u0434\u0430\u043D
+code = \u0420\u0430\u043C\u0437
+system_settings = \u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u0430
+general_settings = \u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u0443\u043C\u0443\u043C\u04E3
+appearance_settings = \u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u043D\u0430\u043C\u0443\u0434\u0438 \u0437\u043E\u04B3\u0438\u0440\u04E3
+smtp_settings = \u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u043F\u043E\u0447\u0442\u0430\u0438 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u04E3
+host_name = \u041D\u043E\u043C\u0438 \u0445\u043E\u0441\u0442
+username = \u041D\u043E\u043C\u0438 \u043A\u043E\u0440\u0431\u0430\u0440
+password = \u041F\u0430\u0440\u043E\u043B
+application_title = \u0423\u043D\u0432\u043E\u043D\u0438 \u0437\u0430\u043C\u0438\u043C\u0430
+dhis-web-maintenance-settings = \u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442
+flag = \u0411\u0430\u0439\u0440\u0430\u049B\u0447\u0430
+no_flag = \u0411\u0435 \u0431\u0430\u0439\u0440\u0430\u049B\u0447\u0430
+macos = Mac OS (\u0441\u0438\u0441\u0442\u0435\u043C\u0430\u0438 \u043E\u043C\u0438\u043B\u0438 Mac)
+portal = \u041F\u043E\u0440\u0442\u0430\u043B
+start_page = \u0421\u0430\u04B3\u0438\u0444\u0430\u0438 \u043E\u0493\u043E\u0437
+no_start_page = \u0411\u0435 \u0441\u0430\u04B3\u0438\u0444\u0430\u0438 \u043E\u0493\u043E\u0437
+intro_system_general_settings = \u0420\u0430\u0444\u0442\u043E\u0440\u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u0430\u0440\u043E \u0430\u0437 \u04B7\u0438\u04B3\u0430\u0442\u0438 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044F\u0438 \u04B3\u0430\u043C\u04B7\u043E\u044F\u043A\u0443\u043D\u04E3, \u0443\u043D\u0441\u0443\u0440\u04B3\u043E\u0438 \u0438\u0442\u0442\u0438\u043B\u043E\u043E\u0442\u0438 \u0438\u043D\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u04E3 \u0432\u0430 \u0493\u0430\u0439\u0440\u0430 \u0442\u0430\u043D\u0437\u0438\u043C \u043A\u0443\u043D\u0435\u0434.
+intro_system_appearance_settings = \u0420\u0430\u0444\u0442\u043E\u0440\u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u0430\u0440\u043E \u0430\u0437 \u04B7\u0438\u04B3\u0430\u0442\u0438 \u0443\u043D\u0432\u043E\u043D, \u0441\u0430\u0431\u043A, \u0431\u0430\u0439\u0440\u0430\u049B \u0432\u0430 \u0441\u0430\u04B3\u0438\u0444\u0430\u0438 \u043E\u0493\u043E\u0437 \u0442\u0430\u043D\u0437\u0438\u043C \u043A\u0443\u043D\u0435\u0434.
+intro_system_email_settings = SMTP-\u0438 \u043F\u043E\u0447\u0442\u0430\u0438 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u0438\u0440\u043E \u0430\u0437 \u04B7\u0438\u04B3\u0430\u0442\u0438 \u043D\u043E\u043C\u0438 \u0445\u043E\u0441\u0442, \u043D\u043E\u043C\u0438 \u043A\u043E\u0440\u0431\u0430\u0440 \u0432\u0430 \u043F\u0430\u0440\u043E\u043B \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0442\u0441\u0438\u044F \u043A\u0443\u043D\u0435\u0434.
+intro_system_access_settings = \u0414\u0430\u0441\u0442\u0440\u0430\u0441\u04E3 \u0431\u0430 \u0441\u0438\u0441\u0442\u0435\u043C\u0430\u0440\u043E, \u0430\u0437 \u049B\u0430\u0431\u0438\u043B\u0438 \u043E\u043D, \u043A\u0438 \u043A\u0430\u0434\u043E\u043C \u0432\u0430\u0437\u0438\u0444\u0430\u0438 \u043A\u043E\u0440\u0431\u0430\u0440 \u0431\u0430\u0440\u043E\u0438 \u0431\u0430\u049B\u0430\u0439\u0434\u0433\u0438\u0440\u0438\u0438 \u043C\u0443\u0441\u0442\u0430\u049B\u0438\u043B\u043E\u043D\u0430\u0438 \u043A\u043E\u0440\u0431\u0430\u0440 \u0438\u0441\u0442\u0438\u0444\u043E\u0434\u0430 \u043C\u0435\u0448\u0430\u0432\u0430\u0434, \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0442\u0441\u0438\u044F \u043A\u0443\u043D\u0435\u0434.
+system_general_settings = \u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u0443\u043C\u0443\u043C\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u0430
+system_appearance_settings = \u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u043D\u0430\u043C\u0443\u0434\u0438 \u0437\u043E\u04B3\u0438\u0440\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u0430
+system_email_settings = \u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u043F\u043E\u0447\u0442\u0430\u0438 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u0430
+system_access_settings = \u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u0434\u0430\u0441\u0442\u0440\u0430\u0441\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u0430
+general = \u0423\u043C\u0443\u043C\u0443\u04E3
+appearance = \u041D\u0430\u043C\u0443\u0434\u0438 \u0437\u043E\u04B3\u0438\u0440\u04E3
+email = \u041F\u043E\u0447\u0442\u0430\u0438 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u04E3
+message = \u041F\u0430\u0451\u043C
+disable_dataentry_when_dataset_completed = \u0412\u0430\u049B\u0442\u0435 \u043A\u0438 \u043C\u0430\u04B7\u043C\u04EF\u0430\u0438 \u0438\u0442\u0442\u0438\u043B\u043E\u043E\u0442 \u043F\u0443\u0440\u0440\u0430 \u0448\u0443\u0434, \u0432\u0443\u0440\u0443\u0434\u0438 \u0438\u0442\u0442\u0438\u043B\u043E\u043E\u0442\u0440\u043E \u0493\u0430\u0439\u0440\u0438\u0444\u0430\u044A\u043E\u043B \u0441\u043E\u0437\u0435\u0434
+data_analysis_factor = \u041A\u043E\u044D\u0444\u0444\u0438\u0441\u0438\u0435\u043D\u0442\u0438 \u0438\u043D\u04B3\u0438\u0440\u043E\u0444\u0438 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u04E3
+aggregation_strategy = \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044F\u0438 \u04B3\u0430\u043C\u0440\u043E\u04B3\u043A\u0443\u043D\u04E3
+real_time = \u0414\u0430\u0440 \u0432\u0430\u049B\u0442\u0438 \u0432\u043E\u049B\u0435\u04E3
+batch = \u0411\u0430\u0441\u0442\u0430
+days_after_period_timeliness = \u0420\u04EF\u0437\u04B3\u043E \u043F\u0430\u0441 \u0430\u0437 \u0431\u0430 \u0438\u0442\u043C\u043E\u043C\u043E \u0440\u0430\u0441\u0438\u0434\u0430\u043D\u0438 \u0434\u0430\u0432\u0440\u0430 \u0431\u0430\u0440\u043E\u0438 \u043F\u0435\u0448\u043D\u0438\u04B3\u043E\u0434\u0438 \u0441\u0430\u0440\u0438\u0432\u0430\u049B\u0442\u0438\u0438 \u04B3\u0438\u0441\u043E\u0431\u043E\u0442
+infrastructural_data_elements = \u0423\u043D\u0441\u0443\u0440\u04B3\u043E\u0438 \u0438\u0442\u0442\u0438\u043B\u043E\u043E\u0442\u0438 \u0438\u043D\u0444\u0440\u0430\u0441\u043E\u0445\u0442\u043E\u0440\u04E3
+infrastructural_period_type = \u041D\u0430\u0432\u044A\u0438 \u0434\u0430\u0432\u0440\u0430\u0438 \u0438\u043D\u0444\u0440\u0430\u0441\u043E\u0445\u0442\u043E\u0440\u04E3
+feedback_recipients = \u0413\u0438\u0440\u0430\u043D\u0434\u0430\u0433\u043E\u043D\u0438 \u0438\u0437\u04B3\u043E\u0440\u0438 \u043D\u0430\u0437\u0430\u0440
+no_feedback_recipients = \u042F\u0433\u043E\u043D \u0433\u0438\u0440\u0430\u043D\u0434\u0430\u0438 \u043F\u0430\u0451\u043C \u043D\u0435\u0441\u0442
+completeness_recipients = \u0413\u0438\u0440\u0430\u043D\u0434\u0430\u0433\u043E\u043D\u0438 \u043E\u0433\u043E\u04B3\u04E3 \u0434\u0430\u0440 \u0431\u043E\u0440\u0430\u0438 \u043F\u0443\u0440\u0440\u0430\u0433\u04E3
+no_completeness_recipients = \u0413\u0438\u0440\u0430\u043D\u0434\u0430\u0433\u043E\u043D\u0438 \u043E\u0433\u043E\u04B3\u04E3 \u0434\u0430\u0440 \u0431\u043E\u0440\u0430\u0438 \u043F\u0443\u0440\u0440\u0430\u0433\u04E3 \u043D\u0435\u0441\u0442\u0430\u043D\u0434
+system_overview = \u0428\u0430\u0440\u04B3\u0438 \u043C\u0443\u0445\u0442\u0430\u0441\u0430\u0440\u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u0430
+cache_strategy = \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044F\u0438 \u043A\u044D\u0448
+no_cache = \u042F\u0433\u043E\u043D \u043A\u044D\u0448 \u043D\u0435\u0441\u0442
+cache_until_6am_tomorrow = \u041A\u044D\u0448 \u0442\u043E \u0441\u043E\u0430\u0442\u0438 6 \u043F\u0430\u0433\u043E\u04B3
+cache_for_two_weeks = \u041A\u044D\u0448 \u0431\u0430\u0440\u043E\u0438 \u0434\u0443 \u04B3\u0430\u0444\u0442\u0430
+max_levels_to_offline = \u0428\u0443\u043C\u043E\u0440\u0430\u0438 \u043C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u0438\u0438 \u0441\u0430\u0442\u04B3\u04B3\u043E\u0438 \u0432\u043E\u04B3\u0438\u0434\u04B3\u043E\u0438 \u0441\u043E\u0445\u0442\u043E\u0440\u0438\u0438 \u043E\u0444\u043B\u0430\u0439\u043D
+phone_number_area_code = \u0420\u0430\u043C\u0437\u0438 \u043C\u0438\u043D\u0442\u0430\u049B\u0430\u0438 \u0440\u0430\u049B\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u0444\u043E\u043D
+application_introduction = \u041C\u0443\u0430\u0440\u0440\u0438\u0444\u0438\u0438 \u0437\u0430\u043C\u0438\u043C\u0430
+do_not_allow_self_registration = \u0411\u0430\u049B\u0430\u0439\u0434\u0433\u0438\u0440\u0438\u0438 \u0445\u0443\u0434\u043A\u043E\u0440 \u0438\u04B7\u043E\u0437\u0430\u0442 \u043D\u0435\u0441\u0442
+access_settings = \u0422\u0430\u043D\u0437\u0438\u043C\u043E\u0442\u0438 \u0434\u0430\u0441\u0442\u0440\u0430\u0441\u04E3
+do_not_allow_self_registration = \u0411\u0430\u049B\u0430\u0439\u0434\u0433\u0438\u0440\u0438\u0438 \u0445\u0443\u0434\u043A\u043E\u0440 \u0438\u04B7\u043E\u0437\u0430\u0442 \u043D\u0435\u0441\u0442
+self_registration_account_user_role = \u041D\u0430\u049B\u0448\u0438 \u043A\u043E\u0440\u0431\u0430\u0440\u0438 \u04B3\u0438\u0441\u043E\u0431\u0438
+self_registration_account_organisation_unit = \u0412\u043E\u04B3\u0438\u0434\u0438 \u0441\u043E\u0445\u0442\u043E\u0440\u0438\u0438 \u0434\u043E\u0440\u043E\u0438 \u0431\u0430\u049B\u0430\u0439\u0434\u0433\u0438\u0440\u0438\u0438 \u043C\u0443\u0441\u0442\u0430\u049B\u0438\u043B\u043E\u043D\u0430
+access = \u0414\u0430\u0441\u0442\u0440\u0430\u0441\u04E3
+enable_user_account_recovery = \u0424\u0430\u044A\u043E\u043B \u043A\u0430\u0440\u0434\u0430\u043D\u0438 \u0431\u0430\u0440\u049B\u0430\u0440\u043E\u0440\u0441\u043E\u0437\u0438\u0438 \u04B3\u0438\u0441\u043E\u0431\u0438 \u043A\u043E\u0440\u0431\u0430\u0440
+select_organisation_unit = \u041B\u0443\u0442\u0444\u0430\u043D \u043D\u0430 \u043A\u0430\u043C\u0442\u0430\u0440 \u0430\u0437 \u044F\u043A \u0432\u043E\u04B3\u0438\u0434\u0438 \u0441\u043E\u0445\u0442\u043E\u0440\u0438\u0440\u043E \u0438\u043D\u0442\u0438\u0445\u043E\u0431 \u043A\u0443\u043D\u0435\u0434
+application_notification = \u041E\u0433\u043E\u04B3\u0438\u0438 \u0437\u0430\u043C\u0438\u043C\u0430
+multi_organisation_unit_forms = \u0424\u0430\u044A\u043E\u043B \u043A\u0430\u0440\u0434\u0430\u043D\u0438 \u0448\u0430\u043A\u043B\u04B3\u043E \u0431\u0430\u0440\u043E\u0438 \u044F\u043A\u0447\u0430\u043D\u0434 \u0432\u043E\u04B3\u0438\u0434\u04B3\u043E\u0438 \u0441\u043E\u0445\u0442\u043E\u0440\u04E3
+port = \u041F\u043E\u0440\u0442
+tls = TLS
+allows_html = HTML-\u0440\u043E \u0438\u04B7\u043E\u0437\u0430\u0442 \u043C\u0435\u0434\u0438\u04B3\u0430\u0434
+application_footer = \u041F\u043E\u0432\u0430\u0440\u0430\u049B\u0438 \u0437\u0430\u043C\u0438\u043C\u0430
\ No newline at end of file

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_vi.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_vi.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_vi.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,32 @@
+omit_indicators_zero_numerator_data_mart=L\u01b0\u1ee3t b\u1ecf c\u00e1c gi\u00e1 tr\u1ecb ch\u1ec9 s\u1ed1 v\u1edbi t\u1eed s\u1ed1 b\u1eb1ng 0 trong d\u1eef li\u1ec7u t\u1ed5ng h\u1ee3p
+dhis-web-maintenance-settings=C\u00e0i \u0111\u1eb7t
+flag=C\u1edd qu\u1ed1c gia
+no_flag=Kh\u00f4ng c\u00f3 c\u1edd qu\u1ed1c gia
+macos=H\u1ec7 \u0111i\u1ec1u h\u00e0nh Mac
+portal=C\u1ed5ng \u0111i\u1ec7n t\u1eed
+start_page=Trang nh\u1ea5t
+no_start_page=Kh\u00f4ng c\u00f3 trang nh\u1ea5t
+dashboard_charts_to_display=Bi\u1ec3u \u0111\u1ed3 hi\u1ec3n th\u1ecb \u1edf b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n
+email_settings=C\u00e0i \u0111\u1eb7t email
+access_settings=Access settings
+code=M\u00e3
+appearance=Thi\u1ebft l\u1eadp giao di\u1ec7n
+email=Thi\u1ebft l\u1eadp giao th\u1ee9c th\u01b0 \u0111i\u1ec7n t\u1eed
+system_settings=C\u00e0i \u0111\u1eb7t h\u1ec7 th\u1ed1ng
+smtp_settings=C\u00e0i \u0111\u1eb7t email
+disable_dataentry_when_dataset_completed=Kh\u00f4ng cho thay \u0111\u1ed5i d\u1eef li\u1ec7u khi t\u1eadp h\u1ee3p d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c khai b\u00e1o ho\u00e0n ch\u1ec9nh.#Resource generated by I18n Resource Editor
+data_analysis_factor=Y\u1ebfu t\u1ed1 ph\u00e2n t\u00edch d\u1eef li\u1ec7u
+aggregation_strategy=Chi\u1ebfn l\u01b0\u1ee3c t\u1ed5ng h\u1ee3p
+real_time=Th\u1eddi gian th\u1ef1c
+batch=L\u00f4
+host_name=\u0110\u1ecba ch\u1ec9 m\u00e1y ch\u1ee7 (URL)
+days_after_period_timeliness=S\u1ed1 ng\u00e0y sau cu\u1ed1i k\u1ef3 \u0111\u1ec3 \u0111\u00e1nh gi\u00e1 th\u1eddi h\u1ea1n nh\u1eadp d\u1eef li\u1ec7u.
+infrastructural_data_elements=Ki\u1ebfn tr\u00fac d\u1eef li\u1ec7u
+infrastructural_period_type=Ki\u1ebfn tr\u00fac lo\u1ea1i th\u1eddi \u0111i\u1ec3m
+feedback_recipients=Ph\u00e0n h\u1ed3i c\u1ee7a ng\u01b0\u1eddi nh\u1eadn
+no_feedback_recipients=Ng\u01b0\u1eddi nh\u1eadn kh\u00f4ng c\u00f3 tin nh\u1eafn
+completeness_recipients=Ho\u00e0n th\u00e0nh th\u00f4ng b\u00e1o ng\u01b0\u1eddi nh\u1eadn
+no_completeness_recipients=Ng\u01b0\u1eddi nh\u1eadn ch\u01b0a ho\u00e0n th\u00e0nh
+username=T\u00ean \u0111\u0103ng nh\u1eadp
+password=M\u1eadt kh\u1ea9u
+application_title=Ti\u00eau \u0111\u1ec1 \u1ee9ng d\u1ee5ng

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_zh.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_zh.properties	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_zh.properties	2015-10-15 14:07:18 +0000
@@ -0,0 +1,101 @@
+financialyApril=\u56DB\u6708
+batch=\u5206\u6279\u5904\u7406
+sort_order_property=\u6392\u5E8F\u5C5E\u6027
+forum_integration=\u7EFC\u5408\u8BBA\u575B
+no_start_page=\u65E0\u5F00\u59CB\u9875
+lockout_timeframe=\u6700\u5927\u767B\u5F55\u5C1D\u8BD5\u540E\u9501\u5B9A\u7684\u5206\u949F\u6570
+message=\u6D88\u606F
+portal=\u5165\u53E3
+data_analysis_factor=\u6570\u636E\u5206\u6790\u56E0\u5B50
+general_settings=\u5E38\u89C4\u8BBE\u7F6E
+no_cache=\u65E0\u7F13\u51B2
+style=\u98CE\u683C
+custom=\u4E60\u60EF
+intro_user_settings=\u81EA\u5B9A\u4E49\u7CFB\u7EDF\u5177\u6709\u7528\u6237\u7279\u5B9A\u7684\u8BBE\u7F6E\uFF0C\u5982\u5C40\u90E8\u8BBE\u7F6E\u3001\u6392\u5E8F\u3001\u663E\u793A\u6240\u6709\u6743\u3001\u98CE\u683C\u6216\u8005\u66F4\u591A
+max_levels_to_offline=\u79BB\u7EBF\u7684\u6700\u5927\u673A\u6784\u7B49\u7EA7
+system_identifier=\u7CFB\u7EDF\u6807\u8BC6\u7B26
+appearance=\u5916\u89C2
+host_name=\u4E3B\u673A\u540D
+start_page=\u5F00\u59CB\u9875\u9762
+user_email_settings=\u7528\u6237\u90AE\u4EF6\u8BBE\u7F6E
+completeness_email_notification=\u5B8C\u6210\u7535\u90AE\u901A\u77E5
+intro_system_appearance_settings=\u5B9A\u5236\u7CFB\u7EDF\u884C\u4E3A\u8BF8\u5982\u5E94\u7528\u6807\u9898\u3001\u98CE\u683C\u3001\u56FD\u65D7\u548C\u8D77\u59CB\u9875
+completeness_recipients=\u5B8C\u6210\u901A\u77E5\u6536\u4EF6\u4EBA
+application_title=\u5E94\u7528\u6807\u9898
+light_blue=\u6DE1\u84DD\u8272
+use_db_locale_no_translation=\u4F7F\u7528\u6570\u636E\u5E93\u65B9\u8A00\u6216\u65E0\u7FFB\u8BD1
+shortname=\u7B80\u79F0
+display_property=\u663E\u793A\u5C5E\u6027
+appearance_settings=\u5916\u89C2\u8BBE\u7F6E
+monthly=\u6BCF\u6708
+quarterly=\u6BCF\u5B63\u5EA6
+vista=vista
+save_zero_values=\u4FDD\u5B58\u96F6\u503C
+daily=\u6BCF\u5929
+disable_dataentry_when_dataset_completed=\u5F53\u6570\u636E\u96C6\u5B8C\u6210\u65F6\u8BBE\u7F6E\u4E0D\u80FD\u8FDB\u884C\u6570\u636E\u8F93\u5165
+top_background_color=\u9876\u7AEF\u80CC\u666F\u989C\u8272
+no_feedback_recipients=\u65E0\u53CD\u9988\u63A5\u6536\u8005
+settings_updated=\u8BBE\u7F6E\u5DF2\u7ECF\u66F4\u65B0
+no_flag=\u65E0\u6807\u5FD7
+db_language=\u6570\u636E\u5E93\u8BED\u8A00
+dashboard_charts_to_display=\u72B6\u6001\u9762\u677F\u663E\u793A\u7684\u56FE\u8868
+intro_system_general_settings=\u5B9A\u5236\u8BF8\u5982\u4F1A\u805A\u7B56\u7565\u3001\u6846\u67B6\u6570\u636E\u5143\u7B49\u7CFB\u7EDF\u884C\u4E3A
+days_after_period_timeliness=\u671F\u7EC8\u540E\u8BA4\u5B9A\u4ECD\u4E3A\u53CA\u65F6\u63D0\u4EA4\u6570\u636E\u7684\u5929\u6570
+auto_save_data_entry_form=\u81EA\u52A8\u4FDD\u5B58\u6570\u636E\u8F93\u5165\u5F62\u5F0F
+background_color_in_menu=\u4E3B\u76EE\u5F55\u4E2D\u7684\u80CC\u666F\u8272
+feedback_recipients=\u53CD\u9988\u63A5\u6536\u8005
+general=\u5E38\u89C4
+system_general_settings=\u7CFB\u7EDF\u5E38\u89C4\u8BBE\u7F6E
+intro_system_settings=\u81EA\u5B9A\u4E49\u7CFB\u7EDF\u7684\u884C\u4E3A\u53BB\u62A5\u8868\u6846\u67B6\u3001\u8D77\u59CB\u9875\u3001\u6807\u9898\u3001\u65D7\u5E1C\u6216\u8005\u66F4\u591A\u3002
+user_general_settings=\u7528\u6237\u5E38\u89C4\u8BBE\u7F6E
+no_completeness_recipients=\u6CA1\u6709\u5B8C\u6210\u6536\u4EF6\u4EBA
+user_message_settings=\u7528\u6237\u77ED\u4FE1\u901A\u77E5\u8BBE\u7F6E
+password=\u53E3\u4EE4
+blue=\u84DD\u8272
+cache_strategy=\u7F13\u51B2\u7B56\u7565
+intro_user_general_settings=\u5B9A\u5236\u7528\u6237\u6307\u5B9A\u7684\u672C\u5730\u5316\u8BED\u8A00\u3001\u6392\u5E8F\u3001\u663E\u793A\u5C5E\u6027\u3001\u98CE\u683C\u7B49
+max_attempts=\u767B\u5F55\u6700\u5927\u6B21\u6570\u7684\u5C1D\u8BD5
+intro_user_message_settings=\u5B9A\u5236\u7CFB\u7EDF\u90AE\u4EF6\u4FE1\u606F\u548CSMS\u901A\u77E5\u8BBE\u7F6E
+weekly=\u6BCF\u5468
+extended=\u6269\u5C55
+system_email_settings=\u7CFB\u7EDF\u90AE\u4EF6\u8BBE\u7F6E
+system_overview=\u7CFB\u7EDF\u6982\u8FF0
+system_appearance_settings=\u7CFB\u7EDF\u5916\u89C2\u8BBE\u7F6E
+code=\u4EE3\u7801
+intro_user_email_settings=\u5B9A\u5236\u7528\u6237\u6307\u5B9A\u7684email\u6D88\u606F\u901A\u77E5\u7CFB\u7EDF\u8BBE\u7F6E
+intro_system_email_settings=\u914D\u7F6E\u8BF8\u5982\u4E3B\u673A\u3001\u7528\u6237\u548C\u53E3\u4EE4\u7B49SMTP email\u8BBE\u7F6E
+macos=\u82F9\u679C\u64CD\u4F5C\u7CFB\u7EDF
+settings=\u8BBE\u7F6E
+color_scheme=\u8272\u5F69\u65B9\u6848
+yearly=\u6BCF\u5E74
+regular=\u5B9A\u671F
+alternativename=\u66FF\u4EE3\u540D\u79F0
+nigeria=\u5C3C\u65E5\u5229\u4E9A
+kenya=\u80AF\u5C3C\u4E9A
+aggregation_strategy=\u6C47\u603B\u7B56\u7565
+left_background_color=\u5DE6\u8FB9\u80CC\u666F\u989C\u8272
+menu_element_color=\u83DC\u5355\u5143\u7D20\u989C\u8272
+who=\u4E16\u754C\u536B\u751F\u7EC4\u7EC7
+title_color=\u6807\u9898\u989C\u8272
+green=\u7EFF\u8272
+sort_order=\u6392\u5E8F
+message_sms_notification=\u77ED\u4FE1\u901A\u77E5
+infrastructural_data_elements=\u57FA\u7840\u6570\u636E\u5143
+infrastructural_period_type=\u57FA\u7840\u6570\u636E\u5468\u671f\u7C7B\u578B
+cache_until_6am_tomorrow=\u7F13\u51B2\u81F3\u660E\u5929\u65E9\u4E0A\u516D\u70B9
+smtp_settings=SMTP\u8BBE\u7F6E
+omit_indicators_zero_numerator_data_mart=\u6570\u636E\u96C6\u5E02\u4E2D\u5FFD\u7565\u5206\u5B50\u503C\u4E3A0\u7684\u6307\u6807\u503C
+username=\u7528\u6237\u540D
+dhis-web-maintenance-settings=\u8BBE\u7F6E
+cache_for_two_weeks=\u7F13\u51B2\u4E24\u5468
+data_dictionary_mode=\u6570\u636E\u8BCD\u5178\u6A21\u578B
+message_email_notification=\u4FE1\u606F\u90AE\u4EF6\u901A\u77E5
+user_settings=\u7528\u6237\u8BBE\u7F6E
+sixmonthly=\u6BCF\u516D\u4E2A\u6708
+language=\u754C\u9762\u8BED\u8A00
+active_menu_element_color=\u6D3B\u52A8\u83DC\u5355\u989C\u8272
+can_be_set_once=\u53EA\u80FD\u8BBE\u5B9A\u4E00\u6B21
+system_settings=\u7CFB\u7EDF\u8BBE\u7F6E
+email=\u7535\u90AE
+real_time=\u5B9E\u65F6
+flag=\u56FD\u65D7

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/index.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/index.html	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/index.html	2015-10-15 14:07:18 +0000
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <title>Settings</title>
+    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"; rel="stylesheet">
+    <link href="https://fonts.googleapis.com/icon?family=Material+Icons"; rel="stylesheet">
+    <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,500' rel='stylesheet' type='text/css'>
+    <meta name="viewport" content="width=630, height=500, initial-scale=1">
+</head>
+<body>
+    <div id="app">
+        <h1>DHIS2 System Settings</h1>
+        Loading, please wait...
+    </div>
+
+    <script src="https://code.jquery.com/jquery-2.1.4.min.js";></script>
+    <script src="settings-app.js"></script>
+</body>
+</html>

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/manifest.webapp'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/manifest.webapp	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/manifest.webapp	2015-10-15 14:07:18 +0000
@@ -0,0 +1,17 @@
+{
+  "version": "0.0.1",
+  "name": "System Settings",
+  "description": "DHIS2 System Settings app",
+  "icons": {},
+  "developer": {
+    "url": "http://www.dhis2.org";,
+    "name": "Nicolay Ramm"
+  },
+  "launch_path": "index.html",
+  "default_locale": "en",
+  "activities": {
+    "dhis": {
+      "href": ".."
+    }
+  }
+}
\ No newline at end of file

=== added file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/settings-app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/settings-app.js	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/settings-app.js	2015-10-15 14:07:18 +0000
@@ -0,0 +1,42 @@
+!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.uiLocale;"en"!==t&&p.config.i18n.sources.add("i18n/module/i18n_module_"+t+".properties"),p.config.i18n.sources.add("i18n/module/i18n_module_en.properties")}var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a["return"]&&a["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(10),u=r(a),c=n(57),l=r(c),p=n(55),h=n(230),d=r(h),f=n(107),m=r(f),v=n(193),y=r(v),g=n(186),b=r(g),w=n(108),E=n(109),T=r(E),x=n(59),C=r(x),_=n(122),S=r(_),N=n(113),O=r(N),D=n(213),P=r(D),k=n(58),M=r(k),A=n(185),R=r(A),I=n(191),j=r(I),L=n(75),F=r(L),U=n(184),W=r(U),V=n(104),B=r(V),q=n(187),z=r(q);d["default"](),n(316),l["default"].setLevel(l["default"].levels.TRACE);var K={childContextTypes:{muiTheme:u["default"].PropTypes.object},getChildContext:function(){return{muiTheme:T["default"]}}},H=u["default"].createClass({displayName:"HackyTextField",mixins:[K],render:function(){return u["default"].createElement(C["default"],this.props)}}),G=u["default"].createClass({displayName:"HackyDropDown",propTypes:{defaultValue:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number,u["default"].PropTypes.bool])},mixins:[K],getInitialState:function(){return{value:this.props.defaultValue?this.props.defaultValue:"null"}},render:function(){return u["default"].createElement(S["default"],s({value:this.state.value.toString()},this.props))}}),Y=u["default"].createClass({displayName:"HackyCheckbox",propTypes:{onChange:u["default"].PropTypes.func.isRequired},mixins:[K],render:function(){return u["default"].createElement(O["default"],s({onCheck:this.props.onChange},this.props))}}),Q=u["default"].createClass({displayName:"App",propTypes:{categories:u["default"].PropTypes.object.isRequired,categoryOrder:u["default"].PropTypes.arrayOf(u["default"].PropTypes.string).isRequired,settingsStore:u["default"].PropTypes.object.isRequired,configOptionStore:u["default"].PropTypes.object.isRequired,settingsActions:u["default"].PropTypes.object.isRequired,d2:u["default"].PropTypes.object.isRequired},childContextTypes:{d2:u["default"].PropTypes.object},mixins:[K],getChildContext:function(){return{d2:this.props.d2}},getInitialState:function(){return{category:w.categoryOrder[0],currentSettings:w.categories[w.categoryOrder[0]].settings}},componentWillMount:function(){var e=this;this.props.settingsStore.subscribe(function(){e.forceUpdate()}),this.props.configOptionStore.subscribe(function(){e.forceUpdate()}),this.props.settingsActions.setCategory.subscribe(function(t){var n=t.data;e.setState({category:n,currentSettings:n.searchResult?n.settings:w.categories[n].settings})})},render:function(){var e=this,t=this.props.d2,n=T["default"],r=this.state.currentSettings,o=r.map(function(r){var o=t.system.settings.mapping[r],i=y["default"].state?y["default"].state[r]:"",s={name:r};switch(o.type){case"dropdown":s.type=G,s.fieldOptions={floatingLabelText:t.i18n.getTranslation(o.label),value:i,menuItems:Object.keys(o.options||{}).map(function(e){var n=o.options[e];return{payload:e,text:isNaN(n)?t.i18n.getTranslation(o.options[e]):n}})};break;case"checkbox":s.type=Y,s.fieldOptions={label:t.i18n.getTranslation(o.label),checked:"true"===i,onCheck:function(t,n){e.props.settingsActions.saveKey(r,n?"true":"false")}};break;case"post_button":s.type=M["default"],s.fieldOptions={label:t.i18n.getTranslation(o.label),onClick:function(){t.Api.getApi().post(o.uri).then(function(e){l["default"].info(e.message),window.snackbar.show()})},secondary:!0,style:{minWidth:"initial",maxWidth:"initial","float":"right",marginTop:"1em"}};break;case"indicatorGroups":case"dataElementGroups":case"userGroups":case"organisationUnitLevels":case"userRoles":case"organisationUnits":s.type=G;var a=e.props.configOptionStore;s.fieldOptions={floatingLabelText:t.i18n.getTranslation(o.label),value:i||"null",menuItems:a.state?a.state[o.type]:[]},t.system.configuration.get(r).then(function(e){s.fieldOptions.defaultValue=null===e?"null":e.id});break;case"editlist":s.type=H,s.fieldOptions={floatingLabelText:t.i18n.getTranslation(o.label),multiLine:!0},s.updateEvent="onBlur";break;case"password":s.type=H,s.fieldOptions={floatingLabelText:t.i18n.getTranslation(o.label),type:"password"},s.updateEvent="onBlur";break;case"dataapproval":s.type=z["default"],s.fieldOptions={columns:["level","name","categoryOptionGroupSet"]};break;case"oauth2clients":s.type=j["default"],s.fieldOptions={d2:t};break;default:s.type=H,s.updateEvent="onBlur",s.fieldOptions={floatingLabelText:t.i18n.getTranslation(o.label),defaultValue:i,multiLine:o.multiLine&&o.multiLine===!0}}return s.fieldOptions&&s.fieldOptions.style?s.fieldOptions.style=Object.assign({},n.forms,s.fieldOptions.style):s.fieldOptions.style={width:"100%",minWidth:n.forms.minWidth,maxWidth:n.forms.maxWidth},s});return u["default"].createElement("div",{className:"app"},u["default"].createElement(W["default"],null),u["default"].createElement(P["default"],{message:t.i18n.getTranslation("settings_updated"),autoHideDuration:1250,ref:function(t){e._uglySnackbarRefExportFn(t)}}),u["default"].createElement(R["default"],{d2:t,categoryOrder:this.props.categoryOrder,categories:this.props.categories,currentCategory:this.state.category,settingsActions:this.props.settingsActions}),u["default"].createElement("div",{className:"content-area",style:n.forms},u["default"].createElement("h1",null,this.props.categories[this.state.category]?t.i18n.getTranslation(this.props.categories[this.state.category].label):"Search result"),this.state.currentSettings.length?null:u["default"].createElement("div",null,t.i18n.getTranslation("no_settings_found_that_match")),u["default"].createElement(F["default"],{source:this.props.settingsStore.state||{},fieldConfigs:o,onFormFieldUpdate:this._saveSetting})))},_uglySnackbarRefExportFn:function(e){this._snackbar=e,window.snackbar=this._snackbar},_saveSetting:function(e,t){this.props.settingsActions.saveKey(e,t)}});u["default"].render(u["default"].createElement(B["default"],null),document.getElementById("app")),p.getManifest("manifest.webapp").then(function(e){p.config.baseUrl=e.getBaseUrl()+"/api"}).then(p.getUserSettings).then(o).then(p.init).then(function(e){function t(){u["default"].render(u["default"].createElement(Q,{d2:e,settingsStore:y["default"],configOptionStore:b["default"],settingsActions:m["default"],categoryOrder:w.categoryOrder,categories:w.categories}),document.getElementById("app"))}m["default"].load.subscribe(function(n){Promise.all([e.system.settings.all(),e.system.configuration.all(n.data===!0)]).then(function(e){var n=Object.keys(e[1]).filter(function(e){return"systemId"!==e}).map(function(t){return{key:t,value:e[1][t]}}).reduce(function(e,t){var n=t.value;return null===n||"null"===n||void 0===n?n="null":n.hasOwnProperty("id")&&(n=n.id),e[t.key]=n,e},{});n.corsWhitelist=e[1].corsWhitelist.filter(function(e){return e.trim().length>0}).sort().join("\n"),Object.keys(e[0]).map(function(t){var n=e[0][t];e[0][t]=null===n||isNaN(n)?n:n.toString()}),y["default"].setState(Object.assign({},e[0],n)),l["default"].info("System settings loaded successfully.",y["default"].state),t()},function(e){l["default"].error(e)})}),m["default"].saveKey.subscribe(function(t){var n=i(t.data,2),r=n[0],o=n[1],s=e.system.settings.mapping[r];s.configuration?e.system.configuration.set(r,o).then(function(){window.snackbar&&window.snackbar.show()})["catch"](function(e){l["default"].error("Failed to save configuration:",e)}):e.system.settings.set(r,o).then(function(){window.snackbar&&window.snackbar.show()})["catch"](function(e){l["default"].error("Failed to save setting:",e)});var a=y["default"].state;a[r]=o,y["default"].setState(a)}),l["default"].info("D2 initialized",e),l["default"].info("Can settings:",e.currentUser.authorities.has("F_SYSTEM_SETTING"),"Can Oauth:",e.currentUser.authorities.has("F_OAUTH2_CLIENT_MANAGE")),e.i18n.addStrings(e.system.getI18nStrings()),e.i18n.addStrings(["access_denied","settings_updated","save","delete","level","category_option_group_set","search","yes","no","edit"]),e.i18n.load().then(function(){return e.currentUser.authorities.has("F_SYSTEM_SETTING")?(m["default"].load(),void Promise.all([e.models.indicatorGroup.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.dataElementGroup.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.userGroup.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.organisationUnitLevel.list({paging:!1,fields:"id,level,displayName",order:"level:asc"}),e.models.userRole.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.organisationUnit.list({paging:!1,fields:"id,displayName",filter:["level:in:[1,2]"]})]).then(function(t){function n(e){return e.toArray().map(function(e){return{payload:e.id,text:e.displayName}})}var r=n(t[0]),o=n(t[1]),i=n(t[2]);i.unshift({payload:"null",text:e.i18n.getTranslation("no_feedback_recipients")});var s=t[3].toArray().map(function(e){return{payload:e.id,text:e.level+": "+e.displayName}}),a=n(t[4]),u=n(t[5]);b["default"].setState({indicatorGroups:r,dataElementGroups:o,userGroups:i,organisationUnitLevels:s,userRoles:a,organisationUnits:u})})):void document.write(e.i18n.getTranslation("access_denied"))})},function(e){l["default"].error("Failed to initialize D2:",e),document.write("Failed to initialize D2.")})},function(e,t){function n(){c=!1,s.length?u=s.concat(u):l=-1,u.length&&r()}function r(){if(!c){var e=setTimeout(n);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function i(){}var s,a=e.exports={},u=[],c=!1,l=-1;a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new o(e,t)),1!==u.length||c||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=i,a.addListener=i,a.once=i,a.off=i,a.removeListener=i,a.removeAllListeners=i,a.emit=i,a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var n=function(e,n,r,o,i,s,a,u){if("production"!==t.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!e){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,s,a,u],p=0;c=new Error("Invariant Violation: "+n.replace(/%s/g,function(){return l[p++]}))}throw c.framesToPop=1,c}};e.exports=n}).call(t,n(1))},function(e,t,n){e.exports=n(32)},function(e,t,n){"use strict";var r=n(3),o=n(47),i=n(127);e.exports={propTypes:{style:r.PropTypes.object},mergeStyles:function(){return o.merge.apply(this,arguments)},mergeAndPrefix:function(){return i.mergeAndPrefix.apply(this,arguments)}}},function(e,t){"use strict";function n(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i){var s=Object(i);for(var a in s)r.call(s,a)&&(n[a]=s[a])}}return n}e.exports=n},function(e,t,n){"use strict";var r=n(20),o=n(27),i=n(222),s=n(158);e.exports={getMuiTheme:function(e){var t={appBar:{color:e.palette.primary1Color,textColor:e.palette.alternateTextColor,height:e.spacing.desktopKeylineIncrement},avatar:{borderColor:"rgba(0, 0, 0, 0.08)"},button:{height:36,minWidth:88,iconButtonSize:2*e.spacing.iconSize},checkbox:{boxColor:e.palette.textColor,checkedColor:e.palette.primary1Color,requiredColor:e.palette.primary1Color,disabledColor:e.palette.disabledColor,labelColor:e.palette.textColor,labelDisabledColor:e.palette.disabledColor},datePicker:{color:e.palette.primary1Color,textColor:e.palette.alternateTextColor,calendarTextColor:e.palette.textColor,selectColor:e.palette.primary2Color,selectTextColor:e.palette.alternateTextColor},dropDownMenu:{accentColor:e.palette.borderColor},flatButton:{color:e.palette.alternateTextColor,textColor:e.palette.textColor,primaryTextColor:e.palette.accent1Color,secondaryTextColor:e.palette.primary1Color},floatingActionButton:{buttonSize:56,miniSize:40,color:e.palette.accent1Color,iconColor:e.palette.alternateTextColor,secondaryColor:e.palette.primary1Color,secondaryIconColor:e.palette.alternateTextColor,disabledTextColor:e.palette.disabledColor},gridTile:{textColor:r.white},inkBar:{backgroundColor:e.palette.accent1Color},leftNav:{width:4*e.spacing.desktopKeylineIncrement,color:e.palette.canvasColor},listItem:{nestedLevelDepth:18},menu:{backgroundColor:e.palette.canvasColor,containerBackgroundColor:e.palette.canvasColor},menuItem:{dataHeight:32,height:48,hoverColor:"rgba(0, 0, 0, .035)",padding:e.spacing.desktopGutter,selectedTextColor:e.palette.accent1Color},menuSubheader:{padding:e.spacing.desktopGutter,borderColor:e.palette.borderColor,textColor:e.palette.primary1Color},paper:{backgroundColor:e.palette.canvasColor},radioButton:{borderColor:e.palette.textColor,backgroundColor:e.palette.alternateTextColor,checkedColor:e.palette.primary1Color,requiredColor:e.palette.primary1Color,disabledColor:e.palette.disabledColor,size:24,labelColor:e.palette.textColor,labelDisabledColor:e.palette.disabledColor},raisedButton:{color:e.palette.alternateTextColor,textColor:e.palette.textColor,primaryColor:e.palette.accent1Color,primaryTextColor:e.palette.alternateTextColor,secondaryColor:e.palette.primary1Color,secondaryTextColor:e.palette.alternateTextColor},refreshIndicator:{strokeColor:e.palette.borderColor,loadingStrokeColor:e.palette.primary1Color},slider:{trackSize:2,trackColor:e.palette.primary3Color,trackColorSelected:e.palette.accent3Color,handleSize:12,handleSizeDisabled:8,handleSizeActive:18,handleColorZero:e.palette.borderColor,handleFillColor:e.palette.alternateTextColor,selectionColor:e.palette.primary1Color,rippleColor:e.palette.primary1Color},snackbar:{textColor:e.palette.alternateTextColor,backgroundColor:e.palette.textColor,actionColor:e.palette.accent1Color},table:{backgroundColor:e.palette.canvasColor},tableHeader:{borderColor:e.palette.borderColor},tableHeaderColumn:{textColor:e.palette.primary3Color,height:56,spacing:24},tableFooter:{borderColor:e.palette.borderColor,textColor:e.palette.primary3Color},tableRow:{hoverColor:e.palette.accent2Color,stripeColor:o.lighten(e.palette.primary1Color,.55),selectedColor:e.palette.borderColor,textColor:e.palette.textColor,borderColor:e.palette.borderColor},tableRowColumn:{height:48,spacing:24},timePicker:{color:e.palette.alternateTextColor,textColor:e.palette.accent3Color,accentColor:e.palette.primary1Color,clockColor:e.palette.primary3Color,selectColor:e.palette.primary2Color,selectTextColor:e.palette.alternateTextColor},toggle:{thumbOnColor:e.palette.primary1Color,thumbOffColor:e.palette.accent2Color,thumbDisabledColor:e.palette.borderColor,thumbRequiredColor:e.palette.primary1Color,trackOnColor:o.fade(e.palette.primary1Color,.5),trackOffColor:e.palette.primary3Color,trackDisabledColor:e.palette.primary3Color,labelColor:e.palette.textColor,labelDisabledColor:e.palette.disabledColor},toolbar:{backgroundColor:o.darken(e.palette.accent2Color,.05),height:56,titleFontSize:20,iconColor:"rgba(0, 0, 0, .40)",separatorColor:"rgba(0, 0, 0, .175)",menuHoverColor:"rgba(0, 0, 0, .10)"},tabs:{backgroundColor:e.palette.primary1Color},textField:{textColor:e.palette.textColor,hintColor:e.palette.disabledColor,floatingLabelColor:e.palette.textColor,disabledTextColor:e.palette.disabledColor,errorColor:r.red500,focusColor:e.palette.primary1Color,backgroundColor:"transparent",borderColor:e.palette.borderColor}};return t.flatButton.disabledTextColor=o.fade(t.flatButton.textColor,.3),t.raisedButton.disabledColor=o.darken(t.raisedButton.color,.1),t.raisedButton.disabledTextColor=o.fade(t.raisedButton.textColor,.3),t.toggle.trackRequiredColor=o.fade(t.toggle.thumbRequiredColor,.5),t.rawTheme=e,t["static"]=!0,t},modifyRawThemeSpacing:function(e,t){var n=s(e.rawTheme,{spacing:{$set:t}});return this.getMuiTheme(n)},modifyRawThemePalette:function(e,t){var n=i(e.rawTheme.palette,t),r=s(e.rawTheme,{palette:{$set:n}});return this.getMuiTheme(r)},modifyRawThemeFontFamily:function(e,t){var n=s(e.rawTheme,{fontFamily:{$set:t}});return this.getMuiTheme(n)}}},function(e,t,n){"use strict";var r=n(20),o=n(27),i=n(123);e.exports={spacing:i,fontFamily:"Roboto, sans-serif",palette:{primary1Color:r.cyan500,primary2Color:r.cyan700,primary3Color:r.lightBlack,accent1Color:r.pinkA200,accent2Color:r.grey100,accent3Color:r.grey500,textColor:r.darkBlack,alternateTextColor:r.white,canvasColor:r.white,borderColor:r.grey300,disabledColor:o.fade(r.darkBlack,.3)}}},function(e,t,n){(function(t){"use strict";function r(e,n){Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:function(){return this._store?this._store[n]:null},set:function(e){"production"!==t.env.NODE_ENV?u(!1,"Don't set the %s property of the React element. Instead, specify the correct value when initially creating the element.",n):null,this._store[n]=e}})}function o(e){try{var t={props:!0};for(var n in t)r(e,n);l=!0}catch(o){}}var i=n(82),s=n(25),a=n(5),u=n(9),c={key:!0,ref:!0},l=!1,p=function(e,n,r,o,i,s){if(this.type=e,this.key=n,this.ref=r,this._owner=o,this._context=i,"production"!==t.env.NODE_ENV){this._store={props:s,originalProps:a({},s)};try{Object.defineProperty(this._store,"validated",{configurable:!1,enumerable:!1,writable:!0})}catch(u){}if(this._store.validated=!1,l)return void Object.freeze(this)}this.props=s};p.prototype={_isReactElement:!0},"production"!==t.env.NODE_ENV&&o(p.prototype),p.createElement=function(e,t,n){var r,o={},a=null,u=null;if(null!=t){u=void 0===t.ref?null:t.ref,a=void 0===t.key?null:""+t.key;for(r in t)t.hasOwnProperty(r)&&!c.hasOwnProperty(r)&&(o[r]=t[r])}var l=arguments.length-2;if(1===l)o.children=n;else if(l>1){for(var h=Array(l),d=0;l>d;d++)h[d]=arguments[d+2];o.children=h}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)"undefined"==typeof o[r]&&(o[r]=f[r])}return new p(e,a,u,s.current,i.current,o)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceProps=function(e,n){var r=new p(e.type,e.key,e.ref,e._owner,e._context,n);return"production"!==t.env.NODE_ENV&&(r._store.validated=e._store.validated),r},p.cloneElement=function(e,t,n){var r,o=a({},e.props),i=e.key,u=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,l=s.current),void 0!==t.key&&(i=""+t.key);for(r in t)t.hasOwnProperty(r)&&!c.hasOwnProperty(r)&&(o[r]=t[r])}var h=arguments.length-2;if(1===h)o.children=n;else if(h>1){for(var d=Array(h),f=0;h>f;f++)d[f]=arguments[f+2];o.children=d}return new p(e.type,i,u,l,e._context,o)},p.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},e.exports=p}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(21),o=r;"production"!==t.env.NODE_ENV&&(o=function(e,t){for(var n=[],r=2,o=arguments.length;o>r;r++)n.push(arguments[r]);if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(0!==t.indexOf("Failed Composite propType: ")&&!e){var i=0,s="Warning: "+t.replace(/%s/g,function(){return n[i++]});console.warn(s);try{throw new Error(s)}catch(a){}}}),e.exports=o}).call(t,n(1))},function(e,t,n){e.exports=n(277)},function(e,t,n){"use strict";var r=n(22);e.exports={easeOutFunction:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutFunction:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeOut:function(e,t,n,r){if(r=r||this.easeOutFunction,t&&"[object Array]"===Object.prototype.toString.call(t)){for(var o="",i=0;i<t.length;i++)o&&(o+=","),o+=this.create(e,t[i],n,r);return o}return this.create(e,t,n,r)},create:function(e,t,n,o){return e=e||"450ms",t=t||"all",n=n||"0ms",o=o||"linear",r.singleHyphened(t)+" "+e+" "+o+" "+n}}},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){"use strict";var r=n(53),o=r({bubbled:null,captured:null}),i=r({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),s={topLevelTypes:i,PropagationPhases:o};e.exports=s},function(e,t){"use strict";function n(e,t){if(void 0!==e)return!0;throw new Error([t||"Value","should be provided"].join(" "))}function r(e,t,r){if(n(e,r),n(t,"Type"),"function"==typeof t&&e instanceof t||"string"==typeof t&&typeof e===t)return!0;throw new Error(["Expected",r||e,"to have type",t].join(" "))}function o(e,t){var n=function(){};try{return r(e,t),!0}catch(o){n()}return!1}function i(e){return o(e,"string")}function s(e){return Array.isArray(e)}function a(e){return o(e,Object)}function u(e){return void 0!==e}function c(e){return"number"==typeof e&&isFinite(e)&&e>-9007199254740992&&9007199254740992>e&&Math.floor(e)===e}function l(e){return"number"==typeof e&&isFinite(e)&&e-parseFloat(e)+1>=0}function p(e,t){var n=s(t)&&t||[];return n.indexOf(e)>=0}function h(e){return e&&11===e.length}Object.defineProperty(t,"__esModule",{value:!0}),t.checkDefined=n,t.checkType=r,t.isType=o,t.isString=i,t.isArray=s,t.isObject=a,t.isDefined=u,t.isInteger=c,t.isNumeric=l,t.contains=p,t.isValidUid=h,Number.isInteger||(Number.isInteger=c),t["default"]={checkType:r,checkDefined:n,isArray:s,isDefined:u,isInteger:c,isNumeric:l,isString:i,isType:o,contains:p,isValidUid:h}},function(e,t,n){(function(t){"use strict";function r(e,n,r){for(var o in n)n.hasOwnProperty(o)&&("production"!==t.env.NODE_ENV?_("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",b[r],o):null)}function o(e,n){var r=D.hasOwnProperty(n)?D[n]:null;M.hasOwnProperty(n)&&("production"!==t.env.NODE_ENV?T(r===N.OVERRIDE_BASE,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",n):T(r===N.OVERRIDE_BASE)),e.hasOwnProperty(n)&&("production"!==t.env.NODE_ENV?T(r===N.DEFINE_MANY||r===N.DEFINE_MANY_MERGED,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n):T(r===N.DEFINE_MANY||r===N.DEFINE_MANY_MERGED))}function i(e,n){if(n){"production"!==t.env.NODE_ENV?T("function"!=typeof n,"ReactClass: You're attempting to use a component class as a mixin. Instead, just use a regular object."):T("function"!=typeof n),"production"!==t.env.NODE_ENV?T(!f.isValidElement(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object."):T(!f.isValidElement(n));var r=e.prototype;n.hasOwnProperty(S)&&P.mixins(e,n.mixins);for(var i in n)if(n.hasOwnProperty(i)&&i!==S){var s=n[i];if(o(r,i),P.hasOwnProperty(i))P[i](e,s);else{var a=D.hasOwnProperty(i),l=r.hasOwnProperty(i),p=s&&s.__reactDontBind,h="function"==typeof s,d=h&&!a&&!l&&!p;if(d)r.__reactAutoBindMap||(r.__reactAutoBindMap={}),r.__reactAutoBindMap[i]=s,r[i]=s;else if(l){var m=D[i];"production"!==t.env.NODE_ENV?T(a&&(m===N.DEFINE_MANY_MERGED||m===N.DEFINE_MANY),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,i):T(a&&(m===N.DEFINE_MANY_MERGED||m===N.DEFINE_MANY)),m===N.DEFINE_MANY_MERGED?r[i]=u(r[i],s):m===N.DEFINE_MANY&&(r[i]=c(r[i],s))}else r[i]=s,"production"!==t.env.NODE_ENV&&"function"==typeof s&&n.displayName&&(r[i].displayName=n.displayName+"_"+i)}}}}function s(e,n){if(n)for(var r in n){var o=n[r];if(n.hasOwnProperty(r)){var i=r in P;"production"!==t.env.NODE_ENV?T(!i,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',r):T(!i);var s=r in e;"production"!==t.env.NODE_ENV?T(!s,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",r):T(!s),e[r]=o}}}function a(e,n){"production"!==t.env.NODE_ENV?T(e&&n&&"object"==typeof e&&"object"==typeof n,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."):T(e&&n&&"object"==typeof e&&"object"==typeof n);for(var r in n)n.hasOwnProperty(r)&&("production"!==t.env.NODE_ENV?T(void 0===e[r],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",r):T(void 0===e[r]),e[r]=n[r]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return a(o,n),a(o,r),o}}function c(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function l(e,n){var r=n.bind(e);if("production"!==t.env.NODE_ENV){r.__reactBoundContext=e,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=e.constructor.displayName,i=r.bind;r.bind=function(s){for(var a=[],u=1,c=arguments.length;c>u;u++)a.push(arguments[u]);if(s!==e&&null!==s)"production"!==t.env.NODE_ENV?_(!1,"bind(): React component methods may only be bound to the component instance. See %s",o):null;else if(!a.length)return"production"!==t.env.NODE_ENV?_(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o):null,r;var l=i.apply(r,arguments);return l.__reactBoundContext=e,l.__reactBoundMethod=n,l.__reactBoundArguments=a,l}}return r}function p(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=l(e,m.guard(n,e.constructor.displayName+"."+t))}}var h=n(133),d=n(25),f=n(8),m=n(261),v=n(35),y=n(84),g=n(85),b=n(66),w=n(86),E=n(5),T=n(2),x=n(53),C=n(17),_=n(9),S=C({mixins:null}),N=x({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),O=[],D={mixins:N.DEFINE_MANY,statics:N.DEFINE_MANY,propTypes:N.DEFINE_MANY,contextTypes:N.DEFINE_MANY,childContextTypes:N.DEFINE_MANY,getDefaultProps:N.DEFINE_MANY_MERGED,getInitialState:N.DEFINE_MANY_MERGED,getChildContext:N.DEFINE_MANY_MERGED,render:N.DEFINE_ONCE,componentWillMount:N.DEFINE_MANY,componentDidMount:N.DEFINE_MANY,componentWillReceiveProps:N.DEFINE_MANY,shouldComponentUpdate:N.DEFINE_ONCE,componentWillUpdate:N.DEFINE_MANY,componentDidUpdate:N.DEFINE_MANY,componentWillUnmount:N.DEFINE_MANY,updateComponent:N.OVERRIDE_BASE},P={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,g.childContext),e.childContextTypes=E({},e.childContextTypes,n)},contextTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,g.context),e.contextTypes=E({},e.contextTypes,n)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=u(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,g.prop),e.propTypes=E({},e.propTypes,n)},statics:function(e,t){s(e,t)}},k={enumerable:!1,get:function(){var e=this.displayName||this.name||"Component";return"production"!==t.env.NODE_ENV?_(!1,"%s.type is deprecated. Use %s directly to access the class.",e,e):null,Object.defineProperty(this,"type",{value:this}),this}},M={replaceState:function(e,t){w.enqueueReplaceState(this,e),t&&w.enqueueCallback(this,t)},isMounted:function(){if("production"!==t.env.NODE_ENV){var e=d.current;null!==e&&("production"!==t.env.NODE_ENV?_(e._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",e.getName()||"A component"):null,e._warnedAboutRefsInRender=!0)}var n=v.get(this);return n&&n!==y.currentlyMountingInstance},setProps:function(e,t){w.enqueueSetProps(this,e),t&&w.enqueueCallback(this,t)},replaceProps:function(e,t){w.enqueueReplaceProps(this,e),t&&w.enqueueCallback(this,t)}},A=function(){};E(A.prototype,h.prototype,M);var R={createClass:function(e){var n=function(e,r){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?_(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory";):null),this.__reactAutoBindMap&&p(this),this.props=e,this.context=r,this.state=null;var o=this.getInitialState?this.getInitialState():null;"production"!==t.env.NODE_ENV&&"undefined"==typeof o&&this.getInitialState._isMockFunction&&(o=null),"production"!==t.env.NODE_ENV?T("object"==typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"):T("object"==typeof o&&!Array.isArray(o)),this.state=o};n.prototype=new A,n.prototype.constructor=n,O.forEach(i.bind(null,n)),i(n,e),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==t.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),"production"!==t.env.NODE_ENV?T(n.prototype.render,"createClass(...): Class specification must implement a `render` method."):T(n.prototype.render),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?_(!n.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",e.displayName||"A component"):null);
+for(var r in D)n.prototype[r]||(n.prototype[r]=null);if(n.type=n,"production"!==t.env.NODE_ENV)try{Object.defineProperty(n,"type",k)}catch(o){}return n},injection:{injectMixin:function(e){O.push(e)}}};e.exports=R}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){"production"!==t.env.NODE_ENV?y(O.ReactReconcileTransaction&&T,"ReactUpdates: must inject a reconcile transaction class and batching strategy"):y(O.ReactReconcileTransaction&&T)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled()}function i(e,t,n,o,i){r(),T.batchedUpdates(e,t,n,o,i)}function s(e,t){return e._mountOrder-t._mountOrder}function a(e){var n=e.dirtyComponentsLength;"production"!==t.env.NODE_ENV?y(n===b.length,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",n,b.length):y(n===b.length),b.sort(s);for(var r=0;n>r;r++){var o=b[r],i=o._pendingCallbacks;if(o._pendingCallbacks=null,f.performUpdateIfNecessary(o,e.reconcileTransaction),i)for(var a=0;a<i.length;a++)e.callbackQueue.enqueue(i[a],o.getPublicInstance())}}function u(e){return r(),"production"!==t.env.NODE_ENV?g(null==h.current,"enqueueUpdate(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."):null,T.isBatchingUpdates?void b.push(e):void T.batchedUpdates(u,e)}function c(e,n){"production"!==t.env.NODE_ENV?y(T.isBatchingUpdates,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."):y(T.isBatchingUpdates),w.enqueue(e,n),E=!0}var l=n(77),p=n(23),h=n(25),d=n(29),f=n(38),m=n(68),v=n(5),y=n(2),g=n(9),b=[],w=l.getPooled(),E=!1,T=null,x={initialize:function(){this.dirtyComponentsLength=b.length},close:function(){this.dirtyComponentsLength!==b.length?(b.splice(0,this.dirtyComponentsLength),S()):b.length=0}},C={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},_=[x,C];v(o.prototype,m.Mixin,{getTransactionWrappers:function(){return _},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return m.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(o);var S=function(){for(;b.length||E;){if(b.length){var e=o.getPooled();e.perform(a,null,e),o.release(e)}if(E){E=!1;var t=w;w=l.getPooled(),t.notifyAll(),l.release(t)}}};S=d.measure("ReactUpdates","flushBatchedUpdates",S);var N={injectReconcileTransaction:function(e){"production"!==t.env.NODE_ENV?y(e,"ReactUpdates: must provide a reconcile transaction class"):y(e),O.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){"production"!==t.env.NODE_ENV?y(e,"ReactUpdates: must provide a batching strategy"):y(e),"production"!==t.env.NODE_ENV?y("function"==typeof e.batchedUpdates,"ReactUpdates: must provide a batchedUpdates() function"):y("function"==typeof e.batchedUpdates),"production"!==t.env.NODE_ENV?y("boolean"==typeof e.isBatchingUpdates,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):y("boolean"==typeof e.isBatchingUpdates),T=e}},O={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:S,injection:N,asap:c};e.exports=O}).call(t,n(1))},function(e,t){var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){var t=k(e);return t&&G.getID(t)}function i(e){var n=s(e);if(n)if(U.hasOwnProperty(n)){var r=U[n];r!==e&&("production"!==t.env.NODE_ENV?A(!l(r,n),"ReactMount: Two valid but unequal nodes with the same `%s`: %s",F,n):A(!l(r,n)),U[n]=e)}else U[n]=e;return n}function s(e){return e&&e.getAttribute&&e.getAttribute(F)||""}function a(e,t){var n=s(e);n!==t&&delete U[n],e.setAttribute(F,t),U[t]=e}function u(e){return U.hasOwnProperty(e)&&l(U[e],e)||(U[e]=G.findReactNodeByID(e)),U[e]}function c(e){var t=x.get(e)._rootNodeID;return E.isNullComponentID(t)?null:(U.hasOwnProperty(t)&&l(U[t],t)||(U[t]=G.findReactNodeByID(t)),U[t])}function l(e,n){if(e){"production"!==t.env.NODE_ENV?A(s(e)===n,"ReactMount: Unexpected modification of `%s`",F):A(s(e)===n);var r=G.findReactContainerForID(n);if(r&&P(r,e))return!0}return!1}function p(e){delete U[e]}function h(e){var t=U[e];return t&&l(t,e)?void(H=t):!1}function d(e){H=null,T.traverseAncestors(e,h);var t=H;return H=null,t}function f(e,t,n,r,o){var i=S.mountComponent(e,t,r,D);e._isTopLevel=!0,G._mountImageIntoNode(i,n,o)}function m(e,t,n,r){var o=O.ReactReconcileTransaction.getPooled();o.perform(f,null,e,t,n,o,r),O.ReactReconcileTransaction.release(o)}var v=n(30),y=n(33),g=n(25),b=n(8),w=n(51),E=n(64),T=n(34),x=n(35),C=n(139),_=n(29),S=n(38),N=n(86),O=n(16),D=n(52),P=n(146),k=n(301),M=n(92),A=n(2),R=n(94),I=n(95),j=n(9),L=T.SEPARATOR,F=v.ID_ATTRIBUTE_NAME,U={},W=1,V=9,B={},q={};if("production"!==t.env.NODE_ENV)var z={};var K=[],H=null,G={_instancesByReactRootID:B,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,n,r,i){return"production"!==t.env.NODE_ENV&&w.checkAndWarnForMutatedProps(n),G.scrollMonitor(r,function(){N.enqueueElementInternal(e,n),i&&N.enqueueCallbackInternal(e,i)}),"production"!==t.env.NODE_ENV&&(z[o(r)]=k(r)),e},_registerComponent:function(e,n){"production"!==t.env.NODE_ENV?A(n&&(n.nodeType===W||n.nodeType===V),"_registerComponent(...): Target container is not a DOM element."):A(n&&(n.nodeType===W||n.nodeType===V)),y.ensureScrollValueMonitoring();var r=G.registerContainer(n);return B[r]=e,r},_renderNewRootComponent:function(e,n,r){"production"!==t.env.NODE_ENV?j(null==g.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."):null;var o=M(e,null),i=G._registerComponent(o,n);return O.batchedUpdates(m,o,i,n,r),"production"!==t.env.NODE_ENV&&(z[i]=k(n)),o},render:function(e,n,r){"production"!==t.env.NODE_ENV?A(b.isValidElement(e),"React.render(): Invalid component element.%s","string"==typeof e?" Instead of passing an element string, make sure to instantiate it by passing it to React.createElement.":"function"==typeof e?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":""):A(b.isValidElement(e));var i=B[o(n)];if(i){var s=i._currentElement;if(I(s,e))return G._updateRootComponent(i,e,n,r).getPublicInstance();G.unmountComponentAtNode(n)}var a=k(n),u=a&&G.isRenderedByReact(a);if("production"!==t.env.NODE_ENV&&(!u||a.nextSibling))for(var c=a;c;){if(G.isRenderedByReact(c)){"production"!==t.env.NODE_ENV?j(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup."):null;break}c=c.nextSibling}var l=u&&!i,p=G._renderNewRootComponent(e,n,l).getPublicInstance();return r&&r.call(p),p},constructAndRenderComponent:function(e,t,n){var r=b.createElement(e,t);return G.render(r,n)},constructAndRenderComponentByID:function(e,n,r){var o=document.getElementById(r);return"production"!==t.env.NODE_ENV?A(o,'Tried to get element with id of "%s" but it is not present on the page.',r):A(o),G.constructAndRenderComponent(e,n,o)},registerContainer:function(e){var t=o(e);return t&&(t=T.getReactRootIDFromNodeID(t)),t||(t=T.createReactRootID()),q[t]=e,t},unmountComponentAtNode:function(e){"production"!==t.env.NODE_ENV?j(null==g.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."):null,"production"!==t.env.NODE_ENV?A(e&&(e.nodeType===W||e.nodeType===V),"unmountComponentAtNode(...): Target container is not a DOM element."):A(e&&(e.nodeType===W||e.nodeType===V));var n=o(e),r=B[n];return r?(G.unmountComponentFromNode(r,e),delete B[n],delete q[n],"production"!==t.env.NODE_ENV&&delete z[n],!0):!1},unmountComponentFromNode:function(e,t){for(S.unmountComponent(e),t.nodeType===V&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)},findReactContainerForID:function(e){var n=T.getReactRootIDFromNodeID(e),r=q[n];if("production"!==t.env.NODE_ENV){var o=z[n];if(o&&o.parentNode!==r){"production"!==t.env.NODE_ENV?A(s(o)===n,"ReactMount: Root element ID differed from reactRootID."):A(s(o)===n);var i=r.firstChild;i&&n===s(i)?z[n]=i:"production"!==t.env.NODE_ENV?j(!1,"ReactMount: Root element has been removed from its original container. New container:",o.parentNode):null}}return r},findReactNodeByID:function(e){var t=G.findReactContainerForID(e);return G.findComponentRoot(t,e)},isRenderedByReact:function(e){if(1!==e.nodeType)return!1;var t=G.getID(e);return t?t.charAt(0)===L:!1},getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(G.isRenderedByReact(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,n){var r=K,o=0,i=d(n)||e;for(r[0]=i.firstChild,r.length=1;o<r.length;){for(var s,a=r[o++];a;){var u=G.getID(a);u?n===u?s=a:T.isAncestorIDOf(u,n)&&(r.length=o=0,r.push(a.firstChild)):r.push(a.firstChild),a=a.nextSibling}if(s)return r.length=0,s}r.length=0,"production"!==t.env.NODE_ENV?A(!1,"findComponentRoot(..., %s): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",n,G.getID(e)):A(!1)},_mountImageIntoNode:function(e,n,o){if("production"!==t.env.NODE_ENV?A(n&&(n.nodeType===W||n.nodeType===V),"mountComponentIntoNode(...): Target container is not valid."):A(n&&(n.nodeType===W||n.nodeType===V)),o){var i=k(n);if(C.canReuseMarkup(e,i))return;var s=i.getAttribute(C.CHECKSUM_ATTR_NAME);i.removeAttribute(C.CHECKSUM_ATTR_NAME);var a=i.outerHTML;i.setAttribute(C.CHECKSUM_ATTR_NAME,s);var u=r(e,a),c=" (client) "+e.substring(u-20,u+20)+"\n (server) "+a.substring(u-20,u+20);"production"!==t.env.NODE_ENV?A(n.nodeType!==V,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",c):A(n.nodeType!==V),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?j(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",c):null)}"production"!==t.env.NODE_ENV?A(n.nodeType!==V,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See React.renderToString() for server rendering."):A(n.nodeType!==V),R(n,e)},getReactRootID:o,getID:i,setID:a,getNode:u,getNodeFromInstance:c,purgeID:p};_.measureMethods(G,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=G}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(62),c=n(11),l=n(7),p=n(6),h=i.createClass({displayName:"Paper",mixins:[s,a],contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:p.getMuiTheme(l)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},propTypes:{circle:i.PropTypes.bool,rounded:i.PropTypes.bool,transitionEnabled:i.PropTypes.bool,zDepth:u.zDepth},getDefaultProps:function(){return{circle:!1,rounded:!0,transitionEnabled:!0,zDepth:1}},render:function(){var e=this.props,t=e.children,n=e.circle,s=e.rounded,a=e.style,u=e.transitionEnabled,l=e.zDepth,p=r(e,["children","circle","rounded","style","transitionEnabled","zDepth"]),h={backgroundColor:this.state.muiTheme.paper.backgroundColor,transition:u&&c.easeOut(),boxSizing:"border-box",fontFamily:this.state.muiTheme.rawTheme.fontFamily,WebkitTapHighlightColor:"rgba(0,0,0,0)",boxShadow:this._getZDepthShadows(l),borderRadius:n?"50%":s?"2px":"0px"};return i.createElement("div",o({},p,{style:this.mergeAndPrefix(h,a)}),t)},_getZDepthShadows:function(e){var t=[null,"0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24)","0 3px 10px rgba(0, 0, 0, 0.16), 0 3px 10px rgba(0, 0, 0, 0.23)","0 10px 30px rgba(0, 0, 0, 0.19), 0 6px 10px rgba(0, 0, 0, 0.23)","0 14px 45px rgba(0, 0, 0, 0.25), 0 10px 18px rgba(0, 0, 0, 0.22)","0 19px 60px rgba(0, 0, 0, 0.30), 0 15px 20px rgba(0, 0, 0, 0.22)"];return t[e]}});e.exports=h},function(e,t){"use strict";e.exports={red50:"#ffebee",red100:"#ffcdd2",red200:"#ef9a9a",red300:"#e57373",red400:"#ef5350",red500:"#f44336",red600:"#e53935",red700:"#d32f2f",red800:"#c62828",red900:"#b71c1c",redA100:"#ff8a80",redA200:"#ff5252",redA400:"#ff1744",redA700:"#d50000",pink50:"#fce4ec",pink100:"#f8bbd0",pink200:"#f48fb1",pink300:"#f06292",pink400:"#ec407a",pink500:"#e91e63",pink600:"#d81b60",pink700:"#c2185b",pink800:"#ad1457",pink900:"#880e4f",pinkA100:"#ff80ab",pinkA200:"#ff4081",pinkA400:"#f50057",pinkA700:"#c51162",purple50:"#f3e5f5",purple100:"#e1bee7",purple200:"#ce93d8",purple300:"#ba68c8",purple400:"#ab47bc",purple500:"#9c27b0",purple600:"#8e24aa",purple700:"#7b1fa2",purple800:"#6a1b9a",purple900:"#4a148c",purpleA100:"#ea80fc",purpleA200:"#e040fb",purpleA400:"#d500f9",purpleA700:"#aa00ff",deepPurple50:"#ede7f6",deepPurple100:"#d1c4e9",deepPurple200:"#b39ddb",deepPurple300:"#9575cd",deepPurple400:"#7e57c2",deepPurple500:"#673ab7",deepPurple600:"#5e35b1",deepPurple700:"#512da8",deepPurple800:"#4527a0",deepPurple900:"#311b92",deepPurpleA100:"#b388ff",deepPurpleA200:"#7c4dff",deepPurpleA400:"#651fff",deepPurpleA700:"#6200ea",indigo50:"#e8eaf6",indigo100:"#c5cae9",indigo200:"#9fa8da",indigo300:"#7986cb",indigo400:"#5c6bc0",indigo500:"#3f51b5",indigo600:"#3949ab",indigo700:"#303f9f",indigo800:"#283593",indigo900:"#1a237e",indigoA100:"#8c9eff",indigoA200:"#536dfe",indigoA400:"#3d5afe",indigoA700:"#304ffe",blue50:"#e3f2fd",blue100:"#bbdefb",blue200:"#90caf9",blue300:"#64b5f6",blue400:"#42a5f5",blue500:"#2196f3",blue600:"#1e88e5",blue700:"#1976d2",blue800:"#1565c0",blue900:"#0d47a1",blueA100:"#82b1ff",blueA200:"#448aff",blueA400:"#2979ff",blueA700:"#2962ff",lightBlue50:"#e1f5fe",lightBlue100:"#b3e5fc",lightBlue200:"#81d4fa",lightBlue300:"#4fc3f7",lightBlue400:"#29b6f6",lightBlue500:"#03a9f4",lightBlue600:"#039be5",lightBlue700:"#0288d1",lightBlue800:"#0277bd",lightBlue900:"#01579b",lightBlueA100:"#80d8ff",lightBlueA200:"#40c4ff",lightBlueA400:"#00b0ff",lightBlueA700:"#0091ea",cyan50:"#e0f7fa",cyan100:"#b2ebf2",cyan200:"#80deea",cyan300:"#4dd0e1",cyan400:"#26c6da",cyan500:"#00bcd4",cyan600:"#00acc1",cyan700:"#0097a7",cyan800:"#00838f",cyan900:"#006064",cyanA100:"#84ffff",cyanA200:"#18ffff",cyanA400:"#00e5ff",cyanA700:"#00b8d4",teal50:"#e0f2f1",teal100:"#b2dfdb",teal200:"#80cbc4",teal300:"#4db6ac",teal400:"#26a69a",teal500:"#009688",teal600:"#00897b",teal700:"#00796b",teal800:"#00695c",teal900:"#004d40",tealA100:"#a7ffeb",tealA200:"#64ffda",tealA400:"#1de9b6",tealA700:"#00bfa5",green50:"#e8f5e9",green100:"#c8e6c9",green200:"#a5d6a7",green300:"#81c784",green400:"#66bb6a",green500:"#4caf50",green600:"#43a047",green700:"#388e3c",green800:"#2e7d32",green900:"#1b5e20",greenA100:"#b9f6ca",greenA200:"#69f0ae",greenA400:"#00e676",greenA700:"#00c853",lightGreen50:"#f1f8e9",lightGreen100:"#dcedc8",lightGreen200:"#c5e1a5",lightGreen300:"#aed581",lightGreen400:"#9ccc65",lightGreen500:"#8bc34a",lightGreen600:"#7cb342",lightGreen700:"#689f38",lightGreen800:"#558b2f",lightGreen900:"#33691e",lightGreenA100:"#ccff90",lightGreenA200:"#b2ff59",lightGreenA400:"#76ff03",lightGreenA700:"#64dd17",lime50:"#f9fbe7",lime100:"#f0f4c3",lime200:"#e6ee9c",lime300:"#dce775",lime400:"#d4e157",lime500:"#cddc39",lime600:"#c0ca33",lime700:"#afb42b",lime800:"#9e9d24",lime900:"#827717",limeA100:"#f4ff81",limeA200:"#eeff41",limeA400:"#c6ff00",limeA700:"#aeea00",yellow50:"#fffde7",yellow100:"#fff9c4",yellow200:"#fff59d",yellow300:"#fff176",yellow400:"#ffee58",yellow500:"#ffeb3b",yellow600:"#fdd835",yellow700:"#fbc02d",yellow800:"#f9a825",yellow900:"#f57f17",yellowA100:"#ffff8d",yellowA200:"#ffff00",yellowA400:"#ffea00",yellowA700:"#ffd600",amber50:"#fff8e1",amber100:"#ffecb3",amber200:"#ffe082",amber300:"#ffd54f",amber400:"#ffca28",amber500:"#ffc107",amber600:"#ffb300",amber700:"#ffa000",amber800:"#ff8f00",amber900:"#ff6f00",amberA100:"#ffe57f",amberA200:"#ffd740",amberA400:"#ffc400",amberA700:"#ffab00",orange50:"#fff3e0",orange100:"#ffe0b2",orange200:"#ffcc80",orange300:"#ffb74d",orange400:"#ffa726",orange500:"#ff9800",orange600:"#fb8c00",orange700:"#f57c00",orange800:"#ef6c00",orange900:"#e65100",orangeA100:"#ffd180",orangeA200:"#ffab40",orangeA400:"#ff9100",orangeA700:"#ff6d00",deepOrange50:"#fbe9e7",deepOrange100:"#ffccbc",deepOrange200:"#ffab91",deepOrange300:"#ff8a65",deepOrange400:"#ff7043",deepOrange500:"#ff5722",deepOrange600:"#f4511e",deepOrange700:"#e64a19",deepOrange800:"#d84315",deepOrange900:"#bf360c",deepOrangeA100:"#ff9e80",deepOrangeA200:"#ff6e40",deepOrangeA400:"#ff3d00",deepOrangeA700:"#dd2c00",brown50:"#efebe9",brown100:"#d7ccc8",brown200:"#bcaaa4",brown300:"#a1887f",brown400:"#8d6e63",brown500:"#795548",brown600:"#6d4c41",brown700:"#5d4037",brown800:"#4e342e",brown900:"#3e2723",blueGrey50:"#eceff1",blueGrey100:"#cfd8dc",blueGrey200:"#b0bec5",blueGrey300:"#90a4ae",blueGrey400:"#78909c",blueGrey500:"#607d8b",blueGrey600:"#546e7a",blueGrey700:"#455a64",blueGrey800:"#37474f",blueGrey900:"#263238",grey50:"#fafafa",grey100:"#f5f5f5",grey200:"#eeeeee",grey300:"#e0e0e0",grey400:"#bdbdbd",grey500:"#9e9e9e",grey600:"#757575",grey700:"#616161",grey800:"#424242",grey900:"#212121",black:"#000000",white:"#ffffff",transparent:"rgba(0, 0, 0, 0)",fullBlack:"rgba(0, 0, 0, 1)",darkBlack:"rgba(0, 0, 0, 0.87)",lightBlack:"rgba(0, 0, 0, 0.54)",minBlack:"rgba(0, 0, 0, 0.26)",faintBlack:"rgba(0, 0, 0, 0.12)",fullWhite:"rgba(255, 255, 255, 1)",darkWhite:"rgba(255, 255, 255, 0.87)",lightWhite:"rgba(255, 255, 255, 0.54)"}},function(e,t){function n(e){return function(){return e}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(223),o=r?n(225):void 0,i={};e.exports={all:function(e){var t={};for(var n in e)t[this.single(n)]=e[n];return t},set:function(e,t,n){e[this.single(t)]=n},single:function(e){if(!r)return e;if(i.hasOwnProperty(e))return i[e];var t=o.prefixed(e);return t===!1?e:(i[e]=t,t)},singleHyphened:function(e){var t=this.single(e);return t?t.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-"):e}}},function(e,t,n){(function(t){"use strict";var r=n(2),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},s=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},a=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var s=i.instancePool.pop();return i.call(s,e,t,n,r,o),s}return new i(e,t,n,r,o)},u=function(e){var n=this;"production"!==t.env.NODE_ENV?r(e instanceof n,"Trying to release an instance into a pool of a different type."):r(e instanceof n),e.destructor&&e.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(e)},c=10,l=o,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||l,n.poolSize||(n.poolSize=c),n.release=u,n},h={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:s,fiveArgumentPooler:a};e.exports=h}).call(t,n(1))},function(e,t,n){"use strict";var r=n(147),o={getDOMNode:function(){return r(this)}};e.exports=o},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){"use strict";function r(e,t,n){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];i?this[o]=i(n):this[o]=n[o]}var a=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;a?this.isDefaultPrevented=s.thatReturnsTrue:this.isDefaultPrevented=s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse}var o=n(23),i=n(5),s=n(21),a=n(91),u={type:null,target:a,currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=s.thatReturnsTrue},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=s.thatReturnsTrue},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=u,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);i(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.threeArgumentPooler)},o.addPoolingTo(r,o.threeArgumentPooler),e.exports=r},function(e,t){"use strict";e.exports={_luminance:function(e){if(e=this._decomposeColor(e),e.type.indexOf("rgb")>-1){var t=e.values.map(function(e){return e/=255,.03928>=e?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*t[0]+.7152*t[1]+.0722*t[2]}var n="Calculating the relative luminance is not available for HSL and HSLA.";return console.error(n),-1},_convertColorToString:function(e,t){var n=e.type+"("+parseInt(e.values[0])+","+parseInt(e.values[1])+","+parseInt(e.values[2]);return n+=void 0!==t?","+t+")":4===e.values.length?","+e.values[3]+")":")"},_convertHexToRGB:function(e){if(4===e.length){for(var t="#",n=1;n<e.length;n++)t+=e.charAt(n)+e.charAt(n);e=t}var r={r:parseInt(e.substr(1,2),16),g:parseInt(e.substr(3,2),16),b:parseInt(e.substr(5,2),16)};return"rgb("+r.r+","+r.g+","+r.b+")"},_decomposeColor:function(e){if("#"===e.charAt(0))return this._decomposeColor(this._convertHexToRGB(e));var t=e.indexOf("("),n=e.substring(0,t),r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r}},fade:function(e,t){return e=this._decomposeColor(e),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),this._convertColorToString(e,t)},lighten:function(e,t){if(e=this._decomposeColor(e),e.type.indexOf("hsl")>-1)return e.values[2]+=t,this._decomposeColor(this._convertColorToString(e));if(e.type.indexOf("rgb")>-1)for(var n=0;3>n;n++)e.values[n]*=1+t,e.values[n]>255&&(e.values[n]=255);return e.type.indexOf("a")<=-1&&(e.type+="a"),this._convertColorToString(e,"0.15")},darken:function(e,t){if(e=this._decomposeColor(e),e.type.indexOf("hsl")>-1)return e.values[2]+=t,this._decomposeColor(this._convertColorToString(e));if(e.type.indexOf("rgb")>-1)for(var n=0;3>n;n++)e.values[n]*=1-t,e.values[n]<0&&(e.values[n]=0);return this._convertColorToString(e)},contrastRatio:function(e,t){var n=this._luminance(e),r=this._luminance(t);return n>=r?((n+.05)/(r+.05)).toFixed(2):((r+.05)/(n+.05)).toFixed(2)},contrastRatioLevel:function(e,t){var n={fail:{range:[0,3],color:"hsl(0, 100%, 40%)"},"aa-large":{range:[3,4.5],color:"hsl(40, 100%, 45%)"},aa:{range:[4.5,7],color:"hsl(80, 60%, 45%)"},aaa:{range:[7,22],color:"hsl(95, 60%, 41%)"}},r=this.contrastRatio(e,t);for(var o in n){var i=n[o].range;if(r>=i[0]&&r<=i[1])return o}}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return v(e,r)}function o(e,n,o){if("production"!==t.env.NODE_ENV&&!e)throw new Error("Dispatching id must not be null");var i=n?m.bubbled:m.captured,s=r(e,o,i);s&&(o._dispatchListeners=d(o._dispatchListeners,s),o._dispatchIDs=d(o._dispatchIDs,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=v(e,r);o&&(n._dispatchListeners=d(n._dispatchListeners,o),n._dispatchIDs=d(n._dispatchIDs,e))}}function a(e){e&&e.dispatchConfig.registrationName&&s(e.dispatchMarker,null,e)}function u(e){f(e,i)}function c(e,t,n,r){h.injection.getInstanceHandle().traverseEnterLeave(n,r,s,e,t)}function l(e){f(e,a)}var p=n(13),h=n(31),d=n(69),f=n(88),m=p.PropagationPhases,v=h.getListener,y={accumulateTwoPhaseDispatches:u,accumulateDirectDispatches:l,accumulateEnterLeaveDispatches:c};e.exports=y}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function n(e,t,n){return n}var r={enableMeasure:!1,storedMeasure:n,measureMethods:function(e,n,o){if("production"!==t.env.NODE_ENV)for(var i in o)o.hasOwnProperty(i)&&(e[i]=r.measure(n,o[i],e[i]))},measure:function(e,n,o){if("production"!==t.env.NODE_ENV){var i=null,s=function(){return r.enableMeasure?(i||(i=r.storedMeasure(e,n,o)),i.apply(this,arguments)):o.apply(this,arguments)};return s.displayName=e+"_"+n,s}return o},injection:{injectMeasure:function(e){r.storedMeasure=e}}};e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,t){return(e&t)===t}var o=n(2),i={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var n=e.Properties||{},s=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&a._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var l in n){"production"!==t.env.NODE_ENV?o(!a.isStandardName.hasOwnProperty(l),"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",l):o(!a.isStandardName.hasOwnProperty(l)),a.isStandardName[l]=!0;var p=l.toLowerCase();if(a.getPossibleStandardName[p]=l,s.hasOwnProperty(l)){var h=s[l];a.getPossibleStandardName[h]=l,a.getAttributeName[l]=h}else a.getAttributeName[l]=p;a.getPropertyName[l]=u.hasOwnProperty(l)?u[l]:l,c.hasOwnProperty(l)?a.getMutationMethod[l]=c[l]:a.getMutationMethod[l]=null;var d=n[l];a.mustUseAttribute[l]=r(d,i.MUST_USE_ATTRIBUTE),a.mustUseProperty[l]=r(d,i.MUST_USE_PROPERTY),a.hasSideEffects[l]=r(d,i.HAS_SIDE_EFFECTS),a.hasBooleanValue[l]=r(d,i.HAS_BOOLEAN_VALUE),a.hasNumericValue[l]=r(d,i.HAS_NUMERIC_VALUE),a.hasPositiveNumericValue[l]=r(d,i.HAS_POSITIVE_NUMERIC_VALUE),a.hasOverloadedBooleanValue[l]=r(d,i.HAS_OVERLOADED_BOOLEAN_VALUE),"production"!==t.env.NODE_ENV?o(!a.mustUseAttribute[l]||!a.mustUseProperty[l],"DOMProperty: Cannot require using both attribute and property: %s",l):o(!a.mustUseAttribute[l]||!a.mustUseProperty[l]),"production"!==t.env.NODE_ENV?o(a.mustUseProperty[l]||!a.hasSideEffects[l],"DOMProperty: Properties that have side effects must use property: %s",l):o(a.mustUseProperty[l]||!a.hasSideEffects[l]),"production"!==t.env.NODE_ENV?o(!!a.hasBooleanValue[l]+!!a.hasNumericValue[l]+!!a.hasOverloadedBooleanValue[l]<=1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",l):o(!!a.hasBooleanValue[l]+!!a.hasNumericValue[l]+!!a.hasOverloadedBooleanValue[l]<=1)}}},s={},a={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<a._isCustomAttributeFunctions.length;t++){var n=a._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=s[e];return r||(s[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:i};e.exports=a}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){var e=h&&h.traverseTwoPhase&&h.traverseEnterLeave;"production"!==t.env.NODE_ENV?u(e,"InstanceHandle not injected before use!"):u(e)}var o=n(131),i=n(50),s=n(69),a=n(88),u=n(2),c={},l=null,p=function(e){if(e){var t=i.executeDispatch,n=o.getPluginModuleForEvent(e);n&&n.executeDispatch&&(t=n.executeDispatch),i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e)}},h=null,d={injection:{injectMount:i.injection.injectMount,injectInstanceHandle:function(e){h=e,"production"!==t.env.NODE_ENV&&r()},getInstanceHandle:function(){return"production"!==t.env.NODE_ENV&&r(),h},injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},eventNameDispatchConfigs:o.eventNameDispatchConfigs,registrationNameModules:o.registrationNameModules,putListener:function(e,n,r){"production"!==t.env.NODE_ENV?u(!r||"function"==typeof r,"Expected %s listener to be a function, instead got type %s",n,typeof r):u(!r||"function"==typeof r);var o=c[n]||(c[n]={});o[e]=r},getListener:function(e,t){var n=c[t];return n&&n[e]},deleteListener:function(e,t){var n=c[t];n&&delete n[e]},deleteAllListeners:function(e){for(var t in c)delete c[t][e]},extractEvents:function(e,t,n,r){for(var i,a=o.plugins,u=0,c=a.length;c>u;u++){var l=a[u];if(l){var p=l.extractEvents(e,t,n,r);p&&(i=s(i,p))}}return i},enqueueEvents:function(e){e&&(l=s(l,e))},processEventQueue:function(){var e=l;l=null,a(e,p),"production"!==t.env.NODE_ENV?u(!l,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."):u(!l)},__purge:function(){c={}},__getListenerBank:function(){return c}};e.exports=d}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(50),o=n(132),i=n(133),s=n(15),a=n(82),u=n(25),c=n(8),l=n(51),p=n(248),h=n(136),d=n(259),f=n(34),m=n(18),v=n(29),y=n(141),g=n(38),b=n(271),w=n(5),E=n(147),T=n(155);d.inject();var x=c.createElement,C=c.createFactory,_=c.cloneElement;"production"!==t.env.NODE_ENV&&(x=l.createElement,C=l.createFactory,_=l.cloneElement);var S=v.measure("React","render",m.render),N={
+Children:{map:o.map,forEach:o.forEach,count:o.count,only:T},Component:i,DOM:p,PropTypes:y,initializeTouchEvents:function(e){r.useTouchEvents=e},createClass:s.createClass,createElement:x,cloneElement:_,createFactory:C,createMixin:function(e){return e},constructAndRenderComponent:m.constructAndRenderComponent,constructAndRenderComponentByID:m.constructAndRenderComponentByID,findDOMNode:E,render:S,renderToString:b.renderToString,renderToStaticMarkup:b.renderToStaticMarkup,unmountComponentAtNode:m.unmountComponentAtNode,isValidElement:c.isValidElement,withContext:a.withContext,__spread:w};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:u,InstanceHandles:f,Mount:m,Reconciler:g,TextComponent:h}),"production"!==t.env.NODE_ENV){var O=n(12);if(O.canUseDOM&&window.top===window.self){navigator.userAgent.indexOf("Chrome")>-1&&"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&console.debug("Download the React DevTools for a better development experience: https://fb.me/react-devtools";);for(var D=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim,Object.create,Object.freeze],P=0;P<D.length;P++)if(!D[P]){console.error("One or more ES5 shim/shams expected by React are not available: https://fb.me/react-warning-polyfills";);break}}}N.version="0.13.3",e.exports=N}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=d++,p[e[m]]={}),p[e[m]]}var o=n(13),i=n(31),s=n(131),a=n(262),u=n(87),c=n(5),l=n(93),p={},h=!1,d=0,f={topBlur:"blur",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=c({},a,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,i=r(n),a=s.registrationNameDependencies[e],u=o.topLevelTypes,c=0,p=a.length;p>c;c++){var h=a[c];i.hasOwnProperty(h)&&i[h]||(h===u.topWheel?l("wheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):l("mousewheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):h===u.topScroll?l("scroll",!0)?v.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):h===u.topFocus||h===u.topBlur?(l("focus",!0)?(v.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),v.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):l("focusin")&&(v.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),v.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),i[u.topBlur]=!0,i[u.topFocus]=!0):f.hasOwnProperty(h)&&v.ReactEventListener.trapBubbledEvent(h,f[h],n),i[h]=!0)}},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!h){var e=u.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),h=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});e.exports=v},function(e,t,n){(function(t){"use strict";function r(e){return d+e.toString(36)}function o(e,t){return e.charAt(t)===d||t===e.length}function i(e){return""===e||e.charAt(0)===d&&e.charAt(e.length-1)!==d}function s(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function a(e){return e?e.substr(0,e.lastIndexOf(d)):""}function u(e,n){if("production"!==t.env.NODE_ENV?h(i(e)&&i(n),"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",e,n):h(i(e)&&i(n)),"production"!==t.env.NODE_ENV?h(s(e,n),"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",e,n):h(s(e,n)),e===n)return e;var r,a=e.length+f;for(r=a;r<n.length&&!o(n,r);r++);return n.substr(0,r)}function c(e,n){var r=Math.min(e.length,n.length);if(0===r)return"";for(var s=0,a=0;r>=a;a++)if(o(e,a)&&o(n,a))s=a;else if(e.charAt(a)!==n.charAt(a))break;var u=e.substr(0,s);return"production"!==t.env.NODE_ENV?h(i(u),"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",e,n,u):h(i(u)),u}function l(e,n,r,o,i,c){e=e||"",n=n||"","production"!==t.env.NODE_ENV?h(e!==n,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",e):h(e!==n);var l=s(n,e);"production"!==t.env.NODE_ENV?h(l||s(e,n),"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",e,n):h(l||s(e,n));for(var p=0,d=l?a:u,f=e;;f=d(f,n)){var v;if(i&&f===e||c&&f===n||(v=r(f,l,o)),v===!1||f===n)break;"production"!==t.env.NODE_ENV?h(p++<m,"traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",e,n):h(p++<m)}}var p=n(143),h=n(2),d=".",f=d.length,m=100,v={createReactRootID:function(){return r(p.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===d&&e.length>1){var t=e.indexOf(d,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=c(e,t);i!==e&&l(e,i,n,r,!1,!0),i!==t&&l(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(l("",e,t,n,!0,!1),l(e,"",t,n,!1,!0))},traverseAncestors:function(e,t,n){l("",e,t,n,!0,!1)},_getFirstCommonAncestorID:c,_getNextDescendantID:u,isAncestorIDOf:s,SEPARATOR:d};e.exports=v}).call(t,n(1))},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(7),c=n(6),l=i.createClass({displayName:"FontIcon",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{color:i.PropTypes.string,hoverColor:i.PropTypes.string,onMouseLeave:i.PropTypes.func,onMouseEnter:i.PropTypes.func},getInitialState:function(){return{hovered:!1,muiTheme:this.context.muiTheme?this.context.muiTheme:c.getMuiTheme(u)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},render:function(){var e=this.props,t=e.color,n=e.hoverColor,s=(e.onMouseLeave,e.onMouseEnter,e.style),u=r(e,["color","hoverColor","onMouseLeave","onMouseEnter","style"]),c=this.state.muiTheme.rawTheme.spacing,l=t?t:s&&s.color?s.color:this.state.muiTheme.rawTheme.palette.textColor,p=n?n:l,h=this.mergeAndPrefix({position:"relative",fontSize:c.iconSize,display:"inline-block",userSelect:"none",transition:a.easeOut()},s,{color:this.state.hovered?p:l});return i.createElement("span",o({},u,{onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,style:h}))},_handleMouseLeave:function(e){void 0!==this.props.hoverColor&&this.setState({hovered:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)},_handleMouseEnter:function(e){void 0!==this.props.hoverColor&&this.setState({hovered:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)}});e.exports=l},function(e,t,n){(function(t){"use strict";var r=n(8),o=n(9);if("production"!==t.env.NODE_ENV){var i="_reactFragment",s="_reactDidWarn",a=!1;try{var u=function(){return 1};Object.defineProperty({},i,{enumerable:!1,value:!0}),Object.defineProperty({},"key",{enumerable:!0,get:u}),a=!0}catch(c){}var l=function(e,n){Object.defineProperty(e,n,{enumerable:!0,get:function(){return"production"!==t.env.NODE_ENV?o(this[s],"A ReactFragment is an opaque type. Accessing any of its properties is deprecated. Pass it to one of the React.Children helpers."):null,this[s]=!0,this[i][n]},set:function(e){"production"!==t.env.NODE_ENV?o(this[s],"A ReactFragment is an immutable opaque type. Mutating its properties is deprecated."):null,this[s]=!0,this[i][n]=e}})},p={},h=function(e){var t="";for(var n in e)t+=n+":"+typeof e[n]+",";var r=!!p[t];return p[t]=!0,r}}var d={create:function(e){if("production"!==t.env.NODE_ENV){if("object"!=typeof e||!e||Array.isArray(e))return"production"!==t.env.NODE_ENV?o(!1,"React.addons.createFragment only accepts a single object.",e):null,e;if(r.isValidElement(e))return"production"!==t.env.NODE_ENV?o(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."):null,e;if(a){var n={};Object.defineProperty(n,i,{enumerable:!1,value:e}),Object.defineProperty(n,s,{writable:!0,enumerable:!1,value:!1});for(var u in e)l(n,u);return Object.preventExtensions(n),n}}return e},extract:function(e){return"production"!==t.env.NODE_ENV&&a?e[i]?e[i]:("production"!==t.env.NODE_ENV?o(h(e),"Any use of a keyed object should be wrapped in React.addons.createFragment(object) before being passed as a child."):null,e):e},extractIfFragment:function(e){if("production"!==t.env.NODE_ENV&&a){if(e[i])return e[i];for(var n in e)if(e.hasOwnProperty(n)&&r.isValidElement(e[n]))return d.extract(e)}return e}};e.exports=d}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(270),i=n(51),s={mountComponent:function(e,n,o,s){var a=e.mountComponent(n,o,s);return"production"!==t.env.NODE_ENV&&i.checkAndWarnForMutatedProps(e._currentElement),o.getReactMountReady().enqueue(r,e),a},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,n,s,a){var u=e._currentElement;if(n!==u||null==n._owner){"production"!==t.env.NODE_ENV&&i.checkAndWarnForMutatedProps(n);var c=o.shouldUpdateRefs(u,n);c&&o.detachRefs(e,u),e.receiveComponent(n,s,a),c&&s.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};e.exports=s}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(26),i=n(91),s={view:function(e){if(e.view)return e.view;var t=i(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,s),e.exports=r},function(e,t,n){var r;/*!
+	  Copyright (c) 2015 Jed Watson.
+	  Licensed under the MIT License (MIT), see
+	  http://jedwatson.github.io/classnames
+	*/
+!function(){"use strict";function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e+=" "+n;else if(Array.isArray(n))e+=" "+o.apply(null,n);else if("object"===r)for(var s in n)i.call(n,s)&&n[s]&&(e+=" "+s)}}return e.substr(1)}var i={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=o:(r=function(){return o}.call(t,n,t,e),!(void 0!==r&&(e.exports=r)))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return function(t){e(t)}}function s(e){return function(t){return t.responseJSON?e(t.responseJSON):(delete t.then,void e(t))}}function a(e,t){if(new RegExp("^(:?https?:)?//").test(t))return t;var n=[];return e&&n.push(e),n.push(t),n.join("/").replace(new RegExp("(.(?:[^:]))//+","g"),"$1/").replace(new RegExp("/$"),"")}function u(){return u.api?u.api:u.api=new f(d["default"])}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(14),p=n(42),h=n(98),d=r(h),f=function(){function e(t){o(this,e),this.jquery=t,this.baseUrl="/api",this.defaultRequestSettings={data:{},contentType:"application/json",type:void 0,url:void 0}}return c(e,[{key:"get",value:function(e,t,n){return this.request("GET",a(this.baseUrl,e),t,n)}},{key:"post",value:function(e,t,n){var r=n&&n.contentType&&"text/plain"===n.contentType?t:JSON.stringify(t);return this.request("POST",a(this.baseUrl,e),r,n)}},{key:"delete",value:function(e,t){return this.request("DELETE",a(this.baseUrl,e),void 0,t)}},{key:"update",value:function(e,t){return this.request("PUT",e,JSON.stringify(t))}},{key:"request",value:function(e,t,n){function r(e){var t={};return p.copyOwnProperties(t,c.defaultRequestSettings),p.copyOwnProperties(t,e),t}var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];l.checkType(e,"string","Request type"),l.checkType(t,"string","Url");var a=t;if(n&&n.filter){var u=n.filter.reduce(function(e,t){return e+"&filter="+t},"");delete n.filter,a+="?"+u}var c=this;return new Promise(function(t,u){var l=n;void 0===l?l={}:(l===!0||l===!1)&&(l=l.toString()),c.jquery.ajax(r({type:e,url:a,data:l,dataType:o.dataType||"json",contentType:o.contentType||"application/json"})).then(i(t),s(u))})}},{key:"setBaseUrl",value:function(e){return l.checkType(e,"string","Base url"),this.baseUrl=e,this}}]),e}();f.getApi=u,t["default"]=f,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){throw new Error(e)}function o(e,t){return"function"==typeof e?function(){var n=Array.prototype.slice.call(arguments,0);return e.apply(this,[t].concat(n))}:void 0}function i(e,t,n){var r={enumerable:!0,configurable:!1,writable:!1,value:n};Object.defineProperty(e,t,r)}function s(e,t){var n=void 0;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function a(e){return function(t){return t?t[e]:void 0}}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.throwError=r,t.curry=o,t.addLockedProperty=i,t.copyOwnProperties=s,t.pick=a;var c=function(){function e(){var t=this;n(this,e),this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return u(e,null,[{key:"create",value:function(){return new e}}]),e}();t.Deferred=c},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(){if(!g){var e=document.createElement("style");e.innerHTML="\n      button::-moz-focus-inner,\n      input::-moz-focus-inner {\n        border: 0;\n        padding: 0;\n      }\n    ",document.body.appendChild(e),g=!0}}function i(){b||(h.on(window,"keydown",function(e){w=e.keyCode===d.TAB}),b=!0)}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(10),u=a.addons.PureRenderMixin,c=n(4),l=n(20),p=n(60),h=n(61),d=n(48),f=n(120),m=n(121),v=n(7),y=n(6),g=!1,b=!1,w=!1,E=a.createClass({displayName:"EnhancedButton",mixins:[u,c],contextTypes:{muiTheme:a.PropTypes.object},childContextTypes:{muiTheme:a.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{centerRipple:a.PropTypes.bool,containerElement:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.element]),disabled:a.PropTypes.bool,disableFocusRipple:a.PropTypes.bool,disableKeyboardFocus:a.PropTypes.bool,disableTouchRipple:a.PropTypes.bool,keyboardFocused:a.PropTypes.bool,linkButton:a.PropTypes.bool,focusRippleColor:a.PropTypes.string,touchRippleColor:a.PropTypes.string,focusRippleOpacity:a.PropTypes.number,touchRippleOpacity:a.PropTypes.number,onBlur:a.PropTypes.func,onFocus:a.PropTypes.func,onKeyboardFocus:a.PropTypes.func,onKeyDown:a.PropTypes.func,onKeyUp:a.PropTypes.func,onTouchTap:a.PropTypes.func,tabIndex:a.PropTypes.number},getDefaultProps:function(){return{containerElement:"button",onBlur:function(){},onFocus:function(){},onKeyboardFocus:function(){},onKeyDown:function(){},onKeyUp:function(){},onTouchTap:function(){},tabIndex:0,type:"button"}},getInitialState:function(){return{isKeyboardFocused:!this.props.disabled&&this.props.keyboardFocused&&!this.props.disableKeyboardFocus,muiTheme:this.context.muiTheme?this.context.muiTheme:y.getMuiTheme(v)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n}),(e.disabled||e.disableKeyboardFocus)&&this.state.isKeyboardFocused&&(this.setState({isKeyboardFocused:!1}),e.onKeyboardFocus&&e.onKeyboardFocus(null,!1))},componentDidMount:function(){o(),i()},render:function(){var e=this.props,t=(e.centerRipple,e.children),n=e.containerElement,o=e.disabled,i=(e.disableFocusRipple,e.disableKeyboardFocus,e.disableTouchRipple,e.focusRippleColor,e.focusRippleOpacity,e.linkButton),u=(e.touchRippleColor,e.touchRippleOpacity,e.onBlur,e.onFocus,e.onKeyUp,e.onKeyDown,e.onTouchTap,e.style),c=e.tabIndex,p=e.type,h=r(e,["centerRipple","children","containerElement","disabled","disableFocusRipple","disableKeyboardFocus","disableTouchRipple","focusRippleColor","focusRippleOpacity","linkButton","touchRippleColor","touchRippleOpacity","onBlur","onFocus","onKeyUp","onKeyDown","onTouchTap","style","tabIndex","type"]),d=this.mergeAndPrefix({border:10,background:"none",boxSizing:"border-box",display:"inline-block",font:"inherit",fontFamily:this.state.muiTheme.rawTheme.fontFamily,tapHighlightColor:l.transparent,appearance:i?null:"button",cursor:o?"default":"pointer",textDecoration:"none",outline:"none"},u);if(o&&i)return a.createElement("span",s({},h,{style:d}),t);var f=s({},h,{style:d,disabled:o,onBlur:this._handleBlur,onFocus:this._handleFocus,onTouchTap:this._handleTouchTap,onKeyUp:this._handleKeyUp,onKeyDown:this._handleKeyDown,tabIndex:c,type:p}),m=this._createButtonChildren();return a.isValidElement(n)?a.cloneElement(n,f,m):a.createElement(i?"a":n,f,m)},isKeyboardFocused:function(){return this.state.isKeyboardFocused},removeKeyboardFocus:function(e){this.state.isKeyboardFocused&&(this.setState({isKeyboardFocused:!1}),this.props.onKeyboardFocus(e,!1))},setKeyboardFocus:function(e){this.state.isKeyboardFocused||(this.setState({isKeyboardFocused:!0}),this.props.onKeyboardFocus(e,!0))},_cancelFocusTimeout:function(){this._focusTimeout&&(clearTimeout(this._focusTimeout),this._focusTimeout=null)},_createButtonChildren:function(){var e=this.props,t=e.centerRipple,n=e.children,r=e.disabled,o=e.disableFocusRipple,i=e.disableKeyboardFocus,s=e.disableTouchRipple,u=e.focusRippleColor,c=e.focusRippleOpacity,l=e.touchRippleColor,h=e.touchRippleOpacity,d=this.state.isKeyboardFocused,v=!d||r||o||i?void 0:a.createElement(f,{color:u,opacity:c,show:d}),y=r||s?void 0:a.createElement(m,{centerRipple:t,color:l,opacity:h},n);return p.create({focusRipple:v,touchRipple:y,children:y?void 0:n})},_handleKeyDown:function(e){this.props.disabled||this.props.disableKeyboardFocus||e.keyCode===d.ENTER&&this.state.isKeyboardFocused&&this._handleTouchTap(e),this.props.onKeyDown(e)},_handleKeyUp:function(e){!this.props.disabled&&e.keyCode===d.SPACE&&this.state.isKeyboardFocused&&this._handleTouchTap(e),this.props.onKeyUp(e)},_handleBlur:function(e){this._cancelFocusTimeout(),this.removeKeyboardFocus(e),this.props.onBlur(e)},_handleFocus:function(e){var t=this;this.props.disabled||this.props.disableKeyboardFocus||(this._focusTimeout=setTimeout(function(){w&&t.setKeyboardFocus(e)},150),this.props.onFocus(e))},_handleTouchTap:function(e){this._cancelFocusTimeout(),this.props.disabled||(w=!1,this.removeKeyboardFocus(e),this.props.onTouchTap(e))}});e.exports=E},function(e,t,n){"use strict";function r(e,t,n){if(e.getRelevantContextKeys){var i=e.getRelevantContextKeys(t),s=e.getRelevantContextKeys(n);if(!o(i,s))return!1}if(e.getChildrenClasses)for(var a=e.getChildrenClasses(),u=0;u<a.length;u++)if(!r(a[u],t,n))return!1;return!0}var o=n(226);e.exports={shouldComponentUpdate:function(e,t,n){return o(this.props,e)&&o(this.state,t)?this.context.muiTheme||n.muiTheme?this.context.muiTheme&&n.muiTheme?!this.context.muiTheme["static"]&&!r(this.constructor,this.context.muiTheme,n.muiTheme):!0:!1:!0}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(20),i=function s(){r(this,s),this.textFullBlack=o.fullBlack,this.textDarkBlack=o.darkBlack,this.textLightBlack=o.lightBlack,this.textMinBlack=o.minBlack,this.textFullWhite=o.fullWhite,this.textDarkWhite=o.darkWhite,this.textLightWhite=o.lightWhite,this.fontWeightLight=300,this.fontWeightNormal=400,this.fontWeightMedium=500,this.fontStyleButtonFontSize=14};e.exports=new i},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(7),c=n(6),l=i.createClass({displayName:"SvgIcon",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{color:i.PropTypes.string,hoverColor:i.PropTypes.string,onMouseEnter:i.PropTypes.func,onMouseLeave:i.PropTypes.func,viewBox:i.PropTypes.string},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{hovered:!1,muiTheme:this.context.muiTheme?this.context.muiTheme:c.getMuiTheme(u)}},getDefaultProps:function(){return{onMouseEnter:function(){},onMouseLeave:function(){},viewBox:"0 0 24 24"}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},render:function(){var e=this.props,t=e.children,n=e.color,s=e.hoverColor,u=(e.onMouseEnter,e.onMouseLeave,e.style),c=e.viewBox,l=r(e,["children","color","hoverColor","onMouseEnter","onMouseLeave","style","viewBox"]),p=n?n:u&&u.fill?u.fill:this.state.muiTheme.rawTheme.palette.textColor,h=s?s:p,d=this.mergeAndPrefix({display:"inline-block",height:24,width:24,userSelect:"none",transition:a.easeOut()},u,{fill:this.state.hovered?h:p}),f=s?{onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave}:{};return i.createElement("svg",o({},l,f,{style:d,viewBox:c}),t)},_handleMouseLeave:function(e){this.setState({hovered:!1}),this.props.onMouseLeave(e)},_handleMouseEnter:function(e){this.setState({hovered:!0}),this.props.onMouseEnter(e)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){return e?t?i(e,{$merge:t}):e:t}var o=n(10),i=o.addons.update;e.exports={merge:function(){for(var e=Array.prototype.slice.call(arguments,0),t=e[0],n=1;n<e.length;n++)e[n]&&(t=r(t,e[n]));return t},mergeItem:function(e,t,n){var r={};return r[t]={$merge:n},i(e,r)},push:function(e,t){var n=Array.isArray(t)?t:[t];return i(e,{$push:n})},shift:function(e){return i(e,{$splice:[[0,1]]})}}},function(e,t){"use strict";e.exports={DOWN:40,ESC:27,ENTER:13,LEFT:37,RIGHT:39,SPACE:32,TAB:9,UP:38}},function(e,t,n){(function(t){"use strict";function r(e,t){return null==t||o.hasBooleanValue[e]&&!t||o.hasNumericValue[e]&&isNaN(t)||o.hasPositiveNumericValue[e]&&1>t||o.hasOverloadedBooleanValue[e]&&t===!1}var o=n(30),i=n(311),s=n(9);if("production"!==t.env.NODE_ENV)var a={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0},u={},c=function(e){if(!(a.hasOwnProperty(e)&&a[e]||u.hasOwnProperty(e)&&u[e])){u[e]=!0;var n=e.toLowerCase(),r=o.isCustomAttribute(n)?n:o.getPossibleStandardName.hasOwnProperty(n)?o.getPossibleStandardName[n]:null;"production"!==t.env.NODE_ENV?s(null==r,"Unknown DOM property %s. Did you mean %s?",e,r):null}};var l={createMarkupForID:function(e){return o.ID_ATTRIBUTE_NAME+"="+i(e)},createMarkupForProperty:function(e,n){if(o.isStandardName.hasOwnProperty(e)&&o.isStandardName[e]){if(r(e,n))return"";var s=o.getAttributeName[e];return o.hasBooleanValue[e]||o.hasOverloadedBooleanValue[e]&&n===!0?s:s+"="+i(n)}return o.isCustomAttribute(e)?null==n?"":e+"="+i(n):("production"!==t.env.NODE_ENV&&c(e),null)},setValueForProperty:function(e,n,i){if(o.isStandardName.hasOwnProperty(n)&&o.isStandardName[n]){var s=o.getMutationMethod[n];if(s)s(e,i);else if(r(n,i))this.deleteValueForProperty(e,n);else if(o.mustUseAttribute[n])e.setAttribute(o.getAttributeName[n],""+i);else{var a=o.getPropertyName[n];o.hasSideEffects[n]&&""+e[a]==""+i||(e[a]=i)}}else o.isCustomAttribute(n)?null==i?e.removeAttribute(n):e.setAttribute(n,""+i):"production"!==t.env.NODE_ENV&&c(n)},deleteValueForProperty:function(e,n){if(o.isStandardName.hasOwnProperty(n)&&o.isStandardName[n]){var r=o.getMutationMethod[n];if(r)r(e,void 0);else if(o.mustUseAttribute[n])e.removeAttribute(o.getAttributeName[n]);else{var i=o.getPropertyName[n],s=o.getDefaultValueForProperty(e.nodeName,i);o.hasSideEffects[n]&&""+e[i]===s||(e[i]=s)}}else o.isCustomAttribute(n)?e.removeAttribute(n):"production"!==t.env.NODE_ENV&&c(n)}};e.exports=l}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){return e===y.topMouseUp||e===y.topTouchEnd||e===y.topTouchCancel}function o(e){return e===y.topMouseMove||e===y.topTouchMove}function i(e){return e===y.topMouseDown||e===y.topTouchStart}function s(e,n){var r=e._dispatchListeners,o=e._dispatchIDs;if("production"!==t.env.NODE_ENV&&d(e),Array.isArray(r))for(var i=0;i<r.length&&!e.isPropagationStopped();i++)n(e,r[i],o[i]);else r&&n(e,r,o)}function a(e,t,n){e.currentTarget=v.Mount.getNode(n);var r=t(e,n);return e.currentTarget=null,r}function u(e,t){s(e,t),e._dispatchListeners=null,e._dispatchIDs=null}function c(e){var n=e._dispatchListeners,r=e._dispatchIDs;if("production"!==t.env.NODE_ENV&&d(e),Array.isArray(n)){for(var o=0;o<n.length&&!e.isPropagationStopped();o++)if(n[o](e,r[o]))return r[o]}else if(n&&n(e,r))return r;return null}function l(e){var t=c(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function p(e){"production"!==t.env.NODE_ENV&&d(e);var n=e._dispatchListeners,r=e._dispatchIDs;"production"!==t.env.NODE_ENV?m(!Array.isArray(n),"executeDirectDispatch(...): Invalid `event`."):m(!Array.isArray(n));var o=n?n(e,r):null;return e._dispatchListeners=null,e._dispatchIDs=null,o}function h(e){return!!e._dispatchListeners}var d,f=n(13),m=n(2),v={Mount:null,injectMount:function(e){v.Mount=e,"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?m(e&&e.getNode,"EventPluginUtils.injection.injectMount(...): Injected Mount module is missing getNode."):m(e&&e.getNode))}},y=f.topLevelTypes;"production"!==t.env.NODE_ENV&&(d=function(e){var n=e._dispatchListeners,r=e._dispatchIDs,o=Array.isArray(n),i=Array.isArray(r),s=i?r.length:r?1:0,a=o?n.length:n?1:0;"production"!==t.env.NODE_ENV?m(i===o&&s===a,"EventPluginUtils: Invalid `event`."):m(i===o&&s===a)});var g={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:p,executeDispatch:a,executeDispatchesInOrder:u,executeDispatchesInOrderStopAtTrue:l,hasDispatches:h,injection:v,useTouchEvents:!1};e.exports=g}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){if(b.current){var e=b.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e){var t=e&&e.getPublicInstance();if(!t)return void 0;var n=t.constructor;return n?n.displayName||n.name||void 0:void 0}function i(){var e=b.current;return e&&o(e)||void 0}function s(e,t){e._store.validated||null!=e.key||(e._store.validated=!0,u('Each child in an array or iterator should have a unique "key" prop.',e,t))}function a(e,t,n){S.test(e)&&u("Child objects should have non-numeric keys so ordering is preserved.",t,n)}function u(e,n,r){var s=i(),a="string"==typeof r?r:r.displayName||r.name,u=s||a,c=C[e]||(C[e]={});if(!c.hasOwnProperty(u)){c[u]=!0;var l=s?" Check the render method of "+s+".":a?" Check the React.render call using <"+a+">.":"",p="";if(n&&n._owner&&n._owner!==b.current){var h=o(n._owner);p=" It was passed a child from "+h+"."}"production"!==t.env.NODE_ENV?x(!1,e+"%s%s See https://fb.me/react-warning-keys for more information.",l,p):null}}function c(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];m.isValidElement(r)&&s(r,t)}else if(m.isValidElement(e))e._store.validated=!0;else if(e){var o=E(e);if(o){if(o!==e.entries)for(var i,u=o.call(e);!(i=u.next()).done;)m.isValidElement(i.value)&&s(i.value,t)}else if("object"==typeof e){var c=v.extractIfFragment(e);for(var l in c)c.hasOwnProperty(l)&&a(l,c[l],t)}}}function l(e,n,o,i){for(var s in n)if(n.hasOwnProperty(s)){var a;try{"production"!==t.env.NODE_ENV?T("function"==typeof n[s],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e||"React class",g[i],s):T("function"==typeof n[s]),a=n[s](o,s,e,i)}catch(u){a=u}if(a instanceof Error&&!(a.message in _)){_[a.message]=!0;var c=r(this);"production"!==t.env.NODE_ENV?x(!1,"Failed propType: %s%s",a.message,c):null}}}function p(e,n){var r=n.type,o="string"==typeof r?r:r.displayName,i=n._owner?n._owner.getPublicInstance().constructor.displayName:null,s=e+"|"+o+"|"+i;if(!N.hasOwnProperty(s)){N[s]=!0;var a="";o&&(a=" <"+o+" />");var u="";i&&(u=" The element was created by "+i+"."),"production"!==t.env.NODE_ENV?x(!1,"Don't set .props.%s of the React component%s. Instead, specify the correct value when initially creating the element or use React.cloneElement to make a new element with updated props.%s",e,a,u):null}}function h(e,t){return e!==e?t!==t:0===e&&0===t?1/e===1/t:e===t}function d(e){if(e._store){var t=e._store.originalProps,n=e.props;for(var r in n)n.hasOwnProperty(r)&&(t.hasOwnProperty(r)&&h(t[r],n[r])||(p(r,e),t[r]=n[r]))}}function f(e){if(null!=e.type){var n=w.getComponentClassForElement(e),r=n.displayName||n.name;n.propTypes&&l(r,n.propTypes,e.props,y.prop),"function"==typeof n.getDefaultProps&&("production"!==t.env.NODE_ENV?x(n.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):null)}}var m=n(8),v=n(37),y=n(85),g=n(66),b=n(25),w=n(65),E=n(150),T=n(2),x=n(9),C={},_={},S=/^\d+$/,N={},O={checkAndWarnForMutatedProps:d,createElement:function(e,n,r){"production"!==t.env.NODE_ENV?x(null!=e,"React.createElement: type should not be null or undefined. It should be a string (for DOM elements) or a ReactClass (for composite components)."):null;var o=m.createElement.apply(this,arguments);if(null==o)return o;for(var i=2;i<arguments.length;i++)c(arguments[i],e);return f(o),o},createFactory:function(e){var n=O.createElement.bind(null,e);if(n.type=e,"production"!==t.env.NODE_ENV)try{Object.defineProperty(n,"type",{enumerable:!1,get:function(){return"production"!==t.env.NODE_ENV?x(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."):null,Object.defineProperty(this,"type",{value:e}),e}})}catch(r){}return n},cloneElement:function(e,t,n){for(var r=m.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)c(arguments[o],r.type);return f(r),r}};e.exports=O}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(2),o=function(e){var n,o={};"production"!==t.env.NODE_ENV?r(e instanceof Object&&!Array.isArray(e),"keyMirror(...): Argument must be an object."):r(e instanceof Object&&!Array.isArray(e));for(n in e)e.hasOwnProperty(n)&&(o[n]=n);return o};e.exports=o}).call(t,n(1))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={translate:{},menu:{},settings:{}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=new v["default"](S["default"]);t.setBaseUrl("");var n={getBaseUrl:function(){return this.activities.dhis.href}};return t.get(""+e).then(function(e){return Object.assign({},e,n)})}function i(){var e=v["default"].getApi();return i.cachedResponse?i.cachedResponse:(i.cachedResponse=e.get("userSettings/keyUiLocale",{},{dataType:"text"})["catch"](function(){return"en"}),i.cachedResponse)}function s(){var e=v["default"].getApi();return D.baseUrl&&e.setBaseUrl(D.baseUrl),Promise.all([i()]).then(function(e){var t=c(e,1),n=t[0];return{uiLocale:n}})}function a(e){var t=v["default"].getApi(),n=h["default"].getLogger(),r=T["default"].create(D,e),o={models:void 0,model:f["default"],Api:v["default"],system:g["default"].getSystem(),i18n:w["default"].getI18n()};return T["default"].processConfigForD2(r,o),N?N=!1:O=l.Deferred.create(),Promise.all([t.get("schemas"),t.get("attributes",{fields:":all,optionSet[:all]",paging:!1}),t.get("me",{fields:":all,organisationUnits[id],userGroups[id],userCredentials[:all,!user,userRoles[id]"}),t.get("me/authorization"),i(),o.i18n.load()]).then(function(e){return{schemas:l.pick("schemas")(e[0]),attributes:l.pick("attributes")(e[1]),currentUser:e[2],authorities:e[3],uiLocale:e[4]}}).then(function(e){return e.schemas.forEach(function(t){var n=e.attributes.filter(function(e){var n=[t.name,"Attribute"].join("");return e[n]===!0});o.models.add(f["default"].ModelDefinition.createFromSchema(t,n))}),o.currentUser=C["default"].create(e.currentUser,e.authorities,o.models),o.currentUser.userSettings={keyUiLocale:e.uiLocale},O.resolve(o),O.promise})["catch"](function(e){return n.error("Unable to get schemas from the api",e),Promise.reject(e)})}function u(){return O.promise}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a["return"]&&a["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.getManifest=o,t.getUserLocale=i,t.getUserSettings=s,t.init=a,t.getInstance=u;var l=n(42),p=n(72),h=r(p),d=n(179),f=r(d),m=n(41),v=r(m),y=n(181),g=r(y),b=n(173),w=r(b),E=n(169),T=r(E),x=n(170),C=r(x),_=n(98),S=r(_),N=!0,O=l.Deferred.create(),D=T["default"].create(),P=D;t.config=P,t["default"]={init:a,config:P,getInstance:u,getUserSettings:s,getManifest:o}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t,n){for(var r=!0;r;){var o=e,i=t,s=n;a=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var a=Object.getOwnPropertyDescriptor(o,i);if(void 0!==a){if("value"in a)return a.value;var u=a.get;return void 0===u?void 0:u.call(s)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=s,r=!0}},a=n(112),u=Symbol("publishState"),c=Symbol("publishError"),l=Symbol("observable"),p=function(e){function t(e){var n=this;r(this,t);var o=new a.ReplaySubject(1);s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,function(e){return this.subscribe(e.onNext.bind(e),e.onError.bind(e),e.onCompleted.bind(e))}.bind(o)),this[l]=o,e&&Promise.resolve(e).then(function(e){n.setState(e)})["catch"](function(e){n[c](e)})}return o(t,e),i(t,[{key:"setState",value:function(e){this.state=e,this[u]()}},{key:"getState",value:function(){return this.state}},{key:"setSource",value:function(e){var t=this;e.subscribe(function(e){return t.setState(e)},function(e){return t[c]("Rethrown error from source: "+e)})}},{key:u,value:function(){return this[l].onNext(this.state)}},{key:c,value:function(e){return this[l].onError(e)}}],[{key:"create",value:function(e){var n=void 0,r={};return e&&(e.getInitialValue&&(n=e&&e.getInitialState()),Object.keys(e).filter(function(e){return"getInitialState"!==e}).forEach(function(t){return r[t]=e[t],r})),Object.assign(new t(n),r)}}]),t}(a.Observable);t["default"]=p,e.exports=t["default"]},function(e,t,n){var r,o;!function(i,s){"use strict";"object"==typeof e&&e.exports?e.exports=s():(r=s,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o)))}(this,function(){"use strict";function e(e){return typeof console===a?!1:void 0!==console[e]?t(console,e):void 0!==console.log?t(console,"log"):s}function t(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(r){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function n(e,t,n){return function(){typeof console!==a&&(r.call(this,t,n),this[e].apply(this,arguments))}}function r(e,t){for(var n=0;n<u.length;n++){var r=u[n];this[r]=e>n?s:this.methodFactory(r,e,t)}}function o(t,r,o){return e(t)||n.apply(this,arguments)}function i(e,t,n){function i(e){var t=(u[e]||"silent").toUpperCase();try{return void(window.localStorage[p]=t)}catch(n){}try{window.document.cookie=encodeURIComponent(p)+"="+t+";"}catch(n){}}function s(){var e;try{e=window.localStorage[p]}catch(t){}if(typeof e===a)try{var n=window.document.cookie,r=n.indexOf(encodeURIComponent(p)+"=");r&&(e=/^([^;]+)/.exec(n.slice(r))[1])}catch(t){}return void 0===l.levels[e]&&(e=void 0),e}var c,l=this,p="loglevel";e&&(p+=":"+e),l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=n||o,l.getLevel=function(){return c},l.setLevel=function(t,n){if("string"==typeof t&&void 0!==l.levels[t.toUpperCase()]&&(t=l.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=l.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;return c=t,n!==!1&&i(t),r.call(l,t,e),typeof console===a&&t<l.levels.SILENT?"No console available for logging":void 0},l.setDefaultLevel=function(e){s()||l.setLevel(e,!1)},l.enableAll=function(e){l.setLevel(l.levels.TRACE,e)},l.disableAll=function(e){l.setLevel(l.levels.SILENT,e)};var h=s();null==h&&(h=null==t?"WARN":t),l.setLevel(h,!1)}var s=function(){},a="undefined",u=["trace","debug","info","warn","error"],c=new i,l={};c.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=l[e];return t||(t=l[e]=new i(e,c.getLevel(),c.methodFactory)),t};var p=typeof window!==a?window.log:void 0;return c.noConflict=function(){return typeof window!==a&&window.log===c&&(window.log=p),c},c})},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return e.children||e.label?void 0:new Error("Required prop label or children was not specified in "+n+".")}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(10),a=n(44),u=n(11),c=n(60),l=n(27),p=n(47),h=n(45),d=n(43),f=n(198),m=n(7),v=n(6),y=s.createClass({displayName:"FlatButton",mixins:[a],statics:{getRelevantContextKeys:function(e){var t=e.button,n=e.flatButton;return{buttonColor:n.color,buttonHeight:t.height,buttonMinWidth:t.minWidth,disabledTextColor:n.disabledTextColor,primaryTextColor:n.primaryTextColor,secondaryTextColor:n.secondaryTextColor,textColor:n.textColor,textTransform:n.textTransform?n.textTransform:t.textTransform?t.textTransform:"uppercase"}},getChildrenClasses:function(){return[d,f]}},contextTypes:{muiTheme:s.PropTypes.object},childContextTypes:{muiTheme:s.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{disabled:s.PropTypes.bool,hoverColor:s.PropTypes.string,label:o,labelPosition:s.PropTypes.oneOf(["before","after"]),labelStyle:s.PropTypes.object,onKeyboardFocus:s.PropTypes.func,onMouseEnter:s.PropTypes.func,onMouseLeave:s.PropTypes.func,onTouchStart:s.PropTypes.func,primary:s.PropTypes.bool,rippleColor:s.PropTypes.string,secondary:s.PropTypes.bool},getDefaultProps:function(){return{labelStyle:{},labelPosition:"before",onKeyboardFocus:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onTouchStart:function(){}}},getInitialState:function(){return{hovered:!1,isKeyboardFocused:!1,touch:!1,muiTheme:this.context.muiTheme?this.context.muiTheme:v.getMuiTheme(m)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},render:function(){var e=this.props,t=e.children,n=e.disabled,o=e.hoverColor,a=e.backgroundColor,m=e.label,v=e.labelStyle,y=e.labelPosition,g=(e.onKeyboardFocus,e.onMouseLeave,e.onMouseEnter,e.onTouchStart,e.primary),b=e.rippleColor,w=e.secondary,E=e.style,T=r(e,["children","disabled","hoverColor","backgroundColor","label","labelStyle","labelPosition","onKeyboardFocus","onMouseLeave","onMouseEnter","onTouchStart","primary","rippleColor","secondary","style"]),x=this.constructor.getRelevantContextKeys(this.state.muiTheme),C=x.buttonColor,_=x.buttonHeight,S=x.buttonMinWidth,N=x.disabledTextColor,O=x.primaryTextColor,D=x.secondaryTextColor,P=x.textColor,k=x.textTransform,M=n?N:g?O:w?D:P,A=l.fade(l.lighten(M,.4),.15),R=l.fade(M,.8),I=o||A,j=b||R,L=(this.state.hovered||this.state.isKeyboardFocused)&&!n,F=a||C,U=p.merge({color:M,transition:u.easeOut(),fontSize:h.fontStyleButtonFontSize,letterSpacing:0,textTransform:k,fontWeight:h.fontWeightMedium,borderRadius:2,userSelect:"none",position:"relative",overflow:"hidden",backgroundColor:L?I:F,lineHeight:_+"px",minWidth:S,padding:0,margin:0,transform:"translate3d(0, 0, 0)"},E),W=m?s.createElement(f,{label:m,style:v}):void 0,V="before"===y?{labelElement:W,children:t}:{children:t,labelElement:W},B=c.create(V);return s.createElement(d,i({},T,{disabled:n,focusRippleColor:j,onKeyboardFocus:this._handleKeyboardFocus,onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,onTouchStart:this._handleTouchStart,style:U,touchRippleColor:j}),B)},_handleKeyboardFocus:function(e,t){this.setState({isKeyboardFocused:t}),this.props.onKeyboardFocus(e,t)},_handleMouseEnter:function(e){this.state.touch||this.setState({hovered:!0}),this.props.onMouseEnter(e)},_handleMouseLeave:function(e){
+this.setState({hovered:!1}),this.props.onMouseLeave(e)},_handleTouchStart:function(e){this.setState({touch:!0}),this.props.onTouchStart(e)}});e.exports=y},function(e,t,n){(function(t){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){return e||0===e}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(3),a=n(27),u=n(4),c=n(11),l=n(128),p=n(201),h=n(7),d=n(6),f=n(44),m=s.createClass({displayName:"TextField",mixins:[f,u],contextTypes:{muiTheme:s.PropTypes.object},propTypes:{errorStyle:s.PropTypes.object,errorText:s.PropTypes.string,floatingLabelStyle:s.PropTypes.object,floatingLabelText:s.PropTypes.string,fullWidth:s.PropTypes.bool,hintText:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.element]),hintStyle:s.PropTypes.object,id:s.PropTypes.string,inputStyle:s.PropTypes.object,multiLine:s.PropTypes.bool,onBlur:s.PropTypes.func,onChange:s.PropTypes.func,onEnterKeyDown:s.PropTypes.func,onFocus:s.PropTypes.func,onKeyDown:s.PropTypes.func,rows:s.PropTypes.number,rowsMax:s.PropTypes.number,type:s.PropTypes.string,underlineStyle:s.PropTypes.object,underlineFocusStyle:s.PropTypes.object,underlineDisabledStyle:s.PropTypes.object},childContextTypes:{muiTheme:s.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getDefaultProps:function(){return{fullWidth:!1,type:"text",rows:1}},statics:{getRelevantContextKeys:function(e){var t=e.textField;return{floatingLabelColor:t.floatingLabelColor,focusColor:t.focusColor,borderColor:t.borderColor,textColor:t.textColor,disabledTextColor:t.disabledTextColor,backgroundColor:t.backgroundColor,hintColor:t.hintColor,errorColor:t.errorColor,isRtl:e.isRtl}},getChildrenClasses:function(){return[p]}},getInitialState:function(){var e=this.props.children?this.props.children.props:this.props;return{errorText:this.props.errorText,hasValue:o(e.value)||o(e.defaultValue)||e.valueLink&&o(e.valueLink.value),muiTheme:this.context.muiTheme?this.context.muiTheme:d.getMuiTheme(h)}},componentDidMount:function(){this._uniqueId=l.generate()},componentWillReceiveProps:function(e,t){var n={};n.muiTheme=t.muiTheme?t.muiTheme:this.state.muiTheme,n.errorText=e.errorText,e.children&&e.children.props&&(e=e.children.props);var r=e.hasOwnProperty("valueLink"),i=e.hasOwnProperty("value"),s=e.defaultValue!==this.props.defaultValue;r?n.hasValue=o(e.valueLink.value):i?n.hasValue=o(e.value):s&&(n.hasValue=o(e.defaultValue)),n&&this.setState(n)},getStyles:function(){var e=this.props,t=this.constructor.getRelevantContextKeys(this.state.muiTheme),n=t.floatingLabelColor,r=t.focusColor,o=t.borderColor,i=t.textColor,s=t.disabledTextColor,u=t.backgroundColor,l=t.hintColor,p=t.errorColor,h=t.isRtl,d={root:{fontSize:16,lineHeight:"24px",width:e.fullWidth?"100%":256,height:24*(e.rows-1)+(e.floatingLabelText?72:48),display:"inline-block",position:"relative",fontFamily:this.state.muiTheme.rawTheme.fontFamily,transition:c.easeOut("200ms","height")},error:{position:"relative",bottom:5,fontSize:12,lineHeight:"12px",color:p,transition:c.easeOut()},hint:{position:"absolute",lineHeight:"22px",opacity:1,color:l,transition:c.easeOut(),bottom:12},input:{tapHighlightColor:"rgba(0,0,0,0)",padding:0,position:"relative",width:"100%",height:"100%",border:"none",outline:"none",backgroundColor:u,color:e.disabled?s:i,font:"inherit"},underline:{border:"none",borderBottom:"solid 1px "+o,position:"absolute",width:"100%",bottom:8,margin:0,MozBoxSizing:"content-box",boxSizing:"content-box",height:0},underlineAfter:{position:"absolute",width:"100%",overflow:"hidden",userSelect:"none",cursor:"default",bottom:8,borderBottom:"dotted 2px "+s},underlineFocus:{borderBottom:"solid 2px",borderColor:r,transform:"scaleX(0)",transition:c.easeOut()}};return d.error=this.mergeAndPrefix(d.error,e.errorStyle),d.underline=this.mergeAndPrefix(d.underline,e.underlineStyle),d.underlineAfter=this.mergeAndPrefix(d.underlineAfter,e.underlineDisabledStyle),d.floatingLabel=this.mergeStyles(d.hint,{lineHeight:"22px",top:38,bottom:"none",opacity:1,transform:"scale(1) translate3d(0, 0, 0)",transformOrigin:h?"right top":"left top"}),d.textarea=this.mergeStyles(d.input,{marginTop:e.floatingLabelText?36:12,marginBottom:e.floatingLabelText?-36:-12,boxSizing:"border-box",font:"inherit"}),d.focusUnderline=this.mergeStyles(d.underline,d.underlineFocus,e.underlineFocusStyle),this.state.isFocused&&(d.floatingLabel.color=r,d.floatingLabel.transform="perspective(1px) scale(0.75) translate3d(2px, -28px, 0)",d.focusUnderline.transform="scaleX(1)"),this.state.hasValue&&(d.floatingLabel.color=a.fade(e.disabled?s:n,.5),d.floatingLabel.transform="perspective(1px) scale(0.75) translate3d(2px, -28px, 0)",d.hint.opacity=0),e.floatingLabelText&&(d.hint.opacity=0,d.input.boxSizing="border-box",this.state.isFocused&&!this.state.hasValue&&(d.hint.opacity=1)),e.style&&e.style.height&&(d.hint.lineHeight=e.style.height),this.state.errorText&&this.state.isFocused&&(d.floatingLabel.color=d.error.color),e.floatingLabelText&&!e.multiLine&&(d.input.marginTop=14),this.state.errorText&&(d.focusUnderline.borderColor=d.error.color,d.focusUnderline.transform="scaleX(1)"),d},render:function(){var e=this.props,t=e.className,n=(e.errorStyle,e.errorText,e.floatingLabelText),o=(e.fullWidth,e.hintText),a=e.hintStyle,u=e.id,c=e.multiLine,l=(e.onBlur,e.onChange,e.onFocus,e.type),h=e.rows,d=e.rowsMax,f=r(e,["className","errorStyle","errorText","floatingLabelText","fullWidth","hintText","hintStyle","id","multiLine","onBlur","onChange","onFocus","type","rows","rowsMax"]),m=this.getStyles(),v=u||this._uniqueId,y=this.state.errorText?s.createElement("div",{style:m.error},this.state.errorText):null,g=o?s.createElement("div",{style:this.mergeAndPrefix(m.hint,a)},o):null,b=n?s.createElement("label",{style:this.mergeAndPrefix(m.floatingLabel,this.props.floatingLabelStyle),htmlFor:v},n):null,w=void 0,E=void 0;w={id:v,ref:this._getRef(),style:this.mergeAndPrefix(m.input,this.props.inputStyle),onBlur:this._handleInputBlur,onFocus:this._handleInputFocus,disabled:this.props.disabled,onKeyDown:this._handleInputKeyDown},this.props.hasOwnProperty("valueLink")||(w.onChange=this._handleInputChange),E=this.props.children?s.cloneElement(this.props.children,i({},w,this.props.children.props)):c?s.createElement(p,i({},f,w,{rows:h,rowsMax:d,onHeightChange:this._handleTextAreaHeightChange,textareaStyle:this.mergeAndPrefix(m.textarea)})):s.createElement("input",i({},f,w,{type:l}));var T=this.props.disabled?s.createElement("div",{style:this.mergeAndPrefix(m.underlineAfter)}):s.createElement("hr",{style:this.mergeAndPrefix(m.underline)}),x=s.createElement("hr",{style:this.mergeAndPrefix(m.focusUnderline)});return s.createElement("div",{className:t,style:this.mergeAndPrefix(m.root,this.props.style)},b,g,E,T,x,y)},blur:function(){this.isMounted()&&this._getInputNode().blur()},clearValue:function(){this.setValue("")},focus:function(){this.isMounted()&&this._getInputNode().focus()},getValue:function(){return this.isMounted()?this._getInputNode().value:void 0},setErrorText:function(e){"production"!==t.env.NODE_ENV&&this.props.hasOwnProperty("errorText")?console.error("Cannot call TextField.setErrorText when errorText is defined as a property."):this.isMounted()&&this.setState({errorText:e})},setValue:function(e){"production"!==t.env.NODE_ENV&&this._isControlled()?console.error("Cannot call TextField.setValue when value or valueLink is defined as a property."):this.isMounted()&&(this.props.multiLine?this.refs[this._getRef()].setValue(e):this._getInputNode().value=e,this.setState({hasValue:o(e)}))},_getRef:function(){return this.props.ref?this.props.ref:"input"},_getInputNode:function(){return this.props.children||this.props.multiLine?this.refs[this._getRef()].getInputNode():s.findDOMNode(this.refs[this._getRef()])},_handleInputBlur:function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},_handleInputChange:function(e){this.setState({hasValue:o(e.target.value)}),this.props.onChange&&this.props.onChange(e)},_handleInputFocus:function(e){this.props.disabled||(this.setState({isFocused:!0}),this.props.onFocus&&this.props.onFocus(e))},_handleInputKeyDown:function(e){13===e.keyCode&&this.props.onEnterKeyDown&&this.props.onEnterKeyDown(e),this.props.onKeyDown&&this.props.onKeyDown(e)},_handleTextAreaHeightChange:function(e,t){var n=t+24;this.props.floatingLabelText&&(n+=24),s.findDOMNode(this).style.height=n+"px"},_isControlled:function(){return this.props.hasOwnProperty("value")||this.props.hasOwnProperty("valueLink")}});e.exports=m}).call(t,n(1))},function(e,t,n){"use strict";var r=n(10),o=r.addons.createFragment;e.exports={create:function(e){var t={},n=0,r=void 0;for(var i in e){var s=e[i];s&&(0===n&&(r=i),t[i]=s,n++)}return 0===n?void 0:1===n?t[r]:o(t)},extend:function(e,t,n){return r.isValidElement(e)?r.Children.map(e,function(e){var o="function"==typeof t?t(e):t,i="function"==typeof n?n(e):n?n:e.props.children;return r.cloneElement(e,o,i)}):e}}},function(e,t){"use strict";e.exports={once:function(e,t,n){for(var r=t.split(" "),o=function s(e){return e.target.removeEventListener(e.type,s),n(e)},i=r.length-1;i>=0;i--)this.on(e,r[i],o)},on:function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,function(){n.call(e)})},off:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent("on"+t,n)},isKeyboard:function(e){return-1!==["keydown","keypress","keyup"].indexOf(e.type)}}},function(e,t,n){"use strict";var r=n(3);e.exports={corners:r.PropTypes.oneOf(["bottom-left","bottom-right","top-left","top-right"]),cornersAndCenter:r.PropTypes.oneOf(["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"]),stringOrNumber:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.number]),zDepth:r.PropTypes.oneOf([0,1,2,3,4,5])}},function(e,t,n){"use strict";var r=n(148),o={componentDidMount:function(){this.props.autoFocus&&r(this.getDOMNode())}};e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){l[e]=!0}function o(e){delete l[e]}function i(e){return!!l[e]}var s,a=n(8),u=n(35),c=n(2),l={},p={injectEmptyComponent:function(e){s=a.createFactory(e)}},h=function(){};h.prototype.componentDidMount=function(){var e=u.get(this);e&&r(e._rootNodeID)},h.prototype.componentWillUnmount=function(){var e=u.get(this);e&&o(e._rootNodeID)},h.prototype.render=function(){return"production"!==t.env.NODE_ENV?c(s,"Trying to return null from a render, but no null placeholder component was injected."):c(s),s()};var d=a.createElement(h),f={emptyElement:d,injection:p,isNullComponentID:i};e.exports=f}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=p[t];return null==n&&(p[t]=n=c(t)),n}function o(e){return"production"!==t.env.NODE_ENV?u(l,"There is no registered component for the tag %s",e.type):u(l),new l(e.type,e.props)}function i(e){return new h(e)}function s(e){return e instanceof h}var a=n(5),u=n(2),c=null,l=null,p={},h=null,d={injectGenericComponentClass:function(e){l=e},injectTextComponentClass:function(e){h=e},injectComponentClasses:function(e){a(p,e)},injectAutoWrapper:function(e){c=e}},f={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:i,isTextComponent:s,injection:d};e.exports=f}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var n={};"production"!==t.env.NODE_ENV&&(n={prop:"prop",context:"context",childContext:"child context"}),e.exports=n}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(39),i=n(87),s=n(90),a={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:s,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(r,a),e.exports=r},function(e,t,n){(function(t){"use strict";var r=n(2),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,n,o,i,s,a,u,c){"production"!==t.env.NODE_ENV?r(!this.isInTransaction(),"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction."):r(!this.isInTransaction());var l,p;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),p=e.call(n,o,i,s,a,u,c),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(h){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return p},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=i.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===i.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(o){}}}},closeAll:function(e){"production"!==t.env.NODE_ENV?r(this.isInTransaction(),"Transaction.closeAll(): Cannot close transaction when none are open."):r(this.isInTransaction());for(var n=this.transactionWrappers,o=e;o<n.length;o++){var s,a=n[o],u=this.wrapperInitData[o];try{s=!0,u!==i.OBSERVED_ERROR&&a.close&&a.close.call(this,u),s=!1}finally{if(s)try{this.closeAll(o+1)}catch(c){}}}this.wrapperInitData.length=0}},i={Mixin:o,OBSERVED_ERROR:{}};e.exports=i}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,n){if("production"!==t.env.NODE_ENV?o(null!=n,"accumulateInto(...): Accumulated items must not be null or undefined."):o(null!=n),null==e)return n;var r=Array.isArray(e),i=Array.isArray(n);return r&&i?(e.push.apply(e,n),e):r?(e.push(n),e):i?[e].concat(n):[e,n]}var o=n(2);e.exports=r}).call(t,n(1))},function(e,t){"use strict";function n(e){return o[e]}function r(e){return(""+e).replace(i,n)}var o={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},i=/[&><"']/g;e.exports=r},function(e,t){!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(5),a=r(s),u=n(6),c=r(u),l=n(1),p=r(l),h=n(8),d=r(h),f=n(9),m=r(f);t["default"]={isArrayOfStrings:i["default"],isString:a["default"],isFunction:c["default"],isObject:p["default"],camelCaseToUnderscores:d["default"],isIterable:m["default"]},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=r(o);t["default"]=i["default"],e.exports=t["default"]},function(e,t){"use strict";function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Array.isArray(e)&&e.reduce(function(e,t){return e&&s["default"](t)},!0)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(4),s=r(i);e.exports=t["default"]},function(e,t){"use strict";function n(e){return!!e&&"object"==typeof e}function r(e){return"string"==typeof e||n(e)&&s.call(e)==o}var o="[object String]",i=Object.prototype,s=i.toString;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=r(o);t["default"]=i["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=r(o);t["default"]=i["default"],e.exports=t["default"]},function(e,t){"use strict";function n(e){return r(e)&&s.call(e)==o}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var o="[object Function]",i=Object.prototype,s=i.toString;e.exports=n},function(e,t){"use strict";function n(e){return e.replace(/[a-z][A-Z]/g,function(e){return[e.charAt(0),e.charAt(1)].join("_")}).toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Boolean((e||s["default"](e))&&e[Symbol.iterator])}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(4),s=r(i);e.exports=t["default"]}]))},function(e,t,n){(function(r){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(14),a=function(){function e(t){o(this,e),s.checkType(t,"object","console"),this.logger=t}return i(e,[{key:"canLog",value:function(e){return!!(e&&console&&s.isType(this.logger[e],"function"))}},{key:"debug",value:function(){if(this.canLog("debug")){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.logger.debug.apply(console,t),!0}return!1}},{key:"error",value:function(){if(this.canLog("error")){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.logger.error.apply(console,t),!0}return!1}},{key:"log",value:function(){if(this.canLog("log")){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.logger.log.apply(console,t),!0}return!1}},{key:"warn",value:function(){if(this.canLog("warn")){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.logger.warn.apply(console,t),!0}return!1}}],[{key:"getLogger",value:function(){var t=void 0;try{t=r.console}catch(n){t=window.console}return this.logger?this.logger:this.logger=new e(t)}}]),e}();t["default"]=a,e.exports=t["default"]}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(14),a=n(74),u=r(a),c=function(){function e(t){var n=this;o(this,e),s.checkType(t,"object","modelDefinition"),s.checkType(t.modelProperties,"object","modelProperties"),Object.defineProperty(this,"modelDefinition",{enumerable:!1,configurable:!1,writable:!1,value:t}),Object.defineProperty(this,"dirty",{enumerable:!1,configurable:!1,writable:!0,value:!1}),Object.defineProperty(this,"dataValues",{enumerable:!1,configurable:!0,writable:!0,value:{}});var r=function(e){return e&&!!Object.keys(e).length},i={},u=t.attributeProperties;r(u)&&(Object.defineProperty(this,"attributes",{enumerable:!1,value:i}),Object.keys(u).forEach(function(e){Object.defineProperty(i,e,{enumerable:!0,get:function(){return Array.isArray(n.attributeValues)?n.attributeValues.filter(function(t){return t.attribute.name===e}).reduce(function(e,t){return t.value},void 0):void 0},set:function(t){n.attributeValues||(n.attributeValues=[]);var r=n.attributeValues.filter(function(t){return t.attribute.name===e}).reduce(function(e,t){return t},void 0);if(r){if(r.value===t)return;r.value=t}else n.attributeValues.push({value:t,attribute:{id:u[e].id,name:u[e].name}});n.dirty=!0}})})),Object.defineProperties(this,t.modelProperties),this[a.DIRTY_PROPERTY_LIST]=new Set([])}return i(e,null,[{key:"create",value:function(t){return new e(t)}}]),e}();c.prototype=u["default"],t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(100),a=r(s),u=a["default"].getModelValidation(),c=Symbol("List to keep track of dirty properties");t.DIRTY_PROPERTY_LIST=c;var l=function(){function e(){o(this,e)}return i(e,[{key:"save",value:function(){var e=this;return this.dirty?this.validate().then(function(t){return t.status?e.modelDefinition.save(e).then(function(t){return e.dirty=!1,e[c].clear(),t}):Promise.reject(t)}):Promise.reject("No changes to be saved")}},{key:"validate",value:function(){var e=this;return new Promise(function(t,n){function r(e,t){return t&&-1===e.indexOf(t)&&e.push(t),e}function o(e,t){var n=[];return Object.keys(e).forEach(function(r){var o=u.validate(e[r],t[r]);o.status||o.messages.forEach(function(e){e.property=r}),c=c&&o.status,n=n.concat(o.messages||[])}),n}function i(e){return u.validateAgainstSchema(e)}var s=[],a=void 0,c=!0;s=s.concat(o(e.modelDefinition.modelValidations,e.dataValues)),i(e).then(function(e){s=s.concat(e),a={status:c&&0===e.length,fields:s.map(function(e){return e.property}).reduce(r,[]),messages:s},t(a)})["catch"](function(e){return n(e)})})}},{key:"delete",value:function(){return this.modelDefinition["delete"](this)}},{key:"getDirtyPropertyNames",value:function(){return Array.from(this[c].values())}}]),e}();t["default"]=new l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(40),a=r(s),u=n(163),c=r(u),l=i["default"].createClass({displayName:"Form",propTypes:{fieldConfigs:i["default"].PropTypes.arrayOf(i["default"].PropTypes.shape({name:i["default"].PropTypes.string.isRequired,type:i["default"].PropTypes.func.isRequired,fieldOptions:i["default"].PropTypes.object,validators:i["default"].PropTypes.arrayOf(i["default"].PropTypes.func)})).isRequired,onFormFieldUpdate:i["default"].PropTypes.func,source:i["default"].PropTypes.object.isRequired},getDefaultProps:function(){return{fieldConfigs:[]}},renderFieldsFromFieldConfigs:function(){var e=this;return this.props.fieldConfigs.filter(function(e){return e.type}).map(function(t){var n=e.props.source&&e.props.source[t.name],r=(t.validators||[]).filter(function(e){return e(n)!==!0}).map(function(e){return e(n)}).shift(),o="onBlur"===t.updateEvent?"onBlur":"onChange";return i["default"].createElement(c["default"],{fieldOptions:t.fieldOptions,key:t.name,type:t.type,errorMessage:r,onChange:e.updateRequest.bind(e,t),value:n,isValid:e.isValid(),updateFn:e.updateRequest.bind(e,t),updateEvent:o})})},render:function(){var e=a["default"]("form");return i["default"].createElement("form",{className:e},this.renderFieldsFromFieldConfigs(),this.props.children)},isValid:function(){return!0},updateRequest:function(e,t){this.props.onFormFieldUpdate&&this.props.onFormFieldUpdate(e.name,t.target.value)}});t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(62),u=n(4),c=n(45),l=n(19),p=n(7),h=n(6),d=i.createClass({displayName:"List",mixins:[s,u],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{insetSubheader:i.PropTypes.bool,subheader:i.PropTypes.string,subheaderStyle:i.PropTypes.object,zDepth:a.zDepth},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getDefaultProps:function(){return{zDepth:0}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},render:function(){var e=this.props,t=e.children,n=e.insetSubheader,s=e.style,a=e.subheader,u=e.subheaderStyle,p=e.zDepth,h=r(e,["children","insetSubheader","style","subheader","subheaderStyle","zDepth"]),d={root:{padding:0,paddingBottom:8,paddingTop:a?0:8},subheader:{color:c.textLightBlack,fontSize:14,fontWeight:c.fontWeightMedium,lineHeight:"48px",paddingLeft:n?72:16}},f=void 0;if(a){var m=this.mergeAndPrefix(d.subheader,u);f=i.createElement("div",{style:m},a)}return i.createElement(l,o({},h,{style:this.mergeStyles(d.root,s),zDepth:p}),f,t)}});e.exports=d},function(e,t,n){(function(t){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=n(23),i=n(5),s=n(2);i(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,n=this._contexts;if(e){"production"!==t.env.NODE_ENV?s(e.length===n.length,"Mismatched list of contexts in callback queue"):s(e.length===n.length),this._callbacks=null,this._contexts=null;for(var r=0,o=e.length;o>r;r++)e[r].call(n[r]);e.length=0,n.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){"production"!==t.env.NODE_ENV?c(null==e.props.checkedLink||null==e.props.valueLink,"Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa."):c(null==e.props.checkedLink||null==e.props.valueLink)}function o(e){r(e),"production"!==t.env.NODE_ENV?c(null==e.props.value&&null==e.props.onChange,"Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink."):c(null==e.props.value&&null==e.props.onChange)}function i(e){r(e),"production"!==t.env.NODE_ENV?c(null==e.props.checked&&null==e.props.onChange,"Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink"):c(null==e.props.checked&&null==e.props.onChange)}function s(e){this.props.valueLink.requestChange(e.target.value)}function a(e){this.props.checkedLink.requestChange(e.target.checked)}var u=n(141),c=n(2),l={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p={Mixin:{propTypes:{value:function(e,t,n){return!e[t]||l[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:u.func}},getValue:function(e){return e.props.valueLink?(o(e),e.props.valueLink.value):e.props.value},getChecked:function(e){return e.props.checkedLink?(i(e),e.props.checkedLink.value):e.props.checked},getOnChange:function(e){return e.props.valueLink?(o(e),s):e.props.checkedLink?(i(e),a):e.props.onChange}};e.exports=p}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){e.remove()}var o=n(33),i=n(69),s=n(88),a=n(2),u={trapBubbledEvent:function(e,n){"production"!==t.env.NODE_ENV?a(this.isMounted(),"Must be mounted to trap events"):a(this.isMounted());var r=this.getDOMNode();"production"!==t.env.NODE_ENV?a(r,"LocalEventTrapMixin.trapBubbledEvent(...): Requires node to be rendered."):a(r);var s=o.trapBubbledEvent(e,n,r);this._localEventListeners=i(this._localEventListeners,s)},componentWillUnmount:function(){this._localEventListeners&&s(this._localEventListeners,r)}};e.exports=u}).call(t,n(1))},function(e,t,n){"use strict";var r=n(135),o=n(18),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};e.exports=i},function(e,t,n){(function(t){"use strict";var r=n(2),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){"production"!==t.env.NODE_ENV?r(!o,"ReactCompositeComponent: injectEnvironment() can only be called once."):r(!o),i.unmountIDFromEnvironment=e.unmountIDFromEnvironment,i.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=i}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(5),o=n(52),i=n(9),s=!1,a={current:o,withContext:function(e,n){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?i(s,"withContext is deprecated and will be removed in a future version. Use a wrapper component with getChildContext instead."):null,s=!0);var o,u=a.current;a.current=r({},u,e);try{o=n()}finally{a.current=u}return o}};e.exports=a}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){e&&(null!=e.dangerouslySetInnerHTML&&("production"!==t.env.NODE_ENV?y(null==e.children,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."):y(null==e.children),"production"!==t.env.NODE_ENV?y("object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information."):y("object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML)),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?w(null==e.innerHTML,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."):null,"production"!==t.env.NODE_ENV?w(!e.contentEditable||null==e.children,"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."):null),"production"!==t.env.NODE_ENV?y(null==e.style||"object"==typeof e.style,"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."):y(null==e.style||"object"==typeof e.style))}function o(e,n,r,o){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?w("onScroll"!==n||g("scroll",!0),"This browser doesn't support the `onScroll` event"):null);var i=h.findReactContainerForID(e);if(i){var s=i.nodeType===S?i.ownerDocument:i;T(n,s)}o.getPutListenerQueue().enqueuePutListener(e,n,r)}function i(e){k.call(P,e)||("production"!==t.env.NODE_ENV?y(D.test(e),"Invalid tag: %s",e):y(D.test(e)),P[e]=!0)}function s(e){i(e),this._tag=e,this._renderedChildren=null,this._previousStyleCopy=null,this._rootNodeID=null}var a=n(130),u=n(30),c=n(49),l=n(33),p=n(80),h=n(18),d=n(266),f=n(29),m=n(5),v=n(70),y=n(2),g=n(93),b=n(17),w=n(9),E=l.deleteListener,T=l.listenTo,x=l.registrationNameModules,C={string:!0,number:!0},_=b({style:null}),S=1,N=null,O={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,
+keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},D=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,P={},k={}.hasOwnProperty;s.displayName="ReactDOMComponent",s.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e,r(this._currentElement.props);var o=O[this._tag]?"":"</"+this._tag+">";return this._createOpenTagMarkupAndPutListeners(t)+this._createContentMarkup(t,n)+o},_createOpenTagMarkupAndPutListeners:function(e){var t=this._currentElement.props,n="<"+this._tag;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(null!=i)if(x.hasOwnProperty(r))o(this._rootNodeID,r,i,e);else{r===_&&(i&&(i=this._previousStyleCopy=m({},t.style)),i=a.createMarkupForStyles(i));var s=c.createMarkupForProperty(r,i);s&&(n+=" "+s)}}if(e.renderToStaticMarkup)return n+">";var u=c.createMarkupForID(this._rootNodeID);return n+" "+u+">"},_createContentMarkup:function(e,t){var n="";("listing"===this._tag||"pre"===this._tag||"textarea"===this._tag)&&(n="\n");var r=this._currentElement.props,o=r.dangerouslySetInnerHTML;if(null!=o){if(null!=o.__html)return n+o.__html}else{var i=C[typeof r.children]?r.children:null,s=null!=i?null:r.children;if(null!=i)return n+v(i);if(null!=s){var a=this.mountChildren(s,e,t);return n+a.join("")}}return n},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,o){r(this._currentElement.props),this._updateDOMProperties(t.props,e),this._updateDOMChildren(t.props,e,o)},_updateDOMProperties:function(e,t){var n,r,i,s=this._currentElement.props;for(n in e)if(!s.hasOwnProperty(n)&&e.hasOwnProperty(n))if(n===_){var a=this._previousStyleCopy;for(r in a)a.hasOwnProperty(r)&&(i=i||{},i[r]="");this._previousStyleCopy=null}else x.hasOwnProperty(n)?E(this._rootNodeID,n):(u.isStandardName[n]||u.isCustomAttribute(n))&&N.deletePropertyByID(this._rootNodeID,n);for(n in s){var c=s[n],l=n===_?this._previousStyleCopy:e[n];if(s.hasOwnProperty(n)&&c!==l)if(n===_)if(c?c=this._previousStyleCopy=m({},c):this._previousStyleCopy=null,l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||(i=i||{},i[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&(i=i||{},i[r]=c[r])}else i=c;else x.hasOwnProperty(n)?o(this._rootNodeID,n,c,t):(u.isStandardName[n]||u.isCustomAttribute(n))&&N.updatePropertyByID(this._rootNodeID,n,c)}i&&N.updateStylesByID(this._rootNodeID,i)},_updateDOMChildren:function(e,t,n){var r=this._currentElement.props,o=C[typeof e.children]?e.children:null,i=C[typeof r.children]?r.children:null,s=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,a=r.dangerouslySetInnerHTML&&r.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,c=null!=i?null:r.children,l=null!=o||null!=s,p=null!=i||null!=a;null!=u&&null==c?this.updateChildren(null,t,n):l&&!p&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=a?s!==a&&N.updateInnerHTMLByID(this._rootNodeID,a):null!=c&&this.updateChildren(c,t,n)},unmountComponent:function(){this.unmountChildren(),l.deleteAllListeners(this._rootNodeID),p.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null}},f.measureMethods(s,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),m(s.prototype,s.Mixin,d.Mixin),s.injection={injectIDOperations:function(e){s.BackendIDOperations=N=e}},e.exports=s}).call(t,n(1))},function(e,t){"use strict";var n={currentlyMountingInstance:null,currentlyUnmountingInstance:null};e.exports=n},function(e,t,n){"use strict";var r=n(53),o=r({prop:null,context:null,childContext:null});e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){e!==i.currentlyMountingInstance&&c.enqueueUpdate(e)}function o(e,n){"production"!==t.env.NODE_ENV?p(null==s.current,"%s(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.",n):p(null==s.current);var r=u.get(e);return r?r===i.currentlyUnmountingInstance?null:r:("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?h(!n,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op.",n,n):null),null)}var i=n(84),s=n(25),a=n(8),u=n(35),c=n(16),l=n(5),p=n(2),h=n(9),d={enqueueCallback:function(e,n){"production"!==t.env.NODE_ENV?p("function"==typeof n,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):p("function"==typeof n);var s=o(e);return s&&s!==i.currentlyMountingInstance?(s._pendingCallbacks?s._pendingCallbacks.push(n):s._pendingCallbacks=[n],void r(s)):null},enqueueCallbackInternal:function(e,n){"production"!==t.env.NODE_ENV?p("function"==typeof n,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):p("function"==typeof n),e._pendingCallbacks?e._pendingCallbacks.push(n):e._pendingCallbacks=[n],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueSetProps:function(e,n){var i=o(e,"setProps");if(i){"production"!==t.env.NODE_ENV?p(i._isTopLevel,"setProps(...): You called `setProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):p(i._isTopLevel);var s=i._pendingElement||i._currentElement,u=l({},s.props,n);i._pendingElement=a.cloneAndReplaceProps(s,u),r(i)}},enqueueReplaceProps:function(e,n){var i=o(e,"replaceProps");if(i){"production"!==t.env.NODE_ENV?p(i._isTopLevel,"replaceProps(...): You called `replaceProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):p(i._isTopLevel);var s=i._pendingElement||i._currentElement;i._pendingElement=a.cloneAndReplaceProps(s,n),r(i)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}};e.exports=d}).call(t,n(1))},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e,n){var o;if((null===e||e===!1)&&(e=s.emptyElement),"object"==typeof e){var i=e;"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?l(i&&("function"==typeof i.type||"string"==typeof i.type),"Only functions or strings can be mounted as React components."):null),o=n===i.type&&"string"==typeof i.type?a.createInternalComponent(i):r(i.type)?new i.type(i):new p}else"string"==typeof e||"number"==typeof e?o=a.createInstanceForText(e):"production"!==t.env.NODE_ENV?c(!1,"Encountered invalid React node of type %s",typeof e):c(!1);return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?l("function"==typeof o.construct&&"function"==typeof o.mountComponent&&"function"==typeof o.receiveComponent&&"function"==typeof o.unmountComponent,"Only React Components can be mounted."):null),o.construct(e),o._mountIndex=0,o._mountImage=null,"production"!==t.env.NODE_ENV&&(o._isOwnerNecessary=!1,o._warnedAboutRefsInRender=!1),"production"!==t.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(o),o}var i=n(134),s=n(64),a=n(65),u=n(5),c=n(2),l=n(9),p=function(){};u(p.prototype,i.Mixin,{_instantiateReactComponent:o}),e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";/**
+	 * Checks if an event is supported in the current execution environment.
+	 *
+	 * NOTE: This will not work correctly for non-generic events such as `change`,
+	 * `reset`, `load`, `error`, and `select`.
+	 *
+	 * Borrows from Modernizr.
+	 *
+	 * @param {string} eventNameSuffix Event name, e.g. "click".
+	 * @param {?boolean} capture Check if the capture phase is supported.
+	 * @return {boolean} True if the event is supported.
+	 * @internal
+	 * @license Modernizr 3.0.0pre (Custom Build) | MIT
+	 */
+function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var s=document.createElement("div");s.setAttribute(n,"return;"),r="function"==typeof s[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(12);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(12),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(s=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var a=document.createElement("div");a.innerHTML=" ",""===a.innerHTML&&(s=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML="\ufeff"+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=s},function(e,t,n){(function(t){"use strict";function r(e,n){if(null!=e&&null!=n){var r=typeof e,i=typeof n;if("string"===r||"number"===r)return"string"===i||"number"===i;if("object"===i&&e.type===n.type&&e.key===n.key){var s=e._owner===n._owner,a=null,u=null,c=null;return"production"!==t.env.NODE_ENV&&(s||(null!=e._owner&&null!=e._owner.getPublicInstance()&&null!=e._owner.getPublicInstance().constructor&&(a=e._owner.getPublicInstance().constructor.displayName),null!=n._owner&&null!=n._owner.getPublicInstance()&&null!=n._owner.getPublicInstance().constructor&&(u=n._owner.getPublicInstance().constructor.displayName),null!=n.type&&null!=n.type.displayName&&(c=n.type.displayName),null!=n.type&&"string"==typeof n.type&&(c=n.type),("string"!=typeof n.type||"input"===n.type||"textarea"===n.type)&&(null!=e._owner&&e._owner._isOwnerNecessary===!1||null!=n._owner&&n._owner._isOwnerNecessary===!1)&&(null!=e._owner&&(e._owner._isOwnerNecessary=!0),null!=n._owner&&(n._owner._isOwnerNecessary=!0),"production"!==t.env.NODE_ENV?o(!1,"<%s /> is being rendered by both %s and %s using the same key (%s) in the same place. Currently, this means that they don't preserve state. This behavior should be very rare so we're considering deprecating it. Please contact the React team and explain your use case so that we can take that into consideration.",c||"Unknown Component",a||"[Unknown]",u||"[Unknown]",e.key):null))),s}}return!1}var o=n(9);e.exports=r}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s={contextTypes:{d2:i["default"].PropTypes.object.isRequired},getTranslation:function(e){return this.context.d2.i18n.getTranslation(e)}};t["default"]=s,e.exports=t["default"]},57,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(72),i=r(o),s=void 0;try{s=window.jQuery}catch(a){i["default"].getLogger().error("JQuery not found"),s={}}t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){var n=t.collection?t.collectionName:t.name,r={configurable:!1,enumerable:!0,get:function(){return this.dataValues[n]}};t.writable&&(r.set=function(e){(!h.isObject(e)&&e!==this.dataValues[n]||h.isObject(e))&&(this.dirty=!0,this[T.DIRTY_PROPERTY_LIST].add(n),this.dataValues[n]=e)}),n&&(e[n]=r)}function a(e){var t={},n=d.curry(s,t);return(e||[]).forEach(n),t}function u(e,t){function n(e){return e.href?e.href.split("/").pop():void 0}var r=t.collection?t.collectionName:t.name,o={persisted:t.persisted,type:b["default"].typeLookup(t.propertyType),required:t.required,min:t.min,max:t.max,owner:t.owner,unique:t.unique,writable:t.writable,constants:t.constants};("REFERENCE"===o.type||"COLLECTION"===o.type&&"REFERENCE"===t.itemPropertyType)&&(o.referenceType=n(t)),r&&(e[r]=o)}function c(e){var t={},n=d.curry(u,t);return(e||[]).forEach(n),t}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e,t,n){for(var r=!0;r;){var o=e,i=t,s=n;a=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var a=Object.getOwnPropertyDescriptor(o,i);if(void 0!==a){if("value"in a)return a.value;var u=a.get;return void 0===u?void 0:u.call(s)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=s,r=!0}},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(14),d=n(42),f=n(73),m=r(f),v=n(177),y=r(v),g=n(174),b=r(g),w=n(176),E=r(w),T=n(74),x=function(){function e(t,n,r,o,s,a,u){i(this,e),h.checkType(t,"string"),h.checkType(n,"string","Plural"),d.addLockedProperty(this,"name",t),d.addLockedProperty(this,"plural",n),d.addLockedProperty(this,"isMetaData",r&&r.metadata||!1),d.addLockedProperty(this,"apiEndpoint",r&&r.apiEndpoint),d.addLockedProperty(this,"modelProperties",o),d.addLockedProperty(this,"modelValidations",s),d.addLockedProperty(this,"attributeProperties",a),d.addLockedProperty(this,"authorities",u),this.filters=E["default"].getFilters(this)}return p(e,[{key:"filter",value:function(){return this.clone().filters}},{key:"create",value:function(e){var t=m["default"].create(this);return e&&Object.keys(t).forEach(function(n){t.dataValues[n]=e[n]}),t}},{key:"clone",value:function(){var e=Object.getPrototypeOf(this),t=this.filters.filters,n=Object.create(e);return n=d.copyOwnProperties(n,this),n.filters=E["default"].getFilters(n),n.filters.filters=t.map(function(e){return e}),n}},{key:"get",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]?{fields:":all"}:arguments[1];return h.checkDefined(e,"Identifier"),Array.isArray(e)?this.list({filter:["id:in:["+e.join(",")+"]"]}):this.api.get([this.apiEndpoint,e].join("/"),n).then(function(e){return t.create(e)})["catch"](function(e){return e.message?Promise.reject(e.message):Promise.reject(e)})}},{key:"list",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=this.filters.getFilters();return!h.isDefined(t.filter)&&n.length&&(t.filter=n),this.api.get(this.apiEndpoint,Object.assign({fields:":all"},t)).then(function(t){return y["default"].create(e,t[e.plural].map(function(t){return e.create(t)}),t.pager)})}},{key:"save",value:function(e){var t=function(e){return!!e.id};return t(e)?this.api.update(e.dataValues.href,this.getOwnedPropertyJSON(e)):this.api.post(this.apiEndpoint,this.getOwnedPropertyJSON(e))}},{key:"getOwnedPropertyJSON",value:function(e){var t={},n=this.getOwnedPropertyNames();return Object.keys(this.modelValidations).forEach(function(r){n.indexOf(r)>=0&&void 0!==e.dataValues[r]&&null!==e.dataValues[r]&&(t[r]=e.dataValues[r])}),t}},{key:"getOwnedPropertyNames",value:function(){var e=this;return Object.keys(this.modelValidations).filter(function(t){return e.modelValidations[t].owner})}},{key:"delete",value:function(e){return this.api["delete"](e.dataValues.href)}}],[{key:"createFromSchema",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],r=void 0;return h.checkType(t,Object,"Schema"),r="function"==typeof e.specialClasses[t.name]?e.specialClasses[t.name]:e,Object.freeze(new r(t.name,t.plural,t,Object.freeze(a(t.properties)),Object.freeze(c(t.properties)),n.reduce(function(e,t){return e[t.name]=t,e},{}),t.authorities))}}]),e}(),C=function(e){function t(){i(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return o(t,e),p(t,[{key:"get",value:function(e){var n=arguments.length<=1||void 0===arguments[1]?{fields:":all,userCredentials[:owner]"}:arguments[1];return l(Object.getPrototypeOf(t.prototype),"get",this).call(this,e,n)}}]),t}(x);x.specialClasses={user:C},t["default"]=x,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return T.test(e)}function s(e,t){return v.isNumeric(t)?e>=t:!0}function a(e,t){return v.isNumeric(t)?t>=e:!0}function u(e,t){return v.isInteger(t)?Boolean(e&&v.isInteger(e.length)&&e.length>=t):!0}function c(e,t){return v.isInteger(t)?Boolean(e&&v.isInteger(e.length)&&e.length<=t):!0}function l(e,t){var n={status:!0,messages:[]};return(v.isArray(e)||v.isString(e))&&(u(e,t.min)||(n.status=!1,n.messages.push({message:["Value needs to be longer than or equal to",t.min].join(" "),value:e})),c(e,t.max)||(n.status=!1,n.messages.push({message:["Value needs to be shorter than or equal to",t.max].join(" "),value:e}))),n}function p(e,t,n){return n&&v.isArray(x[n])?void(e.status=x[n].reduce(function(n,r){return r.validator.apply(null,[t])?n:(e.messages.push({message:r.message,value:t}),!1)},!0)):e}function h(e,t){switch(t){case"INTEGER":return v.isInteger(e);case"NUMBER":return v.isNumeric(e);case"COLLECTION":return v.isArray(e);case"PHONENUMBER":case"EMAIL":case"URL":case"COLOR":case"PASSWORD":case"IDENTIFIER":case"TEXT":return v.isString(e);case"COMPLEX":return v.isObject(e);case"DATE":case"REFERENCE":case"BOOLEAN":case"CONSTANT":return!0;default:E.log("No type validator found for",t)}return!1}function d(e,t){var n={status:!0,messages:[]};return v.isNumeric(e)&&(s(e,t.min)||(n.status=!1,n.messages.push({message:["Value needs to be larger than or equal to",t.min].join(" "),value:e})),a(e,t.max)||(n.status=!1,n.messages.push({message:["Value needs to be smaller than or equal to",t.max].join(" "),value:e}))),n}function f(e,t,n){var r=d(t,n);r.status||(e.status=!1,e.messages=e.messages.concat(r.messages));var o=l(t,n);return o.status||(e.status=!1,e.messages=e.messages.concat(o.messages)),e}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=n(14),y=n(72),g=r(y),b=n(41),w=r(b),E=void 0,T=/^[0-9\+ ]+$/,x={PHONENUMBER:[{message:"Phone number can only consist of numbers and + and [space]",validator:i}]},C=function(){function e(t){o(this,e),v.checkType(t,"object","logger (Logger)"),E=t}return m(e,[{key:"validate",value:function(e,t){if(!v.isObject(e))throw new TypeError("validationSettings should be of type object");var n={status:!0,messages:[]};return e.required!==!1||t?(h(t,e.type)||(n.status=!1,n.messages.push({message:"This is not a valid type",value:t})),f(n,t,e),p(n,t,e.type),n):{status:!0,messages:[]}}},{key:"validateAgainstSchema",value:function(e){function t(e){if(e.response&&e.response.validationViolations)return e.response.validationViolations;throw new Error("Response was not a WebMessage with the exprected format")}if(!(e&&e.modelDefinition&&e.modelDefinition.name))return Promise.reject("model.modelDefinition.name can not be found");var n="schemas/"+e.modelDefinition.name;return w["default"].getApi().post(n,e.modelDefinition.getOwnedPropertyJSON(e)).then(function(e){return"OK"===e.status?[]:Promise.reject(e)})["catch"](t)}}],[{key:"getModelValidation",value:function(){return this.modelValidation?this.modelValidation:this.modelValidation=new e(g["default"].getLogger(console))}}]),e}();t["default"]=C,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={keyCacheStrategy:{label:"cache_strategy",type:"dropdown",options:{NO_CACHE:"no_cache",CACHE_1_HOUR:"cache_for_one_hour",CACHE_6AM_TOMORROW:"cache_until_6am_tomorrow",CACHE_TWO_WEEKS:"cache_for_two_weeks"}},keyAnalyticsMaxLimit:{label:"analytics_max_limit",type:"dropdown",options:{5e4:5e4,1e5:1e5,2e5:2e5,0:"unlimited"}},keyDatabaseServerCpus:{label:"no_of_database_server_cpus",type:"dropdown",options:{0:"detect_based_on_web_server",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",16:"16",32:"32"}},infrastructuralIndicators:{label:"infrastructural_indicators",configuration:"infrastructuralIndicators",type:"indicatorGroups"},infrastructuralDataElements:{label:"infrastructural_data_elements",configuration:"infrastructuralDataElements",type:"dataElementGroups"},infrastructuralPeriodType:{label:"infrastructural_period_type",configuration:"infrastructuralPeriodType",type:"dropdown",options:{Daily:"Daily",Weekly:"Weekly",Monthly:"Monthly",BiMonthly:"BiMonthly",Quarterly:"Quarterly",SixMonthly:"SixMonthly",SixMonthlyApril:"SixMonthlyApril",Yearly:"yearly",FinancialApril:"FinancialApril",FinancialJuly:"FinancialJuly",FinancialOct:"FinancialOct"}},keyAnalysisRelativePeriod:{label:"default_analysis_relative_period",type:"dropdown",options:{THIS_MONTH:"THIS_MONTH",LAST_MONTH:"LAST_MONTH",THIS_BIMONTH:"THIS_BIMONTH",LAST_BIMONTH:"LAST_BIMONTH",THIS_QUARTER:"THIS_QUARTER",LAST_QUARTER:"LAST_QUARTER",THIS_SIX_MONTH:"THIS_SIX_MONTH",LAST_SIX_MONTH:"LAST_SIX_MONTH",MONTHS_THIS_YEAR:"MONTHS_THIS_YEAR",QUARTERS_THIS_YEAR:"QUARTERS_THIS_YEAR",THIS_YEAR:"THIS_YEAR",MONTHS_LAST_YEAR:"MONTHS_LAST_YEAR",QUARTERS_LAST_YEAR:"QUARTERS_LAST_YEAR",LAST_YEAR:"LAST_YEAR",LAST_5_YEARS:"LAST_5_YEARS",LAST_12_MONTHS:"LAST_12_MONTHS",LAST_6_MONTHS:"LAST_6_MONTHS",LAST_3_MONTHS:"LAST_3_MONTHS",LAST_6_BIMONTHS:"LAST_6_BIMONTHS",LAST_4_QUARTERS:"LAST_4_QUARTERS",LAST_2_SIXMONTHS:"LAST_2_SIXMONTHS",THIS_FINANCIAL_YEAR:"THIS_FINANCIAL_YEAR",LAST_FINANCIAL_YEAR:"LAST_FINANCIAL_YEAR",LAST_5_FINANCIAL_YEARS:"LAST_5_FINANCIAL_YEARS",THIS_WEEK:"THIS_WEEK",LAST_WEEK:"LAST_WEEK",LAST_4_WEEKS:"LAST_4_WEEKS",LAST_12_WEEKS:"LAST_12_WEEKS",LAST_52_WEEKS:"LAST_52_WEEKS"}},feedbackRecipients:{label:"feedback_recipients",configuration:"feedbackRecipients",type:"userGroups"},offlineOrganisationUnitLevel:{label:"max_levels_to_offline",description:"relative_to_current_user",configuration:"offlineOrganisationUnitLevel",type:"organisationUnitLevels"},keySystemNotificationsEmail:{label:"system_notifications_email_address",validators:["email"]},factorDeviation:{label:"data_analysis_factor",validators:["number"]},phoneNumberAreaCode:{label:"phone_number_area_code",validators:["number"]},helpPageLink:{label:"help_page_link",validators:["url"]},keyInstanceBaseUrl:{label:"server_base_url",validators:["url"]},googleAnalyticsUA:{label:"google_analytics_ua_key"},multiOrganisationUnitForms:{label:"multi_organisation_unit_forms",type:"checkbox"},omitIndicatorsZeroNumeratorDataMart:{label:"omit_indicators_zero_numerator_data_mart",type:"checkbox"},keyAnalyticsMaintenanceMode:{label:"put_analytics_in_maintenance_mode",type:"checkbox"},applicationTitle:{label:"application_title",appendLocale:!0},keyApplicationIntro:{label:"application_introduction",description:"allows_html",appendLocale:!0,multiLine:!0},keyApplicationNotification:{label:"application_notification",description:"allows_html",appendLocale:!0,multiLine:!0},keyApplicationFooter:{label:"application_left_footer",description:"allows_html",appendLocale:!0,multiLine:!0},keyApplicationRightFooter:{label:"application_right_footer",description:"allows_html",appendLocale:!0,multiLine:!0},currentStyle:{label:"style",type:"dropdown",options:{"light_blue/light_blue.css":"light_blue","green/green.css":"green","myanmar/myanmar.css":"myanmar","vietnam/vietnam.css":"vietnam","india/india.css":"india"}},startModule:{label:"start_page"},keyFlag:{label:"flag",type:"dropdown",options:{afghanistan:"afghanistan",africare:"africare",akros:"akros",algeria:"algeria",armenia:"armenia",bangladesh:"bangladesh",benin:"benin",bhutan:"bhutan",botswana:"botswana",burkina_faso:"burkina_faso",burkina_faso_coat_of_arms:"burkina_faso_coat_of_arms",burundi:"burundi",cambodia:"cambodia",cameroon:"cameroon",china:"china",colombia:"colombia",congo_brazzaville:"congo_brazzaville",congo_kinshasa:"congo_kinshasa",demoland:"demoland",ecowas:"ecowas",ecuador:"ecuador",east_africa_community:"east_africa_community",egypt:"egypt",engender_health:"engender_health",ethiopia:"ethiopia",fhi360:"fhi360",forut:"forut",gambia:"gambia",ghana:"ghana",global_fund:"global_fund",guinea:"guinea",guinea_bissau:"guinea_bissau",haiti:"haiti",icap:"icap",ippf:"ippf",india:"india",indonesia:"indonesia",irc:"irc",iraq:"iraq",ivory_coast:"ivory_coast",jhpiego:"jhpiego",kenya:"kenya",laos:"laos",lesotho:"lesotho",liberia:"liberia",malawi:"malawi",mongolia:"mongolia",mozambique:"mozambique",myanmar:"myanmar",mali:"mali",msf:"msf",msi:"msi",namibia:"namibia",nicaragua:"nicaragua",nepal:"nepal",niger:"niger",nigeria:"nigeria",norway:"norway",pakistan:"pakistan",palestine:"palestine",paraguay:"paraguay",philippines:"philippines",pepfar:"pepfar",peru:"peru",psi:"psi",rwanda:"rwanda",senegal:"senegal",sierra_leone:"sierra_leone",sierra_leone_coat_of_arms:"sierra_leone_coat_of_arms",solomon_islands:"solomon_islands",south_africa:"south_africa",south_africa_department_of_health:"south_africa_department_of_health",south_sudan:"south_sudan",sri_lanka:"sri_lanka",sudan:"sudan",swaziland:"swaziland",tajikistan:"tajikistan",tanzania:"tanzania",timor_leste:"timor_leste",republic_of_trinidad_and_tobago:"republic_of_trinidad_and_tobago",togo:"togo",uganda:"uganda",usaid:"usaid",vietnam:"vietnam",vanuatu:"vanuatu",zambia:"zambia",zanzibar:"zanzibar",zimbabwe:"zimbabwe",who:"who"}},keyRequireAddToView:{label:"require_authority_to_add_to_view_object_lists",type:"checkbox"},keyCustomLoginPageLogo:{label:"custom_login_page_logo",type:"checkbox"},keyCustomTopMenuLogo:{label:"custom_top_menu_logo",type:"checkbox"},keyEmailHostName:{label:"host_name"},keyEmailPort:{label:"port"},keyEmailUsername:{label:"username"},keyEmailPassword:{label:"password",configuration:"smtpPassword",type:"password"},keyEmailTls:{label:"tls",type:"checkbox"},keyEmailSender:{label:"email_sender"},emailTestButton:{label:"send_test_email",type:"post_button",uri:"/email/test"},selfRegistrationRole:{label:"self_registration_account_user_role",configuration:"selfRegistrationRole",type:"userRoles"},keySelfRegistrationNoRecaptcha:{label:"do_not_require_recaptcha_for_self_registration",type:"checkbox"},selfRegistrationOrgUnit:{label:"self_registration_account_organisation_unit",configuration:"selfRegistrationOrgUnit",type:"organisationUnits"},keyAccountRecovery:{label:"enable_user_account_recovery",type:"checkbox"},keyCanGrantOwnUserAuthorityGroups:{label:"allow_users_to_grant_own_user_roles",type:"checkbox"},keyAllowObjectAssignment:{label:"allow_assigning_object_to_related_objects_during_add_or_update",type:"checkbox"},credentialsExpires:{label:"user_credentials_expires",type:"dropdown",options:{0:"never",3:"3_months",6:"6_months",12:"12_months"}},keyOpenIdProvider:{label:"openid_provider"},keyOpenIdProviderLabel:{label:"openid_provider_label"},corsWhitelist:{label:"cors_whitelist",configuration:"corsWhitelist",type:"editlist",multiLine:!0},keyHideUnapprovedDataInAnalytics:{label:"hide_unapproved_data_in_analytics",type:"checkbox"},keyAcceptanceRequiredForApproval:{label:"acceptance_required_before_approval",type:"checkbox"},dataApprovalLevels:{label:"data_approval_levels",type:"dataapproval"},keyCalendar:{label:"calendar",type:"dropdown",options:{coptic:"coptic",ethiopian:"ethiopian",gregorian:"gregorian",islamic:"islamic",iso8601:"iso8601",julian:"julian",nepali:"nepali",thai:"thai"}},keyDateFormat:{label:"date_format",type:"dropdown",options:{"yyyy-MM-dd":"yyyy-MM-dd","dd-MM-yyyy":"dd-MM-yyyy"}},remoteServerUrl:{label:"remote_server_url",configuration:"remoteServerUrl"},remoteServerUsername:{label:"remote_server_username",configuration:"remoteServerUsername"},remoteServerPassword:{label:"remote_server_password",configuration:"remoteServerPassword",type:"password"},keyDataImportStrictPeriods:{label:"require_periods_to_match_period_type",type:"checkbox"},keyDataImportStrictCategoryOptionCombos:{label:"require_category_option_combos_to_match",type:"checkbox"},keyDataImportStrictOrganisationUnits:{label:"require_organisation_units_to_match_assignment",type:"checkbox"},keyDataImportStrictAttributeOptionCombos:{label:"require_attribute_option_combos_to_match",type:"checkbox"},keyDataImportRequireCategoryOptionCombo:{label:"require_category_option_combo_to_be_specified",type:"checkbox"},keyDataImportRequireAttributeOptionCombo:{label:"require_attribute_option_combo_to_be_specified",type:"checkbox"},oauth2clients:{label:"oauth2clients",type:"oauth2clients"}};t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(71),i=n(3),s=r(i),a=n(161),u=r(a),c=n(162),l=r(c),p=n(160),h=r(p),d=s["default"].createClass({displayName:"DataTable",propTypes:{contextMenuActions:s["default"].PropTypes.object,contextMenuIcons:s["default"].PropTypes.object},getInitialState:function(){return this.getStateFromProps(this.props)},componentWillReceiveProps:function(e){this.setState(this.getStateFromProps(e))},getStateFromProps:function(e){var t=[];return o.isIterable(e.rows)&&(t=e.rows instanceof Map?Array.from(e.rows.values()):e.rows),{columns:o.isArrayOfStrings(e.columns)?e.columns:["name","lastUpdated"],dataRows:t}},render:function(){var e=this.state.columns.map(function(e,t){return s["default"].createElement(u["default"],{key:t,isOdd:Boolean(t%2),name:e})}),t=[],n=0,r=void 0,o=!0,i=!1,a=void 0;try{for(var c,p=this.state.dataRows[Symbol.iterator]();!(o=(c=p.next()).done);o=!0)r=c.value,n++,t.push(s["default"].createElement(l["default"],{key:n,dataSource:r,columns:this.state.columns,isActive:this.state.activeRow===n,itemClicked:this.handleRowClick}))}catch(d){i=!0,a=d}finally{try{!o&&p["return"]&&p["return"]()}finally{if(i)throw a}}return s["default"].createElement("div",{className:"data-table",onClick:this.hideContextMenu,onMouseLeave:this.hideContextMenu},s["default"].createElement("div",{className:"data-table__headers"},e),s["default"].createElement("div",{className:"data-table__rows"},t),this.state.activeRow?s["default"].createElement(h["default"],{actions:this.props.contextMenuActions||{},activeItem:this.state.activeRow,coords:this.state.contextMenuCoords,icons:this.props.contextMenuIcons}):void 0)},handleRowClick:function(e,t){this.setState({contextMenuCoords:{Y:e.clientY+window.scrollY-25,X:e.clientX-25},activeRow:t!==this.state.activeRow?t:void 0})},hideContextMenu:function(){this.setState({activeRow:void 0})}});t["default"]=d,e.exports=t["default"]},96,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(199),a=r(s);t["default"]=i["default"].createClass({displayName:"LoadingMask.component",render:function(){var e={left:"45%",position:"fixed",top:"45%"};return i["default"].createElement(a["default"],{mode:"indeterminate",size:1.5,style:e})}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(56),i=r(o);t["default"]=i["default"].create(),e.exports=t["default"]},105,function(e,t,n){"use strict";function r(e){return l.flatMap(function(e){return u.Observable.fromArray(e)}).filter(function(t){return RegExp(e.toLowerCase()).test(t[0].toLowerCase())}).map(function(e){var t=o(e,2),n=t[1];return n}).reduce(function(e,t){return e.concat(t)},[])}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a["return"]&&a["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n(111),s=n(108),a=n(55),u=n(314),c=i.Action.createActionsFromNames(["load","setCategory","saveKey","searchSettings"]),l=u.Observable.fromPromise(new Promise(function(e,t){c.load.subscribe(function(){a.getInstance().then(function(e){return Object.keys(s.categories).filter(function(t){return!s.categories[t].authority||e.currentUser.authorities.has(s.categories[t].authority)}).map(function(e){return s.categories[e].settings}).reduce(function(e,t){return e.concat(t)},[]).reduce(function(t,n){return t.concat([[e.i18n.getTranslation(e.system.settings.mapping[n].label),n]])},[])}).then(function(t){return e(t)})["catch"](function(e){return t(e)})},function(e){return t(e)})}));c.searchSettings.debounce(200).map(function(e){return e.data}).map(function(e){return e.toLowerCase().trim()}).distinctUntilChanged().tap(function(e){e||c.setCategory("general")}).filter(function(e){return e}).map(function(e){return r(e)}).concatAll().subscribe(function(e){c.setCategory({settings:e,searchResult:!0})}),t["default"]=c,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["general","server","appearance","email","access","approval","calendar","import","sync","oauth2"];t.categoryOrder=n;var r={general:{label:"general_settings",settings:["keyAnalyticsMaxLimit","infrastructuralIndicators","infrastructuralDataElements","infrastructuralPeriodType","keyAnalysisRelativePeriod","feedbackRecipients","offlineOrganisationUnitLevel","factorDeviation","phoneNumberAreaCode","multiOrganisationUnitForms","keyAnalyticsMaintenanceMode"]},server:{label:"server_settings",settings:["keyCacheStrategy","keyDatabaseServerCpus","keySystemNotificationsEmail","helpPageLink","keyInstanceBaseUrl","googleAnalyticsUA"]},appearance:{label:"appearance_settings",settings:["applicationTitle","keyApplicationIntro","keyApplicationNotification","keyApplicationFooter","keyApplicationRightFooter","currentStyle","startModule","keyFlag","keyRequireAddToView","keyCustomLoginPageLogo","keyCustomTopMenuLogo"]},email:{label:"email_settings",settings:["keyEmailHostName","keyEmailPort","keyEmailUsername","keyEmailPassword","keyEmailTls","keyEmailSender","emailTestButton"]},access:{label:"access_settings",settings:["selfRegistrationRole","keySelfRegistrationNoRecaptcha","selfRegistrationOrgUnit","keyAccountRecovery","keyCanGrantOwnUserAuthorityGroups","keyAllowObjectAssignment","credentialsExpires","keyOpenIdProvider","keyOpenIdProviderLabel","corsWhitelist"]},approval:{label:"approval_settings",settings:["keyHideUnapprovedDataInAnalytics","keyAcceptanceRequiredForApproval","dataApprovalLevels"]},calendar:{label:"calendar_settings",settings:["keyCalendar","keyDateFormat"]},"import":{label:"import_settings",settings:["keyDataImportStrictPeriods","keyDataImportStrictCategoryOptionCombos","keyDataImportStrictOrganisationUnits","keyDataImportStrictAttributeOptionCombos","keyDataImportRequireCategoryOptionCombo","keyDataImportRequireAttributeOptionCombo"]},sync:{label:"synchronization_settings",settings:["remoteServerUrl","remoteServerUsername","remoteServerPassword"]},oauth2:{label:"oauth2_clients",authority:"F_OAUTH2_CLIENT_MANAGE",settings:["oauth2clients"]}};t.categories=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return{sideBar:{backgroundColor:"#F3F3F3",backgroundColorItem:"transparent",backgroundColorItemActive:e.palette.accent2Color,textColor:e.palette.textColor,textColorActive:e.palette.textColor},forms:{minWidth:350,maxWidth:900}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(20),s=r(i),a=n(27),u=r(a),c=n(123),l=r(c),p=n(6),h=r(p),d={spacing:l["default"],fontFamily:"Roboto, sans-serif",palette:{primary1Color:s["default"].blue500,primary2Color:s["default"].blue700,primary3Color:s["default"].lightBlack,accent1Color:"#276696",accent2Color:"#E9E9E9",accent3Color:s["default"].grey500,textColor:s["default"].darkBlack,alternateTextColor:s["default"].white,canvasColor:s["default"].white,borderColor:s["default"].grey300,disabledColor:u["default"].fade(s["default"].darkBlack,.3)}},f=h["default"].getMuiTheme(d),m=o(d);t["default"]=Object.assign({},f,m),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(196),i=r(o),s=n(112),a=n(57),u=r(a),c={create:function(){var e=arguments.length<=0||void 0===arguments[0]?"AnonymousAction":arguments[0],t=Object.assign(function(){for(var e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return u["default"].info("Firing action: "+t.id.toString()),s.Observable.fromPromise(new Promise(function(e,r){t.onNext({data:1===n.length?n[0]:[].concat(n),complete:function(){e.apply(void 0,arguments),u["default"].info("Completed action: "+t.id.toString())},error:function(){r.apply(void 0,arguments),u["default"].warn("Errored action: "+t.id.toString())}})}))},s.Observable.prototype,s.Subject.prototype);return Object.defineProperty(t,"id",{value:Symbol(e)}),s.Subject.call(t),t},createActionsFromNames:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],n=arguments.length<=1||void 0===arguments[1]?void 0:arguments[1],r={},o=n;return o=n&&i["default"](n)?n+".":"",t.forEach(function(t){r[t]=e.create(o+t)}),r}};t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(57),i=r(o),s=n(110),a=r(s),u=r(s);t["default"]={log:i["default"],Action:a["default"],Store:u["default"]},e.exports=t["default"]},function(e,t,n){var r;(function(e,o,i){(function(s){function a(e){for(var t=[],n=0,r=e.length;r>n;n++)t.push(e[n]);return t}function u(){try{return De.apply(this,arguments)}catch(e){return Ge.e=e,Ge}}function c(e){if(!He(e))throw new TypeError("fn must be a function");return De=e,u}function l(e){throw e}function p(e,t){if(Ye&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&-1===e.stack.indexOf(Je)){for(var n=[],r=t;r;r=r.source)r.stack&&n.unshift(r.stack);n.unshift(e.stack);var o=n.join("\n"+Je+"\n");e.stack=h(o)}}function h(e){for(var t=e.split("\n"),n=[],r=0,o=t.length;o>r;r++){var i=t[r];d(i)||f(i)||!i||n.push(i)}return n.join("\n")}function d(e){var t=v(e);if(!t)return!1;var n=t[0],r=t[1];return n===Xe&&r>=$e&&ro>=r}function f(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function m(){if(Ye)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=t[0].indexOf("@")>0?t[1]:t[2],r=v(n);if(!r)return;return Xe=r[0],r[1]}}function v(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function y(e){var t=[];if(!Rt(e))return t;At.nonEnumArgs&&e.length&&It(e)&&(e=Lt.call(e));var n=At.enumPrototypes&&"function"==typeof e,r=At.enumErrorProps&&(e===Nt||e instanceof Error);for(var o in e)n&&"prototype"==o||r&&("message"==o||"name"==o)||t.push(o);if(At.nonEnumShadows&&e!==Ot){var i=e.constructor,s=-1,a=dt;if(e===(i&&i.prototype))var u=e===Dt?xt:e===Nt?gt:Ct.call(e),c=Mt[u];for(;++s<a;)o=ht[s],c&&c[o]||!_t.call(e,o)||t.push(o)}return t}function g(e,t,n){for(var r=-1,o=n(e),i=o.length;++r<i;){var s=o[r];if(t(e[s],s,e)===!1)break}return e}function b(e,t){return g(e,t,y)}function w(e){return"function"!=typeof e.toString&&"string"==typeof(e+"")}function E(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;var o=typeof e,i=typeof t;if(e===e&&(null==e||null==t||"function"!=o&&"object"!=o&&"function"!=i&&"object"!=i))return!1;var s=Ct.call(e),a=Ct.call(t);if(s==ft&&(s=Et),a==ft&&(a=Et),s!=a)return!1;switch(s){case vt:
+case yt:return+e==+t;case wt:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case Tt:case xt:return e==String(t)}var u=s==mt;if(!u){if(s!=Et||!At.nodeClass&&(w(e)||w(t)))return!1;var c=!At.argsObject&&It(e)?Object:e.constructor,l=!At.argsObject&&It(t)?Object:t.constructor;if(!(c==l||_t.call(e,"constructor")&&_t.call(t,"constructor")||He(c)&&c instanceof c&&He(l)&&l instanceof l)&&("constructor"in e&&"constructor"in t))return!1}n||(n=[]),r||(r=[]);for(var p=n.length;p--;)if(n[p]==e)return r[p]==t;var h=0,d=!0;if(n.push(e),r.push(t),u){if(p=e.length,h=t.length,d=h==p)for(;h--;){var f=t[h];if(!(d=E(e[h],f,n,r)))break}}else b(t,function(t,o,i){return _t.call(i,o)?(h++,d=_t.call(e,o)&&E(e[o],t,n,r)):void 0}),d&&b(e,function(e,t,n){return _t.call(n,t)?d=--h>-1:void 0});return n.pop(),r.pop(),d}function T(e,t){for(var n=new Array(e),r=0;e>r;r++)n[r]=t();return n}function x(e,t){this.id=e,this.value=t}function C(e,t){this.scheduler=e,this.disposable=t,this.isDisposed=!1}function _(e,t){t.isDisposed||(t.isDisposed=!0,t.disposable.dispose())}function S(e){this._s=e}function N(e){this._s=e,this._l=e.length,this._i=0}function O(e){this._a=e}function D(e){this._a=e,this._l=A(e),this._i=0}function P(e){return"number"==typeof e&&Le.isFinite(e)}function k(e){var t,n=e[st];if(!n&&"string"==typeof e)return t=new S(e),t[st]();if(!n&&e.length!==s)return t=new O(e),t[st]();if(!n)throw new TypeError("Object is not iterable");return e[st]()}function M(e){var t=+e;return 0===t?t:isNaN(t)?t:0>t?-1:1}function A(e){var t=+e.length;return isNaN(t)?0:0!==t&&P(t)?(t=M(t)*Math.floor(Math.abs(t)),0>=t?0:t>Kn?Kn:t):t}function R(e,t){this.observer=e,this.parent=t}function I(e,t){return nn(e)||(e=un),new Gn(t,e)}function j(e,t){this.observer=e,this.parent=t}function L(e,t){this.observer=e,this.parent=t}function F(e,t){return e.amb(t)}function U(e,t){return new $r(function(n){var r=new Xt,o=new $t;return o.setDisposable(r),r.setDisposable(e.subscribe(new ir(n,o,t))),o},e)}function W(){return!1}function V(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function W(){return!1}function W(){return!1}function B(){return[]}function V(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function W(){return!1}function B(){return[]}function V(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function q(e){return function(t){return e.subscribe(t)}}function z(e){return e.toArray()}function K(e){return e.length>0}function H(e,t){this.o=e,this.accumulator=t.accumulator,this.hasSeed=t.hasSeed,this.seed=t.seed,this.hasAccumulation=!1,this.accumulation=null,this.hasValue=!1,this.isStopped=!1}function G(e,t,n){var r=pt(t,n,3);return e.map(function(t,n){var o=r(t,n,e);return Ke(o)&&(o=Ln(o)),(ct(o)||ut(o))&&(o=Hn(o)),o}).concatAll()}function Y(e,t,n){for(var r=0,o=e.length;o>r;r++)if(n(e[r],t))return r;return-1}function Q(e){this.comparer=e,this.set=[]}function X(e,t){return function(n){for(var r=n,o=0;t>o;o++){var i=r[e[o]];if("undefined"==typeof i)return s;r=i}return r}}function $(e,t,n){return new $r(function(r){var o=!1,i=null,s=[];return e.subscribe(function(e){var a,u;try{u=t(e)}catch(c){return void r.onError(c)}if(a=0,o)try{a=n(u,i)}catch(l){return void r.onError(l)}else o=!0,i=u;a>0&&(i=u,s=[]),a>=0&&s.push(e)},function(e){r.onError(e)},function(){r.onNext(s),r.onCompleted()})},e)}function J(e){if(0===e.length)throw new Ze;return e[0]}function Z(e,t,n,r){var o=pt(t,n,3);return new $r(function(t){var n=0;return e.subscribe(function(i){var s;try{s=o(i,n,e)}catch(a){return void t.onError(a)}s?(t.onNext(r?n:i),t.onCompleted()):n++},function(e){t.onError(e)},function(){t.onNext(r?-1:s),t.onCompleted()})},e)}function ee(e){return e?Sn.isObservable(e)?e:Ke(e)?Sn.fromPromise(e):ie(e)||oe(e)?Mr.call(this,e):He(e)?re.call(this,e):ct(e)||ut(e)?te.call(this,e):Rt(e)?ne.call(this,e):e:e}function te(e){return Sn.from(e).flatMap(ee).toArray()}function ne(e){function t(e,t){n[t]=s,o.push(e.map(function(e){n[t]=e}))}for(var n=new e.constructor,r=Object.keys(e),o=[],i=0,a=r.length;a>i;i++){var u=r[i],c=ee.call(this,e[u]);c&&Sn.isObservable(c)?t(c,u):n[u]=e[u]}return Sn.forkJoin.apply(Sn,o).map(function(){return n})}function re(e){var t=this;return new $r(function(n){e.call(t,function(){var e=arguments[0],t=arguments[1];if(e)return n.onError(e);if(arguments.length>2){for(var r=[],o=1,i=arguments.length;i>o;o++)r.push(arguments[o]);t=r}n.onNext(t),n.onCompleted()})})}function oe(e){return He(e.next)&&He(e["throw"])}function ie(e){var t=e.constructor;return t?"GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName?!0:oe(t.prototype):!1}function se(e,t,n,r){var o=new to;return r.push(ae(o,t,n)),e.apply(t,r),o.asObservable()}function ae(e,t,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];if(He(n)){if(o=c(n).apply(t,o),o===Ge)return e.onError(o.e);e.onNext(o)}else o.length<=1?e.onNext(o[0]):e.onNext(o);e.onCompleted()}}function ue(e,t,n,r){var o=new to;return r.push(ce(o,t,n)),e.apply(t,r),o.asObservable()}function ce(e,t,n){return function(){var r=arguments[0];if(r)return e.onError(r);for(var o=arguments.length,i=[],s=1;o>s;s++)i[s-1]=arguments[s];if(He(n)){var i=c(n).apply(t,i);if(i===Ge)return e.onError(i.e);e.onNext(i)}else i.length<=1?e.onNext(i[0]):e.onNext(i);e.onCompleted()}}function le(e,t,n){this._e=e,this._n=t,this._fn=n,this._e.addEventListener(this._n,this._fn,!1),this.isDisposed=!1}function pe(e,t,n){var r=new qt,o=Object.prototype.toString.call(e);if("[object NodeList]"===o||"[object HTMLCollection]"===o)for(var i=0,s=e.length;s>i;i++)r.add(pe(e.item(i),t,n));else e&&r.add(new le(e,t,n));return r}function he(e,t){return function(){var n=arguments[0];return He(t)&&(n=c(t).apply(null,arguments),n===Ge)?e.onError(n.e):void e.onNext(n)}}function de(e,t,n){return new $r(function(r){function o(e,t){if(l[t]=e,s[t]=!0,a||(a=s.every(We))){if(i)return r.onError(i);var o=c(n).apply(null,l);if(o===Ge)return r.onError(o.e);r.onNext(o)}u&&l[1]&&r.onCompleted()}var i,s=[!1,!1],a=!1,u=!1,l=new Array(2);return new qt(e.subscribe(function(e){o(e,0)},function(e){l[1]?r.onError(e):i=e},function(){u=!0,l[1]&&r.onCompleted()}),t.subscribe(function(e){o(e,1)},function(e){r.onError(e)},function(){u=!0,o(!0,1)}))},e)}function z(e){return e.toArray()}function fe(e,t){return e.groupJoin(this,t,Bn,function(e,t){return t})}function me(e){var t=this;return new $r(function(n){var r=new eo,o=new qt,i=new Jt(o);return n.onNext(Wt(r,i)),o.add(t.subscribe(function(e){r.onNext(e)},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),Ke(e)&&(e=Ln(e)),o.add(e.subscribe(function(e){r.onCompleted(),r=new eo,n.onNext(Wt(r,i))},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),i},t)}function ve(e){var t=this;return new $r(function(n){function r(){var t;try{t=e()}catch(i){return void n.onError(i)}Ke(t)&&(t=Ln(t));var u=new Xt;o.setDisposable(u),u.setDisposable(t.take(1).subscribe(Ue,function(e){a.onError(e),n.onError(e)},function(){a.onCompleted(),a=new eo,n.onNext(Wt(a,s)),r()}))}var o=new $t,i=new qt(o),s=new Jt(i),a=new eo;return n.onNext(Wt(a,s)),i.add(t.subscribe(function(e){a.onNext(e)},function(e){a.onError(e),n.onError(e)},function(){a.onCompleted(),n.onCompleted()})),r(),s},t)}function ye(e,t){return new Kr(e,t)}function ge(e){this.patterns=e}function be(e,t){this.expression=e,this.selector=t}function we(e,t,n){var r=e.get(t);if(!r){var o=new Qr(t,n);return e.set(t,o),o}return r}function Ee(e,t,n){this.joinObserverArray=e,this.onNext=t,this.onCompleted=n,this.joinObservers=new Yr;for(var r=0,o=this.joinObserverArray.length;o>r;r++){var i=this.joinObserverArray[r];this.joinObservers.set(i,i)}}function Te(e,t){return new $r(function(n){return t.scheduleWithAbsolute(e,function(){n.onNext(0),n.onCompleted()})})}function xe(e,t,n){return new $r(function(r){var o=e,i=tn(t);return n.scheduleRecursiveWithAbsoluteAndState(0,o,function(e,t){if(i>0){var s=n.now();o+=i,s>=o&&(o=s+i)}r.onNext(e),t(e+1,o)})})}function Ce(e,t){return new $r(function(n){return t.scheduleWithRelative(tn(e),function(){n.onNext(0),n.onCompleted()})})}function _e(e,t,n){return e===t?new $r(function(e){return n.schedulePeriodicWithState(0,t,function(t){return e.onNext(t),t+1})}):Un(function(){return xe(n.now()+e,t,n)})}function Se(e,t,n){return new $r(function(r){var o,i=!1,s=new $t,a=null,u=[],c=!1;return o=e.materialize().timestamp(n).subscribe(function(e){var o,l;"E"===e.value.kind?(u=[],u.push(e),a=e.value.exception,l=!c):(u.push({value:e.value,timestamp:e.timestamp+t}),l=!i,i=!0),l&&(null!==a?r.onError(a):(o=new Xt,s.setDisposable(o),o.setDisposable(n.scheduleRecursiveWithRelative(t,function(e){var t,o,s,l;if(null===a){c=!0;do s=null,u.length>0&&u[0].timestamp-n.now()<=0&&(s=u.shift().value),null!==s&&s.accept(r);while(null!==s);l=!1,o=0,u.length>0?(l=!0,o=Math.max(0,u[0].timestamp-n.now())):i=!1,t=a,c=!1,null!==t?r.onError(t):l&&e(o)}}))))}),new qt(o,s)},e)}function Ne(e,t,n){return Un(function(){return Se(e,t-n.now(),n)})}function z(e){return e.toArray()}function z(e){return e.toArray()}function Oe(e,t){return new $r(function(n){function r(){s&&(s=!1,n.onNext(o)),i&&n.onCompleted()}var o,i=!1,s=!1,a=new Xt;return a.setDisposable(e.subscribe(function(e){s=!0,o=e},function(e){n.onError(e)},function(){i=!0,a.dispose()})),new qt(a,t.subscribe(r,function(e){n.onError(e)},r))},e)}var De,Pe={"function":!0,object:!0},ke=Pe[typeof t]&&t&&!t.nodeType&&t,Me=Pe[typeof self]&&self.Object&&self,Ae=Pe[typeof window]&&window&&window.Object&&window,Re=Pe[typeof e]&&e&&!e.nodeType&&e,Ie=Re&&Re.exports===ke&&ke,je=ke&&Re&&"object"==typeof o&&o&&o.Object&&o,Le=Le=je||Ae!==(this&&this.window)&&Ae||Me||this,Fe={internals:{},config:{Promise:Le.Promise},helpers:{}},Ue=Fe.helpers.noop=function(){},We=Fe.helpers.identity=function(e){return e},Ve=Fe.helpers.defaultNow=Date.now,Be=Fe.helpers.defaultComparer=function(e,t){return jt(e,t)},qe=Fe.helpers.defaultSubComparer=function(e,t){return e>t?1:t>e?-1:0},ze=(Fe.helpers.defaultKeySerializer=function(e){return e.toString()},Fe.helpers.defaultError=function(e){throw e}),Ke=Fe.helpers.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then},He=Fe.helpers.isFunction=function(){var e=function(e){return"function"==typeof e||!1};return e(/x/)&&(e=function(e){return"function"==typeof e&&"[object Function]"==Ct.call(e)}),e}(),Ge={e:{}};Fe.config.longStackSupport=!1;var Ye=!1,Qe=c(function(){throw new Error})();Ye=!!Qe.e&&!!Qe.e.stack;var Xe,$e=m(),Je="From previous event:",Ze=Fe.EmptyError=function(){this.message="Sequence contains no elements.",this.name="EmptyError",Error.call(this)};Ze.prototype=Error.prototype;var et=Fe.ObjectDisposedError=function(){this.message="Object has been disposed",this.name="ObjectDisposedError",Error.call(this)};et.prototype=Error.prototype;var tt=Fe.ArgumentOutOfRangeError=function(){this.message="Argument out of range",this.name="ArgumentOutOfRangeError",Error.call(this)};tt.prototype=Error.prototype;var nt=Fe.NotSupportedError=function(e){this.message=e||"This operation is not supported",this.name="NotSupportedError",Error.call(this)};nt.prototype=Error.prototype;var rt=Fe.NotImplementedError=function(e){this.message=e||"This operation is not implemented",this.name="NotImplementedError",Error.call(this)};rt.prototype=Error.prototype;var ot=Fe.helpers.notImplemented=function(){throw new rt},it=Fe.helpers.notSupported=function(){throw new nt},st="function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";Le.Set&&"function"==typeof(new Le.Set)["@@iterator"]&&(st="@@iterator");var at=Fe.doneEnumerator={done:!0,value:s},ut=Fe.helpers.isIterable=function(e){return e[st]!==s},ct=Fe.helpers.isArrayLike=function(e){return e&&e.length!==s};Fe.helpers.iterator=st;var lt,pt=Fe.internals.bindCallback=function(e,t,n){if("undefined"==typeof t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},ht=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dt=ht.length,ft="[object Arguments]",mt="[object Array]",vt="[object Boolean]",yt="[object Date]",gt="[object Error]",bt="[object Function]",wt="[object Number]",Et="[object Object]",Tt="[object RegExp]",xt="[object String]",Ct=Object.prototype.toString,_t=Object.prototype.hasOwnProperty,St=Ct.call(arguments)==ft,Nt=Error.prototype,Ot=Object.prototype,Dt=String.prototype,Pt=Ot.propertyIsEnumerable;try{lt=!(Ct.call(document)==Et&&!({toString:0}+""))}catch(kt){lt=!0}var Mt={};Mt[mt]=Mt[yt]=Mt[wt]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},Mt[vt]=Mt[xt]={constructor:!0,toString:!0,valueOf:!0},Mt[gt]=Mt[bt]=Mt[Tt]={constructor:!0,toString:!0},Mt[Et]={constructor:!0};var At={};!function(){var e=function(){this.x=1},t=[];e.prototype={valueOf:1,y:1};for(var n in new e)t.push(n);for(n in arguments);At.enumErrorProps=Pt.call(Nt,"message")||Pt.call(Nt,"name"),At.enumPrototypes=Pt.call(e,"prototype"),At.nonEnumArgs=0!=n,At.nonEnumShadows=!/valueOf/.test(t)}(1);var Rt=Fe.internals.isObject=function(e){var t=typeof e;return e&&("function"==t||"object"==t)||!1},It=function(e){return e&&"object"==typeof e?Ct.call(e)==ft:!1};St||(It=function(e){return e&&"object"==typeof e?_t.call(e,"callee"):!1});var jt=Fe.internals.isEqual=function(e,t){return E(e,t,[],[])},Lt=({}.hasOwnProperty,Array.prototype.slice),Ft=Fe.internals.inherits=function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},Ut=Fe.internals.addProperties=function(e){for(var t=[],n=1,r=arguments.length;r>n;n++)t.push(arguments[n]);for(var o=0,i=t.length;i>o;o++){var s=t[o];for(var a in s)e[a]=s[a]}},Wt=Fe.internals.addRef=function(e,t){return new $r(function(n){return new qt(t.getDisposable(),e.subscribe(n))})};x.prototype.compareTo=function(e){var t=this.value.compareTo(e.value);return 0===t&&(t=this.id-e.id),t};var Vt=Fe.internals.PriorityQueue=function(e){this.items=new Array(e),this.length=0},Bt=Vt.prototype;Bt.isHigherPriority=function(e,t){return this.items[e].compareTo(this.items[t])<0},Bt.percolate=function(e){if(!(e>=this.length||0>e)){var t=e-1>>1;if(!(0>t||t===e)&&this.isHigherPriority(e,t)){var n=this.items[e];this.items[e]=this.items[t],this.items[t]=n,this.percolate(t)}}},Bt.heapify=function(e){if(+e||(e=0),!(e>=this.length||0>e)){var t=2*e+1,n=2*e+2,r=e;if(t<this.length&&this.isHigherPriority(t,r)&&(r=t),n<this.length&&this.isHigherPriority(n,r)&&(r=n),r!==e){var o=this.items[e];this.items[e]=this.items[r],this.items[r]=o,this.heapify(r)}}},Bt.peek=function(){return this.items[0].value},Bt.removeAt=function(e){this.items[e]=this.items[--this.length],this.items[this.length]=s,this.heapify()},Bt.dequeue=function(){var e=this.peek();return this.removeAt(0),e},Bt.enqueue=function(e){var t=this.length++;this.items[t]=new x(Vt.count++,e),this.percolate(t)},Bt.remove=function(e){for(var t=0;t<this.length;t++)if(this.items[t].value===e)return this.removeAt(t),!0;return!1},Vt.count=0;var qt=Fe.CompositeDisposable=function(){var e,t,n=[];if(Array.isArray(arguments[0]))n=arguments[0],t=n.length;else for(t=arguments.length,n=new Array(t),e=0;t>e;e++)n[e]=arguments[e];for(e=0;t>e;e++)if(!Yt(n[e]))throw new TypeError("Not a disposable");this.disposables=n,this.isDisposed=!1,this.length=n.length},zt=qt.prototype;zt.add=function(e){this.isDisposed?e.dispose():(this.disposables.push(e),this.length++)},zt.remove=function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),this.length--,e.dispose())}return t},zt.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;e>n;n++)t[n]=this.disposables[n];for(this.disposables=[],this.length=0,n=0;e>n;n++)t[n].dispose()}};var Kt=Fe.Disposable=function(e){this.isDisposed=!1,this.action=e||Ue};Kt.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};var Ht=Kt.create=function(e){return new Kt(e)},Gt=Kt.empty={dispose:Ue},Yt=Kt.isDisposable=function(e){return e&&He(e.dispose)},Qt=Kt.checkDisposed=function(e){if(e.isDisposed)throw new et},Xt=Fe.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null};Xt.prototype.getDisposable=function(){return this.current},Xt.prototype.setDisposable=function(e){if(this.current)throw new Error("Disposable has already been assigned");var t=this.isDisposed;!t&&(this.current=e),t&&e&&e.dispose()},Xt.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var $t=Fe.SerialDisposable=function(){this.isDisposed=!1,this.current=null};$t.prototype.getDisposable=function(){return this.current},$t.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e}n&&n.dispose(),t&&e&&e.dispose()},$t.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var Jt=Fe.RefCountDisposable=function(){function e(e){this.disposable=e,this.disposable.count++,this.isInnerDisposed=!1}function t(e){this.underlyingDisposable=e,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}return e.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))},t.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))},t.prototype.getDisposable=function(){return this.isDisposed?Gt:new e(this)},t}();C.prototype.dispose=function(){this.scheduler.scheduleWithState(this,_)};var Zt=Fe.internals.ScheduledItem=function(e,t,n,r,o){this.scheduler=e,this.state=t,this.action=n,this.dueTime=r,this.comparer=o||qe,this.disposable=new Xt};Zt.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},Zt.prototype.compareTo=function(e){return this.comparer(this.dueTime,e.dueTime)},Zt.prototype.isCancelled=function(){return this.disposable.isDisposed},Zt.prototype.invokeCore=function(){return this.action(this.scheduler,this.state)};var en=Fe.Scheduler=function(){function e(e,t,n,r){this.now=e,this._schedule=t,this._scheduleRelative=n,this._scheduleAbsolute=r}function t(e,t){return t(),Gt}e.isScheduler=function(t){return t instanceof e};var n=e.prototype;return n.schedule=function(e){return this._schedule(e,t)},n.scheduleWithState=function(e,t){return this._schedule(e,t)},n.scheduleWithRelative=function(e,n){return this._scheduleRelative(n,e,t)},n.scheduleWithRelativeAndState=function(e,t,n){return this._scheduleRelative(e,t,n)},n.scheduleWithAbsolute=function(e,n){return this._scheduleAbsolute(n,e,t)},n.scheduleWithAbsoluteAndState=function(e,t,n){return this._scheduleAbsolute(e,t,n)},e.now=Ve,e.normalize=function(e){return 0>e&&(e=0),e},e}(),tn=en.normalize,nn=en.isScheduler;!function(e){function t(e,t){function n(t){function r(e,t){return s?i.remove(u):a=!0,o(t,n),Gt}var s=!1,a=!1,u=e.scheduleWithState(t,r);a||(i.add(u),s=!0)}var r=t[0],o=t[1],i=new qt;return o(r,n),i}function n(e,t,n){function r(t,o){function a(e,t){return u?s.remove(l):c=!0,i(t,r),Gt}var u=!1,c=!1,l=e[n](t,o,a);c||(s.add(l),u=!0)}var o=t[0],i=t[1],s=new qt;return i(o,r),s}function r(e,t){return n(e,t,"scheduleWithRelativeAndState")}function o(e,t){return n(e,t,"scheduleWithAbsoluteAndState")}function i(e,t){e(function(n){t(e,n)})}e.scheduleRecursive=function(e){return this.scheduleRecursiveWithState(e,i)},e.scheduleRecursiveWithState=function(e,n){return this.scheduleWithState([e,n],t)},e.scheduleRecursiveWithRelative=function(e,t){return this.scheduleRecursiveWithRelativeAndState(t,e,i)},e.scheduleRecursiveWithRelativeAndState=function(e,t,n){return this._scheduleRelative([e,n],t,r)},e.scheduleRecursiveWithAbsolute=function(e,t){return this.scheduleRecursiveWithAbsoluteAndState(t,e,i)},e.scheduleRecursiveWithAbsoluteAndState=function(e,t,n){return this._scheduleAbsolute([e,n],t,o)}}(en.prototype),function(e){en.prototype.schedulePeriodic=function(e,t){return this.schedulePeriodicWithState(null,e,t)},en.prototype.schedulePeriodicWithState=function(e,t,n){if("undefined"==typeof Le.setInterval)throw new nt;t=tn(t);var r=e,o=Le.setInterval(function(){r=n(r)},t);return Ht(function(){Le.clearInterval(o)})}}(en.prototype),function(e){e.catchError=e["catch"]=function(e){return new dn(this,e)}}(en.prototype);var rn,on,sn=Fe.internals.SchedulePeriodicRecursive=function(){function e(e,t){t(0,this._period);try{this._state=this._action(this._state)}catch(n){throw this._cancel.dispose(),n}}function t(e,t,n,r){this._scheduler=e,this._state=t,this._period=n,this._action=r}return t.prototype.start=function(){var t=new Xt;return this._cancel=t,t.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0,this._period,e.bind(this))),t},t}(),an=en.immediate=function(){function e(e,t){return t(this,e)}return new en(Ve,e,it,it)}(),un=en.currentThread=function(){function e(){for(;n.length>0;){var e=n.shift();!e.isCancelled()&&e.invoke()}}function t(t,r){var o=new Zt(this,t,r,this.now());if(n)n.push(o);else{n=[o];var i=c(e)();if(n=null,i===Ge)return l(i.e)}return o.disposable}var n,r=new en(Ve,t,it,it);return r.scheduleRequired=function(){return!n},r}(),cn=function(){var e,t=Ue;if(Le.setTimeout)e=Le.setTimeout,t=Le.clearTimeout;else{if(!Le.WScript)throw new nt;e=function(e,t){Le.WScript.Sleep(t),e()}}return{setTimeout:e,clearTimeout:t}}(),ln=cn.setTimeout,pn=cn.clearTimeout;!function(){function e(t){if(s)ln(function(){e(t)},0);else{var n=o[t];if(n){s=!0;var r=c(n)();if(on(t),s=!1,r===Ge)return l(r.e)}}}function t(){if(!Le.postMessage||Le.importScripts)return!1;var e=!1,t=Le.onmessage;return Le.onmessage=function(){e=!0},Le.postMessage("","*"),Le.onmessage=t,e}function n(t){"string"==typeof t.data&&t.data.substring(0,p.length)===p&&e(t.data.substring(p.length))}var r=1,o={},s=!1;on=function(e){delete o[e]};var a=RegExp("^"+String(Ct).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),u="function"==typeof(u=je&&Ie&&je.setImmediate)&&!a.test(u)&&u;if(He(u))rn=function(t){var n=r++;return o[n]=t,u(function(){e(n)}),n};else if("undefined"!=typeof i&&"[object process]"==={}.toString.call(i))rn=function(t){var n=r++;return o[n]=t,i.nextTick(function(){e(n)}),n};else if(t()){var p="ms.rx.schedule"+Math.random();Le.addEventListener?Le.addEventListener("message",n,!1):Le.attachEvent?Le.attachEvent("onmessage",n):Le.onmessage=n,rn=function(e){var t=r++;return o[t]=e,Le.postMessage(p+currentId,"*"),t}}else if(Le.MessageChannel){var h=new Le.MessageChannel;h.port1.onmessage=function(t){e(t.data)},rn=function(e){var t=r++;return o[t]=e,h.port2.postMessage(t),t}}else rn="document"in Le&&"onreadystatechange"in Le.document.createElement("script")?function(t){var n=Le.document.createElement("script"),i=r++;return o[i]=t,n.onreadystatechange=function(){e(i),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},Le.document.documentElement.appendChild(n),i}:function(t){var n=r++;return o[n]=t,ln(function(){e(n)},0),n}}();var hn=en.timeout=en["default"]=function(){function e(e,t){var n=this,r=new Xt,o=rn(function(){!r.isDisposed&&r.setDisposable(t(n,e))});return new qt(r,Ht(function(){on(o)}))}function t(e,t,n){var r=this,o=en.normalize(t),i=new Xt;if(0===o)return r.scheduleWithState(e,n);var s=ln(function(){!i.isDisposed&&i.setDisposable(n(r,e))},o);return new qt(i,Ht(function(){pn(s)}))}function n(e,t,n){return this.scheduleWithRelativeAndState(e,t-this.now(),n)}return new en(Ve,e,t,n)}(),dn=function(e){function t(e,t){return this._scheduler.scheduleWithState(e,this._wrap(t))}function n(e,t,n){return this._scheduler.scheduleWithRelativeAndState(e,t,this._wrap(n))}function r(e,t,n){return this._scheduler.scheduleWithAbsoluteAndState(e,t,this._wrap(n))}function o(o,i){this._scheduler=o,this._handler=i,this._recursiveOriginal=null,this._recursiveWrapper=null,e.call(this,this._scheduler.now.bind(this._scheduler),t,n,r)}return Ft(o,e),o.prototype._clone=function(e){return new o(e,this._handler)},o.prototype._wrap=function(e){var t=this;return function(n,r){try{return e(t._getRecursiveWrapper(n),r)}catch(o){if(!t._handler(o))throw o;return Gt}}},o.prototype._getRecursiveWrapper=function(e){if(this._recursiveOriginal!==e){this._recursiveOriginal=e;var t=this._clone(e);t._recursiveOriginal=e,t._recursiveWrapper=t,this._recursiveWrapper=t}return this._recursiveWrapper},o.prototype.schedulePeriodicWithState=function(e,t,n){var r=this,o=!1,i=new Xt;return i.setDisposable(this._scheduler.schedulePeriodicWithState(e,t,function(e){if(o)return null;try{return n(e)}catch(t){if(o=!0,!r._handler(t))throw t;return i.dispose(),null}})),i},o}(en),fn=Fe.Notification=function(){function e(e,t,n,r,o,i){this.kind=e,this.value=t,this.exception=n,this._accept=r,this._acceptObservable=o,this.toString=i}return e.prototype.accept=function(e,t,n){return e&&"object"==typeof e?this._acceptObservable(e):this._accept(e,t,n)},e.prototype.toObservable=function(e){var t=this;return nn(e)||(e=an),new $r(function(n){return e.scheduleWithState(t,function(e,t){t._acceptObservable(n),"N"===t.kind&&n.onCompleted()})})},e}(),mn=fn.createOnNext=function(){function e(e){return e(this.value)}function t(e){return e.onNext(this.value)}function n(){return"OnNext("+this.value+")"}return function(r){return new fn("N",r,null,e,t,n)}}(),vn=fn.createOnError=function(){function e(e,t){return t(this.exception)}function t(e){return e.onError(this.exception)}function n(){return"OnError("+this.exception+")"}return function(r){return new fn("E",null,r,e,t,n)}}(),yn=fn.createOnCompleted=function(){function e(e,t,n){return n()}function t(e){return e.onCompleted()}function n(){return"OnCompleted()"}return function(){return new fn("C",null,null,e,t,n)}}(),gn=Fe.Observer=function(){};gn.prototype.toNotifier=function(){var e=this;return function(t){return t.accept(e)}},gn.prototype.asObserver=function(){var e=this;return new Tn(function(t){e.onNext(t)},function(t){e.onError(t)},function(){e.onCompleted()})},gn.prototype.checked=function(){return new xn(this)};var bn=gn.create=function(e,t,n){return e||(e=Ue),t||(t=ze),n||(n=Ue),new Tn(e,t,n)};gn.fromNotifier=function(e,t){var n=pt(e,t,1);return new Tn(function(e){return n(mn(e))},function(e){return n(vn(e))},function(){return n(yn())})},gn.prototype.notifyOn=function(e){return new _n(e,this)},gn.prototype.makeSafe=function(e){return new AnonymousSafeObserver(this._onNext,this._onError,this._onCompleted,e)};var wn,En=Fe.internals.AbstractObserver=function(e){function t(){this.isStopped=!1}return Ft(t,e),t.prototype.next=ot,t.prototype.error=ot,t.prototype.completed=ot,t.prototype.onNext=function(e){!this.isStopped&&this.next(e)},t.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.error(e))},t.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())},t.prototype.dispose=function(){this.isStopped=!0},t.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.error(e),!0)},t}(gn),Tn=Fe.AnonymousObserver=function(e){function t(t,n,r){e.call(this),this._onNext=t,this._onError=n,this._onCompleted=r}return Ft(t,e),t.prototype.next=function(e){this._onNext(e)},t.prototype.error=function(e){this._onError(e)},t.prototype.completed=function(){this._onCompleted()},t}(En),xn=function(e){function t(t){e.call(this),this._observer=t,this._state=0}Ft(t,e);var n=t.prototype;return n.onNext=function(e){this.checkAccess();var t=c(this._observer.onNext).call(this._observer,e);this._state=0,t===Ge&&l(t.e)},n.onError=function(e){this.checkAccess();var t=c(this._observer.onError).call(this._observer,e);this._state=2,t===Ge&&l(t.e)},n.onCompleted=function(){this.checkAccess();var e=c(this._observer.onCompleted).call(this._observer);this._state=2,e===Ge&&l(e.e)},n.checkAccess=function(){if(1===this._state)throw new Error("Re-entrancy detected");if(2===this._state)throw new Error("Observer completed");0===this._state&&(this._state=1)},t}(gn),Cn=Fe.internals.ScheduledObserver=function(e){function t(t,n){e.call(this),this.scheduler=t,this.observer=n,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=new $t}return Ft(t,e),t.prototype.next=function(e){var t=this;this.queue.push(function(){t.observer.onNext(e)})},t.prototype.error=function(e){var t=this;this.queue.push(function(){t.observer.onError(e)})},t.prototype.completed=function(){var e=this;this.queue.push(function(){e.observer.onCompleted()})},t.prototype.ensureActive=function(){var e=!1;!this.hasFaulted&&this.queue.length>0&&(e=!this.isAcquired,this.isAcquired=!0),e&&this.disposable.setDisposable(this.scheduler.scheduleRecursiveWithState(this,function(e,t){var n;if(!(e.queue.length>0))return void(e.isAcquired=!1);n=e.queue.shift();var r=c(n)();return r===Ge?(e.queue=[],e.hasFaulted=!0,l(r.e)):void t(e)}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.disposable.dispose()},t}(En),_n=function(e){function t(t,n,r){e.call(this,t,n),this._cancel=r}return Ft(t,e),t.prototype.next=function(t){e.prototype.next.call(this,t),this.ensureActive()},t.prototype.error=function(t){e.prototype.error.call(this,t),this.ensureActive()},t.prototype.completed=function(){e.prototype.completed.call(this),this.ensureActive()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._cancel&&this._cancel.dispose(),this._cancel=null},t}(Cn),Sn=Fe.Observable=function(){function e(e,t){return function(n){var r=n.onError;return n.onError=function(t){p(t,e),r.call(n,t)},t.call(e,n)}}function t(t){if(Fe.config.longStackSupport&&Ye){var n=c(l)(new Error).e;this.stack=n.stack.substring(n.stack.indexOf("\n")+1),this._subscribe=e(this,t)}else this._subscribe=t}return wn=t.prototype,t.isObservable=function(e){return e&&He(e.subscribe)},wn.subscribe=wn.forEach=function(e,t,n){return this._subscribe("object"==typeof e?e:bn(e,t,n))},wn.subscribeOnNext=function(e,t){return this._subscribe(bn("undefined"!=typeof t?function(n){e.call(t,n)}:e))},wn.subscribeOnError=function(e,t){return this._subscribe(bn(null,"undefined"!=typeof t?function(n){e.call(t,n)}:e))},wn.subscribeOnCompleted=function(e,t){return this._subscribe(bn(null,null,"undefined"!=typeof t?function(){e.call(t)}:e))},t}(),Nn=Fe.ObservableBase=function(e){function t(e){return e&&He(e.dispose)?e:He(e)?Ht(e):Gt}function n(e,n){var r=n[0],o=n[1],i=c(o.subscribeCore).call(o,r);return i!==Ge||r.fail(Ge.e)?void r.setDisposable(t(i)):l(Ge.e)}function r(e){var t=new Jr(e),r=[t,this];return un.scheduleRequired()?un.scheduleWithState(r,n):n(null,r),t}function o(){e.call(this,r)}return Ft(o,e),o.prototype.subscribeCore=ot,o}(Sn),On=function(e){function t(t,n,r,o){this.resultSelector=Fe.helpers.isFunction(r)?r:null,this.selector=Fe.internals.bindCallback(Fe.helpers.isFunction(n)?n:function(){return n},o,3),this.source=t,e.call(this)}function n(e,t,n,r){this.i=0,this.selector=t,this.resultSelector=n,this.source=r,this.isStopped=!1,this.o=e}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this.selector,this.resultSelector,this))},n.prototype._wrapResult=function(e,t,n){return this.resultSelector?e.map(function(e,r){return this.resultSelector(t,e,n,r)},this):e},n.prototype.onNext=function(e){if(!this.isStopped){var t=this.i++,n=c(this.selector)(e,t,this.source);if(n===Ge)return this.o.onError(n.e);Fe.helpers.isPromise(n)&&(n=Fe.Observable.fromPromise(n)),(Fe.helpers.isArrayLike(n)||Fe.helpers.isIterable(n))&&(n=Fe.Observable.from(n)),this.o.onNext(this._wrapResult(n,e,t))}},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,
+this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},t}(Nn),Dn=Fe.internals.Enumerable=function(){},Pn=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t,n){this.o=e,this.s=t,this.e=n,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){var t,r=new $t,o=an.scheduleRecursiveWithState(this.sources[st](),function(o,i){if(!t){var s=c(o.next).call(o);if(s===Ge)return e.onError(s.e);if(s.done)return e.onCompleted();var a=s.value;Ke(a)&&(a=Ln(a));var u=new Xt;r.setDisposable(u),u.setDisposable(a.subscribe(new n(e,i,o)))}});return new qt(r,o,Ht(function(){t=!0}))},n.prototype.onNext=function(e){this.isStopped||this.o.onNext(e)},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.s(this.e))},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);Dn.prototype.concat=function(){return new Pn(this)};var kn=function(e){function t(t){this.sources=t,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t,n=this.sources[st](),r=new $t,o=an.scheduleRecursiveWithState(null,function(o,i){if(!t){var s=c(n.next).call(n);if(s===Ge)return e.onError(s.e);if(s.done)return null!==o?e.onError(o):e.onCompleted();var a=s.value;Ke(a)&&(a=Ln(a));var u=new Xt;r.setDisposable(u),u.setDisposable(a.subscribe(function(t){e.onNext(t)},i,function(){e.onCompleted()}))}});return new qt(r,o,Ht(function(){t=!0}))},t}(Nn);Dn.prototype.catchError=function(){return new kn(this)},Dn.prototype.catchErrorWhen=function(e){var t=this;return new $r(function(n){var r,o,i=new eo,s=new eo,a=e(i),u=a.subscribe(s),l=t[st](),p=new $t,h=an.scheduleRecursive(function(e){if(!r){var t=c(l.next).call(l);if(t===Ge)return n.onError(t.e);if(t.done)return void(o?n.onError(o):n.onCompleted());var a=t.value;Ke(a)&&(a=Ln(a));var u=new Xt,h=new Xt;p.setDisposable(new qt(h,u)),u.setDisposable(a.subscribe(function(e){n.onNext(e)},function(t){h.setDisposable(s.subscribe(e,function(e){n.onError(e)},function(){n.onCompleted()})),i.onNext(t)},function(){n.onCompleted()}))}});return new qt(u,p,h,Ht(function(){r=!0}))})};var Mn=function(e){function t(e,t){this.v=e,this.c=null==t?-1:t}function n(e){this.v=e.v,this.l=e.c}return Ft(t,e),t.prototype[st]=function(){return new n(this)},n.prototype.next=function(){return 0===this.l?at:(this.l>0&&this.l--,{done:!1,value:this.v})},t}(Dn),An=Dn.repeat=function(e,t){return new Mn(e,t)},Rn=function(e){function t(e,t,n){this.s=e,this.fn=t?pt(t,n,3):null}function n(e){this.i=-1,this.s=e.s,this.l=this.s.length,this.fn=e.fn}return Ft(t,e),t.prototype[st]=function(){return new n(this)},n.prototype.next=function(){return++this.i<this.l?{done:!1,value:this.fn?this.fn(this.s[this.i],this.i,this.s):this.s[this.i]}:at},t}(Dn),In=Dn.of=function(e,t,n){return new Rn(e,t,n)};wn.observeOn=function(e){var t=this;return new $r(function(n){return t.subscribe(new _n(e,n))},t)},wn.subscribeOn=function(e){var t=this;return new $r(function(n){var r=new Xt,o=new $t;return o.setDisposable(r),r.setDisposable(e.schedule(function(){o.setDisposable(new C(e,t.subscribe(n)))})),o},t)};var jn=function(e){function t(t){this.p=t,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.p.then(function(t){e.onNext(t),e.onCompleted()},function(t){e.onError(t)}),Gt},t}(Nn),Ln=Sn.fromPromise=function(e){return new jn(e)};wn.toPromise=function(e){if(e||(e=Fe.config.Promise),!e)throw new nt("Promise type not provided nor in Rx.config.Promise");var t=this;return new e(function(e,n){var r,o=!1;t.subscribe(function(e){r=e,o=!0},n,function(){o&&e(r)})})};var Fn=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.a=[],this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},n.prototype.onNext=function(e){this.isStopped||this.a.push(e)},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onNext(this.a),this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn.toArray=function(){return new Fn(this)},Sn.create=function(e,t){return new $r(e,t)};var Un=Sn.defer=function(e){return new $r(function(t){var n;try{n=e()}catch(r){return or(r).subscribe(t)}return Ke(n)&&(n=Ln(n)),n.subscribe(t)})},Wn=function(e){function t(t){this.scheduler=t,e.call(this)}function n(e,t){this.observer=e,this.scheduler=t}function r(e,t){return t.onCompleted(),Gt}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this.scheduler);return t.run()},n.prototype.run=function(){return this.scheduler.scheduleWithState(this.observer,r)},t}(Nn),Vn=new Wn(an),Bn=Sn.empty=function(e){return nn(e)||(e=an),e===an?Vn:new Wn(e)},qn=function(e){function t(t,n,r){this.iterable=t,this.mapper=n,this.scheduler=r,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new zn(e,this);return t.run()},t}(Nn),zn=function(){function e(e,t){this.o=e,this.parent=t}return e.prototype.run=function(){function e(e,t){var i=c(n.next).call(n);if(i===Ge)return r.onError(i.e);if(i.done)return r.onCompleted();var s=i.value;return He(o)&&(s=c(o)(s,e),s===Ge)?r.onError(s.e):(r.onNext(s),void t(e+1))}var t=Object(this.parent.iterable),n=k(t),r=this.o,o=this.parent.mapper;return this.parent.scheduler.scheduleRecursiveWithState(0,e)},e}(),Kn=Math.pow(2,53)-1;S.prototype[st]=function(){return new N(this._s)},N.prototype[st]=function(){return this},N.prototype.next=function(){return this._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:at},O.prototype[st]=function(){return new D(this._a)},D.prototype[st]=function(){return this},D.prototype.next=function(){return this._i<this._l?{done:!1,value:this._a[this._i++]}:at};var Hn=Sn.from=function(e,t,n,r){if(null==e)throw new Error("iterable cannot be null.");if(t&&!He(t))throw new Error("mapFn when provided must be a function");if(t)var o=pt(t,n,2);return nn(r)||(r=un),new qn(e,o,r)},Gn=function(e){function t(t,n){this.args=t,this.scheduler=n,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new R(e,this);return t.run()},t}(Nn);R.prototype.run=function(){function e(e,o){r>e?(t.onNext(n[e]),o(e+1)):t.onCompleted()}var t=this.observer,n=this.parent.args,r=n.length;return this.parent.scheduler.scheduleRecursiveWithState(0,e)};var Yn=Sn.fromArray=function(e,t){return nn(t)||(t=un),new Gn(e,t)};Sn.generate=function(e,t,n,r,o){return nn(o)||(o=un),new $r(function(i){var s=!0;return o.scheduleRecursiveWithState(e,function(e,o){var a,u;try{s?s=!1:e=n(e),a=t(e),a&&(u=r(e))}catch(c){return i.onError(c)}a?(i.onNext(u),o(e)):i.onCompleted()})})},Sn.of=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return new Gn(t,un)},Sn.ofWithScheduler=function(e){for(var t=arguments.length,n=new Array(t-1),r=1;t>r;r++)n[r-1]=arguments[r];return new Gn(n,e)},Sn.ofArrayChanges=function(e){if(!Array.isArray(e))throw new TypeError("Array.observe only accepts arrays.");if("function"!=typeof Array.observe&&"function"!=typeof Array.unobserve)throw new TypeError("Array.observe is not supported on your platform");return new $r(function(t){function n(e){for(var n=0,r=e.length;r>n;n++)t.onNext(e[n])}return Array.observe(e,n),function(){Array.unobserve(e,n)}})},Sn.ofObjectChanges=function(e){if(null==e)throw new TypeError("object must not be null or undefined.");if("function"!=typeof Object.observe&&"function"!=typeof Object.unobserve)throw new TypeError("Object.observe is not supported on your platform");return new $r(function(t){function n(e){for(var n=0,r=e.length;r>n;n++)t.onNext(e[n])}return Object.observe(e,n),function(){Object.unobserve(e,n)}})};var Qn=function(e){function t(){e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){return Gt},t}(Nn),Xn=new Qn,$n=Sn.never=function(){return Xn},Jn=function(e){function t(t,n){this.obj=t,this.keys=Object.keys(t),this.scheduler=n,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new j(e,this);return t.run()},t}(Nn);j.prototype.run=function(){function e(e,i){if(o>e){var s=r[e];t.onNext([s,n[s]]),i(e+1)}else t.onCompleted()}var t=this.observer,n=this.parent.obj,r=this.parent.keys,o=r.length;return this.parent.scheduler.scheduleRecursiveWithState(0,e)},Sn.pairs=function(e,t){return t||(t=un),new Jn(e,t)};var Zn=function(e){function t(t,n,r){this.start=t,this.rangeCount=n,this.scheduler=r,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new er(e,this);return t.run()},t}(Nn),er=function(){function e(e,t){this.observer=e,this.parent=t}return e.prototype.run=function(){function e(e,o){n>e?(r.onNext(t+e),o(e+1)):r.onCompleted()}var t=this.parent.start,n=this.parent.rangeCount,r=this.observer;return this.parent.scheduler.scheduleRecursiveWithState(0,e)},e}();Sn.range=function(e,t,n){return nn(n)||(n=un),new Zn(e,t,n)};var tr=function(e){function t(t,n,r){this.value=t,this.repeatCount=null==n?-1:n,this.scheduler=r,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new L(e,this);return t.run()},t}(Nn);L.prototype.run=function(){function e(e,r){return(-1===e||e>0)&&(t.onNext(n),e>0&&e--),0===e?t.onCompleted():void r(e)}var t=this.observer,n=this.parent.value;return this.parent.scheduler.scheduleRecursiveWithState(this.parent.repeatCount,e)},Sn.repeat=function(e,t,n){return nn(n)||(n=un),new tr(e,t,n)};var nr=function(e){function t(t,n){this.value=t,this.scheduler=n,e.call(this)}function n(e,t,n){this.observer=e,this.value=t,this.scheduler=n}function r(e,t){var n=t[0],r=t[1];return r.onNext(n),r.onCompleted(),Gt}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this.value,this.scheduler);return t.run()},n.prototype.run=function(){var e=[this.value,this.observer];return this.scheduler===an?r(null,e):this.scheduler.scheduleWithState(e,r)},t}(Nn),rr=(Sn["return"]=Sn.just=function(e,t){return nn(t)||(t=an),new nr(e,t)},function(e){function t(t,n){this.error=t,this.scheduler=n,e.call(this)}function n(e,t){this.o=e,this.p=t}function r(e,t){var n=t[0],r=t[1];r.onError(n)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this);return t.run()},n.prototype.run=function(){return this.p.scheduler.scheduleWithState([this.p.error,this.o],r)},t}(Nn)),or=Sn["throw"]=function(e,t){return nn(t)||(t=an),new rr(e,t)};Sn.using=function(e,t){return new $r(function(n){var r=Gt,o=c(e)();if(o===Ge)return new qt(or(o.e).subscribe(n),r);o&&(r=o);var i=c(t)(o);return i===Ge?new qt(or(i.e).subscribe(n),r):new qt(i.subscribe(n),r)})},wn.amb=function(e){var t=this;return new $r(function(n){function r(){i||(i=s,c.dispose())}function o(){i||(i=a,u.dispose())}var i,s="L",a="R",u=new Xt,c=new Xt;Ke(e)&&(e=Ln(e));var l=bn(function(e){r(),i===s&&n.onNext(e)},function(e){r(),i===s&&n.onError(e)},function(){r(),i===s&&n.onCompleted()}),p=bn(function(e){o(),i===a&&n.onNext(e)},function(e){o(),i===a&&n.onError(e)},function(){o(),i===a&&n.onCompleted()});return u.setDisposable(t.subscribe(l)),c.setDisposable(e.subscribe(p)),new qt(u,c)})},Sn.amb=function(){var e,t=$n();if(Array.isArray(arguments[0]))e=arguments[0];else{var n=arguments.length;e=new Array(e);for(var r=0;n>r;r++)e[r]=arguments[r]}for(var r=0,n=e.length;n>r;r++)t=F(t,e[r]);return t};var ir=function(e){function t(t,n,r){this._o=t,this._s=n,this._fn=r,e.call(this)}return Ft(t,e),t.prototype.next=function(e){this._o.onNext(e)},t.prototype.completed=function(){return this._o.onCompleted()},t.prototype.error=function(e){var t=c(this._fn)(e);if(t===Ge)return this._o.onError(t.e);Ke(t)&&(t=Ln(t));var n=new Xt;this._s.setDisposable(n),n.setDisposable(t.subscribe(this._o))},t}(En);wn["catch"]=function(e){return He(e)?U(this,e):sr([this,e])};var sr=Sn["catch"]=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{var t=arguments.length;e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return In(e).catchError()};wn.combineLatest=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return Array.isArray(t[0])?t[0].unshift(this):t.unshift(this),ar.apply(this,t)};var ar=Sn.combineLatest=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=He(t[e-1])?t.pop():V;return Array.isArray(t[0])&&(t=t[0]),new $r(function(e){function n(t){if(s[t]=!0,a||(a=s.every(We))){try{var n=r.apply(null,c)}catch(o){return e.onError(o)}e.onNext(n)}else u.filter(function(e,n){return n!==t}).every(We)&&e.onCompleted()}function o(t){u[t]=!0,u.every(We)&&e.onCompleted()}for(var i=t.length,s=T(i,W),a=!1,u=T(i,W),c=new Array(i),l=new Array(i),p=0;i>p;p++)!function(r){var i=t[r],s=new Xt;Ke(i)&&(i=Ln(i)),s.setDisposable(i.subscribe(function(e){c[r]=e,n(r)},function(t){e.onError(t)},function(){o(r)})),l[r]=s}(p);return new qt(l)},this)};wn.concat=function(){for(var e=[],t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return e.unshift(this),cr.apply(null,e)};var ur=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t){this.sources=e,this.o=t}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new n(this.sources,e);return t.run()},n.prototype.run=function(){var e,t=new $t,n=this.sources,r=n.length,o=this.o,i=an.scheduleRecursiveWithState(0,function(i,s){if(!e){if(i===r)return o.onCompleted();var a=n[i];Ke(a)&&(a=Ln(a));var u=new Xt;t.setDisposable(u),u.setDisposable(a.subscribe(function(e){o.onNext(e)},function(e){o.onError(e)},function(){s(i+1)}))}});return new qt(t,i,Ht(function(){e=!0}))},t}(Nn),cr=Sn.concat=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{e=new Array(arguments.length);for(var t=0,n=arguments.length;n>t;t++)e[t]=arguments[t]}return new ur(e)};wn.concatAll=function(){return this.merge(1)};var lr=function(e){function t(t,n){this.source=t,this.maxConcurrent=n,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new qt;return t.add(this.source.subscribe(new pr(e,this.maxConcurrent,t))),t},t}(Nn),pr=function(){function e(e,t,n){this.o=e,this.max=t,this.g=n,this.done=!1,this.q=[],this.activeCount=0,this.isStopped=!1}function t(e,t){this.parent=e,this.sad=t,this.isStopped=!1}return e.prototype.handleSubscribe=function(e){var n=new Xt;this.g.add(n),Ke(e)&&(e=Ln(e)),n.setDisposable(e.subscribe(new t(this,n)))},e.prototype.onNext=function(e){this.isStopped||(this.activeCount<this.max?(this.activeCount++,this.handleSubscribe(e)):this.q.push(e))},e.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},e.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.done=!0,0===this.activeCount&&this.o.onCompleted())},e.prototype.dispose=function(){this.isStopped=!0},e.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t.prototype.onNext=function(e){this.isStopped||this.parent.o.onNext(e)},t.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.o.onError(e))},t.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var e=this.parent;e.g.remove(this.sad),e.q.length>0?e.handleSubscribe(e.q.shift()):(e.activeCount--,e.done&&0===e.activeCount&&e.o.onCompleted())}},t.prototype.dispose=function(){this.isStopped=!0},t.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(e),!0)},e}();wn.merge=function(e){return"number"!=typeof e?hr(this,e):new lr(this,e)};var hr=Sn.merge=function(){var e,t,n=[],r=arguments.length;if(arguments[0])if(nn(arguments[0]))for(e=arguments[0],t=1;r>t;t++)n.push(arguments[t]);else for(e=an,t=0;r>t;t++)n.push(arguments[t]);else for(e=an,t=1;r>t;t++)n.push(arguments[t]);return Array.isArray(n[0])&&(n=n[0]),I(e,n).mergeAll()},dr=function(e){function t(t){this.source=t,e.call(this)}function n(e,t){this.o=e,this.g=t,this.isStopped=!1,this.done=!1}function r(e,t){this.parent=e,this.sad=t,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new qt,r=new Xt;return t.add(r),r.setDisposable(this.source.subscribe(new n(e,t))),t},n.prototype.onNext=function(e){if(!this.isStopped){var t=new Xt;this.g.add(t),Ke(e)&&(e=Ln(e)),t.setDisposable(e.subscribe(new r(this,t)))}},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.done=!0,1===this.g.length&&this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},r.prototype.onNext=function(e){this.isStopped||this.parent.o.onNext(e)},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.o.onError(e))},r.prototype.onCompleted=function(){if(!this.isStopped){var e=this.parent;this.isStopped=!0,e.g.remove(this.sad),e.done&&1===e.g.length&&e.o.onCompleted()}},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(e),!0)},t}(Nn);wn.mergeAll=function(){return new dr(this)};var fr=Fe.CompositeError=function(e){this.name="NotImplementedError",this.innerErrors=e,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)};fr.prototype=Error.prototype,Sn.mergeDelayError=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{var t=arguments.length;e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}var r=I(null,e);return new $r(function(e){function t(){0===s.length?e.onCompleted():1===s.length?e.onError(s[0]):e.onError(new fr(s))}var n=new qt,o=new Xt,i=!1,s=[];return n.add(o),o.setDisposable(r.subscribe(function(r){var o=new Xt;n.add(o),Ke(r)&&(r=Ln(r)),o.setDisposable(r.subscribe(function(t){e.onNext(t)},function(e){s.push(e),n.remove(o),i&&1===n.length&&t()},function(){n.remove(o),i&&1===n.length&&t()}))},function(e){s.push(e),i=!0,1===n.length&&t()},function(){i=!0,1===n.length&&t()})),n})},wn.onErrorResumeNext=function(e){if(!e)throw new Error("Second observable is required");return mr([this,e])};var mr=Sn.onErrorResumeNext=function(){var e=[];if(Array.isArray(arguments[0]))e=arguments[0];else for(var t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return new $r(function(t){var n=0,r=new $t,o=an.scheduleRecursive(function(o){var i,s;n<e.length?(i=e[n++],Ke(i)&&(i=Ln(i)),s=new Xt,r.setDisposable(s),s.setDisposable(i.subscribe(t.onNext.bind(t),o,o))):t.onCompleted()});return new qt(r,o)})};wn.skipUntil=function(e){var t=this;return new $r(function(n){var r=!1,o=new qt(t.subscribe(function(e){r&&n.onNext(e)},function(e){n.onError(e)},function(){r&&n.onCompleted()}));Ke(e)&&(e=Ln(e));var i=new Xt;return o.add(i),i.setDisposable(e.subscribe(function(){r=!0,i.dispose()},function(e){n.onError(e)},function(){i.dispose()})),o},t)};var vr=function(e){function t(t){this.source=t,e.call(this)}function n(e,t){this.o=e,this.inner=t,this.stopped=!1,this.latest=0,this.hasLatest=!1,this.isStopped=!1}function r(e,t){this.parent=e,this.id=t,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new $t,r=this.source.subscribe(new n(e,t));return new qt(r,t)},n.prototype.onNext=function(e){if(!this.isStopped){var t=new Xt,n=++this.latest;this.hasLatest=!0,this.inner.setDisposable(t),Ke(e)&&(e=Ln(e)),t.setDisposable(e.subscribe(new r(this,n)))}},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.stopped=!0,!this.hasLatest&&this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},r.prototype.onNext=function(e){this.isStopped||this.parent.latest===this.id&&this.parent.o.onNext(e)},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.latest===this.id&&this.parent.o.onError(e))},r.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.parent.latest===this.id&&(this.parent.hasLatest=!1,this.parent.isStopped&&this.parent.o.onCompleted()))},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(e),!0)},t}(Nn);wn["switch"]=wn.switchLatest=function(){return new vr(this)};var yr=function(e){function t(t,n){this.source=t,this.other=Ke(n)?Ln(n):n,e.call(this)}function n(e){this.o=e,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return new qt(this.source.subscribe(e),this.other.subscribe(new n(e)))},n.prototype.onNext=function(e){this.isStopped||this.o.onCompleted()},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){!this.isStopped&&(this.isStopped=!0)},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn.takeUntil=function(e){return new yr(this,e)},wn.withLatestFrom=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t.pop(),o=this;return Array.isArray(t[0])&&(t=t[0]),new $r(function(e){for(var n=t.length,i=T(n,W),s=!1,a=new Array(n),u=new Array(n+1),l=0;n>l;l++)!function(n){var r=t[n],o=new Xt;Ke(r)&&(r=Ln(r)),o.setDisposable(r.subscribe(function(e){a[n]=e,i[n]=!0,s=i.every(We)},function(t){e.onError(t)},Ue)),u[n]=o}(l);var p=new Xt;return p.setDisposable(o.subscribe(function(t){var n=[t].concat(a);if(s){var o=c(r).apply(null,n);return o===Ge?e.onError(o.e):void e.onNext(o)}},function(t){e.onError(t)},function(){e.onCompleted()})),u[n]=p,new qt(u)},this)},wn.zip=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=He(t[e-1])?t.pop():V;Array.isArray(t[0])&&(t=t[0]);var o=this;return t.unshift(o),new $r(function(e){for(var n=t.length,i=T(n,B),s=T(n,W),a=new Array(n),u=0;n>u;u++)!function(n){var u=t[n],l=new Xt;Ke(u)&&(u=Ln(u)),l.setDisposable(u.subscribe(function(t){if(i[n].push(t),i.every(function(e){return e.length>0})){var a=i.map(function(e){return e.shift()}),u=c(r).apply(o,a);if(u===Ge)return e.onError(u.e);e.onNext(u)}else s.filter(function(e,t){return t!==n}).every(We)&&e.onCompleted()},function(t){e.onError(t)},function(){s[n]=!0,s.every(We)&&e.onCompleted()})),a[n]=l}(u);return new qt(a)},o)},Sn.zip=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];Array.isArray(t[0])&&(t=He(t[1])?t[0].concat(t[1]):t[0]);var r=t.shift();return r.zip.apply(r,t)},wn.zipIterable=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=He(t[e-1])?t.pop():V,o=this;return t.unshift(o),new $r(function(e){for(var n=t.length,i=T(n,B),s=T(n,W),a=new Array(n),u=0;n>u;u++)!function(n){var u=t[n],l=new Xt;(ct(u)||ut(u))&&(u=Hn(u)),l.setDisposable(u.subscribe(function(t){if(i[n].push(t),i.every(function(e){return e.length>0})){var a=i.map(function(e){return e.shift()}),u=c(r).apply(o,a);if(u===Ge)return e.onError(u.e);e.onNext(u)}else s.filter(function(e,t){return t!==n}).every(We)&&e.onCompleted()},function(t){e.onError(t)},function(){s[n]=!0,s.every(We)&&e.onCompleted()})),a[n]=l}(u);return new qt(a)},o)},wn.asObservable=function(){return new $r(q(this),this)},wn.bufferWithCount=function(e,t){return"number"!=typeof t&&(t=e),this.windowWithCount(e,t).flatMap(z).filter(K)},wn.dematerialize=function(){var e=this;return new $r(function(t){return e.subscribe(function(e){return e.accept(t)},function(e){t.onError(e)},function(){t.onCompleted()})},this)};var gr=function(e){function t(t,n,r){this.source=t,this.keyFn=n,this.comparer=r,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new br(e,this.keyFn,this.comparer))},t}(Nn),br=function(e){function t(t,n,r){this.o=t,this.keyFn=n,this.comparer=r,this.hasCurrentKey=!1,this.currentKey=null,e.call(this)}return Ft(t,e),t.prototype.next=function(e){var t,n=e;return He(this.keyFn)&&(n=c(this.keyFn)(e),n===Ge)?this.o.onError(n.e):this.hasCurrentKey&&(t=c(this.comparer)(this.currentKey,n),t===Ge)?this.o.onError(t.e):void(this.hasCurrentKey&&t||(this.hasCurrentKey=!0,this.currentKey=n,this.o.onNext(e)))},t.prototype.error=function(e){this.o.onError(e)},t.prototype.completed=function(){this.o.onCompleted()},t}(En);wn.distinctUntilChanged=function(e,t){return t||(t=Be),new gr(this,e,t)};var wr=function(e){function t(t,n,r,o){this.source=t,this._oN=n,this._oE=r,this._oC=o,e.call(this)}function n(e,t){this.o=e,this.t=!t._oN||He(t._oN)?bn(t._oN||Ue,t._oE||Ue,t._oC||Ue):t._oN,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this))},n.prototype.onNext=function(e){if(!this.isStopped){var t=c(this.t.onNext).call(this.t,e);t===Ge&&this.o.onError(t.e),this.o.onNext(e)}},n.prototype.onError=function(e){if(!this.isStopped){this.isStopped=!0;var t=c(this.t.onError).call(this.t,e);if(t===Ge)return this.o.onError(t.e);this.o.onError(e)}},n.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var e=c(this.t.onCompleted).call(this.t);if(e===Ge)return this.o.onError(e.e);this.o.onCompleted()}},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn["do"]=wn.tap=wn.doAction=function(e,t,n){return new wr(this,e,t,n)},wn.doOnNext=wn.tapOnNext=function(e,t){return this.tap("undefined"!=typeof t?function(n){e.call(t,n)}:e)},wn.doOnError=wn.tapOnError=function(e,t){return this.tap(Ue,"undefined"!=typeof t?function(n){e.call(t,n)}:e)},wn.doOnCompleted=wn.tapOnCompleted=function(e,t){return this.tap(Ue,null,"undefined"!=typeof t?function(){e.call(t)}:e)},wn["finally"]=function(e){var t=this;return new $r(function(n){var r=c(t.subscribe).call(t,n);return r===Ge?(e(),l(r.e)):Ht(function(){var t=c(r.dispose).call(r);e(),t===Ge&&l(t.e)})},this)};var Er=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},n.prototype.onNext=Ue,n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.observer.onError(e),!0)},t}(Nn);wn.ignoreElements=function(){return new Er(this)},wn.materialize=function(){var e=this;return new $r(function(t){return e.subscribe(function(e){t.onNext(mn(e))},function(e){t.onNext(vn(e)),t.onCompleted()},function(){t.onNext(yn()),t.onCompleted()})},e)},wn.repeat=function(e){return An(this,e).concat()},wn.retry=function(e){return An(this,e).catchError()},wn.retryWhen=function(e){return An(this).catchErrorWhen(e)};var Tr=function(e){function t(t,n,r,o){this.source=t,this.accumulator=n,this.hasSeed=r,this.seed=o,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new H(e,this))},t}(Nn);H.prototype={onNext:function(e){return this.isStopped?void 0:(!this.hasValue&&(this.hasValue=!0),this.hasAccumulation?this.accumulation=c(this.accumulator)(this.accumulation,e):(this.accumulation=this.hasSeed?c(this.accumulator)(this.seed,e):e,this.hasAccumulation=!0),this.accumulation===Ge?this.o.onError(this.accumulation.e):void this.o.onNext(this.accumulation))},onError:function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},onCompleted:function(){this.isStopped||(this.isStopped=!0,!this.hasValue&&this.hasSeed&&this.o.onNext(this.seed),this.o.onCompleted())},dispose:function(){this.isStopped=!0},fail:function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)}},wn.scan=function(){var e,t=!1,n=arguments[0];return 2===arguments.length&&(t=!0,e=arguments[1]),new Tr(this,n,t,e)},wn.skipLast=function(e){if(0>e)throw new tt;var t=this;return new $r(function(n){var r=[];return t.subscribe(function(t){r.push(t),r.length>e&&n.onNext(r.shift())},function(e){n.onError(e)},function(){n.onCompleted()})},t)},wn.startWith=function(){var e,t=0;arguments.length&&nn(arguments[0])?(e=arguments[0],t=1):e=an;for(var n=[],r=t,o=arguments.length;o>r;r++)n.push(arguments[r]);return In([Yn(n,e),this]).concat()},wn.takeLast=function(e){if(0>e)throw new tt;var t=this;return new $r(function(n){var r=[];return t.subscribe(function(t){r.push(t),r.length>e&&r.shift()},function(e){n.onError(e)},function(){for(;r.length>0;)n.onNext(r.shift());n.onCompleted()})},t)},wn.takeLastBuffer=function(e){var t=this;return new $r(function(n){var r=[];return t.subscribe(function(t){r.push(t),r.length>e&&r.shift()},function(e){n.onError(e)},function(){n.onNext(r),n.onCompleted()})},t)},wn.windowWithCount=function(e,t){var n=this;if(+e||(e=0),Math.abs(e)===1/0&&(e=0),0>=e)throw new tt;if(null==t&&(t=e),+t||(t=0),Math.abs(t)===1/0&&(t=0),0>=t)throw new tt;return new $r(function(r){function o(){var e=new eo;u.push(e),r.onNext(Wt(e,s))}var i=new Xt,s=new Jt(i),a=0,u=[];return o(),i.setDisposable(n.subscribe(function(n){for(var r=0,i=u.length;i>r;r++)u[r].onNext(n);var s=a-e+1;s>=0&&s%t===0&&u.shift().onCompleted(),++a%t===0&&o()},function(e){for(;u.length>0;)u.shift().onError(e);r.onError(e)},function(){for(;u.length>0;)u.shift().onCompleted();r.onCompleted()})),s},n)},wn.selectConcat=wn.concatMap=function(e,t,n){return He(e)&&He(t)?this.concatMap(function(n,r){var o=e(n,r);return Ke(o)&&(o=Ln(o)),(ct(o)||ut(o))&&(o=Hn(o)),o.map(function(e,o){return t(n,e,r,o)})}):He(e)?G(this,e,n):G(this,function(){return e})},wn.concatMapObserver=wn.selectConcatObserver=function(e,t,n,r){var o=this,i=pt(e,r,2),s=pt(t,r,1),a=pt(n,r,0);return new $r(function(e){var t=0;return o.subscribe(function(n){var r;try{r=i(n,t++)}catch(o){return void e.onError(o)}Ke(r)&&(r=Ln(r)),e.onNext(r)},function(t){var n;try{n=s(t)}catch(r){return void e.onError(r)}Ke(n)&&(n=Ln(n)),e.onNext(n),e.onCompleted()},function(){var t;try{t=a()}catch(n){return void e.onError(n)}Ke(t)&&(t=Ln(t)),e.onNext(t),e.onCompleted()})},this).concatAll()},wn.defaultIfEmpty=function(e){var t=this;return e===s&&(e=null),new $r(function(n){var r=!1;return t.subscribe(function(e){r=!0,n.onNext(e)},function(e){n.onError(e)},function(){!r&&n.onNext(e),n.onCompleted()})},t)},Q.prototype.push=function(e){var t=-1===Y(this.set,e,this.comparer);return t&&this.set.push(e),t},wn.distinct=function(e,t){var n=this;return t||(t=Be),new $r(function(r){var o=new Q(t);return n.subscribe(function(t){var n=t;if(e)try{n=e(t)}catch(i){return void r.onError(i)}o.push(n)&&r.onNext(t)},function(e){r.onError(e)},function(){r.onCompleted()})},this)},wn.groupBy=function(e,t){return this.groupByUntil(e,t,$n)},wn.groupByUntil=function(e,t,n){var r=this;return new $r(function(o){var i=new Yr,a=new qt,u=new Jt(a),l=function(e){return function(t){t.onError(e)}};return a.add(r.subscribe(function(r){var p=c(e)(r);if(p===Ge)return i.forEach(l(p.e)),o.onError(p.e);var h=!1,d=i.get(p);if(d===s&&(d=new eo,i.set(p,d),h=!0),h){var f=new Zr(p,d,u),m=new Zr(p,d),v=c(n)(m);if(v===Ge)return i.forEach(l(v.e)),o.onError(v.e);o.onNext(f);var y=new Xt;a.add(y),y.setDisposable(v.take(1).subscribe(Ue,function(e){i.forEach(l(e)),o.onError(e)},function(){i["delete"](p)&&d.onCompleted(),a.remove(y)}))}var g=r;return He(t)&&(g=c(t)(r),g===Ge)?(i.forEach(l(g.e)),o.onError(g.e)):void d.onNext(g)},function(e){i.forEach(l(e)),o.onError(e)},function(){i.forEach(function(e){e.onCompleted()}),o.onCompleted()})),u},r)};var xr=function(e){function t(t,n,r){this.source=t,
+this.selector=pt(n,r,3),e.call(this)}function n(e,t){return function(n,r,o){return e.call(this,t.selector(n,r,o),r,o)}}function r(e,t,n){this.o=e,this.selector=t,this.source=n,this.i=0,this.isStopped=!1}return Ft(t,e),t.prototype.internalMap=function(e,r){return new t(this.source,n(e,this),r)},t.prototype.subscribeCore=function(e){return this.source.subscribe(new r(e,this.selector,this))},r.prototype.onNext=function(e){if(!this.isStopped){var t=c(this.selector)(e,this.i++,this.source);return t===Ge?this.o.onError(t.e):void this.o.onNext(t)}},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},r.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn.map=wn.select=function(e,t){var n="function"==typeof e?e:function(){return e};return this instanceof xr?this.internalMap(n,t):new xr(this,n,t)},wn.pluck=function(){var e=arguments.length,t=new Array(e);if(0===e)throw new Error("List of properties cannot be empty.");for(var n=0;e>n;n++)t[n]=arguments[n];return this.map(X(t,e))},wn.flatMap=wn.selectMany=function(e,t,n){return new On(this,e,t,n).mergeAll()},wn.flatMapObserver=wn.selectManyObserver=function(e,t,n,r){var o=this;return new $r(function(i){var s=0;return o.subscribe(function(t){var n;try{n=e.call(r,t,s++)}catch(o){return void i.onError(o)}Ke(n)&&(n=Ln(n)),i.onNext(n)},function(e){var n;try{n=t.call(r,e)}catch(o){return void i.onError(o)}Ke(n)&&(n=Ln(n)),i.onNext(n),i.onCompleted()},function(){var e;try{e=n.call(r)}catch(t){return void i.onError(t)}Ke(e)&&(e=Ln(e)),i.onNext(e),i.onCompleted()})},o).mergeAll()},Fe.Observable.prototype.flatMapLatest=function(e,t,n){return new On(this,e,t,n).switchLatest()};var Cr=function(e){function t(t,n){this.source=t,this.skipCount=n,e.call(this)}function n(e,t){this.c=t,this.r=t,this.o=e,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this.skipCount))},n.prototype.onNext=function(e){this.isStopped||(this.r<=0?this.o.onNext(e):this.r--)},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn.skip=function(e){if(0>e)throw new tt;return new Cr(this,e)},wn.skipWhile=function(e,t){var n=this,r=pt(e,t,3);return new $r(function(e){var t=0,o=!1;return n.subscribe(function(i){if(!o)try{o=!r(i,t++,n)}catch(s){return void e.onError(s)}o&&e.onNext(i)},function(t){e.onError(t)},function(){e.onCompleted()})},n)},wn.take=function(e,t){if(0>e)throw new tt;if(0===e)return Bn(t);var n=this;return new $r(function(t){var r=e;return n.subscribe(function(e){r-->0&&(t.onNext(e),0>=r&&t.onCompleted())},function(e){t.onError(e)},function(){t.onCompleted()})},n)},wn.takeWhile=function(e,t){var n=this,r=pt(e,t,3);return new $r(function(e){var t=0,o=!0;return n.subscribe(function(i){if(o){try{o=r(i,t++,n)}catch(s){return void e.onError(s)}o?e.onNext(i):e.onCompleted()}},function(t){e.onError(t)},function(){e.onCompleted()})},n)};var _r=function(e){function t(t,n,r){this.source=t,this.predicate=pt(n,r,3),e.call(this)}function n(e,t){return function(n,r,o){return t.predicate(n,r,o)&&e.call(this,n,r,o)}}function r(e,t,n){this.o=e,this.predicate=t,this.source=n,this.i=0,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new r(e,this.predicate,this))},t.prototype.internalFilter=function(e,r){return new t(this.source,n(e,this),r)},r.prototype.onNext=function(e){if(!this.isStopped){var t=c(this.predicate)(e,this.i++,this.source);return t===Ge?this.o.onError(t.e):void(t&&this.o.onNext(e))}},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},r.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn.filter=wn.where=function(e,t){return this instanceof _r?this.internalFilter(e,t):new _r(this,e,t)};var Sr=function(e){function t(t,n,r,o){this.source=t,this.acc=n,this.hasSeed=r,this.seed=o,e.call(this)}function n(e,t){this.o=e,this.acc=t.acc,this.hasSeed=t.hasSeed,this.seed=t.seed,this.hasAccumulation=!1,this.result=null,this.hasValue=!1,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this))},n.prototype.onNext=function(e){this.isStopped||(!this.hasValue&&(this.hasValue=!0),this.hasAccumulation?this.result=c(this.acc)(this.result,e):(this.result=this.hasSeed?c(this.acc)(this.seed,e):e,this.hasAccumulation=!0),this.result===Ge&&this.o.onError(this.result.e))},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.hasValue&&this.o.onNext(this.result),!this.hasValue&&this.hasSeed&&this.o.onNext(this.seed),!this.hasValue&&!this.hasSeed&&this.o.onError(new Ze),this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn.reduce=function(e){var t=!1;if(2===arguments.length){t=!0;var n=arguments[1]}return new Sr(this,e,t,n)};var Nr=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return Ft(t,e),t.prototype.next=function(e){var t=c(this._fn)(e,this._i++,this._s);return t===Ge?this._o.onError(t.e):void(Boolean(t)&&(this._o.onNext(!0),this._o.onCompleted()))},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!1),this._o.onCompleted()},t}(En);wn.some=function(e,t){var n=this,r=pt(e,t,3);return new $r(function(e){return n.subscribe(new Nr(e,r,n))})};var Or=function(e){function t(t){this._o=t,e.call(this)}return Ft(t,e),t.prototype.next=function(){this._o.onNext(!1),this._o.onCompleted()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!0),this._o.onCompleted()},t}(En);wn.isEmpty=function(){var e=this;return new $r(function(t){return e.subscribe(new Or(t))},e)};var Dr=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return Ft(t,e),t.prototype.next=function(e){var t=c(this._fn)(e,this._i++,this._s);return t===Ge?this._o.onError(t.e):void(Boolean(t)||(this._o.onNext(!1),this._o.onCompleted()))},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!0),this._o.onCompleted()},t}(En);wn.every=function(e,t){var n=this,r=pt(e,t,3);return new $r(function(e){return n.subscribe(new Dr(e,r,n))},this)},wn.includes=function(e,t){function n(e,t){return 0===e&&0===t||e===t||isNaN(e)&&isNaN(t)}var r=this;return new $r(function(o){var i=0,s=+t||0;return Math.abs(s)===1/0&&(s=0),0>s?(o.onNext(!1),o.onCompleted(),Gt):r.subscribe(function(t){i++>=s&&n(t,e)&&(o.onNext(!0),o.onCompleted())},function(e){o.onError(e)},function(){o.onNext(!1),o.onCompleted()})},this)},wn.contains=function(e,t){wn.includes(e,t)},wn.count=function(e,t){return e?this.filter(e,t).count():this.reduce(function(e){return e+1},0)},wn.indexOf=function(e,t){var n=this;return new $r(function(r){var o=0,i=+t||0;return Math.abs(i)===1/0&&(i=0),0>i?(r.onNext(-1),r.onCompleted(),Gt):n.subscribe(function(t){o>=i&&t===e&&(r.onNext(o),r.onCompleted()),o++},function(e){r.onError(e)},function(){r.onNext(-1),r.onCompleted()})},n)},wn.sum=function(e,t){return e&&He(e)?this.map(e,t).sum():this.reduce(function(e,t){return e+t},0)},wn.minBy=function(e,t){return t||(t=qe),$(this,e,function(e,n){return-1*t(e,n)})},wn.min=function(e){return this.minBy(We,e).map(function(e){return J(e)})},wn.maxBy=function(e,t){return t||(t=qe),$(this,e,t)},wn.max=function(e){return this.maxBy(We,e).map(function(e){return J(e)})};var Pr=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._c=0,this._t=0,e.call(this)}return Ft(t,e),t.prototype.next=function(e){if(this._fn){var t=c(this._fn)(e,this._c++,this._s);if(t===Ge)return this._o.onError(t.e);this._t+=t}else this._c++,this._t+=e},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){return 0===this._c?this._o.onError(new Ze):(this._o.onNext(this._t/this._c),void this._o.onCompleted())},t}(En);wn.average=function(e,t){var n,r=this;return He(e)&&(n=pt(e,t,3)),new $r(function(e){return r.subscribe(new Pr(e,n,r))},r)},wn.sequenceEqual=function(e,t){var n=this;return t||(t=Be),new $r(function(r){var o=!1,i=!1,s=[],a=[],u=n.subscribe(function(e){var n,o;if(a.length>0){o=a.shift();try{n=t(o,e)}catch(u){return void r.onError(u)}n||(r.onNext(!1),r.onCompleted())}else i?(r.onNext(!1),r.onCompleted()):s.push(e)},function(e){r.onError(e)},function(){o=!0,0===s.length&&(a.length>0?(r.onNext(!1),r.onCompleted()):i&&(r.onNext(!0),r.onCompleted()))});(ct(e)||ut(e))&&(e=Hn(e)),Ke(e)&&(e=Ln(e));var c=e.subscribe(function(e){var n;if(s.length>0){var i=s.shift();try{n=t(i,e)}catch(u){return void r.onError(u)}n||(r.onNext(!1),r.onCompleted())}else o?(r.onNext(!1),r.onCompleted()):a.push(e)},function(e){r.onError(e)},function(){i=!0,0===a.length&&(s.length>0?(r.onNext(!1),r.onCompleted()):o&&(r.onNext(!0),r.onCompleted()))});return new qt(u,c)},n)},wn.elementAt=function(e,t){if(0>e)throw new tt;var n=this;return new $r(function(r){var o=e;return n.subscribe(function(e){0===o--&&(r.onNext(e),r.onCompleted())},function(e){r.onError(e)},function(){t===s?r.onError(new tt):(r.onNext(t),r.onCompleted())})},n)},wn.single=function(e,t){if(He(e))return this.filter(e,t).single();var n=this;return new $r(function(e){var t,r=!1;return n.subscribe(function(n){r?e.onError(new Error("Sequence contains more than one element")):(t=n,r=!0)},function(t){e.onError(t)},function(){e.onNext(t),e.onCompleted()})},n)};var kr=function(e){function t(t,n,r){this._o=t,this._obj=n,this._s=r,this._i=0,e.call(this)}return Ft(t,e),t.prototype.next=function(e){if(this._obj.predicate){var t=c(this._obj.predicate)(e,this._i++,this._s);if(t===Ge)return this._o.onError(t.e);Boolean(t)&&(this._o.onNext(e),this._o.onCompleted())}else this._obj.predicate||(this._o.onNext(e),this._o.onCompleted())},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._obj.defaultValue===s?this._o.onError(new Ze):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())},t}(En);wn.first=function(){var e={},t=this;if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},He(e.predicate)){var n=e.predicate;e.predicate=pt(n,e.thisArg,3)}return new $r(function(n){return t.subscribe(new kr(n,e,t))},t)},wn.last=function(){var e={},t=this;if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},He(e.predicate)){var n=e.predicate;e.predicate=pt(n,e.thisArg,3)}return new $r(function(n){var r,o=!1,i=0;return t.subscribe(function(s){if(e.predicate){var a=c(e.predicate)(s,i++,t);if(a===Ge)return n.onError(a.e);a&&(o=!0,r=s)}else e.predicate||(o=!0,r=s)},function(e){n.onError(e)},function(){o?(n.onNext(r),n.onCompleted()):e.defaultValue===s?n.onError(new Ze):(n.onNext(e.defaultValue),n.onCompleted())})},t)},wn.find=function(e,t){return Z(this,e,t,!1)},wn.findIndex=function(e,t){return Z(this,e,t,!0)},wn.toSet=function(){if("undefined"==typeof Le.Set)throw new TypeError;var e=this;return new $r(function(t){var n=new Le.Set;return e.subscribe(function(e){n.add(e)},function(e){t.onError(e)},function(){t.onNext(n),t.onCompleted()})},e)},wn.toMap=function(e,t){if("undefined"==typeof Le.Map)throw new TypeError;var n=this;return new $r(function(r){var o=new Le.Map;return n.subscribe(function(n){var i;try{i=e(n)}catch(s){return void r.onError(s)}var a=n;if(t)try{a=t(n)}catch(s){return void r.onError(s)}o.set(i,a)},function(e){r.onError(e)},function(){r.onNext(o),r.onCompleted()})},n)},Sn.wrap=function(e){function t(){return Sn.spawn.call(this,e.apply(this,arguments))}return t.__generatorFunction__=e,t};var Mr=Sn.spawn=function(){for(var e=arguments[0],t=this,n=[],r=1,o=arguments.length;o>r;r++)n.push(arguments[r]);return new $r(function(r){function o(t){var n=c(e.next).call(e,t);return n===Ge?r.onError(n.e):void s(n)}function i(t){var n=c(e.next).call(e,t);return n===Ge?r.onError(n.e):void s(n)}function s(e){if(e.done)return r.onNext(e.value),void r.onCompleted();var n=ee.call(t,e.value);Sn.isObservable(n)?a.add(n.subscribe(o,i)):i(new TypeError("type not supported"))}var a=new qt;return He(e)&&(e=e.apply(t,n)),e&&He(e.next)?(o(),a):(r.onNext(e),r.onCompleted())})};Sn.start=function(e,t,n){return Ar(e,t,n)()};var Ar=Sn.toAsync=function(e,t,n){return nn(n)||(n=hn),function(){var r=arguments,o=new to;return n.schedule(function(){var n;try{n=e.apply(t,r)}catch(i){return void o.onError(i)}o.onNext(n),o.onCompleted()}),o.asObservable()}};Sn.fromCallback=function(e,t,n){return function(){"undefined"==typeof t&&(t=this);for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];return se(e,t,n,o)}},Sn.fromNodeCallback=function(e,t,n){return function(){"undefined"==typeof t&&(t=this);for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];return ue(e,t,n,o)}},le.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)},Fe.config.useNativeEvents=!1,Sn.fromEvent=function(e,t,n){return e.addListener?Rr(function(n){e.addListener(t,n)},function(n){e.removeListener(t,n)},n):Fe.config.useNativeEvents||"function"!=typeof e.on||"function"!=typeof e.off?new $r(function(r){return pe(e,t,he(r,n))}).publish().refCount():Rr(function(n){e.on(t,n)},function(n){e.off(t,n)},n)};var Rr=Sn.fromEventPattern=function(e,t,n,r){return nn(r)||(r=an),new $r(function(r){function o(){var e=arguments[0];return He(n)&&(e=c(n).apply(null,arguments),e===Ge)?r.onError(e.e):void r.onNext(e)}var i=e(o);return Ht(function(){He(t)&&t(o,i)})}).publish().refCount()};Sn.startAsync=function(e){var t;try{t=e()}catch(n){return or(n)}return Ln(t)};var Ir=function(e){function t(e){var t=this.source.publish(),n=t.subscribe(e),r=Gt,o=this.pauser.distinctUntilChanged().subscribe(function(e){e?r=t.connect():(r.dispose(),r=Gt)});return new qt(n,r,o)}function n(n,r){this.source=n,this.controller=new eo,r&&r.subscribe?this.pauser=this.controller.merge(r):this.pauser=this.controller,e.call(this,t,n)}return Ft(n,e),n.prototype.pause=function(){this.controller.onNext(!1)},n.prototype.resume=function(){this.controller.onNext(!0)},n}(Sn);wn.pausable=function(e){return new Ir(this,e)};var jr=function(e){function t(e){function t(){for(;r.length>0;)e.onNext(r.shift())}var n,r=[],o=de(this.source,this.pauser.startWith(!1).distinctUntilChanged(),function(e,t){return{data:e,shouldFire:t}}).subscribe(function(o){n!==s&&o.shouldFire!=n?(n=o.shouldFire,o.shouldFire&&t()):(n=o.shouldFire,o.shouldFire?e.onNext(o.data):r.push(o.data))},function(n){t(),e.onError(n)},function(){t(),e.onCompleted()});return o}function n(n,r){this.source=n,this.controller=new eo,r&&r.subscribe?this.pauser=this.controller.merge(r):this.pauser=this.controller,e.call(this,t,n)}return Ft(n,e),n.prototype.pause=function(){this.controller.onNext(!1)},n.prototype.resume=function(){this.controller.onNext(!0)},n}(Sn);wn.pausableBuffered=function(e){return new jr(this,e)};var Lr=function(e){function t(e){return this.source.subscribe(e)}function n(n,r,o){e.call(this,t,n),this.subject=new Fr(r,o),this.source=n.multicast(this.subject).refCount()}return Ft(n,e),n.prototype.request=function(e){return this.subject.request(null==e?-1:e)},n}(Sn),Fr=function(e){function t(e){return this.subject.subscribe(e)}function n(n,r){null==n&&(n=!0),e.call(this,t),this.subject=new eo,this.enableQueue=n,this.queue=n?[]:null,this.requestedCount=0,this.requestedDisposable=null,this.error=null,this.hasFailed=!1,this.hasCompleted=!1,this.scheduler=r||un}return Ft(n,e),Ut(n.prototype,gn,{onCompleted:function(){this.hasCompleted=!0,this.enableQueue&&0!==this.queue.length?this.queue.push(fn.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(e){this.hasFailed=!0,this.error=e,this.enableQueue&&0!==this.queue.length?this.queue.push(fn.createOnError(e)):(this.subject.onError(e),this.disposeCurrentRequest())},onNext:function(e){this.requestedCount<=0?this.enableQueue&&this.queue.push(fn.createOnNext(e)):(0===this.requestedCount--&&this.disposeCurrentRequest(),this.subject.onNext(e))},_processRequest:function(e){if(this.enableQueue)for(;this.queue.length>0&&(e>0||"N"!==this.queue[0].kind);){var t=this.queue.shift();t.accept(this.subject),"N"===t.kind?e--:(this.disposeCurrentRequest(),this.queue=[])}return e},request:function(e){this.disposeCurrentRequest();var t=this;return this.requestedDisposable=this.scheduler.scheduleWithState(e,function(e,n){var r=t._processRequest(n),o=t.hasCompleted||t.hasFailed;return!o&&r>0?(t.requestedCount=r,Ht(function(){t.requestedCount=0})):void 0}),this.requestedDisposable},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}}),n}(Sn);wn.controlled=function(e,t){return e&&nn(e)&&(t=e,e=!0),null==e&&(e=!0),new Lr(this,e,t)};var Ur=function(e){function t(e){this.subscription=this.source.subscribe(new r(e,this,this.subscription));var t=this;return hn.schedule(function(){t.source.request(1)}),this.subscription}function n(n){e.call(this,t,n),this.source=n}Ft(n,e);var r=function(e){function t(t,n,r){e.call(this),this.observer=t,this.observable=n,this.cancel=r}Ft(t,e);var n=t.prototype;return n.completed=function(){this.observer.onCompleted(),this.dispose()},n.error=function(e){this.observer.onError(e),this.dispose()},n.next=function(e){this.observer.onNext(e);var t=this;hn.schedule(function(){t.observable.source.request(1)})},n.dispose=function(){this.observer=null,this.cancel&&(this.cancel.dispose(),this.cancel=null),e.prototype.dispose.call(this)},t}(En);return n}(Sn);Lr.prototype.stopAndWait=function(){return new Ur(this)};var Wr=function(e){function t(e){this.subscription=this.source.subscribe(new r(e,this,this.subscription));var t=this;return hn.schedule(function(){t.source.request(t.windowSize)}),this.subscription}function n(n,r){e.call(this,t,n),this.source=n,this.windowSize=r}Ft(n,e);var r=function(e){function t(e,t,n){this.observer=e,this.observable=t,this.cancel=n,this.received=0}Ft(t,e);var n=t.prototype;return n.completed=function(){this.observer.onCompleted(),this.dispose()},n.error=function(e){this.observer.onError(e),this.dispose()},n.next=function(e){if(this.observer.onNext(e),this.received=++this.received%this.observable.windowSize,0===this.received){var t=this;hn.schedule(function(){t.observable.source.request(t.observable.windowSize)})}},n.dispose=function(){this.observer=null,this.cancel&&(this.cancel.dispose(),this.cancel=null),e.prototype.dispose.call(this)},t}(En);return n}(Sn);Lr.prototype.windowed=function(e){return new Wr(this,e)},wn.pipe=function(e){function t(){n.resume()}var n=this.pausableBuffered();return e.addListener("drain",t),n.subscribe(function(t){!e.write(String(t))&&n.pause()},function(t){e.emit("error",t)},function(){!e._isStdio&&e.end(),e.removeListener("drain",t)}),n.resume(),e},wn.multicast=function(e,t){var n=this;return"function"==typeof e?new $r(function(r){var o=n.multicast(e());return new qt(t(o).subscribe(r),o.connect())},n):new zr(n,e)},wn.publish=function(e){return e&&He(e)?this.multicast(function(){return new eo},e):this.multicast(new eo)},wn.share=function(){return this.publish().refCount()},wn.publishLast=function(e){return e&&He(e)?this.multicast(function(){return new to},e):this.multicast(new to)},wn.publishValue=function(e,t){return 2===arguments.length?this.multicast(function(){return new Br(t)},e):this.multicast(new Br(e))},wn.shareValue=function(e){return this.publishValue(e).refCount()},wn.replay=function(e,t,n,r){return e&&He(e)?this.multicast(function(){return new qr(t,n,r)},e):this.multicast(new qr(t,n,r))},wn.shareReplay=function(e,t,n){return this.replay(null,e,t,n).refCount()};var Vr=function(e,t){this.subject=e,this.observer=t};Vr.prototype.dispose=function(){if(!this.subject.isDisposed&&null!==this.observer){var e=this.subject.observers.indexOf(this.observer);this.subject.observers.splice(e,1),this.observer=null}};var Br=Fe.BehaviorSubject=function(e){function t(e){return Qt(this),this.isStopped?(this.hasError?e.onError(this.error):e.onCompleted(),Gt):(this.observers.push(e),e.onNext(this.value),new Vr(this,e))}function n(n){e.call(this,t),this.value=n,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}return Ft(n,e),Ut(n.prototype,gn,{getValue:function(){if(Qt(this),this.hasError)throw this.error;return this.value},hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(Qt(this),!this.isStopped){this.isStopped=!0;for(var e=0,t=a(this.observers),n=t.length;n>e;e++)t[e].onCompleted();this.observers.length=0}},onError:function(e){if(Qt(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=e;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onError(e);this.observers.length=0}},onNext:function(e){if(Qt(this),!this.isStopped){this.value=e;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onNext(e)}},dispose:function(){this.isDisposed=!0,this.observers=null,this.value=null,this.exception=null}}),n}(Sn),qr=Fe.ReplaySubject=function(e){function t(e,t){return Ht(function(){t.dispose(),!e.isDisposed&&e.observers.splice(e.observers.indexOf(t),1)})}function n(e){var n=new Cn(this.scheduler,e),r=t(this,n);Qt(this),this._trim(this.scheduler.now()),this.observers.push(n);for(var o=0,i=this.q.length;i>o;o++)n.onNext(this.q[o].value);return this.hasError?n.onError(this.error):this.isStopped&&n.onCompleted(),n.ensureActive(),r}function r(t,r,i){this.bufferSize=null==t?o:t,this.windowSize=null==r?o:r,this.scheduler=i||un,this.q=[],this.observers=[],this.isStopped=!1,this.isDisposed=!1,this.hasError=!1,this.error=null,e.call(this,n)}var o=Math.pow(2,53)-1;return Ft(r,e),Ut(r.prototype,gn.prototype,{hasObservers:function(){return this.observers.length>0},_trim:function(e){for(;this.q.length>this.bufferSize;)this.q.shift();for(;this.q.length>0&&e-this.q[0].interval>this.windowSize;)this.q.shift()},onNext:function(e){if(Qt(this),!this.isStopped){var t=this.scheduler.now();this.q.push({interval:t,value:e}),this._trim(t);for(var n=0,r=a(this.observers),o=r.length;o>n;n++){var i=r[n];i.onNext(e),i.ensureActive()}}},onError:function(e){if(Qt(this),!this.isStopped){this.isStopped=!0,this.error=e,this.hasError=!0;var t=this.scheduler.now();this._trim(t);for(var n=0,r=a(this.observers),o=r.length;o>n;n++){var i=r[n];i.onError(e),i.ensureActive()}this.observers.length=0}},onCompleted:function(){if(Qt(this),!this.isStopped){this.isStopped=!0;var e=this.scheduler.now();this._trim(e);for(var t=0,n=a(this.observers),r=n.length;r>t;t++){var o=n[t];o.onCompleted(),o.ensureActive()}this.observers.length=0}},dispose:function(){this.isDisposed=!0,this.observers=null}}),r}(Sn),zr=Fe.ConnectableObservable=function(e){function t(t,n){var r,o=!1,i=t.asObservable();this.connect=function(){return o||(o=!0,r=new qt(i.subscribe(n),Ht(function(){o=!1}))),r},e.call(this,function(e){return n.subscribe(e)})}return Ft(t,e),t.prototype.refCount=function(){var e,t=0,n=this;return new $r(function(r){var o=1===++t,i=n.subscribe(r);return o&&(e=n.connect()),function(){i.dispose(),0===--t&&e.dispose()}})},t}(Sn);wn.singleInstance=function(){function e(){return r||(r=!0,t=n["finally"](function(){r=!1}).publish().refCount()),t}var t,n=this,r=!1;return new $r(function(t){return e().subscribe(t)})},wn.join=function(e,t,n,r){var o=this;return new $r(function(i){var s=new qt,a=!1,u=!1,l=0,p=0,h=new Yr,d=new Yr,f=function(e){i.onError(e)};return s.add(o.subscribe(function(e){var n=l++,o=new Xt;h.set(n,e),s.add(o);var u=c(t)(e);return u===Ge?i.onError(u.e):(o.setDisposable(u.take(1).subscribe(Ue,f,function(){h["delete"](n)&&0===h.size&&a&&i.onCompleted(),s.remove(o)})),void d.forEach(function(t){var n=c(r)(e,t);return n===Ge?i.onError(n.e):void i.onNext(n)}))},f,function(){a=!0,(u||0===h.size)&&i.onCompleted()})),s.add(e.subscribe(function(e){var t=p++,o=new Xt;d.set(t,e),s.add(o);var a=c(n)(e);return a===Ge?i.onError(a.e):(o.setDisposable(a.take(1).subscribe(Ue,f,function(){d["delete"](t)&&0===d.size&&u&&i.onCompleted(),s.remove(o)})),void h.forEach(function(t){var n=c(r)(t,e);return n===Ge?i.onError(n.e):void i.onNext(n)}))},f,function(){u=!0,(a||0===d.size)&&i.onCompleted()})),s},o)},wn.groupJoin=function(e,t,n,r){var o=this;return new $r(function(i){function s(e){}var a=new qt,u=new Jt(a),l=new Yr,p=new Yr,h=0,d=0,s=function(e){return function(t){t.onError(e)}};return a.add(o.subscribe(function(e){var n=new eo,o=h++;l.set(o,n);var d=c(r)(e,Wt(n,u));if(d===Ge)return l.forEach(s(d.e)),i.onError(d.e);i.onNext(d),p.forEach(function(e){n.onNext(e)});var f=new Xt;a.add(f);var m=c(t)(e);return m===Ge?(l.forEach(s(m.e)),i.onError(m.e)):void f.setDisposable(m.take(1).subscribe(Ue,function(e){l.forEach(s(e)),i.onError(e)},function(){l["delete"](o)&&n.onCompleted(),a.remove(f)}))},function(e){l.forEach(s(e)),i.onError(e)},function(){i.onCompleted()})),a.add(e.subscribe(function(e){var t=d++;p.set(t,e);var r=new Xt;a.add(r);var o=c(n)(e);return o===Ge?(l.forEach(s(o.e)),i.onError(o.e)):(r.setDisposable(o.take(1).subscribe(Ue,function(e){l.forEach(s(e)),i.onError(e)},function(){p["delete"](t),a.remove(r)})),void l.forEach(function(t){t.onNext(e)}))},function(e){l.forEach(s(e)),i.onError(e)})),u},o)},wn.buffer=function(){return this.window.apply(this,arguments).flatMap(z)},wn.window=function(e,t){return 1===arguments.length&&"function"!=typeof arguments[0]?me.call(this,e):"function"==typeof e?ve.call(this,e):fe.call(this,e,t)},wn.pairwise=function(){var e=this;return new $r(function(t){var n,r=!1;return e.subscribe(function(e){r?t.onNext([n,e]):r=!0,n=e},t.onError.bind(t),t.onCompleted.bind(t))},e)},wn.partition=function(e,t){return[this.filter(e,t),this.filter(function(n,r,o){return!e.call(t,n,r,o)})]};var Kr=function(e){function t(e,t){this.c=e,this.s=t}return Ft(t,e),t.prototype[st]=function(){var e=this;return{next:function(){return e.c()?{done:!1,value:e.s}:{done:!0,value:void 0}}}},t}(Dn);wn.letBind=wn.let=function(e){return e(this)},Sn["if"]=function(e,t,n){return Un(function(){return n||(n=Bn()),Ke(t)&&(t=Ln(t)),Ke(n)&&(n=Ln(n)),"function"==typeof n.now&&(n=Bn(n)),e()?t:n})},Sn["for"]=Sn.forIn=function(e,t,n){return In(e,t,n).concat()};var Hr=Sn["while"]=Sn.whileDo=function(e,t){return Ke(t)&&(t=Ln(t)),ye(e,t).concat()};wn.doWhile=function(e){return cr([this,Hr(e,this)])},Sn["case"]=function(e,t,n){return Un(function(){Ke(n)&&(n=Ln(n)),n||(n=Bn()),nn(n)&&(n=Bn(n));var r=t[e()];return Ke(r)&&(r=Ln(r)),r||n})},wn.expand=function(e,t){nn(t)||(t=an);var n=this;return new $r(function(r){var o=[],i=new $t,s=new qt(i),a=0,u=!1,c=function(){var n=!1;o.length>0&&(n=!u,u=!0),n&&i.setDisposable(t.scheduleRecursive(function(t){var n;if(!(o.length>0))return void(u=!1);n=o.shift();var i=new Xt;s.add(i),i.setDisposable(n.subscribe(function(t){r.onNext(t);var n=null;try{n=e(t)}catch(i){r.onError(i)}o.push(n),a++,c()},r.onError.bind(r),function(){s.remove(i),a--,0===a&&r.onCompleted()})),t()}))};return o.push(n),a++,c(),s},this)},Sn.forkJoin=function(){var e=[];if(Array.isArray(arguments[0]))e=arguments[0];else for(var t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return new $r(function(t){var n=e.length;if(0===n)return t.onCompleted(),Gt;for(var r=new qt,o=!1,i=new Array(n),s=new Array(n),a=new Array(n),u=0;n>u;u++)!function(u){var c=e[u];Ke(c)&&(c=Ln(c)),r.add(c.subscribe(function(e){o||(i[u]=!0,a[u]=e)},function(e){o=!0,t.onError(e),r.dispose()},function(){if(!o){if(!i[u])return void t.onCompleted();s[u]=!0;for(var e=0;n>e;e++)if(!s[e])return;o=!0,t.onNext(a),t.onCompleted()}}))}(u);return r})},wn.forkJoin=function(e,t){var n=this;return new $r(function(r){var o,i,s=!1,a=!1,u=!1,c=!1,l=new Xt,p=new Xt;return Ke(e)&&(e=Ln(e)),l.setDisposable(n.subscribe(function(e){u=!0,o=e},function(e){p.dispose(),r.onError(e)},function(){if(s=!0,a)if(u)if(c){var e;try{e=t(o,i)}catch(n){return void r.onError(n)}r.onNext(e),r.onCompleted()}else r.onCompleted();else r.onCompleted()})),p.setDisposable(e.subscribe(function(e){c=!0,i=e},function(e){l.dispose(),r.onError(e)},function(){if(a=!0,s)if(u)if(c){var e;try{e=t(o,i)}catch(n){return void r.onError(n)}r.onNext(e),r.onCompleted()}else r.onCompleted();else r.onCompleted()})),new qt(l,p)},n)},wn.manySelect=wn.extend=function(e,t){nn(t)||(t=an);var n=this;return Un(function(){var r;return n.map(function(e){var t=new Gr(e);return r&&r.onNext(e),r=t,t}).tap(Ue,function(e){r&&r.onError(e)},function(){r&&r.onCompleted()}).observeOn(t).map(e)},n)};var Gr=function(e){function t(e){var t=this,n=new qt;return n.add(un.schedule(function(){e.onNext(t.head),n.add(t.tail.mergeAll().subscribe(e))})),n}function n(n){e.call(this,t),this.head=n,this.tail=new to}return Ft(n,e),Ut(n.prototype,gn,{onCompleted:function(){this.onNext(Sn.empty())},onError:function(e){this.onNext(Sn["throw"](e))},onNext:function(e){this.tail.onNext(e),this.tail.onCompleted()}}),n}(Sn),Yr=Le.Map||function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype["delete"]=function(e){var t=this._keys.indexOf(e);return-1===t?!1:(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?s:this._values[t]},e.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},e.prototype.forEach=function(e,t){for(var n=0;n<this.size;n++)e.call(t,this._values[n],this._keys[n])},e}();ge.prototype.and=function(e){return new ge(this.patterns.concat(e))},ge.prototype.thenDo=function(e){return new be(this,e)},be.prototype.activate=function(e,t,n){for(var r=this,o=[],i=0,s=this.expression.patterns.length;s>i;i++)o.push(we(e,this.expression.patterns[i],t.onError.bind(t)));var a=new Ee(o,function(){var e;try{e=r.selector.apply(r,arguments)}catch(n){return void t.onError(n)}t.onNext(e)},function(){for(var e=0,t=o.length;t>e;e++)o[e].removeActivePlan(a);n(a)});for(i=0,s=o.length;s>i;i++)o[i].addActivePlan(a);return a},Ee.prototype.dequeue=function(){this.joinObservers.forEach(function(e){e.queue.shift()})},Ee.prototype.match=function(){var e,t,n=!0;for(e=0,t=this.joinObserverArray.length;t>e;e++)if(0===this.joinObserverArray[e].queue.length){n=!1;break}if(n){var r=[],o=!1;for(e=0,t=this.joinObserverArray.length;t>e;e++)r.push(this.joinObserverArray[e].queue[0]),"C"===this.joinObserverArray[e].queue[0].kind&&(o=!0);if(o)this.onCompleted();else{this.dequeue();var i=[];for(e=0,t=r.length;e<r.length;e++)i.push(r[e].value);this.onNext.apply(this,i)}}};var Qr=function(e){function t(t,n){e.call(this),this.source=t,this.onError=n,this.queue=[],this.activePlans=[],this.subscription=new Xt,this.isDisposed=!1}Ft(t,e);var n=t.prototype;return n.next=function(e){if(!this.isDisposed){if("E"===e.kind)return this.onError(e.exception);this.queue.push(e);for(var t=this.activePlans.slice(0),n=0,r=t.length;r>n;n++)t[n].match()}},n.error=Ue,n.completed=Ue,n.addActivePlan=function(e){this.activePlans.push(e)},n.subscribe=function(){this.subscription.setDisposable(this.source.materialize().subscribe(this))},n.removeActivePlan=function(e){this.activePlans.splice(this.activePlans.indexOf(e),1),0===this.activePlans.length&&this.dispose();
+},n.dispose=function(){e.prototype.dispose.call(this),this.isDisposed||(this.isDisposed=!0,this.subscription.dispose())},t}(En);wn.and=function(e){return new ge([this,e])},wn.thenDo=function(e){return new ge([this]).thenDo(e)},Sn.when=function(){var e,t=arguments.length;if(Array.isArray(arguments[0]))e=arguments[0];else{e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return new $r(function(t){var n=[],r=new Yr,o=bn(function(e){t.onNext(e)},function(e){r.forEach(function(t){t.onError(e)}),t.onError(e)},function(e){t.onCompleted()});try{for(var i=0,s=e.length;s>i;i++)n.push(e[i].activate(r,o,function(e){var r=n.indexOf(e);n.splice(r,1),0===n.length&&t.onCompleted()}))}catch(a){or(a).subscribe(t)}var u=new qt;return r.forEach(function(e){e.subscribe(),u.add(e)}),u})};var Xr=Sn.interval=function(e,t){return _e(e,e,nn(t)?t:hn)};Sn.timer=function(e,t,n){var r;return nn(n)||(n=hn),null!=t&&"number"==typeof t?r=t:nn(t)&&(n=t),e instanceof Date&&r===s?Te(e.getTime(),n):e instanceof Date&&r!==s?xe(e.getTime(),t,n):r===s?Ce(e,n):_e(e,r,n)},wn.delay=function(e,t){return nn(t)||(t=hn),e instanceof Date?Ne(this,e.getTime(),t):Se(this,e,t)},wn.debounce=function(e,t){nn(t)||(t=hn);var n=this;return new $r(function(r){var o,i=new $t,s=!1,a=0,u=n.subscribe(function(n){s=!0,o=n,a++;var u=a,c=new Xt;i.setDisposable(c),c.setDisposable(t.scheduleWithRelative(e,function(){s&&a===u&&r.onNext(o),s=!1}))},function(e){i.dispose(),r.onError(e),s=!1,a++},function(){i.dispose(),s&&r.onNext(o),r.onCompleted(),s=!1,a++});return new qt(u,i)},this)},wn.throttle=function(e,t){return this.debounce(e,t)},wn.windowWithTime=function(e,t,n){var r,o=this;return null==t&&(r=e),nn(n)||(n=hn),"number"==typeof t?r=t:nn(t)&&(r=e,n=t),new $r(function(t){function i(){var e=new Xt,o=!1,s=!1;p.setDisposable(e),c===u?(o=!0,s=!0):u>c?o=!0:s=!0;var d=o?c:u,f=d-h;h=d,o&&(c+=r),s&&(u+=r),e.setDisposable(n.scheduleWithRelative(f,function(){if(s){var e=new eo;l.push(e),t.onNext(Wt(e,a))}o&&l.shift().onCompleted(),i()}))}var s,a,u=r,c=e,l=[],p=new $t,h=0;return s=new qt(p),a=new Jt(s),l.push(new eo),t.onNext(Wt(l[0],a)),i(),s.add(o.subscribe(function(e){for(var t=0,n=l.length;n>t;t++)l[t].onNext(e)},function(e){for(var n=0,r=l.length;r>n;n++)l[n].onError(e);t.onError(e)},function(){for(var e=0,n=l.length;n>e;e++)l[e].onCompleted();t.onCompleted()})),a},o)},wn.windowWithTimeOrCount=function(e,t,n){var r=this;return nn(n)||(n=hn),new $r(function(o){function i(t){var r=new Xt;s.setDisposable(r),r.setDisposable(n.scheduleWithRelative(e,function(){if(t===l){c=0;var e=++l;p.onCompleted(),p=new eo,o.onNext(Wt(p,u)),i(e)}}))}var s=new $t,a=new qt(s),u=new Jt(a),c=0,l=0,p=new eo;return o.onNext(Wt(p,u)),i(0),a.add(r.subscribe(function(e){var n=0,r=!1;p.onNext(e),++c===t&&(r=!0,c=0,n=++l,p.onCompleted(),p=new eo,o.onNext(Wt(p,u))),r&&i(n)},function(e){p.onError(e),o.onError(e)},function(){p.onCompleted(),o.onCompleted()})),u},r)},wn.bufferWithTime=function(e,t,n){return this.windowWithTime(e,t,n).flatMap(z)},wn.bufferWithTimeOrCount=function(e,t,n){return this.windowWithTimeOrCount(e,t,n).flatMap(z)},wn.timeInterval=function(e){var t=this;return nn(e)||(e=hn),Un(function(){var n=e.now();return t.map(function(t){var r=e.now(),o=r-n;return n=r,{value:t,interval:o}})})},wn.timestamp=function(e){return nn(e)||(e=hn),this.map(function(t){return{value:t,timestamp:e.now()}})},wn.sample=wn.throttleLatest=function(e,t){return nn(t)||(t=hn),"number"==typeof e?Oe(this,Xr(e,t)):Oe(this,e)},wn.timeout=function(e,t,n){(null==t||"string"==typeof t)&&(t=or(new Error(t||"Timeout"))),nn(n)||(n=hn);var r=this,o=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new $r(function(i){function s(){var r=a;p.setDisposable(n[o](e,function(){a===r&&(Ke(t)&&(t=Ln(t)),c.setDisposable(t.subscribe(i)))}))}var a=0,u=new Xt,c=new $t,l=!1,p=new $t;return c.setDisposable(u),s(),u.setDisposable(r.subscribe(function(e){l||(a++,i.onNext(e),s())},function(e){l||(a++,i.onError(e))},function(){l||(a++,i.onCompleted())})),new qt(c,p)},r)},Sn.generateWithAbsoluteTime=function(e,t,n,r,o,i){return nn(i)||(i=hn),new $r(function(s){var a=!0,u=!1;return i.scheduleRecursiveWithAbsoluteAndState(e,i.now(),function(e,i){u&&s.onNext(e);try{if(a?a=!1:e=n(e),u=t(e))var c=r(e),l=o(e)}catch(p){return void s.onError(p)}u?i(c,l):s.onCompleted()})})},Sn.generateWithRelativeTime=function(e,t,n,r,o,i){return nn(i)||(i=hn),new $r(function(s){var a=!0,u=!1;return i.scheduleRecursiveWithRelativeAndState(e,0,function(e,i){u&&s.onNext(e);try{if(a?a=!1:e=n(e),u=t(e))var c=r(e),l=o(e)}catch(p){return void s.onError(p)}u?i(c,l):s.onCompleted()})})},wn.delaySubscription=function(e,t){var n=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative",r=this;return nn(t)||(t=hn),new $r(function(o){var i=new $t;return i.setDisposable(t[n](e,function(){i.setDisposable(r.subscribe(o))})),i},this)},wn.delayWithSelector=function(e,t){var n,r,o=this;return He(e)?r=e:(n=e,r=t),new $r(function(e){function t(){u.setDisposable(o.subscribe(function(t){var n=c(r)(t);if(n===Ge)return e.onError(n.e);var o=new Xt;s.add(o),o.setDisposable(n.subscribe(function(){e.onNext(t),s.remove(o),i()},function(t){e.onError(t)},function(){e.onNext(t),s.remove(o),i()}))},function(t){e.onError(t)},function(){a=!0,u.dispose(),i()}))}function i(){a&&0===s.length&&e.onCompleted()}var s=new qt,a=!1,u=new $t;return n?u.setDisposable(n.subscribe(t,function(t){e.onError(t)},t)):t(),new qt(u,s)},this)},wn.timeoutWithSelector=function(e,t,n){1===arguments.length&&(t=e,e=$n()),n||(n=or(new Error("Timeout")));var r=this;return new $r(function(o){function i(e){function t(){return l===r}var r=l,i=new Xt;u.setDisposable(i),i.setDisposable(e.subscribe(function(){t()&&a.setDisposable(n.subscribe(o)),i.dispose()},function(e){t()&&o.onError(e)},function(){t()&&a.setDisposable(n.subscribe(o))}))}function s(){var e=!p;return e&&l++,e}var a=new $t,u=new $t,c=new Xt;a.setDisposable(c);var l=0,p=!1;return i(e),c.setDisposable(r.subscribe(function(e){if(s()){o.onNext(e);var n;try{n=t(e)}catch(r){return void o.onError(r)}i(Ke(n)?Ln(n):n)}},function(e){s()&&o.onError(e)},function(){s()&&o.onCompleted()})),new qt(a,u)},r)},wn.debounceWithSelector=function(e){var t=this;return new $r(function(n){var r,o=!1,i=new $t,s=0,a=t.subscribe(function(t){var a=c(e)(t);if(a===Ge)return n.onError(a.e);Ke(a)&&(a=Ln(a)),o=!0,r=t,s++;var u=s,l=new Xt;i.setDisposable(l),l.setDisposable(a.subscribe(function(){o&&s===u&&n.onNext(r),o=!1,l.dispose()},function(e){n.onError(e)},function(){o&&s===u&&n.onNext(r),o=!1,l.dispose()}))},function(e){i.dispose(),n.onError(e),o=!1,s++},function(){i.dispose(),o&&n.onNext(r),n.onCompleted(),o=!1,s++});return new qt(a,i)},t)},wn.skipLastWithTime=function(e,t){nn(t)||(t=hn);var n=this;return new $r(function(r){var o=[];return n.subscribe(function(n){var i=t.now();for(o.push({interval:i,value:n});o.length>0&&i-o[0].interval>=e;)r.onNext(o.shift().value)},function(e){r.onError(e)},function(){for(var n=t.now();o.length>0&&n-o[0].interval>=e;)r.onNext(o.shift().value);r.onCompleted()})},n)},wn.takeLastWithTime=function(e,t){var n=this;return nn(t)||(t=hn),new $r(function(r){var o=[];return n.subscribe(function(n){var r=t.now();for(o.push({interval:r,value:n});o.length>0&&r-o[0].interval>=e;)o.shift()},function(e){r.onError(e)},function(){for(var n=t.now();o.length>0;){var i=o.shift();n-i.interval<=e&&r.onNext(i.value)}r.onCompleted()})},n)},wn.takeLastBufferWithTime=function(e,t){var n=this;return nn(t)||(t=hn),new $r(function(r){var o=[];return n.subscribe(function(n){var r=t.now();for(o.push({interval:r,value:n});o.length>0&&r-o[0].interval>=e;)o.shift()},function(e){r.onError(e)},function(){for(var n=t.now(),i=[];o.length>0;){var s=o.shift();n-s.interval<=e&&i.push(s.value)}r.onNext(i),r.onCompleted()})},n)},wn.takeWithTime=function(e,t){var n=this;return nn(t)||(t=hn),new $r(function(r){return new qt(t.scheduleWithRelative(e,function(){r.onCompleted()}),n.subscribe(r))},n)},wn.skipWithTime=function(e,t){var n=this;return nn(t)||(t=hn),new $r(function(r){var o=!1;return new qt(t.scheduleWithRelative(e,function(){o=!0}),n.subscribe(function(e){o&&r.onNext(e)},r.onError.bind(r),r.onCompleted.bind(r)))},n)},wn.skipUntilWithTime=function(e,t){nn(t)||(t=hn);var n=this,r=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new $r(function(o){var i=!1;return new qt(t[r](e,function(){i=!0}),n.subscribe(function(e){i&&o.onNext(e)},function(e){o.onError(e)},function(){o.onCompleted()}))},n)},wn.takeUntilWithTime=function(e,t){nn(t)||(t=hn);var n=this,r=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new $r(function(o){return new qt(t[r](e,function(){o.onCompleted()}),n.subscribe(o))},n)},wn.throttleFirst=function(e,t){nn(t)||(t=hn);var n=+e||0;if(0>=n)throw new RangeError("windowDuration cannot be less or equal zero.");var r=this;return new $r(function(e){var o=0;return r.subscribe(function(r){var i=t.now();(0===o||i-o>=n)&&(o=i,e.onNext(r))},function(t){e.onError(t)},function(){e.onCompleted()})},r)},wn.transduce=function(e){function t(e){return{"@@transducer/init":function(){return e},"@@transducer/step":function(e,t){return e.onNext(t)},"@@transducer/result":function(e){return e.onCompleted()}}}var n=this;return new $r(function(r){var o=e(t(r));return n.subscribe(function(e){var t=c(o["@@transducer/step"]).call(o,r,e);t===Ge&&r.onError(t.e)},function(e){r.onError(e)},function(){o["@@transducer/result"](r)})},n)},wn.switchFirst=function(){var e=this;return new $r(function(t){var n=!1,r=!1,o=new Xt,i=new qt;return i.add(o),o.setDisposable(e.subscribe(function(e){if(!n){n=!0,Ke(e)&&(e=Ln(e));var o=new Xt;i.add(o),o.setDisposable(e.subscribe(function(e){t.onNext(e)},function(e){t.onError(e)},function(){i.remove(o),n=!1,r&&1===i.length&&t.onCompleted()}))}},function(e){t.onError(e)},function(){r=!0,!n&&1===i.length&&t.onCompleted()})),i},this)},wn.flatMapFirst=wn.selectManyFirst=function(e,t,n){return new On(this,e,t,n).switchFirst()},Fe.Observable.prototype.flatMapWithMaxConcurrent=function(e,t,n,r){return new On(this,t,n,r).merge(e)},Fe.VirtualTimeScheduler=function(e){function t(){return this.toDateTimeOffset(this.clock)}function n(e,t){return this.scheduleAbsoluteWithState(e,this.clock,t)}function r(e,t,n){return this.scheduleRelativeWithState(e,this.toRelative(t),n)}function o(e,t,n){return this.scheduleRelativeWithState(e,this.toRelative(t-this.now()),n)}function i(e,t){return t(),Gt}function s(i,s){this.clock=i,this.comparer=s,this.isEnabled=!1,this.queue=new Vt(1024),e.call(this,t,n,r,o)}Ft(s,e);var a=s.prototype;return a.add=ot,a.toDateTimeOffset=ot,a.toRelative=ot,a.schedulePeriodicWithState=function(e,t,n){var r=new sn(this,e,t,n);return r.start()},a.scheduleRelativeWithState=function(e,t,n){var r=this.add(this.clock,t);return this.scheduleAbsoluteWithState(e,r,n)},a.scheduleRelative=function(e,t){return this.scheduleRelativeWithState(t,e,i)},a.start=function(){if(!this.isEnabled){this.isEnabled=!0;do{var e=this.getNext();null!==e?(this.comparer(e.dueTime,this.clock)>0&&(this.clock=e.dueTime),e.invoke()):this.isEnabled=!1}while(this.isEnabled)}},a.stop=function(){this.isEnabled=!1},a.advanceTo=function(e){var t=this.comparer(this.clock,e);if(this.comparer(this.clock,e)>0)throw new tt;if(0!==t&&!this.isEnabled){this.isEnabled=!0;do{var n=this.getNext();null!==n&&this.comparer(n.dueTime,e)<=0?(this.comparer(n.dueTime,this.clock)>0&&(this.clock=n.dueTime),n.invoke()):this.isEnabled=!1}while(this.isEnabled);this.clock=e}},a.advanceBy=function(e){var t=this.add(this.clock,e),n=this.comparer(this.clock,t);if(n>0)throw new tt;0!==n&&this.advanceTo(t)},a.sleep=function(e){var t=this.add(this.clock,e);if(this.comparer(this.clock,t)>=0)throw new tt;this.clock=t},a.getNext=function(){for(;this.queue.length>0;){var e=this.queue.peek();if(!e.isCancelled())return e;this.queue.dequeue()}return null},a.scheduleAbsolute=function(e,t){return this.scheduleAbsoluteWithState(t,e,i)},a.scheduleAbsoluteWithState=function(e,t,n){function r(e,t){return o.queue.remove(i),n(e,t)}var o=this,i=new Zt(this,e,r,t,this.comparer);return this.queue.enqueue(i),i.disposable},s}(en),Fe.HistoricalScheduler=function(e){function t(t,n){var r=null==t?0:t,o=n||qe;e.call(this,r,o)}Ft(t,e);var n=t.prototype;return n.add=function(e,t){return e+t},n.toDateTimeOffset=function(e){return new Date(e).getTime()},n.toRelative=function(e){return e},t}(Fe.VirtualTimeScheduler);var $r=Fe.AnonymousObservable=function(e){function t(e){return e&&He(e.dispose)?e:He(e)?Ht(e):Gt}function n(e,n){var r=n[0],o=n[1],i=c(o.__subscribe).call(o,r);return i!==Ge||r.fail(Ge.e)?void r.setDisposable(t(i)):l(Ge.e)}function r(e){var t=new Jr(e),r=[t,this];return un.scheduleRequired()?un.scheduleWithState(r,n):n(null,r),t}function o(t,n){this.source=n,this.__subscribe=t,e.call(this,r)}return Ft(o,e),o}(Sn),Jr=function(e){function t(t){e.call(this),this.observer=t,this.m=new Xt}Ft(t,e);var n=t.prototype;return n.next=function(e){var t=c(this.observer.onNext).call(this.observer,e);t===Ge&&(this.dispose(),l(t.e))},n.error=function(e){var t=c(this.observer.onError).call(this.observer,e);this.dispose(),t===Ge&&l(t.e)},n.completed=function(){var e=c(this.observer.onCompleted).call(this.observer);this.dispose(),e===Ge&&l(e.e)},n.setDisposable=function(e){this.m.setDisposable(e)},n.getDisposable=function(){return this.m.getDisposable()},n.dispose=function(){e.prototype.dispose.call(this),this.m.dispose()},t}(En),Zr=function(e){function t(e){return this.underlyingObservable.subscribe(e)}function n(n,r,o){e.call(this,t),this.key=n,this.underlyingObservable=o?new $r(function(e){return new qt(o.getDisposable(),r.subscribe(e))}):r}return Ft(n,e),n}(Sn),eo=Fe.Subject=function(e){function t(e){return Qt(this),this.isStopped?this.hasError?(e.onError(this.error),Gt):(e.onCompleted(),Gt):(this.observers.push(e),new Vr(this,e))}function n(){e.call(this,t),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}return Ft(n,e),Ut(n.prototype,gn.prototype,{hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(Qt(this),!this.isStopped){this.isStopped=!0;for(var e=0,t=a(this.observers),n=t.length;n>e;e++)t[e].onCompleted();this.observers.length=0}},onError:function(e){if(Qt(this),!this.isStopped){this.isStopped=!0,this.error=e,this.hasError=!0;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onError(e);this.observers.length=0}},onNext:function(e){if(Qt(this),!this.isStopped)for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onNext(e)},dispose:function(){this.isDisposed=!0,this.observers=null}}),n.create=function(e,t){return new no(e,t)},n}(Sn),to=Fe.AsyncSubject=function(e){function t(e){return Qt(this),this.isStopped?(this.hasError?e.onError(this.error):this.hasValue?(e.onNext(this.value),e.onCompleted()):e.onCompleted(),Gt):(this.observers.push(e),new Vr(this,e))}function n(){e.call(this,t),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}return Ft(n,e),Ut(n.prototype,gn,{hasObservers:function(){return Qt(this),this.observers.length>0},onCompleted:function(){var e,t;if(Qt(this),!this.isStopped){this.isStopped=!0;var n=a(this.observers),t=n.length;if(this.hasValue)for(e=0;t>e;e++){var r=n[e];r.onNext(this.value),r.onCompleted()}else for(e=0;t>e;e++)n[e].onCompleted();this.observers.length=0}},onError:function(e){if(Qt(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=e;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onError(e);this.observers.length=0}},onNext:function(e){Qt(this),this.isStopped||(this.value=e,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.exception=null,this.value=null}}),n}(Sn),no=Fe.AnonymousSubject=function(e){function t(e){return this.observable.subscribe(e)}function n(n,r){this.observer=n,this.observable=r,e.call(this,t)}return Ft(n,e),Ut(n.prototype,gn.prototype,{onCompleted:function(){this.observer.onCompleted()},onError:function(e){this.observer.onError(e)},onNext:function(e){this.observer.onNext(e)}}),n}(Sn);Fe.Pauser=function(e){function t(){e.call(this)}return Ft(t,e),t.prototype.pause=function(){this.onNext(!1)},t.prototype.resume=function(){this.onNext(!0)},t}(eo),Le.Rx=Fe,r=function(){return Fe}.call(t,n,t,e),!(r!==s&&(e.exports=r));var ro=m()}).call(this)}).call(t,n(159)(e),function(){return this}(),n(1))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(115),a=n(4),u=n(11),c=n(216),l=n(217),p=n(7),h=n(6),d=i.createClass({displayName:"Checkbox",mixins:[a],contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{checked:i.PropTypes.bool,checkedIcon:i.PropTypes.element,defaultChecked:i.PropTypes.bool,iconStyle:i.PropTypes.object,labelStyle:i.PropTypes.object,onCheck:i.PropTypes.func,unCheckedIcon:i.PropTypes.element},getInitialState:function(){return{switched:this.props.checked||this.props.defaultChecked||this.props.valueLink&&this.props.valueLink.value||!1,muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getTheme:function(){return this.state.muiTheme.checkbox},getStyles:function(){var e=24,t={icon:{height:e,width:e},check:{position:"absolute",opacity:0,transform:"scale(0)",transitionOrigin:"50% 50%",transition:u.easeOut("450ms","opacity","0ms")+", "+u.easeOut("0ms","transform","450ms"),fill:this.getTheme().checkedColor},box:{position:"absolute",opacity:1,fill:this.getTheme().boxColor,transition:u.easeOut("2s",null,"200ms")},checkWhenSwitched:{opacity:1,transform:"scale(1)",transition:u.easeOut("0ms","opacity","0ms")+", "+u.easeOut("800ms","transform","0ms")},boxWhenSwitched:{transition:u.easeOut("100ms",null,"0ms"),fill:this.getTheme().checkedColor},checkWhenDisabled:{fill:this.getTheme().disabledColor},boxWhenDisabled:{fill:this.getTheme().disabledColor},label:{color:this.props.disabled?this.getTheme().labelDisabledColor:this.getTheme().labelColor}};return t},render:function(){var e=this.props,t=e.iconStyle,n=(e.onCheck,e.checkedIcon),a=e.unCheckedIcon,u=r(e,["iconStyle","onCheck","checkedIcon","unCheckedIcon"]),p=this.getStyles(),h=this.mergeAndPrefix(p.box,this.state.switched&&p.boxWhenSwitched,t,this.props.disabled&&p.boxWhenDisabled),d=this.mergeAndPrefix(p.check,this.state.switched&&p.checkWhenSwitched,t,this.props.disabled&&p.checkWhenDisabled),f=n?i.cloneElement(n,{style:this.mergeAndPrefix(d,n.props.style)}):i.createElement(l,{style:d}),m=a?i.cloneElement(a,{style:this.mergeAndPrefix(h,a.props.style)}):i.createElement(c,{style:h}),v=i.createElement("div",null,m,f),y=this.state.switched?d.fill:h.fill,g=this.mergeAndPrefix(p.icon,t),b=this.mergeAndPrefix(p.label,this.props.labelStyle),w={ref:"enhancedSwitch",inputType:"checkbox",switched:this.state.switched,switchElement:v,rippleColor:y,iconStyle:g,onSwitch:this._handleCheck,labelStyle:b,onParentShouldUpdate:this._handleStateChange,defaultSwitched:this.props.defaultChecked,labelPosition:this.props.labelPosition?this.props.labelPosition:"right"};return i.createElement(s,o({},u,w))},isChecked:function(){return this.refs.enhancedSwitch.isSwitched()},setChecked:function(e){this.refs.enhancedSwitch.setSwitched(e)},_handleCheck:function(e,t){this.props.onCheck&&this.props.onCheck(e,t)},_handleStateChange:function(e){this.setState({switched:e})}});e.exports=d},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(197),a=i.createClass({displayName:"ClearFix",render:function(){var e=this.props,t=(e.style,r(e,["style"])),n=function(){return{content:"' '",display:"table"}},a=n();return a.clear="both",i.createElement(s,o({},t,{beforeStyle:n(),afterStyle:a,style:this.props.style}),this.props.children)}});e.exports=a},function(e,t,n){(function(t){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(48),a=n(4),u=n(11),c=n(128),l=n(211),p=n(114),h=n(120),d=n(121),f=n(19),m=n(7),v=n(6),y=i.createClass({displayName:"EnhancedSwitch",mixins:[l,a],contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{id:i.PropTypes.string,inputType:i.PropTypes.string.isRequired,switchElement:i.PropTypes.element.isRequired,onParentShouldUpdate:i.PropTypes.func.isRequired,switched:i.PropTypes.bool.isRequired,rippleStyle:i.PropTypes.object,rippleColor:i.PropTypes.string,iconStyle:i.PropTypes.object,thumbStyle:i.PropTypes.object,trackStyle:i.PropTypes.object,labelStyle:i.PropTypes.object,name:i.PropTypes.string,value:i.PropTypes.string,label:i.PropTypes.string,onSwitch:i.PropTypes.func,required:i.PropTypes.bool,disabled:i.PropTypes.bool,defaultSwitched:i.PropTypes.bool,labelPosition:i.PropTypes.oneOf(["left","right"]),disableFocusRipple:i.PropTypes.bool,disableTouchRipple:i.PropTypes.bool},windowListeners:{keydown:"_handleWindowKeydown",keyup:"_handleWindowKeyup"},getInitialState:function(){return{isKeyboardFocused:!1,parentWidth:100,muiTheme:this.context.muiTheme?this.context.muiTheme:v.getMuiTheme(m)}},getEvenWidth:function(){return parseInt(window.getComputedStyle(i.findDOMNode(this.refs.root)).getPropertyValue("width"),10)},componentDidMount:function(){var e=i.findDOMNode(this.refs.checkbox);this.props.switched&&e.checked===this.props.switched||this.props.onParentShouldUpdate(e.checked),window.addEventListener("resize",this._handleResize),this._handleResize()},componentWillUnmount:function(){window.removeEventListener("resize",this._handleResize)},componentWillReceiveProps:function(e,t){var n=e.hasOwnProperty("checkedLink"),r=e.hasOwnProperty("checked"),o=e.hasOwnProperty("toggled"),i=e.hasOwnProperty("defaultSwitched")&&e.defaultSwitched!==this.props.defaultSwitched,s={};s.muiTheme=t.muiTheme?t.muiTheme:this.state.muiTheme,r?s.switched=e.checked:o?s.switched=e.toggled:n?s.switched=e.checkedLink.value:i&&(s.switched=e.defaultSwitched),void 0!==s.switched&&s.switched!==this.props.switched&&this.props.onParentShouldUpdate(s.switched),this.setState(s)},getTheme:function(){return this.state.muiTheme.rawTheme.palette},getStyles:function(){var e=this.state.muiTheme.rawTheme.spacing,t=60-e.desktopGutterLess,n="calc(100% - 60px)",r={root:{position:"relative",cursor:this.props.disabled?"default":"pointer",overflow:"visible",display:"table",height:"auto",width:"100%"},input:{position:"absolute",cursor:this.props.disabled?"default":"pointer",pointerEvents:"all",opacity:0,width:"100%",height:"100%",zIndex:2,left:0,boxSizing:"border-box",padding:0,margin:0},controls:{width:"100%",height:"100%"},label:{"float":"left",position:"relative",display:"block",width:n,lineHeight:"24px",color:this.getTheme().textColor},wrap:{transition:u.easeOut(),"float":"left",position:"relative",display:"block",width:t,marginRight:"right"===this.props.labelPosition?e.desktopGutterLess:0,marginLeft:"left"===this.props.labelPosition?e.desktopGutterLess:0},ripple:{height:"200%",width:"200%",top:-12,left:-12}};return r},render:function(){var e=this.props,t=(e.type,e.name,e.value,e.label,e.onSwitch,e.defaultSwitched,e.onBlur,e.onFocus,e.onMouseUp,e.onMouseDown,e.onMouseLeave,e.onTouchStart,e.onTouchEnd,e.disableTouchRipple),n=e.disableFocusRipple,s=e.className,a=r(e,["type","name","value","label","onSwitch","defaultSwitched","onBlur","onFocus","onMouseUp","onMouseDown","onMouseLeave","onTouchStart","onTouchEnd","disableTouchRipple","disableFocusRipple","className"]),u=this.getStyles(),l=this.mergeAndPrefix(u.wrap,this.props.iconStyle),m=this.mergeAndPrefix(u.ripple,this.props.rippleStyle),v=this.props.hasOwnProperty("rippleColor")?this.props.rippleColor:this.getTheme().primary1Color;this.props.thumbStyle&&(l.marginLeft/=2,l.marginRight/=2);var y=this.props.id||c.generate(),g=this.mergeAndPrefix(u.label,this.props.labelStyle),b=this.props.label?i.createElement("label",{style:g,htmlFor:y},this.props.label):null,w={ref:"checkbox",type:this.props.inputType,style:this.mergeAndPrefix(u.input),name:this.props.name,value:this.props.value,defaultChecked:this.props.defaultSwitched,onBlur:this._handleBlur,onFocus:this._handleFocus},E=this.props.disabled||t;E||(w.onMouseUp=this._handleMouseUp,w.onMouseDown=this._handleMouseDown,w.onMouseLeave=this._handleMouseLeave,w.onTouchStart=this._handleTouchStart,w.onTouchEnd=this._handleTouchEnd),this.props.hasOwnProperty("checkedLink")||(w.onChange=this._handleChange);var T=i.createElement("input",o({},a,w)),x=i.createElement(d,{ref:"touchRipple",key:"touchRipple",style:m,color:v,centerRipple:!0}),C=i.createElement(h,{key:"focusRipple",innerStyle:m,color:v,show:this.state.isKeyboardFocused}),_=[E?null:x,this.props.disabled||n?null:C],S=this.props.thumbStyle?i.createElement("div",{style:l},i.createElement("div",{style:this.props.trackStyle}),i.createElement(f,{style:this.props.thumbStyle,zDepth:1,circle:!0}," ",_," ")):i.createElement("div",{style:l},this.props.switchElement,_),N=this.props.labelPosition,O=N&&"RIGHT"===this.props.labelPosition.toUpperCase()?i.createElement(p,{style:this.mergeAndPrefix(u.controls)},S,b):i.createElement(p,{style:this.mergeAndPrefix(u.controls)},b,S);return i.createElement("div",{ref:"root",className:s,style:this.mergeAndPrefix(u.root,this.props.style)},T,O)},isSwitched:function(){return i.findDOMNode(this.refs.checkbox).checked},setSwitched:function(e){if(this.props.hasOwnProperty("checked")&&this.props.checked!==!1){if("production"!==t.env.NODE_ENV){var n="Cannot call set method while checked is defined as a property.";console.error(n)}}else this.props.onParentShouldUpdate(e),i.findDOMNode(this.refs.checkbox).checked=e},getValue:function(){return i.findDOMNode(this.refs.checkbox).value},isKeyboardFocused:function(){return this.state.isKeyboardFocused},_handleChange:function(e){this._tabPressed=!1,this.setState({isKeyboardFocused:!1});var t=i.findDOMNode(this.refs.checkbox).checked;this.props.hasOwnProperty("checked")||this.props.onParentShouldUpdate(t),this.props.onSwitch&&this.props.onSwitch(e,t)},_handleWindowKeydown:function(e){e.keyCode===s.TAB&&(this._tabPressed=!0),e.keyCode===s.SPACE&&this.state.isKeyboardFocused&&this._handleChange(e)},_handleWindowKeyup:function(e){e.keyCode===s.SPACE&&this.state.isKeyboardFocused&&this._handleChange(e)},_handleMouseDown:function(e){0===e.button&&this.refs.touchRipple.start(e)},_handleMouseUp:function(){this.refs.touchRipple.end()},_handleMouseLeave:function(){this.refs.touchRipple.end()},_handleTouchStart:function(e){this.refs.touchRipple.start(e)},_handleTouchEnd:function(){this.refs.touchRipple.end()},_handleBlur:function(e){this.setState({isKeyboardFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},_handleFocus:function(e){var t=this;setTimeout(function(){t._tabPressed&&t.setState({isKeyboardFocused:!0})},150),this.props.onFocus&&this.props.onFocus(e)},_handleResize:function(){this.setState({parentWidth:this.getEvenWidth()})}});e.exports=y}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(27),c=n(43),l=n(36),p=n(19),h=n(60),d=n(7),f=n(6),m=function(e){var t=e?0:2;return{zDepth:t,initialZDepth:t}},v=i.createClass({displayName:"FloatingActionButton",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{backgroundColor:i.PropTypes.string,disabled:i.PropTypes.bool,disabledColor:i.PropTypes.string,iconClassName:i.PropTypes.string,iconStyle:i.PropTypes.object,mini:i.PropTypes.bool,onMouseDown:i.PropTypes.func,onMouseUp:i.PropTypes.func,onMouseLeave:i.PropTypes.func,onTouchEnd:i.PropTypes.func,onTouchStart:i.PropTypes.func,secondary:i.PropTypes.bool},getInitialState:function(){var e=this.props.disabled?0:2;return{hovered:!1,initialZDepth:e,touch:!1,zDepth:e,muiTheme:this.context.muiTheme?this.context.muiTheme:f.getMuiTheme(d)}},componentWillMount:function(){this.setState(m(this.props.disabled))},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n}),e.disabled!==this.props.disabled&&this.setState(m(e.disabled))},componentDidMount:function(){if("production"!==t.env.NODE_ENV&&this.props.iconClassName&&this.props.children){var e="You have set both an iconClassName and a child icon. It is recommended you use only one method when adding icons to FloatingActionButtons.";console.warn(e)}},_getBackgroundColor:function(){return this.props.disabled?this.props.disabledColor||this.getTheme().disabledColor:this.props.backgroundColor?this.props.backgroundColor:this.props.secondary?this.getTheme().secondaryColor:this.getTheme().color},getTheme:function(){return this.state.muiTheme.floatingActionButton},_getIconColor:function(){return this.props.disabled?this.getTheme().disabledTextColor:this.props.secondary?this.getTheme().secondaryIconColor:this.getTheme().iconColor},getStyles:function(){var e=this.state.muiTheme.floatingActionButton,t={root:{transition:a.easeOut(),display:"inline-block"},container:{transition:a.easeOut(),position:"relative",height:e.buttonSize,width:e.buttonSize,padding:0,overflow:"hidden",backgroundColor:this._getBackgroundColor(),borderRadius:"50%",textAlign:"center",verticalAlign:"bottom",transform:"translate3d(0, 0, 0)"},containerWhenMini:{height:e.miniSize,width:e.miniSize},overlay:{transition:a.easeOut(),top:0},overlayWhenHovered:{backgroundColor:u.fade(this._getIconColor(),.4)},icon:{height:e.buttonSize,lineHeight:e.buttonSize+"px",fill:e.iconColor,color:this._getIconColor()},iconWhenMini:{height:e.miniSize,lineHeight:e.miniSize+"px"}};return t},render:function(){var e=this.props,t=e.disabled,n=e.mini,s=(e.secondary,e.iconStyle),a=e.iconClassName,u=r(e,["disabled","mini","secondary","iconStyle","iconClassName"]),d=this.getStyles(),f=void 0;a&&(f=i.createElement(l,{className:a,style:this.mergeAndPrefix(d.icon,n&&d.iconWhenMini,s)}));var m=h.extend(this.props.children,{style:this.mergeAndPrefix(d.icon,n&&d.iconWhenMini,s)}),v=t?null:{onMouseDown:this._handleMouseDown,onMouseUp:this._handleMouseUp,onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,onKeyboardFocus:this._handleKeyboardFocus};return i.createElement(p,{style:this.mergeAndPrefix(d.root,this.props.style),zDepth:this.state.zDepth,circle:!0},i.createElement(c,o({},u,v,{ref:"container",disabled:t,style:this.mergeAndPrefix(d.container,this.props.mini&&d.containerWhenMini),focusRippleColor:d.icon.color,touchRippleColor:d.icon.color}),i.createElement("div",{ref:"overlay",style:this.mergeAndPrefix(d.overlay,this.state.hovered&&!this.props.disabled&&d.overlayWhenHovered)},f,m)))},_handleMouseDown:function(e){0===e.button&&this.setState({zDepth:this.state.initialZDepth+1}),this.props.onMouseDown&&this.props.onMouseDown(e);
+},_handleMouseUp:function(e){this.setState({zDepth:this.state.initialZDepth}),this.props.onMouseUp&&this.props.onMouseUp(e)},_handleMouseLeave:function(e){this.refs.container.isKeyboardFocused()||this.setState({zDepth:this.state.initialZDepth,hovered:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)},_handleMouseEnter:function(e){this.refs.container.isKeyboardFocused()||this.state.touch||this.setState({hovered:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)},_handleTouchStart:function(e){this.setState({touch:!0,zDepth:this.state.initialZDepth+1}),this.props.onTouchStart&&this.props.onTouchStart(e)},_handleTouchEnd:function(e){this.setState({zDepth:this.state.initialZDepth}),this.props.onTouchEnd&&this.props.onTouchEnd(e)},_handleKeyboardFocus:function(e,t){t&&!this.props.disabled?(this.setState({zDepth:this.state.initialZDepth+1}),i.findDOMNode(this.refs.overlay).style.backgroundColor=u.fade(this.getStyles().icon.color,.4)):this.state.hovered||(this.setState({zDepth:this.state.initialZDepth}),i.findDOMNode(this.refs.overlay).style.backgroundColor="transparent")}});e.exports=v}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(27),u=n(4),c=n(20),l=n(11),p=n(45),h=n(43),d=n(202),f=n(214),m=n(124),v=n(203),y=n(7),g=n(6),b=i.createClass({displayName:"ListItem",mixins:[s,u],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{autoGenerateNestedIndicator:i.PropTypes.bool,disabled:i.PropTypes.bool,disableKeyboardFocus:i.PropTypes.bool,initiallyOpen:i.PropTypes.bool,innerDivStyle:i.PropTypes.object,insetChildren:i.PropTypes.bool,innerStyle:i.PropTypes.object,leftAvatar:i.PropTypes.element,leftCheckbox:i.PropTypes.element,leftIcon:i.PropTypes.element,nestedLevel:i.PropTypes.number,nestedItems:i.PropTypes.arrayOf(i.PropTypes.element),onKeyboardFocus:i.PropTypes.func,onMouseEnter:i.PropTypes.func,onMouseLeave:i.PropTypes.func,onNestedListToggle:i.PropTypes.func,onTouchStart:i.PropTypes.func,onTouchTap:i.PropTypes.func,rightAvatar:i.PropTypes.element,rightIcon:i.PropTypes.element,rightIconButton:i.PropTypes.element,rightToggle:i.PropTypes.element,primaryText:i.PropTypes.node,secondaryText:i.PropTypes.node,secondaryTextLines:i.PropTypes.oneOf([1,2])},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getDefaultProps:function(){return{autoGenerateNestedIndicator:!0,initiallyOpen:!1,nestedItems:[],nestedLevel:0,onKeyboardFocus:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onNestedListToggle:function(){},onTouchStart:function(){},secondaryTextLines:1}},getInitialState:function(){return{hovered:!1,isKeyboardFocused:!1,open:this.props.initiallyOpen,rightIconButtonHovered:!1,rightIconButtonKeyboardFocused:!1,touch:!1,muiTheme:this.context.muiTheme?this.context.muiTheme:g.getMuiTheme(y)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},render:function(){var e=this.props,t=e.autoGenerateNestedIndicator,n=e.children,s=e.disabled,u=e.disableKeyboardFocus,y=e.innerDivStyle,g=e.insetChildren,b=e.leftAvatar,w=e.leftCheckbox,E=e.leftIcon,T=e.nestedItems,x=e.nestedLevel,C=(e.onKeyboardFocus,e.onMouseLeave,e.onMouseEnter,e.onTouchStart,e.onTouchTap),_=e.rightAvatar,S=e.rightIcon,N=e.rightIconButton,O=e.rightToggle,D=e.primaryText,P=e.secondaryText,k=e.secondaryTextLines,M=e.style,A=r(e,["autoGenerateNestedIndicator","children","disabled","disableKeyboardFocus","innerDivStyle","insetChildren","leftAvatar","leftCheckbox","leftIcon","nestedItems","nestedLevel","onKeyboardFocus","onMouseLeave","onMouseEnter","onTouchStart","onTouchTap","rightAvatar","rightIcon","rightIconButton","rightToggle","primaryText","secondaryText","secondaryTextLines","style"]),R=this.state.muiTheme.rawTheme.palette.textColor,I=a.fade(R,.1),j=!P&&(b||_),L=!P&&!(b||_),F=P&&1===k,U=P&&k>1,W=w||O,V={root:{backgroundColor:!this.state.isKeyboardFocused&&!this.state.hovered||this.state.rightIconButtonHovered||this.state.rightIconButtonKeyboardFocused?null:I,color:R,display:"block",fontSize:16,lineHeight:"16px",position:"relative",transition:l.easeOut()},innerDiv:{marginLeft:x*this.state.muiTheme.listItem.nestedLevelDepth,paddingLeft:E||b||w||g?72:16,paddingRight:S||_||N?56:O?72:16,paddingBottom:j?20:16,paddingTop:L||U?16:20,position:"relative"},icons:{height:24,width:24,display:"block",position:"absolute",top:F?12:j?4:0,padding:12},leftIcon:{color:c.grey600,fill:c.grey600,left:4},rightIcon:{color:c.grey400,fill:c.grey400,right:4},avatars:{position:"absolute",top:j?8:16},label:{cursor:"pointer"},leftAvatar:{left:16},rightAvatar:{right:16},leftCheckbox:{position:"absolute",display:"block",width:24,top:F?24:j?16:12,left:16},primaryText:{},rightIconButton:{position:"absolute",display:"block",top:F?12:j?4:0,right:4},rightToggle:{position:"absolute",display:"block",width:54,top:F?25:j?17:13,right:8},secondaryText:{fontSize:14,lineHeight:U?"18px":"16px",height:U?36:16,margin:0,marginTop:4,color:p.textLightBlack,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:U?null:"nowrap",display:U?"-webkit-box":null,WebkitLineClamp:U?2:null,WebkitBoxOrient:U?"vertical":null}},B=[n];E&&this._pushElement(B,E,this.mergeStyles(V.icons,V.leftIcon)),S&&this._pushElement(B,S,this.mergeStyles(V.icons,V.rightIcon)),b&&this._pushElement(B,b,this.mergeStyles(V.avatars,V.leftAvatar)),_&&this._pushElement(B,_,this.mergeStyles(V.avatars,V.rightAvatar)),w&&this._pushElement(B,w,this.mergeStyles(V.leftCheckbox));var q=T.length,z=_||S||N||O,K=q&&t&&!z;if(N||K){var H=N,G={onKeyboardFocus:this._handleRightIconButtonKeyboardFocus,onMouseEnter:this._handleRightIconButtonMouseEnter,onMouseLeave:this._handleRightIconButtonMouseLeave,onTouchTap:this._handleRightIconButtonTouchTap,onMouseDown:this._handleRightIconButtonMouseUp,onMouseUp:this._handleRightIconButtonMouseUp};K&&(H=this.state.open?i.createElement(d,null,i.createElement(f,null)):i.createElement(d,null,i.createElement(m,null)),G.onTouchTap=this._handleNestedListToggle),this._pushElement(B,H,this.mergeStyles(V.rightIconButton),G)}if(O&&this._pushElement(B,O,this.mergeStyles(V.rightToggle)),D){var Y=this._createTextElement(V.primaryText,D,"primaryText");B.push(Y)}if(P){var Y=this._createTextElement(V.secondaryText,P,"secondaryText");B.push(Y)}var Q=T.length?i.createElement(v,{nestedLevel:x+1,open:this.state.open},T):void 0;return W?this._createLabelElement(V,B):s?this._createDisabledElement(V,B):i.createElement("div",null,i.createElement(h,o({},A,{disabled:s,disableKeyboardFocus:u||this.state.rightIconButtonKeyboardFocused,linkButton:!0,onKeyboardFocus:this._handleKeyboardFocus,onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,onTouchStart:this._handleTouchStart,onTouchTap:C,ref:"enhancedButton",style:this.mergeAndPrefix(V.root,M)}),i.createElement("div",{style:this.mergeAndPrefix(V.innerDiv,y)},B)),Q)},applyFocusState:function(e){var t=this.refs.enhancedButton,n=i.findDOMNode(t);if(t)switch(e){case"none":n.blur();break;case"focused":n.focus();break;case"keyboard-focused":t.setKeyboardFocus(),n.focus()}},_createDisabledElement:function(e,t){var n=this.props,r=n.innerDivStyle,o=n.style,s=this.mergeAndPrefix(e.root,e.innerDiv,r,o);return i.createElement("div",{style:s},t)},_createLabelElement:function(e,t){var n=this.props,r=n.innerDivStyle,o=n.style,s=this.mergeAndPrefix(e.root,e.innerDiv,r,e.label,o);return i.createElement("label",{style:s},t)},_createTextElement:function(e,t,n){var r=i.isValidElement(t),o=r?this.mergeStyles(e,t.props.style):null;return r?i.cloneElement(t,{key:n,style:o}):i.createElement("div",{key:n,style:e},t)},_handleKeyboardFocus:function(e,t){this.setState({isKeyboardFocused:t}),this.props.onKeyboardFocus(e,t)},_handleMouseEnter:function(e){this.state.touch||this.setState({hovered:!0}),this.props.onMouseEnter(e)},_handleMouseLeave:function(e){this.setState({hovered:!1}),this.props.onMouseLeave(e)},_handleNestedListToggle:function(e){e.stopPropagation(),this.setState({open:!this.state.open}),this.props.onNestedListToggle(this)},_handleRightIconButtonKeyboardFocus:function(e,t){var n=this.props.rightIconButton,r={};r.rightIconButtonKeyboardFocused=t,t&&(r.isKeyboardFocused=!1),this.setState(r),n&&n.props.onKeyboardFocus&&n.props.onKeyboardFocus(e,t)},_handleRightIconButtonMouseDown:function(e){var t=this.props.rightIconButton;e.stopPropagation(),t&&t.props.onMouseDown&&t.props.onMouseDown(e)},_handleRightIconButtonMouseLeave:function(e){var t=this.props.rightIconButton;this.setState({rightIconButtonHovered:!1}),t&&t.props.onMouseLeave&&t.props.onMouseLeave(e)},_handleRightIconButtonMouseEnter:function(e){var t=this.props.rightIconButton;this.setState({rightIconButtonHovered:!0}),t&&t.props.onMouseEnter&&t.props.onMouseEnter(e)},_handleRightIconButtonMouseUp:function(e){var t=this.props.rightIconButton;e.stopPropagation(),t&&t.props.onMouseUp&&t.props.onMouseUp(e)},_handleRightIconButtonTouchTap:function(e){var t=this.props.rightIconButton;e.stopPropagation(),t&&t.props.onTouchTap&&t.props.onTouchTap(e)},_handleTouchStart:function(e){this.setState({touch:!0}),this.props.onTouchStart(e)},_pushElement:function(e,t,n,r){if(t){var s=this.mergeStyles(n,t.props.style);e.push(i.cloneElement(t,o({key:e.length,style:s},r)))}}});e.exports=b},function(e,t,n){"use strict";var r=n(3),o=n(61),i=n(126);e.exports={componentDidMount:function(){this.manuallyBindClickAway||this._bindClickAway()},componentWillUnmount:function(){this._unbindClickAway()},_checkClickAway:function(e){var t=r.findDOMNode(this);e.target!==t&&!i.isDescendant(t,e.target)&&document.documentElement.contains(e.target)&&this.componentClickAway&&this.componentClickAway()},_bindClickAway:function(){o.on(document,"mouseup",this._checkClickAway),o.on(document,"touchend",this._checkClickAway)},_unbindClickAway:function(){o.off(document,"mouseup",this._checkClickAway),o.off(document,"touchend",this._checkClickAway)}}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return e.children||e.label?void 0:new Error("Required prop label or children was not specified in "+n+".")}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(3),a=n(4),u=n(11),c=n(27),l=n(45),p=n(43),h=n(19),d=n(7),f=n(6),m=s.createClass({displayName:"RaisedButton",mixins:[a],contextTypes:{muiTheme:s.PropTypes.object},childContextTypes:{muiTheme:s.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{className:s.PropTypes.string,disabled:s.PropTypes.bool,label:o,onMouseDown:s.PropTypes.func,onMouseUp:s.PropTypes.func,onMouseLeave:s.PropTypes.func,onTouchEnd:s.PropTypes.func,onTouchStart:s.PropTypes.func,primary:s.PropTypes.bool,secondary:s.PropTypes.bool,labelStyle:s.PropTypes.object,backgroundColor:s.PropTypes.string,labelColor:s.PropTypes.string,disabledBackgroundColor:s.PropTypes.string,disabledLabelColor:s.PropTypes.string,fullWidth:s.PropTypes.bool},getInitialState:function(){var e=this.props.disabled?0:1;return{hovered:!1,touched:!1,initialZDepth:e,zDepth:e,muiTheme:this.context.muiTheme?this.context.muiTheme:f.getMuiTheme(d)}},componentWillReceiveProps:function(e,t){var n=e.disabled?0:1,r=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({zDepth:n,initialZDepth:n,muiTheme:r})},_getBackgroundColor:function(){var e=this.props.disabledBackgroundColor?this.props.disabledBackgroundColor:this.getTheme().disabledColor;return this.props.disabled?e:this.props.backgroundColor?this.props.backgroundColor:this.props.primary?this.getTheme().primaryColor:this.props.secondary?this.getTheme().secondaryColor:this.getTheme().color},_getLabelColor:function(){var e=this.props.disabledLabelColor?this.props.disabledLabelColor:this.getTheme().disabledTextColor;return this.props.disabled?e:this.props.labelColor?this.props.labelColor:this.props.primary?this.getTheme().primaryTextColor:this.props.secondary?this.getTheme().secondaryTextColor:this.getTheme().textColor},getThemeButton:function(){return this.state.muiTheme.button},getTheme:function(){return this.state.muiTheme.raisedButton},getStyles:function(){var e=this.props.primary||this.props.secondary?.4:.08,t={root:{backgroundColor:"none",display:"inline-block",minWidth:this.props.fullWidth?"100%":this.getThemeButton().minWidth,height:this.getThemeButton().height,transition:u.easeOut()},container:{position:"relative",height:"100%",width:"100%",padding:0,overflow:"hidden",borderRadius:2,transition:u.easeOut(),backgroundColor:this._getBackgroundColor(),transform:"translate3d(0, 0, 0)"},label:{position:"relative",opacity:1,fontSize:"14px",letterSpacing:0,textTransform:this.getTheme().textTransform?this.getTheme().textTransform:this.getThemeButton().textTransform?this.getThemeButton().textTransform:"uppercase",fontWeight:l.fontWeightMedium,margin:0,padding:"0px "+this.state.muiTheme.rawTheme.spacing.desktopGutterLess+"px",userSelect:"none",lineHeight:this.props.style&&this.props.style.height?this.props.style.height:this.getThemeButton().height+"px",color:this._getLabelColor()},overlay:{transition:u.easeOut(),top:0},overlayWhenHovered:{backgroundColor:c.fade(this._getLabelColor(),e)}};return t},render:function(){var e=this.props,t=e.disabled,n=e.label,o=e.primary,a=e.secondary,u=r(e,["disabled","label","primary","secondary"]),c=this.getStyles(),l=void 0;n&&(l=s.createElement("span",{style:this.mergeAndPrefix(c.label,this.props.labelStyle)},n));var d=c.label.color,f=o||a?.16:.1,m=t?null:{onMouseDown:this._handleMouseDown,onMouseUp:this._handleMouseUp,onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,onKeyboardFocus:this._handleKeyboardFocus};return s.createElement(h,{style:this.mergeAndPrefix(c.root,this.props.style),zDepth:this.state.zDepth},s.createElement(p,i({},u,m,{ref:"container",disabled:t,style:this.mergeAndPrefix(c.container),focusRippleColor:d,touchRippleColor:d,focusRippleOpacity:f,touchRippleOpacity:f}),s.createElement("div",{ref:"overlay",style:this.mergeAndPrefix(c.overlay,this.state.hovered&&!this.props.disabled&&c.overlayWhenHovered)},l,this.props.children)))},_handleMouseDown:function(e){0===e.button&&this.setState({zDepth:this.state.initialZDepth+1}),this.props.onMouseDown&&this.props.onMouseDown(e)},_handleMouseUp:function(e){this.setState({zDepth:this.state.initialZDepth}),this.props.onMouseUp&&this.props.onMouseUp(e)},_handleMouseLeave:function(e){this.refs.container.isKeyboardFocused()||this.setState({zDepth:this.state.initialZDepth,hovered:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)},_handleMouseEnter:function(e){this.refs.container.isKeyboardFocused()||this.state.touch||this.setState({hovered:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)},_handleTouchStart:function(e){this.setState({touch:!0,zDepth:this.state.initialZDepth+1}),this.props.onTouchStart&&this.props.onTouchStart(e)},_handleTouchEnd:function(e){this.setState({zDepth:this.state.initialZDepth}),this.props.onTouchEnd&&this.props.onTouchEnd(e)},_handleKeyboardFocus:function(e,t){if(t&&!this.props.disabled){this.setState({zDepth:this.state.initialZDepth+1});var n=this.props.primary||this.props.secondary?.4:.08;s.findDOMNode(this.refs.overlay).style.backgroundColor=c.fade(this.mergeAndPrefix(this.getStyles().label,this.props.labelStyle).color,n)}else this.state.hovered||(this.setState({zDepth:this.state.initialZDepth}),s.findDOMNode(this.refs.overlay).style.backgroundColor="transparent")}});e.exports=m},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(4),s=n(22),a=n(20),u=n(11),c=n(221),l=750,p=r.createClass({displayName:"FocusRipple",mixins:[o,i],propTypes:{color:r.PropTypes.string,innerStyle:r.PropTypes.object,opacity:r.PropTypes.number,show:r.PropTypes.bool},getDefaultProps:function(){return{color:a.darkBlack}},componentDidMount:function(){this.props.show&&(this._setRippleSize(),this._pulsate())},componentDidUpdate:function(){this.props.show?(this._setRippleSize(),this._pulsate()):this._timeout&&clearTimeout(this._timeout)},render:function(){var e=this.props,t=e.show,n=e.style,o=this.mergeStyles({height:"100%",width:"100%",position:"absolute",top:0,left:0},n),i=t?this._getRippleElement(this.props):null;return r.createElement(c,{maxScale:.85,style:o},i)},_getRippleElement:function(e){var t=e.color,n=e.innerStyle,o=e.opacity,i=this.mergeAndPrefix({position:"absolute",height:"100%",width:"100%",borderRadius:"50%",opacity:o?o:.16,backgroundColor:t,transition:u.easeOut(l+"ms","transform",null,u.easeInOutFunction)},n);return r.createElement("div",{ref:"innerCircle",style:i})},_pulsate:function(){if(this.isMounted()){var e=r.findDOMNode(this.refs.innerCircle);if(e){var t="scale(1)",n="scale(0.85)",o=e.style[s.single("transform")],i=void 0;o=o||t,i=o===t?n:t,e.style[s.single("transform")]=i,this._timeout=setTimeout(this._pulsate,l)}}},_setRippleSize:function(){var e=r.findDOMNode(this.refs.innerCircle),t=e.offsetHeight,n=e.offsetWidth,o=Math.max(t,n),i=0;-1!==e.style.top.indexOf("px",e.style.top.length-2)&&(i=parseInt(e.style.top)),e.style.height=o+"px",e.style.top=t/2-o/2+i+"px"}});e.exports=p},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=r.addons.TransitionGroup,s=n(4),a=n(126),u=n(47),c=n(212),l=r.createClass({displayName:"TouchRipple",mixins:[o,s],propTypes:{centerRipple:r.PropTypes.bool,color:r.PropTypes.string,opacity:r.PropTypes.number},getInitialState:function(){return{hasRipples:!1,nextKey:0,ripples:[]}},render:function(){var e=this.props,t=e.children,n=e.style,o=this.state,s=o.hasRipples,a=o.ripples,u=void 0;if(s){var c=this.mergeAndPrefix({height:"100%",width:"100%",position:"absolute",top:0,left:0,overflow:"hidden"},n);u=r.createElement(i,{style:c},a)}return r.createElement("div",{onMouseUp:this._handleMouseUp,onMouseDown:this._handleMouseDown,onMouseLeave:this._handleMouseLeave,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd},u,t)},start:function(e,t){var n=this.state.ripples;if(!t)for(var o=0;o<n.length;o++)if(n[o].props.touchGenerated)return;n=u.push(n,r.createElement(c,{key:this.state.nextKey,style:this.props.centerRipple?{}:this._getRippleStyle(e),color:this.props.color,opacity:this.props.opacity,touchGenerated:t})),this.setState({hasRipples:!0,nextKey:this.state.nextKey+1,ripples:n})},end:function(){var e=this.state.ripples;this.setState({ripples:u.shift(e)})},_handleMouseDown:function(e){0===e.button&&this.start(e,!1)},_handleMouseUp:function(){this.end()},_handleMouseLeave:function(){this.end()},_handleTouchStart:function(e){this.start(e,!0)},_handleTouchEnd:function(){this.end()},_getRippleStyle:function(e){var t={},n=r.findDOMNode(this),o=n.offsetHeight,i=n.offsetWidth,s=a.offset(n),u=e.touches&&e.touches.length,c=u?e.touches[0].pageX:e.pageX,l=u?e.touches[0].pageY:e.pageY,p=c-s.left,h=l-s.top,d=this._calcDiag(p,h),f=this._calcDiag(i-p,h),m=this._calcDiag(i-p,o-h),v=this._calcDiag(p,o-h),y=Math.max(d,f,m,v),g=2*y,b=p-y,w=h-y;return t.height=g+"px",t.width=g+"px",t.top=w+"px",t.left=b+"px",t},_calcDiag:function(e,t){return Math.sqrt(e*e+t*t)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(59),u=n(200),c=n(7),l=n(6),p=n(44),h=i.createClass({displayName:"SelectField",mixins:[s,p],contextTypes:{muiTheme:i.PropTypes.object},statics:{getChildrenClasses:function(){return[a,u]}},propTypes:{errorText:i.PropTypes.string,floatingLabelText:i.PropTypes.string,selectFieldRoot:i.PropTypes.object,underlineStyle:i.PropTypes.object,labelStyle:i.PropTypes.object,errorStyle:i.PropTypes.object,hintText:i.PropTypes.string,id:i.PropTypes.string,multiLine:i.PropTypes.bool,onBlur:i.PropTypes.func,onChange:i.PropTypes.func,onFocus:i.PropTypes.func,onKeyDown:i.PropTypes.func,onEnterKeyDown:i.PropTypes.func,type:i.PropTypes.string,rows:i.PropTypes.number,inputStyle:i.PropTypes.object,iconStyle:i.PropTypes.object,floatingLabelStyle:i.PropTypes.object,autoWidth:i.PropTypes.bool,menuItems:i.PropTypes.array.isRequired,menuItemStyle:i.PropTypes.object,selectedIndex:i.PropTypes.number},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},getDefaultProps:function(){return{fullWidth:!1}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getStyles:function(){var e={root:{height:46,position:"relative",width:"100%",top:16,fontSize:16},label:{paddingLeft:0,top:4,width:"100%"},icon:{top:20,right:0},underline:{borderTop:"none"},input:{},error:{}};return this.props.floatingLabelText?e.error.bottom=-15:this.props.hintText?(e.root.top=-5,e.label.top=1,e.icon.top=17):e.root.top=-8,e},render:function(){var e=this.getStyles(),t=this.props,n=t.style,s=t.labelStyle,c=t.iconStyle,l=t.underlineStyle,p=t.errorStyle,h=t.selectFieldRoot,d=t.menuItems,f=t.disabled,m=t.floatingLabelText,v=t.floatingLabelStyle,y=t.hintText,g=t.fullWidth,b=t.errorText,w=r(t,["style","labelStyle","iconStyle","underlineStyle","errorStyle","selectFieldRoot","menuItems","disabled","floatingLabelText","floatingLabelStyle","hintText","fullWidth","errorText"]),E={style:this.mergeAndPrefix(e.input,n),floatingLabelText:m,floatingLabelStyle:v,hintText:y||m?y:" ",fullWidth:g,errorText:b,errorStyle:this.mergeAndPrefix(e.error,p)},T={menuItems:d,disabled:f,style:this.mergeAndPrefix(e.root,h),labelStyle:this.mergeAndPrefix(e.label,s),iconStyle:this.mergeAndPrefix(e.icon,c),underlineStyle:this.mergeAndPrefix(e.underline,l),autoWidth:!1};return i.createElement(a,E,i.createElement(u,o({},T,w)))}});e.exports=h},function(e,t){"use strict";e.exports={iconSize:24,desktopGutter:24,desktopGutterMore:32,desktopGutterLess:16,desktopGutterMini:8,desktopKeylineIncrement:64,desktopDropDownMenuItemHeight:32,desktopDropDownMenuFontSize:15,desktopLeftNavMenuItemHeight:48,desktopSubheaderHeight:48,desktopToolbarHeight:56}},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(46),s=r.createClass({displayName:"NavigationArrowDropDown",mixins:[o],render:function(){return r.createElement(i,this.props,r.createElement("path",{d:"M7 10l5 5 5-5z"}))}});e.exports=s},function(e,t,n){"use strict";var r=n(61);e.exports={_testSupportedProps:function(e){var t=void 0,n=document.createElement("div");for(t in e)if(e.hasOwnProperty(t)&&void 0!==n.style[t])return e[t]},transitionEndEventName:function(){return this._testSupportedProps({transition:"transitionend",OTransition:"otransitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"})},animationEndEventName:function(){return this._testSupportedProps({animation:"animationend","-o-animation":"oAnimationEnd","-moz-animation":"animationend","-webkit-animation":"webkitAnimationEnd"})},onTransitionEnd:function(e,t){var n=this.transitionEndEventName();r.once(e,n,function(){return t()})},onAnimationEnd:function(e,t){var n=this.animationEndEventName();r.once(e,n,function(){return t()})}}},function(e,t){"use strict";e.exports={isDescendant:function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},offset:function(e){var t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},getStyleAttributeAsNumber:function(e,t){var n=e.style[t],r=0;return n&&n.length&&(r=parseInt(n)),r},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},hasClass:function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)},toggleClass:function(e,t){this.hasClass(e,t)?this.removeClass(e,t):this.addClass(e,t)},forceRedraw:function(e){var t=e.style.display;e.style.display="none",e.style.display=t},withoutTransition:function(e,t){var n=e.style.transition;e.style.transition=null,t(),this.forceRedraw(e),e.style.transition=n}}},function(e,t,n){"use strict";var r=n(22),o=n(47);e.exports={mergeAndPrefix:function(){var e=o.merge.apply(this,arguments);return r.all(e)}}},function(e,t){"use strict";var n=0;e.exports={generate:function(){return"mui-id-"+n++}}},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){o.forEach(function(t){r[n(t,e)]=r[e]})});var i={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},s={isUnitlessNumber:r,shorthandPropertyExpansions:i};e.exports=s},function(e,t,n){(function(t){"use strict";var r=n(129),o=n(12),i=n(292),s=n(297),a=n(304),u=n(308),c=n(9),l=u(function(e){return a(e)}),p="cssFloat";if(o.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(p="styleFloat"),"production"!==t.env.NODE_ENV)var h=/^(?:webkit|moz|o)[A-Z]/,d=/;\s*$/,f={},m={},v=function(e){f.hasOwnProperty(e)&&f[e]||(f[e]=!0,"production"!==t.env.NODE_ENV?c(!1,"Unsupported style property %s. Did you mean %s?",e,i(e)):null)},y=function(e){f.hasOwnProperty(e)&&f[e]||(f[e]=!0,"production"!==t.env.NODE_ENV?c(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)):null)},g=function(e,n){m.hasOwnProperty(n)&&m[n]||(m[n]=!0,"production"!==t.env.NODE_ENV?c(!1,'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,n.replace(d,"")):null)},b=function(e,t){e.indexOf("-")>-1?v(e):h.test(e)?y(e):d.test(t)&&g(e,t)};var w={createMarkupForStyles:function(e){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];"production"!==t.env.NODE_ENV&&b(r,o),null!=o&&(n+=l(r)+":",n+=s(r,o)+";")}return n||null},setValueForStyles:function(e,n){var o=e.style;for(var i in n)if(n.hasOwnProperty(i)){"production"!==t.env.NODE_ENV&&b(i,n[i]);var a=s(i,n[i]);if("float"===i&&(i=p),a)o[i]=a;else{var u=r.shorthandPropertyExpansions[i];if(u)for(var c in u)o[c]="";else o[i]=""}}}};e.exports=w}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){if(a)for(var e in u){var n=u[e],r=a.indexOf(e);if("production"!==t.env.NODE_ENV?s(r>-1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e):s(r>-1),!c.plugins[r]){"production"!==t.env.NODE_ENV?s(n.extractEvents,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e):s(n.extractEvents),c.plugins[r]=n;var i=n.eventTypes;for(var l in i)"production"!==t.env.NODE_ENV?s(o(i[l],n,l),"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",l,e):s(o(i[l],n,l))}}}function o(e,n,r){"production"!==t.env.NODE_ENV?s(!c.eventNameDispatchConfigs.hasOwnProperty(r),"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",r):s(!c.eventNameDispatchConfigs.hasOwnProperty(r)),c.eventNameDispatchConfigs[r]=e;var o=e.phasedRegistrationNames;if(o){for(var a in o)if(o.hasOwnProperty(a)){var u=o[a];i(u,n,r)}return!0}return e.registrationName?(i(e.registrationName,n,r),!0):!1}function i(e,n,r){"production"!==t.env.NODE_ENV?s(!c.registrationNameModules[e],"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e):s(!c.registrationNameModules[e]),c.registrationNameModules[e]=n,c.registrationNameDependencies[e]=n.eventTypes[r].dependencies}var s=n(2),a=null,u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){"production"!==t.env.NODE_ENV?s(!a,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."):s(!a),a=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var n=!1;for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];u.hasOwnProperty(o)&&u[o]===i||("production"!==t.env.NODE_ENV?s(!u[o],"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",o):s(!u[o]),u[o]=i,n=!0)}n&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=c.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){a=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,t){this.forEachFunction=e,this.forEachContext=t}function o(e,t,n,r){var o=e;o.forEachFunction.call(o.forEachContext,t,r)}function i(e,t,n){if(null==e)return e;var i=r.getPooled(t,n);d(e,o,i),r.release(i)}function s(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function a(e,n,r,o){var i=e,s=i.mapResult,a=!s.hasOwnProperty(r);if("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?f(a,"ReactChildren.map(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",r):null),a){var u=i.mapFunction.call(i.mapContext,n,o);s[r]=u}}function u(e,t,n){if(null==e)return e;var r={},o=s.getPooled(r,t,n);return d(e,a,o),s.release(o),h.create(r)}function c(e,t,n,r){return null}function l(e,t){return d(e,c,null)}var p=n(23),h=n(37),d=n(157),f=n(9),m=p.twoArgumentPooler,v=p.threeArgumentPooler;p.addPoolingTo(r,m),p.addPoolingTo(s,v);var y={forEach:i,map:u,count:l};e.exports=y}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,t){this.props=e,this.context=t}var o=n(86),i=n(2),s=n(9);if(r.prototype.setState=function(e,n){"production"!==t.env.NODE_ENV?i("object"==typeof e||"function"==typeof e||null==e,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):i("object"==typeof e||"function"==typeof e||null==e),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?s(null!=e,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."):null),o.enqueueSetState(this,e),n&&o.enqueueCallback(this,n)},r.prototype.forceUpdate=function(e){o.enqueueForceUpdate(this),e&&o.enqueueCallback(this,e)},"production"!==t.env.NODE_ENV){var a={getDOMNode:["getDOMNode","Use React.findDOMNode(component) instead."],
+isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceProps:["replaceProps","Instead, call React.render again at the top level."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."],setProps:["setProps","Instead, call React.render again at the top level."]},u=function(e,n){try{Object.defineProperty(r.prototype,e,{get:function(){return void("production"!==t.env.NODE_ENV?s(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1]):null)}})}catch(o){}};for(var c in a)a.hasOwnProperty(c)&&u(c,a[c])}e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}var o=n(81),i=n(82),s=n(25),a=n(8),u=n(51),c=n(35),l=n(84),p=n(65),h=n(29),d=n(85),f=n(66),m=n(38),v=n(16),y=n(5),g=n(52),b=n(2),w=n(95),E=n(9),T=1,x={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(e,n,r){this._context=r,this._mountOrder=T++,this._rootNodeID=e;var o=this._processProps(this._currentElement.props),i=this._processContext(this._currentElement._context),s=p.getComponentClassForElement(this._currentElement),a=new s(o,i);"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?E(null!=a.render,"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render` in your component or you may have accidentally tried to render an element whose type is a function that isn't a React component.",s.displayName||s.name||"Component"):null),a.props=o,a.context=i,a.refs=g,this._instance=a,c.set(a,this),"production"!==t.env.NODE_ENV&&this._warnIfContextsDiffer(this._currentElement._context,r),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?E(!a.getInitialState||a.getInitialState.isReactClassApproved,"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",this.getName()||"a component"):null,"production"!==t.env.NODE_ENV?E(!a.getDefaultProps||a.getDefaultProps.isReactClassApproved,"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",this.getName()||"a component"):null,"production"!==t.env.NODE_ENV?E(!a.propTypes,"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",this.getName()||"a component"):null,"production"!==t.env.NODE_ENV?E(!a.contextTypes,"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",this.getName()||"a component"):null,"production"!==t.env.NODE_ENV?E("function"!=typeof a.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",this.getName()||"A component"):null);var u=a.state;void 0===u&&(a.state=u=null),"production"!==t.env.NODE_ENV?b("object"==typeof u&&!Array.isArray(u),"%s.state: must be set to an object or null",this.getName()||"ReactCompositeComponent"):b("object"==typeof u&&!Array.isArray(u)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var h,d,f=l.currentlyMountingInstance;l.currentlyMountingInstance=this;try{a.componentWillMount&&(a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),h=this._getValidatedChildContext(r),d=this._renderValidatedComponent(h)}finally{l.currentlyMountingInstance=f}this._renderedComponent=this._instantiateReactComponent(d,this._currentElement.type);var v=m.mountComponent(this._renderedComponent,e,n,this._mergeChildContext(r,h));return a.componentDidMount&&n.getReactMountReady().enqueue(a.componentDidMount,a),v},unmountComponent:function(){var e=this._instance;if(e.componentWillUnmount){var t=l.currentlyUnmountingInstance;l.currentlyUnmountingInstance=this;try{e.componentWillUnmount()}finally{l.currentlyUnmountingInstance=t}}m.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,c.remove(e)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=a.cloneAndReplaceProps(n,y({},n.props,e)),v.enqueueUpdate(this,t)},_maskContext:function(e){var t=null;if("string"==typeof this._currentElement.type)return g;var n=this._currentElement.type.contextTypes;if(!n)return g;t={};for(var r in n)t[r]=e[r];return t},_processContext:function(e){var n=this._maskContext(e);if("production"!==t.env.NODE_ENV){var r=p.getComponentClassForElement(this._currentElement);r.contextTypes&&this._checkPropTypes(r.contextTypes,n,d.context)}return n},_getValidatedChildContext:function(e){var n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"production"!==t.env.NODE_ENV?b("object"==typeof n.constructor.childContextTypes,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",this.getName()||"ReactCompositeComponent"):b("object"==typeof n.constructor.childContextTypes),"production"!==t.env.NODE_ENV&&this._checkPropTypes(n.constructor.childContextTypes,r,d.childContext);for(var o in r)"production"!==t.env.NODE_ENV?b(o in n.constructor.childContextTypes,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',this.getName()||"ReactCompositeComponent",o):b(o in n.constructor.childContextTypes);return r}return null},_mergeChildContext:function(e,t){return t?y({},e,t):e},_processProps:function(e){if("production"!==t.env.NODE_ENV){var n=p.getComponentClassForElement(this._currentElement);n.propTypes&&this._checkPropTypes(n.propTypes,e,d.prop)}return e},_checkPropTypes:function(e,n,o){var i=this.getName();for(var s in e)if(e.hasOwnProperty(s)){var a;try{"production"!==t.env.NODE_ENV?b("function"==typeof e[s],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",i||"React class",f[o],s):b("function"==typeof e[s]),a=e[s](n,s,i,o)}catch(u){a=u}if(a instanceof Error){var c=r(this);o===d.prop?"production"!==t.env.NODE_ENV?E(!1,"Failed Composite propType: %s%s",a.message,c):null:"production"!==t.env.NODE_ENV?E(!1,"Failed Context Types: %s%s",a.message,c):null}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&m.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&("production"!==t.env.NODE_ENV&&u.checkAndWarnForMutatedProps(this._currentElement),this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context))},_warnIfContextsDiffer:function(e,n){e=this._maskContext(e),n=this._maskContext(n);for(var r=Object.keys(n).sort(),o=this.getName()||"ReactCompositeComponent",i=0;i<r.length;i++){var s=r[i];"production"!==t.env.NODE_ENV?E(e[s]===n[s],"owner-based and parent-based contexts differ (values: `%s` vs `%s`) for key (%s) while mounting %s (see: http://fb.me/react-context-by-parent)",e[s],n[s],s,o):null}},updateComponent:function(e,n,r,o,i){var s=this._instance,a=s.context,u=s.props;n!==r&&(a=this._processContext(r._context),u=this._processProps(r.props),"production"!==t.env.NODE_ENV&&null!=i&&this._warnIfContextsDiffer(r._context,i),s.componentWillReceiveProps&&s.componentWillReceiveProps(u,a));var c=this._processPendingState(u,a),l=this._pendingForceUpdate||!s.shouldComponentUpdate||s.shouldComponentUpdate(u,c,a);"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?E("undefined"!=typeof l,"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",this.getName()||"ReactCompositeComponent"):null),l?(this._pendingForceUpdate=!1,this._performComponentUpdate(r,u,c,a,e,i)):(this._currentElement=r,this._context=i,s.props=u,s.state=c,s.context=a)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=y({},o?r[0]:n.state),s=o?1:0;s<r.length;s++){var a=r[s];y(i,"function"==typeof a?a.call(n,i,e,t):a)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var s=this._instance,a=s.props,u=s.state,c=s.context;s.componentWillUpdate&&s.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,s.props=t,s.state=n,s.context=r,this._updateRenderedComponent(o,i),s.componentDidUpdate&&o.getReactMountReady().enqueue(s.componentDidUpdate.bind(s,a,u,c),s)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._getValidatedChildContext(),i=this._renderValidatedComponent(o);if(w(r,i))m.receiveComponent(n,i,e,this._mergeChildContext(t,o));else{var s=this._rootNodeID,a=n._rootNodeID;m.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(i,this._currentElement.type);var u=m.mountComponent(this._renderedComponent,s,e,this._mergeChildContext(t,o));this._replaceNodeWithMarkupByID(a,u)}},_replaceNodeWithMarkupByID:function(e,t){o.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,n=e.render();return"production"!==t.env.NODE_ENV&&"undefined"==typeof n&&e.render._isMockFunction&&(n=null),n},_renderValidatedComponent:function(e){var n,r=i.current;i.current=this._mergeChildContext(this._currentElement._context,e),s.current=this;try{n=this._renderValidatedComponentWithoutOwnerOrContext()}finally{i.current=r,s.current=null}return"production"!==t.env.NODE_ENV?b(null===n||n===!1||a.isValidElement(n),"%s.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.",this.getName()||"ReactCompositeComponent"):b(null===n||n===!1||a.isValidElement(n)),n},attachRef:function(e,t){var n=this.getPublicInstance(),r=n.refs===g?n.refs={}:n.refs;r[e]=t.getPublicInstance()},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){return this._instance},_instantiateReactComponent:null};h.measureMethods(x,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var C={Mixin:x};e.exports=C}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(130),o=n(235),i=n(49),s=n(18),a=n(29),u=n(2),c=n(94),l={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},p={updatePropertyByID:function(e,n,r){var o=s.getNode(e);"production"!==t.env.NODE_ENV?u(!l.hasOwnProperty(n),"updatePropertyByID(...): %s",l[n]):u(!l.hasOwnProperty(n)),null!=r?i.setValueForProperty(o,n,r):i.deleteValueForProperty(o,n)},deletePropertyByID:function(e,n,r){var o=s.getNode(e);"production"!==t.env.NODE_ENV?u(!l.hasOwnProperty(n),"updatePropertyByID(...): %s",l[n]):u(!l.hasOwnProperty(n)),i.deleteValueForProperty(o,n,r)},updateStylesByID:function(e,t){var n=s.getNode(e);r.setValueForStyles(n,t)},updateInnerHTMLByID:function(e,t){var n=s.getNode(e);c(n,t)},updateTextContentByID:function(e,t){var n=s.getNode(e);o.updateTextContent(n,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=s.getNode(e);o.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=s.getNode(e[n].parentID);o.processUpdates(e,t)}};a.measureMethods(p,"ReactDOMIDOperations",{updatePropertyByID:"updatePropertyByID",deletePropertyByID:"deletePropertyByID",updateStylesByID:"updateStylesByID",updateInnerHTMLByID:"updateInnerHTMLByID",updateTextContentByID:"updateTextContentByID",dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),e.exports=p}).call(t,n(1))},function(e,t,n){"use strict";var r=n(49),o=n(80),i=n(83),s=n(5),a=n(70),u=function(e){};s(u.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){this._rootNodeID=e;var o=a(this._stringText);return t.renderToStaticMarkup?o:"<span "+r.createMarkupForID(e)+">"+o+"</span>"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;n!==this._stringText&&(this._stringText=n,i.BackendIDOperations.updateTextContentByID(this._rootNodeID,n))}},unmountComponent:function(){o.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=u},function(e,t,n){"use strict";function r(e){return Math.floor(100*e)/100}function o(e,t,n){e[t]=(e[t]||0)+n}var i=n(30),s=n(260),a=n(18),u=n(29),c=n(310),l={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){l._injected||u.injection.injectMeasure(l.measure),l._allMeasurements.length=0,u.enableMeasure=!0},stop:function(){u.enableMeasure=!1},getLastMeasurements:function(){return l._allMeasurements},printExclusive:function(e){e=e||l._allMeasurements;var t=s.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":r(e.inclusive),"Exclusive mount time (ms)":r(e.exclusive),"Exclusive render time (ms)":r(e.render),"Mount time per instance (ms)":r(e.exclusive/e.count),"Render time per instance (ms)":r(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||l._allMeasurements;var t=s.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":r(e.time),Instances:e.count}})),console.log("Total time:",s.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){var t=s.getInclusiveSummary(e,!0);return t.map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||l._allMeasurements,console.table(l.getMeasurementsSummaryMap(e)),console.log("Total time:",s.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||l._allMeasurements;var t=s.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[i.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",s.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,r){var o=l._allMeasurements[l._allMeasurements.length-1].writes;o[e]=o[e]||[],o[e].push({type:t,time:n,args:r})},measure:function(e,t,n){return function(){for(var r=[],i=0,s=arguments.length;s>i;i++)r.push(arguments[i]);var u,p,h;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return l._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0}),h=c(),p=n.apply(this,r),l._allMeasurements[l._allMeasurements.length-1].totalTime=c()-h,p;if("_mountImageIntoNode"===t||"ReactDOMIDOperations"===e){if(h=c(),p=n.apply(this,r),u=c()-h,"_mountImageIntoNode"===t){var d=a.getID(r[1]);l._recordWrite(d,t,u,r[0])}else"dangerouslyProcessChildrenUpdates"===t?r[0].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=r[1][e.markupIndex]),l._recordWrite(e.parentID,e.type,u,t)}):l._recordWrite(r[0],t,u,Array.prototype.slice.call(r,1));return p}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return n.apply(this,r);if("string"==typeof this._currentElement.type)return n.apply(this,r);var f="mountComponent"===t?r[0]:this._rootNodeID,m="_renderValidatedComponent"===t,v="mountComponent"===t,y=l._mountStack,g=l._allMeasurements[l._allMeasurements.length-1];if(m?o(g.counts,f,1):v&&y.push(0),h=c(),p=n.apply(this,r),u=c()-h,m)o(g.render,f,u);else if(v){var b=y.pop();y[y.length-1]+=u,o(g.exclusive,f,u-b),o(g.inclusive,f,u)}else o(g.inclusive,f,u);return g.displayNames[f]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},p}}};e.exports=l},function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=n(256),i=n(146),s=n(148),a=n(149),u={hasSelectionCapabilities:function(e){return e&&("INPUT"===e.nodeName&&"text"===e.type||"TEXTAREA"===e.nodeName||"true"===e.contentEditable)},getSelectionInformation:function(){var e=a();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=a(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),s(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&"INPUT"===e.nodeName){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&"INPUT"===e.nodeName){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};e.exports=u},function(e,t,n){"use strict";var r=n(290),o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(">"," "+o.CHECKSUM_ATTR_NAME+'="'+t+'">')},canReuseMarkup:function(e,t){var n=t.getAttribute(o.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=r(e);return i===n}};e.exports=o},function(e,t,n){"use strict";var r=n(53),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,TEXT_CONTENT:null});e.exports=o},function(e,t,n){"use strict";function r(e){function t(t,n,r,o,i){if(o=o||E,null==n[r]){var s=b[i];return t?new Error("Required "+s+" `"+r+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o){var i=t[n],s=m(i);if(s!==e){var a=b[o],u=v(i);return new Error("Invalid "+a+" `"+n+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `"+e+"`."))}return null}return r(t)}function i(){return r(w.thatReturns(null))}function s(e){function t(t,n,r,o){var i=t[n];if(!Array.isArray(i)){var s=b[o],a=m(i);return new Error("Invalid "+s+" `"+n+"` of type "+("`"+a+"` supplied to `"+r+"`, expected an array."))}for(var u=0;u<i.length;u++){var c=e(i,u,r,o);if(c instanceof Error)return c}return null}return r(t)}function a(){function e(e,t,n,r){if(!y.isValidElement(e[t])){var o=b[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactElement."))}return null}return r(e)}function u(e){function t(t,n,r,o){if(!(t[n]instanceof e)){var i=b[o],s=e.name||E;return new Error("Invalid "+i+" `"+n+"` supplied to "+("`"+r+"`, expected instance of `"+s+"`."))}return null}return r(t)}function c(e){function t(t,n,r,o){for(var i=t[n],s=0;s<e.length;s++)if(i===e[s])return null;var a=b[o],u=JSON.stringify(e);return new Error("Invalid "+a+" `"+n+"` of value `"+i+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return r(t)}function l(e){function t(t,n,r,o){var i=t[n],s=m(i);if("object"!==s){var a=b[o];return new Error("Invalid "+a+" `"+n+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var u in i)if(i.hasOwnProperty(u)){var c=e(i,u,r,o);if(c instanceof Error)return c}return null}return r(t)}function p(e){function t(t,n,r,o){for(var i=0;i<e.length;i++){var s=e[i];if(null==s(t,n,r,o))return null}var a=b[o];return new Error("Invalid "+a+" `"+n+"` supplied to "+("`"+r+"`."))}return r(t)}function h(){function e(e,t,n,r){if(!f(e[t])){var o=b[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function d(e){function t(t,n,r,o){var i=t[n],s=m(i);if("object"!==s){var a=b[o];return new Error("Invalid "+a+" `"+n+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var c=e[u];if(c){var l=c(i,u,r,o);if(l)return l}}return null}return r(t)}function f(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(f);if(null===e||y.isValidElement(e))return!0;e=g.extractIfFragment(e);for(var t in e)if(!f(e[t]))return!1;return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function v(e){var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}var y=n(8),g=n(37),b=n(66),w=n(21),E="<<anonymous>>",T=a(),x=h(),C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:s,element:T,instanceOf:u,node:x,objectOf:l,oneOf:c,oneOfType:p,shape:d};e.exports=C},function(e,t,n){"use strict";function r(){this.listenersToPut=[]}var o=n(23),i=n(33),s=n(5);s(r.prototype,{enqueuePutListener:function(e,t,n){this.listenersToPut.push({rootNodeID:e,propKey:t,propValue:n})},putListeners:function(){for(var e=0;e<this.listenersToPut.length;e++){var t=this.listenersToPut[e];i.putListener(t.rootNodeID,t.propKey,t.propValue)}},reset:function(){this.listenersToPut.length=0},destructor:function(){this.reset()}}),o.addPoolingTo(r),e.exports=r},function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:n};e.exports=r},function(e,t,n){"use strict";var r=n(32),o=n(275),i=n(5),s=n(145),a=n(21),u=r.createClass({displayName:"ReactTransitionGroup",propTypes:{component:r.PropTypes.any,childFactory:r.PropTypes.func},getDefaultProps:function(){return{component:"span",childFactory:a.thatReturnsArgument}},getInitialState:function(){return{children:o.getChildMapping(this.props.children)}},componentWillMount:function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},componentDidMount:function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},componentWillReceiveProps:function(e){var t=o.getChildMapping(e.children),n=this.state.children;this.setState({children:o.mergeChildMappings(n,t)});var r;for(r in t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var s=t&&t.hasOwnProperty(r);!n[r]||s||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},componentDidUpdate:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},performAppear:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)},_handleDoneAppearing:function(e){var t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performEnter:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)},_handleDoneEntering:function(e){var t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performLeave:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)},_handleDoneLeaving:function(e){var t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);if(n&&n.hasOwnProperty(e))this.performEnter(e);else{var r=i({},this.state.children);delete r[e],this.setState({children:r})}},render:function(){var e=[];for(var t in this.state.children){var n=this.state.children[t];n&&e.push(s(this.props.childFactory(n),{ref:t,key:t}))}return r.createElement(this.props.component,this.props,e)}});e.exports=u},function(e,t,n){(function(t){"use strict";function r(e,n){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?a(!e.ref,"You are calling cloneWithProps() on a child with a ref. This is dangerous because you're creating a new child which will not be added as a ref to its parent."):null);var r=i.mergeProps(n,e.props);return!r.hasOwnProperty(u)&&e.props.hasOwnProperty(u)&&(r.children=e.props.children),o.createElement(e.type,r)}var o=n(8),i=n(268),s=n(17),a=n(9),u=s({children:null});e.exports=r}).call(t,n(1))},function(e,t,n){function r(e,t){return e&&t?e===t?!0:o(e)?!1:o(t)?r(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var o=n(305);e.exports=r},function(e,t,n){(function(t){"use strict";function r(e){if("production"!==t.env.NODE_ENV){var n=o.current;null!==n&&("production"!==t.env.NODE_ENV?c(n._warnedAboutRefsInRender,"%s is accessing getDOMNode or findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",n.getName()||"A component"):null,n._warnedAboutRefsInRender=!0)}return null==e?null:u(e)?e:i.has(e)?s.getNodeFromInstance(e):("production"!==t.env.NODE_ENV?a(null==e.render||"function"!=typeof e.render,"Component (with keys: %s) contains `render` method but is not mounted in the DOM",Object.keys(e)):a(null==e.render||"function"!=typeof e.render),void("production"!==t.env.NODE_ENV?a(!1,"Element appears to be neither ReactComponent nor DOMNode (keys: %s)",Object.keys(e)):a(!1)))}var o=n(25),i=n(35),s=n(18),a=n(2),u=n(153),c=n(9);e.exports=r}).call(t,n(1))},function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}e.exports=n},function(e,t){function n(){try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){(function(t){function r(e){return"production"!==t.env.NODE_ENV?i(!!s,"Markup wrapping node not initialized"):i(!!s),h.hasOwnProperty(e)||(e="*"),a.hasOwnProperty(e)||("*"===e?s.innerHTML="<link />":s.innerHTML="<"+e+"></"+e+">",a[e]=!s.firstChild),a[e]?h[e]:null}var o=n(12),i=n(2),s=o.canUseDOM?document.createElement("div"):null,a={circle:!0,clipPath:!0,defs:!0,ellipse:!0,g:!0,line:!0,linearGradient:!0,path:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,text:!0},u=[1,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,"<svg>","</svg>"],h={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l,circle:p,clipPath:p,defs:p,ellipse:p,g:p,line:p,linearGradient:p,path:p,polygon:p,polyline:p,radialGradient:p,rect:p,stop:p,text:p};e.exports=r}).call(t,n(1))},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(12),i=null;e.exports=r},function(e,t){function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t){"use strict";function n(e){return e&&("INPUT"===e.nodeName&&r[e.type]||"TEXTAREA"===e.nodeName)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return"production"!==t.env.NODE_ENV?i(o.isValidElement(e),"onlyChild must be passed a children with exactly one child."):i(o.isValidElement(e)),e}var o=n(8),i=n(2);e.exports=r}).call(t,n(1))},function(e,t){"use strict";function n(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return y[e]}function o(e,t){return e&&null!=e.key?s(e.key):t.toString(36)}function i(e){return(""+e).replace(g,r)}function s(e){return"$"+i(e)}function a(e,n,r,i,u){var p=typeof e;if(("undefined"===p||"boolean"===p)&&(e=null),null===e||"string"===p||"number"===p||c.isValidElement(e))return i(u,e,""===n?m+o(e,0):n,r),1;var y,g,w,E=0;if(Array.isArray(e))for(var T=0;T<e.length;T++)y=e[T],g=(""!==n?n+v:m)+o(y,T),w=r+E,E+=a(y,g,w,i,u);else{var x=h(e);if(x){var C,_=x.call(e);if(x!==e.entries)for(var S=0;!(C=_.next()).done;)y=C.value,g=(""!==n?n+v:m)+o(y,S++),w=r+E,E+=a(y,g,w,i,u);else for("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?f(b,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead."):null,b=!0);!(C=_.next()).done;){var N=C.value;N&&(y=N[1],g=(""!==n?n+v:m)+s(N[0])+v+o(y,0),w=r+E,E+=a(y,g,w,i,u))}}else if("object"===p){"production"!==t.env.NODE_ENV?d(1!==e.nodeType,"traverseAllChildren(...): Encountered an invalid child; DOM elements are not valid children of React components."):d(1!==e.nodeType);var O=l.extract(e);for(var D in O)O.hasOwnProperty(D)&&(y=O[D],g=(""!==n?n+v:m)+s(D)+v+o(y,0),w=r+E,E+=a(y,g,w,i,u))}}return E}function u(e,t,n){return null==e?0:a(e,"",0,t,n)}var c=n(8),l=n(37),p=n(34),h=n(150),d=n(2),f=n(9),m=p.SEPARATOR,v=":",y={"=":"=0",".":"=1",":":"=2"},g=/[=.:]/g,b=!1;e.exports=u}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){return Array.isArray(e)?e.concat():e&&"object"==typeof e?s(new e.constructor,e):e}function o(e,n,r){"production"!==t.env.NODE_ENV?u(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",r,e):u(Array.isArray(e));var o=n[r];"production"!==t.env.NODE_ENV?u(Array.isArray(o),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",r,o):u(Array.isArray(o))}function i(e,n){if("production"!==t.env.NODE_ENV?u("object"==typeof n,"update(): You provided a key path to update() that did not contain one of %s. Did you forget to include {%s: ...}?",v.join(", "),d):u("object"==typeof n),c.call(n,d))return"production"!==t.env.NODE_ENV?u(1===Object.keys(n).length,"Cannot have more than one key in an object with %s",d):u(1===Object.keys(n).length),n[d];var a=r(e);if(c.call(n,f)){var g=n[f];"production"!==t.env.NODE_ENV?u(g&&"object"==typeof g,"update(): %s expects a spec of type 'object'; got %s",f,g):u(g&&"object"==typeof g),
+"production"!==t.env.NODE_ENV?u(a&&"object"==typeof a,"update(): %s expects a target of type 'object'; got %s",f,a):u(a&&"object"==typeof a),s(a,n[f])}c.call(n,l)&&(o(e,n,l),n[l].forEach(function(e){a.push(e)})),c.call(n,p)&&(o(e,n,p),n[p].forEach(function(e){a.unshift(e)})),c.call(n,h)&&("production"!==t.env.NODE_ENV?u(Array.isArray(e),"Expected %s target to be an array; got %s",h,e):u(Array.isArray(e)),"production"!==t.env.NODE_ENV?u(Array.isArray(n[h]),"update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",h,n[h]):u(Array.isArray(n[h])),n[h].forEach(function(e){"production"!==t.env.NODE_ENV?u(Array.isArray(e),"update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",h,n[h]):u(Array.isArray(e)),a.splice.apply(a,e)})),c.call(n,m)&&("production"!==t.env.NODE_ENV?u("function"==typeof n[m],"update(): expected spec of %s to be a function; got %s.",m,n[m]):u("function"==typeof n[m]),a=n[m](a));for(var b in n)y.hasOwnProperty(b)&&y[b]||(a[b]=i(e[b],n[b]));return a}var s=n(5),a=n(17),u=n(2),c={}.hasOwnProperty,l=a({$push:null}),p=a({$unshift:null}),h=a({$splice:null}),d=a({$set:null}),f=a({$merge:null}),m=a({$apply:null}),v=[l,p,h,d,f,m],y={};v.forEach(function(e){y[e]=!0}),e.exports=i}).call(t,n(1))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(40),a=r(s),u=n(96),c=r(u),l=n(209),p=r(l),h=n(208),d=r(h),f=n(36),m=r(f),v=i["default"].createClass({displayName:"DataTableContextMenu",propTypes:{actions:i["default"].PropTypes.objectOf(i["default"].PropTypes.func),activeItem:i["default"].PropTypes.object,coords:i["default"].PropTypes.shape({X:i["default"].PropTypes.number,Y:i["default"].PropTypes.number}),icons:i["default"].PropTypes.object},mixins:[c["default"]],getDefaultProps:function(){return{coords:{X:0,Y:0},icons:{}}},getInitialState:function(){return{actions:this.props.actions||{}}},render:function(){var e=this,t=a["default"]("data-table__context-menu"),n=Object.keys(this.state.actions).filter(function(t){return"function"==typeof e.state.actions[t]});return i["default"].createElement("div",{className:t,style:{position:"absolute",top:this.props.coords.Y,left:this.props.coords.X}},i["default"].createElement(p["default"],{openDirection:"bottom-right",desktop:!0},n.map(function(t){var n=e.props.icons[t]?e.props.icons[t]:t;return i["default"].createElement(d["default"],{key:t,className:"data-table__context-menu__item",onClick:e.handleClick.bind(e,t),primaryText:e.getTranslation(t),leftIcon:i["default"].createElement(m["default"],{className:"material-icons"},n)})})))},handleClick:function(e){this.props.actions[e].apply(this.props.actions,[this.props.activeItem])}});t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(71),i=n(3),s=r(i),a=n(40),u=r(a),c=n(96),l=r(c),p=s["default"].createClass({displayName:"DataTableHeader",propTypes:{isOdd:s["default"].PropTypes.bool,isEven:s["default"].PropTypes.bool,name:s["default"].PropTypes.string.isRequired},mixins:[l["default"]],render:function(){var e=u["default"]("data-table__headers__header",{"data-table__headers__header--even":!this.props.isOdd,"data-table__headers__header--odd":this.props.isOdd});return s["default"].createElement("div",{className:e},this.getTranslation(o.camelCaseToUnderscores(this.props.name)))}});t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(40),a=r(s),u=n(71),c=i["default"].createClass({displayName:"DataTableRow",propTypes:{columns:i["default"].PropTypes.arrayOf(i["default"].PropTypes.string).isRequired,dataSource:i["default"].PropTypes.object,isEven:i["default"].PropTypes.bool,isOdd:i["default"].PropTypes.bool,itemClicked:i["default"].PropTypes.func.isRequired},render:function(){var e=this,t=a["default"]("data-table__rows__row",{"data-table__rows__row--even":!this.props.isOdd,"data-table__rows__row--odd":this.props.isOdd}),n=this.props.columns.map(function(t,n){var r=e.props.dataSource[t],o=void 0;return o=u.isObject(r)?r.displayName||r.name||r:r,i["default"].createElement("div",{key:n,className:"data-table__rows__row__column"},o)});return i["default"].createElement("div",{className:t,onContextMenu:this.handleContextClick},n)},handleContextClick:function(e){e.preventDefault(),this.props.itemClicked(e,this.props.dataSource)}});t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e,t,n){for(var r=!0;r;){var o=e,i=t,s=n;a=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var a=Object.getOwnPropertyDescriptor(o,i);if(void 0!==a){if("value"in a)return a.value;var u=a.get;return void 0===u?void 0:u.call(s)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=s,r=!0}},c=n(3),l=r(c),p=n(40),h=r(p),d=function(e){function t(){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),a(t,[{key:"render",value:function(){return null}}]),t}(l["default"].Component),f=l["default"].createClass({displayName:"FormField",propTypes:{type:l["default"].PropTypes.func.isRequired,isValid:l["default"].PropTypes.bool.isRequired,errorMessage:l["default"].PropTypes.string,fieldOptions:l["default"].PropTypes.object.isRequired,value:l["default"].PropTypes.any,updateFn:l["default"].PropTypes.func.isRequired,updateEvent:l["default"].PropTypes.oneOf(["onChange","onBlur"])},getDefaultProps:function(){return{type:d,validators:[]}},render:function(){var e=this,t=h["default"]("form-field"),n=this.props.updateFn,r=void 0;return"onBlur"===this.props.updateEvent&&(r=function(t){t.target.value!==e.props.value&&e.props.updateFn(t)},n=void 0),l["default"].createElement("div",{className:t},l["default"].createElement(this.props.type,s({errorText:this.props.errorMessage,defaultValue:this.props.value,onChange:n,onBlur:r},this.props.fieldOptions)))}});t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(54),i=r(o),s=n(167),a=r(s),u=n(166),c=r(u);r(u),!function(e,t,n){function r(e){return"[object Function]"==Object.prototype.toString.call(e)}function o(e,t,n){u.ajax({url:p()+e,headers:{"Content-type":"application/json; charset=utf-8"},method:"GET"}).success(function(e){t(e.modules,n)})}function s(e){var t,n=function(){};return n.prototype=new Error,t=new n,t.message=e,t.toString=function(){return"MenuError: "+this.message+" \n"},t}function a(e){var t,o=function(){};return e===n&&(e={renderers:[],eventsHandlers:[],name:"",hooks:{open:[],close:[]}},e.hooks.call=function(t){e.hooks[t]&&e.hooks[t].forEach(function(e){r(e)&&e.apply(t)})}),o.prototype=e,t=new o,t.render=function(n){u(document).ready(function(){e.renderers.forEach(function(e){r(e)&&e(n)}),e.eventsHandlers.forEach(function(e){r(e)&&e(document.querySelector("#"+t.name+"Button"))})})},t}var u=n,c={},l={},p=i["default"].settings.getBaseUrl=function(){var e;return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),e=window.location.origin,function(){var r,o=e.split("/");if(t.baseUrl===n)return"..";if("string"!=typeof t.baseUrl)throw new TypeError("Dhis2 settings: baseUrl should be a string");return/^http\:\/\//.test(i["default"].settings.baseUrl)?i["default"].settings.baseUrl:(""===o[o.length-1]?(o.pop(),o.push(i["default"].settings.baseUrl),r=o.join("/")):r=[e,i["default"].settings.baseUrl].join("/"),r)}}();l={ulWrapId:"menuLinkArea",aMenuLinkClasses:"menu-link drop-down-menu-link"},c.itemItemplate='<li data-id="{{id}}" data-app-name="{{name}}" data-app-action="{{baseUrl}}{{defaultAction}}"><a href="{{baseUrl}}{{defaultAction}}" class="app-menu-item"><img src="{{baseUrl}}{{icon}}" onError="javascript: this.onerror=null; this.src = \''+p()+'/icons/program.png\';"><span>{{name}}</span><div class="app-menu-item-description"><span class="bold">{{name}}</span><i class="fa fa-arrows"></i><p>{{description}}</p></div></a></li>',c.menuLink='<li id="{{id}}Button"><a id="{{id}}Link" class="{{classes}}"><i class="fa fa-{{iconName}}"></i>{{menuItemName}}</a><div class="app-menu-dropdown-wrap"><div class="app-menu-dropdown"><div class="caret-up-border"></div><div class="caret-up-background"></div><ul class="menuDropDownBox">{{menuItems}}</ul><div class="menu-drop-down-buttons"></div></div></div></li>',c.menuLinkWithScroll='<li id="{{id}}Button"><a id="{{id}}Link" class="{{classes}}"><i class="fa fa-{{iconName}}"></i>{{menuItemName}}</a><div class="app-menu-dropdown-wrap"><div class="app-menu-dropdown"><div class="caret-up-border"></div><div class="caret-up-background"></div><div class="menu-drop-down-wrap"><div class="menu-drop-down-scroll"><ul class="menuDropDownBox">{{menuItems}}</ul></div></div><div class="menu-drop-down-buttons"><div class="apps-menu-bottom-button apps-scroll apps-scroll-up"><a class="fa fa-caret-up" href="#"></a></div><div class="apps-menu-bottom-button apps-scroll apps-scroll-down"><a class="fa fa-caret-down" href="#"></a></div></div></div></div></li>',c.search='<div class="apps-search-wrap"><input class="apps-search" type="text" placeholder="{{search_apps}}"><i class="apps-search-clear fa fa-times-circle"></i></div>',c.extraLink='<div class="apps-menu-bottom-button apps-menu-more"><a href="{{url}}">{{text}}</a></div>';var h,d,f,m,v,y,g;g={ctrl:17,enter:13,slash:191,backslash:220,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40,m:77,comma:188,dot:190,isArrowKey:function(e){return e===g.arrowRight||e===g.arrowLeft||e===g.arrowDown||e===g.arrowUp}},"undefined"!=typeof angular?u=angular.element:"undefined"!=typeof jQuery&&(u=jQuery),h=function(e){function t(t){return e[t]?e[t]:void console.error("Template with name: "+t+" does not exist")}var r={};return e===n&&(e={}),r.parse=function(e,n){for(var r,o=/\{\{([A-z]+?)\}\}/,i=t(e);r=o.exec(i);)i=i.replace("{{"+r[1]+"}}",n[r[1]]||"");return i},r.get=function(t){return e[t]===n&&console.error("Template "+t+" does not exist"),e[t]},r.add=function(t,n){e[t]&&console.error("Template not allowed to be overridden using the add method, use the replace method instead"),e[t]=n},r.replace=function(t,r){e[t]===n&&console.error("No template to be replaced, use the add method to add templates"),e[t]=r},r},d=function(e,t,r,s){var p=a(),d=n;return p.template=h(),p.name=e,p.ajax=!1,p.icon=r,p.container=s,"string"==typeof t?(o(t,function(e){p.menuItems.addMenuItems(e)}),p.menuItems=i["default"].menu(e)):p.menuItems=i["default"].menu(e,t),p.template.add("menuStructure",'<ul id="{{id}}"></ul>'),p.template.add("linkItem",c.menuLink),p.template.add("menuItem",c.itemItemplate),p.isOpen=function(){var e=u(document.querySelector(p.getDropdownSelector())),t=u(e).css("display"),n=parseInt(u(e).css("left"),10)<0;return"none"===t||n?!1:!0},p.isClosed=function(){return!p.isOpen()},p.open=function(e){var t=u(document.querySelector(p.getDropdownSelector()));u(t).css("left",p.getDropDownPosition()+"px"),t.css("display","block"),e||t.attr("data-display-clicked","true"),p.hooks.call("open")},p.close=function(e){var t=u(document.querySelector(p.getDropdownSelector()));t.css("display","none"),e||t.attr("data-display-clicked","false"),p.hooks.call("close")},p.closeAll=function(){var e=document.querySelectorAll("#"+p.container+" div.app-menu-dropdown-wrap");u(e).css("display","none"),u(e).attr("data-display-clicked","false")},p.setCurrentId=function(e){d=e},p.getCurrentId=function(){return d},p.goToMenuItem=function(e){var t,r;e!==n&&(t=e.querySelector("a"),r=u(t).attr("href"),r&&(window.location=r))},p.renderMenuItems=function(e){var t="";return e.forEach(function(e){t+=p.template.parse("menuItem",{id:e.id,name:e.name,defaultAction:e.defaultAction,icon:e.icon})}),t},p.getButtonId=function(){return"#"+p.name+"Button"},p.getDropdownSelector=function(){return p.getButtonId()+" div.app-menu-dropdown-wrap"},p.getDropDownPosition=function(){var e,t=document.querySelector(p.getButtonId()),n=u(t.querySelector("div.app-menu-dropdown-wrap"));return n.css("display","block"),p.dropdownWidth=n[0].offsetWidth,p.linkPositionX=t.offsetLeft,e=p.linkPositionX-(p.dropdownWidth-t.offsetWidth),n.css("display","none"),e},p.renderers.push(function(e){var t,n;n=p.renderMenuItems(e.getApps()),t=p.template.parse("linkItem",{id:p.name,iconName:p.icon,menuItemName:e.name,classes:l.aMenuLinkClasses,menuItems:n}),null===document.querySelector("#"+p.container+" ul")&&u(document.querySelector("#"+p.container)).append(p.template.parse("menuStructure",{id:l.ulWrapId})),null!==document.querySelector("#applicationsButton")?u(document.querySelector("#applicationsButton")).before(t):u(document.querySelector("#"+p.container+" ul")).append(t)}),p.eventsHandlers.push(function(e){var t=u(e.querySelector("div.app-menu-dropdown-wrap"));u(e.querySelector("a.drop-down-menu-link")).on("click",function(){"true"===t.attr("data-display-clicked")?p.close():(p.closeAll(),p.open())}),u(e).on("mouseenter",function(){p.open(!0)}),u(e).on("mouseleave",function(){"true"!==t.attr("data-display-clicked")&&p.close(!0)}),u(window).on("resize",function(){p.closeAll()})}),p.menuItems.subscribe(p.render,!0),p.menuItems.subscribe(function(e){var t,r=document.querySelector(p.getButtonId()+" ul.menuDropDownBox");null!==r&&(t=p.renderMenuItems(e.getApps()),u(r.querySelectorAll("li")).remove(),u(r).append(t),p.setCurrentId(n))}),a(p)},v=function(e){var t=e;return t.template.replace("linkItem",c.menuLinkWithScroll),t.eventsHandlers.push(function(e){var n=e.querySelector("div.menu-drop-down-scroll"),r=e.querySelector("div.apps-scroll-up"),o=e.querySelector("div.apps-scroll-down");u(n).on("scroll",function(){n.scrollTop<10?t.menuWidth=360:t.menuWidth=384,u(n).parent().css("width",t.menuWidth+"px"),u(n).parent().parent().css("width",t.menuWidth+"px")}),u(r).on("click",function(e){e.preventDefault(),n.scrollTop=n.scrollTop-330}),u(o).on("click",function(e){var t=330;e.preventDefault(),0===n.scrollTop&&(t+=40),n.scrollTop=n.scrollTop+t})}),a(t)},f=function(e){function t(e){var t,o,i=u(e.querySelector(".apps-search")).val().toLowerCase(),s=e.querySelector("ul.menuDropDownBox");""===i?(u(e.querySelector(".apps-search-clear")).css("display","none"),e.querySelector(".apps-search").focus(),t=r.renderMenuItems(r.menuItems.getApps())):(u(e.querySelector(".apps-search-clear")).css("display","block"),o=r.menuItems.search(i),t=r.renderMenuItems(o)),u(s.querySelectorAll("li")).remove(),u(s).append(t),r.setCurrentId(n)}var r=e,o=!1,s="";return r.template.add("search",c.search),i["default"].translate.get(["app_search_placeholder"],function(e){var t=document.querySelector("#"+r.name+"Button input.apps-search");s=e.get("app_search_placeholder"),o===!0&&u(t).attr("placeholder",s)}),r.renderers.push(function(){var e=document.querySelector("#"+r.name+"Button div.menu-drop-down-scroll");u(e).prepend(r.template.parse("search",{search_apps:s})),o=!0}),r.eventsHandlers.push(function(e){var n=e.querySelector("input.apps-search");r.hooks.open.push(function(){n.focus()}),u(n).on("keyup",function(n){g.isArrowKey(n.which)||n.which===g.enter||n.which===g.ctrl||t(e)}),u(e.querySelector(".apps-search-clear")).on("click",function(){u(e.querySelector(".apps-search-clear")).css("display","none"),u(e.querySelector(".apps-search")).val(""),e.querySelector(".apps-search").focus(),t(e)})}),a(r)},m=function(e){var t=e,n=!1;return t.template.add("extraLink",c.extraLink),i["default"].translate.get([e.extraLink.text],function(r){e.extraLink.text=r.get(e.extraLink.text),n===!0&&u(document.querySelector("#"+t.name+"div.apps-menu-bottom-button")).html(e.extraLink.text)}),t.renderers.push(function(){var r=document.querySelector("#"+t.name+"Button div.menu-drop-down-buttons");e.extraLink.url=i["default"].menu.fixUrlIfNeeded(e.extraLink.url),u(r).prepend(t.template.parse("extraLink",e.extraLink)),n=!0}),a(t)},y=function(e){var t=e;return t.eventsHandlers.push(function(e){function r(n){function r(e,t,n){var o,i;0>=n||(o=t-e.scrollTop-49,i=o/n*10,setTimeout(function(){e.scrollTop=e.scrollTop+i,e.scrollTop!==t&&i!==1/0&&r(e,t,n-10)},10))}u(t.selectedElement).toggleClass("selected"),t.selectedElement=i[n],u(t.selectedElement).toggleClass("selected"),e.querySelector("div.menu-drop-down-scroll")&&r(e.querySelector("div.menu-drop-down-scroll"),t.selectedElement.offsetTop,50),t.setCurrentId(n)}var o,i,s;t.hooks.close.push(function(){t.setCurrentId(n)}),u(document).on("keyup",function(e){e.which===t.shortCutKey&&(e.ctrlKey||e.altKey)&&(e.preventDefault(),t.isOpen()?(t.close(),s&&s.focus()):(s=document.activeElement,document.activeElement.blur(),t.closeAll(),t.open()))}),u(e.querySelectorAll("input")).on("keydown",function(e){return g.isArrowKey(e.which)?e.shiftKey?!0:!1:void 0}),u(document).on("keyup",function(s){var a;if(!t.isClosed()&&!s.shiftKey){if(s.preventDefault(),i=e.querySelectorAll("ul.menuDropDownBox li"),g.isArrowKey(s.which)){if(o=t.getCurrentId(),o===n)return o=0,void r(o);if(s.which===g.arrowRight){if(i[o+1]===n)return;return o+=1,void r(o)}if(s.which===g.arrowLeft){if(i[o-1]===n)return;return o-=1,void r(o)}if(s.which===g.arrowDown){if(i[o+3]===n)return;return o+=3,void r(o)}if(s.which===g.arrowUp){if(i[o-3]===n)return;return o-=3,void r(o)}}s.which===g.enter&&(a=i[t.getCurrentId()],a===n&&(a=i[0]),t.goToMenuItem(a))}})}),a(t)},e.ui={},e.ui.createMenu=function(e,t,r){var o;if("string"!=typeof e)throw s("Menu name needs to be a string");if("string"!=typeof t&&t.length<=0)throw s("Menu should have data to present in an array or be a url to fetch data from");return r==n&&(r={}),o=d(e,t,r.icon||"th",r.container||"dhisDropDownMenu"),r.shortCut&&g[r.shortCut]&&(o.shortCutKey=g[r.shortCut],o=y(o)),r.scrollable&&(o=v(o)),r.scrollable&&r.searchable&&(o=f(o)),"object"==typeof r.extraLink&&r.extraLink.url&&r.extraLink.text&&(o.extraLink=r.extraLink,o=m(o)),o}}(i["default"].menu,i["default"].settings),function(){function e(){var e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),n=a["default"]({helpPageLink:t}),r=c["default"]({isMobile:e});n.dataSource[3].defaultAction=t,i["default"].menu.ui.createMenu(n.name,n.dataSource,n.options),i["default"].menu.mainAppMenu=i["default"].menu.ui.createMenu(r.name,r.dataSource,r.options)}var t="";i["default"].menu.ui.initMenu=function(){try{i["default"].menu.ui.loadingStatus=jQuery.ajax({type:"GET",url:i["default"].settings.getBaseUrl()+"/dhis-web-commons/menu/getHelpPageLinkModule.action",dataType:"json",success:function(n){t=n.defaultAction?n.defaultAction:"",e()},error:function(){e()}})}catch(n){console&&console.error&&console.error(n.message,n.stack)}}}(),t["default"]={},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(54),i=r(o);!function(e,t){var n=9,r={isFunction:function(e){return"[object Function]"==Object.prototype.toString.call(e)},isString:function(e){return"string"==typeof e||e instanceof String?!0:!1},clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}},o=function(){var n;return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),n=window.location.origin,function(){var r,o=n.split("/");if(e.settings.baseUrl===t)return"..";if("string"!=typeof e.settings.baseUrl)throw new TypeError("Dhis2 settings: baseUrl should be a string");if(""!==o[o.length-1]){if(/^http\:\/\//.test(e.settings.baseUrl))return e.settings.baseUrl;r=n+"/"+e.settings.baseUrl}else o.pop(),o.push(e.settings.baseUrl),r=o.join("/");return r}}(),i=function(e){return".."===e.substring(0,2)?o()+e.substring(2,e.length):e},s=function(){var e=[],t={},n=function(e,t){return!0};return{getItem:function(e){return t[e]},setItem:function(n,r){e.push(n),t[n]=r},list:function(){var r=[];return e.forEach(function(e,o,i){n(t[e],t[e].id)&&r.push(t[e])}),r},setOrder:function(t){e=t},getOrder:function(){return e},addFilter:function(e){r.isFunction(e)&&(n=function(t,n,o){return e(r.clone(t),n)?!0:!1})}}},a={};e.menu={},e.menu=function(o,u){function c(e){var t=f.getApps();f.name=e[o],t.forEach(function(t,n,r){t.id&&e[t.id]&&(r[n].name=e.get(t.id)),""===t.description&&e.get("intro_"+t.id)!=="intro_"+t.id&&(t.description=e["intro_"+t.id])}),l()}function l(){m=!0,h()}function p(){return m}function h(){var e;if(!p()||v==={})return!1;for(;0!==g.length;)e=g.pop(),e.apply(f,[f]);y.forEach(function(e,t,n){e.apply(f,[f])})}function d(e,t){var n,r,o=[],i=[],s=Math.floor(e.length/2);return e.length<=1?e:(s=e[s],e.forEach(function(e,t,r){n=s.name.localeCompare(e.name),-1>=n&&i.push(e),n>=1&&o.push(e)}),o=d(o),i=d(i),r=o.concat([s]).concat(i),t?r.reverse():r)}var f={},m=!1,v=s(),y=[],g=[];return f.id=o,f.name=o,f.displayOrder="custom",f.getMenuItems=function(){return v},f.getMaxFavorites=function(){return n},f.orderMenuItemsByList=function(e){return v.setOrder(e),h(),f},f.updateFavoritesFromList=function(e){var t,r=e.slice(0,n),o=v.getOrder().slice(0,n),i=v.getOrder();return t=r,o.forEach(function(e,n,o){-1===r.indexOf(e)&&t.push(e)}),i.forEach(function(e,n,r){-1===t.indexOf(e)&&t.push(e)}),v.setOrder(t),h(),f},f.addMenuItems=function(t){var n=[];n.push(o),t.forEach(function(e,t,r){e.id=e.name,n.push(e.name),""===e.description&&n.push("intro_"+e.name),e.defaultAction=i(e.defaultAction),e.icon=i(e.icon),v.setItem(e.id,e)}),e.translate.get(n,c)},f.subscribe=function(e,n){var o=n?!0:!1;return r.isFunction(e)?(p()&&v!==t&&e(f),!0===o?g.push(e):y.push(e),!0):(setTimeout(h,300),!1)},f.notify=function(){h()},f.getFavorites=function(){return v.list().slice(0,n)},f.getApps=function(){return v.list()},f.getNonFavoriteApps=function(){return v.list().slice(n)},f.sortNonFavAppsByName=function(e){return d(f.getNonFavoriteApps(),e)},f.getOrderedAppList=function(){var e=f.getFavorites(),t=f.getNonFavoriteApps();switch(f.displayOrder){case"name-asc":t=f.sortNonFavAppsByName();break;case"name-desc":t=f.sortNonFavAppsByName(!0)}return e.concat(t)},f.updateOrder=function(e){switch(f.displayOrder){case"name-asc":case"name-desc":f.updateFavoritesFromList(e);break;default:f.orderMenuItemsByList(e)}},f.save=function(e){return r.isFunction(e)?e(f.getMenuItems().getOrder()):!1},f.search=function(e){var t=f.getApps(),n=[];return t.forEach(function(t){var r=t.name.toLowerCase(),o=r.indexOf(e);-1!==o&&(t.searchScore=o,n.push(t))}),n.sort(function(e,t){return e.searchScore<t.searchScore?-1:e.searchScore>t.searchScore?1:0}),n},"object"==typeof u&&f.addMenuItems(u),a[o]=f,f},e.menu.filter=function(e,t){return r.isString(e)&&r.isFunction(t)?(a[e].getMenuItems().addFilter(t),a[e].notify(),!0):!1},e.menu.getNameKeysForMenus=function(){var e,t={};for(e in a)a.hasOwnProperty(e)&&(t[e]=a[e].getMenuItems().getOrder());return t},e.menu.fixUrlIfNeeded=i}(i["default"]),t["default"]={},e.exports=t["default"]},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{name:"applications",dataSource:"/dhis-web-commons/menu/getModules.action",options:{searchable:!e.isMobile,scrollable:!0,extraLink:{text:"more_applications",url:"../dhis-web-commons-about/modules.action"},shortCut:"m"}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{name:"profile",dataSource:[{name:"settings",namespace:"/dhis-web-commons-about",defaultAction:"../dhis-web-commons-about/userSettings.action",icon:"../icons/usersettings.png",description:""},{name:"profile",namespace:"/dhis-web-commons-about",defaultAction:"../dhis-web-commons-about/showUpdateUserProfileForm.action",icon:"../icons/function-profile.png",description:""},{name:"account",namespace:"/dhis-web-commons-about",defaultAction:"../dhis-web-commons-about/showUpdateUserAccountForm.action",icon:"../icons/function-account.png",description:""},{name:"help",namespace:"/dhis-web-commons-about",defaultAction:e.helpPageLink,icon:"../icons/function-account.png",description:""},{name:"log_out",namespace:"/dhis-web-commons-about",defaultAction:"../dhis-web-commons-security/logout.action",icon:"../icons/function-log-out.png",description:""},{name:"about_dhis2",namespace:"/dhis-web-commons-about",defaultAction:"../dhis-web-commons-about/about.action",icon:"../icons/function-about-dhis2.png",description:""}],options:{icon:"user",shortCut:"comma"}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(54),i=r(o),s=n(97),a=r(s);!function(e,t){function n(e){var t;for(t in e)"string"==typeof t&&"get"!==t&&(o[t]=e[t])}function r(e,t){jQuery.ajax({url:s()+"/api/i18n",method:"POST",data:JSON.stringify(e),headers:{"Content-type":"application/json; charset=utf-8"}}).success(function(e){n(JSON.parse(e)),t(o)}).error(function(){a["default"].error("Failed to load translations")})}var o={get:function(e){return this.hasOwnProperty(e)?this[e]:e}},s=function(){var e;return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),e=window.location.origin,function(){var n,r=e.split("/");if(i["default"].settings===t||i["default"].settings.baseUrl===t)return"..";if("string"!=typeof i["default"].settings.baseUrl)throw new TypeError("Dhis2 settings: baseUrl should be a string");if(""!==r[r.length-1]){if(/^https?\:\/\//.test(i["default"].settings.baseUrl))return i["default"].settings.baseUrl;n=e+"/"+i["default"].settings.baseUrl}else r.pop(),r.push(i["default"].settings.baseUrl),n=r.join("/");return n}}();e.get=function(e,t){var n=[];e.forEach(function(e,t,r){e in o||n.push(e)}),n.length>0?r(n,t):t(o)}}(i["default"].translate),t["default"]={},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(172),a=r(s),u=n(14),c=function(){function e(){o(this,e)}return i(e,null,[{key:"create",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t.filter(function(e){return e});if(!r.every(function(e){return u.isType(e,"object")}))throw new Error("Expected Config parameter to have type object");return Object.assign.apply(Object,[{},a["default"]].concat(t))}},{key:"processConfigForD2",value:function(e,t){var n=t.Api.getApi();t.model.ModelDefinition.prototype.api=n,t.models=new t.model.ModelDefinitions,u.isString(e.baseUrl)?n.setBaseUrl(e.baseUrl):n.setBaseUrl("/api"),e.i18n&&e.i18n.sources&&Array.from(e.i18n.sources).forEach(function(e){return t.i18n.addSource(e)}),e.i18n&&e.i18n.strings&&t.i18n.addStrings(Array.from(e.i18n.strings))}}]),e}();t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){var t=void 0;return t=e.userCredentials?Object.assign({},e.userCredentials,e):Object.assign({},e),Object.keys(t).reduce(function(e,n){return l.has(n)?t[n].map&&(e[h[n]]=t[n].map(function(e){return e.id})):e[n]=t[n],e},{})}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(171),u=r(a),c=Symbol("models"),l=new Set(["userCredentials","userGroups","userRoles","organisationUnits","dataViewOrganisationUnits"]),p={READ:["READ"],CREATE:["CREATE","CREATE_PUBLIC","CREATE_PRIVATE"],CREATE_PUBLIC:["CREATE_PUBLIC"],CREATE_PRIVATE:["CREATE_PRIVATE"],DELETE:["DELETE"],UPDATE:["UPDATE"],EXTERNALIZE:["EXTERNALIZE"]},h=Array.from(l).reduce(function(e,t){return e[t]=Symbol(t),e},{}),d=function(){function e(t,n,r){o(this,e),Object.assign(this,i(t)),this.authorities=n,this[c]=r}return s(e,[{key:"getUserGroups",value:function(){var e=this[h.userGroups];return this[c].userGroup.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"getUserRoles",value:function(){var e=this[h.userRoles];return this[c].userRole.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"getOrganisationUnits",value:function(){var e=this[h.organisationUnits];return this[c].organisationUnit.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"getDataViewOrganisationUnits",value:function(){var e=this[h.dataViewOrganisationUnits];return this[c].organisationUnit.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"checkAuthorityForType",value:function(e,t){var n=this;return t&&Array.isArray(t.authorities)?t.authorities.filter(function(t){return e.some(function(e){return e===t.type})}).some(function(e){return e.authorities.some(function(e){return n.authorities.has(e)})}):!1}},{key:"canCreate",value:function(e){return this.checkAuthorityForType(p.CREATE,e)}},{key:"canCreatePublic",value:function(e){return this.checkAuthorityForType(p.CREATE_PUBLIC,e)}},{key:"canCreatePrivate",value:function(e){return this.checkAuthorityForType(p.CREATE_PRIVATE,e)}},{key:"canDelete",value:function(e){return this.checkAuthorityForType(p.DELETE,e)}},{key:"canUpdate",value:function(e){return this.checkAuthorityForType(p.UPDATE,e)?!0:this.checkAuthorityForType(p.CREATE,e)}},{key:"uiLocale",get:function(){return this.userSettings&&this.userSettings.keyUiLocale?this.userSettings.keyUiLocale:"en"}}],[{key:"create",value:function(t,n,r){return new e(t,u["default"].create(n),r)}}]),e}();t["default"]=d,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=Symbol(),i=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];
+n(this,e),this[o]=new Set(t)}return r(e,[{key:"has",value:function(e){return this[o].has("ALL")?!0:this[o].has(e)}}],[{key:"create",value:function(t){return new e(t)}}]),e}();t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={baseUrl:"/api",i18n:{sources:new Set,strings:new Set}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a["return"]&&a["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(41),u=r(a),c=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],n=arguments.length<=1||void 0===arguments[1]?u["default"].getApi():arguments[1];o(this,e),this.sources=t,this.api=n,this.strings=new Set,this.translations=void 0}return s(e,[{key:"addSource",value:function(e){this.sources.push(e)}},{key:"addStrings",value:function(e){var t=this;"string"==typeof e&&e.trim().length>0?this.strings.add(e.trim()):e.forEach(function(e){(""+e).trim().length>0&&t.strings.add(e)})}},{key:"load",value:function(){function e(e){return e.split("\n").reduce(function(e,t){var n=t.split("=").map(function(e){return e.trim()}),r=i(n,2),o=r[0],s=r[1];return void 0===o||void 0===s||e.hasOwnProperty(o)||(e[o]=s.replace(/\\u([0-9a-f]{4})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})),e},{})}var t=this,n=this;n.translations={};var r=[];return this.sources.forEach(function(t){r.push(n.api.request("GET",t,void 0,{dataType:"text"}).then(function(t){return Promise.resolve(e(t))},function(){return Promise.resolve({})}))}),Promise.all(r).then(function(e){return e.forEach(function(e){Object.keys(e).forEach(function(r){n.translations.hasOwnProperty(r)||(n.translations[r]=e[r]),t.strings["delete"](r)})}),t.strings.size>0?n.api.post("i18n",Array.from(n.strings)).then(function(e){return Object.keys(e).forEach(function(t){t!==e[t]&&(n.translations[t]=e[t],n.strings["delete"](t))}),Promise.resolve(n.translations)}):Promise.resolve(n.translations)})}},{key:"getTranslation",value:function(e){if(void 0===this.translations)throw new Error("Tried to translate before loading translations!");return this.translations.hasOwnProperty(e)?this.translations[e]:"** "+e+" **"}},{key:"isTranslated",value:function(e){if(void 0===this.translations)throw new Error("Tried to translate before loading translations!");return this.translations.hasOwnProperty(e)}},{key:"getUntranslatedStrings",value:function(){return this.translations?Array.from(this.strings):void 0}}],[{key:"getI18n",value:function(){return new e}}]),e}();t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(42),s=n(14),a=function(){function e(){r(this,e)}return o(e,[{key:"getTypes",value:function(){return["TEXT","NUMBER","INTEGER","BOOLEAN","EMAIL","PASSWORD","URL","PHONENUMBER","GEOLOCATION","COLOR","COMPLEX","COLLECTION","REFERENCE","DATE","COMPLEX","IDENTIFIER","CONSTANT"]}},{key:"typeLookup",value:function(e){return this.getTypes().indexOf(e)>=0&&s.isString(e)?e:void i.throwError(['Type from schema "',e,'" not found available type list.'].join(""))}}]),e}();t["default"]=new a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14),s={equals:"eq",like:"like",ilike:"ilike"},a=function(){function e(t){r(this,e),this.filters=t,this.propertyName="name",this.comparator="like",this.filterValue=void 0}return o(e,[{key:"on",value:function(e){return i.checkDefined(e,"Property name to filter on"),this.propertyName=e,this}},{key:"getQueryParamFormat",value:function(){return[this.propertyName,this.comparator,this.filterValue].join(":")}}],[{key:"getFilter",value:function(t){return new e(t)}}]),e}();Object.keys(s).forEach(function(e){Object.defineProperty(a.prototype,e,{value:function(t){return i.checkDefined(t,"filterValue"),this.comparator=s[e],this.filterValue=t,this.filters.add(this),this.filters.getReturn()}})}),t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(14),a=n(175),u=r(a),c=function(){function e(t){o(this,e),this.filters=[],this.modelDefinition=t}return i(e,[{key:"on",value:function(e){return u["default"].getFilter(this).on(e)}},{key:"add",value:function(e){if(!s.isType(e,u["default"]))throw new TypeError("filter should be an instance of Filter");this.filters.push(e)}},{key:"list",value:function(){return this.modelDefinition.list()}},{key:"getFilters",value:function(){return this.filters.map(function(e){return e.getQueryParamFormat()})}},{key:"getReturn",value:function(){return this.modelDefinition}}],[{key:"getFilters",value:function(t){return new e(t)}}]),e}();t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){if(e&&e[Symbol.iterator]){var t=[].concat(o(e));t.forEach(function(e){e instanceof h["default"]||l.throwError("Values of a ModelCollection must be instances of Model")})}}function a(e){if(e&&e[Symbol.iterator]){var t=[].concat(o(e));t.forEach(function(e){c.isValidUid(e.id)||l.throwError("Can not add a Model without id to a ModelCollection")})}}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(14),l=n(42),p=n(73),h=r(p),d=n(99),f=r(d),m=n(180),v=r(m),y=function(){function e(t,n,r){var o=this;i(this,e),c.checkType(t,f["default"]),this.modelDefinition=t,this.pager=new v["default"](r,t),this.valuesContainerMap=new Map,this[Symbol.iterator]=this.valuesContainerMap[Symbol.iterator].bind(this.valuesContainerMap),s(n),a(n),c.isArray(n)&&n.forEach(function(e){return o.add(e)})}return u(e,[{key:"add",value:function(e){return s([e]),a([e]),this.set(e.id,e),this}},{key:"toArray",value:function(){var e=[];return this.forEach(function(t){e.push(t)}),e}},{key:"clear",value:function(){return this.valuesContainerMap.clear.apply(this.valuesContainerMap)}},{key:"delete",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.valuesContainerMap["delete"].apply(this.valuesContainerMap,t)}},{key:"entries",value:function(){return this.valuesContainerMap.entries.apply(this.valuesContainerMap)}},{key:"forEach",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.valuesContainerMap.forEach.apply(this.valuesContainerMap,t)}},{key:"get",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.valuesContainerMap.get.apply(this.valuesContainerMap,t)}},{key:"has",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.valuesContainerMap.has.apply(this.valuesContainerMap,t)}},{key:"keys",value:function(){return this.valuesContainerMap.keys.apply(this.valuesContainerMap)}},{key:"set",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.valuesContainerMap.set.apply(this.valuesContainerMap,t)}},{key:"values",value:function(){return this.valuesContainerMap.values.apply(this.valuesContainerMap)}},{key:"size",get:function(){return this.valuesContainerMap.size}}],[{key:"create",value:function(t,n,r){return new e(t,n,r)}}]),e}();t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14),s=function(){function e(){r(this,e)}return o(e,[{key:"add",value:function(e){try{i.checkType(e.name,"string")}catch(t){throw new Error("Name should be set on the passed ModelDefinition to add one")}if(this[e.name])throw new Error(["Model",e.name,"already exists"].join(" "));this[e.name]=e}},{key:"mapThroughDefinitions",value:function(e){var t=[],n=void 0;i.checkType(e,"function","transformer");for(n in this)this.hasOwnProperty(n)&&t.push(e(this[n]));return t}}]),e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(74),i=r(o),s=n(73),a=r(s),u=n(99),c=r(u),l=n(178),p=r(l),h=n(100),d=r(h);t["default"]={ModelBase:i["default"],Model:a["default"],ModelDefinition:c["default"],ModelDefinitions:p["default"],ModelValidations:d["default"]},e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14),s=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{page:1,pageCount:1}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{list:function(){return Promise.reject("No handler available")}}:arguments[1];r(this,e),this.page=t.page,this.pageCount=t.pageCount,this.total=t.total,this.nextPage=t.nextPage,this.prevPage=t.prevPage,this.pagingHandler=n}return o(e,[{key:"hasNextPage",value:function(){return i.isDefined(this.nextPage)}},{key:"hasPreviousPage",value:function(){return i.isDefined(this.prevPage)}},{key:"getNextPage",value:function(){return this.hasNextPage()?this.goToPage(this.page+1):Promise.reject("There is no next page for this collection")}},{key:"getPreviousPage",value:function(){return this.hasPreviousPage()?this.goToPage(this.page-1):Promise.reject("There is no previous page for this collection")}},{key:"goToPage",value:function(e){if(1>e)throw new Error("PageNr can not be less than 1");if(e>this.pageCount)throw new Error("PageNr can not be larger than the total page count of "+this.pageCount);return this.pagingHandler.list({page:e})}}]),e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(183),a=r(s),u=n(182),c=r(u),l=function(){function e(t,n){o(this,e),this.settings=t,this.configuration=n}return i(e,[{key:"getI18nStrings",value:function(){var e=this,t=new Set;return Object.keys(this.settings.mapping).map(function(n){var r=e.settings.mapping[n];if(r.hasOwnProperty("label")&&t.add(r.label),r.hasOwnProperty("description")&&t.add(r.description),r.hasOwnProperty("options"))for(var o in r.options)r.options.hasOwnProperty(o)&&isNaN(r.options[o])&&t.add(r.options[o])}),t}}],[{key:"getSystem",value:function(){return new e(new a["default"],new c["default"])}}]),e}();t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(41),a=r(s),u=n(101),c=r(u),l=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?a["default"].getApi():arguments[0];o(this,e),this.api=t,this._configuration=void 0,this._configPromise=null}return i(e,[{key:"all",value:function(e){var t=this;return(null===this._configPromise||e===!0)&&(this._configPromise=this.api.get("configuration").then(function(e){return t._configuration=e,t._configuration})),this._configPromise}},{key:"get",value:function(e,t){return this.all(t).then(function(t){return t.hasOwnProperty(e)?Promise.resolve(t[e]):Promise.reject("Unknown config option: "+e)})}},{key:"set",value:function(e,t){var n=this,r=void 0;if("feedbackRecipients"===e&&"null"===t||null===t)r=this.api["delete"](["configuration",e].join("/"),{dataType:"text"});else if("corsWhitelist"===e)r=this.api.post(["configuration",e].join("/"),t.trim().split("\n"),{dataType:"text"});else{var o=c["default"].hasOwnProperty(e)&&c["default"][e].hasOwnProperty("configuration")&&c["default"][e].configuration;if(!o)return Promise.reject("No configuration found for "+e);r=this.api.post(["configuration",o,t].join("/"),"",{dataType:"text"})}return r.then(function(){return n._configuration=void 0,Promise.resolve()})}}]),e}();t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(14),a=n(41),u=r(a),c=n(101),l=r(c),p=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?u["default"].getApi():arguments[0];o(this,e),this.api=t,this.mapping=l["default"]}return i(e,[{key:"all",value:function(){return this.api.get("systemSettings")}},{key:"get",value:function(e){function t(e){try{return JSON.parse(e)}catch(t){return e}return e}var n=this;return new Promise(function(r,o){if(!s.isString(e))throw new TypeError('A "key" parameter should be specified when calling get() on systemSettings');n.api.get(["systemSettings",e].join("/"),void 0,{dataType:"text"}).then(function(e){var n=t(e);n&&r(t(e)),o(new Error("The requested systemSetting has no value or does not exist."))})})}},{key:"set",value:function(e,t){var n=["systemSettings",e].join("/");return null===t||0===(t+"").length?this.api["delete"](n,{dataType:"text"}):this.api.post(n,t,{dataType:"text",contentType:"text/plain"})}}]),e}();t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return e.replace(/\/api\/?$/,"")}function s(){try{return localStorage.setItem("dhis2.menu.localstorage.test","dhis2.menu.localstorage.test"),localStorage.removeItem("dhis2.menu.localstorage.test"),!0}catch(e){return!1}}function a(e){return s()&&(localStorage.setItem("dhis2.menu.ui.headerBar.userStyle",e.userStyleUrl),localStorage.setItem("dhis2.menu.ui.headerBar.logo",e.logo),localStorage.setItem("dhis2.menu.ui.headerBar.title",e.title),localStorage.setItem("dhis2.menu.ui.headerBar.link",e.link)),e}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),c=r(u);n(168),n(165),n(164);var l=n(54),p=r(l),h=n(97),d=r(h),f="light_blue",m="light_blue/light_blue.css",v="dhis-web-commons/css",y=c["default"].createClass({displayName:"HeaderBar",contextTypes:{d2:c["default"].PropTypes.object.isRequired},getInitialState:function(){return{headerBar:{}}},componentWillMount:function(){var e=this;p["default"].settings.baseUrl=i(this.context.d2.Api.getApi().baseUrl),p["default"].menu.ui.initMenu(),this.getSystemSettings(this.context.d2).then(this.getHeaderBarData)["catch"](this.loadDataFromLocalStorageIfAvailable).then(a).then(function(t){e.setHeaderData(t.userStyleUrl,t.logo,t.title,t.link)})},getSystemSettings:function(e){return e.system.settings.all()},getHeaderBarData:function(e){return this.requestUserStyle()["catch"](function(){return d["default"].info("Unable to load usersettings, falling back to systemSettings"),localStorage.setItem("dhis2.menu.ui.headerBar.userStyle",e.currentStyle),e.currentStyle}).then(function(t){return{userStyleUrl:t||e.currentStyle,logo:e.keyCustomTopMenuLogo,title:e.applicationTitle,link:e.startModule}})},getBaseUrl:function(){return this.context.d2.Api.getApi().baseUrl.replace(/\/api\/?$/,"")},getStyleLogoUrl:function(e){return[this.getBaseUrl(),v,e,"logo_banner.png"].join("/")},getStylesheetUrl:function(e){return[this.getBaseUrl(),v,"themes",e||m].join("/")},getStyleName:function(e){return"string"==typeof e&&e.split("/")[0]&&e.split("/").length>0?e.split("/")[0]:f},render:function(){var e={height:"44px",position:"fixed",zIndex:15,top:0,left:0,right:0,boxShadow:"0 0 3px #222"},t={position:"absolute",top:"13px",left:"55px"},n={position:"absolute",top:12,left:175,fontWeight:"bold",color:"#fff",fontSize:16};return c["default"].createElement("div",{className:"header-bar",style:e,id:"header"},c["default"].createElement("a",{href:this.state.headerBar.link,title:this.state.headerBar.title,className:"title-link"},c["default"].createElement("img",{className:"header-logo",src:this.state.headerBar.logo,id:"headerBanner",style:t}),c["default"].createElement("span",{className:"header-text",id:"headerText",style:n},this.state.headerBar.title)),c["default"].createElement("div",null,this.state.headerBar.message),c["default"].createElement("div",{id:"dhisDropDownMenu"}))},loadDataFromLocalStorageIfAvailable:function(){var e=void 0,t=void 0,n=void 0,r=void 0;return s()&&(e=localStorage.getItem("dhis2.menu.ui.headerBar.logo"),t=localStorage.getItem("dhis2.menu.ui.headerBar.title"),n=localStorage.getItem("dhis2.menu.ui.headerBar.link"),r=localStorage.getItem("dhis2.menu.ui.headerBar.userStyle")),{userStyleUrl:r,logo:e,title:t,link:n}},setHeaderData:function(e,t,n,r){var o=this.getStyleName(e);this.addUserStyleStylesheet(this.getStylesheetUrl(e)),this.setHeaderLogo(o,t),this.setHeaderTitle(n),this.setHeaderLink(r)},setHeaderBarProp:function(e,t){this.setState({headerBar:Object.assign({},this.state.headerBar,o({},e,t))})},setHeaderLogo:function(e,t){t===!0?this.setHeaderBarProp("logo",[this.getBaseUrl(),"/external-static/logo_banner.png"].join("")):this.isValidUserStyle(e)?this.setHeaderBarProp("logo",this.getStyleLogoUrl(e)):this.setHeaderBarProp("logo",this.getStyleLogoUrl(f))},setHeaderTitle:function(e){this.setHeaderBarProp("title",e||"District Health Information Software 2")},setHeaderLink:function(e){this.setHeaderBarProp("link",[this.getBaseUrl(),e||"dhis-web-dashboard-integration","index.action"].join("/"))},requestUserStyle:function(){var e=this.context.d2.Api.getApi();return e.get("userSettings/currentStyle",{},{dataType:"text"}).then(function(e){return e.trim()})},isValidUserStyle:function(e){return"string"==typeof e&&/^[A-z0-9_\-]+$/.test(e)},addUserStyleStylesheet:function(e){jQuery("head").append('<link href="'+e+'" type="text/css" rel="stylesheet" media="screen,print" />')}});t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(76),a=r(s),u=n(117),c=r(u),l=n(59),p=r(l),h=n(107),d=r(h),f=i["default"].createClass({displayName:"MyListItem",propTypes:{label:i["default"].PropTypes.string.isRequired,listStyle:i["default"].PropTypes.object,settingsActions:i["default"].PropTypes.object.isRequired,categoryKey:i["default"].PropTypes.string.isRequired},render:function(){var e=this.props.label;return i["default"].createElement(c["default"],{primaryText:e,style:this.props.listStyle,onClick:this.setCategory})},setCategory:function(){this.props.settingsActions.setCategory(this.props.categoryKey)}}),m=i["default"].createClass({displayName:"Sidebar",propTypes:{categories:i["default"].PropTypes.object.isRequired,categoryOrder:i["default"].PropTypes.array.isRequired,settingsActions:i["default"].PropTypes.object.isRequired,d2:i["default"].PropTypes.object.isRequired,currentCategory:i["default"].PropTypes.oneOfType([i["default"].PropTypes.object,i["default"].PropTypes.string]).isRequired},contextTypes:{muiTheme:i["default"].PropTypes.object},render:function(){var e=this,t=this.props.d2,n=this.props.categories,r=this.props.categoryOrder,o=this.props.currentCategory,s=this.context.muiTheme;return i["default"].createElement("div",{style:{backgroundColor:s.sideBar.backgroundColor},className:"left-bar"},i["default"].createElement("div",{style:{padding:"0 1rem"}},i["default"].createElement(p["default"],{hintText:t.i18n.getTranslation("search"),style:{width:"100%"},onChange:this.search})),i["default"].createElement(a["default"],{style:{backgroundColor:"transparent"}},r.filter(function(e){return!(n[e].authority&&!t.currentUser.authorities.has(n[e].authority))}).map(function(r){return i["default"].createElement(f,{key:r,label:t.i18n.getTranslation(n[r].label),categoryKey:r,settingsActions:e.props.settingsActions,listStyle:{backgroundColor:r===o?s.sideBar.backgroundColorItemActive:s.sideBar.backgroundColorItem,color:r===o?s.sideBar.textColorActive:s.sideBar.textColor,fontSize:15,fontWeight:r===o?"bold":"inherit"}})})))},search:function(e){d["default"].searchSettings(e.target.value)}});t["default"]=m,e.exports=t["default"]},105,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(116),a=r(s),u=n(58),c=r(u),l=n(36),p=r(l),h=n(19),d=r(h),f=n(119),m=r(f),v=n(102),y=r(v),g=n(75),b=r(g),w=n(103),E=r(w),T=n(105),x=r(T),C=n(189),_=r(C),S=n(188),N=r(S);t["default"]=i["default"].createClass({displayName:"DataApprovalLevels.component",propTypes:{columns:i["default"].PropTypes.array.isRequired},mixins:[E["default"]],componentWillMount:function(){var e=this;_["default"].loadDataApprovalLevels(),x["default"].subscribe(function(t){e.isMounted()&&e.setState({approvalLevels:t,showAddForm:!1})})},getInitialState:function(){return this.modelToEdit=this.context.d2.models.dataApprovalLevel.create(),{approvalLevels:[],showAddForm:!1}},renderForm:function(){var e=this.context.d2,t=e.models.organisationUnitLevel.list().then(function(e){return e.toArray()}).then(function(e){return e.sort(function(e,t){return e.level-t.level})}).then(function(e){return e.map(function(e){return{text:e.level+": "+e.displayName,payload:e}})}),n=e.models.categoryOptionGroupSet.list().then(function(e){return e.toArray()}).then(function(e){return e.map(function(e){return{text:e.displayName,payload:e}})}),r=[{name:"organisationUnitLevel",type:N["default"],fieldOptions:{floatingLabelText:this.getTranslation("organisation_unit_level"),menuItemsSource:function(){return t},value:this.modelToEdit.organisationUnitLevel}},{name:"categoryOptionGroupSet",type:N["default"],fieldOptions:{floatingLabelText:this.getTranslation("category_option_group_set"),menuItemsSource:function(){return n},value:this.modelToEdit.categoryOptionGroupSet}}],o={padding:"2rem",marginTop:"2rem",marginRight:"2rem"};return i["default"].createElement(d["default"],{style:o},i["default"].createElement("h2",{style:{margin:0}},this.getTranslation("create_new_approval_level")),i["default"].createElement(b["default"],{source:this.modelToEdit,fieldConfigs:r,onFormFieldUpdate:this.formFieldUpdate},i["default"].createElement("div",{style:{marginTop:"1rem"}},i["default"].createElement(m["default"],{onClick:this.saveAction,primary:!0,label:this.getTranslation("save")}),i["default"].createElement(c["default"],{onClick:this.cancelAction,style:{marginLeft:"1rem"},label:this.getTranslation("cancel")}))))},renderList:function(){var e={"delete":_["default"].deleteDataApprovalLevel},t={textAlign:"right",marginTop:"1rem",marginRight:16};return i["default"].createElement("div",{style:{maxWidth:960,marginRight:16}},i["default"].createElement("div",{style:t},i["default"].createElement(a["default"],{onClick:this.addClick},i["default"].createElement(p["default"],{className:"material-icons"},"add"))),i["default"].createElement("div",{style:{marginTop:-24}},i["default"].createElement(y["default"],{rows:this.state.approvalLevels,columns:this.props.columns,contextMenuActions:e})))},render:function(){return i["default"].createElement("div",null,this.state.showAddForm?this.renderForm():this.renderList())},saveAction:function(){var e=this;_["default"].saveDataApprovalLevel(this.modelToEdit).subscribe(function(){window.snackbar.show(),e.resetAddFormAnddisplayList()},function(e){return console.log("Error",e)})},cancelAction:function(){this.resetAddFormAnddisplayList()},resetAddFormAnddisplayList:function(){this.modelToEdit=this.context.d2.models.dataApprovalLevel.create(),this.setState({showAddForm:!1})},formFieldUpdate:function(e,t){this.modelToEdit[e]=t,this.forceUpdate()},addClick:function(){this.setState({approvalLevelToAdd:this.context.d2.models.dataApprovalLevel.create(),showAddForm:!0})}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=r(i),a=n(122),u=r(a);t["default"]=s["default"].createClass({displayName:"SelectFieldAsyncSource.component",propTypes:{menuItemsSource:s["default"].PropTypes.func},getInitialState:function(){return{menuItems:[]}},componentWillMount:function(){var e=this;this.props.menuItemsSource().then(function(t){e.setState({menuItems:t})})},render:function(){return s["default"].createElement(u["default"],o({},this.props,{menuItems:this.state.menuItems}))}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return e.level-t.level}function i(e){return e.response&&e.response.importCount&&1===e.response.importCount.imported?Promise.resolve(e):Promise.reject(e)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(110),a=r(s),u=n(105),c=r(u),l=n(55),p=a["default"].createActionsFromNames(["loadDataApprovalLevels","editDataApprovalLevel","saveDataApprovalLevel","deleteDataApprovalLevel"]);p.loadDataApprovalLevels.subscribe(function(e){var t=e.complete,n=e.error;l.getInstance().then(function(e){return e.models.dataApprovalLevel.list({paging:!1})}).then(function(e){return e.toArray()}).then(function(e){return e.sort(o)}).then(function(e){return c["default"].setState(e)}).then(t)["catch"](n)}),p.saveDataApprovalLevel.subscribe(function(e){var t=e.data,n=e.complete,r=e.error,o=c["default"].getState();Array.isArray(o)&&(console.log(o),o.filter(function(e){return e.orgUnitLevel===t.organisationUnitLevel.level}).forEach(function(e){return console.log(e)}));var s={name:t.organisationUnitLevel.name,orgUnitLevel:t.organisationUnitLevel.level};t.categoryOptionGroupSet&&(s.categoryOptionGroupSet={id:t.categoryOptionGroupSet.id},s.name=t.organisationUnitLevel.name+" "+t.categoryOptionGroupSet.name),l.getInstance().then(function(e){return e.Api.getApi()}).then(function(e){return e.post("dataApprovalLevels",s)}).then(i).then(function(e){return n(e),e}).then(function(){return p.loadDataApprovalLevels()})["catch"](function(e){e.response&&e.response.importConflicts&&r(e.response.importConflicts),r(e)})}),p.deleteDataApprovalLevel.subscribe(function(e){var t=e.data,n=e.complete,r=e.error;t["delete"]().then(n)["catch"](r).then(function(){return p.loadDataApprovalLevels()})}),t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(113),a=r(s);t["default"]=i["default"].createClass({displayName:"MultiToggle.component",propTypes:{label:i["default"].PropTypes.string.isRequired,onChange:i["default"].PropTypes.func.isRequired,items:i["default"].PropTypes.arrayOf(i["default"].PropTypes.shape({name:i["default"].PropTypes.string.isRequired,value:i["default"].PropTypes.bool,text:i["default"].PropTypes.string.isRequired})),style:i["default"].PropTypes.object},contextTypes:{muiTheme:i["default"].PropTypes.object},getInitialState:function(){return{values:this.props.items.reduce(function(e,t){return t.value&&e.push(t.name),e},[])}},render:function(){var e=this,t=Object.assign({},this.context.muiTheme.forms,this.props.style);return i["default"].createElement("div",null,i["default"].createElement("div",{style:{marginTop:16,marginBottom:8}},this.props.label),this.props.items.map(function(n){return i["default"].createElement(a["default"],{key:n.name,name:n.name,value:"true",defaultChecked:n.value===!0,label:n.text,onCheck:e._handleToggle.bind(e,n.name),style:t,labelPosition:"right"})}))},_handleToggle:function(e,t,n){var r=this;this.setState(function(t){return n?-1===t.values.indexOf(e)&&t.values.push(e):-1!==t.values.indexOf(e)&&t.values.splice(t.values.indexOf(e),1),t},function(){r.props.onChange({target:{value:r.state.values}})})}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){for(var e="0123456789abcdef",t="",n=0;32>n;n++)t+=e.charAt(Math.random()*e.length),(8===n||12===n||16===n||20===n)&&(t+="-");return t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),s=r(i),a=n(57),u=r(a),c=n(58),l=r(c),p=n(116),h=r(p),d=n(36),f=r(d),m=n(19),v=r(m),y=n(119),g=r(y),b=n(59),w=r(b),E=n(102),T=r(E),x=n(75),C=r(x),_=n(104),S=r(_),N=n(103),O=r(N),D=n(190),P=r(D),k=n(106),M=r(k),A=n(192),R=r(A),I=n(109),j=r(I);u["default"].setLevel(u["default"].levels.TRACE),t["default"]=s["default"].createClass({displayName:"OAuth2ClientEditor.component",mixins:[O["default"]],
+getInitialState:function(){return{showForm:!1}},componentWillMount:function(){var e=this;this.oa2cStoreDisposable=M["default"].subscribe(function(){e.isMounted()&&e.setState({isEmpty:0===M["default"].state.length})}),R["default"].load()},renderForm:function(){var e=j["default"].forms;this.clientModel||(this.clientModel=this.context.d2.models.oAuth2Client.create());var t=this.clientModel,n=(t.grantTypes||[]).reduce(function(e,t){return e[t]=!0,e},{}),r=[{name:"name",type:w["default"],updateEvent:"onBlur",fieldOptions:{floatingLabelText:this.getTranslation("name"),style:e}},{name:"cid",type:w["default"],updateEvent:"onBlur",fieldOptions:{floatingLabelText:this.getTranslation("client_id"),style:e}},{name:"secret",type:w["default"],fieldOptions:{floatingLabelText:this.getTranslation("client_secret"),disabled:!0,style:e,value:t.secret||o()}},{name:"grantTypes",type:P["default"],style:e,fieldOptions:{label:this.getTranslation("grant_types"),items:[{name:"password",text:this.getTranslation("password"),value:n.password},{name:"refresh_token",text:this.getTranslation("refresh_token"),value:n.refresh_token},{name:"authorization_code",text:this.getTranslation("authorization_code"),value:n.authorization_code}]}},{name:"redirectUris",type:w["default"],updateEvent:"onBlur",fieldOptions:{hintText:this.getTranslation("enter_one_uri_per_line"),floatingLabelText:this.getTranslation("redirect_uris"),multiLine:!0,style:e,defaultValue:(t.redirectUris||[]).join("\n")}}],i={padding:"2rem",marginTop:"2rem",marginRight:"2rem",overflow:"hidden"};return s["default"].createElement(v["default"],{style:i},s["default"].createElement("h2",null,void 0===this.clientModel.id?this.getTranslation("create_new_oauth2_client"):this.getTranslation("edit_oauth2_client")),s["default"].createElement(C["default"],{source:this.clientModel,fieldConfigs:r,onFormFieldUpdate:this.formUpdateAction},s["default"].createElement("div",{style:{marginTop:"1rem"}},s["default"].createElement(g["default"],{onClick:this.saveAction,primary:!0,label:this.getTranslation("save")}),this.state.isEmpty?void 0:s["default"].createElement(l["default"],{onClick:this.cancelAction,style:{marginLeft:"1rem"},label:this.getTranslation("cancel")}))))},renderList:function(){var e={edit:this.editAction,"delete":this.deleteAction},t={textAlign:"right",marginTop:"1rem",marginRight:16};return s["default"].createElement("div",{style:{maxWidth:960,marginRight:16}},s["default"].createElement("div",{style:t},s["default"].createElement(h["default"],{onClick:this.newAction},s["default"].createElement(f["default"],{className:"material-icons"},"add"))),s["default"].createElement("div",{style:{marginTop:-24}},s["default"].createElement(T["default"],{rows:M["default"].state,columns:["name","password","refresh_token","authorization_code"],contextMenuActions:e})))},render:function(){var e=j["default"].rawTheme;return s["default"].createElement("div",null,s["default"].createElement("div",{style:{position:"fixed",left:0,top:0,right:0,bottom:0,zIndex:1e3,backgroundColor:"rgba(255,255,255,0.4)",display:this.state.saving?"block":"none"}},s["default"].createElement(S["default"],null)),this.state.isEmpty?s["default"].createElement("div",{style:{color:e.palette.accent1Color}},this.getTranslation("no_oauth2_clients_registered")):void 0,this.state.showForm||this.state.isEmpty?this.renderForm():this.renderList())},componentWillUnMount:function(){this.oa2cStoreDisposable&&this.oa2cStoreDisposable.dispose()},cancelAction:function(){Object.assign(this.clientModel,this.clientModelBackup),R["default"].load(),this.setState({showForm:!1})},newAction:function(){this.clientModel=this.context.d2.models.oAuth2Client.create(),this.setState({showForm:!0})},editAction:function(e){u["default"].info("Edit OAuth2 client:",e.name),this.clientModelBackup=Object.assign({},e),this.clientModel=e,this.setState({showForm:!0})},deleteAction:function(e){R["default"]["delete"](e)},saveAction:function(){var e=this;this.setState({saving:!0}),this.clientModel.redirectUris=(this.clientModel.redirectUris+"").split("\n").filter(function(e){return e.length>0&&e.match(/https?:\/\/.{2,}\..{2,}/)}),this.clientModel.secret=o(),this.clientModel.save().then(function(){window.snackbar.show(),e.setState({showForm:!1,saving:!1}),R["default"].load()})["catch"](function(t){e.setState({saving:!1}),u["default"].warn("Failed to save OAuth2 client:"+t.response.validationViolations.reduce(function(e,t){return(e.length?e+"\n":"")+t.property+": "+t.message},""))})},formUpdateAction:function(e,t){this.clientModel[e]=t}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(111),i=n(55),s=n(106),a=r(s),u=o.Action.createActionsFromNames(["load","delete"]);u.load.subscribe(function(){i.getInstance().then(function(e){e.models.oAuth2Client.list({paging:!1,fields:":all"}).then(function(t){var n=e.i18n.getTranslation("yes"),r=e.i18n.getTranslation("no");a["default"].setState(t.toArray().map(function(e){return Object.assign(e,{password:-1!==e.grantTypes.indexOf("password")?n:r,refresh_token:-1!==e.grantTypes.indexOf("refresh_token")?n:r,authorization_code:-1!==e.grantTypes.indexOf("authorization_code")?n:r})}))})})}),u["delete"].subscribe(function(e){e.data["delete"]().then(function(){a["default"].state.splice(a["default"].state.indexOf(e.data),1),a["default"].setState(a["default"].state),window.snackbar.show()})["catch"](function(e){log.error("Failed to delete OAuth2 client:",e)})}),t["default"]=u,e.exports=t["default"]},105,function(e,t,n){t=e.exports=n(195)(),t.push([e.id,'#menuLinkArea *{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;-o-box-sizing:content-box;-m-box-sizing:content-box}#menuLinkArea{list-style-type:none;max-width:1200px;margin:0;padding:0 20px 0 0}#menuLinkArea li{float:right}#menuLinkArea .app-menu-dropdown li{float:left}input.apps-search[type=text]{border:1px solid #ccc;border-radius:3px;box-sizing:content-box;font-size:inherit;outline:none;padding:4px 1px;padding-right:5px;padding-left:5px;width:348px}.apps-search-wrap{padding-bottom:10px;position:relative;width:360px}.app-menu-dropdown .apps-search-clear{color:#404040;cursor:pointer;display:none;font-size:15px;height:15px;margin:0;padding:0;position:absolute;right:5px;top:18%;width:20px}.menuDropDownBox{list-style-type:none;padding:0;margin:10px 0}.menuDropDownBox a{border-radius:3px;cursor:pointer}.menuDropDownBox a:hover{text-decoration:none;background-color:#f5f5f7;color:#000}.menuDropDownBox li.selected a{background-color:#f5f5f7}.app-menu:after{clear:both;content:""}.app-menu li,.app-menu ul{list-style:none}.app-manager-header,.app-menu{margin:0 auto;position:relative;width:535px}.app-menu li{float:left;position:relative}#menuOrderBy{float:right}.app-menu .app-menu-item,.app-menu .app-menu-placeholder{margin:10px;display:block;border:1px solid #d0d0d0;background-color:#fff;width:225px;height:56px;border-radius:5px;padding:10px}.app-menu .app-menu-item img{max-height:36px;max-width:36px;display:block;left:25px;top:29px;position:absolute}.app-menu .app-menu-item span{font-size:1.15em;padding-left:48px;display:block;padding-top:19px;color:#404040}.app-menu .app-menu-item:hover,.app-menu .app-menu-placeholder{border:1px dashed #9ec5df;background-color:#e9f5fb;text-decoration:none}.app-menu-item-description{display:none}.app-menu-item-description .fa.fa-arrows{font-size:1.3em;position:absolute;right:5px;top:5px}.app-menu li:hover a .app-menu-item-description{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border:1px solid #b0b0b0;display:block;margin:10px;padding:10px;font-size:1em;color:#555;border-radius:5px}.app-menu li.ui-sortable-helper:hover a .app-menu-item-description{display:none}.app-menu li.ui-sortable-helper:hover a{background-color:hsla(0,0%,100%,.3)}.app-menu-item .app-menu-item-description span{color:#444;display:block;font-size:1.1em;padding:0;padding-bottom:5px;margin:0}.app-menu-item .app-menu-item-description p{height:35px;margin:0;overflow:hidden;padding:0}.app-menu li:hover a .fa.fa-bookmark{display:none}.app-menu a.app-menu-item .fa.fa-bookmark{color:#276696;font-size:2em;position:absolute;right:15px;top:10px}.app-menu li+li+li+li+li+li+li+li+li+li a.app-menu-item .fa.fa-bookmark{display:none}.menu-link{color:#fff;cursor:pointer;font-size:9pt;height:44px;line-height:44px;text-align:center;width:105px}.menu-link i.fa{font-size:2em;padding-right:10px;position:relative;top:5px}a.menu-link:hover{color:#fff;text-decoration:none}.app-menu-dropdown{background-color:#fff;border:1px solid #bbb;border-radius:2px;box-shadow:rgba(0,0,0,.24) 0 2px 8px 0;color:#000;font-size:9pt;max-height:610px;overflow-y:inherit;padding:10px;top:10px;position:relative;width:360px;z-index:100000}.app-menu-dropdown-wrap{position:absolute;left:-9999px}.app-menu-hide{display:none}.app-menu-dropdown ul{margin:0;overflow:auto}.app-menu-dropdown li{float:left}.app-menu-dropdown img{padding:15px 36px 5px;max-height:48px;max-width:48px}.app-menu-dropdown span{color:#404040;display:block;font-family:LiberationSans,arial,sans-serif;height:30px;overflow:hidden;padding-left:10px;padding-right:10px;text-align:center;width:100px}.app-menu-dropdown .caret-up-background,.app-menu-dropdown .caret-up-border{border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;position:absolute}.app-menu-dropdown .caret-up-background{border-bottom:10px solid #fff;top:-9px}.app-menu-dropdown .caret-up-border{border-bottom:10px solid #bbb;top:-10px}.app-menu-dropdown a.app-menu-item{color:#000;display:block;height:110px;padding:0;text-decoration:none;width:120px}.app-menu-dropdown a.app-menu-item:hover span{padding-left:10px;padding-right:10px;text-align:center;width:100px}.apps-menu-bottom-button{display:table;height:34px;padding-top:8px;text-align:center;margin-top:5px;float:left}.apps-menu-bottom-button a{color:#4a89ba;border:1px solid #ccc;background-color:#f5f5f7;border-radius:5px;display:table-cell;vertical-align:middle;text-decoration:none}.apps-scroll{width:60px;margin-left:5px}.app-menu-dropdown:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.apps-menu-bottom-button a:hover{color:#fff;border:1px solid #4a89ba;background-color:#4a89ba}.apps-menu-more{width:230px}.menu-placeholder{width:100%;text-align:center;vertical-align:middle}hr.app-separator{border:none;border-top:1px solid #bbb;height:1px;position:absolute;top:484px;width:100%}.menu-drop-down-wrap{overflow:hidden;height:375px}.menu-drop-down-scroll{height:375px;overflow-y:auto;overflow-x:hidden;width:384px}#appsMenuDropDown ul.menuDropDownBox{height:330px}.caret-up-background,.caret-up-border{left:298px}.drop-down-menu-link{cursor:pointer;display:block;font-family:LiberationSans,arial,sans-serif}.show-menu{display:block}.app-menu-help{color:#444;line-height:1.75em}.app-menu-help .fa{font-size:1.2em}.app-menu-help .fa-bookmark{color:#276696;font-size:1.5em;padding-right:5px;position:relative;top:2px}.app-menu-help .fa-arrows{padding-right:4px}.app-menu-error{background:darkred;background:rgba(160,0,0,.7);border:1px solid darkred;border-radius:5px;display:block;padding:.5em 0;text-align:center;width:358px}.app-menu-error:hover{background:rgba(160,0,0,.8);cursor:pointer}.app-menu-error a,.app-menu-error a:hover{background-color:transparent;color:#fff}.app-menu-error a:hover{text-decoration:none}@media (max-device-width:700px),(max-width:700px){#headerText{display:none}}@media only screen and (min-width:840px){.app-manager-header,.app-menu{width:808px}hr.app-separator{top:288px}}.data-table__headers{display:table-row}.data-table__headers__header{padding:.5rem 1rem;border-bottom:2px solid #e0e0e0;color:#757575;display:table-cell;font-weight:400;padding:1.6rem;text-align:left;transition:all .3s ease;vertical-align:bottom}.data-table__rows__row{display:table-row}.data-table__rows__row:hover .data-table__rows__row__column{background-color:#b3e5fc}.data-table__rows__row__column{padding:.5rem 1rem;border-bottom:1px solid #e0e0e0;border-top:0;display:table-cell;padding:1.6rem;text-align:left;transition:all .3s ease;vertical-align:top}.data-table__context-menu{background:hsla(0,0%,100%,.9);border:1px solid #fff;padding:.5rem 0;position:fixed}.data-table__context-menu ul{list-style:none;margin:0;padding:0}.data-table__context-menu__item{cursor:pointer;display:block;padding:.5rem 1rem;text-align:left}.data-table__context-menu__item:hover{background:rgba(200,200,255,.9)}.data-table{background-color:#fff;border-spacing:0;box-shadow:0 1px 3px 0 rgba(0,0,0,.12),0 1px 2px 0 rgba(0,0,0,.24);color:#212121;display:table;margin-bottom:2rem;max-width:100%;width:100%}.data-table__rows{display:table-row-group}html{background:#fff;font-family:Roboto,sans-serif}.app{padding-top:3rem}.left-bar{width:256px;float:left;position:fixed;margin-top:16px;bottom:0;top:0;left:0;padding-top:2rem}.content-area{padding-left:16px;margin-left:256px}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(e,t){function n(e){return!!e&&"object"==typeof e}function r(e){return"string"==typeof e||n(e)&&s.call(e)==o}var o="[object String]",i=Object.prototype,s=i.toString;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(3),i=n(4),s=n(22),a=o.createClass({displayName:"BeforeAfterWrapper",mixins:[i],propTypes:{beforeStyle:o.PropTypes.object,afterStyle:o.PropTypes.object,beforeElementType:o.PropTypes.string,afterElementType:o.PropTypes.string,elementType:o.PropTypes.string},getDefaultProps:function(){return{beforeElementType:"div",afterElementType:"div",elementType:"div"}},render:function(){var e=this.props,t=e.beforeStyle,n=e.afterStyle,i=(e.beforeElementType,e.afterElementType,e.elementType,r(e,["beforeStyle","afterStyle","beforeElementType","afterElementType","elementType"])),a=void 0,u=void 0;t=s.all({boxSizing:"border-box"}),n=s.all({boxSizing:"border-box"}),this.props.beforeStyle&&(a=o.createElement(this.props.beforeElementType,{style:this.mergeAndPrefix(t,this.props.beforeStyle),key:"::before"})),this.props.afterStyle&&(u=o.createElement(this.props.afterElementType,{style:this.mergeAndPrefix(n,this.props.afterStyle),key:"::after"}));var c=[a,this.props.children,u],l=i;return l.style=this.props.style,o.createElement(this.props.elementType,l,c)}});e.exports=a},function(e,t,n){"use strict";var r=n(10),o=n(44),i=n(127),s=n(7),a=n(6),u=r.createClass({displayName:"FlatButtonLabel",mixins:[o],contextTypes:{muiTheme:r.PropTypes.object},propTypes:{label:r.PropTypes.node,style:r.PropTypes.object},childContextTypes:{muiTheme:r.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:a.getMuiTheme(s)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},statics:{getRelevantContextKeys:function(e){return{spacingDesktopGutterLess:e.rawTheme.spacing.desktopGutterLess}}},render:function(){var e=this.props,t=e.label,n=e.style,o=this.constructor.getRelevantContextKeys(this.state.muiTheme),s=i.mergeAndPrefix({position:"relative",padding:"0 "+o.spacingDesktopGutterLess+"px"},n);return r.createElement("span",{style:s},t)}});e.exports=u},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(22),u=n(11),c=n(7),l=n(6),p=i.createClass({displayName:"CircularProgress",mixins:[s],propTypes:{mode:i.PropTypes.oneOf(["determinate","indeterminate"]),value:i.PropTypes.number,min:i.PropTypes.number,max:i.PropTypes.number,size:i.PropTypes.number,color:i.PropTypes.string,innerStyle:i.PropTypes.object},contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},_getRelativeValue:function(){var e=this.props.value,t=this.props.min,n=this.props.max,r=Math.min(Math.max(t,e),n),o=n-t,i=Math.round(r/o*1e4)/1e4;return 100*i},componentDidMount:function(){var e=i.findDOMNode(this.refs.wrapper),t=i.findDOMNode(this.refs.path);this._scalePath(t),this._rotateWrapper(e)},_scalePath:function(e,t){t=t||0,t%=3,setTimeout(this._scalePath.bind(this,e,t+1),t?750:250),this.isMounted()&&"indeterminate"===this.props.mode&&(0===t?(e.style.strokeDasharray="1, 200",e.style.strokeDashoffset=0,e.style.transitionDuration="0ms"):1===t?(e.style.strokeDasharray="89, 200",e.style.strokeDashoffset=-35,e.style.transitionDuration="750ms"):(e.style.strokeDasharray="89,200",e.style.strokeDashoffset=-124,e.style.transitionDuration="850ms"))},_rotateWrapper:function(e){setTimeout(this._rotateWrapper.bind(this,e),10050),this.isMounted()&&"indeterminate"===this.props.mode&&(a.set(e.style,"transform",null),a.set(e.style,"transform","rotate(0deg)"),e.style.transitionDuration="0ms",setTimeout(function(){a.set(e.style,"transform","rotate(1800deg)"),e.style.transitionDuration="10s",a.set(e.style,"transitionTimingFunction","linear")},50))},getDefaultProps:function(){return{mode:"indeterminate",value:0,min:0,max:100,size:1}},getTheme:function(){return this.state.muiTheme.rawTheme.palette},getStyles:function(e){e*=1.4;var t="50px",n=Math.round((50*e-50)/2);0>n&&(n=0);var r={root:{position:"relative",margin:n+"px",display:"inline-block",width:t,height:t},wrapper:{width:t,height:t,margin:"5px",display:"inline-block",transition:u.create("transform","20s",null,"linear")},svg:{height:t,position:"relative",transform:"scale("+e+")",width:t},path:{strokeDasharray:"89,200",strokeDashoffset:0,stroke:this.props.color||this.getTheme().primary1Color,strokeLinecap:"round",transition:u.create("all","1.5s",null,"ease-in-out")}};if(a.set(r.wrapper,"transitionTimingFunction","linear"),"determinate"===this.props.mode){var o=this._getRelativeValue();r.path.transition=u.create("all","0.3s",null,"linear"),r.path.strokeDasharray=Math.round(1.25*o)+",200"}return r},render:function(){var e=this.props,t=e.style,n=e.innerStyle,s=e.size,a=r(e,["style","innerStyle","size"]),u=this.getStyles(s||1);return i.createElement("div",o({},a,{style:this.mergeAndPrefix(u.root,t)}),i.createElement("div",{ref:"wrapper",style:this.mergeAndPrefix(u.wrapper,n)},i.createElement("svg",{style:this.mergeAndPrefix(u.svg)},i.createElement("circle",{ref:"path",style:this.mergeAndPrefix(u.path),cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"2.5",strokeMiterlimit:"10"}))))}});e.exports=p},function(e,t,n){(function(t){"use strict";var r=n(3),o=n(4),i=n(11),s=n(48),a=n(124),u=n(19),c=n(206),l=n(114),p=n(7),h=n(6),d=r.createClass({displayName:"DropDownMenu",mixins:[o],contextTypes:{muiTheme:r.PropTypes.object},childContextTypes:{muiTheme:r.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{className:r.PropTypes.string,displayMember:r.PropTypes.string,valueMember:r.PropTypes.string,autoWidth:r.PropTypes.bool,disabled:r.PropTypes.bool,onChange:r.PropTypes.func,menuItems:r.PropTypes.array.isRequired,menuItemStyle:r.PropTypes.object,underlineStyle:r.PropTypes.object,iconStyle:r.PropTypes.object,labelStyle:r.PropTypes.object,selectedIndex:r.PropTypes.number},getDefaultProps:function(){return{autoWidth:!0,disabled:!1,valueMember:"payload",displayMember:"text"}},getInitialState:function(){return{open:!1,selectedIndex:this._isControlled()?null:this.props.selectedIndex||0,muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentDidMount:function(){this.props.autoWidth&&this._setWidth(),this.props.hasOwnProperty("selectedIndex")&&this._setSelectedIndex(this.props)},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n}),this.props.autoWidth&&this._setWidth(),e.hasOwnProperty("value")||e.hasOwnProperty("valueLink")||e.hasOwnProperty("selectedIndex")&&this._setSelectedIndex(e)},getStyles:function(){var e=this.props.disabled,t=5,n=this.state.muiTheme.rawTheme.spacing,r=this.state.muiTheme.dropDownMenu.accentColor,o=this.state.muiTheme.menu.backgroundColor,s={root:{transition:i.easeOut(),position:"relative",display:"inline-block",height:n.desktopSubheaderHeight,fontSize:n.desktopDropDownMenuFontSize,outline:"none"},control:{cursor:e?"not-allowed":"pointer",position:"static",height:"100%"},controlBg:{transition:i.easeOut(),backgroundColor:o,height:"100%",width:"100%",opacity:0},icon:{position:"absolute",top:(n.desktopToolbarHeight-24)/2,right:n.desktopGutterLess,fill:this.state.muiTheme.dropDownMenu.accentColor},label:{transition:i.easeOut(),lineHeight:n.desktopToolbarHeight+"px",position:"absolute",paddingLeft:n.desktopGutter,top:0,opacity:1,color:e?this.state.muiTheme.rawTheme.palette.disabledColor:this.state.muiTheme.rawTheme.palette.textColor},underline:{borderTop:"solid 1px "+r,margin:"-1px "+n.desktopGutter+"px"},menu:{zIndex:t+1},menuItem:{paddingRight:n.iconSize+n.desktopGutterLess+n.desktopGutterMini,height:n.desktopDropDownMenuItemHeight,lineHeight:n.desktopDropDownMenuItemHeight+"px",whiteSpace:"nowrap"},rootWhenOpen:{opacity:1},labelWhenOpen:{opacity:0,top:n.desktopToolbarHeight/2},overlay:{height:"100%",width:"100%",position:"fixed",top:0,left:0,zIndex:t}};return s},getInputNode:function(){var e=this.refs.root,t=this.props.menuItems[this.state.selectedIndex];return t&&(e.value=t[this.props.displayMember]),e},render:function(){var e=this,n=this.getStyles(),o=this._isControlled()?null:this.state.selectedIndex,i="";if(o)"production"!==t.env.NODE_ENV&&console.assert(!!this.props.menuItems[o],"SelectedIndex of "+o+" does not exist in menuItems.");else if(this.props.valueMember&&this._isControlled()){var s=this.props.hasOwnProperty("value")?this.props.value:this.props.valueLink.value;if(null!==s&&void 0!==s)for(var p=0;p<this.props.menuItems.length;p++)this.props.menuItems[p][this.props.valueMember]===s&&(o=p)}var h=this.props.menuItems[o];h&&(i=h[this.props.displayMember]);var d=this.props.menuItems.map(function(t){return t.text=t[e.props.displayMember],t.payload=t[e.props.valueMember],t});return r.createElement("div",{ref:"root",onKeyDown:this._onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,className:this.props.className,style:this.mergeAndPrefix(n.root,this.state.open&&n.rootWhenOpen,this.props.style)},r.createElement(l,{style:this.mergeAndPrefix(n.control),onTouchTap:this._onControlClick},r.createElement(u,{style:this.mergeAndPrefix(n.controlBg),zDepth:0}),r.createElement("div",{style:this.mergeAndPrefix(n.label,this.state.open&&n.labelWhenOpen,this.props.labelStyle)},i),r.createElement(a,{style:this.mergeAndPrefix(n.icon,this.props.iconStyle)}),r.createElement("div",{style:this.mergeAndPrefix(n.underline,this.props.underlineStyle)})),r.createElement(c,{ref:"menuItems",autoWidth:this.props.autoWidth,selectedIndex:o,menuItems:d,style:n.menu,menuItemStyle:this.mergeAndPrefix(n.menuItem,this.props.menuItemStyle),hideable:!0,visible:this.state.open,onRequestClose:this._onMenuRequestClose,onItemTap:this._onMenuItemClick}),this.state.open&&r.createElement("div",{style:n.overlay,onTouchTap:this._handleOverlayTouchTap}))},_setWidth:function(){var e=r.findDOMNode(this),t=r.findDOMNode(this.refs.menuItems);this.props.style&&this.props.style.hasOwnProperty("width")||(e.style.width="auto",e.style.width=t.offsetWidth+"px")},_setSelectedIndex:function(e){var n=e.selectedIndex;"production"!==t.env.NODE_ENV&&0>n&&console.warn("Cannot set selectedIndex to a negative index.",n),this.setState({selectedIndex:n>-1?n:0})},_onControlClick:function(){this.props.disabled||this.setState({open:!this.state.open})},_onKeyDown:function(e){switch(e.which){case s.UP:this.state.open?e.altKey&&this.setState({open:!1}):this._selectPreviousItem();break;case s.DOWN:this.state.open||(e.altKey?this.setState({open:!0}):this._selectNextItem());break;case s.ENTER:case s.SPACE:this.setState({open:!0});break;default:return}e.preventDefault()},_onMenuItemClick:function(e,t,n){if(this.props.onChange&&this.state.selectedIndex!==t){var r=this.props.menuItems[t];r&&(e.target.value=r[this.props.valueMember]),this.props.valueLink?this.props.valueLink.requestChange(e.target.value):this.props.onChange(e,t,n)}this.setState({selectedIndex:t,value:e.target.value,open:!1})},_onMenuRequestClose:function(){this.setState({open:!1})},_selectPreviousItem:function(){this.setState({selectedIndex:Math.max(this.state.selectedIndex-1,0)})},_selectNextItem:function(){this.setState({selectedIndex:Math.min(this.state.selectedIndex+1,this.props.menuItems.length-1)})},_handleOverlayTouchTap:function(){this.setState({open:!1})},_isControlled:function(){return this.props.hasOwnProperty("value")||this.props.hasOwnProperty("valueLink")}});e.exports=d}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(22),u=24,c={textarea:{width:"100%",resize:"none",font:"inherit",padding:0},shadow:{width:"100%",resize:"none",overflow:"hidden",font:"inherit",padding:0,position:"absolute",opacity:0}},l=i.createClass({displayName:"EnhancedTextarea",mixins:[s],propTypes:{onChange:i.PropTypes.func,onHeightChange:i.PropTypes.func,textareaStyle:i.PropTypes.object,rows:i.PropTypes.number,rowsMax:i.PropTypes.number},getDefaultProps:function(){return{rows:1}},getInitialState:function(){return{height:this.props.rows*u}},componentDidMount:function(){this._syncHeightWithShadow()},render:function(){var e=this.props,t=(e.onChange,e.onHeightChange,e.rows,e.style),n=e.textareaStyle,s=(e.valueLink,r(e,["onChange","onHeightChange","rows","style","textareaStyle","valueLink"])),u=this.mergeAndPrefix(c.textarea,n,{height:this.state.height}),l=this.mergeAndPrefix(c.shadow);return this.props.hasOwnProperty("valueLink")&&(s.value=this.props.valueLink.value),this.props.disabled&&(t.cursor="default"),i.createElement("div",{style:this.props.style},i.createElement("textarea",{ref:"shadow",style:a.all(l),tabIndex:"-1",rows:this.props.rows,defaultValue:this.props.defaultValue,readOnly:!0,value:this.props.value,valueLink:this.props.valueLink}),i.createElement("textarea",o({},s,{ref:"input",rows:this.props.rows,style:a.all(u),onChange:this._handleChange})))},getInputNode:function(){return i.findDOMNode(this.refs.input)},setValue:function(e){this.getInputNode().value=e,this._syncHeightWithShadow(e)},_syncHeightWithShadow:function(e,t){var n=i.findDOMNode(this.refs.shadow);void 0!==e&&(n.value=e);var r=n.scrollHeight;this.props.rowsMax>this.props.rows&&(r=Math.min(this.props.rowsMax*u,r)),this.state.height!==r&&(this.setState({height:r}),this.props.onHeightChange&&this.props.onHeightChange(t,r))},_handleChange:function(e){this._syncHeightWithShadow(e.target.value),this.props.hasOwnProperty("valueLink")&&this.props.valueLink.requestChange(e.target.value),this.props.onChange&&this.props.onChange(e)},componentWillReceiveProps:function(e){e.value!==this.props.value&&this._syncHeightWithShadow(e.value)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(44),u=n(11),c=n(62),l=n(43),p=n(36),h=n(219),d=n(60),f=n(7),m=n(6),v=i.createClass({displayName:"IconButton",mixins:[s,a],contextTypes:{muiTheme:i.PropTypes.object},statics:{getRelevantContextKeys:function(e){var t=e.rawTheme.spacing,n=e.rawTheme.palette;return{iconSize:t.iconSize,textColor:n.textColor,disabledColor:n.disabledColor}},getChildrenClasses:function(){return[l,p,h]}},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{className:i.PropTypes.string,disabled:i.PropTypes.bool,iconClassName:i.PropTypes.string,iconStyle:i.PropTypes.object,onBlur:i.PropTypes.func,onFocus:i.PropTypes.func,onKeyboardFocus:i.PropTypes.func,tooltip:i.PropTypes.node,tooltipStyles:i.PropTypes.object,tooltipPosition:c.cornersAndCenter,touch:i.PropTypes.bool},getInitialState:function(){return{tooltipShown:!1,muiTheme:this.context.muiTheme?this.context.muiTheme:m.getMuiTheme(f)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getDefaultProps:function(){return{iconStyle:{},tooltipPosition:"bottom-center"}},getStyles:function(){var e=this.constructor.getRelevantContextKeys(this.state.muiTheme),t=e.iconSize,n=e.textColor,r=e.disabledColor,o={root:{position:"relative",boxSizing:"border-box",transition:u.easeOut(),padding:t/2,width:2*t,height:2*t,fontSize:0},tooltip:{boxSizing:"border-box"},icon:{color:n,fill:n},overlay:{position:"relative",top:0,width:"100%",height:"100%",background:r},disabled:{color:r,fill:r}};return o},render:function(){var e=this.props,t=e.disabled,n=e.iconClassName,s=e.tooltip,a=e.touch,u=e.iconStyle,c=r(e,["disabled","iconClassName","tooltip","touch","iconStyle"]),f=void 0,m=this.getStyles(),v=this.props.tooltipPosition.split("-"),y=s?i.createElement(h,{ref:"tooltip",label:s,show:this.state.tooltipShown,touch:a,style:this.mergeStyles(m.tooltip,this.props.tooltipStyles),verticalPosition:v[0],horizontalPosition:v[1]}):null;if(n){var g=u.iconHoverColor,b=r(u,["iconHoverColor"]);f=i.createElement(p,{className:n,hoverColor:t?null:g,style:this.mergeStyles(m.icon,t?m.disabled:{},b)},this.props.children)}var w=t?this.mergeStyles(u,m.disabled):u;return i.createElement(l,o({},c,{ref:"button",centerRipple:!0,disabled:t,style:this.mergeStyles(m.root,this.props.style),onBlur:this._handleBlur,onFocus:this._handleFocus,onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,onKeyboardFocus:this._handleKeyboardFocus}),y,f,d.extend(this.props.children,{style:w}))},setKeyboardFocus:function(){this.refs.button.setKeyboardFocus()},_showTooltip:function(){!this.props.disabled&&this.props.tooltip&&this.setState({tooltipShown:!0})},_hideTooltip:function(){this.props.tooltip&&this.setState({tooltipShown:!1})},_handleBlur:function(e){this._hideTooltip(),this.props.onBlur&&this.props.onBlur(e)},_handleFocus:function(e){this._showTooltip(),this.props.onFocus&&this.props.onFocus(e)},_handleMouseLeave:function(e){this.refs.button.isKeyboardFocused()||this._hideTooltip(),this.props.onMouseLeave&&this.props.onMouseLeave(e)},_handleMouseEnter:function(e){this._showTooltip(),this.props.onMouseEnter&&this.props.onMouseEnter(e)},_handleKeyboardFocus:function(e,t){t&&!this.props.disabled?(this._showTooltip(),this.props.onFocus&&this.props.onFocus(e)):this.state.hovered||(this._hideTooltip(),this.props.onBlur&&this.props.onBlur(e)),this.props.onKeyboardFocus&&this.props.onKeyboardFocus(e,t)}});e.exports=v},function(e,t,n){"use strict";var r=n(3),o=n(47),i=n(76),s=r.createClass({
+displayName:"NestedList",propTypes:{nestedLevel:r.PropTypes.number,open:r.PropTypes.bool},getDefaultProps:function(){return{nestedLevel:1,open:!1}},render:function(){var e=this.props,t=e.children,n=e.open,s=e.nestedLevel,a=e.style,u={root:{display:n?null:"none"}};return r.createElement(i,{style:o.merge(u.root,a)},r.Children.map(t,function(e){return r.isValidElement(e)?r.cloneElement(e,{nestedLevel:s+1}):e}))}});e.exports=s},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(3),i=n(4),s=n(7),a=n(6),u=o.createClass({displayName:"LinkMenuItem",mixins:[i],contextTypes:{muiTheme:o.PropTypes.object},propTypes:{index:o.PropTypes.number.isRequired,payload:o.PropTypes.string.isRequired,text:o.PropTypes.string.isRequired,target:o.PropTypes.string,active:o.PropTypes.bool,disabled:o.PropTypes.bool,className:o.PropTypes.string},getDefaultProps:function(){return{active:!1,disabled:!1}},childContextTypes:{muiTheme:o.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:a.getMuiTheme(s),hovered:!1}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getTheme:function(){return this.state.muiTheme.menuItem},getStyles:function(){var e={root:{userSelect:"none",cursor:"pointer",display:"block",lineHeight:this.getTheme().height+"px",paddingLeft:this.getTheme().padding,paddingRight:this.getTheme().padding},rootWhenHovered:{backgroundColor:this.getTheme().hoverColor},rootWhenSelected:{color:this.getTheme().selectedTextColor},rootWhenDisabled:{cursor:"default",color:this.state.muiTheme.rawTheme.palette.disabledColor}};return e},render:function(){var e=this.props.disabled?this._stopLink:void 0,t=this.props.disabled?"data-href":"href",n={};n[t]=this.props.payload;var i=this.getStyles(),s=this.mergeAndPrefix(i.root,this.props.selected&&i.rootWhenSelected,this.props.selected&&i.rootWhenSelected,this.props.active&&!this.props.disabled&&i.rootWhenHovered,this.props.style,this.props.disabled&&i.rootWhenDisabled);return o.createElement("a",r({key:this.props.index,target:this.props.target,style:s},n,{className:this.props.className,onClick:e,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave}),this.props.text)},_stopLink:function(e){e.preventDefault()},_handleMouseEnter:function(e){this.setState({hovered:!0}),!this.props.disabled&&this.props.onMouseEnter&&this.props.onMouseEnter(e)},_handleMouseLeave:function(e){this.setState({hovered:!1}),!this.props.disabled&&this.props.onMouseLeave&&this.props.onMouseLeave(e)}});e.exports=u},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(36),u=n(218),c=n(7),l=n(6),p={LINK:"LINK",SUBHEADER:"SUBHEADER",NESTED:"NESTED"},h=i.createClass({displayName:"MenuItem",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{index:i.PropTypes.number.isRequired,className:i.PropTypes.string,iconClassName:i.PropTypes.string,iconRightClassName:i.PropTypes.string,iconStyle:i.PropTypes.object,iconRightStyle:i.PropTypes.object,attribute:i.PropTypes.string,number:i.PropTypes.string,data:i.PropTypes.string,toggle:i.PropTypes.bool,disabled:i.PropTypes.bool,onTouchTap:i.PropTypes.func,onToggle:i.PropTypes.func,selected:i.PropTypes.bool,active:i.PropTypes.bool},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},statics:{Types:p},getDefaultProps:function(){return{toggle:!1,disabled:!1,active:!1}},getTheme:function(){return this.state.muiTheme.menuItem},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{userSelect:"none",cursor:"pointer",lineHeight:this.getTheme().height+"px",paddingLeft:this.getTheme().padding,paddingRight:this.getTheme().padding,color:this.state.muiTheme.rawTheme.palette.textColor},number:{"float":"right",width:24,textAlign:"center"},attribute:{"float":"right"},iconRight:{lineHeight:this.getTheme().height+"px","float":"right"},icon:{"float":"left",lineHeight:this.getTheme().height+"px",marginRight:this.getSpacing().desktopGutter},data:{display:"block",paddingLeft:2*this.getSpacing().desktopGutter,lineHeight:this.getTheme().dataHeight+"px",height:this.getTheme().dataHeight+"px",verticalAlign:"top",top:-12,position:"relative",fontWeight:300,color:this.state.muiTheme.rawTheme.palette.textColor},toggle:{marginTop:(this.getTheme().height-this.state.muiTheme.radioButton.size)/2,"float":"right",width:42},rootWhenHovered:{backgroundColor:this.getTheme().hoverColor},rootWhenSelected:{color:this.getTheme().selectedTextColor},rootWhenDisabled:{cursor:"default",color:this.state.muiTheme.rawTheme.palette.disabledColor}};return e},render:function(){var e=void 0,t=void 0,n=void 0,s=void 0,c=void 0,l=void 0,p=this.getStyles();if(this.props.iconClassName&&(e=i.createElement(a,{style:this.mergeAndPrefix(p.icon,this.props.iconStyle,this.props.selected&&p.rootWhenSelected),className:this.props.iconClassName})),this.props.iconRightClassName&&(n=i.createElement(a,{style:this.mergeAndPrefix(p.iconRight,this.props.iconRightStyle),className:this.props.iconRightClassName})),this.props.data&&(t=i.createElement("span",{style:this.mergeAndPrefix(p.data)},this.props.data)),void 0!==this.props.number&&(c=i.createElement("span",{style:this.mergeAndPrefix(p.number)},this.props.number)),void 0!==this.props.attribute&&(s=i.createElement("span",{style:this.mergeAndPrefix(p.style)},this.props.attribute)),this.props.icon&&(e=this.props.icon),this.props.toggle){var h=this.props,d=(h.toggle,h.onTouchTap,h.onToggle,h.onMouseEnter,h.onMouseLeave,h.children,h.label,h.style,r(h,["toggle","onTouchTap","onToggle","onMouseEnter","onMouseLeave","children","label","style"]));l=i.createElement(u,o({},d,{onToggle:this._handleToggle,style:p.toggle}))}return i.createElement("div",{key:this.props.index,className:this.props.className,onTouchTap:this._handleTouchTap,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave,style:this.mergeAndPrefix(p.root,this.props.selected&&p.rootWhenSelected,this.props.active&&!this.props.disabled&&p.rootWhenHovered,this.props.style,this.props.disabled&&p.rootWhenDisabled)},e,this.props.children,c,s,t,l,n)},_handleTouchTap:function(e){!this.props.disabled&&this.props.onTouchTap&&this.props.onTouchTap(e,this.props.index)},_handleToggle:function(e,t){!this.props.disabled&&this.props.onToggle&&this.props.onToggle(e,this.props.index,t)},_handleMouseEnter:function(e){!this.props.disabled&&this.props.onMouseEnter&&this.props.onMouseEnter(e,this.props.index)},_handleMouseLeave:function(e){!this.props.disabled&&this.props.onMouseLeave&&this.props.onMouseLeave(e,this.props.index)}});e.exports=h},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(125),a=n(224),u=n(48),c=n(4),l=n(11),p=n(118),h=n(19),d=n(205),f=n(204),m=n(207),v=n(7),y=n(6),g=i.createClass({displayName:"NestedMenuItem",mixins:[p,c],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{index:i.PropTypes.number.isRequired,text:i.PropTypes.string,menuItems:i.PropTypes.array.isRequired,zDepth:i.PropTypes.number,disabled:i.PropTypes.bool,active:i.PropTypes.bool,onItemTap:i.PropTypes.func,menuItemStyle:i.PropTypes.object},getDefaultProps:function(){return{disabled:!1}},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:y.getMuiTheme(v),open:!1,activeIndex:0}},componentClickAway:function(){this._closeNestedMenu()},componentDidMount:function(){this._positionNestedMenu();var e=this.getDOMNode();e.focus()},componentDidUpdate:function(){this._positionNestedMenu()},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{userSelect:"none",cursor:"pointer",lineHeight:this.getTheme().height+"px",color:this.state.muiTheme.rawTheme.palette.textColor},icon:{"float":"left",lineHeight:this.getTheme().height+"px",marginRight:this.getSpacing().desktopGutter},toggle:{marginTop:(this.getTheme().height-this.state.muiTheme.radioButton.size)/2,"float":"right",width:42},rootWhenHovered:{backgroundColor:this.getTheme().hoverColor},rootWhenSelected:{color:this.getTheme().selectedTextColor},rootWhenDisabled:{cursor:"default",color:this.state.muiTheme.rawTheme.palette.disabledColor}};return e},getTheme:function(){return this.state.muiTheme.menuItem},render:function(){var e=this.getStyles();e=this.mergeAndPrefix(e.root,this.props.active&&!this.props.disabled&&e.rootWhenHovered,{position:"relative"},this.props.style);var t={marginRight:-1*this.getSpacing().desktopGutterMini,color:this.state.muiTheme.dropDownMenu.accentColor},n=this.props,s=n.index,a=n.menuItemStyle,u=r(n,["index","menuItemStyle"]);return i.createElement("div",{ref:"root",style:e,onMouseEnter:this._openNestedMenu,onMouseLeave:this._closeNestedMenu,onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},i.createElement(d,{index:s,style:a,disabled:this.props.disabled,iconRightStyle:t,iconRightClassName:"muidocs-icon-custom-arrow-drop-right",onTouchTap:this._onParentItemTap},this.props.text),i.createElement(b,o({},u,{ref:"nestedMenu",menuItems:this.props.menuItems,menuItemStyle:a,onItemTap:this._onMenuItemTap,hideable:!0,visible:this.state.open,onRequestClose:this._closeNestedMenu,zDepth:this.props.zDepth+1})))},toggleNestedMenu:function(){this.props.disabled||this.setState({open:!this.state.open})},isOpen:function(){return this.state.open},_positionNestedMenu:function(){var e=i.findDOMNode(this),t=i.findDOMNode(this.refs.nestedMenu);t.style.left=e.offsetWidth+"px"},_openNestedMenu:function(){this.props.disabled||this.setState({open:!0})},_closeNestedMenu:function(){this.setState({open:!1}),i.findDOMNode(this).focus()},_onParentItemTap:function(){this.toggleNestedMenu()},_onMenuItemTap:function(e,t,n){this.props.onItemTap&&this.props.onItemTap(e,t,n),this._closeNestedMenu()},_handleMouseOver:function(e){!this.props.disabled&&this.props.onMouseOver&&this.props.onMouseOver(e,this.props.index)},_handleMouseOut:function(e){!this.props.disabled&&this.props.onMouseOut&&this.props.onMouseOut(e,this.props.index)}}),b=i.createClass({displayName:"Menu",mixins:[c],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{autoWidth:i.PropTypes.bool,onItemTap:i.PropTypes.func,onToggle:i.PropTypes.func,onRequestClose:i.PropTypes.func,menuItems:i.PropTypes.array.isRequired,selectedIndex:i.PropTypes.number,hideable:i.PropTypes.bool,visible:i.PropTypes.bool,zDepth:i.PropTypes.number,menuItemStyle:i.PropTypes.object,menuItemStyleSubheader:i.PropTypes.object,menuItemStyleLink:i.PropTypes.object,menuItemClassName:i.PropTypes.string,menuItemClassNameSubheader:i.PropTypes.string,menuItemClassNameLink:i.PropTypes.string},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:y.getMuiTheme(v),nestedMenuShown:!1,activeIndex:0}},getDefaultProps:function(){return{autoWidth:!0,hideable:!1,visible:!0,zDepth:1,onRequestClose:function(){}}},componentDidMount:function(){var e=i.findDOMNode(this);this._setKeyWidth(e),this._renderVisibility()},componentDidUpdate:function(e){(this.props.visible!==e.visible||this.props.menuItems.length!==e.menuItems.length)&&this._renderVisibility()},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n}),this._setKeyWidth(i.findDOMNode(this))},getTheme:function(){return this.state.muiTheme.menu},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{backgroundColor:this.getTheme().containerBackgroundColor,paddingTop:this.getSpacing().desktopGutterMini,paddingBottom:this.getSpacing().desktopGutterMini,transition:l.easeOut(null,"height"),outline:"none !important"},subheader:{paddingLeft:this.state.muiTheme.menuSubheader.padding,paddingRight:this.state.muiTheme.menuSubheader.padding},hideable:{overflow:"hidden",position:"absolute",top:0,zIndex:1},item:{height:34}};return e},render:function(){var e=this.getStyles();return i.createElement(h,{ref:"paperContainer",tabIndex:"0",onKeyDown:this._onKeyDown,zDepth:this.props.zDepth,style:this.mergeAndPrefix(e.root,this.props.hideable&&e.hideable,this.props.style)},this._getChildren())},_getChildren:function(){var e=void 0,t=void 0,n=void 0,s=this.getStyles();this._children=[],this._nestedChildren=[];for(var a=0;a<this.props.menuItems.length;a++){e=this.props.menuItems[a],n=void 0===e.disabled?!1:e.disabled;var u=e,c=(u.icon,u.data,u.attribute,u.number,u.toggle,u.onTouchTap,r(u,["icon","data","attribute","number","toggle","onTouchTap"]));switch(e.type){case d.Types.LINK:t=i.createElement(f,{key:a,index:a,active:this.state.activeIndex===a,text:e.text,disabled:n,className:this.props.menuItemClassNameLink,style:this.props.menuItemStyleLink,payload:e.payload,target:e.target});break;case d.Types.SUBHEADER:t=i.createElement(m,{key:a,index:a,className:this.props.menuItemClassNameSubheader,style:this.mergeAndPrefix(s.subheader,this.props.menuItemStyleSubheader),firstChild:0===a,text:e.text});break;case d.Types.NESTED:var l=this.props,c=(l.ref,l.key,l.index,l.zDepth,r(l,["ref","key","index","zDepth"]));t=i.createElement(g,o({},c,{ref:a,key:a,index:a,nested:!0,active:this.state.activeIndex===a,text:e.text,disabled:n,menuItems:e.items,menuItemStyle:this.props.menuItemStyle,zDepth:this.props.zDepth,onMouseEnter:this._onItemActivated,onMouseLeave:this._onItemDeactivated,onItemTap:this._onNestedItemTap})),this._nestedChildren.push(a);break;default:t=i.createElement(d,o({},c,{selected:this.props.selectedIndex===a,key:a,index:a,active:this.state.activeIndex===a,icon:e.icon,data:e.data,className:this.props.menuItemClassName,style:this.props.menuItemStyle,attribute:e.attribute,number:e.number,toggle:e.toggle,onToggle:this.props.onToggle,disabled:n,onTouchTap:this._onItemTap,onMouseEnter:this._onItemActivated,onMouseLeave:this._onItemDeactivated}),e.text)}this._children.push(t)}return this._children},_setKeyWidth:function(e){var t="100%";this.props.autoWidth&&(e.style.width="auto",t=a.getIncrementalDim(e.offsetWidth)+"px"),e.style.width=t},_renderVisibility:function(){this.props.hideable&&(this.props.visible?this._expandHideableMenu():this._collapseHideableMenu())},_expandHideableMenu:function(){var e=this,t=i.findDOMNode(this),n=i.findDOMNode(this.refs.paperContainer),r=this.getSpacing().desktopGutterMini,o=this._getHiddenMenuHeight(t,r);t.style.transition||(t.style.transition=l.easeOut()),this._nextAnimationFrame(function(){n.style.overflow="hidden",t.style.paddingTop=r+"px",t.style.paddingBottom=r+"px",t.style.height=o+"px",t.style.opacity=1,s.onTransitionEnd(t,function(){e.props.visible&&(n.style.overflow="visible"),t.style.transition=null,t.focus()})})},_getHiddenMenuHeight:function(e,t){var n=2*t;return e.style.visibility="hidden",e.style.height="auto",n+=e.offsetHeight,e.style.height="0px",e.style.visibility="visible",n},_collapseHideableMenu:function(){var e=i.findDOMNode(this),t=i.findDOMNode(this.refs.paperContainer),n=e.style.opacity;e.style.transition||""===n||(e.style.transition=l.easeOut()),this._nextAnimationFrame(function(){t.style.overflow="hidden",e.style.opacity=0,e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px";var r=function(){e.style.transition=null};""===n?r():s.onTransitionEnd(e,r)})},_nextAnimationFrame:function(e){return window.requestAnimationFrame?window.requestAnimationFrame(e):setTimeout(e,16)},_onNestedItemTap:function(e,t,n){this.props.onItemTap&&this.props.onItemTap(e,t,n)},_onItemTap:function(e,t){this.props.onItemTap&&this.props.onItemTap(e,t,this.props.menuItems[t])},_onItemToggle:function(e,t,n){this.props.onItemToggle&&this.props.onItemToggle(e,t,this.props.menuItems[t],n)},_onItemActivated:function(e,t){this.setState({activeIndex:t})},_onItemDeactivated:function(e,t){this.state.activeKey===t&&this.setState({activeIndex:0})},_onKeyDown:function(e){if(this.state.open||this.props.visible){var t=this._children[this.state.activeIndex];if(!(t&&t.props.nested&&this.refs[this.state.activeIndex].isOpen())){switch(e.which){case u.UP:this._activatePreviousItem();break;case u.DOWN:this._activateNextItem();break;case u.RIGHT:this._tryToggleNested(this.state.activeIndex);break;case u.LEFT:this._close();break;case u.ESC:this._close();break;case u.TAB:return void this._close();case u.ENTER:case u.SPACE:e.stopPropagation(),this._triggerSelection(e);break;default:return}e.preventDefault(),e.stopPropagation()}}},_activatePreviousItem:function(){var e=this.state.activeIndex||0;e=Math.max(e-1,0),this.setState({activeIndex:e})},_activateNextItem:function(){var e=this.state.activeIndex||0;e=Math.min(e+1,this._children.length-1),this.setState({activeIndex:e})},_triggerSelection:function(e){var t=this.state.activeIndex||0;this._onItemTap(e,t)},_close:function(){this.props.onRequestClose()},_tryToggleNested:function(e){var t=this.refs[e];t&&t.toggleNestedMenu&&t.toggleNestedMenu()}});e.exports=b},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(45),s=n(7),a=n(6),u=r.createClass({displayName:"SubheaderMenuItem",mixins:[o],contextTypes:{muiTheme:r.PropTypes.object},propTypes:{index:r.PropTypes.number.isRequired,text:r.PropTypes.string.isRequired,firstChild:r.PropTypes.bool,className:r.PropTypes.string},childContextTypes:{muiTheme:r.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:a.getMuiTheme(s)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getTheme:function(){return this.state.muiTheme.menuSubheader},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e=this.getSpacing().desktopGutterMini,t=this.getSpacing().desktopSubheaderHeight,n={root:{boxSizing:"border-box",fontSize:"13px",letterSpacing:0,fontWeight:i.fontWeightMedium,margin:0,height:t+e,lineHeight:t+"px",color:this.getTheme().textColor,borderTop:"solid 1px "+this.getTheme().borderColor,paddingTop:e,marginTop:e},rootWhenFirstChild:{height:t,borderTop:"none",paddingTop:0,marginTop:0}};return n},render:function(){return r.createElement("div",{key:this.props.index,className:this.props.className,style:this.mergeAndPrefix(this.getStyles().root,this.props.firstChild&&this.getStyles().rootWhenFirstChild,this.props.style)},this.props.text)}});e.exports=u},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(20),c=n(215),l=n(117),p=n(7),h=n(6),d=i.createClass({displayName:"MenuItem",mixins:[s,a],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{checked:i.PropTypes.bool,desktop:i.PropTypes.bool,disabled:i.PropTypes.bool,innerDivStyle:i.PropTypes.object,insetChildren:i.PropTypes.bool,focusState:i.PropTypes.oneOf(["none","focused","keyboard-focused"]),leftIcon:i.PropTypes.element,rightIcon:i.PropTypes.element,secondaryText:i.PropTypes.node,value:i.PropTypes.string},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getDefaultProps:function(){return{focusState:"none"}},componentDidMount:function(){this._applyFocusState()},componentDidUpdate:function(){this._applyFocusState()},render:function(){var e=this.props,t=e.checked,n=e.children,s=e.desktop,a=e.disabled,p=(e.focusState,e.innerDivStyle),h=e.insetChildren,d=e.leftIcon,f=e.rightIcon,m=e.secondaryText,v=e.style,y=(e.value,r(e,["checked","children","desktop","disabled","focusState","innerDivStyle","insetChildren","leftIcon","rightIcon","secondaryText","style","value"])),g=this.state.muiTheme.rawTheme.palette.disabledColor,b=this.state.muiTheme.rawTheme.palette.textColor,w=s?64:72,E=s?24:16,T={root:{color:a?g:b,lineHeight:s?"32px":"48px",fontSize:s?15:16,whiteSpace:"nowrap"},innerDivStyle:{paddingLeft:d||h||t?w:E,paddingRight:E,paddingBottom:0,paddingTop:0},secondaryText:{"float":"right"},leftIconDesktop:{padding:0,left:24,top:4},rightIconDesktop:{padding:0,right:24,top:4,fill:u.grey600}},x=this.mergeStyles(T.root,v),C=this.mergeStyles(T.innerDivStyle,p),_=d?d:t?i.createElement(c,null):null;if(_&&s){var S=this.mergeStyles(T.leftIconDesktop,_.props.style);_=i.cloneElement(_,{style:S})}var N=void 0;if(f){var O=s?this.mergeStyles(T.rightIconDesktop,f.props.style):null;N=i.cloneElement(f,{style:O})}var D=void 0;if(m){var P=i.isValidElement(m),k=P?this.mergeStyles(T.secondaryText,m.props.style):null;D=P?i.cloneElement(m,{style:k}):i.createElement("div",{style:T.secondaryText},m)}return i.createElement(l,o({},y,{disabled:a,innerDivStyle:C,insetChildren:h,leftIcon:_,ref:"listItem",rightIcon:N,style:x}),n,D)},_applyFocusState:function(){this.refs.listItem.applyFocusState(this.props.focusState)}});e.exports=d},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.update,a=n(210),u=n(4),c=n(22),l=n(11),p=n(48),h=n(62),d=n(76),f=n(19),m=n(7),v=n(6),y=i.createClass({displayName:"Menu",mixins:[u,a],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{animated:i.PropTypes.bool,autoWidth:i.PropTypes.bool,desktop:i.PropTypes.bool,initiallyKeyboardFocused:i.PropTypes.bool,listStyle:i.PropTypes.object,maxHeight:i.PropTypes.number,multiple:i.PropTypes.bool,onEscKeyDown:i.PropTypes.func,onItemTouchTap:i.PropTypes.func,onKeyDown:i.PropTypes.func,openDirection:h.corners,selectedMenuItemStyle:i.PropTypes.object,width:h.stringOrNumber,zDepth:h.zDepth},getDefaultProps:function(){return{animated:!1,autoWidth:!0,maxHeight:null,onEscKeyDown:function(){},onItemTouchTap:function(){},onKeyDown:function(){},openDirection:"bottom-left",zDepth:1}},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){var e=this._getSelectedIndex(this.props);return{focusIndex:e>=0?e:0,isKeyboardFocused:this.props.initiallyKeyboardFocused,keyWidth:this.props.desktop?64:56,muiTheme:this.context.muiTheme?this.context.muiTheme:v.getMuiTheme(m)}},componentDidEnter:function(){this._animateOpen()},componentDidMount:function(){this.props.autoWidth&&this._setWidth(),this.props.animated||this._animateOpen(),this._setScollPosition()},componentDidUpdate:function(){this.props.autoWidth&&this._setWidth()},componentWillLeave:function(e){var t=this,n=i.findDOMNode(this).style;c.set(n,"transition",l.easeOut("250ms",["opacity","transform"])),c.set(n,"transform","translate3d(0,-8px,0)"),n.opacity=0,setTimeout(function(){t.isMounted()&&e()},250)},componentWillReceiveProps:function(e,t){var n=this._getSelectedIndex(e),r=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({focusIndex:n>=0?n:0,keyWidth:e.desktop?64:56,muiTheme:r})},render:function(){var e=this,t=this.props,n=t.animated,s=(t.autoWidth,t.children),a=t.desktop,u=(t.initiallyKeyboardFocused,t.listStyle),c=t.maxHeight,p=(t.multiple,t.openDirection),h=(t.selectedMenuItemStyle,t.style),m=(t.value,t.valueLink,t.width),v=t.zDepth,y=r(t,["animated","autoWidth","children","desktop","initiallyKeyboardFocused","listStyle","maxHeight","multiple","openDirection","selectedMenuItemStyle","style","value","valueLink","width","zDepth"]),g="bottom"===p.split("-")[0],b="left"===p.split("-")[1],w={root:{transition:n?l.easeOut("250ms","transform"):null,position:"absolute",zIndex:10,top:g?0:null,bottom:g?null:0,left:b?null:0,right:b?0:null,transform:"scaleX(0)",transformOrigin:b?"right":"left"},list:{display:"table-cell",paddingBottom:a?16:8,paddingTop:a?16:8,userSelect:"none",width:m},menuItemContainer:{transition:n?l.easeOut(null,"opacity"):null,opacity:0},paper:{transition:n?l.easeOut("500ms",["transform","opacity"]):null,transform:"scaleY(0)",transformOrigin:g?"top":"bottom",opacity:0,maxHeight:c,overflowY:c?"scroll":null},selectedMenuItem:{color:this.state.muiTheme.rawTheme.palette.accent1Color}},E=this.mergeAndPrefix(w.root,h),T=this.mergeStyles(w.list,u),x=g?175:325,C=this._getCascadeChildrenCount(),_=Math.ceil(150/C),S=0,N=i.Children.map(s,function(t){var r="MenuDivider"===t.type.displayName,o=t.props.disabled,s={};if(n){var u=e.state.focusIndex,c=0;S>=u-1&&u+C-1>=S&&(x=g?x+_:x-_,c=x),s=e.mergeAndPrefix(w.menuItemContainer,{transitionDelay:c+"ms"})}var l=r?t:o?i.cloneElement(t,{desktop:a}):e._cloneMenuItem(t,S,w);return r||o||S++,n?i.createElement("div",{style:s},l):l});return i.createElement("div",{onKeyDown:this._handleKeyDown,style:E},i.createElement(f,{ref:"scrollContainer",style:w.paper,zDepth:v},i.createElement(d,o({},y,{ref:"list",style:T}),N)))},setKeyboardFocused:function(e){this.setState({isKeyboardFocused:e})},_animateOpen:function(){var e=i.findDOMNode(this).style,t=i.findDOMNode(this.refs.scrollContainer).style,n=i.findDOMNode(this.refs.list).childNodes;c.set(e,"transform","scaleX(1)"),c.set(t,"transform","scaleY(1)"),t.opacity=1;for(var r=0;r<n.length;++r)n[r].style.opacity=1},_cloneMenuItem:function(e,t,n){var r=this,o=this.props,s=o.desktop,a=o.selectedMenuItemStyle,u=this._isChildSelected(e,this.props),c={};u&&(c=this.mergeStyles(n.selectedMenuItem,a));var l=this.mergeStyles(e.props.style||{},c),p=t===this.state.focusIndex,h="none";return p&&(h=this.state.isKeyboardFocused?"keyboard-focused":"focused"),i.cloneElement(e,{desktop:s,focusState:h,onTouchTap:function(t){r._handleMenuItemTouchTap(t,e),e.props.onTouchTap&&e.props.onTouchTap(t)},ref:p?"focusedMenuItem":null,style:l})},_decrementKeyboardFocusIndex:function(){var e=this.state.focusIndex;e--,0>e&&(e=0),this._setFocusIndex(e,!0)},_getCascadeChildrenCount:function(){var e=this.props,t=e.children,n=e.desktop,r=e.maxHeight,o=1,s=n?16:8,a=n?32:48;return r?(i.Children.forEach(t,function(e){if(r>s){var t="MenuDivider"===e.type.displayName;s+=t?16:a,o++}}),o):i.Children.count(t)},_getMenuItemCount:function(){var e=0;return i.Children.forEach(this.props.children,function(t){var n="MenuDivider"===t.type.displayName,r=t.props.disabled;n||r||e++}),e},_getSelectedIndex:function(e){var t=this,n=e.children,r=-1,o=0;return i.Children.forEach(n,function(n){var i="MenuDivider"===n.type.displayName;t._isChildSelected(n,e)&&(r=o),i||o++}),r},_handleKeyDown:function(e){switch(e.keyCode){case p.DOWN:e.preventDefault(),this._incrementKeyboardFocusIndex();break;case p.ESC:this.props.onEscKeyDown(e);break;case p.TAB:e.preventDefault(),e.shiftKey?this._decrementKeyboardFocusIndex():this._incrementKeyboardFocusIndex();break;case p.UP:e.preventDefault(),this._decrementKeyboardFocusIndex()}this.props.onKeyDown(e)},_handleMenuItemTouchTap:function(e,t){var n=this.props.multiple,r=this.getValueLink(this.props),o=r.value,i=t.props.value;if(n){var a=o.indexOf(i),u=-1===a?s(o,{$push:[i]}):s(o,{$splice:[[a,1]]});r.requestChange(e,u)}else n||i===o||r.requestChange(e,i);this.props.onItemTouchTap(e,t)},_incrementKeyboardFocusIndex:function(){var e=this.state.focusIndex,t=this._getMenuItemCount()-1;e++,e>t&&(e=t),this._setFocusIndex(e,!0)},_isChildSelected:function(e,t){var n=t.multiple,r=this.getValueLink(t).value,o=e.props.value;return n&&r.length&&-1!==r.indexOf(o)||!n&&r&&r===o},_setFocusIndex:function(e,t){this.setState({focusIndex:e,isKeyboardFocused:t})},_setScollPosition:function(){var e=this.props.desktop,t=this.refs.focusedMenuItem,n=e?32:48;if(t){var r=i.findDOMNode(t).offsetTop,o=r-n;n>o&&(o=0),i.findDOMNode(this.refs.scrollContainer).scrollTop=o}},_setWidth:function(){var e=i.findDOMNode(this),t=i.findDOMNode(this.refs.list),n=e.offsetWidth,r=this.state.keyWidth,o=1.5*r,s=n/r,a=void 0;s=1.5>=s?1.5:Math.ceil(s),a=s*r,o>a&&(a=o),e.style.width=a+"px",t.style.width=a+"px"}});e.exports=y},function(e,t,n){"use strict";var r=n(10);e.exports={propTypes:{onChange:r.PropTypes.func,value:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.array]),valueLink:r.PropTypes.shape({value:r.PropTypes.string.isRequired,requestChange:r.PropTypes.func.isRequired})},getDefaultProps:function(){return{onChange:function(){}}},getValueLink:function(e){return e.valueLink||{value:e.value,requestChange:e.onChange}}}},function(e,t,n){"use strict";var r=n(61);e.exports={componentDidMount:function(){var e=this.windowListeners;for(var t in e){var n=e[t];r.on(window,t,this[n])}},componentWillUnmount:function(){var e=this.windowListeners;for(var t in e){var n=e[t];r.off(window,t,this[n])}}}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(22),c=n(11),l=n(20),p=i.createClass({displayName:"CircleRipple",mixins:[s,a],propTypes:{color:i.PropTypes.string,opacity:i.PropTypes.number},getDefaultProps:function(){return{color:l.darkBlack,opacity:.16}},componentWillAppear:function(e){this._initializeAnimation(e)},componentWillEnter:function(e){this._initializeAnimation(e)},componentDidAppear:function(){this._animate()},componentDidEnter:function(){this._animate()},componentWillLeave:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity=0,setTimeout(function(){t.isMounted()&&e()},2e3)},render:function(){var e=this.props,t=e.color,n=(e.opacity,e.style),s=r(e,["color","opacity","style"]),a=this.mergeAndPrefix({position:"absolute",top:0,left:0,height:"100%",width:"100%",borderRadius:"50%",backgroundColor:t},n);return i.createElement("div",o({},s,{style:a}))},_animate:function(){var e=i.findDOMNode(this).style,t=c.easeOut("2s","opacity")+","+c.easeOut("1s","transform");u.set(e,"transition",t),u.set(e,"transform","scale(1)")},_initializeAnimation:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity=this.props.opacity,u.set(n,"transform","scale(0)"),setTimeout(function(){t.isMounted()&&e()},0)}});e.exports=p},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(125),a=n(4),u=n(11),c=n(118),l=n(58),p=n(7),h=n(6),d=i.createClass({
+displayName:"Snackbar",mixins:[a,c],manuallyBindClickAway:!0,_autoHideTimerId:void 0,contextTypes:{muiTheme:i.PropTypes.object},propTypes:{message:i.PropTypes.string.isRequired,action:i.PropTypes.string,autoHideDuration:i.PropTypes.number,onActionTouchTap:i.PropTypes.func,onShow:i.PropTypes.func,onDismiss:i.PropTypes.func,openOnMount:i.PropTypes.bool},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{open:this.props.openOnMount||!1,muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},componentDidMount:function(){this.props.openOnMount&&(this._setAutoHideTimer(),this._bindClickAway())},componentClickAway:function(){this.dismiss()},componentDidUpdate:function(e,t){var n=this;t.open!==this.state.open&&(this.state.open?(this._setAutoHideTimer(),s.onTransitionEnd(i.findDOMNode(this),function(){n._bindClickAway()})):this._unbindClickAway())},componentWillUnmount:function(){this._clearAutoHideTimer(),this._unbindClickAway()},getTheme:function(){return this.state.muiTheme.snackbar},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{color:this.getTheme().textColor,backgroundColor:this.getTheme().backgroundColor,borderRadius:2,padding:"0px "+this.getSpacing().desktopGutter+"px",height:this.getSpacing().desktopSubheaderHeight,lineHeight:this.getSpacing().desktopSubheaderHeight+"px",minWidth:288,maxWidth:568,position:"fixed",zIndex:10,bottom:this.getSpacing().desktopGutter,marginLeft:this.getSpacing().desktopGutter,left:0,opacity:0,visibility:"hidden",transform:"translate3d(0, 20px, 0)",transition:u.easeOut("0ms","left","400ms")+","+u.easeOut("400ms","opacity")+","+u.easeOut("400ms","transform")+","+u.easeOut("400ms","visibility")},action:{color:this.getTheme().actionColor,"float":"right",marginTop:6,marginRight:-16,marginLeft:this.getSpacing().desktopGutter,backgroundColor:"transparent"},rootWhenOpen:{opacity:1,visibility:"visible",transform:"translate3d(0, 0, 0)",transition:u.easeOut("0ms","left","0ms")+","+u.easeOut("400ms","opacity","0ms")+","+u.easeOut("400ms","transform","0ms")+","+u.easeOut("400ms","visibility","0ms")}};return e},render:function(){var e=this.props,t=e.action,n=e.message,s=e.onActionTouchTap,a=e.style,u=r(e,["action","message","onActionTouchTap","style"]),c=this.getStyles(),p=this.state.open?this.mergeStyles(c.root,c.rootWhenOpen,a):this.mergeStyles(c.root,a),h=void 0;return t&&(h=i.createElement(l,{style:c.action,label:t,onTouchTap:s})),i.createElement("span",o({},u,{style:p}),i.createElement("span",null,n),h)},show:function(){this.setState({open:!0}),this.props.onShow&&this.props.onShow()},dismiss:function(){this._clearAutoHideTimer(),this.setState({open:!1}),this.props.onDismiss&&this.props.onDismiss()},_clearAutoHideTimer:function(){void 0!==this._autoHideTimerId&&(this._autoHideTimerId=clearTimeout(this._autoHideTimerId))},_setAutoHideTimer:function(){var e=this;this.props.autoHideDuration>0&&(this._clearAutoHideTimer(),this._autoHideTimerId=setTimeout(function(){e.dismiss()},this.props.autoHideDuration))}});e.exports=d},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(46),s=r.createClass({displayName:"NavigationArrowDropUp",mixins:[o],render:function(){return r.createElement(i,this.props,r.createElement("path",{d:"M7 14l5-5 5 5z"}))}});e.exports=s},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(46),s=r.createClass({displayName:"NavigationCheck",mixins:[o],render:function(){return r.createElement(i,this.props,r.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}))}});e.exports=s},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(46),s=r.createClass({displayName:"ToggleCheckBoxOutlineBlank",mixins:[o],render:function(){return r.createElement(i,this.props,r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))}});e.exports=s},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(46),s=r.createClass({displayName:"ToggleCheckBox",mixins:[o],render:function(){return r.createElement(i,this.props,r.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))}});e.exports=s},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(19),c=n(115),l=n(7),p=n(6),h=i.createClass({displayName:"Toggle",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{elementStyle:i.PropTypes.object,labelStyle:i.PropTypes.object,onToggle:i.PropTypes.func,toggled:i.PropTypes.bool,defaultToggled:i.PropTypes.bool},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{switched:this.props.toggled||this.props.defaultToggled||this.props.valueLink&&this.props.valueLink.value||!1,muiTheme:this.context.muiTheme?this.context.muiTheme:p.getMuiTheme(l)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getTheme:function(){return this.state.muiTheme.toggle},getStyles:function(){var e=20,t=36,n={icon:{width:36,padding:"4px 0px 6px 2px"},toggleElement:{width:t},track:{transition:a.easeOut(),width:"100%",height:14,borderRadius:30,backgroundColor:this.getTheme().trackOffColor},thumb:{transition:a.easeOut(),position:"absolute",top:1,left:0,width:e,height:e,lineHeight:"24px",borderRadius:"50%",backgroundColor:this.getTheme().thumbOffColor},trackWhenSwitched:{backgroundColor:this.getTheme().trackOnColor},thumbWhenSwitched:{backgroundColor:this.getTheme().thumbOnColor,left:"100%"},trackWhenDisabled:{backgroundColor:this.getTheme().trackDisabledColor},thumbWhenDisabled:{backgroundColor:this.getTheme().thumbDisabledColor},label:{color:this.props.disabled?this.getTheme().labelDisabledColor:this.getTheme().labelColor}};return n},render:function(){var e=this.props,t=(e.onToggle,r(e,["onToggle"])),n=this.getStyles(),s=this.mergeAndPrefix(n.track,this.props.trackStyle,this.state.switched&&n.trackWhenSwitched,this.props.disabled&&n.trackWhenDisabled),a=this.mergeAndPrefix(n.thumb,this.props.thumbStyle,this.state.switched&&n.thumbWhenSwitched,this.props.disabled&&n.thumbWhenDisabled);this.state.switched&&(a.marginLeft="-"+a.width);var l=this.mergeAndPrefix(n.toggleElement,this.props.elementStyle),p=i.createElement("div",{style:l},i.createElement("div",{style:s}),i.createElement(u,{style:a,circle:!0,zDepth:1})),h=this.mergeAndPrefix({top:-10,left:-10},this.props.rippleStyle),d=this.state.switched?this.getTheme().thumbOnColor:this.state.muiTheme.textColor,f=this.mergeAndPrefix(n.icon,this.props.iconStyle),m=this.mergeAndPrefix(n.label,this.props.labelStyle),v={ref:"enhancedSwitch",inputType:"checkbox",switchElement:p,rippleStyle:h,rippleColor:d,iconStyle:f,trackStyle:s,thumbStyle:a,labelStyle:m,switched:this.state.switched,onSwitch:this._handleToggle,onParentShouldUpdate:this._handleStateChange,defaultSwitched:this.props.defaultToggled,labelPosition:this.props.labelPosition?this.props.labelPosition:"left"};return this.props.hasOwnProperty("toggled")&&(v.checked=this.props.toggled),i.createElement(c,o({},t,v))},isToggled:function(){return this.refs.enhancedSwitch.isSwitched()},setToggled:function(e){this.refs.enhancedSwitch.setSwitched(e)},_handleToggle:function(e,t){this.props.onToggle&&this.props.onToggle(e,t)},_handleStateChange:function(e){this.setState({switched:e})}});e.exports=h},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(20),c=n(7),l=n(6),p=i.createClass({displayName:"Tooltip",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{className:i.PropTypes.string,label:i.PropTypes.node.isRequired,show:i.PropTypes.bool,touch:i.PropTypes.bool,verticalPosition:i.PropTypes.oneOf(["top","bottom"]),horizontalPosition:i.PropTypes.oneOf(["left","right","center"])},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},componentDidMount:function(){this._setRippleSize(),this._setTooltipPosition()},componentWillReceiveProps:function(e,t){this._setTooltipPosition();var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},componentDidUpdate:function(){this._setRippleSize()},getInitialState:function(){return{offsetWidth:null,muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},getStyles:function(){var e=this.props.verticalPosition,t=this.props.horizontalPosition,n=this.props.touch?10:0,r=this.props.touch?-20:-10,o="bottom"===e?14+n:-14-n,i={root:{position:"absolute",fontFamily:this.state.muiTheme.rawTheme.fontFamily,fontSize:"10px",lineHeight:"22px",padding:"0 8px",color:u.white,overflow:"hidden",top:-1e4,borderRadius:2,userSelect:"none",opacity:0,right:"left"===t?12:null,left:"center"===t?(this.state.offsetWidth-48)/2*-1:null,transition:a.easeOut("0ms","top","450ms")+","+a.easeOut("450ms","transform","0ms")+","+a.easeOut("450ms","opacity","0ms")},label:{position:"relative",whiteSpace:"nowrap"},ripple:{position:"absolute",left:"center"===t?"50%":"left"===t?"100%":"0%",top:"bottom"===e?0:"100%",transform:"translate(-50%, -50%)",borderRadius:"50%",backgroundColor:"transparent",transition:a.easeOut("0ms","width","450ms")+","+a.easeOut("0ms","height","450ms")+","+a.easeOut("450ms","backgroundColor","0ms")},rootWhenShown:{top:"top"===e?r:36,opacity:.9,transform:"translate3d(0px, "+o+"px, 0px)",transition:a.easeOut("0ms","top","0ms")+","+a.easeOut("450ms","transform","0ms")+","+a.easeOut("450ms","opacity","0ms")},rootWhenTouched:{fontSize:"14px",lineHeight:"32px",padding:"0 16px"},rippleWhenShown:{backgroundColor:u.grey700,transition:a.easeOut("450ms","width","0ms")+","+a.easeOut("450ms","height","0ms")+","+a.easeOut("450ms","backgroundColor","0ms")}};return i},render:function(){var e=this.props,t=(e.label,r(e,["label"])),n=this.getStyles();return i.createElement("div",o({},t,{style:this.mergeAndPrefix(n.root,this.props.show&&n.rootWhenShown,this.props.touch&&n.rootWhenTouched,this.props.style)}),i.createElement("div",{ref:"ripple",style:this.mergeAndPrefix(n.ripple,this.props.show&&n.rippleWhenShown)}),i.createElement("span",{style:this.mergeAndPrefix(n.label)},this.props.label))},_setRippleSize:function(){var e=i.findDOMNode(this.refs.ripple),t=window.getComputedStyle(i.findDOMNode(this)),n=parseInt(t.getPropertyValue("width"),10)/("center"===this.props.horizontalPosition?2:1),r=parseInt(t.getPropertyValue("height"),10),o=Math.ceil(2*Math.sqrt(Math.pow(r,2)+Math.pow(n,2)));this.props.show?(e.style.height=o+"px",e.style.width=o+"px"):(e.style.width="0px",e.style.height="0px")},_setTooltipPosition:function(){var e=i.findDOMNode(this);this.setState({offsetWidth:e.offsetWidth})}});e.exports=p},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(22),c=n(11),l=i.createClass({displayName:"ScaleInChild",mixins:[s,a],propTypes:{enterDelay:i.PropTypes.number,maxScale:i.PropTypes.number,minScale:i.PropTypes.number},getDefaultProps:function(){return{enterDelay:0,maxScale:1,minScale:0}},componentWillAppear:function(e){this._initializeAnimation(e)},componentWillEnter:function(e){this._initializeAnimation(e)},componentDidAppear:function(){this._animate()},componentDidEnter:function(){this._animate()},componentWillLeave:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity="0",u.set(n,"transform","scale("+this.props.minScale+")"),setTimeout(function(){t.isMounted()&&e()},450)},render:function(){var e=this.props,t=e.children,n=(e.enterDelay,e.style),s=r(e,["children","enterDelay","style"]),a=this.mergeAndPrefix({position:"absolute",height:"100%",width:"100%",top:0,left:0,transition:c.easeOut(null,["transform","opacity"])},n);return i.createElement("div",o({},s,{style:a}),t)},_animate:function(){var e=i.findDOMNode(this).style;e.opacity="1",u.set(e,"transform","scale("+this.props.maxScale+")")},_initializeAnimation:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity="0",u.set(n,"transform","scale(0)"),setTimeout(function(){t.isMounted()&&e()},this.props.enterDelay)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=i.addons.TransitionGroup,u=n(4),c=n(220),l=i.createClass({displayName:"ScaleIn",mixins:[s,u],propTypes:{childStyle:i.PropTypes.object,enterDelay:i.PropTypes.number,maxScale:i.PropTypes.number,minScale:i.PropTypes.number},getDefaultProps:function(){return{enterDelay:0}},render:function(){var e=this.props,t=e.children,n=e.childStyle,s=e.enterDelay,u=e.maxScale,l=e.minScale,p=e.style,h=r(e,["children","childStyle","enterDelay","maxScale","minScale","style"]),d=this.mergeAndPrefix({position:"relative",overflow:"hidden",height:"100%"},p),f=i.Children.map(t,function(e){return i.createElement(c,{key:e.key,enterDelay:s,maxScale:u,minScale:l,style:n},e)});return i.createElement(a,o({},h,{style:d,component:"div"}),f)}});e.exports=l},function(e,t){"use strict";function n(e){return"object"==typeof e&&null!==e}var r=function o(e,t){var r={};return Object.keys(e).forEach(function(i){var s=e[i],a=void 0;n(t)&&(a=t[i]),r[i]=n(s)&&!Array.isArray(s)?o(s,a):s}),n(t)&&Object.keys(t).forEach(function(e){var o=t[e];(!n(o)||Array.isArray(o))&&(r[e]=o)}),r};e.exports=r},function(e,t){"use strict";e.exports=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t){"use strict";e.exports={Desktop:{GUTTER:24,GUTTER_LESS:16,INCREMENT:64,MENU_ITEM_HEIGHT:32},getIncrementalDim:function(e){return Math.ceil(e/this.Desktop.INCREMENT)*this.Desktop.INCREMENT}}},function(e,t){"use strict";e.exports=function(e,t,n){function r(e,t){return typeof e===t}function o(e){m.cssText=e}function i(e,t){return o(v.join(e+";")+(t||""))}function s(e,t){return!!~(""+e).indexOf(t)}function a(e,t){for(var r in e){var o=e[r];if(!s(o,"-")&&m[o]!==n)return"pfx"==t?o:!0}return!1}function u(e,t,o){for(var i in e){var s=t[e[i]];if(s!==n)return o===!1?e[i]:r(s,"function")?s.bind(o||t):s}return!1}function c(e,t,n){var o=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+g.join(o+" ")+o).split(" ");return r(t,"string")||r(t,"undefined")?a(i,t):(i=(e+" "+b.join(o+" ")+o).split(" "),u(i,t,n))}var l="2.8.3",p={},h=t.documentElement,d="modernizr",f=t.createElement(d),m=f.style,v=" -webkit- -moz- -o- -ms- ".split(" "),y="Webkit Moz O ms",g=y.split(" "),b=y.toLowerCase().split(" "),w={},E=[],T=E.slice,x=n,C=function(e,r,o,i){var s=n,a=n,u=n,c=n,l=t.createElement("div"),p=t.body,f=p||t.createElement("body");if(parseInt(o,10))for(;o--;)u=t.createElement("div"),u.id=i?i[o]:d+(o+1),l.appendChild(u);return s=["&#173;",'<style id="s',d,'">',e,"</style>"].join(""),l.id=d,(p?l:f).innerHTML+=s,f.appendChild(l),p||(f.style.background="",f.style.overflow="hidden",c=h.style.overflow,h.style.overflow="hidden",h.appendChild(f)),a=r(l,e),p?l.parentNode.removeChild(l):(f.parentNode.removeChild(f),h.style.overflow=c),!!a},_={}.hasOwnProperty,S=n;S=r(_,"undefined")||r(_.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(e,t){return _.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=T.call(arguments,1),r=function o(){if(this instanceof o){var r=function(){};r.prototype=t.prototype;var i=new r,s=t.apply(i,n.concat(T.call(arguments)));return Object(s)===s?s:i}return t.apply(e,n.concat(T.call(arguments)))};return r}),w.borderradius=function(){return c("borderRadius")},w.boxshadow=function(){return c("boxShadow")},w.opacity=function(){return i("opacity:.55"),/^0.55$/.test(m.opacity)},w.csstransforms=function(){return!!c("transform")},w.csstransforms3d=function(){var e=!!c("perspective");return e&&"webkitPerspective"in h.style&&C("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){e=9===t.offsetLeft&&3===t.offsetHeight}),e},w.csstransitions=function(){return c("transition")};for(var N in w)S(w,N)&&(x=N.toLowerCase(),p[x]=w[N](),E.push((p[x]?"":"no-")+x));return p.addTest=function(e,t){if("object"==typeof e)for(var r in e)S(e,r)&&p.addTest(r,e[r]);else{if(e=e.toLowerCase(),p[e]!==n)return p;t="function"==typeof t?t():t,"undefined"!=typeof enableClasses&&enableClasses&&(h.className+=" "+(t?"":"no-")+e),p[e]=t}return p},o(""),p._version=l,p._prefixes=v,p._domPrefixes=b,p._cssomPrefixes=g,p.testProp=function(e){return a([e])},p.testAllProps=c,p.testStyles=C,p.prefixed=function(e,t,n){return t?c(e,t,n):c(e,"pfx")},p}(window,window.document)},function(e,t){"use strict";function n(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i<n.length;i++)if(!o(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){var r=p(e)?b.startShouldSetResponder:h(e)?b.moveShouldSetResponder:b.scrollShouldSetResponder,o=y||t,i=u.getPooled(r,o,n);a.accumulateTwoPhaseDispatches(i);var s=v(i);if(i.isPersistent()||i.constructor.release(i),!s||s===y)return null;var l,d=u.getPooled(b.responderGrant,s,n);if(a.accumulateDirectDispatches(d),y){var g=u.getPooled(b.responderTerminationRequest,y,n);a.accumulateDirectDispatches(g);var w=!m(g)||f(g);if(g.isPersistent()||g.constructor.release(g),w){var E=b.responderTerminate,T=u.getPooled(E,y,n);a.accumulateDirectDispatches(T),l=c(l,[d,T]),y=s}else{var x=u.getPooled(b.responderReject,s,n);a.accumulateDirectDispatches(x),l=c(l,x)}}else l=c(l,d),y=s;return l}function o(e){return e===i.topLevelTypes.topScroll||p(e)||g&&h(e)}var i=n(13),s=n(50),a=n(28),u=n(26),c=n(69),l=n(17),p=s.isStartish,h=s.isMoveish,d=s.isEndish,f=s.executeDirectDispatch,m=s.hasDispatches,v=s.executeDispatchesInOrderStopAtTrue,y=null,g=!1,b={startShouldSetResponder:{phasedRegistrationNames:{bubbled:l({onStartShouldSetResponder:null}),captured:l({onStartShouldSetResponderCapture:null})}},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:l({onScrollShouldSetResponder:null}),captured:l({onScrollShouldSetResponderCapture:null})}},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:l({onMoveShouldSetResponder:null}),captured:l({onMoveShouldSetResponderCapture:null})}},responderMove:{registrationName:l({onResponderMove:null})},responderRelease:{registrationName:l({onResponderRelease:null})},responderTerminationRequest:{registrationName:l({onResponderTerminationRequest:null})},responderGrant:{registrationName:l({onResponderGrant:null})},responderReject:{registrationName:l({onResponderReject:null})},responderTerminate:{registrationName:l({onResponderTerminate:null})}},w={getResponderID:function(){return y},eventTypes:b,extractEvents:function(e,t,n,i){var s;if(y&&p(e)&&(y=null),p(e)?g=!0:d(e)&&(g=!1),o(e)){var l=r(e,n,i);l&&(s=c(s,l))}var f=h(e)?b.responderMove:d(e)?b.responderRelease:p(e)?b.responderStart:null;if(f){var m=u.getPooled(f,y||"",i);a.accumulateDirectDispatches(m),s=c(s,m)}return f===b.responderRelease&&(y=null),s}};e.exports=w},function(e,t,n){"use strict";function r(e,t){var n=c.extractSingleTouch(t);return n?n[e.page]:e.page in t?t[e.page]:t[e.client]+l[e.envScroll]}function o(e,t){var n=r(w.x,t),o=r(w.y,t);return Math.pow(Math.pow(n-e.x,2)+Math.pow(o-e.y,2),.5)}var i=n(13),s=n(50),a=n(28),u=n(39),c=n(229),l=n(87),p=n(17),h=i.topLevelTypes,d=s.isStartish,f=s.isEndish,m=function(e){var t=[h.topTouchCancel,h.topTouchEnd,h.topTouchStart,h.topTouchMove];return t.indexOf(e)>=0},v=10,y=750,g={x:null,y:null},b=null,w={x:{page:"pageX",client:"clientX",envScroll:"currentPageScrollLeft"},y:{page:"pageY",client:"clientY",envScroll:"currentPageScrollTop"}},E=[h.topMouseDown,h.topMouseMove,h.topMouseUp];s.useTouchEvents&&E.push(h.topTouchEnd,h.topTouchStart,h.topTouchMove);var T={touchTap:{phasedRegistrationNames:{bubbled:p({onTouchTap:null}),captured:p({onTouchTapCapture:null})},dependencies:E}},x=function(){return Date.now?Date.now():+new Date},C={tapMoveThreshold:v,ignoreMouseThreshold:y,eventTypes:T,extractEvents:function(e,t,n,i){if(m(e))b=x();else if(b&&x()-b<y)return null;if(!d(e)&&!f(e))return null;var s=null,c=o(g,i);return f(e)&&v>c&&(s=u.getPooled(T.touchTap,n,i)),d(e)?(g.x=r(w.x,i),g.y=r(w.y,i)):f(e)&&(g.x=0,g.y=0),a.accumulateTwoPhaseDispatches(s),s}};e.exports=C},function(e,t){var n={extractSingleTouch:function(e){var t=e.touches,n=e.changedTouches,r=t&&t.length>0,o=n&&n.length>0;return!r&&o?n[0]:r?t[0]:e}};e.exports=n},function(e,t,n){e.exports=function(){var e=n(3);e.initializeTouchEvents(!0),n(31).injection.injectEventPluginsByName({ResponderEventPlugin:n(227),TapEventPlugin:n(228)})}},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case O.topCompositionStart:return D.compositionStart;case O.topCompositionEnd:return D.compositionEnd;case O.topCompositionUpdate:return D.compositionUpdate}}function s(e,t){return e===O.topKeyDown&&t.keyCode===E}function a(e,t){switch(e){case O.topKeyUp:return-1!==w.indexOf(t.keyCode);case O.topKeyDown:return t.keyCode!==E;case O.topKeyPress:case O.topMouseDown:case O.topBlur:return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r){var o,c;if(T?o=i(e):k?a(e,r)&&(o=D.compositionEnd):s(e,r)&&(o=D.compositionStart),!o)return null;_&&(k||o!==D.compositionStart?o===D.compositionEnd&&k&&(c=k.getData()):k=v.getPooled(t));var l=y.getPooled(o,n,r);if(c)l.data=c;else{var p=u(r);null!==p&&(l.data=p)}return f.accumulateTwoPhaseDispatches(l),l}function l(e,t){switch(e){case O.topCompositionEnd:return u(t);case O.topKeyPress:var n=t.which;return n!==S?null:(P=!0,N);case O.topTextInput:var r=t.data;return r===N&&P?null:r;default:return null}}function p(e,t){if(k){if(e===O.topCompositionEnd||a(e,t)){var n=k.getData();return v.release(k),k=null,n}return null}switch(e){case O.topPaste:return null;case O.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case O.topCompositionEnd:return _?null:t.data;default:return null}}function h(e,t,n,r){var o;if(o=C?l(e,r):p(e,r),!o)return null;var i=g.getPooled(D.beforeInput,n,r);return i.data=o,f.accumulateTwoPhaseDispatches(i),i}var d=n(13),f=n(28),m=n(12),v=n(240),y=n(283),g=n(286),b=n(17),w=[9,13,27,32],E=229,T=m.canUseDOM&&"CompositionEvent"in window,x=null;m.canUseDOM&&"documentMode"in document&&(x=document.documentMode);var C=m.canUseDOM&&"TextEvent"in window&&!x&&!r(),_=m.canUseDOM&&(!T||x&&x>8&&11>=x),S=32,N=String.fromCharCode(S),O=d.topLevelTypes,D={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})},dependencies:[O.topCompositionEnd,O.topKeyPress,O.topTextInput,O.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[O.topBlur,O.topCompositionEnd,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[O.topBlur,O.topCompositionStart,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[O.topBlur,O.topCompositionUpdate,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]}},P=!1,k=null,M={eventTypes:D,extractEvents:function(e,t,n,r){return[c(e,t,n,r),h(e,t,n,r)]}};e.exports=M},function(e,t,n){(function(t){var r=n(2),o={addClass:function(e,n){return"production"!==t.env.NODE_ENV?r(!/\s/.test(n),'CSSCore.addClass takes only a single class name. "%s" contains multiple classes.',n):r(!/\s/.test(n)),n&&(e.classList?e.classList.add(n):o.hasClass(e,n)||(e.className=e.className+" "+n)),e},removeClass:function(e,n){return"production"!==t.env.NODE_ENV?r(!/\s/.test(n),'CSSCore.removeClass takes only a single class name. "%s" contains multiple classes.',n):r(!/\s/.test(n)),n&&(e.classList?e.classList.remove(n):o.hasClass(e,n)&&(e.className=e.className.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),e},conditionClass:function(e,t,n){return(n?o.addClass:o.removeClass)(e,t)},hasClass:function(e,n){return"production"!==t.env.NODE_ENV?r(!/\s/.test(n),"CSS.hasClass takes only a single class name."):r(!/\s/.test(n)),e.classList?!!n&&e.classList.contains(n):(" "+e.className+" ").indexOf(" "+n+" ")>-1}};e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function o(e){var t=x.getPooled(O.change,P,e);w.accumulateTwoPhaseDispatches(t),T.batchedUpdates(i,t)}function i(e){b.enqueueEvents(e),b.processEventQueue()}function s(e,t){D=e,P=t,D.attachEvent("onchange",o)}function a(){D&&(D.detachEvent("onchange",o),D=null,P=null)}function u(e,t,n){return e===N.topChange?n:void 0}function c(e,t,n){e===N.topFocus?(a(),s(t,n)):e===N.topBlur&&a()}function l(e,t){D=e,P=t,k=e.value,M=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(D,"value",I),D.attachEvent("onpropertychange",h)}function p(){D&&(delete D.value,D.detachEvent("onpropertychange",h),D=null,P=null,k=null,M=null)}function h(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==k&&(k=t,o(e))}}function d(e,t,n){return e===N.topInput?n:void 0}function f(e,t,n){e===N.topFocus?(p(),l(t,n)):e===N.topBlur&&p()}function m(e,t,n){return e!==N.topSelectionChange&&e!==N.topKeyUp&&e!==N.topKeyDown||!D||D.value===k?void 0:(k=D.value,P)}function v(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function y(e,t,n){return e===N.topClick?n:void 0}var g=n(13),b=n(31),w=n(28),E=n(12),T=n(16),x=n(26),C=n(93),_=n(154),S=n(17),N=g.topLevelTypes,O={change:{phasedRegistrationNames:{bubbled:S({onChange:null}),captured:S({onChangeCapture:null})},dependencies:[N.topBlur,N.topChange,N.topClick,N.topFocus,N.topInput,N.topKeyDown,N.topKeyUp,N.topSelectionChange]}},D=null,P=null,k=null,M=null,A=!1;E.canUseDOM&&(A=C("change")&&(!("documentMode"in document)||document.documentMode>8));var R=!1;E.canUseDOM&&(R=C("input")&&(!("documentMode"in document)||document.documentMode>9));var I={get:function(){return M.get.call(this)},set:function(e){k=""+e,M.set.call(this,e)}},j={eventTypes:O,extractEvents:function(e,t,n,o){var i,s;if(r(t)?A?i=u:s=c:_(t)?R?i=d:(i=m,s=f):v(t)&&(i=y),i){var a=i(e,t,n);if(a){var l=x.getPooled(O.change,a,o);return w.accumulateTwoPhaseDispatches(l),l}}s&&s(e,t,n)}};e.exports=j},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){(function(t){"use strict";function r(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var o=n(236),i=n(140),s=n(312),a=n(2),u={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:s,processUpdates:function(e,n){for(var u,c=null,l=null,p=0;p<e.length;p++)if(u=e[p],u.type===i.MOVE_EXISTING||u.type===i.REMOVE_NODE){var h=u.fromIndex,d=u.parentNode.childNodes[h],f=u.parentID;"production"!==t.env.NODE_ENV?a(d,"processUpdates(): Unable to find child %s of element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",h,f):a(d),c=c||{},c[f]=c[f]||[],c[f][h]=d,l=l||[],l.push(d)}var m=o.dangerouslyRenderMarkup(n);if(l)for(var v=0;v<l.length;v++)l[v].parentNode.removeChild(l[v]);for(var y=0;y<e.length;y++)switch(u=e[y],u.type){case i.INSERT_MARKUP:r(u.parentNode,m[u.markupIndex],u.toIndex);break;case i.MOVE_EXISTING:r(u.parentNode,c[u.parentID][u.fromIndex],u.toIndex);break;case i.TEXT_CONTENT:s(u.parentNode,u.textContent);break;case i.REMOVE_NODE:}}};e.exports=u}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=n(12),i=n(295),s=n(21),a=n(151),u=n(2),c=/^(<[^ \/>]+)/,l="data-danger-index",p={dangerouslyRenderMarkup:function(e){"production"!==t.env.NODE_ENV?u(o.canUseDOM,"dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use React.renderToString for server rendering."):u(o.canUseDOM);for(var n,p={},h=0;h<e.length;h++)"production"!==t.env.NODE_ENV?u(e[h],"dangerouslyRenderMarkup(...): Missing markup."):u(e[h]),n=r(e[h]),n=a(n)?n:"*",p[n]=p[n]||[],p[n][h]=e[h];var d=[],f=0;for(n in p)if(p.hasOwnProperty(n)){var m,v=p[n];for(m in v)if(v.hasOwnProperty(m)){var y=v[m];v[m]=y.replace(c,"$1 "+l+'="'+m+'" ')}for(var g=i(v.join(""),s),b=0;b<g.length;++b){var w=g[b];w.hasAttribute&&w.hasAttribute(l)?(m=+w.getAttribute(l),w.removeAttribute(l),"production"!==t.env.NODE_ENV?u(!d.hasOwnProperty(m),"Danger: Assigning to an already-occupied result index."):u(!d.hasOwnProperty(m)),d[m]=w,f+=1):"production"!==t.env.NODE_ENV&&console.error("Danger: Discarding unexpected node:",w)}}return"production"!==t.env.NODE_ENV?u(f===d.length,"Danger: Did not assign to every index of resultList."):u(f===d.length),"production"!==t.env.NODE_ENV?u(d.length===e.length,"Danger: Expected markup to render %s nodes, but rendered %s.",e.length,d.length):u(d.length===e.length),d},dangerouslyReplaceNodeWithMarkup:function(e,n){"production"!==t.env.NODE_ENV?u(o.canUseDOM,"dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use React.renderToString for server rendering."):u(o.canUseDOM),"production"!==t.env.NODE_ENV?u(n,"dangerouslyReplaceNodeWithMarkup(...): Missing markup."):u(n),"production"!==t.env.NODE_ENV?u("html"!==e.tagName.toLowerCase(),"dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See React.renderToString()."):u("html"!==e.tagName.toLowerCase());var r=i(n,s)[0];e.parentNode.replaceChild(r,e)}};e.exports=p}).call(t,n(1))},function(e,t,n){"use strict";var r=n(17),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null
+}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null}),r({AnalyticsEventPlugin:null}),r({MobileSafariClickEventPlugin:null})];e.exports=o},function(e,t,n){"use strict";var r=n(13),o=n(28),i=n(67),s=n(18),a=n(17),u=r.topLevelTypes,c=s.getFirstReactDOM,l={mouseEnter:{registrationName:a({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{registrationName:a({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},p=[null,null],h={eventTypes:l,extractEvents:function(e,t,n,r){if(e===u.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==u.topMouseOut&&e!==u.topMouseOver)return null;var a;if(t.window===t)a=t;else{var h=t.ownerDocument;a=h?h.defaultView||h.parentWindow:window}var d,f;if(e===u.topMouseOut?(d=t,f=c(r.relatedTarget||r.toElement)||a):(d=a,f=t),d===f)return null;var m=d?s.getID(d):"",v=f?s.getID(f):"",y=i.getPooled(l.mouseLeave,m,r);y.type="mouseleave",y.target=d,y.relatedTarget=f;var g=i.getPooled(l.mouseEnter,v,r);return g.type="mouseenter",g.target=f,g.relatedTarget=d,o.accumulateEnterLeaveDispatches(y,g,m,v),p[0]=y,p[1]=g,p}};e.exports=h},function(e,t,n){(function(t){var r=n(21),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,n,o){return e.addEventListener?(e.addEventListener(n,o,!0),{remove:function(){e.removeEventListener(n,o,!0)}}):("production"!==t.env.NODE_ENV&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:r})},registerDefault:function(){}};e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(23),i=n(5),s=n(152);i(r.prototype,{getText:function(){return"value"in this._root?this._root.value:this._root[s()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;r>e&&n[e]===o[e];e++);var s=r-e;for(t=1;s>=t&&n[r-t]===o[i-t];t++);var a=t>1?1-t:void 0;return this._fallbackText=o.slice(e,a),this._fallbackText}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r,o=n(30),i=n(12),s=o.injection.MUST_USE_ATTRIBUTE,a=o.injection.MUST_USE_PROPERTY,u=o.injection.HAS_BOOLEAN_VALUE,c=o.injection.HAS_SIDE_EFFECTS,l=o.injection.HAS_NUMERIC_VALUE,p=o.injection.HAS_POSITIVE_NUMERIC_VALUE,h=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var d=document.implementation;r=d&&d.hasFeature&&d.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1";)}var f={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:s|u,allowTransparency:s,alt:null,async:u,autoComplete:null,autoPlay:u,cellPadding:null,cellSpacing:null,charSet:s,checked:a|u,classID:s,className:r?s:a,cols:s|p,colSpan:null,content:null,contentEditable:null,contextMenu:s,controls:a|u,coords:null,crossOrigin:null,data:null,dateTime:s,defer:u,dir:null,disabled:s|u,download:h,draggable:null,encType:null,form:s,formAction:s,formEncType:s,formMethod:s,formNoValidate:u,formTarget:s,frameBorder:s,headers:null,height:s,hidden:s|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:a,label:null,lang:null,list:s,loop:a|u,low:null,manifest:s,marginHeight:null,marginWidth:null,max:null,maxLength:s,media:s,mediaGroup:null,method:null,min:null,multiple:a|u,muted:a|u,name:null,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:a|u,rel:null,required:u,role:s,rows:s|p,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:s|u,selected:a|u,shape:null,size:s|p,sizes:s,span:p,spellCheck:null,src:null,srcDoc:a,srcSet:s,start:l,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:a|c,width:s,wmode:s,autoCapitalize:null,autoCorrect:null,itemProp:s,itemScope:s|u,itemType:s,itemID:s,itemRef:s,property:null,unselectable:s},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoCapitalize:"autocapitalize",autoComplete:"autocomplete",autoCorrect:"autocorrect",autoFocus:"autofocus",autoPlay:"autoplay",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=f},function(e,t,n){"use strict";var r=n(265),o=n(273),i={linkState:function(e){return new r(this.state[e],o.createStateKeySetter(this,e))}};e.exports=i},function(e,t,n){"use strict";var r=n(13),o=n(21),i=r.topLevelTypes,s={eventTypes:null,extractEvents:function(e,t,n,r){if(e===i.topTouchStart){var s=r.target;s&&!s.onclick&&(s.onclick=o)}}};e.exports=s},function(e,t,n){"use strict";var r=n(32),o=n(5),i=r.createFactory(n(144)),s=r.createFactory(n(245)),a=r.createClass({displayName:"ReactCSSTransitionGroup",propTypes:{transitionName:r.PropTypes.string.isRequired,transitionAppear:r.PropTypes.bool,transitionEnter:r.PropTypes.bool,transitionLeave:r.PropTypes.bool},getDefaultProps:function(){return{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}},_wrapChild:function(e){return s({name:this.props.transitionName,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave},e)},render:function(){return i(o({},this.props,{childFactory:this._wrapChild}))}});e.exports=a},function(e,t,n){(function(t){"use strict";var r=n(32),o=n(232),i=n(276),s=n(155),a=n(9),u=17,c=5e3,l=null;"production"!==t.env.NODE_ENV&&(l=function(){"production"!==t.env.NODE_ENV?a(!1,"transition(): tried to perform an animation without an animationend or transitionend event after timeout (%sms). You should either disable this transition in JS or add a CSS animation/transition.",c):null});var p=r.createClass({displayName:"ReactCSSTransitionGroupChild",transition:function(e,n){var r=this.getDOMNode(),s=this.props.name+"-"+e,a=s+"-active",u=null,p=function(e){e&&e.target!==r||("production"!==t.env.NODE_ENV&&clearTimeout(u),o.removeClass(r,s),o.removeClass(r,a),i.removeEndEventListener(r,p),n&&n())};i.addEndEventListener(r,p),o.addClass(r,s),this.queueClass(a),"production"!==t.env.NODE_ENV&&(u=setTimeout(l,c))},queueClass:function(e){this.classNameQueue.push(e),this.timeout||(this.timeout=setTimeout(this.flushClassNameQueue,u))},flushClassNameQueue:function(){this.isMounted()&&this.classNameQueue.forEach(o.addClass.bind(o,this.getDOMNode())),this.classNameQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameQueue=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout)},componentWillAppear:function(e){this.props.appear?this.transition("appear",e):e()},componentWillEnter:function(e){this.props.enter?this.transition("enter",e):e()},componentWillLeave:function(e){this.props.leave?this.transition("leave",e):e()},render:function(){return s(this.props.children)}});e.exports=p}).call(t,n(1))},function(e,t,n){"use strict";var r=n(38),o=n(298),i=n(92),s=n(95),a={instantiateChildren:function(e,t,n){var r=o(e);for(var s in r)if(r.hasOwnProperty(s)){var a=r[s],u=i(a,null);r[s]=u}return r},updateChildren:function(e,t,n,a){var u=o(t);if(!u&&!e)return null;var c;for(c in u)if(u.hasOwnProperty(c)){var l=e&&e[c],p=l&&l._currentElement,h=u[c];if(s(p,h))r.receiveComponent(l,h,n,a),u[c]=l;else{l&&r.unmountComponent(l,c);var d=i(h,null);u[c]=d}}for(c in e)!e.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||r.unmountComponent(e[c]);return u},unmountChildren:function(e){for(var t in e){var n=e[t];r.unmountComponent(n)}}};e.exports=a},function(e,t,n){"use strict";var r=n(156),o={shouldComponentUpdate:function(e,t){return!r(this.props,e)||!r(this.state,t)}};e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){return"production"!==t.env.NODE_ENV?i.createFactory(e):o.createFactory(e)}var o=n(8),i=n(51),s=n(307),a=s({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);e.exports=a}).call(t,n(1))},function(e,t,n){"use strict";var r=n(63),o=n(24),i=n(15),s=n(8),a=n(53),u=s.createFactory("button"),c=a({onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0}),l=i.createClass({displayName:"ReactDOMButton",tagName:"BUTTON",mixins:[r,o],render:function(){var e={};for(var t in this.props)!this.props.hasOwnProperty(t)||this.props.disabled&&c[t]||(e[t]=this.props[t]);return u(e,this.props.children)}});e.exports=l},function(e,t,n){"use strict";var r=n(13),o=n(79),i=n(24),s=n(15),a=n(8),u=a.createFactory("form"),c=s.createClass({displayName:"ReactDOMForm",tagName:"FORM",mixins:[i,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topReset,"reset"),this.trapBubbledEvent(r.topLevelTypes.topSubmit,"submit")}});e.exports=c},function(e,t,n){"use strict";var r=n(13),o=n(79),i=n(24),s=n(15),a=n(8),u=a.createFactory("iframe"),c=s.createClass({displayName:"ReactDOMIframe",tagName:"IFRAME",mixins:[i,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topLoad,"load")}});e.exports=c},function(e,t,n){"use strict";var r=n(13),o=n(79),i=n(24),s=n(15),a=n(8),u=a.createFactory("img"),c=s.createClass({displayName:"ReactDOMImg",tagName:"IMG",mixins:[i,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topLoad,"load"),this.trapBubbledEvent(r.topLevelTypes.topError,"error")}});e.exports=c},function(e,t,n){(function(t){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=n(63),i=n(49),s=n(78),a=n(24),u=n(15),c=n(8),l=n(18),p=n(16),h=n(5),d=n(2),f=c.createFactory("input"),m={},v=u.createClass({displayName:"ReactDOMInput",tagName:"INPUT",mixins:[o,s.Mixin,a],getInitialState:function(){var e=this.props.defaultValue;return{initialChecked:this.props.defaultChecked||!1,initialValue:null!=e?e:null}},render:function(){var e=h({},this.props);e.defaultChecked=null,e.defaultValue=null;var t=s.getValue(this);e.value=null!=t?t:this.state.initialValue;var n=s.getChecked(this);return e.checked=null!=n?n:this.state.initialChecked,e.onChange=this._handleChange,f(e,this.props.children)},componentDidMount:function(){var e=l.getID(this.getDOMNode());m[e]=this},componentWillUnmount:function(){var e=this.getDOMNode(),t=l.getID(e);delete m[t]},componentDidUpdate:function(e,t,n){var r=this.getDOMNode();null!=this.props.checked&&i.setValueForProperty(r,"checked",this.props.checked||!1);var o=s.getValue(this);null!=o&&i.setValueForProperty(r,"value",""+o)},_handleChange:function(e){var n,o=s.getOnChange(this);o&&(n=o.call(this,e)),p.asap(r,this);var i=this.props.name;if("radio"===this.props.type&&null!=i){for(var a=this.getDOMNode(),u=a;u.parentNode;)u=u.parentNode;for(var c=u.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),h=0,f=c.length;f>h;h++){var v=c[h];if(v!==a&&v.form===a.form){var y=l.getID(v);"production"!==t.env.NODE_ENV?d(y,"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."):d(y);var g=m[y];"production"!==t.env.NODE_ENV?d(g,"ReactDOMInput: Unknown radio button ID %s.",y):d(g),p.asap(r,g)}}}return n}});e.exports=v}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(24),o=n(15),i=n(8),s=n(9),a=i.createFactory("option"),u=o.createClass({displayName:"ReactDOMOption",tagName:"OPTION",mixins:[r],componentWillMount:function(){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?s(null==this.props.selected,"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."):null)},render:function(){return a(this.props,this.props.children)}});e.exports=u}).call(t,n(1))},function(e,t,n){"use strict";function r(){if(this._pendingUpdate){this._pendingUpdate=!1;var e=a.getValue(this);null!=e&&this.isMounted()&&i(this,e)}}function o(e,t,n){if(null==e[t])return null;if(e.multiple){if(!Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be an array if `multiple` is true.")}else if(Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be a scalar value if `multiple` is false.")}function i(e,t){var n,r,o,i=e.getDOMNode().options;if(e.props.multiple){for(n={},r=0,o=t.length;o>r;r++)n[""+t[r]]=!0;for(r=0,o=i.length;o>r;r++){var s=n.hasOwnProperty(i[r].value);i[r].selected!==s&&(i[r].selected=s)}}else{for(n=""+t,r=0,o=i.length;o>r;r++)if(i[r].value===n)return void(i[r].selected=!0);i.length&&(i[0].selected=!0)}}var s=n(63),a=n(78),u=n(24),c=n(15),l=n(8),p=n(16),h=n(5),d=l.createFactory("select"),f=c.createClass({displayName:"ReactDOMSelect",tagName:"SELECT",mixins:[s,a.Mixin,u],propTypes:{defaultValue:o,value:o},render:function(){var e=h({},this.props);return e.onChange=this._handleChange,e.value=null,d(e,this.props.children)},componentWillMount:function(){this._pendingUpdate=!1},componentDidMount:function(){var e=a.getValue(this);null!=e?i(this,e):null!=this.props.defaultValue&&i(this,this.props.defaultValue)},componentDidUpdate:function(e){var t=a.getValue(this);null!=t?(this._pendingUpdate=!1,i(this,t)):!e.multiple!=!this.props.multiple&&(null!=this.props.defaultValue?i(this,this.props.defaultValue):i(this,this.props.multiple?[]:""))},_handleChange:function(e){var t,n=a.getOnChange(this);return n&&(t=n.call(this,e)),this._pendingUpdate=!0,p.asap(r,this),t}});e.exports=f},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,s=i+r;return{start:i,end:s}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,s=t.focusOffset,a=t.getRangeAt(0),u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:a.toString().length,l=a.cloneRange();l.selectNodeContents(e),l.setEnd(a.startContainer,a.startOffset);var p=r(l.startContainer,l.startOffset,l.endContainer,l.endOffset),h=p?0:l.toString().length,d=h+c,f=document.createRange();f.setStart(n,o),f.setEnd(i,s);var m=f.collapsed;return{start:m?d:h,end:m?h:d}}function s(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function a(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var s=i;i=o,o=s}var a=c(e,o),u=c(e,i);if(a&&u){var p=document.createRange();p.setStart(a.node,a.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(12),c=n(300),l=n(152),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),h={getOffsets:p?o:i,setOffsets:p?s:a};e.exports=h},function(e,t,n){(function(t){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=n(63),i=n(49),s=n(78),a=n(24),u=n(15),c=n(8),l=n(16),p=n(5),h=n(2),d=n(9),f=c.createFactory("textarea"),m=u.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[o,s.Mixin,a],getInitialState:function(){var e=this.props.defaultValue,n=this.props.children;null!=n&&("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?d(!1,"Use the `defaultValue` or `value` props instead of setting children on <textarea>."):null),"production"!==t.env.NODE_ENV?h(null==e,"If you supply `defaultValue` on a <textarea>, do not pass children."):h(null==e),Array.isArray(n)&&("production"!==t.env.NODE_ENV?h(n.length<=1,"<textarea> can only have at most one child."):h(n.length<=1),n=n[0]),e=""+n),null==e&&(e="");var r=s.getValue(this);return{initialValue:""+(null!=r?r:e)}},render:function(){var e=p({},this.props);return"production"!==t.env.NODE_ENV?h(null==e.dangerouslySetInnerHTML,"`dangerouslySetInnerHTML` does not make sense on <textarea>."):h(null==e.dangerouslySetInnerHTML),e.defaultValue=null,e.value=null,e.onChange=this._handleChange,f(e,this.state.initialValue)},componentDidUpdate:function(e,t,n){var r=s.getValue(this);if(null!=r){var o=this.getDOMNode();i.setValueForProperty(o,"value",""+r)}},_handleChange:function(e){var t,n=s.getOnChange(this);return n&&(t=n.call(this,e)),l.asap(r,this),t}});e.exports=m}).call(t,n(1))},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(16),i=n(68),s=n(5),a=n(21),u={initialize:a,close:function(){h.isBatchingUpdates=!1}},c={initialize:a,close:o.flushBatchedUpdates.bind(o)},l=[c,u];s(r.prototype,i.Mixin,{getTransactionWrappers:function(){return l}});var p=new r,h={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o){var i=h.isBatchingUpdates;h.isBatchingUpdates=!0,i?e(t,n,r,o):p.perform(e,null,t,n,r,o)}};e.exports=h},function(e,t,n){(function(t){"use strict";function r(e){return f.createClass({tagName:e.toUpperCase(),render:function(){return new O(e,null,null,null,null,this.props)}})}function o(){if(P.EventEmitter.injectReactEventListener(D),P.EventPluginHub.injectEventPluginOrder(u),P.EventPluginHub.injectInstanceHandle(k),P.EventPluginHub.injectMount(M),P.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:j,EnterLeaveEventPlugin:c,ChangeEventPlugin:s,MobileSafariClickEventPlugin:h,SelectEventPlugin:R,BeforeInputEventPlugin:i}),P.NativeComponent.injectGenericComponentClass(y),P.NativeComponent.injectTextComponentClass(N),P.NativeComponent.injectAutoWrapper(r),P.Class.injectMixin(d),P.NativeComponent.injectComponentClasses({button:g,form:b,iframe:T,img:w,input:x,option:C,select:_,textarea:S,html:F("html"),head:F("head"),body:F("body")}),P.DOMProperty.injectDOMPropertyConfig(p),P.DOMProperty.injectDOMPropertyConfig(L),P.EmptyComponent.injectEmptyComponent("noscript"),P.Updates.injectReconcileTransaction(A),P.Updates.injectBatchingStrategy(v),P.RootIndex.injectCreateReactRootIndex(l.canUseDOM?a.createReactRootIndex:I.createReactRootIndex),P.Component.injectEnvironment(m),P.DOMComponent.injectIDOperations(E),"production"!==t.env.NODE_ENV){var e=l.canUseDOM&&window.location.href||"";if(/[?&]react_perf\b/.test(e)){var o=n(137);o.start()}}}var i=n(231),s=n(233),a=n(234),u=n(237),c=n(238),l=n(12),p=n(241),h=n(243),d=n(24),f=n(15),m=n(80),v=n(258),y=n(83),g=n(249),b=n(250),w=n(252),E=n(135),T=n(251),x=n(253),C=n(254),_=n(255),S=n(257),N=n(136),O=n(8),D=n(263),P=n(264),k=n(34),M=n(18),A=n(269),R=n(279),I=n(280),j=n(281),L=n(278),F=n(294);e.exports={inject:o}}).call(t,n(1))},function(e,t,n){function r(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.totalTime}return t}function o(e){for(var t=[],n=0;n<e.length;n++){var r,o=e[n];for(r in o.writes)o.writes[r].forEach(function(e){t.push({id:r,type:l[e.type]||e.type,args:e.args})})}return t}function i(e){for(var t,n={},r=0;r<e.length;r++){var o=e[r],i=u({},o.exclusive,o.inclusive);for(var s in i)t=o.displayNames[s].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},o.render[s]&&(n[t].render+=o.render[s]),o.exclusive[s]&&(n[t].exclusive+=o.exclusive[s]),o.inclusive[s]&&(n[t].inclusive+=o.inclusive[s]),o.counts[s]&&(n[t].count+=o.counts[s])}var a=[];for(t in n)n[t].exclusive>=c&&a.push(n[t]);return a.sort(function(e,t){return t.exclusive-e.exclusive}),a}function s(e,t){for(var n,r={},o=0;o<e.length;o++){var i,s=e[o],l=u({},s.exclusive,s.inclusive);t&&(i=a(s));for(var p in l)if(!t||i[p]){var h=s.displayNames[p];n=h.owner+" > "+h.current,r[n]=r[n]||{componentName:n,time:0,count:0},s.inclusive[p]&&(r[n].time+=s.inclusive[p]),s.counts[p]&&(r[n].count+=s.counts[p])}}var d=[];for(n in r)r[n].time>=c&&d.push(r[n]);return d.sort(function(e,t){return t.time-e.time}),d}function a(e){var t={},n=Object.keys(e.writes),r=u({},e.exclusive,e.inclusive);for(var o in r){for(var i=!1,s=0;s<n.length;s++)if(0===n[s].indexOf(o)){i=!0;break}!i&&e.counts[o]>0&&(t[o]=!0)}return t}var u=n(5),c=1.2,l={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",TEXT_CONTENT:"set textContent",updatePropertyByID:"update attribute",deletePropertyByID:"delete attribute",updateStylesByID:"update styles",updateInnerHTMLByID:"set innerHTML",dangerouslyReplaceNodeWithMarkupByID:"replace"},p={getExclusiveSummary:i,getInclusiveSummary:s,getDOMSummary:o,getTotalTime:r};e.exports=p},function(e,t){"use strict";var n={guard:function(e,t){return e}};e.exports=n},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue()}var o=n(31),i={handleTopLevel:function(e,t,n,i){var s=o.extractEvents(e,t,n,i);r(s)}};e.exports=i},function(e,t,n){"use strict";function r(e){var t=p.getID(e),n=l.getReactRootIDFromNodeID(t),r=p.findReactContainerForID(n),o=p.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){for(var t=p.getFirstReactDOM(f(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0,i=e.ancestors.length;i>o;o++){t=e.ancestors[o];var s=p.getID(t)||"";v._handleTopLevel(e.topLevelType,t,s,e.nativeEvent)}}function s(e){var t=m(window);e(t)}var a=n(239),u=n(12),c=n(23),l=n(34),p=n(18),h=n(16),d=n(5),f=n(91),m=n(302);d(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?a.listen(r,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?a.capture(r,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=s.bind(null,e);a.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=o.getPooled(e,t);try{h.batchedUpdates(i,n)}finally{o.release(n)}}}};e.exports=v},function(e,t,n){"use strict";var r=n(30),o=n(31),i=n(81),s=n(15),a=n(64),u=n(33),c=n(65),l=n(83),p=n(29),h=n(143),d=n(16),f={Component:i.injection,Class:s.injection,DOMComponent:l.injection,DOMProperty:r.injection,EmptyComponent:a.injection,EventPluginHub:o.injection,EventEmitter:u.injection,NativeComponent:c.injection,Perf:p.injection,RootIndex:h.injection,Updates:d.injection};e.exports=f},function(e,t,n){"use strict";function r(e,t){this.value=e,this.requestChange=t}function o(e){var t={value:"undefined"==typeof e?i.PropTypes.any.isRequired:e.isRequired,requestChange:i.PropTypes.func.isRequired};return i.PropTypes.shape(t)}var i=n(32);r.PropTypes={link:o},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){f.push({parentID:e,parentNode:null,type:l.INSERT_MARKUP,markupIndex:m.push(t)-1,textContent:null,fromIndex:null,toIndex:n})}function o(e,t,n){f.push({parentID:e,parentNode:null,type:l.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:t,toIndex:n})}function i(e,t){f.push({parentID:e,parentNode:null,type:l.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:t,toIndex:null})}function s(e,t){f.push({parentID:e,parentNode:null,type:l.TEXT_CONTENT,markupIndex:null,textContent:t,fromIndex:null,toIndex:null})}function a(){f.length&&(c.processChildrenUpdates(f,m),u())}function u(){f.length=0,m.length=0}var c=n(81),l=n(140),p=n(38),h=n(246),d=0,f=[],m=[],v={Mixin:{mountChildren:function(e,t,n){var r=h.instantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var s in r)if(r.hasOwnProperty(s)){var a=r[s],u=this._rootNodeID+s,c=p.mountComponent(a,u,t,n);a._mountIndex=i,o.push(c),i++}return o},updateTextContent:function(e){d++;var t=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setTextContent(e),t=!1}finally{d--,d||(t?u():a())}},updateChildren:function(e,t,n){d++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{d--,d||(r?u():a())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=h.updateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var i,s=0,a=0;for(i in o)if(o.hasOwnProperty(i)){var u=r&&r[i],c=o[i];u===c?(this.moveChild(u,a,s),s=Math.max(u._mountIndex,s),u._mountIndex=a):(u&&(s=Math.max(u._mountIndex,s),this._unmountChildByName(u,i)),this._mountChildByNameAtIndex(c,i,a,t,n)),a++}for(i in r)!r.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||this._unmountChildByName(r[i],i)}},unmountChildren:function(){var e=this._renderedChildren;h.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&o(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){i(this._rootNodeID,e._mountIndex)},setTextContent:function(e){s(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var i=this._rootNodeID+t,s=p.mountComponent(e,i,r,o);e._mountIndex=n,this.createChild(e,s)},_unmountChildByName:function(e,t){this.removeChild(e),e._mountIndex=null}}};e.exports=v},function(e,t,n){(function(t){"use strict";var r=n(2),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,n,i){"production"!==t.env.NODE_ENV?r(o.isValidOwner(i),"addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."):r(o.isValidOwner(i)),i.attachRef(n,e)},removeComponentAsRefFrom:function(e,n,i){"production"!==t.env.NODE_ENV?r(o.isValidOwner(i),"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. This usually means that you're trying to remove a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."):r(o.isValidOwner(i)),i.getPublicInstance().refs[n]===e.getPublicInstance()&&i.detachRef(n)}};e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return function(t,n,r){t.hasOwnProperty(n)?t[n]=e(t[n],r):t[n]=r}}function o(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=c[n];r&&c.hasOwnProperty(n)?r(e,n,t[n]):e.hasOwnProperty(n)||(e[n]=t[n])}return e}var i=n(5),s=n(21),a=n(306),u=r(function(e,t){return i({},t,e)}),c={children:s,className:r(a),style:u},l={mergeProps:function(e,t){return o(i({},e),t)}};e.exports=l},function(e,t,n){"use strict";function r(){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.putListenerQueue=u.getPooled()}var o=n(77),i=n(23),s=n(33),a=n(138),u=n(142),c=n(68),l=n(5),p={initialize:a.getSelectionInformation,close:a.restoreSelection},h={initialize:function(){var e=s.isEnabled();return s.setEnabled(!1),e},close:function(e){s.setEnabled(e)}},d={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},f={initialize:function(){this.putListenerQueue.reset()},close:function(){this.putListenerQueue.putListeners()}},m=[f,p,h,d],v={getTransactionWrappers:function(){return m},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null,u.release(this.putListenerQueue),this.putListenerQueue=null}};l(r.prototype,c.Mixin,v),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=n(267),s={};s.attachRefs=function(e,t){var n=t.ref;null!=n&&r(n,e,t._owner)},s.shouldUpdateRefs=function(e,t){return t._owner!==e._owner||t.ref!==e.ref},s.detachRefs=function(e,t){var n=t.ref;null!=n&&o(n,e,t._owner)},e.exports=s},function(e,t,n){(function(t){"use strict";function r(e){"production"!==t.env.NODE_ENV?p(i.isValidElement(e),"renderToString(): You must pass a valid ReactElement."):p(i.isValidElement(e));var n;try{var r=s.createReactRootID();return n=u.getPooled(!1),n.perform(function(){var t=l(e,null),o=t.mountComponent(r,n,c);return a.addChecksumToMarkup(o)},null)}finally{u.release(n)}}function o(e){"production"!==t.env.NODE_ENV?p(i.isValidElement(e),"renderToStaticMarkup(): You must pass a valid ReactElement."):p(i.isValidElement(e));var n;try{var r=s.createReactRootID();return n=u.getPooled(!0),n.perform(function(){var t=l(e,null);return t.mountComponent(r,n,c)},null)}finally{u.release(n)}}var i=n(8),s=n(34),a=n(139),u=n(272),c=n(52),l=n(92),p=n(2);e.exports={renderToString:r,renderToStaticMarkup:o}}).call(t,n(1))},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=i.getPooled(null),this.putListenerQueue=s.getPooled()}var o=n(23),i=n(77),s=n(142),a=n(68),u=n(5),c=n(21),l={initialize:function(){this.reactMountReady.reset()},close:c},p={initialize:function(){this.putListenerQueue.reset()},close:c},h=[p,l],d={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null,s.release(this.putListenerQueue),this.putListenerQueue=null}};u(r.prototype,a.Mixin,d),o.addPoolingTo(r),e.exports=r},function(e,t){"use strict";function n(e,t){var n={};return function(r){n[t]=r,e.setState(n)}}var r={createStateSetter:function(e,t){return function(n,r,o,i,s,a){var u=t.call(e,n,r,o,i,s,a);u&&e.setState(u)}},createStateKeySetter:function(e,t){var r=e.__keySetters||(e.__keySetters={});return r[t]||(r[t]=n(e,t))}};r.Mixin={createStateSetter:function(e){
+return r.createStateSetter(this,e)},createStateKeySetter:function(e){return r.createStateKeySetter(this,e)}},e.exports=r},function(e,t,n){"use strict";function r(e){}function o(e){return function(t,n){var o;x.isDOMComponent(t)?o=t.getDOMNode():t.tagName&&(o=t);var i=new r;i.target=o;var s=new b(d.eventNameDispatchConfigs[e],y.getID(o),i);w(s,n),c.accumulateTwoPhaseDispatches(s),g.batchedUpdates(function(){u.enqueueEvents(s),u.processEventQueue()})}}function i(){x.Simulate={};var e;for(e in d.eventNameDispatchConfigs)x.Simulate[e]=o(e)}function s(e){return function(t,n){var o=new r(e);w(o,n),x.isDOMComponent(t)?x.simulateNativeEventOnDOMComponent(e,t,o):t.tagName&&x.simulateNativeEventOnNode(e,t,o)}}var a=n(13),u=n(31),c=n(28),l=n(32),p=n(8),h=n(64),d=n(33),f=n(134),m=n(34),v=n(35),y=n(18),g=n(16),b=n(26),w=n(5),E=n(52),T=a.topLevelTypes,x={renderIntoDocument:function(e){var t=document.createElement("div");return l.render(e,t)},isElement:function(e){return p.isValidElement(e)},isElementOfType:function(e,t){return p.isValidElement(e)&&e.type===t},isDOMComponent:function(e){return!!(e&&e.tagName&&e.getDOMNode)},isDOMComponentElement:function(e){return!!(e&&p.isValidElement(e)&&e.tagName)},isCompositeComponent:function(e){return"function"==typeof e.render&&"function"==typeof e.setState},isCompositeComponentWithType:function(e,t){return!(!x.isCompositeComponent(e)||e.constructor!==t)},isCompositeComponentElement:function(e){if(!p.isValidElement(e))return!1;var t=e.type.prototype;return"function"==typeof t.render&&"function"==typeof t.setState},isCompositeComponentElementWithType:function(e,t){return!(!x.isCompositeComponentElement(e)||e.constructor!==t)},getRenderedChildOfCompositeComponent:function(e){if(!x.isCompositeComponent(e))return null;var t=v.get(e);return t._renderedComponent.getPublicInstance()},findAllInRenderedTree:function(e,t){if(!e)return[];var n=t(e)?[e]:[];if(x.isDOMComponent(e)){var r,o=v.get(e),i=o._renderedComponent._renderedChildren;for(r in i)i.hasOwnProperty(r)&&i[r].getPublicInstance&&(n=n.concat(x.findAllInRenderedTree(i[r].getPublicInstance(),t)))}else x.isCompositeComponent(e)&&(n=n.concat(x.findAllInRenderedTree(x.getRenderedChildOfCompositeComponent(e),t)));return n},scryRenderedDOMComponentsWithClass:function(e,t){return x.findAllInRenderedTree(e,function(e){var n=e.props.className;return x.isDOMComponent(e)&&n&&-1!==(" "+n+" ").indexOf(" "+t+" ")})},findRenderedDOMComponentWithClass:function(e,t){var n=x.scryRenderedDOMComponentsWithClass(e,t);if(1!==n.length)throw new Error("Did not find exactly one match (found: "+n.length+") for class:"+t);return n[0]},scryRenderedDOMComponentsWithTag:function(e,t){return x.findAllInRenderedTree(e,function(e){return x.isDOMComponent(e)&&e.tagName===t.toUpperCase()})},findRenderedDOMComponentWithTag:function(e,t){var n=x.scryRenderedDOMComponentsWithTag(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for tag:"+t);return n[0]},scryRenderedComponentsWithType:function(e,t){return x.findAllInRenderedTree(e,function(e){return x.isCompositeComponentWithType(e,t)})},findRenderedComponentWithType:function(e,t){var n=x.scryRenderedComponentsWithType(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for componentType:"+t);return n[0]},mockComponent:function(e,t){return t=t||e.mockTagName||"div",e.prototype.render.mockImplementation(function(){return l.createElement(t,null,this.props.children)}),this},simulateNativeEventOnNode:function(e,t,n){n.target=t,d.ReactEventListener.dispatchEvent(e,n)},simulateNativeEventOnDOMComponent:function(e,t,n){x.simulateNativeEventOnNode(e,t.getDOMNode(),n)},nativeTouchData:function(e,t){return{touches:[{pageX:e,pageY:t}]}},createRenderer:function(){return new C},Simulate:null,SimulateNative:{}},C=function(){this._instance=null};C.prototype.getRenderOutput=function(){return this._instance&&this._instance._renderedComponent&&this._instance._renderedComponent._renderedOutput||null};var _=function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?h.emptyElement:e};_.prototype={mountComponent:function(){},receiveComponent:function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?h.emptyElement:e},unmountComponent:function(){}};var S=function(){};w(S.prototype,f.Mixin,{_instantiateReactComponent:function(e){return new _(e)},_replaceNodeWithMarkupByID:function(){},_renderValidatedComponent:f.Mixin._renderValidatedComponentWithoutOwnerOrContext}),C.prototype.render=function(e,t){t||(t=E);var n=g.ReactReconcileTransaction.getPooled();this._render(e,n,t),g.ReactReconcileTransaction.release(n)},C.prototype.unmount=function(){this._instance&&this._instance.unmountComponent()},C.prototype._render=function(e,t,n){if(this._instance)this._instance.receiveComponent(e,t,n);else{var r=m.createReactRootID(),o=new S(e.type);o.construct(e),o.mountComponent(r,t,n),this._instance=o}};var N=u.injection.injectEventPluginOrder;u.injection.injectEventPluginOrder=function(){N.apply(this,arguments),i()};var O=u.injection.injectEventPluginsByName;u.injection.injectEventPluginsByName=function(){O.apply(this,arguments),i()},i();var D;for(D in T){var P=0===D.indexOf("top")?D.charAt(3).toLowerCase()+D.substr(4):D;x.SimulateNative[P]=s(D)}e.exports=x},function(e,t,n){"use strict";var r=n(132),o=n(37),i={getChildMapping:function(e){return e?o.extract(r.map(e,function(e){return e})):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var u in t){if(r.hasOwnProperty(u))for(s=0;s<r[u].length;s++){var c=r[u][s];a[r[u][s]]=n(c)}a[u]=n(u)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}};e.exports=i},function(e,t,n){"use strict";function r(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var n in a){var r=a[n];for(var o in r)if(o in t){u.push(r[o]);break}}}function o(e,t,n){e.addEventListener(t,n,!1)}function i(e,t,n){e.removeEventListener(t,n,!1)}var s=n(12),a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},u=[];s.canUseDOM&&r();var c={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){i(e,n,t)})}};e.exports=c},function(e,t,n){(function(t){"use strict";var r=n(242),o=n(32),i=n(247),s=n(244),a=n(37),u=n(144),c=n(16),l=n(296),p=n(145),h=n(158);o.addons={CSSTransitionGroup:s,LinkedStateMixin:r,PureRenderMixin:i,TransitionGroup:u,batchedUpdates:c.batchedUpdates,classSet:l,cloneWithProps:p,createFragment:a.create,update:h},"production"!==t.env.NODE_ENV&&(o.addons.Perf=n(137),o.addons.TestUtils=n(274)),e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";var r=n(30),o=r.injection.MUST_USE_ATTRIBUTE,i={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,y1:o,y2:o,y:o},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox"}};e.exports=i},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&a.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e){if(g||null==m||m!==c())return null;var t=r(m);if(!y||!h(y,t)){y=t;var n=u.getPooled(f.select,v,e);return n.type="select",n.target=m,s.accumulateTwoPhaseDispatches(n),n}}var i=n(13),s=n(28),a=n(138),u=n(26),c=n(149),l=n(154),p=n(17),h=n(156),d=i.topLevelTypes,f={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[d.topBlur,d.topContextMenu,d.topFocus,d.topKeyDown,d.topMouseDown,d.topMouseUp,d.topSelectionChange]}},m=null,v=null,y=null,g=!1,b={eventTypes:f,extractEvents:function(e,t,n,r){switch(e){case d.topFocus:(l(t)||"true"===t.contentEditable)&&(m=t,v=n,y=null);break;case d.topBlur:m=null,v=null,y=null;break;case d.topMouseDown:g=!0;break;case d.topContextMenu:case d.topMouseUp:return g=!1,o(r);case d.topSelectionChange:case d.topKeyDown:case d.topKeyUp:return o(r)}}};e.exports=b},function(e,t){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};e.exports=r},function(e,t,n){(function(t){"use strict";var r=n(13),o=n(50),i=n(28),s=n(282),a=n(26),u=n(285),c=n(287),l=n(67),p=n(284),h=n(288),d=n(39),f=n(289),m=n(89),v=n(2),y=n(17),g=n(9),b=r.topLevelTypes,w={blur:{phasedRegistrationNames:{bubbled:y({onBlur:!0}),captured:y({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:y({onClick:!0}),captured:y({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:y({onContextMenu:!0}),captured:y({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:y({onCopy:!0}),captured:y({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:y({onCut:!0}),captured:y({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:y({onDoubleClick:!0}),captured:y({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:y({onDrag:!0}),captured:y({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:y({onDragEnd:!0}),captured:y({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:y({onDragEnter:!0}),captured:y({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:y({onDragExit:!0}),captured:y({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:y({onDragLeave:!0}),captured:y({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:y({onDragOver:!0}),captured:y({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:y({onDragStart:!0}),captured:y({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:y({onDrop:!0}),captured:y({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:y({onFocus:!0}),captured:y({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:y({onInput:!0}),captured:y({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:y({onKeyDown:!0}),captured:y({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:y({onKeyPress:!0}),captured:y({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:y({onKeyUp:!0}),captured:y({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:y({onLoad:!0}),captured:y({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:y({onError:!0}),captured:y({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:y({onMouseDown:!0}),captured:y({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:y({onMouseMove:!0}),captured:y({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:y({onMouseOut:!0}),captured:y({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:y({onMouseOver:!0}),captured:y({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:y({onMouseUp:!0}),captured:y({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:y({onPaste:!0}),captured:y({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:y({onReset:!0}),captured:y({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:y({onScroll:!0}),captured:y({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:y({onSubmit:!0}),captured:y({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:y({onTouchCancel:!0}),captured:y({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:y({onTouchEnd:!0}),captured:y({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:y({onTouchMove:!0}),captured:y({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:y({onTouchStart:!0}),captured:y({onTouchStartCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:y({onWheel:!0}),captured:y({onWheelCapture:!0})}}},E={topBlur:w.blur,topClick:w.click,topContextMenu:w.contextMenu,topCopy:w.copy,topCut:w.cut,topDoubleClick:w.doubleClick,topDrag:w.drag,topDragEnd:w.dragEnd,topDragEnter:w.dragEnter,topDragExit:w.dragExit,topDragLeave:w.dragLeave,topDragOver:w.dragOver,topDragStart:w.dragStart,topDrop:w.drop,topError:w.error,topFocus:w.focus,topInput:w.input,topKeyDown:w.keyDown,topKeyPress:w.keyPress,topKeyUp:w.keyUp,topLoad:w.load,topMouseDown:w.mouseDown,topMouseMove:w.mouseMove,topMouseOut:w.mouseOut,topMouseOver:w.mouseOver,topMouseUp:w.mouseUp,topPaste:w.paste,topReset:w.reset,topScroll:w.scroll,topSubmit:w.submit,topTouchCancel:w.touchCancel,topTouchEnd:w.touchEnd,topTouchMove:w.touchMove,topTouchStart:w.touchStart,topWheel:w.wheel};for(var T in E)E[T].dependencies=[T];var x={eventTypes:w,executeDispatch:function(e,n,r){var i=o.executeDispatch(e,n,r);"production"!==t.env.NODE_ENV?g("boolean"!=typeof i,"Returning `false` from an event handler is deprecated and will be ignored in a future release. Instead, manually call e.stopPropagation() or e.preventDefault(), as appropriate."):null,i===!1&&(e.stopPropagation(),e.preventDefault())},extractEvents:function(e,n,r,o){var y=E[e];if(!y)return null;var g;switch(e){case b.topInput:case b.topLoad:case b.topError:case b.topReset:case b.topSubmit:g=a;break;case b.topKeyPress:if(0===m(o))return null;case b.topKeyDown:case b.topKeyUp:g=c;break;case b.topBlur:case b.topFocus:g=u;break;case b.topClick:if(2===o.button)return null;case b.topContextMenu:case b.topDoubleClick:case b.topMouseDown:case b.topMouseMove:case b.topMouseOut:case b.topMouseOver:case b.topMouseUp:g=l;break;case b.topDrag:case b.topDragEnd:case b.topDragEnter:case b.topDragExit:case b.topDragLeave:case b.topDragOver:case b.topDragStart:case b.topDrop:g=p;break;case b.topTouchCancel:case b.topTouchEnd:case b.topTouchMove:case b.topTouchStart:g=h;break;case b.topScroll:g=d;break;case b.topWheel:g=f;break;case b.topCopy:case b.topCut:case b.topPaste:g=s}"production"!==t.env.NODE_ENV?v(g,"SimpleEventPlugin: Unhandled event type, `%s`.",e):v(g);var w=g.getPooled(y,r,o);return i.accumulateTwoPhaseDispatches(w),w}};e.exports=x}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(26),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(26),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(67),i={dataTransfer:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(39),i={relatedTarget:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(26),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(39),i=n(89),s=n(299),a=n(90),u={key:s,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:a,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(39),i=n(90),s={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(67),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),e.exports=r},function(e,t){"use strict";function n(e){for(var t=1,n=0,o=0;o<e.length;o++)t=(t+e.charCodeAt(o))%r,n=(n+t)%r;return t|n<<16}var r=65521;e.exports=n},function(e,t){function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(291),i=/^-ms-/;e.exports=r},function(e,t,n){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():i(e):[e]}var i=n(313);e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){var n=i.createFactory(e),r=o.createClass({tagName:e.toUpperCase(),displayName:"ReactFullPageComponent"+e,componentWillUnmount:function(){"production"!==t.env.NODE_ENV?s(!1,"%s tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.",this.constructor.displayName):s(!1)},render:function(){return n(this.props)}});return r}var o=n(15),i=n(8),s=n(2);e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,n){var o=c;"production"!==t.env.NODE_ENV?u(!!c,"createNodesFromMarkup dummy not initialized"):u(!!c);var i=r(e),l=i&&a(i);if(l){o.innerHTML=l[1]+e+l[2];for(var p=l[0];p--;)o=o.lastChild}else o.innerHTML=e;var h=o.getElementsByTagName("script");h.length&&("production"!==t.env.NODE_ENV?u(n,"createNodesFromMarkup(...): Unexpected <script> element rendered."):u(n),s(h).forEach(n));for(var d=s(o.childNodes);o.lastChild;)o.removeChild(o.lastChild);return d}var i=n(12),s=n(293),a=n(151),u=n(2),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;e.exports=o}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?o(i,"React.addons.classSet will be deprecated in a future version. See http://fb.me/react-addons-classset";):null,i=!0),"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).join(" "):Array.prototype.join.call(arguments," ")}var o=n(9),i=!1;e.exports=r}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||i.hasOwnProperty(e)&&i[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=n(129),i=o.isUnitlessNumber;e.exports=r},function(e,t,n){(function(t){"use strict";function r(e,n,r){var o=e,i=!o.hasOwnProperty(r);"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?s(i,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",r):null),i&&null!=n&&(o[r]=n)}function o(e){if(null==e)return e;var t={};return i(e,r,t),t}var i=n(157),s=n(9);e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?s[e.keyCode]||"Unidentified":""}var o=n(89),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},s={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),i=0,s=0;o;){if(3===o.nodeType){if(s=i+o.textContent.length,t>=i&&s>=t)return{node:o,offset:t-i};i=s}o=n(r(o))}}e.exports=o},function(e,t){"use strict";function n(e){return e?e.nodeType===r?e.documentElement:e.firstChild:null}var r=9;e.exports=n},function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(303),i=/^ms-/;e.exports=r},function(e,t,n){function r(e){return o(e)&&3==e.nodeType}var o=n(153);e.exports=r},function(e,t){"use strict";function n(e){e||(e="");var t,n=arguments.length;if(n>1)for(var r=1;n>r;r++)t=arguments[r],t&&(e=(e?e+" ":"")+t);return e}e.exports=n},function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";var r,o=n(12);o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),e.exports=r||{}},function(e,t,n){var r=n(309);r&&r.now||(r=Date);var o=r.now.bind(r);e.exports=o},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(70);e.exports=r},function(e,t,n){"use strict";var r=n(12),o=n(70),i=n(94),s=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(s=function(e,t){i(e,o(t))})),e.exports=s},function(e,t,n){(function(t){function r(e){var n=e.length;if("production"!==t.env.NODE_ENV?o(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e),"toArray: Array-like object expected"):o(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e)),"production"!==t.env.NODE_ENV?o("number"==typeof n,"toArray: Object needs a length property"):o("number"==typeof n),"production"!==t.env.NODE_ENV?o(0===n||n-1 in e,"toArray: Object should have keys for indices"):o(0===n||n-1 in e),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(r){}for(var i=Array(n),s=0;n>s;s++)i[s]=e[s];return i}var o=n(2);e.exports=r}).call(t,n(1))},function(e,t,n){var r;(function(e,o,i){(function(s){function a(e){for(var t=[],n=0,r=e.length;r>n;n++)t.push(e[n]);return t}function u(e){return function(){try{return e.apply(this,arguments)}catch(t){return Xe.e=t,Xe}}}function c(e){throw e}function l(e,t){if(Je&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&-1===e.stack.indexOf(nt)){for(var n=[],r=t;r;r=r.source)r.stack&&n.unshift(r.stack);n.unshift(e.stack);var o=n.join("\n"+nt+"\n");e.stack=p(o)}}function p(e){for(var t=e.split("\n"),n=[],r=0,o=t.length;o>r;r++){var i=t[r];h(i)||d(i)||!i||n.push(i)}return n.join("\n")}function h(e){var t=m(e);if(!t)return!1;var n=t[0],r=t[1];return n===et&&r>=tt&&uo>=r}function d(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function f(){if(Je)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=t[0].indexOf("@")>0?t[1]:t[2],r=m(n);if(!r)return;return et=r[0],r[1]}}function m(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function v(e){var t=[];if(!Ft(e))return t;Lt.nonEnumArgs&&e.length&&Ut(e)&&(e=Vt.call(e));var n=Lt.enumPrototypes&&"function"==typeof e,r=Lt.enumErrorProps&&(e===kt||e instanceof Error);for(var o in e)n&&"prototype"==o||r&&("message"==o||"name"==o)||t.push(o);if(Lt.nonEnumShadows&&e!==Mt){var i=e.constructor,s=-1,a=yt;if(e===(i&&i.prototype))var u=e===At?Nt:e===kt?Tt:Ot.call(e),c=jt[u];for(;++s<a;)o=vt[s],c&&c[o]||!Dt.call(e,o)||t.push(o)}return t}function y(e,t,n){for(var r=-1,o=n(e),i=o.length;++r<i;){var s=o[r];if(t(e[s],s,e)===!1)break}return e}function g(e,t){return y(e,t,v)}function b(e){return"function"!=typeof e.toString&&"string"==typeof(e+"")}function w(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;var o=typeof e,i=typeof t;if(e===e&&(null==e||null==t||"function"!=o&&"object"!=o&&"function"!=i&&"object"!=i))return!1;var s=Ot.call(e),a=Ot.call(t);if(s==gt&&(s=_t),a==gt&&(a=_t),s!=a)return!1;switch(s){case wt:case Et:return+e==+t;case Ct:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case St:case Nt:return e==String(t)}var u=s==bt;if(!u){if(s!=_t||!Lt.nodeClass&&(b(e)||b(t)))return!1;var c=!Lt.argsObject&&Ut(e)?Object:e.constructor,l=!Lt.argsObject&&Ut(t)?Object:t.constructor;if(!(c==l||Dt.call(e,"constructor")&&Dt.call(t,"constructor")||Qe(c)&&c instanceof c&&Qe(l)&&l instanceof l)&&("constructor"in e&&"constructor"in t))return!1}n||(n=[]),r||(r=[]);for(var p=n.length;p--;)if(n[p]==e)return r[p]==t;var h=0,d=!0;if(n.push(e),r.push(t),u){if(p=e.length,h=t.length,d=h==p)for(;h--;){var f=t[h];if(!(d=w(e[h],f,n,r)))break}}else g(t,function(t,o,i){return Dt.call(i,o)?(h++,d=Dt.call(e,o)&&w(e[o],t,n,r)):void 0}),d&&g(e,function(e,t,n){return Dt.call(n,t)?d=--h>-1:void 0});return n.pop(),r.pop(),d}function E(e,t){for(var n=new Array(e),r=0;e>r;r++)n[r]=t();return n}function T(e,t){this.id=e,this.value=t}function x(e,t){this.scheduler=e,this.disposable=t,this.isDisposed=!1}function C(e,t){t.isDisposed||(t.isDisposed=!0,t.disposable.dispose())}function _(e){this._s=e}function S(e){this._s=e,this._l=e.length,this._i=0}function N(e){this._a=e}function O(e){this._a=e,this._l=M(e),this._i=0}function D(e){return"number"==typeof e&&We.isFinite(e)}function P(e){var t,n=e[lt];if(!n&&"string"==typeof e)return t=new _(e),t[lt]();if(!n&&e.length!==s)return t=new N(e),t[lt]();if(!n)throw new TypeError("Object is not iterable");return e[lt]()}function k(e){var t=+e;return 0===t?t:isNaN(t)?t:0>t?-1:1}function M(e){var t=+e.length;return isNaN(t)?0:0!==t&&D(t)?(t=k(t)*Math.floor(Math.abs(t)),0>=t?0:t>Qn?Qn:t):t}function A(e,t){this.observer=e,this.parent=t}function R(e,t){return an(e)||(e=hn),new $n(t,e)}function I(e,t){this.observer=e,this.parent=t}function j(e,t){this.observer=e,this.parent=t}function L(e,t){return e.amb(t)}function F(e,t){return new no(function(n){var r=new en,o=new tn;return o.setDisposable(r),r.setDisposable(e.subscribe(new cr(n,o,t))),o},e)}function U(){return!1}function W(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function U(){return!1}function U(){return!1}function V(){return[]}function W(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function U(){return!1}function V(){return[]}function W(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function B(e){return function(t){return e.subscribe(t)}}function q(e){return e.toArray()}function z(e){return e.length>0}function K(e,t){this.o=e,this.accumulator=t.accumulator,this.hasSeed=t.hasSeed,this.seed=t.seed,this.hasAccumulation=!1,this.accumulation=null,this.hasValue=!1,this.isStopped=!1}function H(e,t,n){var r=mt(t,n,3);return e.map(function(t,n){var o=r(t,n,e);return Ye(o)&&(o=Vn(o)),(dt(o)||ht(o))&&(o=Xn(o)),o}).concatAll()}function G(e,t,n){for(var r=0,o=e.length;o>r;r++)if(n(e[r],t))return r;return-1}function Y(e){this.comparer=e,this.set=[]}function Q(e,t){return function(n){for(var r=n,o=0;t>o;o++){var i=r[e[o]];if("undefined"==typeof i)return s;r=i}return r}}function X(e,t,n){return new no(function(r){var o=!1,i=null,s=[];return e.subscribe(function(e){var a,u;try{u=t(e)}catch(c){return void r.onError(c)}if(a=0,o)try{a=n(u,i)}catch(l){return void r.onError(l)}else o=!0,i=u;a>0&&(i=u,s=[]),a>=0&&s.push(e)},function(e){r.onError(e)},function(){r.onNext(s),r.onCompleted()})},e)}function $(e){if(0===e.length)throw new rt;return e[0]}function J(e,t,n,r){var o=mt(t,n,3);return new no(function(t){var n=0;return e.subscribe(function(i){var s;try{s=o(i,n,e)}catch(a){return void t.onError(a)}s?(t.onNext(r?n:i),t.onCompleted()):n++},function(e){t.onError(e)},function(){t.onNext(r?-1:s),t.onCompleted()})},e)}function Z(e){return e?Pn.isObservable(e)?e:Ye(e)?Pn.fromPromise(e):oe(e)||re(e)?jr.call(this,e):Qe(e)?ne.call(this,e):dt(e)||ht(e)?ee.call(this,e):Ft(e)?te.call(this,e):e:e}function ee(e){return Pn.from(e).flatMap(Z).toArray()}function te(e){function t(e,t){n[t]=s,o.push(e.map(function(e){n[t]=e}))}for(var n=new e.constructor,r=Object.keys(e),o=[],i=0,a=r.length;a>i;i++){var u=r[i],c=Z.call(this,e[u]);c&&Pn.isObservable(c)?t(c,u):n[u]=e[u]}return Pn.forkJoin.apply(Pn,o).map(function(){return n})}function ne(e){var t=this;return new no(function(n){e.call(t,function(){var e=arguments[0],t=arguments[1];if(e)return n.onError(e);if(arguments.length>2){for(var r=[],o=1,i=arguments.length;i>o;o++)r.push(arguments[o]);t=r}n.onNext(t),n.onCompleted()})})}function re(e){return Qe(e.next)&&Qe(e["throw"])}function oe(e){var t=e.constructor;return t?"GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName?!0:re(t.prototype):!1}function ie(e,t,n,r){var o=new so;return r.push(se(o,t,n)),e.apply(t,r),o.asObservable()}function se(e,t,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];if(Qe(n)){if(o=$e(n).apply(t,o),o===Xe)return e.onError(o.e);e.onNext(o)}else o.length<=1?e.onNext(o[0]):e.onNext(o);e.onCompleted()}}function ae(e,t,n,r){var o=new so;return r.push(ue(o,t,n)),e.apply(t,r),o.asObservable()}function ue(e,t,n){return function(){var r=arguments[0];if(r)return e.onError(r);for(var o=arguments.length,i=[],s=1;o>s;s++)i[s-1]=arguments[s];if(Qe(n)){var i=$e(n).apply(t,i);if(i===Xe)return e.onError(i.e);e.onNext(i)}else i.length<=1?e.onNext(i[0]):e.onNext(i);e.onCompleted()}}function ce(e,t,n){this._e=e,this._n=t,this._fn=n,this._e.addEventListener(this._n,this._fn,!1),this.isDisposed=!1}function le(e,t,n){var r=new Gt,o=Object.prototype.toString.call(e);if("[object NodeList]"===o||"[object HTMLCollection]"===o)for(var i=0,s=e.length;s>i;i++)r.add(le(e.item(i),t,n));else e&&r.add(new ce(e,t,n));return r}function pe(e,t){return function(){var n=arguments[0];return Qe(t)&&(n=$e(t).apply(null,arguments),n===Xe)?e.onError(n.e):void e.onNext(n)}}function he(e,t,n){return new no(function(r){function o(e,t){if(c[t]=e,s[t]=!0,a||(a=s.every(qe))){if(i)return r.onError(i);var o=$e(n).apply(null,c);if(o===Xe)return r.onError(o.e);r.onNext(o)}u&&c[1]&&r.onCompleted()}var i,s=[!1,!1],a=!1,u=!1,c=new Array(2);
+return new Gt(e.subscribe(function(e){o(e,0)},function(e){c[1]?r.onError(e):i=e},function(){u=!0,c[1]&&r.onCompleted()}),t.subscribe(function(e){o(e,1)},function(e){r.onError(e)},function(){u=!0,o(!0,1)}))},e)}function q(e){return e.toArray()}function de(e,t){return e.groupJoin(this,t,Hn,function(e,t){return t})}function fe(e){var t=this;return new no(function(n){var r=new io,o=new Gt,i=new nn(o);return n.onNext(zt(r,i)),o.add(t.subscribe(function(e){r.onNext(e)},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),Ye(e)&&(e=Vn(e)),o.add(e.subscribe(function(e){r.onCompleted(),r=new io,n.onNext(zt(r,i))},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),i},t)}function me(e){var t=this;return new no(function(n){function r(){var t;try{t=e()}catch(i){return void n.onError(i)}Ye(t)&&(t=Vn(t));var u=new en;o.setDisposable(u),u.setDisposable(t.take(1).subscribe(Be,function(e){a.onError(e),n.onError(e)},function(){a.onCompleted(),a=new io,n.onNext(zt(a,s)),r()}))}var o=new tn,i=new Gt(o),s=new nn(i),a=new io;return n.onNext(zt(a,s)),i.add(t.subscribe(function(e){a.onNext(e)},function(e){a.onError(e),n.onError(e)},function(){a.onCompleted(),n.onCompleted()})),r(),s},t)}function ve(e,t){return new Qr(e,t)}function ye(e){this.patterns=e}function ge(e,t){this.expression=e,this.selector=t}function be(e,t,n){var r=e.get(t);if(!r){var o=new Zr(t,n);return e.set(t,o),o}return r}function we(e,t,n){this.joinObserverArray=e,this.onNext=t,this.onCompleted=n,this.joinObservers=new Jr;for(var r=0,o=this.joinObserverArray.length;o>r;r++){var i=this.joinObserverArray[r];this.joinObservers.set(i,i)}}function Ee(e,t){return new no(function(n){return t.scheduleWithAbsolute(e,function(){n.onNext(0),n.onCompleted()})})}function Te(e,t,n){return new no(function(r){var o=e,i=sn(t);return n.scheduleRecursiveWithAbsoluteAndState(0,o,function(e,t){if(i>0){var s=n.now();o+=i,s>=o&&(o=s+i)}r.onNext(e),t(e+1,o)})})}function xe(e,t){return new no(function(n){return t.scheduleWithRelative(sn(e),function(){n.onNext(0),n.onCompleted()})})}function Ce(e,t,n){return e===t?new no(function(e){return n.schedulePeriodicWithState(0,t,function(t){return e.onNext(t),t+1})}):qn(function(){return Te(n.now()+e,t,n)})}function _e(e,t,n){return new no(function(r){var o,i=!1,s=new tn,a=null,u=[],c=!1;return o=e.materialize().timestamp(n).subscribe(function(e){var o,l;"E"===e.value.kind?(u=[],u.push(e),a=e.value.exception,l=!c):(u.push({value:e.value,timestamp:e.timestamp+t}),l=!i,i=!0),l&&(null!==a?r.onError(a):(o=new en,s.setDisposable(o),o.setDisposable(n.scheduleRecursiveWithRelative(t,function(e){var t,o,s,l;if(null===a){c=!0;do s=null,u.length>0&&u[0].timestamp-n.now()<=0&&(s=u.shift().value),null!==s&&s.accept(r);while(null!==s);l=!1,o=0,u.length>0?(l=!0,o=Math.max(0,u[0].timestamp-n.now())):i=!1,t=a,c=!1,null!==t?r.onError(t):l&&e(o)}}))))}),new Gt(o,s)},e)}function Se(e,t,n){return qn(function(){return _e(e,t-n.now(),n)})}function Ne(e,t,n){var r,o;return Qe(t)?o=t:(r=t,o=n),new no(function(t){function n(){u.setDisposable(e.subscribe(function(e){var n=$e(o)(e);if(n===Xe)return t.onError(n.e);var r=new en;s.add(r),r.setDisposable(n.subscribe(function(){t.onNext(e),s.remove(r),i()},function(e){t.onError(e)},function(){t.onNext(e),s.remove(r),i()}))},function(e){t.onError(e)},function(){a=!0,u.dispose(),i()}))}function i(){a&&0===s.length&&t.onCompleted()}var s=new Gt,a=!1,u=new tn;return r?u.setDisposable(r.subscribe(n,function(e){t.onError(e)},n)):n(),new Gt(u,s)},this)}function Oe(e,t,n){return an(n)||(n=vn),new no(function(r){var o,i=new tn,s=!1,a=0,u=e.subscribe(function(e){s=!0,o=e,a++;var u=a,c=new en;i.setDisposable(c),c.setDisposable(n.scheduleWithRelative(t,function(){s&&a===u&&r.onNext(o),s=!1}))},function(e){i.dispose(),r.onError(e),s=!1,a++},function(){i.dispose(),s&&r.onNext(o),r.onCompleted(),s=!1,a++});return new Gt(u,i)},this)}function De(e,t){return new no(function(n){var r,o=!1,i=new tn,s=0,a=e.subscribe(function(e){var a=$e(t)(e);if(a===Xe)return n.onError(a.e);Ye(a)&&(a=Vn(a)),o=!0,r=e,s++;var u=s,c=new en;i.setDisposable(c),c.setDisposable(a.subscribe(function(){o&&s===u&&n.onNext(r),o=!1,c.dispose()},function(e){n.onError(e)},function(){o&&s===u&&n.onNext(r),o=!1,c.dispose()}))},function(e){i.dispose(),n.onError(e),o=!1,s++},function(){i.dispose(),o&&n.onNext(r),n.onCompleted(),o=!1,s++});return new Gt(a,i)},e)}function q(e){return e.toArray()}function q(e){return e.toArray()}function Pe(e,t){return new no(function(n){function r(){s&&(s=!1,n.onNext(o)),i&&n.onCompleted()}var o,i=!1,s=!1,a=new en;return a.setDisposable(e.subscribe(function(e){s=!0,o=e},function(e){n.onError(e)},function(){i=!0,a.dispose()})),new Gt(a,t.subscribe(r,function(e){n.onError(e)},r))},e)}function ke(e,t,n,r){return Qe(t)&&(r=n,n=t,t=tr()),r||(r=ur(new to)),new no(function(o){function i(e){var t=l,n=new en;u.setDisposable(n),n.setDisposable(e.subscribe(function(){l===t&&a.setDisposable(r.subscribe(o)),n.dispose()},function(e){l===t&&o.onError(e)},function(){l===t&&a.setDisposable(r.subscribe(o))}))}function s(){var e=!p;return e&&l++,e}var a=new tn,u=new tn,c=new en;a.setDisposable(c);var l=0,p=!1;return i(t),c.setDisposable(e.subscribe(function(e){if(s()){o.onNext(e);var t=$e(n)(e);if(t===Xe)return o.onError(t.e);i(Ye(t)?Vn(t):t)}},function(e){s()&&o.onError(e)},function(){s()&&o.onCompleted()})),new Gt(a,u)},e)}function Me(e,t,n,r){if(null==n)throw new Error("other or scheduler must be specified");an(n)&&(r=n,n=ur(new to)),n instanceof Error&&(n=ur(n)),an(r)||(r=vn);var o=t instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new no(function(i){function s(){var e=a;p.setDisposable(r[o](t,function(){a===e&&(Ye(n)&&(n=Vn(n)),c.setDisposable(n.subscribe(i)))}))}var a=0,u=new en,c=new tn,l=!1,p=new tn;return c.setDisposable(u),s(),u.setDisposable(e.subscribe(function(e){l||(a++,i.onNext(e),s())},function(e){l||(a++,i.onError(e))},function(){l||(a++,i.onCompleted())})),new Gt(c,p)},e)}var Ae={"function":!0,object:!0},Re=Ae[typeof t]&&t&&!t.nodeType&&t,Ie=Ae[typeof self]&&self.Object&&self,je=Ae[typeof window]&&window&&window.Object&&window,Le=Ae[typeof e]&&e&&!e.nodeType&&e,Fe=Le&&Le.exports===Re&&Re,Ue=Re&&Le&&"object"==typeof o&&o&&o.Object&&o,We=We=Ue||je!==(this&&this.window)&&je||Ie||this,Ve={internals:{},config:{Promise:We.Promise},helpers:{}},Be=Ve.helpers.noop=function(){},qe=Ve.helpers.identity=function(e){return e},ze=Ve.helpers.defaultNow=Date.now,Ke=Ve.helpers.defaultComparer=function(e,t){return Wt(e,t)},He=Ve.helpers.defaultSubComparer=function(e,t){return e>t?1:t>e?-1:0},Ge=(Ve.helpers.defaultKeySerializer=function(e){return e.toString()},Ve.helpers.defaultError=function(e){throw e}),Ye=Ve.helpers.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then},Qe=Ve.helpers.isFunction=function(){var e=function(e){return"function"==typeof e||!1};return e(/x/)&&(e=function(e){return"function"==typeof e&&"[object Function]"==Ot.call(e)}),e}(),Xe={e:{}},$e=Ve.internals.tryCatch=function(e){if(!Qe(e))throw new TypeError("fn must be a function");return u(e)};Ve.config.longStackSupport=!1;var Je=!1,Ze=$e(function(){throw new Error})();Je=!!Ze.e&&!!Ze.e.stack;var et,tt=f(),nt="From previous event:",rt=Ve.EmptyError=function(){this.message="Sequence contains no elements.",this.name="EmptyError",Error.call(this)};rt.prototype=Object.create(Error.prototype);var ot=Ve.ObjectDisposedError=function(){this.message="Object has been disposed",this.name="ObjectDisposedError",Error.call(this)};ot.prototype=Object.create(Error.prototype);var it=Ve.ArgumentOutOfRangeError=function(){this.message="Argument out of range",this.name="ArgumentOutOfRangeError",Error.call(this)};it.prototype=Object.create(Error.prototype);var st=Ve.NotSupportedError=function(e){this.message=e||"This operation is not supported",this.name="NotSupportedError",Error.call(this)};st.prototype=Object.create(Error.prototype);var at=Ve.NotImplementedError=function(e){this.message=e||"This operation is not implemented",this.name="NotImplementedError",Error.call(this)};at.prototype=Object.create(Error.prototype);var ut=Ve.helpers.notImplemented=function(){throw new at},ct=Ve.helpers.notSupported=function(){throw new st},lt="function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";We.Set&&"function"==typeof(new We.Set)["@@iterator"]&&(lt="@@iterator");var pt=Ve.doneEnumerator={done:!0,value:s},ht=Ve.helpers.isIterable=function(e){return e[lt]!==s},dt=Ve.helpers.isArrayLike=function(e){return e&&e.length!==s};Ve.helpers.iterator=lt;var ft,mt=Ve.internals.bindCallback=function(e,t,n){if("undefined"==typeof t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},vt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],yt=vt.length,gt="[object Arguments]",bt="[object Array]",wt="[object Boolean]",Et="[object Date]",Tt="[object Error]",xt="[object Function]",Ct="[object Number]",_t="[object Object]",St="[object RegExp]",Nt="[object String]",Ot=Object.prototype.toString,Dt=Object.prototype.hasOwnProperty,Pt=Ot.call(arguments)==gt,kt=Error.prototype,Mt=Object.prototype,At=String.prototype,Rt=Mt.propertyIsEnumerable;try{ft=!(Ot.call(document)==_t&&!({toString:0}+""))}catch(It){ft=!0}var jt={};jt[bt]=jt[Et]=jt[Ct]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},jt[wt]=jt[Nt]={constructor:!0,toString:!0,valueOf:!0},jt[Tt]=jt[xt]=jt[St]={constructor:!0,toString:!0},jt[_t]={constructor:!0};var Lt={};!function(){var e=function(){this.x=1},t=[];e.prototype={valueOf:1,y:1};for(var n in new e)t.push(n);for(n in arguments);Lt.enumErrorProps=Rt.call(kt,"message")||Rt.call(kt,"name"),Lt.enumPrototypes=Rt.call(e,"prototype"),Lt.nonEnumArgs=0!=n,Lt.nonEnumShadows=!/valueOf/.test(t)}(1);var Ft=Ve.internals.isObject=function(e){var t=typeof e;return e&&("function"==t||"object"==t)||!1},Ut=function(e){return e&&"object"==typeof e?Ot.call(e)==gt:!1};Pt||(Ut=function(e){return e&&"object"==typeof e?Dt.call(e,"callee"):!1});var Wt=Ve.internals.isEqual=function(e,t){return w(e,t,[],[])},Vt=({}.hasOwnProperty,Array.prototype.slice),Bt=Ve.internals.inherits=function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},qt=Ve.internals.addProperties=function(e){for(var t=[],n=1,r=arguments.length;r>n;n++)t.push(arguments[n]);for(var o=0,i=t.length;i>o;o++){var s=t[o];for(var a in s)e[a]=s[a]}},zt=Ve.internals.addRef=function(e,t){return new no(function(n){return new Gt(t.getDisposable(),e.subscribe(n))})};T.prototype.compareTo=function(e){var t=this.value.compareTo(e.value);return 0===t&&(t=this.id-e.id),t};var Kt=Ve.internals.PriorityQueue=function(e){this.items=new Array(e),this.length=0},Ht=Kt.prototype;Ht.isHigherPriority=function(e,t){return this.items[e].compareTo(this.items[t])<0},Ht.percolate=function(e){if(!(e>=this.length||0>e)){var t=e-1>>1;if(!(0>t||t===e)&&this.isHigherPriority(e,t)){var n=this.items[e];this.items[e]=this.items[t],this.items[t]=n,this.percolate(t)}}},Ht.heapify=function(e){if(+e||(e=0),!(e>=this.length||0>e)){var t=2*e+1,n=2*e+2,r=e;if(t<this.length&&this.isHigherPriority(t,r)&&(r=t),n<this.length&&this.isHigherPriority(n,r)&&(r=n),r!==e){var o=this.items[e];this.items[e]=this.items[r],this.items[r]=o,this.heapify(r)}}},Ht.peek=function(){return this.items[0].value},Ht.removeAt=function(e){this.items[e]=this.items[--this.length],this.items[this.length]=s,this.heapify()},Ht.dequeue=function(){var e=this.peek();return this.removeAt(0),e},Ht.enqueue=function(e){var t=this.length++;this.items[t]=new T(Kt.count++,e),this.percolate(t)},Ht.remove=function(e){for(var t=0;t<this.length;t++)if(this.items[t].value===e)return this.removeAt(t),!0;return!1},Kt.count=0;var Gt=Ve.CompositeDisposable=function(){var e,t,n=[];if(Array.isArray(arguments[0]))n=arguments[0],t=n.length;else for(t=arguments.length,n=new Array(t),e=0;t>e;e++)n[e]=arguments[e];for(e=0;t>e;e++)if(!Jt(n[e]))throw new TypeError("Not a disposable");this.disposables=n,this.isDisposed=!1,this.length=n.length},Yt=Gt.prototype;Yt.add=function(e){this.isDisposed?e.dispose():(this.disposables.push(e),this.length++)},Yt.remove=function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),this.length--,e.dispose())}return t},Yt.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;e>n;n++)t[n]=this.disposables[n];for(this.disposables=[],this.length=0,n=0;e>n;n++)t[n].dispose()}};var Qt=Ve.Disposable=function(e){this.isDisposed=!1,this.action=e||Be};Qt.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};var Xt=Qt.create=function(e){return new Qt(e)},$t=Qt.empty={dispose:Be},Jt=Qt.isDisposable=function(e){return e&&Qe(e.dispose)},Zt=Qt.checkDisposed=function(e){if(e.isDisposed)throw new ot},en=Ve.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null};en.prototype.getDisposable=function(){return this.current},en.prototype.setDisposable=function(e){if(this.current)throw new Error("Disposable has already been assigned");var t=this.isDisposed;!t&&(this.current=e),t&&e&&e.dispose()},en.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var tn=Ve.SerialDisposable=function(){this.isDisposed=!1,this.current=null};tn.prototype.getDisposable=function(){return this.current},tn.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e}n&&n.dispose(),t&&e&&e.dispose()},tn.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var nn=Ve.RefCountDisposable=function(){function e(e){this.disposable=e,this.disposable.count++,this.isInnerDisposed=!1}function t(e){this.underlyingDisposable=e,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}return e.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))},t.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))},t.prototype.getDisposable=function(){return this.isDisposed?$t:new e(this)},t}();x.prototype.dispose=function(){this.scheduler.scheduleWithState(this,C)};var rn=Ve.internals.ScheduledItem=function(e,t,n,r,o){this.scheduler=e,this.state=t,this.action=n,this.dueTime=r,this.comparer=o||He,this.disposable=new en};rn.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},rn.prototype.compareTo=function(e){return this.comparer(this.dueTime,e.dueTime)},rn.prototype.isCancelled=function(){return this.disposable.isDisposed},rn.prototype.invokeCore=function(){return this.action(this.scheduler,this.state)};var on=Ve.Scheduler=function(){function e(e,t,n,r){this.now=e,this._schedule=t,this._scheduleRelative=n,this._scheduleAbsolute=r}function t(e,t){return t(),$t}e.isScheduler=function(t){return t instanceof e};var n=e.prototype;return n.schedule=function(e){return this._schedule(e,t)},n.scheduleWithState=function(e,t){return this._schedule(e,t)},n.scheduleWithRelative=function(e,n){return this._scheduleRelative(n,e,t)},n.scheduleWithRelativeAndState=function(e,t,n){return this._scheduleRelative(e,t,n)},n.scheduleWithAbsolute=function(e,n){return this._scheduleAbsolute(n,e,t)},n.scheduleWithAbsoluteAndState=function(e,t,n){return this._scheduleAbsolute(e,t,n)},e.now=ze,e.normalize=function(e){return 0>e&&(e=0),e},e}(),sn=on.normalize,an=on.isScheduler;!function(e){function t(e,t){function n(t){function r(e,t){return s?i.remove(u):a=!0,o(t,n),$t}var s=!1,a=!1,u=e.scheduleWithState(t,r);a||(i.add(u),s=!0)}var r=t[0],o=t[1],i=new Gt;return o(r,n),i}function n(e,t,n){function r(t,o){function a(e,t){return u?s.remove(l):c=!0,i(t,r),$t}var u=!1,c=!1,l=e[n](t,o,a);c||(s.add(l),u=!0)}var o=t[0],i=t[1],s=new Gt;return i(o,r),s}function r(e,t){return n(e,t,"scheduleWithRelativeAndState")}function o(e,t){return n(e,t,"scheduleWithAbsoluteAndState")}function i(e,t){e(function(n){t(e,n)})}e.scheduleRecursive=function(e){return this.scheduleRecursiveWithState(e,i)},e.scheduleRecursiveWithState=function(e,n){return this.scheduleWithState([e,n],t)},e.scheduleRecursiveWithRelative=function(e,t){return this.scheduleRecursiveWithRelativeAndState(t,e,i)},e.scheduleRecursiveWithRelativeAndState=function(e,t,n){return this._scheduleRelative([e,n],t,r)},e.scheduleRecursiveWithAbsolute=function(e,t){return this.scheduleRecursiveWithAbsoluteAndState(t,e,i)},e.scheduleRecursiveWithAbsoluteAndState=function(e,t,n){return this._scheduleAbsolute([e,n],t,o)}}(on.prototype),function(e){on.prototype.schedulePeriodic=function(e,t){return this.schedulePeriodicWithState(null,e,t)},on.prototype.schedulePeriodicWithState=function(e,t,n){if("undefined"==typeof We.setInterval)throw new st;t=sn(t);var r=e,o=We.setInterval(function(){r=n(r)},t);return Xt(function(){We.clearInterval(o)})}}(on.prototype),function(e){e.catchError=e["catch"]=function(e){return new yn(this,e)}}(on.prototype);var un,cn,ln=Ve.internals.SchedulePeriodicRecursive=function(){function e(e,t){t(0,this._period);try{this._state=this._action(this._state)}catch(n){throw this._cancel.dispose(),n}}function t(e,t,n,r){this._scheduler=e,this._state=t,this._period=n,this._action=r}return t.prototype.start=function(){var t=new en;return this._cancel=t,t.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0,this._period,e.bind(this))),t},t}(),pn=on.immediate=function(){function e(e,t){return t(this,e)}return new on(ze,e,ct,ct)}(),hn=on.currentThread=function(){function e(){for(;n.length>0;){var e=n.shift();!e.isCancelled()&&e.invoke()}}function t(t,r){var o=new rn(this,t,r,this.now());if(n)n.push(o);else{n=[o];var i=$e(e)();if(n=null,i===Xe)return c(i.e)}return o.disposable}var n,r=new on(ze,t,ct,ct);return r.scheduleRequired=function(){return!n},r}(),dn=function(){var e,t=Be;if(We.setTimeout)e=We.setTimeout,t=We.clearTimeout;else{if(!We.WScript)throw new st;e=function(e,t){We.WScript.Sleep(t),e()}}return{setTimeout:e,clearTimeout:t}}(),fn=dn.setTimeout,mn=dn.clearTimeout;!function(){function e(t){if(s)fn(function(){e(t)},0);else{var n=o[t];if(n){s=!0;var r=$e(n)();if(cn(t),s=!1,r===Xe)return c(r.e)}}}function t(){if(!We.postMessage||We.importScripts)return!1;var e=!1,t=We.onmessage;return We.onmessage=function(){e=!0},We.postMessage("","*"),We.onmessage=t,e}function n(t){"string"==typeof t.data&&t.data.substring(0,l.length)===l&&e(t.data.substring(l.length))}var r=1,o={},s=!1;cn=function(e){delete o[e]};var a=RegExp("^"+String(Ot).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),u="function"==typeof(u=Ue&&Fe&&Ue.setImmediate)&&!a.test(u)&&u;if(Qe(u))un=function(t){var n=r++;return o[n]=t,u(function(){e(n)}),n};else if("undefined"!=typeof i&&"[object process]"==={}.toString.call(i))un=function(t){var n=r++;return o[n]=t,i.nextTick(function(){e(n)}),n};else if(t()){var l="ms.rx.schedule"+Math.random();We.addEventListener?We.addEventListener("message",n,!1):We.attachEvent?We.attachEvent("onmessage",n):We.onmessage=n,un=function(e){var t=r++;return o[t]=e,We.postMessage(l+currentId,"*"),t}}else if(We.MessageChannel){var p=new We.MessageChannel;p.port1.onmessage=function(t){e(t.data)},un=function(e){var t=r++;return o[t]=e,p.port2.postMessage(t),t}}else un="document"in We&&"onreadystatechange"in We.document.createElement("script")?function(t){var n=We.document.createElement("script"),i=r++;return o[i]=t,n.onreadystatechange=function(){e(i),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},We.document.documentElement.appendChild(n),i}:function(t){var n=r++;return o[n]=t,fn(function(){e(n)},0),n}}();var vn=on.timeout=on["default"]=function(){function e(e,t){var n=this,r=new en,o=un(function(){!r.isDisposed&&r.setDisposable(t(n,e))});return new Gt(r,Xt(function(){cn(o)}))}function t(e,t,n){var r=this,o=on.normalize(t),i=new en;if(0===o)return r.scheduleWithState(e,n);var s=fn(function(){!i.isDisposed&&i.setDisposable(n(r,e))},o);return new Gt(i,Xt(function(){mn(s)}))}function n(e,t,n){return this.scheduleWithRelativeAndState(e,t-this.now(),n)}return new on(ze,e,t,n)}(),yn=function(e){function t(e,t){return this._scheduler.scheduleWithState(e,this._wrap(t))}function n(e,t,n){return this._scheduler.scheduleWithRelativeAndState(e,t,this._wrap(n))}function r(e,t,n){return this._scheduler.scheduleWithAbsoluteAndState(e,t,this._wrap(n))}function o(o,i){this._scheduler=o,this._handler=i,this._recursiveOriginal=null,this._recursiveWrapper=null,e.call(this,this._scheduler.now.bind(this._scheduler),t,n,r)}return Bt(o,e),o.prototype._clone=function(e){return new o(e,this._handler)},o.prototype._wrap=function(e){var t=this;return function(n,r){try{return e(t._getRecursiveWrapper(n),r)}catch(o){if(!t._handler(o))throw o;return $t}}},o.prototype._getRecursiveWrapper=function(e){if(this._recursiveOriginal!==e){this._recursiveOriginal=e;var t=this._clone(e);t._recursiveOriginal=e,t._recursiveWrapper=t,this._recursiveWrapper=t}return this._recursiveWrapper},o.prototype.schedulePeriodicWithState=function(e,t,n){var r=this,o=!1,i=new en;return i.setDisposable(this._scheduler.schedulePeriodicWithState(e,t,function(e){if(o)return null;try{return n(e)}catch(t){if(o=!0,!r._handler(t))throw t;return i.dispose(),null}})),i},o}(on),gn=Ve.Notification=function(){function e(e,t,n,r,o,i){this.kind=e,this.value=t,this.exception=n,this._accept=r,this._acceptObservable=o,this.toString=i}return e.prototype.accept=function(e,t,n){return e&&"object"==typeof e?this._acceptObservable(e):this._accept(e,t,n)},e.prototype.toObservable=function(e){var t=this;return an(e)||(e=pn),new no(function(n){return e.scheduleWithState(t,function(e,t){t._acceptObservable(n),"N"===t.kind&&n.onCompleted()})})},e}(),bn=gn.createOnNext=function(){function e(e){return e(this.value)}function t(e){return e.onNext(this.value)}function n(){return"OnNext("+this.value+")"}return function(r){return new gn("N",r,null,e,t,n)}}(),wn=gn.createOnError=function(){function e(e,t){return t(this.exception)}function t(e){return e.onError(this.exception)}function n(){return"OnError("+this.exception+")"}return function(r){return new gn("E",null,r,e,t,n)}}(),En=gn.createOnCompleted=function(){function e(e,t,n){return n()}function t(e){return e.onCompleted()}function n(){return"OnCompleted()"}return function(){return new gn("C",null,null,e,t,n)}}(),Tn=Ve.Observer=function(){};Tn.prototype.toNotifier=function(){var e=this;return function(t){return t.accept(e)}},Tn.prototype.asObserver=function(){var e=this;return new Sn(function(t){e.onNext(t)},function(t){e.onError(t)},function(){e.onCompleted()})},Tn.prototype.checked=function(){return new Nn(this)};var xn=Tn.create=function(e,t,n){return e||(e=Be),t||(t=Ge),n||(n=Be),new Sn(e,t,n)};Tn.fromNotifier=function(e,t){var n=mt(e,t,1);return new Sn(function(e){return n(bn(e))},function(e){return n(wn(e))},function(){return n(En())})},Tn.prototype.notifyOn=function(e){return new Dn(e,this)},Tn.prototype.makeSafe=function(e){return new AnonymousSafeObserver(this._onNext,this._onError,this._onCompleted,e)};var Cn,_n=Ve.internals.AbstractObserver=function(e){function t(){this.isStopped=!1}return Bt(t,e),t.prototype.next=ut,t.prototype.error=ut,t.prototype.completed=ut,t.prototype.onNext=function(e){!this.isStopped&&this.next(e)},t.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.error(e))},t.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())},t.prototype.dispose=function(){this.isStopped=!0},t.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.error(e),!0)},t}(Tn),Sn=Ve.AnonymousObserver=function(e){function t(t,n,r){e.call(this),this._onNext=t,this._onError=n,this._onCompleted=r}return Bt(t,e),t.prototype.next=function(e){this._onNext(e)},t.prototype.error=function(e){this._onError(e)},t.prototype.completed=function(){this._onCompleted()},t}(_n),Nn=function(e){function t(t){e.call(this),this._observer=t,this._state=0}Bt(t,e);var n=t.prototype;return n.onNext=function(e){this.checkAccess();var t=$e(this._observer.onNext).call(this._observer,e);this._state=0,t===Xe&&c(t.e)},n.onError=function(e){this.checkAccess();var t=$e(this._observer.onError).call(this._observer,e);this._state=2,t===Xe&&c(t.e)},n.onCompleted=function(){this.checkAccess();var e=$e(this._observer.onCompleted).call(this._observer);this._state=2,e===Xe&&c(e.e)},n.checkAccess=function(){if(1===this._state)throw new Error("Re-entrancy detected");if(2===this._state)throw new Error("Observer completed");0===this._state&&(this._state=1)},t}(Tn),On=Ve.internals.ScheduledObserver=function(e){function t(t,n){e.call(this),this.scheduler=t,this.observer=n,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=new tn}return Bt(t,e),t.prototype.next=function(e){var t=this;this.queue.push(function(){t.observer.onNext(e)})},t.prototype.error=function(e){var t=this;this.queue.push(function(){t.observer.onError(e)})},t.prototype.completed=function(){var e=this;this.queue.push(function(){e.observer.onCompleted()})},t.prototype.ensureActive=function(){var e=!1;!this.hasFaulted&&this.queue.length>0&&(e=!this.isAcquired,this.isAcquired=!0),e&&this.disposable.setDisposable(this.scheduler.scheduleRecursiveWithState(this,function(e,t){var n;if(!(e.queue.length>0))return void(e.isAcquired=!1);n=e.queue.shift();var r=$e(n)();return r===Xe?(e.queue=[],e.hasFaulted=!0,c(r.e)):void t(e)}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.disposable.dispose()},t}(_n),Dn=function(e){function t(t,n,r){e.call(this,t,n),this._cancel=r}return Bt(t,e),t.prototype.next=function(t){e.prototype.next.call(this,t),this.ensureActive()},t.prototype.error=function(t){e.prototype.error.call(this,t),this.ensureActive()},t.prototype.completed=function(){e.prototype.completed.call(this),this.ensureActive()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._cancel&&this._cancel.dispose(),this._cancel=null},t}(On),Pn=Ve.Observable=function(){function e(e,t){return function(n){var r=n.onError;return n.onError=function(t){l(t,e),r.call(n,t)},t.call(e,n)}}function t(t){if(Ve.config.longStackSupport&&Je){var n=$e(c)(new Error).e;this.stack=n.stack.substring(n.stack.indexOf("\n")+1),this._subscribe=e(this,t)}else this._subscribe=t}return Cn=t.prototype,t.isObservable=function(e){return e&&Qe(e.subscribe)},Cn.subscribe=Cn.forEach=function(e,t,n){return this._subscribe("object"==typeof e?e:xn(e,t,n))},Cn.subscribeOnNext=function(e,t){return this._subscribe(xn("undefined"!=typeof t?function(n){e.call(t,n)}:e))},Cn.subscribeOnError=function(e,t){return this._subscribe(xn(null,"undefined"!=typeof t?function(n){e.call(t,n)}:e))},Cn.subscribeOnCompleted=function(e,t){return this._subscribe(xn(null,null,"undefined"!=typeof t?function(){e.call(t)}:e))},t}(),kn=Ve.ObservableBase=function(e){function t(e){return e&&Qe(e.dispose)?e:Qe(e)?Xt(e):$t}function n(e,n){var r=n[0],o=n[1],i=$e(o.subscribeCore).call(o,r);return i!==Xe||r.fail(Xe.e)?void r.setDisposable(t(i)):c(Xe.e)}function r(e){var t=new ro(e),r=[t,this];return hn.scheduleRequired()?hn.scheduleWithState(r,n):n(null,r),t}function o(){e.call(this,r)}return Bt(o,e),o.prototype.subscribeCore=ut,o}(Pn),Mn=function(e){function t(t,n,r,o){this.resultSelector=Ve.helpers.isFunction(r)?r:null,this.selector=Ve.internals.bindCallback(Ve.helpers.isFunction(n)?n:function(){return n},o,3),this.source=t,e.call(this)}function n(e,t,n,r){this.i=0,this.selector=t,this.resultSelector=n,this.source=r,this.isStopped=!1,this.o=e}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this.selector,this.resultSelector,this))},n.prototype._wrapResult=function(e,t,n){return this.resultSelector?e.map(function(e,r){return this.resultSelector(t,e,n,r)},this):e},n.prototype.onNext=function(e){if(!this.isStopped){var t=this.i++,n=$e(this.selector)(e,t,this.source);if(n===Xe)return this.o.onError(n.e);Ve.helpers.isPromise(n)&&(n=Ve.Observable.fromPromise(n)),(Ve.helpers.isArrayLike(n)||Ve.helpers.isIterable(n))&&(n=Ve.Observable.from(n)),this.o.onNext(this._wrapResult(n,e,t))}},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},t}(kn),An=Ve.internals.Enumerable=function(){},Rn=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t,n){this.o=e,this.s=t,this.e=n,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){var t,r=new tn,o=pn.scheduleRecursiveWithState(this.sources[lt](),function(o,i){if(!t){var s=$e(o.next).call(o);if(s===Xe)return e.onError(s.e);if(s.done)return e.onCompleted();var a=s.value;Ye(a)&&(a=Vn(a));var u=new en;r.setDisposable(u),u.setDisposable(a.subscribe(new n(e,i,o)))}});return new Gt(r,o,Xt(function(){t=!0}))},n.prototype.onNext=function(e){this.isStopped||this.o.onNext(e)},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.s(this.e))},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(kn);An.prototype.concat=function(){return new Rn(this)};var In=function(e){function t(t){this.sources=t,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t,n=this.sources[lt](),r=new tn,o=pn.scheduleRecursiveWithState(null,function(o,i){if(!t){var s=$e(n.next).call(n);if(s===Xe)return e.onError(s.e);if(s.done)return null!==o?e.onError(o):e.onCompleted();var a=s.value;Ye(a)&&(a=Vn(a));var u=new en;r.setDisposable(u),u.setDisposable(a.subscribe(function(t){e.onNext(t)},i,function(){e.onCompleted()}))}});return new Gt(r,o,Xt(function(){t=!0}))},t}(kn);An.prototype.catchError=function(){return new In(this)},An.prototype.catchErrorWhen=function(e){var t=this;return new no(function(n){var r,o,i=new io,s=new io,a=e(i),u=a.subscribe(s),c=t[lt](),l=new tn,p=pn.scheduleRecursive(function(e){if(!r){var t=$e(c.next).call(c);if(t===Xe)return n.onError(t.e);if(t.done)return void(o?n.onError(o):n.onCompleted());var a=t.value;Ye(a)&&(a=Vn(a));var u=new en,p=new en;l.setDisposable(new Gt(p,u)),u.setDisposable(a.subscribe(function(e){n.onNext(e)},function(t){p.setDisposable(s.subscribe(e,function(e){n.onError(e)},function(){n.onCompleted()})),i.onNext(t)},function(){n.onCompleted()}))}});return new Gt(u,l,p,Xt(function(){r=!0}))})};var jn=function(e){function t(e,t){this.v=e,this.c=null==t?-1:t}function n(e){this.v=e.v,this.l=e.c}return Bt(t,e),t.prototype[lt]=function(){return new n(this)},n.prototype.next=function(){return 0===this.l?pt:(this.l>0&&this.l--,{done:!1,value:this.v})},t}(An),Ln=An.repeat=function(e,t){return new jn(e,t)},Fn=function(e){function t(e,t,n){this.s=e,this.fn=t?mt(t,n,3):null}function n(e){this.i=-1,this.s=e.s,this.l=this.s.length,this.fn=e.fn}return Bt(t,e),t.prototype[lt]=function(){return new n(this)},n.prototype.next=function(){return++this.i<this.l?{done:!1,value:this.fn?this.fn(this.s[this.i],this.i,this.s):this.s[this.i]}:pt},t}(An),Un=An.of=function(e,t,n){return new Fn(e,t,n)};Cn.observeOn=function(e){var t=this;return new no(function(n){return t.subscribe(new Dn(e,n))},t)},Cn.subscribeOn=function(e){var t=this;return new no(function(n){var r=new en,o=new tn;return o.setDisposable(r),
+r.setDisposable(e.schedule(function(){o.setDisposable(new x(e,t.subscribe(n)))})),o},t)};var Wn=function(e){function t(t){this.p=t,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.p.then(function(t){e.onNext(t),e.onCompleted()},function(t){e.onError(t)}),$t},t}(kn),Vn=Pn.fromPromise=function(e){return new Wn(e)};Cn.toPromise=function(e){if(e||(e=Ve.config.Promise),!e)throw new st("Promise type not provided nor in Rx.config.Promise");var t=this;return new e(function(e,n){var r,o=!1;t.subscribe(function(e){r=e,o=!0},n,function(){o&&e(r)})})};var Bn=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.a=[],this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},n.prototype.onNext=function(e){this.isStopped||this.a.push(e)},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onNext(this.a),this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(kn);Cn.toArray=function(){return new Bn(this)},Pn.create=function(e,t){return new no(e,t)};var qn=Pn.defer=function(e){return new no(function(t){var n;try{n=e()}catch(r){return ur(r).subscribe(t)}return Ye(n)&&(n=Vn(n)),n.subscribe(t)})},zn=function(e){function t(t){this.scheduler=t,e.call(this)}function n(e,t){this.observer=e,this.scheduler=t}function r(e,t){return t.onCompleted(),$t}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this.scheduler);return t.run()},n.prototype.run=function(){return this.scheduler.scheduleWithState(this.observer,r)},t}(kn),Kn=new zn(pn),Hn=Pn.empty=function(e){return an(e)||(e=pn),e===pn?Kn:new zn(e)},Gn=function(e){function t(t,n,r){this.iterable=t,this.mapper=n,this.scheduler=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new Yn(e,this);return t.run()},t}(kn),Yn=function(){function e(e,t){this.o=e,this.parent=t}return e.prototype.run=function(){function e(e,t){var i=$e(n.next).call(n);if(i===Xe)return r.onError(i.e);if(i.done)return r.onCompleted();var s=i.value;return Qe(o)&&(s=$e(o)(s,e),s===Xe)?r.onError(s.e):(r.onNext(s),void t(e+1))}var t=Object(this.parent.iterable),n=P(t),r=this.o,o=this.parent.mapper;return this.parent.scheduler.scheduleRecursiveWithState(0,e)},e}(),Qn=Math.pow(2,53)-1;_.prototype[lt]=function(){return new S(this._s)},S.prototype[lt]=function(){return this},S.prototype.next=function(){return this._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:pt},N.prototype[lt]=function(){return new O(this._a)},O.prototype[lt]=function(){return this},O.prototype.next=function(){return this._i<this._l?{done:!1,value:this._a[this._i++]}:pt};var Xn=Pn.from=function(e,t,n,r){if(null==e)throw new Error("iterable cannot be null.");if(t&&!Qe(t))throw new Error("mapFn when provided must be a function");if(t)var o=mt(t,n,2);return an(r)||(r=hn),new Gn(e,o,r)},$n=function(e){function t(t,n){this.args=t,this.scheduler=n,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new A(e,this);return t.run()},t}(kn);A.prototype.run=function(){function e(e,o){r>e?(t.onNext(n[e]),o(e+1)):t.onCompleted()}var t=this.observer,n=this.parent.args,r=n.length;return this.parent.scheduler.scheduleRecursiveWithState(0,e)};var Jn=Pn.fromArray=function(e,t){return an(t)||(t=hn),new $n(e,t)};Pn.generate=function(e,t,n,r,o){return an(o)||(o=hn),new no(function(i){var s=!0;return o.scheduleRecursiveWithState(e,function(e,o){var a,u;try{s?s=!1:e=n(e),a=t(e),a&&(u=r(e))}catch(c){return i.onError(c)}a?(i.onNext(u),o(e)):i.onCompleted()})})},Pn.of=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return new $n(t,hn)},Pn.ofWithScheduler=function(e){for(var t=arguments.length,n=new Array(t-1),r=1;t>r;r++)n[r-1]=arguments[r];return new $n(n,e)},Pn.ofArrayChanges=function(e){if(!Array.isArray(e))throw new TypeError("Array.observe only accepts arrays.");if("function"!=typeof Array.observe&&"function"!=typeof Array.unobserve)throw new TypeError("Array.observe is not supported on your platform");return new no(function(t){function n(e){for(var n=0,r=e.length;r>n;n++)t.onNext(e[n])}return Array.observe(e,n),function(){Array.unobserve(e,n)}})},Pn.ofObjectChanges=function(e){if(null==e)throw new TypeError("object must not be null or undefined.");if("function"!=typeof Object.observe&&"function"!=typeof Object.unobserve)throw new TypeError("Object.observe is not supported on your platform");return new no(function(t){function n(e){for(var n=0,r=e.length;r>n;n++)t.onNext(e[n])}return Object.observe(e,n),function(){Object.unobserve(e,n)}})};var Zn=function(e){function t(){e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return $t},t}(kn),er=new Zn,tr=Pn.never=function(){return er},nr=function(e){function t(t,n){this.obj=t,this.keys=Object.keys(t),this.scheduler=n,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new I(e,this);return t.run()},t}(kn);I.prototype.run=function(){function e(e,i){if(o>e){var s=r[e];t.onNext([s,n[s]]),i(e+1)}else t.onCompleted()}var t=this.observer,n=this.parent.obj,r=this.parent.keys,o=r.length;return this.parent.scheduler.scheduleRecursiveWithState(0,e)},Pn.pairs=function(e,t){return t||(t=hn),new nr(e,t)};var rr=function(e){function t(t,n,r){this.start=t,this.rangeCount=n,this.scheduler=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new or(e,this);return t.run()},t}(kn),or=function(){function e(e,t){this.observer=e,this.parent=t}return e.prototype.run=function(){function e(e,o){n>e?(r.onNext(t+e),o(e+1)):r.onCompleted()}var t=this.parent.start,n=this.parent.rangeCount,r=this.observer;return this.parent.scheduler.scheduleRecursiveWithState(0,e)},e}();Pn.range=function(e,t,n){return an(n)||(n=hn),new rr(e,t,n)};var ir=function(e){function t(t,n,r){this.value=t,this.repeatCount=null==n?-1:n,this.scheduler=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new j(e,this);return t.run()},t}(kn);j.prototype.run=function(){function e(e,r){return(-1===e||e>0)&&(t.onNext(n),e>0&&e--),0===e?t.onCompleted():void r(e)}var t=this.observer,n=this.parent.value;return this.parent.scheduler.scheduleRecursiveWithState(this.parent.repeatCount,e)},Pn.repeat=function(e,t,n){return an(n)||(n=hn),new ir(e,t,n)};var sr=function(e){function t(t,n){this.value=t,this.scheduler=n,e.call(this)}function n(e,t,n){this.observer=e,this.value=t,this.scheduler=n}function r(e,t){var n=t[0],r=t[1];return r.onNext(n),r.onCompleted(),$t}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this.value,this.scheduler);return t.run()},n.prototype.run=function(){var e=[this.value,this.observer];return this.scheduler===pn?r(null,e):this.scheduler.scheduleWithState(e,r)},t}(kn),ar=(Pn["return"]=Pn.just=function(e,t){return an(t)||(t=pn),new sr(e,t)},function(e){function t(t,n){this.error=t,this.scheduler=n,e.call(this)}function n(e,t){this.o=e,this.p=t}function r(e,t){var n=t[0],r=t[1];r.onError(n)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this);return t.run()},n.prototype.run=function(){return this.p.scheduler.scheduleWithState([this.p.error,this.o],r)},t}(kn)),ur=Pn["throw"]=function(e,t){return an(t)||(t=pn),new ar(e,t)};Pn.using=function(e,t){return new no(function(n){var r=$t,o=$e(e)();if(o===Xe)return new Gt(ur(o.e).subscribe(n),r);o&&(r=o);var i=$e(t)(o);return i===Xe?new Gt(ur(i.e).subscribe(n),r):new Gt(i.subscribe(n),r)})},Cn.amb=function(e){var t=this;return new no(function(n){function r(){i||(i=s,c.dispose())}function o(){i||(i=a,u.dispose())}var i,s="L",a="R",u=new en,c=new en;Ye(e)&&(e=Vn(e));var l=xn(function(e){r(),i===s&&n.onNext(e)},function(e){r(),i===s&&n.onError(e)},function(){r(),i===s&&n.onCompleted()}),p=xn(function(e){o(),i===a&&n.onNext(e)},function(e){o(),i===a&&n.onError(e)},function(){o(),i===a&&n.onCompleted()});return u.setDisposable(t.subscribe(l)),c.setDisposable(e.subscribe(p)),new Gt(u,c)})},Pn.amb=function(){var e,t=tr();if(Array.isArray(arguments[0]))e=arguments[0];else{var n=arguments.length;e=new Array(e);for(var r=0;n>r;r++)e[r]=arguments[r]}for(var r=0,n=e.length;n>r;r++)t=L(t,e[r]);return t};var cr=function(e){function t(t,n,r){this._o=t,this._s=n,this._fn=r,e.call(this)}return Bt(t,e),t.prototype.next=function(e){this._o.onNext(e)},t.prototype.completed=function(){return this._o.onCompleted()},t.prototype.error=function(e){var t=$e(this._fn)(e);if(t===Xe)return this._o.onError(t.e);Ye(t)&&(t=Vn(t));var n=new en;this._s.setDisposable(n),n.setDisposable(t.subscribe(this._o))},t}(_n);Cn["catch"]=function(e){return Qe(e)?F(this,e):lr([this,e])};var lr=Pn["catch"]=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{var t=arguments.length;e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return Un(e).catchError()};Cn.combineLatest=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return Array.isArray(t[0])?t[0].unshift(this):t.unshift(this),pr.apply(this,t)};var pr=Pn.combineLatest=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=Qe(t[e-1])?t.pop():W;return Array.isArray(t[0])&&(t=t[0]),new no(function(e){function n(t){if(s[t]=!0,a||(a=s.every(qe))){try{var n=r.apply(null,c)}catch(o){return e.onError(o)}e.onNext(n)}else u.filter(function(e,n){return n!==t}).every(qe)&&e.onCompleted()}function o(t){u[t]=!0,u.every(qe)&&e.onCompleted()}for(var i=t.length,s=E(i,U),a=!1,u=E(i,U),c=new Array(i),l=new Array(i),p=0;i>p;p++)!function(r){var i=t[r],s=new en;Ye(i)&&(i=Vn(i)),s.setDisposable(i.subscribe(function(e){c[r]=e,n(r)},function(t){e.onError(t)},function(){o(r)})),l[r]=s}(p);return new Gt(l)},this)};Cn.concat=function(){for(var e=[],t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return e.unshift(this),dr.apply(null,e)};var hr=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t){this.sources=e,this.o=t}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new n(this.sources,e);return t.run()},n.prototype.run=function(){var e,t=new tn,n=this.sources,r=n.length,o=this.o,i=pn.scheduleRecursiveWithState(0,function(i,s){if(!e){if(i===r)return o.onCompleted();var a=n[i];Ye(a)&&(a=Vn(a));var u=new en;t.setDisposable(u),u.setDisposable(a.subscribe(function(e){o.onNext(e)},function(e){o.onError(e)},function(){s(i+1)}))}});return new Gt(t,i,Xt(function(){e=!0}))},t}(kn),dr=Pn.concat=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{e=new Array(arguments.length);for(var t=0,n=arguments.length;n>t;t++)e[t]=arguments[t]}return new hr(e)};Cn.concatAll=function(){return this.merge(1)};var fr=function(e){function t(t,n){this.source=t,this.maxConcurrent=n,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new Gt;return t.add(this.source.subscribe(new mr(e,this.maxConcurrent,t))),t},t}(kn),mr=function(){function e(e,t,n){this.o=e,this.max=t,this.g=n,this.done=!1,this.q=[],this.activeCount=0,this.isStopped=!1}function t(e,t){this.parent=e,this.sad=t,this.isStopped=!1}return e.prototype.handleSubscribe=function(e){var n=new en;this.g.add(n),Ye(e)&&(e=Vn(e)),n.setDisposable(e.subscribe(new t(this,n)))},e.prototype.onNext=function(e){this.isStopped||(this.activeCount<this.max?(this.activeCount++,this.handleSubscribe(e)):this.q.push(e))},e.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},e.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.done=!0,0===this.activeCount&&this.o.onCompleted())},e.prototype.dispose=function(){this.isStopped=!0},e.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t.prototype.onNext=function(e){this.isStopped||this.parent.o.onNext(e)},t.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.o.onError(e))},t.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var e=this.parent;e.g.remove(this.sad),e.q.length>0?e.handleSubscribe(e.q.shift()):(e.activeCount--,e.done&&0===e.activeCount&&e.o.onCompleted())}},t.prototype.dispose=function(){this.isStopped=!0},t.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(e),!0)},e}();Cn.merge=function(e){return"number"!=typeof e?vr(this,e):new fr(this,e)};var vr=Pn.merge=function(){var e,t,n=[],r=arguments.length;if(arguments[0])if(an(arguments[0]))for(e=arguments[0],t=1;r>t;t++)n.push(arguments[t]);else for(e=pn,t=0;r>t;t++)n.push(arguments[t]);else for(e=pn,t=1;r>t;t++)n.push(arguments[t]);return Array.isArray(n[0])&&(n=n[0]),R(e,n).mergeAll()},yr=function(e){function t(t){this.source=t,e.call(this)}function n(e,t){this.o=e,this.g=t,this.isStopped=!1,this.done=!1}function r(e,t){this.parent=e,this.sad=t,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new Gt,r=new en;return t.add(r),r.setDisposable(this.source.subscribe(new n(e,t))),t},n.prototype.onNext=function(e){if(!this.isStopped){var t=new en;this.g.add(t),Ye(e)&&(e=Vn(e)),t.setDisposable(e.subscribe(new r(this,t)))}},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.done=!0,1===this.g.length&&this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},r.prototype.onNext=function(e){this.isStopped||this.parent.o.onNext(e)},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.o.onError(e))},r.prototype.onCompleted=function(){if(!this.isStopped){var e=this.parent;this.isStopped=!0,e.g.remove(this.sad),e.done&&1===e.g.length&&e.o.onCompleted()}},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(e),!0)},t}(kn);Cn.mergeAll=function(){return new yr(this)};var gr=Ve.CompositeError=function(e){this.name="NotImplementedError",this.innerErrors=e,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)};gr.prototype=Error.prototype,Pn.mergeDelayError=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{var t=arguments.length;e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}var r=R(null,e);return new no(function(e){function t(){0===s.length?e.onCompleted():1===s.length?e.onError(s[0]):e.onError(new gr(s))}var n=new Gt,o=new en,i=!1,s=[];return n.add(o),o.setDisposable(r.subscribe(function(r){var o=new en;n.add(o),Ye(r)&&(r=Vn(r)),o.setDisposable(r.subscribe(function(t){e.onNext(t)},function(e){s.push(e),n.remove(o),i&&1===n.length&&t()},function(){n.remove(o),i&&1===n.length&&t()}))},function(e){s.push(e),i=!0,1===n.length&&t()},function(){i=!0,1===n.length&&t()})),n})},Cn.onErrorResumeNext=function(e){if(!e)throw new Error("Second observable is required");return br([this,e])};var br=Pn.onErrorResumeNext=function(){var e=[];if(Array.isArray(arguments[0]))e=arguments[0];else for(var t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return new no(function(t){var n=0,r=new tn,o=pn.scheduleRecursive(function(o){var i,s;n<e.length?(i=e[n++],Ye(i)&&(i=Vn(i)),s=new en,r.setDisposable(s),s.setDisposable(i.subscribe(t.onNext.bind(t),o,o))):t.onCompleted()});return new Gt(r,o)})};Cn.skipUntil=function(e){var t=this;return new no(function(n){var r=!1,o=new Gt(t.subscribe(function(e){r&&n.onNext(e)},function(e){n.onError(e)},function(){r&&n.onCompleted()}));Ye(e)&&(e=Vn(e));var i=new en;return o.add(i),i.setDisposable(e.subscribe(function(){r=!0,i.dispose()},function(e){n.onError(e)},function(){i.dispose()})),o},t)};var wr=function(e){function t(t){this.source=t,e.call(this)}function n(e,t){this.o=e,this.inner=t,this.stopped=!1,this.latest=0,this.hasLatest=!1,this.isStopped=!1}function r(e,t){this.parent=e,this.id=t,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new tn,r=this.source.subscribe(new n(e,t));return new Gt(r,t)},n.prototype.onNext=function(e){if(!this.isStopped){var t=new en,n=++this.latest;this.hasLatest=!0,this.inner.setDisposable(t),Ye(e)&&(e=Vn(e)),t.setDisposable(e.subscribe(new r(this,n)))}},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.stopped=!0,!this.hasLatest&&this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},r.prototype.onNext=function(e){this.isStopped||this.parent.latest===this.id&&this.parent.o.onNext(e)},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.latest===this.id&&this.parent.o.onError(e))},r.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.parent.latest===this.id&&(this.parent.hasLatest=!1,this.parent.isStopped&&this.parent.o.onCompleted()))},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(e),!0)},t}(kn);Cn["switch"]=Cn.switchLatest=function(){return new wr(this)};var Er=function(e){function t(t,n){this.source=t,this.other=Ye(n)?Vn(n):n,e.call(this)}function n(e){this.o=e,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return new Gt(this.source.subscribe(e),this.other.subscribe(new n(e)))},n.prototype.onNext=function(e){this.isStopped||this.o.onCompleted()},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){!this.isStopped&&(this.isStopped=!0)},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(kn);Cn.takeUntil=function(e){return new Er(this,e)},Cn.withLatestFrom=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t.pop(),o=this;return Array.isArray(t[0])&&(t=t[0]),new no(function(e){for(var n=t.length,i=E(n,U),s=!1,a=new Array(n),u=new Array(n+1),c=0;n>c;c++)!function(n){var r=t[n],o=new en;Ye(r)&&(r=Vn(r)),o.setDisposable(r.subscribe(function(e){a[n]=e,i[n]=!0,s=i.every(qe)},function(t){e.onError(t)},Be)),u[n]=o}(c);var l=new en;return l.setDisposable(o.subscribe(function(t){var n=[t].concat(a);if(s){var o=$e(r).apply(null,n);return o===Xe?e.onError(o.e):void e.onNext(o)}},function(t){e.onError(t)},function(){e.onCompleted()})),u[n]=l,new Gt(u)},this)},Cn.zip=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=Qe(t[e-1])?t.pop():W;Array.isArray(t[0])&&(t=t[0]);var o=this;return t.unshift(o),new no(function(e){for(var n=t.length,i=E(n,V),s=E(n,U),a=new Array(n),u=0;n>u;u++)!function(n){var u=t[n],c=new en;Ye(u)&&(u=Vn(u)),c.setDisposable(u.subscribe(function(t){if(i[n].push(t),i.every(function(e){return e.length>0})){var a=i.map(function(e){return e.shift()}),u=$e(r).apply(o,a);if(u===Xe)return e.onError(u.e);e.onNext(u)}else s.filter(function(e,t){return t!==n}).every(qe)&&e.onCompleted()},function(t){e.onError(t)},function(){s[n]=!0,s.every(qe)&&e.onCompleted()})),a[n]=c}(u);return new Gt(a)},o)},Pn.zip=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];Array.isArray(t[0])&&(t=Qe(t[1])?t[0].concat(t[1]):t[0]);var r=t.shift();return r.zip.apply(r,t)},Cn.zipIterable=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=Qe(t[e-1])?t.pop():W,o=this;return t.unshift(o),new no(function(e){for(var n=t.length,i=E(n,V),s=E(n,U),a=new Array(n),u=0;n>u;u++)!function(n){var u=t[n],c=new en;(dt(u)||ht(u))&&(u=Xn(u)),c.setDisposable(u.subscribe(function(t){if(i[n].push(t),i.every(function(e){return e.length>0})){var a=i.map(function(e){return e.shift()}),u=$e(r).apply(o,a);if(u===Xe)return e.onError(u.e);e.onNext(u)}else s.filter(function(e,t){return t!==n}).every(qe)&&e.onCompleted()},function(t){e.onError(t)},function(){s[n]=!0,s.every(qe)&&e.onCompleted()})),a[n]=c}(u);return new Gt(a)},o)},Cn.asObservable=function(){return new no(B(this),this)},Cn.bufferWithCount=function(e,t){return"number"!=typeof t&&(t=e),this.windowWithCount(e,t).flatMap(q).filter(z)},Cn.dematerialize=function(){var e=this;return new no(function(t){return e.subscribe(function(e){return e.accept(t)},function(e){t.onError(e)},function(){t.onCompleted()})},this)};var Tr=function(e){function t(t,n,r){this.source=t,this.keyFn=n,this.comparer=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new xr(e,this.keyFn,this.comparer))},t}(kn),xr=function(e){function t(t,n,r){this.o=t,this.keyFn=n,this.comparer=r,this.hasCurrentKey=!1,this.currentKey=null,e.call(this)}return Bt(t,e),t.prototype.next=function(e){var t,n=e;return Qe(this.keyFn)&&(n=$e(this.keyFn)(e),n===Xe)?this.o.onError(n.e):this.hasCurrentKey&&(t=$e(this.comparer)(this.currentKey,n),t===Xe)?this.o.onError(t.e):void(this.hasCurrentKey&&t||(this.hasCurrentKey=!0,this.currentKey=n,this.o.onNext(e)))},t.prototype.error=function(e){this.o.onError(e)},t.prototype.completed=function(){this.o.onCompleted()},t}(_n);Cn.distinctUntilChanged=function(e,t){return t||(t=Ke),new Tr(this,e,t)};var Cr=function(e){function t(t,n,r,o){this.source=t,this._oN=n,this._oE=r,this._oC=o,e.call(this)}function n(e,t){this.o=e,this.t=!t._oN||Qe(t._oN)?xn(t._oN||Be,t._oE||Be,t._oC||Be):t._oN,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this))},n.prototype.onNext=function(e){if(!this.isStopped){var t=$e(this.t.onNext).call(this.t,e);t===Xe&&this.o.onError(t.e),this.o.onNext(e)}},n.prototype.onError=function(e){if(!this.isStopped){this.isStopped=!0;var t=$e(this.t.onError).call(this.t,e);if(t===Xe)return this.o.onError(t.e);this.o.onError(e)}},n.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var e=$e(this.t.onCompleted).call(this.t);if(e===Xe)return this.o.onError(e.e);this.o.onCompleted()}},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(kn);Cn["do"]=Cn.tap=Cn.doAction=function(e,t,n){return new Cr(this,e,t,n)},Cn.doOnNext=Cn.tapOnNext=function(e,t){return this.tap("undefined"!=typeof t?function(n){e.call(t,n)}:e)},Cn.doOnError=Cn.tapOnError=function(e,t){return this.tap(Be,"undefined"!=typeof t?function(n){e.call(t,n)}:e)},Cn.doOnCompleted=Cn.tapOnCompleted=function(e,t){return this.tap(Be,null,"undefined"!=typeof t?function(){e.call(t)}:e)},Cn["finally"]=function(e){var t=this;return new no(function(n){var r=$e(t.subscribe).call(t,n);return r===Xe?(e(),c(r.e)):Xt(function(){var t=$e(r.dispose).call(r);e(),t===Xe&&c(t.e)})},this)};var _r=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},n.prototype.onNext=Be,n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.observer.onError(e),!0)},t}(kn);Cn.ignoreElements=function(){return new _r(this)},Cn.materialize=function(){var e=this;return new no(function(t){return e.subscribe(function(e){t.onNext(bn(e))},function(e){t.onNext(wn(e)),t.onCompleted()},function(){t.onNext(En()),t.onCompleted()})},e)},Cn.repeat=function(e){return Ln(this,e).concat()},Cn.retry=function(e){return Ln(this,e).catchError()},Cn.retryWhen=function(e){return Ln(this).catchErrorWhen(e)};var Sr=function(e){function t(t,n,r,o){this.source=t,this.accumulator=n,this.hasSeed=r,this.seed=o,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new K(e,this))},t}(kn);K.prototype={onNext:function(e){return this.isStopped?void 0:(!this.hasValue&&(this.hasValue=!0),this.hasAccumulation?this.accumulation=$e(this.accumulator)(this.accumulation,e):(this.accumulation=this.hasSeed?$e(this.accumulator)(this.seed,e):e,this.hasAccumulation=!0),this.accumulation===Xe?this.o.onError(this.accumulation.e):void this.o.onNext(this.accumulation))},onError:function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},onCompleted:function(){this.isStopped||(this.isStopped=!0,!this.hasValue&&this.hasSeed&&this.o.onNext(this.seed),this.o.onCompleted())},dispose:function(){this.isStopped=!0},fail:function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)}},Cn.scan=function(){var e,t=!1,n=arguments[0];return 2===arguments.length&&(t=!0,e=arguments[1]),new Sr(this,n,t,e)},Cn.skipLast=function(e){if(0>e)throw new it;var t=this;return new no(function(n){var r=[];return t.subscribe(function(t){r.push(t),r.length>e&&n.onNext(r.shift())},function(e){n.onError(e)},function(){n.onCompleted()})},t)},Cn.startWith=function(){var e,t=0;arguments.length&&an(arguments[0])?(e=arguments[0],t=1):e=pn;for(var n=[],r=t,o=arguments.length;o>r;r++)n.push(arguments[r]);return Un([Jn(n,e),this]).concat()},Cn.takeLast=function(e){if(0>e)throw new it;var t=this;return new no(function(n){var r=[];return t.subscribe(function(t){r.push(t),r.length>e&&r.shift()},function(e){n.onError(e)},function(){for(;r.length>0;)n.onNext(r.shift());n.onCompleted()})},t)},Cn.takeLastBuffer=function(e){var t=this;return new no(function(n){var r=[];return t.subscribe(function(t){r.push(t),r.length>e&&r.shift()},function(e){n.onError(e)},function(){n.onNext(r),n.onCompleted()})},t)},Cn.windowWithCount=function(e,t){var n=this;if(+e||(e=0),Math.abs(e)===1/0&&(e=0),0>=e)throw new it;if(null==t&&(t=e),+t||(t=0),Math.abs(t)===1/0&&(t=0),0>=t)throw new it;return new no(function(r){function o(){var e=new io;u.push(e),r.onNext(zt(e,s))}var i=new en,s=new nn(i),a=0,u=[];return o(),i.setDisposable(n.subscribe(function(n){for(var r=0,i=u.length;i>r;r++)u[r].onNext(n);var s=a-e+1;s>=0&&s%t===0&&u.shift().onCompleted(),++a%t===0&&o()},function(e){for(;u.length>0;)u.shift().onError(e);r.onError(e)},function(){for(;u.length>0;)u.shift().onCompleted();r.onCompleted()})),s},n)},Cn.selectConcat=Cn.concatMap=function(e,t,n){return Qe(e)&&Qe(t)?this.concatMap(function(n,r){var o=e(n,r);return Ye(o)&&(o=Vn(o)),(dt(o)||ht(o))&&(o=Xn(o)),o.map(function(e,o){return t(n,e,r,o)})}):Qe(e)?H(this,e,n):H(this,function(){return e})},Cn.concatMapObserver=Cn.selectConcatObserver=function(e,t,n,r){var o=this,i=mt(e,r,2),s=mt(t,r,1),a=mt(n,r,0);return new no(function(e){var t=0;return o.subscribe(function(n){var r;try{r=i(n,t++)}catch(o){return void e.onError(o)}Ye(r)&&(r=Vn(r)),e.onNext(r)},function(t){var n;try{n=s(t)}catch(r){return void e.onError(r)}Ye(n)&&(n=Vn(n)),e.onNext(n),e.onCompleted()},function(){var t;try{t=a()}catch(n){return void e.onError(n)}Ye(t)&&(t=Vn(t)),e.onNext(t),e.onCompleted()})},this).concatAll()},Cn.defaultIfEmpty=function(e){var t=this;return e===s&&(e=null),new no(function(n){var r=!1;return t.subscribe(function(e){r=!0,n.onNext(e)},function(e){n.onError(e)},function(){!r&&n.onNext(e),n.onCompleted()})},t)},Y.prototype.push=function(e){var t=-1===G(this.set,e,this.comparer);return t&&this.set.push(e),t},Cn.distinct=function(e,t){var n=this;return t||(t=Ke),new no(function(r){var o=new Y(t);return n.subscribe(function(t){var n=t;if(e)try{n=e(t)}catch(i){return void r.onError(i)}o.push(n)&&r.onNext(t)},function(e){r.onError(e)},function(){r.onCompleted()})},this)},Cn.groupBy=function(e,t){return this.groupByUntil(e,t,tr)},Cn.groupByUntil=function(e,t,n){var r=this;return new no(function(o){var i=new Jr,a=new Gt,u=new nn(a),c=function(e){return function(t){t.onError(e)}};return a.add(r.subscribe(function(r){var l=$e(e)(r);if(l===Xe)return i.forEach(c(l.e)),o.onError(l.e);var p=!1,h=i.get(l);if(h===s&&(h=new io,i.set(l,h),p=!0),p){var d=new oo(l,h,u),f=new oo(l,h),m=$e(n)(f);if(m===Xe)return i.forEach(c(m.e)),o.onError(m.e);o.onNext(d);var v=new en;a.add(v),v.setDisposable(m.take(1).subscribe(Be,function(e){i.forEach(c(e)),o.onError(e)},function(){i["delete"](l)&&h.onCompleted(),a.remove(v)}))}var y=r;return Qe(t)&&(y=$e(t)(r),y===Xe)?(i.forEach(c(y.e)),o.onError(y.e)):void h.onNext(y)},function(e){i.forEach(c(e)),o.onError(e)},function(){i.forEach(function(e){e.onCompleted()}),o.onCompleted()})),u},r)};var Nr=function(e){function t(t,n,r){this.source=t,this.selector=mt(n,r,3),e.call(this)}function n(e,t){return function(n,r,o){return e.call(this,t.selector(n,r,o),r,o)}}function r(e,t,n){this.o=e,this.selector=t,this.source=n,this.i=0,this.isStopped=!1}return Bt(t,e),t.prototype.internalMap=function(e,r){return new t(this.source,n(e,this),r)},t.prototype.subscribeCore=function(e){return this.source.subscribe(new r(e,this.selector,this))},r.prototype.onNext=function(e){if(!this.isStopped){var t=$e(this.selector)(e,this.i++,this.source);return t===Xe?this.o.onError(t.e):void this.o.onNext(t)}},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},r.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(kn);Cn.map=Cn.select=function(e,t){var n="function"==typeof e?e:function(){return e};return this instanceof Nr?this.internalMap(n,t):new Nr(this,n,t)},Cn.pluck=function(){var e=arguments.length,t=new Array(e);if(0===e)throw new Error("List of properties cannot be empty.");for(var n=0;e>n;n++)t[n]=arguments[n];return this.map(Q(t,e))},Cn.flatMap=Cn.selectMany=function(e,t,n){return new Mn(this,e,t,n).mergeAll()},Cn.flatMapObserver=Cn.selectManyObserver=function(e,t,n,r){var o=this;return new no(function(i){var s=0;return o.subscribe(function(t){var n;try{n=e.call(r,t,s++)}catch(o){return void i.onError(o)}Ye(n)&&(n=Vn(n)),i.onNext(n)},function(e){var n;try{n=t.call(r,e)}catch(o){return void i.onError(o)}Ye(n)&&(n=Vn(n)),i.onNext(n),i.onCompleted()},function(){var e;try{e=n.call(r)}catch(t){return void i.onError(t)}Ye(e)&&(e=Vn(e)),i.onNext(e),i.onCompleted()})},o).mergeAll()},Ve.Observable.prototype.flatMapLatest=function(e,t,n){return new Mn(this,e,t,n).switchLatest()};var Or=function(e){function t(t,n){this.source=t,this.skipCount=n,e.call(this)}function n(e,t){this.c=t,this.r=t,this.o=e,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this.skipCount))},n.prototype.onNext=function(e){this.isStopped||(this.r<=0?this.o.onNext(e):this.r--)},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(kn);Cn.skip=function(e){if(0>e)throw new it;return new Or(this,e)},Cn.skipWhile=function(e,t){var n=this,r=mt(e,t,3);return new no(function(e){var t=0,o=!1;return n.subscribe(function(i){if(!o)try{o=!r(i,t++,n)}catch(s){return void e.onError(s)}o&&e.onNext(i)},function(t){e.onError(t)},function(){e.onCompleted()})},n)},Cn.take=function(e,t){if(0>e)throw new it;if(0===e)return Hn(t);var n=this;return new no(function(t){var r=e;return n.subscribe(function(e){r-->0&&(t.onNext(e),0>=r&&t.onCompleted())},function(e){t.onError(e)},function(){t.onCompleted()})},n)},Cn.takeWhile=function(e,t){var n=this,r=mt(e,t,3);return new no(function(e){var t=0,o=!0;return n.subscribe(function(i){
+if(o){try{o=r(i,t++,n)}catch(s){return void e.onError(s)}o?e.onNext(i):e.onCompleted()}},function(t){e.onError(t)},function(){e.onCompleted()})},n)};var Dr=function(e){function t(t,n,r){this.source=t,this.predicate=mt(n,r,3),e.call(this)}function n(e,t){return function(n,r,o){return t.predicate(n,r,o)&&e.call(this,n,r,o)}}function r(e,t,n){this.o=e,this.predicate=t,this.source=n,this.i=0,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new r(e,this.predicate,this))},t.prototype.internalFilter=function(e,r){return new t(this.source,n(e,this),r)},r.prototype.onNext=function(e){if(!this.isStopped){var t=$e(this.predicate)(e,this.i++,this.source);return t===Xe?this.o.onError(t.e):void(t&&this.o.onNext(e))}},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},r.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(kn);Cn.filter=Cn.where=function(e,t){return this instanceof Dr?this.internalFilter(e,t):new Dr(this,e,t)};var Pr=function(e){function t(t,n,r,o){this.source=t,this.acc=n,this.hasSeed=r,this.seed=o,e.call(this)}function n(e,t){this.o=e,this.acc=t.acc,this.hasSeed=t.hasSeed,this.seed=t.seed,this.hasAccumulation=!1,this.result=null,this.hasValue=!1,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this))},n.prototype.onNext=function(e){this.isStopped||(!this.hasValue&&(this.hasValue=!0),this.hasAccumulation?this.result=$e(this.acc)(this.result,e):(this.result=this.hasSeed?$e(this.acc)(this.seed,e):e,this.hasAccumulation=!0),this.result===Xe&&this.o.onError(this.result.e))},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.hasValue&&this.o.onNext(this.result),!this.hasValue&&this.hasSeed&&this.o.onNext(this.seed),!this.hasValue&&!this.hasSeed&&this.o.onError(new rt),this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(kn);Cn.reduce=function(e){var t=!1;if(2===arguments.length){t=!0;var n=arguments[1]}return new Pr(this,e,t,n)};var kr=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return Bt(t,e),t.prototype.next=function(e){var t=$e(this._fn)(e,this._i++,this._s);return t===Xe?this._o.onError(t.e):void(Boolean(t)&&(this._o.onNext(!0),this._o.onCompleted()))},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!1),this._o.onCompleted()},t}(_n);Cn.some=function(e,t){var n=this,r=mt(e,t,3);return new no(function(e){return n.subscribe(new kr(e,r,n))})};var Mr=function(e){function t(t){this._o=t,e.call(this)}return Bt(t,e),t.prototype.next=function(){this._o.onNext(!1),this._o.onCompleted()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!0),this._o.onCompleted()},t}(_n);Cn.isEmpty=function(){var e=this;return new no(function(t){return e.subscribe(new Mr(t))},e)};var Ar=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return Bt(t,e),t.prototype.next=function(e){var t=$e(this._fn)(e,this._i++,this._s);return t===Xe?this._o.onError(t.e):void(Boolean(t)||(this._o.onNext(!1),this._o.onCompleted()))},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!0),this._o.onCompleted()},t}(_n);Cn.every=function(e,t){var n=this,r=mt(e,t,3);return new no(function(e){return n.subscribe(new Ar(e,r,n))},this)},Cn.includes=function(e,t){function n(e,t){return 0===e&&0===t||e===t||isNaN(e)&&isNaN(t)}var r=this;return new no(function(o){var i=0,s=+t||0;return Math.abs(s)===1/0&&(s=0),0>s?(o.onNext(!1),o.onCompleted(),$t):r.subscribe(function(t){i++>=s&&n(t,e)&&(o.onNext(!0),o.onCompleted())},function(e){o.onError(e)},function(){o.onNext(!1),o.onCompleted()})},this)},Cn.contains=function(e,t){Cn.includes(e,t)},Cn.count=function(e,t){return e?this.filter(e,t).count():this.reduce(function(e){return e+1},0)},Cn.indexOf=function(e,t){var n=this;return new no(function(r){var o=0,i=+t||0;return Math.abs(i)===1/0&&(i=0),0>i?(r.onNext(-1),r.onCompleted(),$t):n.subscribe(function(t){o>=i&&t===e&&(r.onNext(o),r.onCompleted()),o++},function(e){r.onError(e)},function(){r.onNext(-1),r.onCompleted()})},n)},Cn.sum=function(e,t){return e&&Qe(e)?this.map(e,t).sum():this.reduce(function(e,t){return e+t},0)},Cn.minBy=function(e,t){return t||(t=He),X(this,e,function(e,n){return-1*t(e,n)})},Cn.min=function(e){return this.minBy(qe,e).map(function(e){return $(e)})},Cn.maxBy=function(e,t){return t||(t=He),X(this,e,t)},Cn.max=function(e){return this.maxBy(qe,e).map(function(e){return $(e)})};var Rr=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._c=0,this._t=0,e.call(this)}return Bt(t,e),t.prototype.next=function(e){if(this._fn){var t=$e(this._fn)(e,this._c++,this._s);if(t===Xe)return this._o.onError(t.e);this._t+=t}else this._c++,this._t+=e},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){return 0===this._c?this._o.onError(new rt):(this._o.onNext(this._t/this._c),void this._o.onCompleted())},t}(_n);Cn.average=function(e,t){var n,r=this;return Qe(e)&&(n=mt(e,t,3)),new no(function(e){return r.subscribe(new Rr(e,n,r))},r)},Cn.sequenceEqual=function(e,t){var n=this;return t||(t=Ke),new no(function(r){var o=!1,i=!1,s=[],a=[],u=n.subscribe(function(e){var n,o;if(a.length>0){o=a.shift();try{n=t(o,e)}catch(u){return void r.onError(u)}n||(r.onNext(!1),r.onCompleted())}else i?(r.onNext(!1),r.onCompleted()):s.push(e)},function(e){r.onError(e)},function(){o=!0,0===s.length&&(a.length>0?(r.onNext(!1),r.onCompleted()):i&&(r.onNext(!0),r.onCompleted()))});(dt(e)||ht(e))&&(e=Xn(e)),Ye(e)&&(e=Vn(e));var c=e.subscribe(function(e){var n;if(s.length>0){var i=s.shift();try{n=t(i,e)}catch(u){return void r.onError(u)}n||(r.onNext(!1),r.onCompleted())}else o?(r.onNext(!1),r.onCompleted()):a.push(e)},function(e){r.onError(e)},function(){i=!0,0===a.length&&(s.length>0?(r.onNext(!1),r.onCompleted()):o&&(r.onNext(!0),r.onCompleted()))});return new Gt(u,c)},n)},Cn.elementAt=function(e,t){if(0>e)throw new it;var n=this;return new no(function(r){var o=e;return n.subscribe(function(e){0===o--&&(r.onNext(e),r.onCompleted())},function(e){r.onError(e)},function(){t===s?r.onError(new it):(r.onNext(t),r.onCompleted())})},n)},Cn.single=function(e,t){if(Qe(e))return this.filter(e,t).single();var n=this;return new no(function(e){var t,r=!1;return n.subscribe(function(n){r?e.onError(new Error("Sequence contains more than one element")):(t=n,r=!0)},function(t){e.onError(t)},function(){e.onNext(t),e.onCompleted()})},n)};var Ir=function(e){function t(t,n,r){this._o=t,this._obj=n,this._s=r,this._i=0,e.call(this)}return Bt(t,e),t.prototype.next=function(e){if(this._obj.predicate){var t=$e(this._obj.predicate)(e,this._i++,this._s);if(t===Xe)return this._o.onError(t.e);Boolean(t)&&(this._o.onNext(e),this._o.onCompleted())}else this._obj.predicate||(this._o.onNext(e),this._o.onCompleted())},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._obj.defaultValue===s?this._o.onError(new rt):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())},t}(_n);Cn.first=function(){var e={},t=this;if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},Qe(e.predicate)){var n=e.predicate;e.predicate=mt(n,e.thisArg,3)}return new no(function(n){return t.subscribe(new Ir(n,e,t))},t)},Cn.last=function(){var e={},t=this;if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},Qe(e.predicate)){var n=e.predicate;e.predicate=mt(n,e.thisArg,3)}return new no(function(n){var r,o=!1,i=0;return t.subscribe(function(s){if(e.predicate){var a=$e(e.predicate)(s,i++,t);if(a===Xe)return n.onError(a.e);a&&(o=!0,r=s)}else e.predicate||(o=!0,r=s)},function(e){n.onError(e)},function(){o?(n.onNext(r),n.onCompleted()):e.defaultValue===s?n.onError(new rt):(n.onNext(e.defaultValue),n.onCompleted())})},t)},Cn.find=function(e,t){return J(this,e,t,!1)},Cn.findIndex=function(e,t){return J(this,e,t,!0)},Cn.toSet=function(){if("undefined"==typeof We.Set)throw new TypeError;var e=this;return new no(function(t){var n=new We.Set;return e.subscribe(function(e){n.add(e)},function(e){t.onError(e)},function(){t.onNext(n),t.onCompleted()})},e)},Cn.toMap=function(e,t){if("undefined"==typeof We.Map)throw new TypeError;var n=this;return new no(function(r){var o=new We.Map;return n.subscribe(function(n){var i;try{i=e(n)}catch(s){return void r.onError(s)}var a=n;if(t)try{a=t(n)}catch(s){return void r.onError(s)}o.set(i,a)},function(e){r.onError(e)},function(){r.onNext(o),r.onCompleted()})},n)},Pn.wrap=function(e){function t(){return Pn.spawn.call(this,e.apply(this,arguments))}return t.__generatorFunction__=e,t};var jr=Pn.spawn=function(){for(var e=arguments[0],t=this,n=[],r=1,o=arguments.length;o>r;r++)n.push(arguments[r]);return new no(function(r){function o(t){var n=$e(e.next).call(e,t);return n===Xe?r.onError(n.e):void s(n)}function i(t){var n=$e(e.next).call(e,t);return n===Xe?r.onError(n.e):void s(n)}function s(e){if(e.done)return r.onNext(e.value),void r.onCompleted();var n=Z.call(t,e.value);Pn.isObservable(n)?a.add(n.subscribe(o,i)):i(new TypeError("type not supported"))}var a=new Gt;return Qe(e)&&(e=e.apply(t,n)),e&&Qe(e.next)?(o(),a):(r.onNext(e),r.onCompleted())})};Pn.start=function(e,t,n){return Lr(e,t,n)()};var Lr=Pn.toAsync=function(e,t,n){return an(n)||(n=vn),function(){var r=arguments,o=new so;return n.schedule(function(){var n;try{n=e.apply(t,r)}catch(i){return void o.onError(i)}o.onNext(n),o.onCompleted()}),o.asObservable()}};Pn.fromCallback=function(e,t,n){return function(){"undefined"==typeof t&&(t=this);for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];return ie(e,t,n,o)}},Pn.fromNodeCallback=function(e,t,n){return function(){"undefined"==typeof t&&(t=this);for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];return ae(e,t,n,o)}},ce.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)},Ve.config.useNativeEvents=!1,Pn.fromEvent=function(e,t,n){return e.addListener?Fr(function(n){e.addListener(t,n)},function(n){e.removeListener(t,n)},n):Ve.config.useNativeEvents||"function"!=typeof e.on||"function"!=typeof e.off?new no(function(r){return le(e,t,pe(r,n))}).publish().refCount():Fr(function(n){e.on(t,n)},function(n){e.off(t,n)},n)};var Fr=Pn.fromEventPattern=function(e,t,n,r){return an(r)||(r=pn),new no(function(r){function o(){var e=arguments[0];return Qe(n)&&(e=$e(n).apply(null,arguments),e===Xe)?r.onError(e.e):void r.onNext(e)}var i=e(o);return Xt(function(){Qe(t)&&t(o,i)})}).publish().refCount()};Pn.startAsync=function(e){var t;try{t=e()}catch(n){return ur(n)}return Vn(t)};var Ur=function(e){function t(e){var t=this.source.publish(),n=t.subscribe(e),r=$t,o=this.pauser.distinctUntilChanged().subscribe(function(e){e?r=t.connect():(r.dispose(),r=$t)});return new Gt(n,r,o)}function n(n,r){this.source=n,this.controller=new io,r&&r.subscribe?this.pauser=this.controller.merge(r):this.pauser=this.controller,e.call(this,t,n)}return Bt(n,e),n.prototype.pause=function(){this.controller.onNext(!1)},n.prototype.resume=function(){this.controller.onNext(!0)},n}(Pn);Cn.pausable=function(e){return new Ur(this,e)};var Wr=function(e){function t(e){function t(){for(;r.length>0;)e.onNext(r.shift())}var n,r=[],o=he(this.source,this.pauser.startWith(!1).distinctUntilChanged(),function(e,t){return{data:e,shouldFire:t}}).subscribe(function(o){n!==s&&o.shouldFire!=n?(n=o.shouldFire,o.shouldFire&&t()):(n=o.shouldFire,o.shouldFire?e.onNext(o.data):r.push(o.data))},function(n){t(),e.onError(n)},function(){t(),e.onCompleted()});return o}function n(n,r){this.source=n,this.controller=new io,r&&r.subscribe?this.pauser=this.controller.merge(r):this.pauser=this.controller,e.call(this,t,n)}return Bt(n,e),n.prototype.pause=function(){this.controller.onNext(!1)},n.prototype.resume=function(){this.controller.onNext(!0)},n}(Pn);Cn.pausableBuffered=function(e){return new Wr(this,e)};var Vr=function(e){function t(e){return this.source.subscribe(e)}function n(n,r,o){e.call(this,t,n),this.subject=new Br(r,o),this.source=n.multicast(this.subject).refCount()}return Bt(n,e),n.prototype.request=function(e){return this.subject.request(null==e?-1:e)},n}(Pn),Br=function(e){function t(e){return this.subject.subscribe(e)}function n(n,r){null==n&&(n=!0),e.call(this,t),this.subject=new io,this.enableQueue=n,this.queue=n?[]:null,this.requestedCount=0,this.requestedDisposable=null,this.error=null,this.hasFailed=!1,this.hasCompleted=!1,this.scheduler=r||hn}return Bt(n,e),qt(n.prototype,Tn,{onCompleted:function(){this.hasCompleted=!0,this.enableQueue&&0!==this.queue.length?this.queue.push(gn.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(e){this.hasFailed=!0,this.error=e,this.enableQueue&&0!==this.queue.length?this.queue.push(gn.createOnError(e)):(this.subject.onError(e),this.disposeCurrentRequest())},onNext:function(e){this.requestedCount<=0?this.enableQueue&&this.queue.push(gn.createOnNext(e)):(0===this.requestedCount--&&this.disposeCurrentRequest(),this.subject.onNext(e))},_processRequest:function(e){if(this.enableQueue)for(;this.queue.length>0&&(e>0||"N"!==this.queue[0].kind);){var t=this.queue.shift();t.accept(this.subject),"N"===t.kind?e--:(this.disposeCurrentRequest(),this.queue=[])}return e},request:function(e){this.disposeCurrentRequest();var t=this;return this.requestedDisposable=this.scheduler.scheduleWithState(e,function(e,n){var r=t._processRequest(n),o=t.hasCompleted||t.hasFailed;return!o&&r>0?(t.requestedCount=r,Xt(function(){t.requestedCount=0})):void 0}),this.requestedDisposable},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}}),n}(Pn);Cn.controlled=function(e,t){return e&&an(e)&&(t=e,e=!0),null==e&&(e=!0),new Vr(this,e,t)};var qr=function(e){function t(e){this.subscription=this.source.subscribe(new r(e,this,this.subscription));var t=this;return vn.schedule(function(){t.source.request(1)}),this.subscription}function n(n){e.call(this,t,n),this.source=n}Bt(n,e);var r=function(e){function t(t,n,r){e.call(this),this.observer=t,this.observable=n,this.cancel=r}Bt(t,e);var n=t.prototype;return n.completed=function(){this.observer.onCompleted(),this.dispose()},n.error=function(e){this.observer.onError(e),this.dispose()},n.next=function(e){this.observer.onNext(e);var t=this;vn.schedule(function(){t.observable.source.request(1)})},n.dispose=function(){this.observer=null,this.cancel&&(this.cancel.dispose(),this.cancel=null),e.prototype.dispose.call(this)},t}(_n);return n}(Pn);Vr.prototype.stopAndWait=function(){return new qr(this)};var zr=function(e){function t(e){this.subscription=this.source.subscribe(new r(e,this,this.subscription));var t=this;return vn.schedule(function(){t.source.request(t.windowSize)}),this.subscription}function n(n,r){e.call(this,t,n),this.source=n,this.windowSize=r}Bt(n,e);var r=function(e){function t(e,t,n){this.observer=e,this.observable=t,this.cancel=n,this.received=0}Bt(t,e);var n=t.prototype;return n.completed=function(){this.observer.onCompleted(),this.dispose()},n.error=function(e){this.observer.onError(e),this.dispose()},n.next=function(e){if(this.observer.onNext(e),this.received=++this.received%this.observable.windowSize,0===this.received){var t=this;vn.schedule(function(){t.observable.source.request(t.observable.windowSize)})}},n.dispose=function(){this.observer=null,this.cancel&&(this.cancel.dispose(),this.cancel=null),e.prototype.dispose.call(this)},t}(_n);return n}(Pn);Vr.prototype.windowed=function(e){return new zr(this,e)},Cn.pipe=function(e){function t(){n.resume()}var n=this.pausableBuffered();return e.addListener("drain",t),n.subscribe(function(t){!e.write(String(t))&&n.pause()},function(t){e.emit("error",t)},function(){!e._isStdio&&e.end(),e.removeListener("drain",t)}),n.resume(),e},Cn.multicast=function(e,t){var n=this;return"function"==typeof e?new no(function(r){var o=n.multicast(e());return new Gt(t(o).subscribe(r),o.connect())},n):new Yr(n,e)},Cn.publish=function(e){return e&&Qe(e)?this.multicast(function(){return new io},e):this.multicast(new io)},Cn.share=function(){return this.publish().refCount()},Cn.publishLast=function(e){return e&&Qe(e)?this.multicast(function(){return new so},e):this.multicast(new so)},Cn.publishValue=function(e,t){return 2===arguments.length?this.multicast(function(){return new Hr(t)},e):this.multicast(new Hr(e))},Cn.shareValue=function(e){return this.publishValue(e).refCount()},Cn.replay=function(e,t,n,r){return e&&Qe(e)?this.multicast(function(){return new Gr(t,n,r)},e):this.multicast(new Gr(t,n,r))},Cn.shareReplay=function(e,t,n){return this.replay(null,e,t,n).refCount()};var Kr=function(e,t){this.subject=e,this.observer=t};Kr.prototype.dispose=function(){if(!this.subject.isDisposed&&null!==this.observer){var e=this.subject.observers.indexOf(this.observer);this.subject.observers.splice(e,1),this.observer=null}};var Hr=Ve.BehaviorSubject=function(e){function t(e){return Zt(this),this.isStopped?(this.hasError?e.onError(this.error):e.onCompleted(),$t):(this.observers.push(e),e.onNext(this.value),new Kr(this,e))}function n(n){e.call(this,t),this.value=n,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}return Bt(n,e),qt(n.prototype,Tn,{getValue:function(){if(Zt(this),this.hasError)throw this.error;return this.value},hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(Zt(this),!this.isStopped){this.isStopped=!0;for(var e=0,t=a(this.observers),n=t.length;n>e;e++)t[e].onCompleted();this.observers.length=0}},onError:function(e){if(Zt(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=e;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onError(e);this.observers.length=0}},onNext:function(e){if(Zt(this),!this.isStopped){this.value=e;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onNext(e)}},dispose:function(){this.isDisposed=!0,this.observers=null,this.value=null,this.exception=null}}),n}(Pn),Gr=Ve.ReplaySubject=function(e){function t(e,t){return Xt(function(){t.dispose(),!e.isDisposed&&e.observers.splice(e.observers.indexOf(t),1)})}function n(e){var n=new On(this.scheduler,e),r=t(this,n);Zt(this),this._trim(this.scheduler.now()),this.observers.push(n);for(var o=0,i=this.q.length;i>o;o++)n.onNext(this.q[o].value);return this.hasError?n.onError(this.error):this.isStopped&&n.onCompleted(),n.ensureActive(),r}function r(t,r,i){this.bufferSize=null==t?o:t,this.windowSize=null==r?o:r,this.scheduler=i||hn,this.q=[],this.observers=[],this.isStopped=!1,this.isDisposed=!1,this.hasError=!1,this.error=null,e.call(this,n)}var o=Math.pow(2,53)-1;return Bt(r,e),qt(r.prototype,Tn.prototype,{hasObservers:function(){return this.observers.length>0},_trim:function(e){for(;this.q.length>this.bufferSize;)this.q.shift();for(;this.q.length>0&&e-this.q[0].interval>this.windowSize;)this.q.shift()},onNext:function(e){if(Zt(this),!this.isStopped){var t=this.scheduler.now();this.q.push({interval:t,value:e}),this._trim(t);for(var n=0,r=a(this.observers),o=r.length;o>n;n++){var i=r[n];i.onNext(e),i.ensureActive()}}},onError:function(e){if(Zt(this),!this.isStopped){this.isStopped=!0,this.error=e,this.hasError=!0;var t=this.scheduler.now();this._trim(t);for(var n=0,r=a(this.observers),o=r.length;o>n;n++){var i=r[n];i.onError(e),i.ensureActive()}this.observers.length=0}},onCompleted:function(){if(Zt(this),!this.isStopped){this.isStopped=!0;var e=this.scheduler.now();this._trim(e);for(var t=0,n=a(this.observers),r=n.length;r>t;t++){var o=n[t];o.onCompleted(),o.ensureActive()}this.observers.length=0}},dispose:function(){this.isDisposed=!0,this.observers=null}}),r}(Pn),Yr=Ve.ConnectableObservable=function(e){function t(t,n){var r,o=!1,i=t.asObservable();this.connect=function(){return o||(o=!0,r=new Gt(i.subscribe(n),Xt(function(){o=!1}))),r},e.call(this,function(e){return n.subscribe(e)})}return Bt(t,e),t.prototype.refCount=function(){var e,t=0,n=this;return new no(function(r){var o=1===++t,i=n.subscribe(r);return o&&(e=n.connect()),function(){i.dispose(),0===--t&&e.dispose()}})},t}(Pn);Cn.singleInstance=function(){function e(){return r||(r=!0,t=n["finally"](function(){r=!1}).publish().refCount()),t}var t,n=this,r=!1;return new no(function(t){return e().subscribe(t)})},Cn.join=function(e,t,n,r){var o=this;return new no(function(i){var s=new Gt,a=!1,u=!1,c=0,l=0,p=new Jr,h=new Jr,d=function(e){i.onError(e)};return s.add(o.subscribe(function(e){var n=c++,o=new en;p.set(n,e),s.add(o);var u=$e(t)(e);return u===Xe?i.onError(u.e):(o.setDisposable(u.take(1).subscribe(Be,d,function(){p["delete"](n)&&0===p.size&&a&&i.onCompleted(),s.remove(o)})),void h.forEach(function(t){var n=$e(r)(e,t);return n===Xe?i.onError(n.e):void i.onNext(n)}))},d,function(){a=!0,(u||0===p.size)&&i.onCompleted()})),s.add(e.subscribe(function(e){var t=l++,o=new en;h.set(t,e),s.add(o);var a=$e(n)(e);return a===Xe?i.onError(a.e):(o.setDisposable(a.take(1).subscribe(Be,d,function(){h["delete"](t)&&0===h.size&&u&&i.onCompleted(),s.remove(o)})),void p.forEach(function(t){var n=$e(r)(t,e);return n===Xe?i.onError(n.e):void i.onNext(n)}))},d,function(){u=!0,(a||0===h.size)&&i.onCompleted()})),s},o)},Cn.groupJoin=function(e,t,n,r){var o=this;return new no(function(i){function s(e){}var a=new Gt,u=new nn(a),c=new Jr,l=new Jr,p=0,h=0,s=function(e){return function(t){t.onError(e)}};return a.add(o.subscribe(function(e){var n=new io,o=p++;c.set(o,n);var h=$e(r)(e,zt(n,u));if(h===Xe)return c.forEach(s(h.e)),i.onError(h.e);i.onNext(h),l.forEach(function(e){n.onNext(e)});var d=new en;a.add(d);var f=$e(t)(e);return f===Xe?(c.forEach(s(f.e)),i.onError(f.e)):void d.setDisposable(f.take(1).subscribe(Be,function(e){c.forEach(s(e)),i.onError(e)},function(){c["delete"](o)&&n.onCompleted(),a.remove(d)}))},function(e){c.forEach(s(e)),i.onError(e)},function(){i.onCompleted()})),a.add(e.subscribe(function(e){var t=h++;l.set(t,e);var r=new en;a.add(r);var o=$e(n)(e);return o===Xe?(c.forEach(s(o.e)),i.onError(o.e)):(r.setDisposable(o.take(1).subscribe(Be,function(e){c.forEach(s(e)),i.onError(e)},function(){l["delete"](t),a.remove(r)})),void c.forEach(function(t){t.onNext(e)}))},function(e){c.forEach(s(e)),i.onError(e)})),u},o)},Cn.buffer=function(){return this.window.apply(this,arguments).flatMap(q)},Cn.window=function(e,t){return 1===arguments.length&&"function"!=typeof arguments[0]?fe.call(this,e):"function"==typeof e?me.call(this,e):de.call(this,e,t)},Cn.pairwise=function(){var e=this;return new no(function(t){var n,r=!1;return e.subscribe(function(e){r?t.onNext([n,e]):r=!0,n=e},t.onError.bind(t),t.onCompleted.bind(t))},e)},Cn.partition=function(e,t){return[this.filter(e,t),this.filter(function(n,r,o){return!e.call(t,n,r,o)})]};var Qr=function(e){function t(e,t){this.c=e,this.s=t}return Bt(t,e),t.prototype[lt]=function(){var e=this;return{next:function(){return e.c()?{done:!1,value:e.s}:{done:!0,value:void 0}}}},t}(An);Cn.letBind=Cn.let=function(e){return e(this)},Pn["if"]=function(e,t,n){return qn(function(){return n||(n=Hn()),Ye(t)&&(t=Vn(t)),Ye(n)&&(n=Vn(n)),"function"==typeof n.now&&(n=Hn(n)),e()?t:n})},Pn["for"]=Pn.forIn=function(e,t,n){return Un(e,t,n).concat()};var Xr=Pn["while"]=Pn.whileDo=function(e,t){return Ye(t)&&(t=Vn(t)),ve(e,t).concat()};Cn.doWhile=function(e){return dr([this,Xr(e,this)])},Pn["case"]=function(e,t,n){return qn(function(){Ye(n)&&(n=Vn(n)),n||(n=Hn()),an(n)&&(n=Hn(n));var r=t[e()];return Ye(r)&&(r=Vn(r)),r||n})},Cn.expand=function(e,t){an(t)||(t=pn);var n=this;return new no(function(r){var o=[],i=new tn,s=new Gt(i),a=0,u=!1,c=function(){var n=!1;o.length>0&&(n=!u,u=!0),n&&i.setDisposable(t.scheduleRecursive(function(t){var n;if(!(o.length>0))return void(u=!1);n=o.shift();var i=new en;s.add(i),i.setDisposable(n.subscribe(function(t){r.onNext(t);var n=null;try{n=e(t)}catch(i){r.onError(i)}o.push(n),a++,c()},r.onError.bind(r),function(){s.remove(i),a--,0===a&&r.onCompleted()})),t()}))};return o.push(n),a++,c(),s},this)},Pn.forkJoin=function(){var e=[];if(Array.isArray(arguments[0]))e=arguments[0];else for(var t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return new no(function(t){var n=e.length;if(0===n)return t.onCompleted(),$t;for(var r=new Gt,o=!1,i=new Array(n),s=new Array(n),a=new Array(n),u=0;n>u;u++)!function(u){var c=e[u];Ye(c)&&(c=Vn(c)),r.add(c.subscribe(function(e){o||(i[u]=!0,a[u]=e)},function(e){o=!0,t.onError(e),r.dispose()},function(){if(!o){if(!i[u])return void t.onCompleted();s[u]=!0;for(var e=0;n>e;e++)if(!s[e])return;o=!0,t.onNext(a),t.onCompleted()}}))}(u);return r})},Cn.forkJoin=function(e,t){var n=this;return new no(function(r){var o,i,s=!1,a=!1,u=!1,c=!1,l=new en,p=new en;return Ye(e)&&(e=Vn(e)),l.setDisposable(n.subscribe(function(e){u=!0,o=e},function(e){p.dispose(),r.onError(e)},function(){if(s=!0,a)if(u)if(c){var e;try{e=t(o,i)}catch(n){return void r.onError(n)}r.onNext(e),r.onCompleted()}else r.onCompleted();else r.onCompleted()})),p.setDisposable(e.subscribe(function(e){c=!0,i=e},function(e){l.dispose(),r.onError(e)},function(){if(a=!0,s)if(u)if(c){var e;try{e=t(o,i)}catch(n){return void r.onError(n)}r.onNext(e),r.onCompleted()}else r.onCompleted();else r.onCompleted()})),new Gt(l,p)},n)},Cn.manySelect=Cn.extend=function(e,t){an(t)||(t=pn);var n=this;return qn(function(){var r;return n.map(function(e){var t=new $r(e);return r&&r.onNext(e),r=t,t}).tap(Be,function(e){r&&r.onError(e)},function(){r&&r.onCompleted()}).observeOn(t).map(e)},n)};var $r=function(e){function t(e){var t=this,n=new Gt;return n.add(hn.schedule(function(){e.onNext(t.head),n.add(t.tail.mergeAll().subscribe(e))})),n}function n(n){e.call(this,t),this.head=n,this.tail=new so}return Bt(n,e),qt(n.prototype,Tn,{onCompleted:function(){this.onNext(Pn.empty())},onError:function(e){this.onNext(Pn["throw"](e))},onNext:function(e){this.tail.onNext(e),this.tail.onCompleted()}}),n}(Pn),Jr=We.Map||function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype["delete"]=function(e){var t=this._keys.indexOf(e);return-1===t?!1:(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?s:this._values[t]},e.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},e.prototype.forEach=function(e,t){for(var n=0;n<this.size;n++)e.call(t,this._values[n],this._keys[n])},e}();ye.prototype.and=function(e){return new ye(this.patterns.concat(e))},ye.prototype.thenDo=function(e){return new ge(this,e)},ge.prototype.activate=function(e,t,n){for(var r=this,o=[],i=0,s=this.expression.patterns.length;s>i;i++)o.push(be(e,this.expression.patterns[i],t.onError.bind(t)));var a=new we(o,function(){var e;try{e=r.selector.apply(r,arguments)}catch(n){return void t.onError(n)}t.onNext(e)},function(){for(var e=0,t=o.length;t>e;e++)o[e].removeActivePlan(a);n(a)});for(i=0,s=o.length;s>i;i++)o[i].addActivePlan(a);return a},we.prototype.dequeue=function(){this.joinObservers.forEach(function(e){e.queue.shift()})},we.prototype.match=function(){var e,t,n=!0;for(e=0,t=this.joinObserverArray.length;t>e;e++)if(0===this.joinObserverArray[e].queue.length){n=!1;break}if(n){var r=[],o=!1;for(e=0,t=this.joinObserverArray.length;t>e;e++)r.push(this.joinObserverArray[e].queue[0]),"C"===this.joinObserverArray[e].queue[0].kind&&(o=!0);if(o)this.onCompleted();else{this.dequeue();var i=[];for(e=0,t=r.length;e<r.length;e++)i.push(r[e].value);this.onNext.apply(this,i)}}};var Zr=function(e){function t(t,n){e.call(this),this.source=t,this.onError=n,this.queue=[],this.activePlans=[],this.subscription=new en,this.isDisposed=!1}Bt(t,e);var n=t.prototype;return n.next=function(e){if(!this.isDisposed){if("E"===e.kind)return this.onError(e.exception);this.queue.push(e);for(var t=this.activePlans.slice(0),n=0,r=t.length;r>n;n++)t[n].match()}},n.error=Be,n.completed=Be,n.addActivePlan=function(e){this.activePlans.push(e)},n.subscribe=function(){this.subscription.setDisposable(this.source.materialize().subscribe(this))},n.removeActivePlan=function(e){this.activePlans.splice(this.activePlans.indexOf(e),1),0===this.activePlans.length&&this.dispose()},n.dispose=function(){e.prototype.dispose.call(this),this.isDisposed||(this.isDisposed=!0,this.subscription.dispose())},t}(_n);Cn.and=function(e){return new ye([this,e])},Cn.thenDo=function(e){return new ye([this]).thenDo(e)},Pn.when=function(){var e,t=arguments.length;if(Array.isArray(arguments[0]))e=arguments[0];else{e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return new no(function(t){var n=[],r=new Jr,o=xn(function(e){t.onNext(e)},function(e){r.forEach(function(t){t.onError(e)}),t.onError(e)},function(e){t.onCompleted()});try{for(var i=0,s=e.length;s>i;i++)n.push(e[i].activate(r,o,function(e){var r=n.indexOf(e);n.splice(r,1),0===n.length&&t.onCompleted()}))}catch(a){ur(a).subscribe(t)}var u=new Gt;return r.forEach(function(e){e.subscribe(),u.add(e)}),u})};var eo=Pn.interval=function(e,t){return Ce(e,e,an(t)?t:vn)};Pn.timer=function(e,t,n){var r;return an(n)||(n=vn),null!=t&&"number"==typeof t?r=t:an(t)&&(n=t),e instanceof Date&&r===s?Ee(e.getTime(),n):e instanceof Date&&r!==s?Te(e.getTime(),t,n):r===s?xe(e,n):Ce(e,r,n)},Cn.delay=function(){if("number"==typeof arguments[0]||arguments[0]instanceof Date){var e=arguments[0],t=arguments[1];return an(t)||(t=vn),e instanceof Date?Se(this,e,t):_e(this,e,t)}if(Qe(arguments[0]))return Ne(this,arguments[0],arguments[1]);throw new Error("Invalid arguments")},Cn.debounce=function(){if(Qe(arguments[0]))return De(this,arguments[0]);if("number"==typeof arguments[0])return Oe(this,arguments[0],arguments[1]);throw new Error("Invalid arguments")},Cn.windowWithTime=function(e,t,n){var r,o=this;return null==t&&(r=e),an(n)||(n=vn),"number"==typeof t?r=t:an(t)&&(r=e,n=t),new no(function(t){function i(){var e=new en,o=!1,s=!1;p.setDisposable(e),c===u?(o=!0,s=!0):u>c?o=!0:s=!0;var d=o?c:u,f=d-h;h=d,o&&(c+=r),s&&(u+=r),e.setDisposable(n.scheduleWithRelative(f,function(){if(s){var e=new io;l.push(e),t.onNext(zt(e,a))}o&&l.shift().onCompleted(),i()}))}var s,a,u=r,c=e,l=[],p=new tn,h=0;return s=new Gt(p),a=new nn(s),l.push(new io),t.onNext(zt(l[0],a)),i(),s.add(o.subscribe(function(e){for(var t=0,n=l.length;n>t;t++)l[t].onNext(e)},function(e){for(var n=0,r=l.length;r>n;n++)l[n].onError(e);t.onError(e)},function(){for(var e=0,n=l.length;n>e;e++)l[e].onCompleted();t.onCompleted()})),a},o)},Cn.windowWithTimeOrCount=function(e,t,n){var r=this;return an(n)||(n=vn),new no(function(o){function i(t){var r=new en;s.setDisposable(r),r.setDisposable(n.scheduleWithRelative(e,function(){if(t===l){c=0;var e=++l;p.onCompleted(),p=new io,o.onNext(zt(p,u)),i(e)}}))}var s=new tn,a=new Gt(s),u=new nn(a),c=0,l=0,p=new io;return o.onNext(zt(p,u)),i(0),a.add(r.subscribe(function(e){var n=0,r=!1;p.onNext(e),++c===t&&(r=!0,c=0,n=++l,p.onCompleted(),p=new io,o.onNext(zt(p,u))),r&&i(n)},function(e){p.onError(e),o.onError(e)},function(){p.onCompleted(),o.onCompleted()})),u},r)},Cn.bufferWithTime=function(e,t,n){return this.windowWithTime(e,t,n).flatMap(q)},Cn.bufferWithTimeOrCount=function(e,t,n){return this.windowWithTimeOrCount(e,t,n).flatMap(q)},Cn.timeInterval=function(e){var t=this;return an(e)||(e=vn),qn(function(){var n=e.now();return t.map(function(t){var r=e.now(),o=r-n;return n=r,{value:t,interval:o}})})},Cn.timestamp=function(e){
+return an(e)||(e=vn),this.map(function(t){return{value:t,timestamp:e.now()}})},Cn.sample=Cn.throttleLatest=function(e,t){return an(t)||(t=vn),"number"==typeof e?Pe(this,eo(e,t)):Pe(this,e)};var to=Ve.TimeoutError=function(e){this.message=e||"Timeout has occurred",this.name="TimeoutError",Error.call(this)};to.prototype=Object.create(Error.prototype),Cn.timeout=function(){var e=arguments[0];if(e instanceof Date||"number"==typeof e)return Me(this,e,arguments[1],arguments[2]);if(Pn.isObservable(e)||Qe(e))return ke(this,e,arguments[1],arguments[2]);throw new Error("Invalid arguments")},Pn.generateWithAbsoluteTime=function(e,t,n,r,o,i){return an(i)||(i=vn),new no(function(s){var a=!0,u=!1;return i.scheduleRecursiveWithAbsoluteAndState(e,i.now(),function(e,i){u&&s.onNext(e);try{if(a?a=!1:e=n(e),u=t(e))var c=r(e),l=o(e)}catch(p){return void s.onError(p)}u?i(c,l):s.onCompleted()})})},Pn.generateWithRelativeTime=function(e,t,n,r,o,i){return an(i)||(i=vn),new no(function(s){var a=!0,u=!1;return i.scheduleRecursiveWithRelativeAndState(e,0,function(e,i){u&&s.onNext(e);try{if(a?a=!1:e=n(e),u=t(e))var c=r(e),l=o(e)}catch(p){return void s.onError(p)}u?i(c,l):s.onCompleted()})})},Cn.delaySubscription=function(e,t){var n=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative",r=this;return an(t)||(t=vn),new no(function(o){var i=new tn;return i.setDisposable(t[n](e,function(){i.setDisposable(r.subscribe(o))})),i},this)},Cn.skipLastWithTime=function(e,t){an(t)||(t=vn);var n=this;return new no(function(r){var o=[];return n.subscribe(function(n){var i=t.now();for(o.push({interval:i,value:n});o.length>0&&i-o[0].interval>=e;)r.onNext(o.shift().value)},function(e){r.onError(e)},function(){for(var n=t.now();o.length>0&&n-o[0].interval>=e;)r.onNext(o.shift().value);r.onCompleted()})},n)},Cn.takeLastWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(function(r){var o=[];return n.subscribe(function(n){var r=t.now();for(o.push({interval:r,value:n});o.length>0&&r-o[0].interval>=e;)o.shift()},function(e){r.onError(e)},function(){for(var n=t.now();o.length>0;){var i=o.shift();n-i.interval<=e&&r.onNext(i.value)}r.onCompleted()})},n)},Cn.takeLastBufferWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(function(r){var o=[];return n.subscribe(function(n){var r=t.now();for(o.push({interval:r,value:n});o.length>0&&r-o[0].interval>=e;)o.shift()},function(e){r.onError(e)},function(){for(var n=t.now(),i=[];o.length>0;){var s=o.shift();n-s.interval<=e&&i.push(s.value)}r.onNext(i),r.onCompleted()})},n)},Cn.takeWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(function(r){return new Gt(t.scheduleWithRelative(e,function(){r.onCompleted()}),n.subscribe(r))},n)},Cn.skipWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(function(r){var o=!1;return new Gt(t.scheduleWithRelative(e,function(){o=!0}),n.subscribe(function(e){o&&r.onNext(e)},r.onError.bind(r),r.onCompleted.bind(r)))},n)},Cn.skipUntilWithTime=function(e,t){an(t)||(t=vn);var n=this,r=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new no(function(o){var i=!1;return new Gt(t[r](e,function(){i=!0}),n.subscribe(function(e){i&&o.onNext(e)},function(e){o.onError(e)},function(){o.onCompleted()}))},n)},Cn.takeUntilWithTime=function(e,t){an(t)||(t=vn);var n=this,r=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new no(function(o){return new Gt(t[r](e,function(){o.onCompleted()}),n.subscribe(o))},n)},Cn.throttle=function(e,t){an(t)||(t=vn);var n=+e||0;if(0>=n)throw new RangeError("windowDuration cannot be less or equal zero.");var r=this;return new no(function(e){var o=0;return r.subscribe(function(r){var i=t.now();(0===o||i-o>=n)&&(o=i,e.onNext(r))},function(t){e.onError(t)},function(){e.onCompleted()})},r)},Cn.transduce=function(e){function t(e){return{"@@transducer/init":function(){return e},"@@transducer/step":function(e,t){return e.onNext(t)},"@@transducer/result":function(e){return e.onCompleted()}}}var n=this;return new no(function(r){var o=e(t(r));return n.subscribe(function(e){var t=$e(o["@@transducer/step"]).call(o,r,e);t===Xe&&r.onError(t.e)},function(e){r.onError(e)},function(){o["@@transducer/result"](r)})},n)},Cn.switchFirst=function(){var e=this;return new no(function(t){var n=!1,r=!1,o=new en,i=new Gt;return i.add(o),o.setDisposable(e.subscribe(function(e){if(!n){n=!0,Ye(e)&&(e=Vn(e));var o=new en;i.add(o),o.setDisposable(e.subscribe(function(e){t.onNext(e)},function(e){t.onError(e)},function(){i.remove(o),n=!1,r&&1===i.length&&t.onCompleted()}))}},function(e){t.onError(e)},function(){r=!0,!n&&1===i.length&&t.onCompleted()})),i},this)},Cn.flatMapFirst=Cn.selectManyFirst=function(e,t,n){return new Mn(this,e,t,n).switchFirst()},Ve.Observable.prototype.flatMapWithMaxConcurrent=function(e,t,n,r){return new Mn(this,t,n,r).merge(e)},Ve.VirtualTimeScheduler=function(e){function t(){return this.toDateTimeOffset(this.clock)}function n(e,t){return this.scheduleAbsoluteWithState(e,this.clock,t)}function r(e,t,n){return this.scheduleRelativeWithState(e,this.toRelative(t),n)}function o(e,t,n){return this.scheduleRelativeWithState(e,this.toRelative(t-this.now()),n)}function i(e,t){return t(),$t}function s(i,s){this.clock=i,this.comparer=s,this.isEnabled=!1,this.queue=new Kt(1024),e.call(this,t,n,r,o)}Bt(s,e);var a=s.prototype;return a.add=ut,a.toDateTimeOffset=ut,a.toRelative=ut,a.schedulePeriodicWithState=function(e,t,n){var r=new ln(this,e,t,n);return r.start()},a.scheduleRelativeWithState=function(e,t,n){var r=this.add(this.clock,t);return this.scheduleAbsoluteWithState(e,r,n)},a.scheduleRelative=function(e,t){return this.scheduleRelativeWithState(t,e,i)},a.start=function(){if(!this.isEnabled){this.isEnabled=!0;do{var e=this.getNext();null!==e?(this.comparer(e.dueTime,this.clock)>0&&(this.clock=e.dueTime),e.invoke()):this.isEnabled=!1}while(this.isEnabled)}},a.stop=function(){this.isEnabled=!1},a.advanceTo=function(e){var t=this.comparer(this.clock,e);if(this.comparer(this.clock,e)>0)throw new it;if(0!==t&&!this.isEnabled){this.isEnabled=!0;do{var n=this.getNext();null!==n&&this.comparer(n.dueTime,e)<=0?(this.comparer(n.dueTime,this.clock)>0&&(this.clock=n.dueTime),n.invoke()):this.isEnabled=!1}while(this.isEnabled);this.clock=e}},a.advanceBy=function(e){var t=this.add(this.clock,e),n=this.comparer(this.clock,t);if(n>0)throw new it;0!==n&&this.advanceTo(t)},a.sleep=function(e){var t=this.add(this.clock,e);if(this.comparer(this.clock,t)>=0)throw new it;this.clock=t},a.getNext=function(){for(;this.queue.length>0;){var e=this.queue.peek();if(!e.isCancelled())return e;this.queue.dequeue()}return null},a.scheduleAbsolute=function(e,t){return this.scheduleAbsoluteWithState(t,e,i)},a.scheduleAbsoluteWithState=function(e,t,n){function r(e,t){return o.queue.remove(i),n(e,t)}var o=this,i=new rn(this,e,r,t,this.comparer);return this.queue.enqueue(i),i.disposable},s}(on),Ve.HistoricalScheduler=function(e){function t(t,n){var r=null==t?0:t,o=n||He;e.call(this,r,o)}Bt(t,e);var n=t.prototype;return n.add=function(e,t){return e+t},n.toDateTimeOffset=function(e){return new Date(e).getTime()},n.toRelative=function(e){return e},t}(Ve.VirtualTimeScheduler);var no=Ve.AnonymousObservable=function(e){function t(e){return e&&Qe(e.dispose)?e:Qe(e)?Xt(e):$t}function n(e,n){var r=n[0],o=n[1],i=$e(o.__subscribe).call(o,r);return i!==Xe||r.fail(Xe.e)?void r.setDisposable(t(i)):c(Xe.e)}function r(e){var t=new ro(e),r=[t,this];return hn.scheduleRequired()?hn.scheduleWithState(r,n):n(null,r),t}function o(t,n){this.source=n,this.__subscribe=t,e.call(this,r)}return Bt(o,e),o}(Pn),ro=function(e){function t(t){e.call(this),this.observer=t,this.m=new en}Bt(t,e);var n=t.prototype;return n.next=function(e){var t=$e(this.observer.onNext).call(this.observer,e);t===Xe&&(this.dispose(),c(t.e))},n.error=function(e){var t=$e(this.observer.onError).call(this.observer,e);this.dispose(),t===Xe&&c(t.e)},n.completed=function(){var e=$e(this.observer.onCompleted).call(this.observer);this.dispose(),e===Xe&&c(e.e)},n.setDisposable=function(e){this.m.setDisposable(e)},n.getDisposable=function(){return this.m.getDisposable()},n.dispose=function(){e.prototype.dispose.call(this),this.m.dispose()},t}(_n),oo=function(e){function t(e){return this.underlyingObservable.subscribe(e)}function n(n,r,o){e.call(this,t),this.key=n,this.underlyingObservable=o?new no(function(e){return new Gt(o.getDisposable(),r.subscribe(e))}):r}return Bt(n,e),n}(Pn),io=Ve.Subject=function(e){function t(e){return Zt(this),this.isStopped?this.hasError?(e.onError(this.error),$t):(e.onCompleted(),$t):(this.observers.push(e),new Kr(this,e))}function n(){e.call(this,t),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}return Bt(n,e),qt(n.prototype,Tn.prototype,{hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(Zt(this),!this.isStopped){this.isStopped=!0;for(var e=0,t=a(this.observers),n=t.length;n>e;e++)t[e].onCompleted();this.observers.length=0}},onError:function(e){if(Zt(this),!this.isStopped){this.isStopped=!0,this.error=e,this.hasError=!0;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onError(e);this.observers.length=0}},onNext:function(e){if(Zt(this),!this.isStopped)for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onNext(e)},dispose:function(){this.isDisposed=!0,this.observers=null}}),n.create=function(e,t){return new ao(e,t)},n}(Pn),so=Ve.AsyncSubject=function(e){function t(e){return Zt(this),this.isStopped?(this.hasError?e.onError(this.error):this.hasValue?(e.onNext(this.value),e.onCompleted()):e.onCompleted(),$t):(this.observers.push(e),new Kr(this,e))}function n(){e.call(this,t),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}return Bt(n,e),qt(n.prototype,Tn,{hasObservers:function(){return Zt(this),this.observers.length>0},onCompleted:function(){var e,t;if(Zt(this),!this.isStopped){this.isStopped=!0;var n=a(this.observers),t=n.length;if(this.hasValue)for(e=0;t>e;e++){var r=n[e];r.onNext(this.value),r.onCompleted()}else for(e=0;t>e;e++)n[e].onCompleted();this.observers.length=0}},onError:function(e){if(Zt(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=e;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onError(e);this.observers.length=0}},onNext:function(e){Zt(this),this.isStopped||(this.value=e,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.exception=null,this.value=null}}),n}(Pn),ao=Ve.AnonymousSubject=function(e){function t(e){return this.observable.subscribe(e)}function n(n,r){this.observer=n,this.observable=r,e.call(this,t)}return Bt(n,e),qt(n.prototype,Tn.prototype,{onCompleted:function(){this.observer.onCompleted()},onError:function(e){this.observer.onError(e)},onNext:function(e){this.observer.onNext(e)}}),n}(Pn);Ve.Pauser=function(e){function t(){e.call(this)}return Bt(t,e),t.prototype.pause=function(){this.onNext(!1)},t.prototype.resume=function(){this.onNext(!0)},t}(io),We.Rx=Ve,r=function(){return Ve}.call(t,n,t,e),!(r!==s&&(e.exports=r));var uo=f()}).call(this)}).call(t,n(159)(e),function(){return this}(),n(1))},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=p[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(a(r.parts[i],t))}else{for(var s=[],i=0;i<r.parts.length;i++)s.push(a(r.parts[i],t));p[r.id]={id:r.id,refs:1,parts:s}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],s=o[1],a=o[2],u=o[3],c={css:s,media:a,sourceMap:u};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function i(){var e=document.createElement("style"),t=f();return e.type="text/css",t.appendChild(e),e}function s(){var e=document.createElement("link"),t=f();return e.rel="stylesheet",t.appendChild(e),e}function a(e,t){var n,r,o;if(t.singleton){var a=v++;n=m||(m=i()),r=u.bind(null,n,a,!1),o=u.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(),r=l.bind(null,n),o=function(){n.parentNode.removeChild(n),n.href&&URL.revokeObjectURL(n.href)}):(n=i(),r=c.bind(null,n),o=function(){n.parentNode.removeChild(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function u(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function c(e,t){var n=t.css,r=t.media;if(t.sourceMap,r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function l(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var p={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},d=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),f=h(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,v=0;e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=d());var n=o(e);return r(n,t),function(e){for(var i=[],s=0;s<n.length;s++){var a=n[s],u=p[a.id];u.refs--,i.push(u)}if(e){var c=o(e);r(c,t)}for(var s=0;s<i.length;s++){var u=i[s];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete p[u.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r=n(194);"string"==typeof r&&(r=[[e.id,r,""]]),n(315)(r,{}),r.locals&&(e.exports=r.locals)}])));
+//# sourceMappingURL=settings-app.js.map
\ No newline at end of file

=== added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dhis-web-settings.png'
Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dhis-web-settings.png	1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dhis-web-settings.png	2015-10-15 14:07:18 +0000 differ