diff --git a/api.proto b/api.proto index 7ea3ef5..a988fbb 100644 --- a/api.proto +++ b/api.proto @@ -97,6 +97,8 @@ message CameraSettings { } message BoothSettings { + required ListSetting language_choice = 5; + required BoolSetting storage_enabled = 10; required BoolSetting printer_enabled = 11; diff --git a/assets/agreement.txt b/assets/agreement.txt index 7e76145..fc2b472 100644 --- a/assets/agreement.txt +++ b/assets/agreement.txt @@ -1 +1,3 @@ -DIE SOFTWARE WIRD OHNE JEDE AUSDRÜCKLICHE ODER IMPLIZIERTE GARANTIE BEREITGESTELLT, EINSCHLIESSLICH DER GARANTIE ZUR BENUTZUNG FÜR DEN VORGESEHENEN ODER EINEM BESTIMMTEN ZWECK SOWIE JEGLICHER RECHTSVERLETZUNG, JEDOCH NICHT DARAUF BESCHRÄNKT. IN KEINEM FALL SIND DIE AUTOREN ODER COPYRIGHTINHABER FÜR JEGLICHEN SCHADEN ODER SONSTIGE ANSPRÜCHE HAFTBAR ZU MACHEN, OB INFOLGE DER ERFÜLLUNG EINES VERTRAGES, EINES DELIKTES ODER ANDERS IM ZUSAMMENHANG MIT DER SOFTWARE ODER SONSTIGER VERWENDUNG DER SOFTWARE ENTSTANDEN. +THE SELF-O-MAT OPEN SOURCE SOFTWARE IS LICENSED UNDER THE MIT SOFTWARE LICENSE: + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/i18n/de.json b/i18n/de.json index b772cde..35d2541 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -11,6 +11,7 @@ "cameraName": "Kamera-Modell" }, "booth": { + "languageChoice": "Anzeigesprache", "storageEnabled": "USB-Speicher aktivieren?", "printerEnabled": "Drucker aktivieren?", "filterEnabled": "Filter-Modus", diff --git a/i18n/de_frontend.json b/i18n/de_frontend.json new file mode 100644 index 0000000..0cff031 --- /dev/null +++ b/i18n/de_frontend.json @@ -0,0 +1,13 @@ +{ + "frontend": { + "adjusting_focus": "Fokus wird gesucht", + "template_saved": "Template wurde gespeichert", + "print_in_progress": "Foto wird gedruckt...", + "printer_error": "Drucker wurde gestoppt", + "check_camera": "Prüfe deine Kamera", + "no_storage_found": "Kein Speichermedium gefunden", + "storage_space_low": "Geringe Speicherkapazität: ", + "storage_error": "Fehler beim Speichern des Fotos", + "cancel_print": "Druck abbrechen?" + } +} \ No newline at end of file diff --git a/i18n/en.json b/i18n/en.json index 1ff2a92..4babb8b 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -11,6 +11,7 @@ "cameraName": "Camera Name" }, "booth": { + "languageChoice": "Display Language", "storageEnabled": "USB Storage Enabled?", "printerEnabled": "Printer Enabled?", "filterEnabled": "Filter Mode", diff --git a/i18n/en_frontend.json b/i18n/en_frontend.json new file mode 100644 index 0000000..8c39678 --- /dev/null +++ b/i18n/en_frontend.json @@ -0,0 +1,13 @@ +{ + "frontend": { + "adjusting_focus": "Adjusting Focus..", + "template_saved": "Template saved successfully", + "print_in_progress": "Printing in Progress...", + "printer_error": "Printer Error!", + "check_camera": "Please check your camera", + "no_storage_found": "No USB Storage found", + "storage_space_low": "Low Storage: ", + "storage_error": "Error writing to USB storage.", + "cancel_print": "Cancel Printing?" + } +} \ No newline at end of file diff --git a/settings/box_kit_v1.json b/settings/box_kit_v1.json index ecf295e..4dac160 100644 --- a/settings/box_kit_v1.json +++ b/settings/box_kit_v1.json @@ -7,5 +7,6 @@ "button_port_name": "/dev/ttyS0", "image_dir": "/media/usb", "show_led_setup": false, - "force_image_dir_mountpoint": 1 + "force_image_dir_mountpoint": 1, + "fullscreen": true } diff --git a/settings/box_kit_v2.json b/settings/box_kit_v2.json index 4f128b6..26928a3 100644 --- a/settings/box_kit_v2.json +++ b/settings/box_kit_v2.json @@ -7,5 +7,6 @@ "button_port_name": "/dev/ttyS0", "image_dir": "/media/usb", "show_led_setup": false, - "force_image_dir_mountpoint": 1 + "force_image_dir_mountpoint": 1, + "fullscreen": true } diff --git a/settings/box_kit_v2_1.json b/settings/box_kit_v2_1.json index 4f128b6..26928a3 100644 --- a/settings/box_kit_v2_1.json +++ b/settings/box_kit_v2_1.json @@ -7,5 +7,6 @@ "button_port_name": "/dev/ttyS0", "image_dir": "/media/usb", "show_led_setup": false, - "force_image_dir_mountpoint": 1 + "force_image_dir_mountpoint": 1, + "fullscreen": true } diff --git a/settings/dev.json b/settings/dev.json index 80be2f2..25d4737 100644 --- a/settings/dev.json +++ b/settings/dev.json @@ -7,5 +7,6 @@ "button_port_name": "/dev/ttyUSB", "image_dir": "/tmp", "show_led_setup": true, - "force_image_dir_mountpoint": 0 + "force_image_dir_mountpoint": 0, + "fullscreen": false } diff --git a/settings/hardware_kit_v1.json b/settings/hardware_kit_v1.json index 26cb113..bcdc191 100644 --- a/settings/hardware_kit_v1.json +++ b/settings/hardware_kit_v1.json @@ -7,5 +7,6 @@ "button_port_name": "/dev/ttyS0", "image_dir": "/media/usb", "show_led_setup": true, - "force_image_dir_mountpoint": 1 + "force_image_dir_mountpoint": 1, + "fullscreen": true } diff --git a/settings/nop.json b/settings/nop.json index 47d8f21..63c7bed 100644 --- a/settings/nop.json +++ b/settings/nop.json @@ -1,11 +1,12 @@ { "camera_type": "nop", - "has_flash": true, - "has_button": true, + "has_flash": false, + "has_button": false, "disable_watchdog": true, "debug": false, "button_port_name": "/dev/ttyS0", "image_dir": "/tmp", "show_led_setup": false, - "force_image_dir_mountpoint": 0 + "force_image_dir_mountpoint": 0, + "fullscreen": false } diff --git a/src/api/BoothApi.cpp b/src/api/BoothApi.cpp index c03b7ad..9321859 100644 --- a/src/api/BoothApi.cpp +++ b/src/api/BoothApi.cpp @@ -559,6 +559,19 @@ bool BoothApi::start() { }); + mux.handle("/booth_settings/language/which") + .post([this](served::response &res, const served::request &req) { + IntUpdate update; + if (!update.ParseFromString(req.body())) { + served::response::stock_reply(400, res); + return; + } + + logic->setLanguageChoice(update.value(), true); + + served::response::stock_reply(200, res); + }); + mux.handle("/booth_settings/filter/which") .post([this](served::response &res, const served::request &req) { IntUpdate update; @@ -596,7 +609,19 @@ bool BoothApi::start() { boost::property_tree::read_json("./i18n/en.json", locale); } + + auto controller = logic->getSelfomatController(); + + { + auto setting = currentBoothSettings.mutable_language_choice(); + setting->set_name(locale.get("api.booth.languageChoice")); + setting->set_update_url("/booth_settings/language/which"); + setting->set_currentindex(logic->getLanguageChoice()); + for(auto &choice : *logic->getLanguageChoices()) + setting->add_values(choice); + } + { auto setting = currentBoothSettings.mutable_storage_enabled(); setting->set_name(locale.get("api.booth.storageEnabled")); diff --git a/src/logic/BoothLogic.cpp b/src/logic/BoothLogic.cpp index 036cb58..9dfe69c 100644 --- a/src/logic/BoothLogic.cpp +++ b/src/logic/BoothLogic.cpp @@ -208,7 +208,7 @@ void BoothLogic::cameraThread() { if (printerEnabled && !printCanceled && printerManager.getCurrentPrinterState() != STATE_STOPPED) { - gui->addAlert(ALERT_PRINTER_HINT, L"Foto wird gedruckt...", true, true); + gui->addAlert(ALERT_PRINTER_HINT, getTranslation("frontend.print_in_progress"), true, true); } } else { LOG_E(TAG, "Got an error while waiting for image"); @@ -280,7 +280,7 @@ void BoothLogic::logicThread() { // check the printer state printerManager.refreshPrinterState(); if (printerManager.getCurrentPrinterState() == STATE_STOPPED && printerEnabled) { - gui->addAlert(ALERT_PRINTER, L"Drucker wurde gestoppt"); + gui->addAlert(ALERT_PRINTER, getTranslation("frontend.printer_error")); } else { gui->removeAlert(ALERT_PRINTER); } @@ -288,7 +288,7 @@ void BoothLogic::logicThread() { // check the camera state if (camera->getState() != STATE_WORKING) { - gui->addAlert(ALERT_CAMERA, L"Prüfe deine Kamera"); + gui->addAlert(ALERT_CAMERA, getTranslation("frontend.check_camera")); } else { gui->removeAlert(ALERT_CAMERA); } @@ -296,9 +296,9 @@ void BoothLogic::logicThread() { int freeStorage = getFreeStorageSpaceMB(); if (freeStorage < 500) { if (freeStorage == -1) - gui->addAlert(ALERT_STORAGE, L"Kein Speichermedium gefunden"); + gui->addAlert(ALERT_STORAGE, getTranslation("frontend.no_storage_found")); else - gui->addAlert(ALERT_STORAGE, L"Geringe Speicherkapazität: " + to_wstring(freeStorage) + L"MB"); + gui->addAlert(ALERT_STORAGE, getTranslation("frontend.storage_space_low") + to_wstring(freeStorage) + L"MB"); } else { gui->removeAlert(ALERT_STORAGE); } @@ -471,7 +471,7 @@ bool BoothLogic::isMountpoint(std::string folder) { bool BoothLogic::saveImage(void *data, size_t size, std::string filename, bool showAlert) { auto success = saveImage(data, size, filename); if (!success && showAlert) { - gui->addAlert(ALERT_STORAGE_ERROR, L"Fehler beim Speichern des Fotos", true); + gui->addAlert(ALERT_STORAGE_ERROR, getTranslation("frontend.storage_error"), true); } return success; @@ -581,6 +581,8 @@ void BoothLogic::readSettings() { setFilterGain(ptree.get("filter_gain", 1.0)); setDebugLogEnabled(ptree.get("debug_log_enabled", false)); setAutofocusBeforeTrigger(ptree.get("autofocus_before_trigger", false)); + setLanguageChoice(ptree.get("frontend_language_choice", 0)); + if (!success) writeSettings(); @@ -598,6 +600,7 @@ void BoothLogic::writeSettings() { ptree.put("filter_choice", filterChoice); ptree.put("debug_log_enabled", getDebugLogEnabled()); ptree.put("autofocus_before_trigger", this->autofocus_before_trigger); + ptree.put("frontend_language_choice", this->languageChoice); try { boost::property_tree::write_json(std::string(getenv("HOME")) + "/.selfomat_settings.json", ptree); @@ -640,7 +643,9 @@ bool BoothLogic::getTemplateLoaded() { void BoothLogic::adjustFocus() { camera->autofocusBlocking(); - gui->addAlert(ALERT_CAMERA_HINT, L"Fokus wird gesucht", true, true); + + + gui->addAlert(ALERT_CAMERA_HINT, getTranslation("frontend.adjusting_focus"), true, true); } SelfomatController *BoothLogic::getSelfomatController() { @@ -661,7 +666,7 @@ bool BoothLogic::updateTemplate(void *data, size_t size) { bool result = imageProcessor.updateTemplate(data, size); gui->reloadTemplate(); if (result) { - gui->addAlert(ALERT_TEMPLATE, L"Template wurde gespeichert", true, true); + gui->addAlert(ALERT_TEMPLATE, getTranslation("frontend.template_saved"), true, true); } return result; } @@ -681,6 +686,32 @@ void BoothLogic::setFilterChoice(int choice, bool persist) { } } +const std::vector *BoothLogic::getLanguageChoices() { + return &languageNames; +} + +int BoothLogic::getLanguageChoice() { + return languageChoice; +} + +void BoothLogic::setLanguageChoice(int choice, bool persist) { + if(choice < 0 || choice >= languageIDs.size()) { + choice = 0; + } + languageChoice = choice; + + // load the language into the property tree + try { + boost::property_tree::read_json("./i18n/" + languageIDs[choice] + "_frontend.json", locale); + } catch (boost::exception &e) { + boost::property_tree::read_json("./i18n/en_frontend.json", locale); + } + + if (persist) { + writeSettings(); + } +} + double BoothLogic::getFilterGain() { return filterGain; } @@ -745,3 +776,7 @@ void BoothLogic::setAutofocusBeforeTrigger(bool newValue, bool persist) { if (persist) writeSettings(); } + +std::wstring BoothLogic::getTranslation(std::string id) { + return converter.from_bytes(locale.get(id)); +} diff --git a/src/logic/BoothLogic.h b/src/logic/BoothLogic.h index 38507ed..165598c 100644 --- a/src/logic/BoothLogic.h +++ b/src/logic/BoothLogic.h @@ -80,6 +80,15 @@ namespace selfomat { private: + + // TODO: maybe migrate from std::wstring to std::string or convert on load + std::wstring_convert> converter; + const std::vector languageNames { "English (EN)", "German (DE)" }; + const std::vector languageIDs { "en", "de" }; + int languageChoice = 0; + boost::property_tree::ptree locale; + + static std::string TAG; SelfomatController selfomatController; bool show_led_setup; @@ -237,6 +246,11 @@ namespace selfomat { void setAutofocusBeforeTrigger(bool newValue, bool persist = false); bool getAutofocusBeforeTrigger(); + const std::vector * getLanguageChoices(); + int getLanguageChoice(); + void setLanguageChoice(int choice, bool persist = false); + + std::wstring getTranslation(std::string id); }; } diff --git a/src/logic/ILogicController.h b/src/logic/ILogicController.h index 33d0282..c184d83 100644 --- a/src/logic/ILogicController.h +++ b/src/logic/ILogicController.h @@ -1,5 +1,7 @@ #ifndef SELF_O_MAT_ILOGICCONTROLLER_H #define SELF_O_MAT_ILOGICCONTROLLER_H +#include + namespace selfomat { namespace logic { @@ -9,6 +11,7 @@ namespace selfomat { virtual void acceptAgreement() = 0; virtual void cancelPrint() = 0; virtual void stop() = 0; + virtual std::wstring getTranslation(std::string id) = 0; }; } } diff --git a/src/main.cpp b/src/main.cpp index 497febc..f59aeff 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -121,6 +121,7 @@ int main(int argc, char *argv[]) { bool show_led_setup = false; bool force_image_dir_mountpoint = true; bool autofocus_before_trigger = false; + bool fullscreen = true; string button_port_name; string image_dir; @@ -146,6 +147,7 @@ int main(int argc, char *argv[]) { show_led_setup = ptree.get("show_led_setup"); force_image_dir_mountpoint = ptree.get("force_image_dir_mountpoint", true); autofocus_before_trigger = ptree.get("autofocus_before_trigger", false); + fullscreen = ptree.get("fullscreen", true); } catch (boost::exception &e) { LOG_E(TAG, "Error loading properties. Using defaults."); } @@ -156,10 +158,11 @@ int main(int argc, char *argv[]) { LOG_D(TAG, "Has Flash: ", std::to_string(has_flash)); LOG_D(TAG, "Force Imagedir mountpoint: ", std::to_string(force_image_dir_mountpoint)); LOG_D(TAG, "Autofocus Before Trigger: ", std::to_string(autofocus_before_trigger)); + LOG_D(TAG, "Fullscreen: ", std::to_string(fullscreen)); // We'll set the controller later when logic is initialized - BoothGui *boothGuiPtr = new BoothGui(debug, nullptr); + BoothGui *boothGuiPtr = new BoothGui(fullscreen, debug, nullptr); p_gui = boothGuiPtr; if (!p_gui->start()) { LOG_E(TAG, "Error starting gui - Exiting."); diff --git a/src/ui/BoothGui.cpp b/src/ui/BoothGui.cpp index 06ed620..86b553b 100644 --- a/src/ui/BoothGui.cpp +++ b/src/ui/BoothGui.cpp @@ -9,13 +9,14 @@ using namespace selfomat::ui; std::string BoothGui::TAG = "BOOTH_GUI"; -BoothGui::BoothGui(bool debug, logic::ILogicController *logicController) : debugLogQueue(), stateTimer(), alertTimer() { +BoothGui::BoothGui(bool fullscreen, bool debug, logic::ILogicController *logicController) : debugLogQueue(), stateTimer(), alertTimer() { // TODO: fixed resolution -> variable resolution videoMode = sf::VideoMode(1280, 800); this->currentState = STATE_INIT; this->shouldShowAgreement = false; this->debug = debug; this->logicController = logicController; + this->fullscreen = fullscreen; } BoothGui::~BoothGui() { @@ -134,7 +135,9 @@ void BoothGui::renderThread() { settings.antialiasingLevel = 8; settings.majorVersion = 2; settings.minorVersion = 1; - window.create(videoMode, "self-o-mat", sf::Style::Fullscreen, settings); + auto style = fullscreen ? sf::Style::Fullscreen : sf::Style::Default; + + window.create(videoMode, "self-o-mat", style, settings); window.setVerticalSyncEnabled(true); @@ -475,7 +478,7 @@ void BoothGui::drawPrintOverlay(float percentage) { printBackground.setPosition(0, templateY); window.draw(printBackground); - printText.setString(L"Druck abbrechen?"); + printText.setString(logicController->getTranslation("frontend.cancel_print")); sf::FloatRect textRect = printText.getLocalBounds(); printText.setPosition((window.getSize().x - textRect.width) / 2.0f, templateY + 10); window.draw(printText); @@ -498,8 +501,8 @@ void BoothGui::drawPrintOverlay(float percentage) { } void BoothGui::drawAgreement(float alpha) { - std::wstring title = L"Nutzungsbedingungen"; - std::wstring button = L"Akzeptieren?"; + std::wstring title = L"MIT Software License"; + std::wstring button = L"Accept?"; std::vector blocks; u_int8_t lines = 0; u_int8_t margin = 50; diff --git a/src/ui/BoothGui.h b/src/ui/BoothGui.h index 1fbf185..77c5241 100644 --- a/src/ui/BoothGui.h +++ b/src/ui/BoothGui.h @@ -42,7 +42,7 @@ namespace selfomat { class BoothGui : public IGui { public: - explicit BoothGui(bool debug, logic::ILogicController *logicController); + explicit BoothGui(bool fullscreen, bool debug, logic::ILogicController *logicController); private: @@ -53,6 +53,7 @@ namespace selfomat { bool isRunning; bool debug; + bool fullscreen; bool printerEnabled; bool templateEnabled; diff --git a/web/src/app/protos/api.d.ts b/web/src/app/protos/api.d.ts index 8f7f380..d482d2b 100644 --- a/web/src/app/protos/api.d.ts +++ b/web/src/app/protos/api.d.ts @@ -323,6 +323,7 @@ export namespace xtech { } interface IBoothSettings { + languageChoice: xtech.selfomat.IListSetting; storageEnabled: xtech.selfomat.IBoolSetting; printerEnabled: xtech.selfomat.IBoolSetting; filterChoice: xtech.selfomat.IListSetting; @@ -348,6 +349,7 @@ export namespace xtech { class BoothSettings implements IBoothSettings { constructor(properties?: xtech.selfomat.IBoothSettings); + public languageChoice: xtech.selfomat.IListSetting; public storageEnabled: xtech.selfomat.IBoolSetting; public printerEnabled: xtech.selfomat.IBoolSetting; public filterChoice: xtech.selfomat.IListSetting; diff --git a/web/src/app/protos/api.js b/web/src/app/protos/api.js index c012d99..765290e 100644 --- a/web/src/app/protos/api.js +++ b/web/src/app/protos/api.js @@ -3466,6 +3466,7 @@ * Properties of a BoothSettings. * @memberof xtech.selfomat * @interface IBoothSettings + * @property {xtech.selfomat.IListSetting} languageChoice BoothSettings languageChoice * @property {xtech.selfomat.IBoolSetting} storageEnabled BoothSettings storageEnabled * @property {xtech.selfomat.IBoolSetting} printerEnabled BoothSettings printerEnabled * @property {xtech.selfomat.IListSetting} filterChoice BoothSettings filterChoice @@ -3504,6 +3505,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * BoothSettings languageChoice. + * @member {xtech.selfomat.IListSetting} languageChoice + * @memberof xtech.selfomat.BoothSettings + * @instance + */ + BoothSettings.prototype.languageChoice = null; + /** * BoothSettings storageEnabled. * @member {xtech.selfomat.IBoolSetting} storageEnabled @@ -3696,6 +3705,7 @@ BoothSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + $root.xtech.selfomat.ListSetting.encode(message.languageChoice, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); $root.xtech.selfomat.BoolSetting.encode(message.storageEnabled, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); $root.xtech.selfomat.BoolSetting.encode(message.printerEnabled, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); $root.xtech.selfomat.ListSetting.encode(message.filterChoice, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); @@ -3762,6 +3772,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 5: + message.languageChoice = $root.xtech.selfomat.ListSetting.decode(reader, reader.uint32()); + break; case 10: message.storageEnabled = $root.xtech.selfomat.BoolSetting.decode(reader, reader.uint32()); break; @@ -3830,6 +3843,8 @@ break; } } + if (!message.hasOwnProperty("languageChoice")) + throw $util.ProtocolError("missing required 'languageChoice'", { instance: message }); if (!message.hasOwnProperty("storageEnabled")) throw $util.ProtocolError("missing required 'storageEnabled'", { instance: message }); if (!message.hasOwnProperty("printerEnabled")) @@ -3880,6 +3895,11 @@ BoothSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + { + var error = $root.xtech.selfomat.ListSetting.verify(message.languageChoice); + if (error) + return "languageChoice." + error; + } { var error = $root.xtech.selfomat.BoolSetting.verify(message.storageEnabled); if (error) @@ -4000,6 +4020,11 @@ if (object instanceof $root.xtech.selfomat.BoothSettings) return object; var message = new $root.xtech.selfomat.BoothSettings(); + if (object.languageChoice != null) { + if (typeof object.languageChoice !== "object") + throw TypeError(".xtech.selfomat.BoothSettings.languageChoice: object expected"); + message.languageChoice = $root.xtech.selfomat.ListSetting.fromObject(object.languageChoice); + } if (object.storageEnabled != null) { if (typeof object.storageEnabled !== "object") throw TypeError(".xtech.selfomat.BoothSettings.storageEnabled: object expected"); @@ -4122,6 +4147,7 @@ options = {}; var object = {}; if (options.defaults) { + object.languageChoice = null; object.storageEnabled = null; object.printerEnabled = null; object.filterChoice = null; @@ -4144,6 +4170,8 @@ object.debugLogEnabled = null; object.triggerCounter = null; } + if (message.languageChoice != null && message.hasOwnProperty("languageChoice")) + object.languageChoice = $root.xtech.selfomat.ListSetting.toObject(message.languageChoice, options); if (message.storageEnabled != null && message.hasOwnProperty("storageEnabled")) object.storageEnabled = $root.xtech.selfomat.BoolSetting.toObject(message.storageEnabled, options); if (message.printerEnabled != null && message.hasOwnProperty("printerEnabled")) diff --git a/web/www/index.html b/web/www/index.html index 1ee02a8..516a0b1 100644 --- a/web/www/index.html +++ b/web/www/index.html @@ -20,6 +20,6 @@ - + diff --git a/web/www/main.a1d73bc64e328c904a7b.js b/web/www/main.e32f450c6371aa542226.js similarity index 82% rename from web/www/main.a1d73bc64e328c904a7b.js rename to web/www/main.e32f450c6371aa542226.js index 5b11ffb..540a966 100644 --- a/web/www/main.a1d73bc64e328c904a7b.js +++ b/web/www/main.e32f450c6371aa542226.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"+tJ4":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return function(e){for(var n=0,r=t.length;n>>0;return this.uint32(e),e&&this._push(s,e,t),this},a.prototype.string=function(t){var e=i.byteLength(t);return this.uint32(e),e&&this._push(u,e,t),this}},"4pTB":function(t,e){},"67Y/":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),o=n("FFOo");function i(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.d(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(o.a)},"6Tgl":function(t,e,n){"use strict";var r=e;function o(t,e,n){for(var r=Object.keys(e),o=0;o0)},r.Buffer=function(){try{var t=r.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(t){return"number"==typeof t?r.Buffer?r._Buffer_allocUnsafe(t):new r.Array(t):r.Buffer?r._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(t){return t?r.LongBits.from(t).toHash():r.LongBits.zeroHash},r.longFromHash=function(t,e){var n=r.LongBits.fromHash(t);return r.Long?r.Long.fromBits(n.lo,n.hi,e):n.toNumber(Boolean(e))},r.merge=o,r.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(t){for(var e={},n=0;n-1;--n)if(1===e[t[n]]&&null!=this[t[n]])return t[n]}},r.oneOfSetter=function(t){return function(e){for(var n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o0?e[0].el:void 0]}})})},o=function(){return Object(r.b)(void 0,void 0,void 0,function(){return Object(r.e)(this,function(t){switch(t.label){case 0:return[4,p()];case 1:return t.sent(),[2,l()]}})})},i=function(e,n){t.set(e,n)},c=function(t){var n=t.side;e.filter(function(e){return e.side===n&&e!==t}).forEach(function(t){return t.disabled=!0})},l=function(){return d(function(t){return t._isOpen})},f=function(){return e.some(function(t){return t.isAnimating})},d=function(t){var n=e.find(t);if(void 0!==n)return n.el},p=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(function(t){return t.componentOnReady()}))};return i("reveal",u),i("push",s),i("overlay",a),{registerAnimation:i,get:n,getMenus:function(){return Object(r.b)(void 0,void 0,void 0,function(){return Object(r.e)(this,function(t){switch(t.label){case 0:return[4,p()];case 1:return t.sent(),[2,e.map(function(t){return t.el})]}})})},getOpen:o,isEnabled:function(t){return Object(r.b)(void 0,void 0,void 0,function(){var e;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,n(t)];case 1:return(e=r.sent())?[2,!e.disabled]:[2,!1]}})})},swipeGesture:function(t,e){return Object(r.b)(void 0,void 0,void 0,function(){var o;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,n(e)];case 1:return(o=r.sent())&&(o.swipeGesture=t),[2,o]}})})},isAnimating:function(){return Object(r.b)(void 0,void 0,void 0,function(){return Object(r.e)(this,function(t){switch(t.label){case 0:return[4,p()];case 1:return t.sent(),[2,f()]}})})},isOpen:function(t){return Object(r.b)(void 0,void 0,void 0,function(){var e;return Object(r.e)(this,function(r){switch(r.label){case 0:return null==t?[3,2]:[4,n(t)];case 1:return[2,void 0!==(e=r.sent())&&e.isOpen()];case 2:return[4,o()];case 3:return[2,void 0!==(e=r.sent())]}})})},enable:function(t,e){return Object(r.b)(void 0,void 0,void 0,function(){var o;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,n(e)];case 1:return(o=r.sent())&&(o.disabled=!t),[2,o]}})})},toggle:function(t){return Object(r.b)(void 0,void 0,void 0,function(){var e;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,n(t)];case 1:return(e=r.sent())?[2,e.toggle()]:[2,!1]}})})},close:function(t){return Object(r.b)(void 0,void 0,void 0,function(){var e;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,void 0!==t?n(t):o()];case 1:return void 0!==(e=r.sent())?[2,e.close()]:[2,!1]}})})},open:function(t){return Object(r.b)(void 0,void 0,void 0,function(){var e;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,n(t)];case 1:return(e=r.sent())?[2,e.open()]:[2,!1]}})})},_getOpenSync:l,_createAnimation:function(e,n){var r=t.get(e);if(!r)throw new Error("animation not registered");return r(n)},_register:function(t){e.indexOf(t)<0&&(t.disabled||c(t),e.push(t))},_unregister:function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},_setOpen:function(t,e,n){return Object(r.b)(void 0,void 0,void 0,function(){var i;return Object(r.e)(this,function(r){switch(r.label){case 0:return f()?[2,!1]:e?[4,o()]:[3,3];case 1:return(i=r.sent())&&t.el!==i?[4,i.setOpen(!1,!1)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2,t._setOpen(e,n)]}})})},_setActiveMenu:c}}()},BEY9:function(t,e,n){"use strict";t.exports=function(t,e,n){var r=n||8192,o=r>>>1,i=null,a=r;return function(n){if(n<1||n>o)return t(n);a+n>r&&(i=t(r),a=0);var s=e.call(i,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},Bf66:function(t,e,n){var r={"./ion-action-sheet-controller_8.entry.js":["tiht",0,20],"./ion-action-sheet-ios.entry.js":["8fxj",0,21],"./ion-action-sheet-md.entry.js":["/NAp",0,22],"./ion-alert-ios.entry.js":["v39o",0,23],"./ion-alert-md.entry.js":["LO2T",0,24],"./ion-app_8-ios.entry.js":["QHj0",0,25],"./ion-app_8-md.entry.js":["qAXt",0,26],"./ion-avatar_3-ios.entry.js":["0dZQ",0,27],"./ion-avatar_3-md.entry.js":["KCJs",0,28],"./ion-back-button-ios.entry.js":["alfR",0,29],"./ion-back-button-md.entry.js":["U/jw",0,30],"./ion-backdrop-ios.entry.js":["R/c5",31],"./ion-backdrop-md.entry.js":["pA8c",32],"./ion-button_2-ios.entry.js":["Msuq",0,33],"./ion-button_2-md.entry.js":["u/MI",0,34],"./ion-card_5-ios.entry.js":["lVNE",0,35],"./ion-card_5-md.entry.js":["Gb/J",0,36],"./ion-checkbox-ios.entry.js":["2YsE",0,37],"./ion-checkbox-md.entry.js":["lSJ9",0,38],"./ion-chip-ios.entry.js":["h+UY",0,39],"./ion-chip-md.entry.js":["d14f",0,40],"./ion-col_3.entry.js":["aoqT",41],"./ion-datetime_3-ios.entry.js":["SV55",0,42],"./ion-datetime_3-md.entry.js":["KqJa",0,43],"./ion-fab_3-ios.entry.js":["QdBw",0,44],"./ion-fab_3-md.entry.js":["wLS3",0,45],"./ion-img.entry.js":["lYhy",46],"./ion-infinite-scroll_2-ios.entry.js":["W9z5",0,47],"./ion-infinite-scroll_2-md.entry.js":["Osuu",0,48],"./ion-input-ios.entry.js":["TW18",0,49],"./ion-input-md.entry.js":["A3vp",0,50],"./ion-item-option_3-ios.entry.js":["QSHf",0,51],"./ion-item-option_3-md.entry.js":["Lc8E",0,52],"./ion-item_8-ios.entry.js":["yJkF",0,53],"./ion-item_8-md.entry.js":["nJbe",0,54],"./ion-loading-ios.entry.js":["qfPd",0,55],"./ion-loading-md.entry.js":["Voy3",0,56],"./ion-menu_4-ios.entry.js":["FBP2",0,57],"./ion-menu_4-md.entry.js":["g/I3",0,58],"./ion-modal-ios.entry.js":["0+Bq",0,59],"./ion-modal-md.entry.js":["AF5P",0,60],"./ion-nav_5.entry.js":["nD5p",0,61],"./ion-popover-ios.entry.js":["ZG/G",0,62],"./ion-popover-md.entry.js":["z0lq",0,63],"./ion-progress-bar-ios.entry.js":["2YQO",0,64],"./ion-progress-bar-md.entry.js":["qDED",0,65],"./ion-radio_2-ios.entry.js":["IOpt",0,66],"./ion-radio_2-md.entry.js":["Q4Z5",0,67],"./ion-range-ios.entry.js":["t0+n",0,68],"./ion-range-md.entry.js":["Hy4L",0,69],"./ion-refresher_2-ios.entry.js":["ASjW",0,70],"./ion-refresher_2-md.entry.js":["liZc",0,71],"./ion-reorder_2-ios.entry.js":["aMvp",0,72],"./ion-reorder_2-md.entry.js":["wCZP",0,73],"./ion-ripple-effect.entry.js":["yNr1",74],"./ion-route_4.entry.js":["EOjV",0,75],"./ion-searchbar-ios.entry.js":["RXmo",0,76],"./ion-searchbar-md.entry.js":["ffsq",0,77],"./ion-segment_2-ios.entry.js":["Loa/",0,78],"./ion-segment_2-md.entry.js":["hm+o",0,79],"./ion-select_3-ios.entry.js":["kxfy",0,80],"./ion-select_3-md.entry.js":["RRhw",0,81],"./ion-slide_2-ios.entry.js":["MyoC",82],"./ion-slide_2-md.entry.js":["pKl9",83],"./ion-spinner.entry.js":["4RuT",0,84],"./ion-split-pane-ios.entry.js":["8LTB",85],"./ion-split-pane-md.entry.js":["zG3r",86],"./ion-tab-bar_2-ios.entry.js":["ri6M",0,87],"./ion-tab-bar_2-md.entry.js":["3xPB",0,88],"./ion-tab_2.entry.js":["ZyW4",0,89],"./ion-text.entry.js":["7Ttm",0,90],"./ion-textarea-ios.entry.js":["bRvG",0,91],"./ion-textarea-md.entry.js":["RoCC",0,92],"./ion-toast-ios.entry.js":["W9p6",0,93],"./ion-toast-md.entry.js":["XCFn",0,94],"./ion-toggle-ios.entry.js":["ba+K",0,95],"./ion-toggle-md.entry.js":["ro3r",0,96],"./ion-virtual-scroll.entry.js":["X9e5",97]};function o(t){var e=r[t];return e?Promise.all(e.slice(1).map(n.e)).then(function(){return n(e[0])}):Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}o.keys=function(){return Object.keys(r)},o.id="Bf66",t.exports=o},"Bko/":function(t,e,n){"use strict";t.exports={}},CTpc:function(t,e,n){"use strict";n.d(e,"a",function(){return T}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return b}),n.d(e,"g",function(){return w}),n.d(e,"h",function(){return O}),n.d(e,"i",function(){return m}),n.d(e,"j",function(){return E}),n.d(e,"k",function(){return v}),n.d(e,"l",function(){return y}),n.d(e,"m",function(){return c}),n.d(e,"n",function(){return l}),n.d(e,"o",function(){return f}),n.d(e,"p",function(){return k}),n.d(e,"q",function(){return p});var r=n("mrSG"),o=n("ttJE"),i=0,a=function(t){return{create:function(e){return m(t,e)},dismiss:function(e,n,r){return v(document,e,n,t,r)},getTop:function(){return Object(r.b)(this,void 0,void 0,function(){return Object(r.e)(this,function(e){return[2,y(document,t)]})})}}},s=a("ion-alert"),u=a("ion-action-sheet"),c=a("ion-loading"),l=a("ion-modal"),f=a("ion-picker"),d=a("ion-popover"),p=a("ion-toast"),h=function(t){var e=document;g(e);var n=i++;t.overlayIndex=n,t.hasAttribute("id")||(t.id="ion-overlay-"+n)},m=function(t,e){return customElements.whenDefined(t).then(function(){var n=document,r=n.createElement(t);return r.classList.add("overlay-hidden"),Object.assign(r,e),x(n).appendChild(r),r.componentOnReady()})},g=function(t){0===i&&(i=1,t.addEventListener("focusin",function(e){var n=y(t);if(n&&n.backdropDismiss&&!C(n,e.target)){var r=n.querySelector("input,button");r&&r.focus()}}),t.addEventListener("ionBackButton",function(e){var n=y(t);n&&n.backdropDismiss&&e.detail.register(100,function(){return n.dismiss(void 0,T)})}),t.addEventListener("keyup",function(e){if("Escape"===e.key){var n=y(t);n&&n.backdropDismiss&&n.dismiss(void 0,T)}}))},v=function(t,e,n,r,o){var i=y(t,r,o);return i?i.dismiss(e,n):Promise.reject("overlay does not exist")},y=function(t,e,n){var r=function(t,e){return void 0===e&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter(function(t){return t.overlayIndex>0})}(t,e);return void 0===n?r[r.length-1]:r.find(function(t){return t.id===n})},b=function(t,e,n,i,a){return Object(r.b)(void 0,void 0,void 0,function(){var s;return Object(r.e)(this,function(r){switch(r.label){case 0:return t.presented?[2]:(t.presented=!0,t.willPresent.emit(),s=t.enterAnimation?t.enterAnimation:o.b.get(e,"ios"===t.mode?n:i),[4,S(t,s,t.el,a)]);case 1:return r.sent()&&t.didPresent.emit(),[2]}})})},w=function(t,e,n,i,a,s,u){return Object(r.b)(void 0,void 0,void 0,function(){var c,l;return Object(r.e)(this,function(r){switch(r.label){case 0:if(!t.presented)return[2,!1];t.presented=!1,r.label=1;case 1:return r.trys.push([1,3,,4]),t.willDismiss.emit({data:e,role:n}),c=t.leaveAnimation?t.leaveAnimation:o.b.get(i,"ios"===t.mode?a:s),[4,S(t,c,t.el,u)];case 2:return r.sent(),t.didDismiss.emit({data:e,role:n}),[3,4];case 3:return l=r.sent(),console.error(l),[3,4];case 4:return t.el.remove(),[2,!0]}})})},x=function(t){return t.querySelector("ion-app")||t.body},S=function(t,e,i,a){return Object(r.b)(void 0,void 0,void 0,function(){var s,u,c,l,f;return Object(r.e)(this,function(r){switch(r.label){case 0:if(t.animation)return t.animation.destroy(),t.animation=void 0,[2,!1];i.classList.remove("overlay-hidden"),s=i.shadowRoot||t.el,c=!0,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,n.e(6).then(n.bind(null,"5QBn"))];case 2:return[4,r.sent().create(e,s,a)];case 3:return u=r.sent(),[3,5];case 4:return r.sent(),(u=e(s,a)).fill("both"),c=!1,[3,5];case 5:return t.animation=u,t.animated&&o.b.getBoolean("animated",!0)||u.duration(0),t.keyboardClose&&u.beforeAddWrite(function(){var t=i.ownerDocument.activeElement;t&&t.matches("input, ion-input, ion-textarea")&&t.blur()}),[4,u.playAsync()];case 6:return l=r.sent(),f=void 0===l||u.hasCompleted,c&&u.destroy(),t.animation=void 0,[2,f]}})})},O=function(t,e){var n,r=new Promise(function(t){return n=t});return _(t,e,function(t){n(t.detail)}),r},_=function(t,e,n){var r=function(o){t.removeEventListener(e,r),n(o)};t.addEventListener(e,r)},E=function(t){return"cancel"===t||t===T},C=function(t,e){for(;e;){if(e===t)return!0;e=e.parentElement}return!1},j=function(t){return t()},k=function(t,e){if("function"==typeof t)return o.b.get("_zoneGate",j)(function(){try{return t(e)}catch(n){console.error(n)}})},T="backdrop"},CcnG:function(t,e,n){"use strict";n.d(e,"hb",function(){return Xn}),n.d(e,"ib",function(){return Yn}),n.d(e,"jb",function(){return tr}),n.d(e,"gb",function(){return Ie}),n.d(e,"g",function(){return gn}),n.d(e,"Q",function(){return dn}),n.d(e,"y",function(){return fn}),n.d(e,"S",function(){return Bt}),n.d(e,"W",function(){return Vt}),n.d(e,"c",function(){return Pe}),n.d(e,"C",function(){return Ae}),n.d(e,"B",function(){return Ne}),n.d(e,"b",function(){return Le}),n.d(e,"d",function(){return ke}),n.d(e,"e",function(){return Te}),n.d(e,"U",function(){return An}),n.d(e,"L",function(){return on}),n.d(e,"Y",function(){return sn}),n.d(e,"u",function(){return Kn}),n.d(e,"f",function(){return er}),n.d(e,"m",function(){return le}),n.d(e,"l",function(){return Ee}),n.d(e,"F",function(){return Lt}),n.d(e,"G",function(){return Nt}),n.d(e,"a",function(){return x}),n.d(e,"n",function(){return ye}),n.d(e,"r",function(){return ve}),n.d(e,"O",function(){return L}),n.d(e,"M",function(){return $t}),n.d(e,"R",function(){return p}),n.d(e,"T",function(){return R}),n.d(e,"q",function(){return nt}),n.d(e,"V",function(){return z}),n.d(e,"p",function(){return m}),n.d(e,"o",function(){return $}),n.d(e,"A",function(){return D}),n.d(e,"H",function(){return U}),n.d(e,"z",function(){return Ke}),n.d(e,"D",function(){return Pt}),n.d(e,"E",function(){return It}),n.d(e,"i",function(){return He}),n.d(e,"j",function(){return St}),n.d(e,"k",function(){return jt}),n.d(e,"v",function(){return Ct}),n.d(e,"x",function(){return Et}),n.d(e,"w",function(){return ge}),n.d(e,"I",function(){return xn}),n.d(e,"J",function(){return bn}),n.d(e,"K",function(){return fe}),n.d(e,"N",function(){return On}),n.d(e,"h",function(){return En}),n.d(e,"s",function(){return qn}),n.d(e,"t",function(){return Gn}),n.d(e,"P",function(){return W}),n.d(e,"X",function(){return Qn}),n.d(e,"rb",function(){return J}),n.d(e,"bb",function(){return $e}),n.d(e,"Z",function(){return gt}),n.d(e,"ab",function(){return Ot}),n.d(e,"cb",function(){return ue}),n.d(e,"db",function(){return me}),n.d(e,"eb",function(){return qt}),n.d(e,"pb",function(){return _}),n.d(e,"ub",function(){return T}),n.d(e,"Cb",function(){return P}),n.d(e,"sb",function(){return je}),n.d(e,"tb",function(){return Ce}),n.d(e,"fb",function(){return Zr}),n.d(e,"kb",function(){return mo}),n.d(e,"lb",function(){return va}),n.d(e,"mb",function(){return br}),n.d(e,"nb",function(){return Uo}),n.d(e,"ob",function(){return Jr}),n.d(e,"qb",function(){return Gr}),n.d(e,"vb",function(){return io}),n.d(e,"wb",function(){return oo}),n.d(e,"xb",function(){return si}),n.d(e,"yb",function(){return Co}),n.d(e,"zb",function(){return Vo}),n.d(e,"Ab",function(){return Bo}),n.d(e,"Bb",function(){return ni}),n.d(e,"Db",function(){return ci}),n.d(e,"Eb",function(){return gr}),n.d(e,"Fb",function(){return di});var r=n("mrSG"),o=n("pugT"),i=n("K9Ia"),a=n("6blF"),s=n("p0ib"),u=n("S1nX");function c(t){for(var e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function l(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}var f=c({ngInjectableDef:c}),d=c({ngBaseDef:c});function p(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function h(t){return t&&t.hasOwnProperty(f)?t[f]:null}var m=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?p({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),g="__parameters__",v="__prop__metadata__";function y(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];o.push(i+":"+("string"==typeof a?JSON.stringify(a):P(a)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(lt,"\n ")}function mt(t,e){return new Error(ht(t,e))}var gt=new m("The presence of this token marks an injector as being the root injector."),vt=function(){return function(){}}(),yt=function(){return function(){}}();function bt(t){var e=Error("No component factory found for "+P(t)+". Did you add it to @NgModule.entryComponents?");return e[wt]=t,e}var wt="ngComponent",xt=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw bt(t)},t}(),St=function(){function t(){}return t.NULL=new xt,t}(),Ot=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Yt.hasOwnProperty(e)&&!Jt.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(se(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),ie=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ae=/([^\#-~ |!])/g;function se(t){return t.replace(/&/g,"&").replace(ie,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ae,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function ue(t,e){var n=null;try{Zt=Zt||new Ft(t);var r=e?String(e):"";n=Zt.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Zt.getInertBodyElement(r)}while(r!==i);var a=new oe,s=a.sanitizeChildren(ce(n)||n);return Vt()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=ce(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function ce(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var le=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Object(r.d)(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,a=function(t){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(a=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=t.prototype.subscribe.call(this,i,a,s);return e instanceof o.a&&e.add(u),u},e}(i.a),fe=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return de(t,jt)},t}(),de=K,pe=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),he=/^url\(([^)]+)\)$/;function me(t){if(!(t=String(t).trim()))return"";var e=t.match(he);return e&&qt(e[1])===e[1]||t.match(pe)&&function(t){for(var e=!0,n=!0,r=0;r0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),an=function(){function t(){this._applications=new Map,cn.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),cn.findTestabilityInTree(this,t,e)},Object(r.c)([Object(r.f)("design:paramtypes",[])],t)}();function sn(t){cn=t}var un,cn=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),ln=new m("AllowMultipleToken"),fn=function(){return function(t,e){this.name=t,this.token=e}}();function dn(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new m(r);return function(e){void 0===e&&(e=[]);var i=pn();if(!i||i.injector.get(ln,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var a=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(un&&!un.destroyed&&!un.injector.get(ln,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");un=t.get(hn);var e=t.get(Ae,null);e&&e.forEach(function(t){return t()})}(nt.create({providers:a,name:r}))}return function(t){var e=pn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function pn(){return un&&!un.destroyed?un:null}var hn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new rn:("zone.js"===n?void 0:n)||new Ke({enableLongStackTrace:Vt()}),i=[{provide:Ke,useValue:o}];return o.run(function(){var e=nt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(Ee,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return vn(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,o){try{var i=((a=n.injector.get(Te)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Ce(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(a,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=mn({},e);return function(t,e,n){return t.get(qe).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(gn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+P(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function mn(t,e){return Array.isArray(e)?e.reduce(mn,t):Object(r.a)({},t,e)}var gn=function(){function t(t,e,n,r,o,i){var c=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Vt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var l=new a.a(function(t){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){t.next(c._stable),t.complete()})}),f=new a.a(function(t){var e;c._zone.runOutsideAngular(function(){e=c._zone.onStable.subscribe(function(){Ke.assertNotInAngularZone(),k(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,t.next(!0))})})});var n=c._zone.onUnstable.subscribe(function(){Ke.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(l,f.pipe(Object(u.a)()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof yt?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof _t?null:this._injector.get(Et),i=n.create(nt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var a=i.injector.get(on,null);return a&&i.injector.get(an).registerApplication(i.location.nativeElement,a),this._loadComponent(i),Vt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Qe(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;vn(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Le,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),vn(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Je("ApplicationRef#tick()"),t}();function vn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var yn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new le,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[j()]=function(){return this._results[j()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),bn=function(){return function(){}}(),wn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},xn=function(){function t(t,e){this._compiler=t,this._config=e||wn}return t.prototype.load=function(t){return this._compiler instanceof He?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,o=Object(r.h)(t.split("#"),2),i=o[0],a=o[1];return void 0===a&&(a="default"),n("crnd")(i).then(function(t){return t[a]}).then(function(t){return Sn(t,i,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=Object(r.h)(t.split("#"),2),o=e[0],i=e[1],a="NgFactory";return void 0===i&&(i="default",a=""),n("crnd")(this._config.factoryPathPrefix+o+this._config.factoryPathSuffix).then(function(t){return t[i+a]}).then(function(t){return Sn(t,o,i)})},t}();function Sn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var On=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return _n(t,jt)},t}(),_n=K,En=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Cn()},t}(),Cn=function(){for(var t=[],e=0;e-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var l=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:l,token:e.token},t._providers[l]=to,t._providers[l]=so(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{F(i)}}function so(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var o=n.length;switch(o){case 0:return new e;case 1:return new e(ao(t,n[0]));case 2:return new e(ao(t,n[0]),ao(t,n[1]));case 3:return new e(ao(t,n[0]),ao(t,n[1]),ao(t,n[2]));default:for(var i=new Array(o),a=0;a=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,po(n,e),cr.dirtyParentQueries(r),lo(r),r}function co(t,e,n){var r=e?Tr(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);Mr(n,2,o,i,void 0)}function lo(t){Mr(t,3,null,null,void 0)}function fo(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function po(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var ho=new Object;function mo(t,e,n,r,o,i){return new go(t,e,n,r,o,i)}var go=function(t){function e(e,n,r,o,i,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=o,s._outputs=i,s.ngContentSelectors=a,s.viewDefFactory=r,s}return Object(r.d)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=Dr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=cr.createRootView(t,e||[],n,o,r,ho),s=ar(a,i).instance;return n&&a.renderer.setAttribute(ir(a,0).renderElement,"ng-version",Dt.full),new vo(a,new xo(a),s)},e}(yt),vo=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.d)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new jt(ir(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Eo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(vt);function yo(t,e,n){return new bo(t,e,n)}var bo=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new jt(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Eo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=kr(t),t=t.parent;return t?new Eo(t,e):new Eo(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=uo(this._data,t);cr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new xo(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof _t||(o=i.get(Et));var a=t.create(i,r,void 0,o);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,a=t;return i=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=i.length),(o=a._view).viewContainerParent=this._view,fo(i,r,o),function(t,e){var n=jr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),cr.dirtyParentQueries(o),co(n,r>0?i[r-1]:null,o),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,s=this._embeddedViews.indexOf(t._view);return o=e,a=(i=(n=this._data).viewContainer._embeddedViews)[r=s],po(i,r),null==o&&(o=i.length),fo(i,o,a),cr.dirtyParentQueries(a),lo(a),co(n,o>0?i[o-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=uo(this._data,t);e&&cr.destroyView(e)},t.prototype.detach=function(t){var e=uo(this._data,t);return e?new xo(e):null},t}();function wo(t){return new xo(t)}var xo=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Mr(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){_r(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{cr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){cr.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),cr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,lo(this._view),cr.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function So(t,e){return new Oo(t,e)}var Oo=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.d)(e,t),e.prototype.createEmbeddedView=function(t){return new xo(cr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new jt(ir(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(fe);function _o(t,e){return new Eo(t,e)}var Eo=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=nt.THROW_IF_NOT_FOUND),cr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:mr(t)},e)},t}();function Co(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=ir(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return or(t,n.nodeIndex).renderText;if(20240&n.flags)return ar(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function jo(t){return new ko(t.renderer)}var ko=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Object(r.h)(Hr(e),2),o=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,o=e.provider;switch(201347067&e.flags){case 512:return Zo(t,e.parent,n,o.value,o.deps);case 1024:return function(t,e,n,o,i){var a=i.length;switch(a){case 0:return o();case 1:return o(Qo(t,e,n,i[0]));case 2:return o(Qo(t,e,n,i[0]),Qo(t,e,n,i[1]));case 3:return o(Qo(t,e,n,i[0]),Qo(t,e,n,i[1]),Qo(t,e,n,i[2]));default:for(var s=Array(a),u=0;u0)c=m,pi(m)||(l=m);else for(;c&&h===c.nodeIndex+c.childCount;){var y=c.parent;y&&(y.childFlags|=c.childFlags,y.childMatchedQueries|=c.childMatchedQueries),l=(c=y)&&pi(c)?c.renderParent:c}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||pr,updateRenderer:r||pr,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function pi(t){return 0!=(1&t.flags)&&null===t.element.name}function hi(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function mi(t,e,n,r){var o=yi(t.root,t.renderer,t,e,n);return bi(o,t.component,r),wi(o),o}function gi(t,e,n){var r=yi(t,t.renderer,null,null,e);return bi(r,n,n),wi(r),r}function vi(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,yi(t.root,o,t,e.element.componentProvider,n)}function yi(t,e,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function bi(t,e,n){t.component=e,t.context=n}function wi(t){var e;Pr(t)&&(e=ir(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Yr(t,e,0,n)&&(p=!0),d>1&&Yr(t,e,1,r)&&(p=!0),d>2&&Yr(t,e,2,o)&&(p=!0),d>3&&Yr(t,e,3,i)&&(p=!0),d>4&&Yr(t,e,4,a)&&(p=!0),d>5&&Yr(t,e,5,s)&&(p=!0),d>6&&Yr(t,e,6,u)&&(p=!0),d>7&&Yr(t,e,7,c)&&(p=!0),d>8&&Yr(t,e,8,l)&&(p=!0),d>9&&Yr(t,e,9,f)&&(p=!0),p}(t,e,n,r,o,i,a,s,u,c,l,f);case 2:return function(t,e,n,r,o,i,a,s,u,c,l,f){var d=!1,p=e.bindings,h=p.length;if(h>0&&Sr(t,e,0,n)&&(d=!0),h>1&&Sr(t,e,1,r)&&(d=!0),h>2&&Sr(t,e,2,o)&&(d=!0),h>3&&Sr(t,e,3,i)&&(d=!0),h>4&&Sr(t,e,4,a)&&(d=!0),h>5&&Sr(t,e,5,s)&&(d=!0),h>6&&Sr(t,e,6,u)&&(d=!0),h>7&&Sr(t,e,7,c)&&(d=!0),h>8&&Sr(t,e,8,l)&&(d=!0),h>9&&Sr(t,e,9,f)&&(d=!0),d){var m=e.text.prefix;h>0&&(m+=fi(n,p[0])),h>1&&(m+=fi(r,p[1])),h>2&&(m+=fi(o,p[2])),h>3&&(m+=fi(i,p[3])),h>4&&(m+=fi(a,p[4])),h>5&&(m+=fi(s,p[5])),h>6&&(m+=fi(u,p[6])),h>7&&(m+=fi(c,p[7])),h>8&&(m+=fi(l,p[8])),h>9&&(m+=fi(f,p[9]));var g=or(t,e.nodeIndex).renderText;t.renderer.setValue(g,m)}return d}(t,e,n,r,o,i,a,s,u,c,l,f);case 16384:return function(t,e,n,r,o,i,a,s,u,c,l,f){var d=ar(t,e.nodeIndex),p=d.instance,h=!1,m=void 0,g=e.bindings.length;return g>0&&xr(t,e,0,n)&&(h=!0,m=Xo(t,d,e,0,n,m)),g>1&&xr(t,e,1,r)&&(h=!0,m=Xo(t,d,e,1,r,m)),g>2&&xr(t,e,2,o)&&(h=!0,m=Xo(t,d,e,2,o,m)),g>3&&xr(t,e,3,i)&&(h=!0,m=Xo(t,d,e,3,i,m)),g>4&&xr(t,e,4,a)&&(h=!0,m=Xo(t,d,e,4,a,m)),g>5&&xr(t,e,5,s)&&(h=!0,m=Xo(t,d,e,5,s,m)),g>6&&xr(t,e,6,u)&&(h=!0,m=Xo(t,d,e,6,u,m)),g>7&&xr(t,e,7,c)&&(h=!0,m=Xo(t,d,e,7,c,m)),g>8&&xr(t,e,8,l)&&(h=!0,m=Xo(t,d,e,8,l,m)),g>9&&xr(t,e,9,f)&&(h=!0,m=Xo(t,d,e,9,f,m)),m&&p.ngOnChanges(m),65536&e.flags&&rr(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),h}(t,e,n,r,o,i,a,s,u,c,l,f);case 32:case 64:case 128:return function(t,e,n,r,o,i,a,s,u,c,l,f){var d=e.bindings,p=!1,h=d.length;if(h>0&&Sr(t,e,0,n)&&(p=!0),h>1&&Sr(t,e,1,r)&&(p=!0),h>2&&Sr(t,e,2,o)&&(p=!0),h>3&&Sr(t,e,3,i)&&(p=!0),h>4&&Sr(t,e,4,a)&&(p=!0),h>5&&Sr(t,e,5,s)&&(p=!0),h>6&&Sr(t,e,6,u)&&(p=!0),h>7&&Sr(t,e,7,c)&&(p=!0),h>8&&Sr(t,e,8,l)&&(p=!0),h>9&&Sr(t,e,9,f)&&(p=!0),p){var m=sr(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(d.length),h>0&&(g[0]=n),h>1&&(g[1]=r),h>2&&(g[2]=o),h>3&&(g[3]=i),h>4&&(g[4]=a),h>5&&(g[5]=s),h>6&&(g[6]=u),h>7&&(g[7]=c),h>8&&(g[8]=l),h>9&&(g[9]=f);break;case 64:g={},h>0&&(g[d[0].name]=n),h>1&&(g[d[1].name]=r),h>2&&(g[d[2].name]=o),h>3&&(g[d[3].name]=i),h>4&&(g[d[4].name]=a),h>5&&(g[d[5].name]=s),h>6&&(g[d[6].name]=u),h>7&&(g[d[7].name]=c),h>8&&(g[d[8].name]=l),h>9&&(g[d[9].name]=f);break;case 128:var v=n;switch(h){case 1:g=v.transform(n);break;case 2:g=v.transform(r);break;case 3:g=v.transform(r,o);break;case 4:g=v.transform(r,o,i);break;case 5:g=v.transform(r,o,i,a);break;case 6:g=v.transform(r,o,i,a,s);break;case 7:g=v.transform(r,o,i,a,s,u);break;case 8:g=v.transform(r,o,i,a,s,u,c);break;case 9:g=v.transform(r,o,i,a,s,u,c,l);break;case 10:g=v.transform(r,o,i,a,s,u,c,l,f)}}m.value=g}return p}(t,e,n,r,o,i,a,s,u,c,l,f);default:throw"unreachable"}}(t,e,o,i,a,s,u,c,l,f,d,p):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&Or(t,e,0,n),d>1&&Or(t,e,1,r),d>2&&Or(t,e,2,o),d>3&&Or(t,e,3,i),d>4&&Or(t,e,4,a),d>5&&Or(t,e,5,s),d>6&&Or(t,e,6,u),d>7&&Or(t,e,7,c),d>8&&Or(t,e,8,l),d>9&&Or(t,e,9,f)}(t,e,r,o,i,a,s,u,c,l,f,d):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);Fi.forEach(function(e,r){if(i.has(h(r).providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:Nr(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[mr(r)]=o}})}}(t=t.factory(function(){return pr})),t):t}(r))}var Bi=new Map,Fi=new Map,zi=new Map;function Hi(t){var e;Bi.set(t.token,t),"function"==typeof t.token&&(e=h(t.token))&&"function"==typeof e.providedIn&&Fi.set(t.token,t)}function qi(t,e){var n=Dr(e.viewDefFactory),r=Dr(n.nodes[0].element.componentView);zi.set(t,r)}function Gi(){Bi.clear(),Fi.clear(),zi.clear()}function Wi(t){if(0===Bi.size)return t;var e=function(t){for(var e=[],n=null,r=0;r>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function m(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}f.create=o.Buffer?function(){return(f.create=function(){return new r})()}:function(){return new f},f.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(t,e,n){return this.tail=this.tail.next=new u(t,e,n),this.len+=e,this},(p.prototype=Object.create(u.prototype)).fn=function(t,e,n){for(;t>127;)e[n++]=127&t|128,t>>>=7;e[n]=t},f.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new p((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},f.prototype.int32=function(t){return t<0?this._push(h,10,i.fromNumber(t)):this.uint32(t)},f.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},f.prototype.int64=f.prototype.uint64=function(t){var e=i.from(t);return this._push(h,e.length(),e)},f.prototype.sint64=function(t){var e=i.from(t).zzEncode();return this._push(h,e.length(),e)},f.prototype.bool=function(t){return this._push(d,1,t?1:0)},f.prototype.sfixed32=f.prototype.fixed32=function(t){return this._push(m,4,t>>>0)},f.prototype.sfixed64=f.prototype.fixed64=function(t){var e=i.from(t);return this._push(m,4,e.lo)._push(m,4,e.hi)},f.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},f.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var g=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var r=0;r>>0;if(!e)return this._push(d,1,0);if(o.isString(t)){var n=f.alloc(e=a.length(t));a.decode(t,n,0),t=n}return this.uint32(e)._push(g,e,t)},f.prototype.string=function(t){var e=s.length(t);return e?this.uint32(e)._push(s.write,e,t):this._push(d,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},f.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},f._configure=function(t){r=t}},DKTb:function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t})}n.d(e,"a",function(){return r})},Ehmk:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r,o=n("eihs");function i(){try{return r.apply(this,arguments)}catch(t){return o.a.e=t,o.a}}function a(t){return r=t,i}},"En8+":function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return o});var o=r()},"F/XL":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("nkY7"),o=n("IUTb"),i=n("G5J1"),a=n("PU8L");function s(){for(var t=[],e=0;e0&&(H?(L.forEach(function(t){var e=t.animate(b,{delay:Y(),duration:K(),easing:Q(),iterations:X(),fill:Z(),direction:J()});e.pause(),F.push(e)}),F.length>0&&(F[0].onfinish=function(){tt()})):function(t){void 0===t&&(t=!0),W(),L.forEach(function(e){if(b.length>0){var n=(void 0===(u=b)&&(u=[]),u.map(function(t){var e=t.offset,n=[];for(var r in t)t.hasOwnProperty(r)&&"offset"!==r&&n.push(r+": "+t[r]+";");return 100*e+"% { "+n.join(" ")+" }"}).join(" ")),r=function(t,e,n){var r=function(t){var e=t.getRootNode();return e.head||e}(n),o=r.querySelector("#"+t);if(o)return o;var i=(n.ownerDocument||document).createElement("style");return i.id=t,i.textContent="@keyframes "+t+" { "+e+" } @keyframes "+t+"-alt { "+e+" }",r.appendChild(i),i}(v=function(t){var e=s.indexOf(t);return e<0&&(e=s.push(t)-1),"ion-animation-"+e}(n),n,e);D.push(r),i(e,"animation-duration",K()+"ms"),i(e,"animation-timing-function",Q()),i(e,"animation-delay",Y()+"ms"),i(e,"animation-fill-mode",Z()),i(e,"animation-direction",J());var a=X()===1/0?"infinite":X().toString();i(e,"animation-iteration-count",a),i(e,"animation-play-state","paused"),t&&i(e,"animation-name",r.id+"-alt"),Object(o.k)(function(){i(e,"animation-name",r.id||null)})}var u})}(t)),S=!0},nt=function(t){if(t=Math.min(Math.max(t,0),.999),H)F.forEach(function(e){e.currentTime=e.effect.getComputedTiming().delay+K()*t,e.pause()});else{var e="-"+((Y()||0)+K()*t)+"ms";L.forEach(function(t){b.length>0&&(i(t,"animation-delay",e),i(t,"animation-play-state","paused"))})}},rt=function(t){void 0===t&&(t=!0),L.forEach(function(e){Object(o.k)(function(){i(e,"animation-name",v||null),i(e,"animation-duration",K()+"ms"),i(e,"animation-timing-function",Q()),i(e,"animation-delay",Y()+"ms"),i(e,"animation-fill-mode",Z()||null),i(e,"animation-direction",J()||null);var n=X()===1/0?"infinite":X().toString();i(e,"animation-iteration-count",n),t&&i(e,"animation-name",v+"-alt"),Object(o.k)(function(){i(e,"animation-name",v||null)})})})},ot=function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!0),t&&$.forEach(function(e){e.update(t)}),H?F.forEach(function(t){t.effect.updateTiming({delay:Y(),duration:K(),easing:Q(),iterations:X(),fill:Z(),direction:J()})}):rt(e),y},it=function(){S&&(H?F.forEach(function(t){t.pause()}):L.forEach(function(t){i(t,"animation-play-state","paused")}))},at=function(){p=void 0,tt()},st=function(){p&&clearTimeout(p)},ut=function(t){return new Promise(function(e){t&&t.sync&&(T=!0,q(function(){return T=!1},{oneTimeCallback:!0})),S||et(),I&&(H?nt(0):rt(),I=!1),R&&(j=$.length+1,R=!1),q(function(){return e()},{oneTimeCallback:!0}),$.forEach(function(t){t.play()}),H?(F.forEach(function(t){t.play()}),0!==b.length&&0!==L.length||tt()):function(){if(st(),L.forEach(function(t){b.length>0&&Object(o.k)(function(){i(t,"animation-play-state","running")})}),0===b.length||0===L.length)tt();else{var t=Y()||0,e=K()||0,n=X()||1;p=setTimeout(at,t+e*n+100),s=function(){st(),Object(o.k)(function(){L.forEach(function(t){a(t,"animation-duration"),a(t,"animation-delay"),a(t,"animation-play-state")}),Object(o.k)(tt)})},c={passive:!0},l=function(){u&&u()},f=function(t){r===t.target&&(l(),s())},(r=L[0])&&(r.addEventListener("webkitAnimationEnd",f,c),r.addEventListener("animationend",f,c),u=function(){r.removeEventListener("webkitAnimationEnd",f,c),r.removeEventListener("animationend",f,c)})}var r,s,u,c,l,f}()})},ct=function(t,e){var n,o=b[0];return void 0!==o&&0===o.offset?o[t]=e:b=Object(r.j)([(n={offset:0},n[t]=e,n)],b),y};return y={parentAnimation:d,elements:L,childAnimations:$,animationFinish:tt,from:ct,to:function(t,e){var n,o=b[b.length-1];return void 0!==o&&1===o.offset?o[t]=e:b=Object(r.j)(b,[(n={offset:1},n[t]=e,n)]),y},fromTo:function(t,e,n){return ct(t,e).to(t,n)},parent:function(t){return d=t,y},play:ut,playAsync:function(){return ut()},playSync:function(){return ut({sync:!0}),y},pause:function(){return $.forEach(function(t){t.pause()}),it(),y},stop:function(){$.forEach(function(t){t.stop()}),S&&(G(),S=!1)},destroy:function(){return $.forEach(function(t){t.destroy()}),G(),W(),L.length=0,$.length=0,b.length=0,A.length=0,N.length=0,S=!1,R=!0,y},keyframes:function(t){return b=t,y},addAnimation:function(t){if(null!=t)if(Array.isArray(t))for(var e=0,n=t;e=0)for(var e=0;e "+t.len)}function u(t){this.buf=t,this.pos=0,this.len=t.length}var c,l="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new u(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new u(t);throw Error("illegal buffer")};function f(){var t=new i(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw s(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw s(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function d(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new i(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}u.create=o.Buffer?function(t){return(u.create=function(t){return o.Buffer.isBuffer(t)?new r(t):l(t)})(t)}:l,u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return d(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|d(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},u.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw s(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,n):e===n?new this.buf.constructor(0):this._slice.call(this.buf,e,n)},u.prototype.string=function(){var t=this.bytes();return a.read(t,0,t.length)},u.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw s(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},u._configure=function(t){r=t;var e=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return f.call(this)[e](!1)},uint64:function(){return f.call(this)[e](!0)},sint64:function(){return f.call(this).zzDecode()[e](!1)},fixed64:function(){return p.call(this)[e](!0)},sfixed64:function(){return p.call(this)[e](!1)}})}},IUTb:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("6blF"),o=n("pugT"),i=n("+tJ4");function a(t,e){return new r.a(e?function(n){var r=new o.a,i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:Object(i.a)(t))}},Ip0R:function(t,e,n){"use strict";n.d(e,"q",function(){return v}),n.d(e,"j",function(){return b}),n.d(e,"k",function(){return y}),n.d(e,"r",function(){return w}),n.d(e,"b",function(){return j}),n.d(e,"h",function(){return S}),n.d(e,"i",function(){return _}),n.d(e,"c",function(){return k}),n.d(e,"p",function(){return T}),n.d(e,"o",function(){return I}),n.d(e,"n",function(){return R}),n.d(e,"m",function(){return i}),n.d(e,"e",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"a",function(){return u}),n.d(e,"d",function(){return f}),n.d(e,"l",function(){return d}),n.d(e,"f",function(){return c});var r=n("CcnG"),o=n("mrSG"),i=function(){return function(){}}(),a=new r.p("Location Initialized"),s=function(){return function(){}}(),u=new r.p("appBaseHref"),c=function(){function t(t){var n=this;this._subject=new r.m,this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(l(o)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,l(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function l(t){return t.replace(/\/index.html$/,"")}var f=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(o.d)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=c.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),d=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(o.d)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return c.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+c.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),p=void 0,h=["en",[["a","p"],["AM","PM"],p],[["AM","PM"],p,p],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],p,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],p,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",p,"{1} 'at' {0}",p],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],m={},g=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),v=new r.p("UseV4Plurals"),y=function(){return function(){}}(),b=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(o.d)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=m[e];if(n)return n;var r=e.split("-")[0];if(n=m[r])return n;if("en"===r)return h;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case g.Zero:return"zero";case g.One:return"one";case g.Two:return"two";case g.Few:return"few";case g.Many:return"many";default:return"other"}},e}(y);function w(t,e){var n,r;e=encodeURIComponent(e);try{for(var i=Object(o.k)(t.split(";")),a=i.next();!a.done;a=i.next()){var s=a.value,u=s.indexOf("="),c=Object(o.h)(-1==u?[s,""]:[s.slice(0,u),s.slice(u+1)],2),l=c[1];if(c[0].trim()===e)return decodeURIComponent(l)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}var x=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),S=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(r.W)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new x(null,e._ngForOf,-1,-1),o),a=new O(t,i);n.push(a)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),a=new O(t,i),n.push(a))});for(var r=0;rt.length?t[e.successIndex]=n:t.splice(e.successIndex,0,n)},a=function(){e.errorIndex>t.length?t[e.errorIndex]=r:t.splice(e.errorIndex,0,r)};e.successIndex>e.errorIndex?(a(),i()):(i(),a())}else t.push(n),t.push(r);return t}function l(t,e,n,r,o,i){void 0===r&&(r={}),n=c(n,r,o,i);var a=u(t,e);if(!0===a){var s=d(t.constructor.getPluginRef());return s[e].apply(s,n)}return a}function f(t,e,n,r,o,i){if(void 0===r&&(r={}),n=c(n,r,o,i),function(t,e){return t._objectInstance&&(!e||void 0!==t._objectInstance[e])}(t,e))return t._objectInstance[e].apply(t._objectInstance,n)}function d(t){return"undefined"!=typeof window?p(window,t):null}function p(t,e){for(var n=e.split("."),r=t,o=0;o0?0:2147483648,n,r);else if(isNaN(e))t(2143289344,n,r);else if(e>3.4028234663852886e38)t((o<<31|2139095040)>>>0,n,r);else if(e<1.1754943508222875e-38)t((o<<31|Math.round(e/1.401298464324817e-45))>>>0,n,r);else{var i=Math.floor(Math.log(e)/Math.LN2);t((o<<31|i+127<<23|8388607&Math.round(e*Math.pow(2,-i)*8388608))>>>0,n,r)}}function n(t,e,n){var r=t(e,n),o=2*(r>>31)+1,i=r>>>23&255,a=8388607&r;return 255===i?a?NaN:o*(1/0):0===i?1.401298464324817e-45*o*a:o*Math.pow(2,i-150)*(a+8388608)}t.writeFloatLE=e.bind(null,o),t.writeFloatBE=e.bind(null,i),t.readFloatLE=n.bind(null,a),t.readFloatBE=n.bind(null,s)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),r=128===n[7];function o(t,r,o){e[0]=t,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r[o+4]=n[4],r[o+5]=n[5],r[o+6]=n[6],r[o+7]=n[7]}function i(t,r,o){e[0]=t,r[o]=n[7],r[o+1]=n[6],r[o+2]=n[5],r[o+3]=n[4],r[o+4]=n[3],r[o+5]=n[2],r[o+6]=n[1],r[o+7]=n[0]}function a(t,r){return n[0]=t[r],n[1]=t[r+1],n[2]=t[r+2],n[3]=t[r+3],n[4]=t[r+4],n[5]=t[r+5],n[6]=t[r+6],n[7]=t[r+7],e[0]}function s(t,r){return n[7]=t[r],n[6]=t[r+1],n[5]=t[r+2],n[4]=t[r+3],n[3]=t[r+4],n[2]=t[r+5],n[1]=t[r+6],n[0]=t[r+7],e[0]}t.writeDoubleLE=r?o:i,t.writeDoubleBE=r?i:o,t.readDoubleLE=r?a:s,t.readDoubleBE=r?s:a}():function(){function e(t,e,n,r,o,i){var a=r<0?1:0;if(a&&(r=-r),0===r)t(0,o,i+e),t(1/r>0?0:2147483648,o,i+n);else if(isNaN(r))t(0,o,i+e),t(2146959360,o,i+n);else if(r>1.7976931348623157e308)t(0,o,i+e),t((a<<31|2146435072)>>>0,o,i+n);else{var s;if(r<2.2250738585072014e-308)t((s=r/5e-324)>>>0,o,i+e),t((a<<31|s/4294967296)>>>0,o,i+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),t(4503599627370496*(s=r*Math.pow(2,-u))>>>0,o,i+e),t((a<<31|u+1023<<20|1048576*s&1048575)>>>0,o,i+n)}}}function n(t,e,n,r,o){var i=t(r,o+e),a=t(r,o+n),s=2*(a>>31)+1,u=a>>>20&2047,c=4294967296*(1048575&a)+i;return 2047===u?c?NaN:s*(1/0):0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+4503599627370496)}t.writeDoubleLE=e.bind(null,o,0,4),t.writeDoubleBE=e.bind(null,i,4,0),t.readDoubleLE=n.bind(null,a,0,4),t.readDoubleBE=n.bind(null,s,4,0)}(),t}function o(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function i(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function a(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function s(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=r(r)},"L/V9":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},Lq6m:function(t,e,n){"use strict";var r=n("KOl+");n.d(e,"a",function(){return o});var o=function(){function t(){}return t.installed=function(){return!0===Object(r.a)(this.pluginRef)},t.getPlugin=function(){return"undefined"!=typeof window?function(t,e){for(var n=e.split("."),r=t,o=0;o=2?function(n){return Object(a.a)(Object(r.a)(t,e),Object(o.a)(1),Object(i.a)(e))(n)}:function(e){return Object(a.a)(Object(r.a)(function(e,n,r){return t(e,n,r+1)}),Object(o.a)(1))(e)}}},"Rt+L":function(t,e,n){"use strict";n("KOl+")},S1nX:function(t,e,n){"use strict";var r=n("mrSG"),o=n("K9Ia"),i=n("6blF"),a=n("FFOo"),s=n("pugT");function u(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new l(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.d(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),f=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.d(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed?(this._connection=null,t=s.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return u()(this)},e}(i.a).prototype,d={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}},p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.d(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b);function h(){return new o.a}function m(){return function(t){return u()((e=h,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,d);return r.source=t,r.subjectFactory=n,r})(t));var e}}n.d(e,"a",function(){return m})},S5XQ:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("DKTb"),o=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.a),e}}},Twl7:function(t,e,n){"use strict";n.d(e,"a",function(){return Z}),n.d(e,"b",function(){return V}),n.d(e,"c",function(){return Tt}),n.d(e,"d",function(){return Pt}),n.d(e,"e",function(){return At}),n.d(e,"f",function(){return Rt}),n.d(e,"g",function(){return $}),n.d(e,"h",function(){return Nt}),n.d(e,"i",function(){return G}),n.d(e,"j",function(){return It}),n.d(e,"k",function(){return Ct}),n.d(e,"l",function(){return O}),n.d(e,"m",function(){return D});var r,o,i,a,s=n("mrSG"),u=n("ttJE"),c=0,l=!1,f=!1,d=!1,p=!1,h=!1,m=window,g=document,v={$flags$:0,$resourcesUrl$:"",jmp:function(t){return t()},raf:function(t){return requestAnimationFrame(t)},ael:function(t,e,n,r){return t.addEventListener(e,n,r)},rel:function(t,e,n,r){return t.removeEventListener(e,n,r)}},y=function(){return!!g.documentElement.attachShadow}(),b=function(){var t=!1;try{g.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(e){}return t}(),w=function(){try{return new CSSStyleSheet,!0}catch(t){}return!1}(),x=new WeakMap,S=function(t){return x.get(t)},O=function(t,e){return x.set(e.$lazyInstance$=t,e)},_=function(t){var e={$flags$:0,$hostElement$:t,$instanceValues$:new Map};return e.$onInstancePromise$=new Promise(function(t){return e.$onInstanceResolve$=t}),e.$onReadyPromise$=new Promise(function(t){return e.$onReadyResolve$=t}),t["s-p"]=[],t["s-rc"]=[],x.set(t,e)},E=function(t,e){return e in t},C=function(t){return console.error(t)},j=new Map,k=new Map,T=[],P=[],I=[],R=function(t,e){return function(n){t.push(n),l||(l=!0,e&&4&v.$flags$?L(N):v.raf(N))}},A=function(t,e){for(var n=0,r=0;n0&&(I.push.apply(I,P),P.length=0),(l=T.length+P.length+I.length>0)?v.raf(N):c=0},L=function(t){return Promise.resolve().then(t)},$=R(T,!1),D=R(P,!0),M={},U=function(t){return"object"==(t=typeof t)||"function"===t},V=function(){return m.CSS&&m.CSS.supports&&m.CSS.supports("color","var(--c)")?Promise.resolve():n.e(18).then(n.t.bind(null,"GhCX",7)).then(function(){if(v.$cssShim$=m.__stencil_cssshim,v.$cssShim$)return v.$cssShim$.initShim()})},B="http://www.w3.org/1999/xlink",F=new WeakMap,z=function(t,e,n){var r=k.get(t);w&&n?(r=r||new CSSStyleSheet).replace(e):r=e,k.set(t,r)},H=function(t,e,n,r){var o=q(e.$tagName$,n),i=k.get(o);if(t=11===t.nodeType?t:g,i||(o=q(e.$tagName$),i=k.get(o)),i)if("string"==typeof i){var a=F.get(t=t.head||t),u=void 0;if(a||F.set(t,a=new Set),!a.has(o)){if(t.host&&(u=t.firstElementChild)&&"STYLE"===u.tagName)u.innerHTML=i;else{if(v.$cssShim$){var c=(u=v.$cssShim$.createHostStyle(r,o,i,!!(10&e.$flags$)))["s-sc"];c&&(o=c,a=null)}else(u=g.createElement("style")).setAttribute("data-styles",""),u.innerHTML=i;t.insertBefore(u,t.querySelector("link"))}a&&a.add(o)}}else t.adoptedStyleSheets.includes(i)||(t.adoptedStyleSheets=Object(s.j)(t.adoptedStyleSheets,[i]));return o},q=function(t,e){return"sc-"+(e?t+"-"+e:t)},G=function(t,e){for(var n=[],r=2;r0&&(d.$children$=c),d.$key$=i,d.$name$=a,d},W=function(t,e){return{$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}},Z={},J={forEach:function(t,e){return t.map(Q).forEach(e)},map:function(t,e){return t.map(Q).map(e).map(K)}},Q=function(t){return{vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}},K=function(t){var e=W(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},X=function(t,e,n,r,o,i){if(n!==r){var a=E(t,e),s=e.toLowerCase();if("class"===e){var u=t.classList,c=tt(n),l=tt(r);u.remove.apply(u,c.filter(function(t){return t&&!l.includes(t)})),u.add.apply(u,l.filter(function(t){return t&&!c.includes(t)}))}else if("style"===e){for(var f in n)r&&null!=r[f]||(f.includes("-")?t.style.removeProperty(f):t.style[f]="");for(var f in r)n&&r[f]===n[f]||(f.includes("-")?t.style.setProperty(f,r[f]):t.style[f]=r[f])}else if("key"===e);else if("ref"===e)r&&r(t);else if(a||"o"!==e[0]||"n"!==e[1]){var d=U(r);if((a||d&&null!==r)&&!o)try{if(t.tagName.includes("-"))t[e]=r;else{var p=null==r?"":r;null!=n&&t[e]==p||(t[e]=p)}}catch(g){}var h=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(e=s,h=!0),null==r||!1===r?h?t.removeAttributeNS(B,e):t.removeAttribute(e):(!a||4&i||o)&&!d&&(r=!0===r?"":r,h?t.setAttributeNS(B,e,r):t.setAttribute(e,r))}else e="-"===e[2]?e.slice(3):E(m,s)?s.slice(2):s[2]+e.slice(3),n&&v.rel(t,e,n,!1),r&&v.ael(t,e,r,!1)}},Y=/\s/,tt=function(t){return t?t.split(Y):[]},et=function(t,e,n,r){var o=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,i=t&&t.$attrs$||M,a=e.$attrs$||M;for(r in i)r in a||X(o,r,i[r],void 0,n,e.$flags$);for(r in a)X(o,r,i[r],a[r],n,e.$flags$)},nt=function(t,e,n,a){var s,u,c,l=e.$children$[n],d=0;if(f||(p=!0,"slot"===l.$tag$&&(r&&a.classList.add(r+"-s"),l.$flags$|=l.$children$?2:1)),null!==l.$text$)s=l.$elm$=g.createTextNode(l.$text$);else if(1&l.$flags$)s=l.$elm$=g.createTextNode("");else{if(h||(h="svg"===l.$tag$),s=l.$elm$=g.createElementNS(h?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&l.$flags$?"slot-fb":l.$tag$),h&&"foreignObject"===l.$tag$&&(h=!1),et(null,l,h),null!=r&&s["s-si"]!==r&&s.classList.add(s["s-si"]=r),l.$children$)for(d=0;d=0;r--){var o=n[r];o["s-hn"]!==i&&o["s-ol"]&&(ut(o).insertBefore(o,st(o)),o["s-ol"].remove(),o["s-ol"]=void 0,p=!0),e&&rt(o,e)}v.$flags$&=-2},ot=function(t,e,n,r,o,a){var s,u=t["s-cr"]&&t["s-cr"].parentNode||t;for(u.shadowRoot&&u.tagName===i&&(u=u.shadowRoot);o<=a;++o)r[o]&&(s=nt(null,n,o,t))&&(r[o].$elm$=s,u.insertBefore(s,st(e)))},it=function(t,e,n,r,o){for(;e<=n;++e)(r=t[e])&&(o=r.$elm$,pt(r),d=!0,o["s-ol"]?o["s-ol"].remove():rt(o,!0),o.remove())},at=function(t,e){return t.$tag$===e.$tag$&&("slot"===t.$tag$?t.$name$===e.$name$:t.$key$===e.$key$)},st=function(t){return t&&t["s-ol"]||t},ut=function(t){return(t["s-ol"]?t["s-ol"]:t).parentNode},ct=function(t,e){var n,r=e.$elm$=t.$elm$,o=t.$children$,i=e.$children$;h=r&&r.parentNode&&void 0!==r.ownerSVGElement,h="svg"===e.$tag$||"foreignObject"!==e.$tag$&&h,null===e.$text$?("slot"===e.$tag$||et(t,e,h),null!==o&&null!==i?function(t,e,n,r){for(var o,i,a=0,s=0,u=0,c=0,l=e.length-1,f=e[0],d=e[l],p=r.length-1,h=r[0],m=r[p];a<=l&&s<=p;)if(null==f)f=e[++a];else if(null==d)d=e[--l];else if(null==h)h=r[++s];else if(null==m)m=r[--p];else if(at(f,h))ct(f,h),f=e[++a],h=r[++s];else if(at(d,m))ct(d,m),d=e[--l],m=r[--p];else if(at(f,m))"slot"!==f.$tag$&&"slot"!==m.$tag$||rt(f.$elm$.parentNode,!1),ct(f,m),t.insertBefore(f.$elm$,d.$elm$.nextSibling),f=e[++a],m=r[--p];else if(at(d,h))"slot"!==f.$tag$&&"slot"!==m.$tag$||rt(d.$elm$.parentNode,!1),ct(d,h),t.insertBefore(d.$elm$,f.$elm$),d=e[--l],h=r[++s];else{for(u=-1,c=a;c<=l;++c)if(e[c]&&null!==e[c].$key$&&e[c].$key$===h.$key$){u=c;break}u>=0?((i=e[u]).$tag$!==h.$tag$?o=nt(e&&e[s],n,u,t):(ct(i,h),e[u]=void 0,o=i.$elm$),h=r[++s]):(o=nt(e&&e[s],n,s,t),h=r[++s]),o&&ut(f.$elm$).insertBefore(o,st(f.$elm$))}a>l?ot(t,null==r[p+1]?null:r[p+1].$elm$,n,r,s,p):s>p&&it(e,a,l)}(r,o,e,i):null!==i?(null!==t.$text$&&(r.textContent=""),ot(r,null,e,i,0,i.length-1)):null!==o&&it(o,0,o.length-1)):(n=r["s-cr"])?n.parentNode.textContent=e.$text$:t.$text$!==e.$text$&&(r.data=e.$text$),h&&"svg"===e.$tag$&&(h=!1)},lt=function(t){var e,n,r,o,i,a,s=t.childNodes;for(n=0,r=s.length;n=0;u--)(r=o[u])["s-cn"]||r["s-nr"]||r["s-hn"]===n["s-hn"]||((3===(c=r.nodeType)||8===c)&&""===i||1===c&&null===r.getAttribute("slot")&&""===i||1===c&&r.getAttribute("slot")===i)&&(ft.some(function(t){return t.$nodeToRelocate$===r})||(d=!0,r["s-sn"]=i,ft.push({$slotRefNode$:n,$nodeToRelocate$:r})));1===n.nodeType&&dt(n)}},pt=function(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.forEach(pt)},ht=function(t,e){e&&!t.$onRenderResolve$&&e["s-p"].push(new Promise(function(e){return t.$onRenderResolve$=e}))},mt=function(t,e,n,r){if(e.$flags$|=16,!(4&e.$flags$)){var o,i=e.$lazyInstance$,a=function(){return gt(t,e,n,i,r)},s=t["s-rc"];return ht(e,e.$ancestorComponent$),r&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.forEach(function(t){return bt(i,t[0],t[1])}),e.$queuedListeners$=null),o=bt(i,"componentWillLoad")),o=wt(o,function(){return bt(i,"componentWillRender")}),s&&(s.forEach(function(t){return t()}),t["s-rc"]=void 0),wt(o,function(){return D(a)})}e.$flags$|=512},gt=function(t,e,n,a,s){s&&function(t,e,n){var r=H(y&&t.shadowRoot?t.shadowRoot:t.getRootNode(),e,n,t);10&e.$flags$&&(t["s-sc"]=r,t.classList.add(r+"-h"),2&e.$flags$&&t.classList.add(r+"-s"))}(t,n,e.$modeName$);try{!function(t,e,n,a){i=t.tagName;var s,u=e.$vnode$||W(null,null),c=(s=a)&&s.$tag$===Z?a:G(null,null,a);if(n.$attrsToReflect$&&(c.$attrs$=c.$attrs$||{},n.$attrsToReflect$.forEach(function(e){return c.$attrs$[e[1]]=t[e[0]]})),c.$tag$=null,c.$flags$|=4,e.$vnode$=c,c.$elm$=u.$elm$=t.shadowRoot||t,r=t["s-sc"],o=t["s-cr"],f=y&&0!=(1&n.$flags$),p=d=!1,ct(u,c),p){dt(c.$elm$);for(var l=0;l=0;l--)St(t,e,n,r,o,i.childNodes[l],a);if(i.shadowRoot)for(l=i.shadowRoot.childNodes.length-1;l>=0;l--)St(t,e,n,r,o,i.shadowRoot.childNodes[l],a)}else if(8===i.nodeType)(u=i.nodeValue.split("."))[1]!==a&&"0"!==u[1]||(c={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===(s=u[0])?(c.$elm$=i.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,e.push(c),i.remove(),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===a&&("s"===s?(c.$tag$="slot",i["s-sn"]=u[5]?c.$name$=u[5]:"",i["s-sr"]=!0,r&&(c.$elm$=g.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),i.parentNode.insertBefore(c.$elm$,i),i.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),n.push(c),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c):"r"===s&&(r?i.remove():(o["s-cr"]=i,i["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var f=W(null,i.textContent);f.$elm$=i,f.$index$="0",t.$children$=[f]}},Ot=function(t,e){if(1===t.nodeType){for(var n=0;n=2;return function(r){return r.pipe(t?Object(E.a)(function(e,n){return t(e,n,r)}):$.a,Object(C.a)(1),n?Object(L.a)(e):A(function(){return new f}))}}var M=n("9Z1F"),U=n("t9fZ");function V(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(E.a)(function(e,n){return t(e,n,r)}):$.a,Object(U.a)(1),n?Object(L.a)(e):A(function(){return new f}))}}var B=n("psW0"),F=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new z(t,this.predicate,this.thisArg,this.source))},t}(),z=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return r.d(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(j.a),H=n("15JJ"),q=n("PU8L"),G=n("dEwP"),W=n("dC0D"),Z=n("Phjn"),J=n("Qgas"),Q=n("pugT"),K=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new X(t,this.callback))},t}(),X=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new Q.a(n)),r}return r.d(e,t),e}(j.a),Y=n("Zn8D"),tt=n("ZYjt");n.d(e,"t",function(){return In}),n.d(e,"A",function(){return Bn}),n.d(e,"v",function(){return Ln}),n.d(e,"B",function(){return Fn}),n.d(e,"C",function(){return zn}),n.d(e,"x",function(){return Dn}),n.d(e,"w",function(){return $n}),n.d(e,"z",function(){return Vn}),n.d(e,"u",function(){return An}),n.d(e,"y",function(){return Un}),n.d(e,"D",function(){return Tn}),n.d(e,"o",function(){return On}),n.d(e,"d",function(){return nt}),n.d(e,"l",function(){return fn}),n.d(e,"m",function(){return wn}),n.d(e,"k",function(){return pn}),n.d(e,"i",function(){return Pn}),n.d(e,"j",function(){return Hn}),n.d(e,"n",function(){return Nn}),n.d(e,"b",function(){return Sn}),n.d(e,"e",function(){return jn}),n.d(e,"g",function(){return Cn}),n.d(e,"h",function(){return En}),n.d(e,"p",function(){return kn}),n.d(e,"a",function(){return ce}),n.d(e,"f",function(){return bt}),n.d(e,"q",function(){return mn}),n.d(e,"c",function(){return Ft}),n.d(e,"r",function(){return Bt}),n.d(e,"s",function(){return yt});var et=function(){return function(t,e){this.id=t,this.url=e}}(),nt=function(t){function e(e,n,r,o){void 0===r&&(r="imperative"),void 0===o&&(o=null);var i=t.call(this,e,n)||this;return i.navigationTrigger=r,i.restoredState=o,i}return Object(r.d)(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(et),rt=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o}return Object(r.d)(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(et),ot=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.reason=r,o}return Object(r.d)(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(et),it=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.error=r,o}return Object(r.d)(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(et),at=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.d)(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(et),st=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.d)(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(et),ut=function(t){function e(e,n,r,o,i){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=o,a.shouldActivate=i,a}return Object(r.d)(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(et),ct=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.d)(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(et),lt=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.d)(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(et),ft=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),dt=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),pt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),ht=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),mt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),gt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),vt=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),yt=function(){return function(){}}(),bt="primary",wt=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function xt(t){return new wt(t)}var St="ngNavigationCancelingError";function Ot(t){var e=Error("NavigationCancelingError: "+t);return e[St]=!0,e}function _t(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function At(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Nt(t){return Object(i.sb)(t)?t:Object(i.tb)(t)?Object(s.a)(Promise.resolve(t)):Object(a.a)(t)}function Lt(t,e,n){return n?function(t,e){return Pt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Ut(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Ut(a=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Ut(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var a=o.slice(0,n.segments.length),s=o.slice(n.segments.length);return!!Ut(n.segments,a)&&!!n.children[bt]&&e(n.children[bt],r,s)}(e,n,n.segments)}(t.root,e.root)}var $t=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=xt(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return zt.serialize(this)},t}(),Dt=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,At(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ht(this)},t}(),Mt=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=xt(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Qt(this)},t}();function Ut(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Vt(t,e){var n=[];return At(t.children,function(t,r){r===bt&&(n=n.concat(e(t,r)))}),At(t.children,function(t,r){r!==bt&&(n=n.concat(e(t,r)))}),n}var Bt=function(){return function(){}}(),Ft=function(){function t(){}return t.prototype.parse=function(t){var e=new ee(t);return new $t(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Ht(e);if(n){var r=e.children[bt]?t(e.children[bt],!1):"",o=[];return At(e.children,function(e,n){n!==bt&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Vt(e,function(n,r){return r===bt?[t(e.children[bt],!1)]:[r+":"+t(n,!1)]});return Ht(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Gt(t)+"="+Gt(e)}).join("&"):Gt(t)+"="+Gt(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),zt=new Ft;function Ht(t){return t.segments.map(function(t){return Qt(t)}).join("/")}function qt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gt(t){return qt(t).replace(/%3B/gi,";")}function Wt(t){return qt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zt(t){return decodeURIComponent(t)}function Jt(t){return Zt(t.replace(/\+/g,"%20"))}function Qt(t){return""+Wt(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Wt(t)+"="+Wt(e[t])}).join(""));var e}var Kt=/^[^\/()?;=#]+/;function Xt(t){var e=t.match(Kt);return e?e[0]:""}var Yt=/^[^=?&#]+/,te=/^[^?&#]+/,ee=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dt([],{}):new Dt([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[bt]=new Dt(t,e)),n},t.prototype.parseSegment=function(){var t=Xt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Mt(Zt(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Xt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Xt(this.remaining);r&&this.capture(n=r)}t[Zt(e)]=Zt(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Yt))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(te);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Jt(n),a=Jt(r);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(t[i]=s=[s]),s.push(a)}else t[i]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Xt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=bt);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[bt]:new Dt([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),ne=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=re(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=re(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=oe(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return oe(t,this._root).map(function(t){return t.value})},t}();function re(t,e){var n,o;if(t===e.value)return e;try{for(var i=Object(r.k)(e.children),a=i.next();!a.done;a=i.next()){var s=re(t,a.value);if(s)return s}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return null}function oe(t,e){var n,o;if(t===e.value)return[e];try{for(var i=Object(r.k)(e.children),a=i.next();!a.done;a=i.next()){var s=oe(t,a.value);if(s.length)return s.unshift(e),s}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return[]}var ie=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function ae(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var se=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,pe(r,e),r}return Object(r.d)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(ne);function ue(t,e){var n=function(t,e){var n=new fe([],{},{},"",{},bt,e,null,t.root,-1,{});return new de("",new ie(n,[]))}(t,e),r=new u.a([new Mt("",{})]),o=new u.a({}),i=new u.a({}),a=new u.a({}),s=new u.a(""),c=new ce(r,o,a,s,i,bt,e,n.root);return c.snapshot=n.root,new se(new ie(c,[]),n)}var ce=function(){function t(t,e,n,r,o,i,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(O.a)(function(t){return xt(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(O.a)(function(t){return xt(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function le(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,o=0;if("always"!==e)for(o=n.length-1;o>=1;){var i=n[o],a=n[o-1];if(i.routeConfig&&""===i.routeConfig.path)o--;else{if(a.component)break;o--}}return function(t){return t.reduce(function(t,e){return{params:Object(r.a)({},t.params,e.params),data:Object(r.a)({},t.data,e.data),resolve:Object(r.a)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(o))}var fe=function(){function t(t,e,n,r,o,i,a,s,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=xt(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=xt(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),de=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,pe(r,n),r}return Object(r.d)(e,t),e.prototype.toString=function(){return he(this._root)},e}(ne);function pe(t,e){e.value._routerState=t,e.children.forEach(function(e){return pe(t,e)})}function he(t){var e=t.children.length>0?" { "+t.children.map(he).join(", ")+" } ":"";return""+t.value+e}function me(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Pt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Pt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&ve(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Rt(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),we=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function xe(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[bt]:""+t}function Se(t,e,n){if(t||(t=new Dt([],{})),0===t.segments.length&&t.hasChildren())return Oe(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var a=t.segments[o],s=xe(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!je(s,u,a))return i;r+=2}else{if(!je(s,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Dt([],((r={})[bt]=t,r)):t;return new $t(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(O.a)(function(t){return new Dt([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Object(a.a)({});var i=[],s=[],u={};return At(n,function(n,o){var a,c,l=(a=o,c=n,r.expandSegmentGroup(t,e,c,a)).pipe(Object(O.a)(function(t){return u[o]=t}));o===bt?i.push(l):s.push(l)}),a.a.apply(null,i.concat(s)).pipe(Object(_.a)(),D(),Object(O.a)(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,o,i,s){var u=this;return a.a.apply(void 0,Object(r.i)(n)).pipe(Object(O.a)(function(r){return u.expandSegmentAgainstRoute(t,e,n,r,o,i,s).pipe(Object(M.a)(function(t){if(t instanceof Re)return Object(a.a)(null);throw t}))}),Object(_.a)(),V(function(t){return!!t}),Object(M.a)(function(t,n){if(t instanceof f||"EmptyError"===t.name){if(u.noLeftoversInUrl(e,o,i))return Object(a.a)(new Dt([],{}));throw new Re(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,a){return Be(r)!==i?Ne(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Ne(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Le(i):this.lineralizeSegments(n,i).pipe(Object(B.a)(function(n){var i=new Dt(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var a=this,s=Me(e,r,o),u=s.consumedSegments,c=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return Ne(e);var f=this.applyRedirectCommands(u,r.redirectTo,l);return r.redirectTo.startsWith("/")?Le(f):this.lineralizeSegments(r,f).pipe(Object(B.a)(function(r){return a.expandSegment(t,e,n,r.concat(o.slice(c)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,o){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(O.a)(function(t){return n._loadedConfig=t,new Dt(o,{})})):Object(a.a)(new Dt(o,{}));var s=Me(e,n,o),u=s.consumedSegments,c=s.lastChild;if(!s.matched)return Ne(e);var l=o.slice(c);return this.getChildConfig(t,n,o).pipe(Object(B.a)(function(t){var n=t.module,o=t.routes,s=function(t,e,n,o){return n.length>0&&function(t,e,n){return o.some(function(n){return Ve(t,e,n)&&Be(n)!==bt})}(t,n)?{segmentGroup:Ue(new Dt(e,function(t,e){var n,o,i={};i[bt]=e;try{for(var a=Object(r.k)(t),s=a.next();!s.done;s=a.next()){var u=s.value;""===u.path&&Be(u)!==bt&&(i[Be(u)]=new Dt([],{}))}}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}(o,new Dt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return o.some(function(n){return Ve(t,e,n)})}(t,n)?{segmentGroup:Ue(new Dt(t.segments,function(t,e,n,o){var i,a,s={};try{for(var u=Object(r.k)(n),c=u.next();!c.done;c=u.next()){var l=c.value;Ve(t,e,l)&&!o[Be(l)]&&(s[Be(l)]=new Dt([],{}))}}catch(f){i={error:f}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return Object(r.a)({},o,s)}(t,n,o,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,l,o),c=s.segmentGroup,f=s.slicedSegments;return 0===f.length&&c.hasChildren()?i.expandChildren(n,o,c).pipe(Object(O.a)(function(t){return new Dt(u,t)})):0===o.length&&0===f.length?Object(a.a)(new Dt(u,{})):i.expandSegment(n,c,o,f,bt,!0).pipe(Object(O.a)(function(t){return new Dt(u.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Object(a.a)(new Et(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(a.a)(e._loadedConfig):function(t,e,n){var r,o=e.canLoad;return o&&0!==o.length?Object(s.a)(o).pipe(Object(O.a)(function(r){var o,i=t.get(r);if(function(t){return t&&Pe(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!Pe(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return Nt(o)})).pipe(Object(_.a)(),(r=function(t){return!0===t},function(t){return t.lift(new F(r,void 0,t))})):Object(a.a)(!0)}(t.injector,e,n).pipe(Object(B.a)(function(n){return n?r.configLoader.load(t.injector,e).pipe(Object(O.a)(function(t){return e._loadedConfig=t,t})):function(t){return new c.a(function(e){return e.error(Ot("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):Object(a.a)(new Et([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(a.a)(n);if(r.numberOfChildren>1||!r.children[bt])return $e(t.redirectTo);r=r.children[bt]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new $t(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return At(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),a={};return At(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,n,r)}),new Dt(i,a)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,o,i=0;try{for(var a=Object(r.k)(e),s=a.next();!s.done;s=a.next()){var u=s.value;if(u.path===t.path)return e.splice(i),u;i++}}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return t},t}();function Me(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||_t)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ue(t){if(1===t.numberOfChildren&&t.children[bt]){var e=t.children[bt];return new Dt(t.segments.concat(e.segments),e.children)}return t}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Be(t){return t.outlet||bt}var Fe=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),ze=function(){return function(t,e){this.component=t,this.route=e}}();function He(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function qe(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=ae(e);return t.children.forEach(function(t){!function(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){var u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ut(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ut(t.url,e.url)||!Pt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ge(t,e)||!Pt(t.queryParams,e.queryParams);case"paramsChange":default:return!ge(t,e)}}(a,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Fe(r)):(i.data=a.data,i._resolvedData=a._resolvedData),qe(t,e,i.component?s?s.children:null:n,r,o),u&&o.canDeactivateChecks.push(new ze(s&&s.outlet&&s.outlet.component||null,a))}else a&&Ge(e,s,o),o.canActivateChecks.push(new Fe(r)),qe(t,null,i.component?s?s.children:null:n,r,o)}(t,i[t.value.outlet],n,r.concat([t.value]),o),delete i[t.value.outlet]}),At(i,function(t,e){return Ge(t,n.getContext(e),o)}),o}function Ge(t,e,n){var r=ae(t),o=t.value;At(r,function(t,r){Ge(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new ze(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}var We=Symbol("INITIAL_VALUE");function Ze(){return Object(H.a)(function(t){return(function(){for(var t=[],e=0;e0?Object(G.a)(Object(g.a)(t,n),e):Object(G.a)(Object(w.b)(n),e):Object(G.a)(Object(q.a)(t[0]),e)}}(We))}))).pipe(Object(W.a)(function(t,e){var n=!1;return e.reduce(function(t,r,o){if(t!==We)return t;if(r===We&&(n=!0),!n){if(!1===r)return r;if(o===e.length-1||Ie(r))return r}return t},t)},We),Object(E.a)(function(t){return t!==We}),Object(O.a)(function(t){return Ie(t)?t:!0===t}),Object(U.a)(1))})}function Je(t,e){return null!==t&&e&&e(new mt(t)),Object(a.a)(!0)}function Qe(t,e){return null!==t&&e&&e(new pt(t)),Object(a.a)(!0)}function Ke(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(a.a)(!0);var o=r.map(function(r){return x(function(){var o,i=He(r,e,n);if(function(t){return t&&Pe(t.canActivate)}(i))o=Nt(i.canActivate(e,t));else{if(!Pe(i))throw new Error("Invalid CanActivate guard");o=Nt(i(e,t))}return o.pipe(V())})});return Object(a.a)(o).pipe(Ze())}function Xe(t,e,n){var r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return x(function(){var o=e.guards.map(function(o){var i,a=He(o,e.node,n);if(function(t){return t&&Pe(t.canActivateChild)}(a))i=Nt(a.canActivateChild(r,t));else{if(!Pe(a))throw new Error("Invalid CanActivateChild guard");i=Nt(a(r,t))}return i.pipe(V())});return Object(a.a)(o).pipe(Ze())})});return Object(a.a)(o).pipe(Ze())}var Ye=function(){return function(){}}(),tn=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=rn(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,bt),n=new fe([],Object.freeze({}),Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},bt,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new ie(n,e),i=new de(this.url,o);return this.inheritParamsAndData(i._root),Object(a.a)(i)}catch(s){return new c.a(function(t){return t.error(s)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=le(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=Vt(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===bt?-1:e.value.outlet===bt?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,o){var i,a;try{for(var s=Object(r.k)(t),u=s.next();!u.done;u=s.next()){var c=u.value;try{return this.processSegmentAgainstRoute(c,e,n,o)}catch(l){if(!(l instanceof Ye))throw l}}}catch(f){i={error:f}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(e,n,o))return[];throw new Ye},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,o){if(t.redirectTo)throw new Ye;if((t.outlet||bt)!==o)throw new Ye;var i,a=[],s=[];if("**"===t.path){var u=n.length>0?Rt(n).parameters:{};i=new fe(n,u,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,sn(t),o,t.component,t,en(e),nn(e)+n.length,un(t))}else{var c=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ye;return{consumedSegments:[],lastChild:0,parameters:{}}}var o=(e.matcher||_t)(n,t,e);if(!o)throw new Ye;var i={};At(o.posParams,function(t,e){i[e]=t.path});var a=o.consumed.length>0?Object(r.a)({},i,o.consumed[o.consumed.length-1].parameters):i;return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a}}(e,t,n);a=c.consumedSegments,s=n.slice(c.lastChild),i=new fe(a,c.parameters,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,sn(t),o,t.component,t,en(e),nn(e)+a.length,un(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=rn(e,a,s,l,this.relativeLinkResolution),d=f.segmentGroup,p=f.slicedSegments;if(0===p.length&&d.hasChildren()){var h=this.processChildren(l,d);return[new ie(i,h)]}if(0===l.length&&0===p.length)return[new ie(i,[])];var m=this.processSegment(l,d,p,bt);return[new ie(i,m)]},t}();function en(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function nn(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function rn(t,e,n,o,i){if(n.length>0&&function(t,e,n){return o.some(function(n){return on(t,e,n)&&an(n)!==bt})}(t,n)){var a=new Dt(e,function(t,e,n,o){var i,a,s={};s[bt]=o,o._sourceSegment=t,o._segmentIndexShift=e.length;try{for(var u=Object(r.k)(n),c=u.next();!c.done;c=u.next()){var l=c.value;if(""===l.path&&an(l)!==bt){var f=new Dt([],{});f._sourceSegment=t,f._segmentIndexShift=e.length,s[an(l)]=f}}}catch(d){i={error:d}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return s}(t,e,o,new Dt(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return o.some(function(n){return on(t,e,n)})}(t,n)){var s=new Dt(t.segments,function(t,e,n,o,i,a){var s,u,c={};try{for(var l=Object(r.k)(o),f=l.next();!f.done;f=l.next()){var d=f.value;if(on(t,n,d)&&!i[an(d)]){var p=new Dt([],{});p._sourceSegment=t,p._segmentIndexShift="legacy"===a?t.segments.length:e.length,c[an(d)]=p}}}catch(h){s={error:h}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(s)throw s.error}}return Object(r.a)({},i,c)}(t,e,n,o,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var u=new Dt(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function on(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function an(t){return t.outlet||bt}function sn(t){return t.data||{}}function un(t){return t.resolve||{}}function cn(t,e,n,r){var o=He(t,e,r);return Nt(o.resolve?o.resolve(e,n):o(e,n))}function ln(t){return function(e){return e.pipe(Object(H.a)(function(e){var n=t(e);return n?Object(s.a)(n).pipe(Object(O.a)(function(){return e})):Object(s.a)([e])}))}}var fn=function(){return function(){}}(),dn=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),pn=new i.p("ROUTES"),hn=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(O.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Et(It(o.injector.get(pn)).map(Tt),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(s.a)(this.loader.load(t)):Nt(t()).pipe(Object(B.a)(function(t){return t instanceof i.v?Object(a.a)(t):Object(s.a)(e.compiler.compileModuleAsync(t))}))},t}(),mn=function(){return function(){}}(),gn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function vn(t){throw t}function yn(t,e,n){return e.parse("/")}function bn(t,e){return Object(a.a)(null)}var wn=function(){function t(t,e,n,r,o,a,s,c){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S.a,this.errorHandler=vn,this.malformedUriErrorHandler=yn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:bn,afterPreactivation:bn},this.urlHandlingStrategy=new gn,this.routeReuseStrategy=new dn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(i.x),this.console=o.get(i.bb);var f=o.get(i.z);this.isNgZoneEnabled=f instanceof i.z,this.resetConfig(c),this.currentUrlTree=new $t(new Dt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new hn(a,s,function(t){return l.triggerEvent(new ft(t))},function(t){return l.triggerEvent(new dt(t))}),this.routerState=ue(this.currentUrlTree,this.rootComponentType),this.transitions=new u.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(Object(E.a)(function(t){return 0!==t.id}),Object(O.a)(function(t){return Object(r.a)({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Object(H.a)(function(t){var o,i,c,l,f=!1,d=!1;return Object(a.a)(t).pipe(P(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object(r.a)({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Object(H.a)(function(t){var o,i,s,u,c=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||c)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(a.a)(t).pipe(Object(H.a)(function(t){var r=e.transitions.getValue();return n.next(new nt(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?w.a:[t]}),Object(H.a)(function(t){return Promise.resolve(t)}),(o=e.ngModule.injector,i=e.configLoader,s=e.urlSerializer,u=e.config,function(t){return t.pipe(Object(H.a)(function(t){return function(e,n,r,o,i){return new De(e,n,r,t.extractedUrl,i).apply()}(o,i,s,0,u).pipe(Object(O.a)(function(e){return Object(r.a)({},t,{urlAfterRedirects:e})}))}))}),P(function(t){e.currentNavigation=Object(r.a)({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,o,i,a){return function(o){return o.pipe(Object(B.a)(function(o){return function(t,e,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new tn(t,e,n,r,o,i).recognize()}(t,n,o.urlAfterRedirects,(s=o.urlAfterRedirects,e.serializeUrl(s)),i,a).pipe(Object(O.a)(function(t){return Object(r.a)({},o,{targetSnapshot:t})}));var s}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),P(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id),e.browserUrlTree=t.urlAfterRedirects)}),P(function(t){var r=new at(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(c&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,f=t.source,d=t.restoredState,p=t.extras,h=new nt(t.id,e.serializeUrl(l),f,d);n.next(h);var m=ue(l,e.rootComponentType).snapshot;return Object(a.a)(Object(r.a)({},t,{targetSnapshot:m,urlAfterRedirects:l,extras:Object(r.a)({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),w.a}),ln(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),P(function(t){var n=new st(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Object(O.a)(function(t){return Object(r.a)({},t,{guards:(n=t.targetSnapshot,o=t.currentSnapshot,i=e.rootContexts,a=n._root,qe(a,o?o._root:null,i,[a.value]))});var n,o,i,a}),function(t,e){return function(n){return n.pipe(Object(B.a)(function(n){var o=n.targetSnapshot,i=n.currentSnapshot,u=n.guards,c=u.canActivateChecks,l=u.canDeactivateChecks;return 0===l.length&&0===c.length?Object(a.a)(Object(r.a)({},n,{guardsResult:!0})):function(t,e,n,r){return Object(s.a)(t).pipe(Object(B.a)(function(t){return function(t,e,n,r,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||0===i.length)return Object(a.a)(!0);var s=i.map(function(i){var a,s=He(i,e,o);if(function(t){return t&&Pe(t.canDeactivate)}(s))a=Nt(s.canDeactivate(t,e,n,r));else{if(!Pe(s))throw new Error("Invalid CanDeactivate guard");a=Nt(s(t,e,n,r))}return a.pipe(V())});return Object(a.a)(s).pipe(Ze())}(t.component,t.route,n,e,r)}),V(function(t){return!0!==t},!0))}(l,o,i,t).pipe(Object(B.a)(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Object(s.a)(e).pipe(Object(Z.a)(function(e){return Object(s.a)([Qe(e.route.parent,r),Je(e.route,r),Xe(t,e.path,n),Ke(t,e.route,n)]).pipe(Object(_.a)(),V(function(t){return!0!==t},!0))}),V(function(t){return!0!==t},!0))}(o,c,t,e):Object(a.a)(n)}),Object(O.a)(function(t){return Object(r.a)({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),P(function(t){if(Ie(t.guardsResult)){var n=Ot('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),P(function(t){var n=new ut(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),Object(E.a)(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new ot(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),ln(function(t){if(t.guards.canActivateChecks.length)return Object(a.a)(t).pipe(P(function(t){var n=new ct(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,o=e.ngModule.injector,function(t){return t.pipe(Object(B.a)(function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;return i.length?Object(s.a)(i).pipe(Object(Z.a)(function(t){return function(t,n,o,i){return function(t,e,n,r){var o=Object.keys(t);if(0===o.length)return Object(a.a)({});if(1===o.length){var i=o[0];return cn(t[i],e,n,r).pipe(Object(O.a)(function(t){var e;return(e={})[i]=t,e}))}var u={};return Object(s.a)(o).pipe(Object(B.a)(function(o){return cn(t[o],e,n,r).pipe(Object(O.a)(function(t){return u[o]=t,t}))})).pipe(D(),Object(O.a)(function(){return u}))}(t._resolve,t,e,i).pipe(Object(O.a)(function(e){return t._resolvedData=e,t.data=Object(r.a)({},t.data,le(t,o).resolve),null}))}(t.route,0,n,o)}),Object(J.a)(function(t,e){return t}),Object(O.a)(function(e){return t})):Object(a.a)(t)}))}),P(function(t){var n=new lt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,o}),ln(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Object(O.a)(function(t){var n,o,i,a=(i=function t(e,n,o){if(o&&e.shouldReuseRoute(n.value,o.value.snapshot)){(l=o.value)._futureSnapshot=n.value;var i=function(e,n,o){return n.children.map(function(n){var i,a;try{for(var s=Object(r.k)(o.children),u=s.next();!u.done;u=s.next()){var c=u.value;if(e.shouldReuseRoute(c.value.snapshot,n.value))return t(e,n,c)}}catch(l){i={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return t(e,n)})}(e,n,o);return new ie(l,i)}var a=e.retrieve(n.value);if(a){var s=a.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;rs;){if(u-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new we(a,!1,s-u)}()}(a,0,t),u=s.processChildren?Oe(s.segmentGroup,s.index,a.commands):Se(s.segmentGroup,s.index,a.commands);return ye(s.segmentGroup,u,e,o,i)}(l,this.currentUrlTree,t,d,f)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),Object(i.W)()&&this.isNgZoneEnabled&&!i.z.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Ie(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;s||(s=t[a]=[]);var c=Q(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:c,handler:o});else{for(var l=!1,f=0;f-1},e}(T),ot=["alt","control","meta","shift"],it={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},at=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.d)(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(ot.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ot.forEach(function(r){r!=n&&(0,it[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(T),st=function(){return function(){}}(),ut=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(r.d)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case i.G.NONE:return e;case i.G.HTML:return e instanceof lt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),Object(i.cb)(this._doc,String(e)));case i.G.STYLE:return e instanceof ft?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),Object(i.db)(e));case i.G.SCRIPT:if(e instanceof dt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case i.G.URL:return e instanceof ht||e instanceof pt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),Object(i.eb)(String(e)));case i.G.RESOURCE_URL:if(e instanceof ht)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ct)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new lt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ft(t)},e.prototype.bypassSecurityTrustScript=function(t){return new dt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new pt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ht(t)},e}(st),ct=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ct),ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ct),dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ct),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ct),ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ct),mt=[{provide:i.B,useValue:o.p},{provide:i.C,useValue:function(){p.makeCurrent(),w.init()},multi:!0},{provide:o.m,useClass:v,deps:[m]},{provide:m,useFactory:function(){return document},deps:[]}],gt=Object(i.Q)(i.X,"browser",mt);function vt(){return new i.l}var yt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var e;return e=t,t.withServerTransition=function(t){return{ngModule:e,providers:[{provide:i.c,useValue:t.appId},{provide:y,useExisting:i.c},b]}},t}();"undefined"!=typeof window&&window},"ZZ/e":function(t,e,n){"use strict";var r=n("mrSG"),o=n("CcnG"),i=n("Ip0R"),a=n("ZYCi"),s=n("ttJE"),u=(n("wSPg"),n("FX7f"),n("xoJo"),n("ocqh")),c=(n("BCwa"),n("CTpc")),l=n("K9Ia"),f=n("bne5"),d=n("26FU"),p=n("VnD/"),h=n("15JJ"),m=n("FFOo"),g=n("Ehmk"),v=n("eihs"),y=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new b(t,this.compare,this.keySelector))},t}(),b=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return r.d(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Object(g.a)(this.keySelector)(t))===v.a)return this.destination.error(v.a.e);var n=!1;if(this.hasKey){if((n=Object(g.a)(this.compare)(this.key,e))===v.a)return this.destination.error(v.a.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(m.a),w=n("Twl7");!function(){if(void 0!==window.Reflect&&void 0!==window.customElements){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}(),n.d(e,"a",function(){return Ie}),n.d(e,"b",function(){return Re}),n.d(e,"c",function(){return ce}),n.d(e,"d",function(){return j}),n.d(e,"e",function(){return ie}),n.d(e,"f",function(){return U}),n.d(e,"g",function(){return V}),n.d(e,"h",function(){return B}),n.d(e,"i",function(){return F}),n.d(e,"j",function(){return z}),n.d(e,"k",function(){return H}),n.d(e,"l",function(){return q}),n.d(e,"m",function(){return G}),n.d(e,"n",function(){return W}),n.d(e,"o",function(){return Z}),n.d(e,"p",function(){return J}),n.d(e,"q",function(){return Q}),n.d(e,"r",function(){return K}),n.d(e,"s",function(){return X}),n.d(e,"t",function(){return Y}),n.d(e,"u",function(){return tt}),n.d(e,"v",function(){return et}),n.d(e,"w",function(){return nt}),n.d(e,"x",function(){return rt}),n.d(e,"y",function(){return ot}),n.d(e,"z",function(){return it}),n.d(e,"A",function(){return at}),n.d(e,"B",function(){return st}),n.d(e,"C",function(){return ut}),n.d(e,"D",function(){return ct}),n.d(e,"E",function(){return lt}),n.d(e,"F",function(){return ft}),n.d(e,"G",function(){return dt}),n.d(e,"H",function(){return pt}),n.d(e,"I",function(){return ht}),n.d(e,"J",function(){return mt}),n.d(e,"K",function(){return gt}),n.d(e,"L",function(){return vt}),n.d(e,"M",function(){return yt}),n.d(e,"N",function(){return bt}),n.d(e,"O",function(){return wt}),n.d(e,"P",function(){return xt}),n.d(e,"Q",function(){return St}),n.d(e,"R",function(){return Ot}),n.d(e,"S",function(){return _t}),n.d(e,"T",function(){return Et}),n.d(e,"U",function(){return Ct}),n.d(e,"V",function(){return jt}),n.d(e,"W",function(){return kt}),n.d(e,"X",function(){return Tt}),n.d(e,"Y",function(){return Pt}),n.d(e,"Z",function(){return It}),n.d(e,"ab",function(){return Rt}),n.d(e,"bb",function(){return At}),n.d(e,"cb",function(){return Nt}),n.d(e,"db",function(){return Lt}),n.d(e,"eb",function(){return $t}),n.d(e,"fb",function(){return Dt}),n.d(e,"gb",function(){return Mt}),n.d(e,"hb",function(){return Ut}),n.d(e,"ib",function(){return Ee}),n.d(e,"jb",function(){return Vt}),n.d(e,"kb",function(){return Bt}),n.d(e,"lb",function(){return Ft}),n.d(e,"mb",function(){return zt}),n.d(e,"nb",function(){return Ht}),n.d(e,"ob",function(){return qt}),n.d(e,"pb",function(){return Gt}),n.d(e,"qb",function(){return Wt}),n.d(e,"rb",function(){return Zt}),n.d(e,"sb",function(){return Jt}),n.d(e,"tb",function(){return Qt}),n.d(e,"ub",function(){return Kt}),n.d(e,"vb",function(){return Xt}),n.d(e,"wb",function(){return je}),n.d(e,"xb",function(){return Yt}),n.d(e,"yb",function(){return te}),n.d(e,"zb",function(){return ee}),n.d(e,"Ab",function(){return ne}),n.d(e,"Bb",function(){return re}),n.d(e,"Cb",function(){return oe}),n.d(e,"Db",function(){return ke}),n.d(e,"Eb",function(){return Ue}),n.d(e,"Fb",function(){return $e}),n.d(e,"Gb",function(){return Ae}),n.d(e,"Hb",function(){return Ne}),n.d(e,"Ib",function(){return R}),n.d(e,"Jb",function(){return T}),n.d(e,"Kb",function(){return Le}),n.d(e,"Lb",function(){return k}),n.d(e,"Mb",function(){return ae}),n.d(e,"Nb",function(){return Me});var x=function(t){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t)},S=function(){function t(t){this.el=t,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this.el.nativeElement.value=this.lastValue=null==t?"":t,O(this.el)},t.prototype.handleChangeEvent=function(t,e){t===this.el.nativeElement&&(e!==this.lastValue&&(this.lastValue=e,this.onChange(e)),O(this.el))},t.prototype._handleBlurEvent=function(t){t===this.el.nativeElement&&(this.onTouched(),O(this.el))},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.el.nativeElement.disabled=t},t}(),O=function(t){x(function(){var e=t.nativeElement,n=_(e);E(e,n);var r=e.closest("ion-item");r&&E(r,n)})},_=function(t){for(var e=t.classList,n=[],r=0;r=0)},t.prototype.url=function(){return this.win.location.href},t.prototype.width=function(){return this.win.innerWidth},t.prototype.height=function(){return this.win.innerHeight},t.ngInjectableDef=Object(o.R)({factory:function(){return new t(Object(o.V)(i.c),Object(o.V)(o.z))},token:t,providedIn:"root"}),t}(),P=function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},I=function(t,e,n){e&&e.addEventListener(n,function(e){t.next(null!=e?e.detail:void 0)})},R=function(){function t(t,e,n,r){var o=this;this.location=e,this.serializer=n,this.router=r,this.direction=N,this.animated=L,this.guessDirection="forward",this.lastNavId=-1,r&&r.events.subscribe(function(t){if(t instanceof a.d){var e=t.restoredState?t.restoredState.navigationId:t.id;o.guessDirection=e=t.length)return n[r];if(n[r]!==t[r])return}},we=function(t){return t.split("/").map(function(t){return t.trim()}).filter(function(t){return""!==t})},xe=function(t){t&&(t.ref.destroy(),t.unlistenEvents())},Se=function(){function t(t,e,n,r,o,i){this.containerEl=e,this.router=n,this.navCtrl=r,this.zone=o,this.location=i,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==t?we(t):void 0}return t.prototype.createView=function(t,e){var n=ye(this.router,e),r=t&&t.location&&t.location.nativeElement,o=pe(this.zone,t.instance,r);return{id:this.nextId++,stackId:be(this.tabsPrefix,n),unlistenEvents:o,element:r,ref:t,url:n}},t.prototype.getExistingView=function(t){var e=ye(this.router,t),n=this.views.find(function(t){return t.url===e});return n&&n.ref.changeDetectorRef.reattach(),n},t.prototype.setActive=function(t){var e=this,n=this.navCtrl.consumeTransition(),r=n.direction,o=n.animation,i=this.activeView,a=function(t,e){return!e||t.stackId!==e.stackId}(t,i);a&&(r="back",o=void 0);var s,u=this.views.slice(),c=this.router;c.getCurrentNavigation?s=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(s=c.navigations.value),s&&s.extras&&s.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);var l=this.views.includes(t),f=this.insertView(t,r);return l||t.ref.changeDetectorRef.detectChanges(),this.zone.runOutsideAngular(function(){return e.wait(function(){return i&&i.ref.changeDetectorRef.detach(),t.ref.changeDetectorRef.reattach(),e.transition(t,i,o,e.canGoBack(1),!1).then(function(){return Oe(t,f,u,e.location)}).then(function(){return{enteringView:t,direction:r,animation:o,tabSwitch:a}})})})},t.prototype.canGoBack=function(t,e){return void 0===e&&(e=this.getActiveStackId()),this.getStack(e).length>t},t.prototype.pop=function(t,e){var n=this;return void 0===e&&(e=this.getActiveStackId()),this.zone.run(function(){var r=n.getStack(e);if(r.length<=t)return Promise.resolve(!1);var o=r[r.length-t-1],i=o.url,a=o.savedData;if(a){var s=a.get("primary");s&&s.route&&s.route._routerState&&s.route._routerState.snapshot&&s.route._routerState.snapshot.url&&(i=s.route._routerState.snapshot.url)}return n.navCtrl.navigateBack(i,o.savedExtras).then(function(){return!0})})},t.prototype.startBackTransition=function(){var t=this,e=this.activeView;if(e){var n=this.getStack(e.stackId),r=n[n.length-2];return this.wait(function(){return t.transition(r,e,"back",t.canGoBack(2),!0)})}return Promise.resolve()},t.prototype.endBackTransition=function(t){t?(this.skipTransition=!0,this.pop(1)):this.activeView&&_e(this.activeView,this.views,this.views,this.location)},t.prototype.getLastUrl=function(t){var e=this.getStack(t);return e.length>0?e[e.length-1]:void 0},t.prototype.getActiveStackId=function(){return this.activeView?this.activeView.stackId:void 0},t.prototype.destroy=function(){this.containerEl=void 0,this.views.forEach(xe),this.activeView=void 0,this.views=[]},t.prototype.getStack=function(t){return this.views.filter(function(e){return e.stackId===t})},t.prototype.insertView=function(t,e){return this.activeView=t,this.views=function(t,e,n){return"root"===n?ve(t,e):"forward"===n?function(t,e){return t.indexOf(e)>=0?t=t.filter(function(t){return t.stackId!==e.stackId||t.id<=e.id}):t.push(e),t}(t,e):function(t,e){return t.indexOf(e)>=0?t.filter(function(t){return t.stackId!==e.stackId||t.id<=e.id}):ve(t,e)}(t,e)}(this.views,t,e),this.views.slice()},t.prototype.transition=function(t,e,n,r,o){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(e===t)return Promise.resolve(!1);var i=t?t.element:void 0,a=e?e.element:void 0,s=this.containerEl;return i&&i!==a&&(i.classList.add("ion-page"),i.classList.add("ion-page-invisible"),i.parentElement!==s&&s.appendChild(i),s.commit)?s.commit(i,a,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:r,progressAnimation:o}):Promise.resolve(!1)},t.prototype.wait=function(t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.e)(this,function(e){switch(e.label){case 0:return void 0===this.runningTask?[3,2]:[4,this.runningTask];case 1:e.sent(),this.runningTask=void 0,e.label=2;case 2:return[2,this.runningTask=t()]}})})},t}(),Oe=function(t,e,n,r){return"function"==typeof requestAnimationFrame?new Promise(function(o){requestAnimationFrame(function(){_e(t,e,n,r),o()})}):Promise.resolve()},_e=function(t,e,n,r){n.filter(function(t){return!e.includes(t)}).forEach(xe),e.forEach(function(e){var n=r.path().split("?")[0].split("#")[0];if(e!==t&&e.url!==n){var o=e.element;o.setAttribute("aria-hidden","true"),o.classList.add("ion-page-hidden"),e.ref.changeDetectorRef.detach()}})},Ee=function(){function t(t,e,n,r,i,s,u,c,l,f,p,h,m){this.parentContexts=t,this.location=e,this.resolver=n,this.config=s,this.navCtrl=u,this.parentOutlet=m,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new d.a(null),this.stackEvents=new o.m,this.activateEvents=new o.m,this.deactivateEvents=new o.m,this.nativeEl=l.nativeElement,this.name=r||a.f,this.tabsPrefix="true"===i?ye(f,h):void 0,this.stackCtrl=new Se(this.tabsPrefix,this.nativeEl,f,u,p,c),t.onChildOutletCreated(this.name,this)}return Object.defineProperty(t.prototype,"animated",{set:function(t){this.nativeEl.animated=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"swipeGesture",{set:function(t){var e=this;this._swipeGesture=t,this.nativeEl.swipeHandler=t?{canStart:function(){return e.stackCtrl.canGoBack(1)},onStart:function(){return e.stackCtrl.startBackTransition()},onEnd:function(t){return e.stackCtrl.endBackTransition(t)}}:void 0},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.stackCtrl.destroy()},t.prototype.getContext=function(){return this.parentContexts.getContext(this.name)},t.prototype.ngOnInit=function(){var t=this;if(!this.activated){var e=this.getContext();e&&e.route&&this.activateWith(e.route,e.resolver||null)}this.nativeEl.componentOnReady&&this.nativeEl.componentOnReady().then(function(){void 0===t._swipeGesture&&(t.swipeGesture=t.config.getBoolean("swipeBackEnabled","ios"===t.nativeEl.mode))})},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){throw new Error("incompatible reuse strategy")},t.prototype.attach=function(t,e){throw new Error("incompatible reuse strategy")},t.prototype.deactivate=function(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};var t=this.getContext();if(t.route){var e=t.route.snapshot;this.activatedView.savedExtras.queryParams=e.queryParams,this.activatedView.savedExtras.fragment=e.fragment}}var n=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}},t.prototype.activateWith=function(t,e){var n,r=this;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var o=this.stackCtrl.getExistingView(t);if(o){n=this.activated=o.ref;var i=o.savedData;i&&(this.getContext().children.contexts=i),this.updateActivatedRouteProxy(n.instance,t)}else{var a=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,u=new d.a(null),c=this.createActivatedRouteProxy(u,t),l=new Ce(c,s,this.location.injector);n=this.activated=this.location.createComponent(a,this.location.length,l),u.next(n.instance),o=this.stackCtrl.createView(this.activated,t),this.proxyMap.set(n.instance,c),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:t})}this.activatedView=o,this.stackCtrl.setActive(o).then(function(t){r.navCtrl.setTopOutlet(r),r.activateEvents.emit(n.instance),r.stackEvents.emit(t)})},t.prototype.canGoBack=function(t,e){return void 0===t&&(t=1),this.stackCtrl.canGoBack(t,e)},t.prototype.pop=function(t,e){return void 0===t&&(t=1),this.stackCtrl.pop(t,e)},t.prototype.getLastUrl=function(t){var e=this.stackCtrl.getLastUrl(t);return e?e.url:void 0},t.prototype.getActiveStackId=function(){return this.stackCtrl.getActiveStackId()},t.prototype.createActivatedRouteProxy=function(t,e){var n=new a.a;return n._futureSnapshot=e._futureSnapshot,n._routerState=e._routerState,n.snapshot=e.snapshot,n.outlet=e.outlet,n.component=e.component,n._paramMap=this.proxyObservable(t,"paramMap"),n._queryParamMap=this.proxyObservable(t,"queryParamMap"),n.url=this.proxyObservable(t,"url"),n.params=this.proxyObservable(t,"params"),n.queryParams=this.proxyObservable(t,"queryParams"),n.fragment=this.proxyObservable(t,"fragment"),n.data=this.proxyObservable(t,"data"),n},t.prototype.proxyObservable=function(t,e){var n=this;return t.pipe(Object(p.a)(function(t){return!!t}),Object(h.a)(function(t){return n.currentActivatedRoute$.pipe(Object(p.a)(function(e){return null!==e&&e.component===t}),Object(h.a)(function(t){return t&&t.activatedRoute[e]}),function(t){return t.lift(new y(void 0,void 0))})}))},t.prototype.updateActivatedRouteProxy=function(t,e){var n=this.proxyMap.get(t);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=e._futureSnapshot,n._routerState=e._routerState,n.snapshot=e.snapshot,n.outlet=e.outlet,n.component=e.component,this.currentActivatedRoute$.next({component:t,activatedRoute:e})},t}(),Ce=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===a.a?this.route:t===a.b?this.childContexts:this.parent.get(t,e)},t}(),je=function(){function t(t){this.navCtrl=t,this.ionTabsWillChange=new o.m,this.ionTabsDidChange=new o.m}return t.prototype.onPageSelected=function(t){var e=t.enteringView.stackId;t.tabSwitch&&void 0!==e&&(this.tabBar&&(this.tabBar.selectedTab=e),this.ionTabsWillChange.emit({tab:e}),this.ionTabsDidChange.emit({tab:e}))},t.prototype.select=function(t){var e=this.outlet.getActiveStackId()===t,n=this.outlet.tabsPrefix+"/"+t,r=e?n:this.outlet.getLastUrl(t)||n;return this.navCtrl.navigateRoot(r,{animated:!0,animationDirection:"back"})},t.prototype.getSelected=function(){return this.outlet.getActiveStackId()},t}(),ke=function(){function t(t,e,n){this.z=t,this.iterableDiffers=e,this.refMap=new WeakMap,this.el=n.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}return t.prototype.ngOnChanges=function(t){if(this.trackBy&&"items"in t){var e=t.items.currentValue;if(void 0===this.differ&&null!=e)try{this.differ=this.iterableDiffers.find(e).create(this.trackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+e+"'. VirtualScroll only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)},t.prototype.nodeRender=function(t,e,n){var r=this;return this.z.run(function(){var o;if(t){var i=(o=r.refMap.get(t)).context;i.$implicit=e.value,i.index=e.index}else o=r.itmTmp.viewContainer.createEmbeddedView(r.getComponent(e.type),{$implicit:e.value,index:n},n),t=Te(o),r.refMap.set(t,o);return o.detectChanges(),t})},t.prototype.getComponent=function(t){switch(t){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")},t}(),Te=function(t){for(var e=t.rootNodes,n=0;n1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var o=new Array(64),i=new Array(123),a=0;a<64;)i[o[a]=a<26?a+65:a<52?a+71:a<62?a-4:a-59|43]=a++;r.encode=function(t,e,n){for(var r,i=null,a=[],s=0,u=0;e>2],r=(3&c)<<4,u=1;break;case 1:a[s++]=o[r|c>>4],r=(15&c)<<2,u=2;break;case 2:a[s++]=o[r|c>>6],a[s++]=o[63&c],u=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=o[r],a[s++]=61,1===u&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join("")):String.fromCharCode.apply(String,a.slice(0,s))},r.decode=function(t,e,n){for(var r,o=n,a=0,s=0;s1)break;if(void 0===(u=i[u]))throw Error("invalid encoding");switch(a){case 0:r=u,a=1;break;case 1:e[n++]=r<<2|(48&u)>>4,r=u,a=2;break;case 2:e[n++]=(15&r)<<4|(60&u)>>2,r=u,a=3;break;case 3:e[n++]=(3&r)<<6|u,a=0}}if(1===a)throw Error("invalid encoding");return n-o},r.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},bne5:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("6blF"),o=n("isby"),i=n("2Bdj"),a=n("67Y/");function s(t,e,n,u){return Object(i.a)(n)&&(u=n,n=void 0),u?s(t,e,n).pipe(Object(a.a)(function(t){return Object(o.a)(t)?u.apply(void 0,t):u(t)})):new r.a(function(r){!function t(e,n,r,o,i){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,i),a=function(){return s.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),a=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),a=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l1?Array.prototype.slice.call(arguments):t)},r,n)})}},crnd:function(t,e,n){var r={"../tab1/tab1.module.ngfactory":["JLuJ",2,0,15],"../tab2/tab2.module.ngfactory":["8cDG",2,0,16],"./tabs/tabs.module.ngfactory":["pZl2",2,0,17]};function o(t){var e=r[t];return e?Promise.all(e.slice(1).map(n.e)).then(function(){return n(e[0])}):Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}o.keys=function(){return Object.keys(r)},o.id="crnd",t.exports=o},dC0D:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),o=n("FFOo");function i(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r.d(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(o.a)},dEwP:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("nkY7"),o=n("F/XL"),i=n("0/uQ"),a=n("Txjg");function s(){for(var t=[],e=0;e=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function s(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r.throw(t))}catch(e){i(e)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})}function l(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function p(){for(var t=[],e=0;e>>0,this.hi=e>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return i;var e=t<0;e&&(t=-t);var n=t>>>0,r=(t-n)/4294967296>>>0;return e&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new o(n,r)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(r.isString(t)){if(!r.Long)return o.fromNumber(parseInt(t,10));t=r.Long.fromString(t)}return t.low||t.high?new o(t.low>>>0,t.high>>>0):i},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+4294967296*n)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(t){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var s=String.prototype.charCodeAt;o.fromHash=function(t){return t===a?i:new o((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},oBZk:function(t,e,n){"use strict";n.d(e,"p",function(){return s}),n.d(e,"I",function(){return u}),n.d(e,"a",function(){return c}),n.d(e,"t",function(){return l}),n.d(e,"b",function(){return f}),n.d(e,"u",function(){return d}),n.d(e,"c",function(){return p}),n.d(e,"w",function(){return h}),n.d(e,"d",function(){return m}),n.d(e,"v",function(){return g}),n.d(e,"e",function(){return v}),n.d(e,"x",function(){return y}),n.d(e,"f",function(){return b}),n.d(e,"y",function(){return w}),n.d(e,"g",function(){return x}),n.d(e,"z",function(){return S}),n.d(e,"h",function(){return O}),n.d(e,"A",function(){return _}),n.d(e,"i",function(){return E}),n.d(e,"B",function(){return C}),n.d(e,"j",function(){return j}),n.d(e,"C",function(){return k}),n.d(e,"k",function(){return T}),n.d(e,"D",function(){return P}),n.d(e,"l",function(){return I}),n.d(e,"F",function(){return R}),n.d(e,"m",function(){return A}),n.d(e,"E",function(){return N}),n.d(e,"n",function(){return L}),n.d(e,"G",function(){return $}),n.d(e,"o",function(){return D}),n.d(e,"H",function(){return M}),n.d(e,"q",function(){return U}),n.d(e,"J",function(){return V}),n.d(e,"r",function(){return B}),n.d(e,"K",function(){return F}),n.d(e,"s",function(){return z}),n.d(e,"L",function(){return H});var r=n("CcnG"),o=n("ZZ/e"),i=n("Ip0R"),a=n("ZYCi"),s=r.mb({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n flex-direction: column;\n\n width: 100%;\n height: 100%;\n\n contain: layout size style;\n z-index: $z-index-page-container;\n }\n .tabs-inner[_ngcontent-%COMP%] {\n position: relative;\n\n flex: 1;\n\n contain: layout size style;\n }"],data:{}});function u(t){return r.Fb(0,[r.Bb(402653184,1,{outlet:0}),r.xb(null,0),(t()(),r.ob(2,0,null,null,2,"div",[["class","tabs-inner"]],null,null,null,null,null)),(t()(),r.ob(3,16777216,[["outlet",1]],null,1,"ion-router-outlet",[["tabs","true"]],null,[[null,"stackEvents"]],function(t,e,n){var r=!0;return"stackEvents"===e&&(r=!1!==t.component.onPageSelected(n)&&r),r},null,null)),r.nb(4,212992,[[1,4]],0,o.ib,[a.b,r.N,r.j,[8,null],[8,"true"],o.e,o.Ib,i.f,r.k,a.m,r.z,a.a,[3,o.ib]],null,{stackEvents:"stackEvents"}),r.xb(null,1)],function(t,e){t(e,4,0)},null)}var c=r.mb({encapsulation:2,styles:[],data:{}});function l(t){return r.Fb(2,[r.xb(null,0)],null,null)}var f=r.mb({encapsulation:2,styles:[],data:{}});function d(t){return r.Fb(2,[r.xb(null,0)],null,null)}var p=r.mb({encapsulation:2,styles:[],data:{}});function h(t){return r.Fb(2,[r.xb(null,0)],null,null)}var m=r.mb({encapsulation:2,styles:[],data:{}});function g(t){return r.Fb(2,[r.xb(null,0)],null,null)}var v=r.mb({encapsulation:2,styles:[],data:{}});function y(t){return r.Fb(2,[r.xb(null,0)],null,null)}var b=r.mb({encapsulation:2,styles:[],data:{}});function w(t){return r.Fb(2,[r.xb(null,0)],null,null)}var x=r.mb({encapsulation:2,styles:[],data:{}});function S(t){return r.Fb(2,[r.xb(null,0)],null,null)}var O=r.mb({encapsulation:2,styles:[],data:{}});function _(t){return r.Fb(2,[r.xb(null,0)],null,null)}var E=r.mb({encapsulation:2,styles:[],data:{}});function C(t){return r.Fb(2,[r.xb(null,0)],null,null)}var j=r.mb({encapsulation:2,styles:[],data:{}});function k(t){return r.Fb(2,[r.xb(null,0)],null,null)}var T=r.mb({encapsulation:2,styles:[],data:{}});function P(t){return r.Fb(2,[r.xb(null,0)],null,null)}var I=r.mb({encapsulation:2,styles:[],data:{}});function R(t){return r.Fb(2,[r.xb(null,0)],null,null)}var A=r.mb({encapsulation:2,styles:[],data:{}});function N(t){return r.Fb(2,[r.xb(null,0)],null,null)}var L=r.mb({encapsulation:2,styles:[],data:{}});function $(t){return r.Fb(2,[r.xb(null,0)],null,null)}var D=r.mb({encapsulation:2,styles:[],data:{}});function M(t){return r.Fb(2,[r.xb(null,0)],null,null)}var U=r.mb({encapsulation:2,styles:[],data:{}});function V(t){return r.Fb(2,[r.xb(null,0)],null,null)}var B=r.mb({encapsulation:2,styles:[],data:{}});function F(t){return r.Fb(2,[r.xb(null,0)],null,null)}var z=r.mb({encapsulation:2,styles:[],data:{}});function H(t){return r.Fb(2,[r.xb(null,0)],null,null)}},ocqh:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return s});var r="ionViewWillEnter",o="ionViewDidEnter",i="ionViewWillLeave",a="ionViewDidLeave",s="ionViewWillUnload"},p0ib:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("6blF"),o=n("nkY7"),i=n("Zn8D"),a=n("IUTb");function s(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(n)(Object(a.a)(t,s))}},pMnS:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("CcnG"),o=n("ZYCi"),i=r.mb({encapsulation:2,styles:[],data:{}});function a(t){return r.Fb(0,[(t()(),r.ob(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.nb(1,212992,null,0,o.o,[o.b,r.N,r.j,[8,null],r.h],null,null)],function(t,e){t(e,1,0)},null)}function s(t){return r.Fb(0,[(t()(),r.ob(0,0,null,null,1,"ng-component",[],null,null,null,a,i)),r.nb(1,49152,null,0,o.s,[],null,null)],null,null)}var u=r.kb("ng-component",o.s,s,{},{},[])},psW0:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("mrSG"),o=n("zotm"),i=n("MGBS"),a=n("rPjj"),s=n("67Y/"),u=n("0/uQ");function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c(function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)(function(t,o){return e(n,t,r,o)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new l(t,n))})}var l=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project,this.concurrent))},t}(),f=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.d(e,t),e.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.a)},pugT:function(t,e,n){"use strict";var r=n("isby"),o=n("McSo"),i=n("2Bdj"),a=n("Ehmk"),s=n("eihs");function u(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}u.prototype=Object.create(Error.prototype);var c=u;n.d(e,"a",function(){return l});var l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,u=this._parents,l=this._unsubscribe,d=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,h=u?u.length:0;n;)n.remove(this),n=++p>>3){case 1:o.currentState=t.int32();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("currentState"))throw i.ProtocolError("missing required 'currentState'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){if("object"!=typeof t||null===t)return"object expected";switch(t.currentState){default:return"currentState: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.Status)return t;var e=new a.xtech.selfomat.Status;switch(t.currentState){case"INITIALIZING":case 0:e.currentState=0;break;case"RUNNING":case 1:e.currentState=1;break;case"ERROR":case 2:e.currentState=2}return e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.currentState=e.enums===String?"INITIALIZING":0),null!=t.currentState&&t.hasOwnProperty("currentState")&&(n.currentState=e.enums===String?a.xtech.selfomat.Status.State[t.currentState]:t.currentState),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e.State=(n={},(s=Object.create(n))[n[0]="INITIALIZING"]=0,s[n[1]="RUNNING"]=1,s[n[2]="ERROR"]=2,s),e}(),e.BoothError=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.code=t.int32();break;case 2:o.title=t.string();break;case 3:o.message=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("code"))throw i.ProtocolError("missing required 'code'",{instance:o});if(!o.hasOwnProperty("title"))throw i.ProtocolError("missing required 'title'",{instance:o});if(!o.hasOwnProperty("message"))throw i.ProtocolError("missing required 'message'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isInteger(t.code)?i.isString(t.title)?i.isString(t.message)?null:"message: string expected":"title: string expected":"code: integer expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.BoothError)return t;var e=new a.xtech.selfomat.BoothError;return null!=t.code&&(e.code=0|t.code),null!=t.title&&(e.title=String(t.title)),null!=t.message&&(e.message=String(t.message)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.code=0,n.title="",n.message=""),null!=t.code&&t.hasOwnProperty("code")&&(n.code=t.code),null!=t.title&&t.hasOwnProperty("title")&&(n.title=t.title),null!=t.message&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.IntUpdate=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.value=t.int64();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("value"))throw i.ProtocolError("missing required 'value'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isInteger(t.value)||t.value&&i.isInteger(t.value.low)&&i.isInteger(t.value.high)?null:"value: integer|Long expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.IntUpdate)return t;var e=new a.xtech.selfomat.IntUpdate;return null!=t.value&&(i.Long?(e.value=i.Long.fromValue(t.value)).unsigned=!1:"string"==typeof t.value?e.value=parseInt(t.value,10):"number"==typeof t.value?e.value=t.value:"object"==typeof t.value&&(e.value=new i.LongBits(t.value.low>>>0,t.value.high>>>0).toNumber())),e},e.toObject=function(t,e){e||(e={});var n={};if(e.defaults)if(i.Long){var r=new i.Long(0,0,!1);n.value=e.longs===String?r.toString():e.longs===Number?r.toNumber():r}else n.value=e.longs===String?"0":0;return null!=t.value&&t.hasOwnProperty("value")&&(n.value="number"==typeof t.value?e.longs===String?String(t.value):t.value:e.longs===String?i.Long.prototype.toString.call(t.value):e.longs===Number?new i.LongBits(t.value.low>>>0,t.value.high>>>0).toNumber():t.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.BoolUpdate=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.value=t.bool();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("value"))throw i.ProtocolError("missing required 'value'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":"boolean"!=typeof t.value?"value: boolean expected":null},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.BoolUpdate)return t;var e=new a.xtech.selfomat.BoolUpdate;return null!=t.value&&(e.value=Boolean(t.value)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.value=!1),null!=t.value&&t.hasOwnProperty("value")&&(n.value=t.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.FloatUpdate=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.value=t.float();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("value"))throw i.ProtocolError("missing required 'value'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":"number"!=typeof t.value?"value: number expected":null},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.FloatUpdate)return t;var e=new a.xtech.selfomat.FloatUpdate;return null!=t.value&&(e.value=Number(t.value)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.value=0),null!=t.value&&t.hasOwnProperty("value")&&(n.value=e.json&&!isFinite(t.value)?String(t.value):t.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.ReadOnlySetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.value=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("value"))throw i.ProtocolError("missing required 'value'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?i.isString(t.value)?null:"value: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.ReadOnlySetting)return t;var e=new a.xtech.selfomat.ReadOnlySetting;return null!=t.name&&(e.name=String(t.name)),null!=t.value&&(e.value=String(t.value)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.value=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.value&&t.hasOwnProperty("value")&&(n.value=t.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.PostSetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.postUrl=t.string();break;case 3:o.alert=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("postUrl"))throw i.ProtocolError("missing required 'postUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?i.isString(t.postUrl)?null!=t.alert&&t.hasOwnProperty("alert")&&!i.isString(t.alert)?"alert: string expected":null:"postUrl: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.PostSetting)return t;var e=new a.xtech.selfomat.PostSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.postUrl&&(e.postUrl=String(t.postUrl)),null!=t.alert&&(e.alert=String(t.alert)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.postUrl="",n.alert=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.postUrl&&t.hasOwnProperty("postUrl")&&(n.postUrl=t.postUrl),null!=t.alert&&t.hasOwnProperty("alert")&&(n.alert=t.alert),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.FileUploadSetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.postUrl=t.string();break;case 3:o.inputAccept=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("postUrl"))throw i.ProtocolError("missing required 'postUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?i.isString(t.postUrl)?null!=t.inputAccept&&t.hasOwnProperty("inputAccept")&&!i.isString(t.inputAccept)?"inputAccept: string expected":null:"postUrl: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.FileUploadSetting)return t;var e=new a.xtech.selfomat.FileUploadSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.postUrl&&(e.postUrl=String(t.postUrl)),null!=t.inputAccept&&(e.inputAccept=String(t.inputAccept)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.postUrl="",n.inputAccept=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.postUrl&&t.hasOwnProperty("postUrl")&&(n.postUrl=t.postUrl),null!=t.inputAccept&&t.hasOwnProperty("inputAccept")&&(n.inputAccept=t.inputAccept),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.LinkSetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.url=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("url"))throw i.ProtocolError("missing required 'url'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?i.isString(t.url)?null:"url: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.LinkSetting)return t;var e=new a.xtech.selfomat.LinkSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.url&&(e.url=String(t.url)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.url=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.url&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.ListSetting=function(){function e(t){if(this.values=[],t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.currentIndex=t.int32();break;case 3:o.values&&o.values.length||(o.values=[]),o.values.push(t.string());break;case 4:o.updateUrl=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("currentIndex"))throw i.ProtocolError("missing required 'currentIndex'",{instance:o});if(!o.hasOwnProperty("updateUrl"))throw i.ProtocolError("missing required 'updateUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(!i.isString(t.name))return"name: string expected";if(!i.isInteger(t.currentIndex))return"currentIndex: integer expected";if(null!=t.values&&t.hasOwnProperty("values")){if(!Array.isArray(t.values))return"values: array expected";for(var e=0;e>>3){case 1:o.name=t.string();break;case 2:o.currentValue=t.bool();break;case 3:o.updateUrl=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("currentValue"))throw i.ProtocolError("missing required 'currentValue'",{instance:o});if(!o.hasOwnProperty("updateUrl"))throw i.ProtocolError("missing required 'updateUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?"boolean"!=typeof t.currentValue?"currentValue: boolean expected":i.isString(t.updateUrl)?null:"updateUrl: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.BoolSetting)return t;var e=new a.xtech.selfomat.BoolSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.currentValue&&(e.currentValue=Boolean(t.currentValue)),null!=t.updateUrl&&(e.updateUrl=String(t.updateUrl)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.currentValue=!1,n.updateUrl=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.currentValue&&t.hasOwnProperty("currentValue")&&(n.currentValue=t.currentValue),null!=t.updateUrl&&t.hasOwnProperty("updateUrl")&&(n.updateUrl=t.updateUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.FloatSetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.currentValue=t.float();break;case 3:o.minValue=t.float();break;case 4:o.maxValue=t.float();break;case 5:o.updateUrl=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("currentValue"))throw i.ProtocolError("missing required 'currentValue'",{instance:o});if(!o.hasOwnProperty("minValue"))throw i.ProtocolError("missing required 'minValue'",{instance:o});if(!o.hasOwnProperty("maxValue"))throw i.ProtocolError("missing required 'maxValue'",{instance:o});if(!o.hasOwnProperty("updateUrl"))throw i.ProtocolError("missing required 'updateUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?"number"!=typeof t.currentValue?"currentValue: number expected":"number"!=typeof t.minValue?"minValue: number expected":"number"!=typeof t.maxValue?"maxValue: number expected":i.isString(t.updateUrl)?null:"updateUrl: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.FloatSetting)return t;var e=new a.xtech.selfomat.FloatSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.currentValue&&(e.currentValue=Number(t.currentValue)),null!=t.minValue&&(e.minValue=Number(t.minValue)),null!=t.maxValue&&(e.maxValue=Number(t.maxValue)),null!=t.updateUrl&&(e.updateUrl=String(t.updateUrl)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.currentValue=0,n.minValue=0,n.maxValue=0,n.updateUrl=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.currentValue&&t.hasOwnProperty("currentValue")&&(n.currentValue=e.json&&!isFinite(t.currentValue)?String(t.currentValue):t.currentValue),null!=t.minValue&&t.hasOwnProperty("minValue")&&(n.minValue=e.json&&!isFinite(t.minValue)?String(t.minValue):t.minValue),null!=t.maxValue&&t.hasOwnProperty("maxValue")&&(n.maxValue=e.json&&!isFinite(t.maxValue)?String(t.maxValue):t.maxValue),null!=t.updateUrl&&t.hasOwnProperty("updateUrl")&&(n.updateUrl=t.updateUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.IntSetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.currentValue=t.int64();break;case 3:o.minValue=t.int64();break;case 4:o.maxValue=t.int64();break;case 5:o.updateUrl=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("currentValue"))throw i.ProtocolError("missing required 'currentValue'",{instance:o});if(!o.hasOwnProperty("minValue"))throw i.ProtocolError("missing required 'minValue'",{instance:o});if(!o.hasOwnProperty("maxValue"))throw i.ProtocolError("missing required 'maxValue'",{instance:o});if(!o.hasOwnProperty("updateUrl"))throw i.ProtocolError("missing required 'updateUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?i.isInteger(t.currentValue)||t.currentValue&&i.isInteger(t.currentValue.low)&&i.isInteger(t.currentValue.high)?i.isInteger(t.minValue)||t.minValue&&i.isInteger(t.minValue.low)&&i.isInteger(t.minValue.high)?i.isInteger(t.maxValue)||t.maxValue&&i.isInteger(t.maxValue.low)&&i.isInteger(t.maxValue.high)?i.isString(t.updateUrl)?null:"updateUrl: string expected":"maxValue: integer|Long expected":"minValue: integer|Long expected":"currentValue: integer|Long expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.IntSetting)return t;var e=new a.xtech.selfomat.IntSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.currentValue&&(i.Long?(e.currentValue=i.Long.fromValue(t.currentValue)).unsigned=!1:"string"==typeof t.currentValue?e.currentValue=parseInt(t.currentValue,10):"number"==typeof t.currentValue?e.currentValue=t.currentValue:"object"==typeof t.currentValue&&(e.currentValue=new i.LongBits(t.currentValue.low>>>0,t.currentValue.high>>>0).toNumber())),null!=t.minValue&&(i.Long?(e.minValue=i.Long.fromValue(t.minValue)).unsigned=!1:"string"==typeof t.minValue?e.minValue=parseInt(t.minValue,10):"number"==typeof t.minValue?e.minValue=t.minValue:"object"==typeof t.minValue&&(e.minValue=new i.LongBits(t.minValue.low>>>0,t.minValue.high>>>0).toNumber())),null!=t.maxValue&&(i.Long?(e.maxValue=i.Long.fromValue(t.maxValue)).unsigned=!1:"string"==typeof t.maxValue?e.maxValue=parseInt(t.maxValue,10):"number"==typeof t.maxValue?e.maxValue=t.maxValue:"object"==typeof t.maxValue&&(e.maxValue=new i.LongBits(t.maxValue.low>>>0,t.maxValue.high>>>0).toNumber())),null!=t.updateUrl&&(e.updateUrl=String(t.updateUrl)),e},e.toObject=function(t,e){e||(e={});var n={};if(e.defaults){if(n.name="",i.Long){var r=new i.Long(0,0,!1);n.currentValue=e.longs===String?r.toString():e.longs===Number?r.toNumber():r}else n.currentValue=e.longs===String?"0":0;i.Long?(r=new i.Long(0,0,!1),n.minValue=e.longs===String?r.toString():e.longs===Number?r.toNumber():r):n.minValue=e.longs===String?"0":0,i.Long?(r=new i.Long(0,0,!1),n.maxValue=e.longs===String?r.toString():e.longs===Number?r.toNumber():r):n.maxValue=e.longs===String?"0":0,n.updateUrl=""}return null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.currentValue&&t.hasOwnProperty("currentValue")&&(n.currentValue="number"==typeof t.currentValue?e.longs===String?String(t.currentValue):t.currentValue:e.longs===String?i.Long.prototype.toString.call(t.currentValue):e.longs===Number?new i.LongBits(t.currentValue.low>>>0,t.currentValue.high>>>0).toNumber():t.currentValue),null!=t.minValue&&t.hasOwnProperty("minValue")&&(n.minValue="number"==typeof t.minValue?e.longs===String?String(t.minValue):t.minValue:e.longs===String?i.Long.prototype.toString.call(t.minValue):e.longs===Number?new i.LongBits(t.minValue.low>>>0,t.minValue.high>>>0).toNumber():t.minValue),null!=t.maxValue&&t.hasOwnProperty("maxValue")&&(n.maxValue="number"==typeof t.maxValue?e.longs===String?String(t.maxValue):t.maxValue:e.longs===String?i.Long.prototype.toString.call(t.maxValue):e.longs===Number?new i.LongBits(t.maxValue.low>>>0,t.maxValue.high>>>0).toNumber():t.maxValue),null!=t.updateUrl&&t.hasOwnProperty("updateUrl")&&(n.updateUrl=t.updateUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.CameraSettings=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.iso=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 2:o.shutterSpeed=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 3:o.aperture=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 4:o.exposureCompensation=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 5:o.exposureCompensationTrigger=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 6:o.imageFormat=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 7:o.cameraName=a.xtech.selfomat.ReadOnlySetting.decode(t,t.uint32());break;case 8:o.lensName=a.xtech.selfomat.ReadOnlySetting.decode(t,t.uint32());break;case 10:o.focus=a.xtech.selfomat.PostSetting.decode(t,t.uint32());break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("iso"))throw i.ProtocolError("missing required 'iso'",{instance:o});if(!o.hasOwnProperty("shutterSpeed"))throw i.ProtocolError("missing required 'shutterSpeed'",{instance:o});if(!o.hasOwnProperty("aperture"))throw i.ProtocolError("missing required 'aperture'",{instance:o});if(!o.hasOwnProperty("exposureCompensation"))throw i.ProtocolError("missing required 'exposureCompensation'",{instance:o});if(!o.hasOwnProperty("exposureCompensationTrigger"))throw i.ProtocolError("missing required 'exposureCompensationTrigger'",{instance:o});if(!o.hasOwnProperty("imageFormat"))throw i.ProtocolError("missing required 'imageFormat'",{instance:o});if(!o.hasOwnProperty("cameraName"))throw i.ProtocolError("missing required 'cameraName'",{instance:o});if(!o.hasOwnProperty("lensName"))throw i.ProtocolError("missing required 'lensName'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":(e=a.xtech.selfomat.ListSetting.verify(t.iso))?"iso."+e:(e=a.xtech.selfomat.ListSetting.verify(t.shutterSpeed))?"shutterSpeed."+e:(e=a.xtech.selfomat.ListSetting.verify(t.aperture))?"aperture."+e:(e=a.xtech.selfomat.ListSetting.verify(t.exposureCompensation))?"exposureCompensation."+e:(e=a.xtech.selfomat.ListSetting.verify(t.exposureCompensationTrigger))?"exposureCompensationTrigger."+e:(e=a.xtech.selfomat.ListSetting.verify(t.imageFormat))?"imageFormat."+e:(e=a.xtech.selfomat.ReadOnlySetting.verify(t.cameraName))?"cameraName."+e:(e=a.xtech.selfomat.ReadOnlySetting.verify(t.lensName))?"lensName."+e:null!=t.focus&&t.hasOwnProperty("focus")&&(e=a.xtech.selfomat.PostSetting.verify(t.focus))?"focus."+e:null;var e},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.CameraSettings)return t;var e=new a.xtech.selfomat.CameraSettings;if(null!=t.iso){if("object"!=typeof t.iso)throw TypeError(".xtech.selfomat.CameraSettings.iso: object expected");e.iso=a.xtech.selfomat.ListSetting.fromObject(t.iso)}if(null!=t.shutterSpeed){if("object"!=typeof t.shutterSpeed)throw TypeError(".xtech.selfomat.CameraSettings.shutterSpeed: object expected");e.shutterSpeed=a.xtech.selfomat.ListSetting.fromObject(t.shutterSpeed)}if(null!=t.aperture){if("object"!=typeof t.aperture)throw TypeError(".xtech.selfomat.CameraSettings.aperture: object expected");e.aperture=a.xtech.selfomat.ListSetting.fromObject(t.aperture)}if(null!=t.exposureCompensation){if("object"!=typeof t.exposureCompensation)throw TypeError(".xtech.selfomat.CameraSettings.exposureCompensation: object expected");e.exposureCompensation=a.xtech.selfomat.ListSetting.fromObject(t.exposureCompensation)}if(null!=t.exposureCompensationTrigger){if("object"!=typeof t.exposureCompensationTrigger)throw TypeError(".xtech.selfomat.CameraSettings.exposureCompensationTrigger: object expected");e.exposureCompensationTrigger=a.xtech.selfomat.ListSetting.fromObject(t.exposureCompensationTrigger)}if(null!=t.imageFormat){if("object"!=typeof t.imageFormat)throw TypeError(".xtech.selfomat.CameraSettings.imageFormat: object expected");e.imageFormat=a.xtech.selfomat.ListSetting.fromObject(t.imageFormat)}if(null!=t.cameraName){if("object"!=typeof t.cameraName)throw TypeError(".xtech.selfomat.CameraSettings.cameraName: object expected");e.cameraName=a.xtech.selfomat.ReadOnlySetting.fromObject(t.cameraName)}if(null!=t.lensName){if("object"!=typeof t.lensName)throw TypeError(".xtech.selfomat.CameraSettings.lensName: object expected");e.lensName=a.xtech.selfomat.ReadOnlySetting.fromObject(t.lensName)}if(null!=t.focus){if("object"!=typeof t.focus)throw TypeError(".xtech.selfomat.CameraSettings.focus: object expected");e.focus=a.xtech.selfomat.PostSetting.fromObject(t.focus)}return e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.iso=null,n.shutterSpeed=null,n.aperture=null,n.exposureCompensation=null,n.exposureCompensationTrigger=null,n.imageFormat=null,n.cameraName=null,n.lensName=null,n.focus=null),null!=t.iso&&t.hasOwnProperty("iso")&&(n.iso=a.xtech.selfomat.ListSetting.toObject(t.iso,e)),null!=t.shutterSpeed&&t.hasOwnProperty("shutterSpeed")&&(n.shutterSpeed=a.xtech.selfomat.ListSetting.toObject(t.shutterSpeed,e)),null!=t.aperture&&t.hasOwnProperty("aperture")&&(n.aperture=a.xtech.selfomat.ListSetting.toObject(t.aperture,e)),null!=t.exposureCompensation&&t.hasOwnProperty("exposureCompensation")&&(n.exposureCompensation=a.xtech.selfomat.ListSetting.toObject(t.exposureCompensation,e)),null!=t.exposureCompensationTrigger&&t.hasOwnProperty("exposureCompensationTrigger")&&(n.exposureCompensationTrigger=a.xtech.selfomat.ListSetting.toObject(t.exposureCompensationTrigger,e)),null!=t.imageFormat&&t.hasOwnProperty("imageFormat")&&(n.imageFormat=a.xtech.selfomat.ListSetting.toObject(t.imageFormat,e)),null!=t.cameraName&&t.hasOwnProperty("cameraName")&&(n.cameraName=a.xtech.selfomat.ReadOnlySetting.toObject(t.cameraName,e)),null!=t.lensName&&t.hasOwnProperty("lensName")&&(n.lensName=a.xtech.selfomat.ReadOnlySetting.toObject(t.lensName,e)),null!=t.focus&&t.hasOwnProperty("focus")&&(n.focus=a.xtech.selfomat.PostSetting.toObject(t.focus,e)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.BoothSettings=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 10:o.storageEnabled=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 11:o.printerEnabled=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 20:o.filterChoice=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 21:o.filterGain=a.xtech.selfomat.FloatSetting.decode(t,t.uint32());break;case 30:o.templateUpload=a.xtech.selfomat.FileUploadSetting.decode(t,t.uint32());break;case 31:o.templateEnabled=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 40:o.ledMode=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 41:o.ledCount=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 42:o.ledOffsetClockwise=a.xtech.selfomat.PostSetting.decode(t,t.uint32());break;case 43:o.ledOffsetCounterClockwise=a.xtech.selfomat.PostSetting.decode(t,t.uint32());break;case 44:o.countdownDuration=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 45:o.maxLedBrightness=a.xtech.selfomat.IntSetting.decode(t,t.uint32());break;case 46:o.autofocusBeforeTrigger=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 50:o.cupsLink=a.xtech.selfomat.LinkSetting.decode(t,t.uint32());break;case 51:o.updateMode=a.xtech.selfomat.PostSetting.decode(t,t.uint32());break;case 200:o.flashEnabled=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 201:o.flashMode=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 202:o.flashDurationMicros=a.xtech.selfomat.IntSetting.decode(t,t.uint32());break;case 203:o.flashTest=a.xtech.selfomat.PostSetting.decode(t,t.uint32());break;case 240:o.debugLogEnabled=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 250:o.triggerCounter=a.xtech.selfomat.ReadOnlySetting.decode(t,t.uint32());break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("storageEnabled"))throw i.ProtocolError("missing required 'storageEnabled'",{instance:o});if(!o.hasOwnProperty("printerEnabled"))throw i.ProtocolError("missing required 'printerEnabled'",{instance:o});if(!o.hasOwnProperty("filterChoice"))throw i.ProtocolError("missing required 'filterChoice'",{instance:o});if(!o.hasOwnProperty("filterGain"))throw i.ProtocolError("missing required 'filterGain'",{instance:o});if(!o.hasOwnProperty("ledOffsetClockwise"))throw i.ProtocolError("missing required 'ledOffsetClockwise'",{instance:o});if(!o.hasOwnProperty("ledOffsetCounterClockwise"))throw i.ProtocolError("missing required 'ledOffsetCounterClockwise'",{instance:o});if(!o.hasOwnProperty("countdownDuration"))throw i.ProtocolError("missing required 'countdownDuration'",{instance:o});if(!o.hasOwnProperty("autofocusBeforeTrigger"))throw i.ProtocolError("missing required 'autofocusBeforeTrigger'",{instance:o});if(!o.hasOwnProperty("updateMode"))throw i.ProtocolError("missing required 'updateMode'",{instance:o});if(!o.hasOwnProperty("triggerCounter"))throw i.ProtocolError("missing required 'triggerCounter'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":(e=a.xtech.selfomat.BoolSetting.verify(t.storageEnabled))?"storageEnabled."+e:(e=a.xtech.selfomat.BoolSetting.verify(t.printerEnabled))?"printerEnabled."+e:(e=a.xtech.selfomat.ListSetting.verify(t.filterChoice))?"filterChoice."+e:(e=a.xtech.selfomat.FloatSetting.verify(t.filterGain))?"filterGain."+e:null!=t.templateUpload&&t.hasOwnProperty("templateUpload")&&(e=a.xtech.selfomat.FileUploadSetting.verify(t.templateUpload))?"templateUpload."+e:null!=t.templateEnabled&&t.hasOwnProperty("templateEnabled")&&(e=a.xtech.selfomat.BoolSetting.verify(t.templateEnabled))?"templateEnabled."+e:null!=t.ledMode&&t.hasOwnProperty("ledMode")&&(e=a.xtech.selfomat.ListSetting.verify(t.ledMode))?"ledMode."+e:null!=t.ledCount&&t.hasOwnProperty("ledCount")&&(e=a.xtech.selfomat.ListSetting.verify(t.ledCount))?"ledCount."+e:(e=a.xtech.selfomat.PostSetting.verify(t.ledOffsetClockwise))?"ledOffsetClockwise."+e:(e=a.xtech.selfomat.PostSetting.verify(t.ledOffsetCounterClockwise))?"ledOffsetCounterClockwise."+e:(e=a.xtech.selfomat.ListSetting.verify(t.countdownDuration))?"countdownDuration."+e:null!=t.maxLedBrightness&&t.hasOwnProperty("maxLedBrightness")&&(e=a.xtech.selfomat.IntSetting.verify(t.maxLedBrightness))?"maxLedBrightness."+e:(e=a.xtech.selfomat.BoolSetting.verify(t.autofocusBeforeTrigger))?"autofocusBeforeTrigger."+e:null!=t.cupsLink&&t.hasOwnProperty("cupsLink")&&(e=a.xtech.selfomat.LinkSetting.verify(t.cupsLink))?"cupsLink."+e:(e=a.xtech.selfomat.PostSetting.verify(t.updateMode))?"updateMode."+e:null!=t.flashEnabled&&t.hasOwnProperty("flashEnabled")&&(e=a.xtech.selfomat.BoolSetting.verify(t.flashEnabled))?"flashEnabled."+e:null!=t.flashMode&&t.hasOwnProperty("flashMode")&&(e=a.xtech.selfomat.BoolSetting.verify(t.flashMode))?"flashMode."+e:null!=t.flashDurationMicros&&t.hasOwnProperty("flashDurationMicros")&&(e=a.xtech.selfomat.IntSetting.verify(t.flashDurationMicros))?"flashDurationMicros."+e:null!=t.flashTest&&t.hasOwnProperty("flashTest")&&(e=a.xtech.selfomat.PostSetting.verify(t.flashTest))?"flashTest."+e:null!=t.debugLogEnabled&&t.hasOwnProperty("debugLogEnabled")&&(e=a.xtech.selfomat.BoolSetting.verify(t.debugLogEnabled))?"debugLogEnabled."+e:(e=a.xtech.selfomat.ReadOnlySetting.verify(t.triggerCounter))?"triggerCounter."+e:null;var e},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.BoothSettings)return t;var e=new a.xtech.selfomat.BoothSettings;if(null!=t.storageEnabled){if("object"!=typeof t.storageEnabled)throw TypeError(".xtech.selfomat.BoothSettings.storageEnabled: object expected");e.storageEnabled=a.xtech.selfomat.BoolSetting.fromObject(t.storageEnabled)}if(null!=t.printerEnabled){if("object"!=typeof t.printerEnabled)throw TypeError(".xtech.selfomat.BoothSettings.printerEnabled: object expected");e.printerEnabled=a.xtech.selfomat.BoolSetting.fromObject(t.printerEnabled)}if(null!=t.filterChoice){if("object"!=typeof t.filterChoice)throw TypeError(".xtech.selfomat.BoothSettings.filterChoice: object expected");e.filterChoice=a.xtech.selfomat.ListSetting.fromObject(t.filterChoice)}if(null!=t.filterGain){if("object"!=typeof t.filterGain)throw TypeError(".xtech.selfomat.BoothSettings.filterGain: object expected");e.filterGain=a.xtech.selfomat.FloatSetting.fromObject(t.filterGain)}if(null!=t.templateUpload){if("object"!=typeof t.templateUpload)throw TypeError(".xtech.selfomat.BoothSettings.templateUpload: object expected");e.templateUpload=a.xtech.selfomat.FileUploadSetting.fromObject(t.templateUpload)}if(null!=t.templateEnabled){if("object"!=typeof t.templateEnabled)throw TypeError(".xtech.selfomat.BoothSettings.templateEnabled: object expected");e.templateEnabled=a.xtech.selfomat.BoolSetting.fromObject(t.templateEnabled)}if(null!=t.ledMode){if("object"!=typeof t.ledMode)throw TypeError(".xtech.selfomat.BoothSettings.ledMode: object expected");e.ledMode=a.xtech.selfomat.ListSetting.fromObject(t.ledMode)}if(null!=t.ledCount){if("object"!=typeof t.ledCount)throw TypeError(".xtech.selfomat.BoothSettings.ledCount: object expected");e.ledCount=a.xtech.selfomat.ListSetting.fromObject(t.ledCount)}if(null!=t.ledOffsetClockwise){if("object"!=typeof t.ledOffsetClockwise)throw TypeError(".xtech.selfomat.BoothSettings.ledOffsetClockwise: object expected");e.ledOffsetClockwise=a.xtech.selfomat.PostSetting.fromObject(t.ledOffsetClockwise)}if(null!=t.ledOffsetCounterClockwise){if("object"!=typeof t.ledOffsetCounterClockwise)throw TypeError(".xtech.selfomat.BoothSettings.ledOffsetCounterClockwise: object expected");e.ledOffsetCounterClockwise=a.xtech.selfomat.PostSetting.fromObject(t.ledOffsetCounterClockwise)}if(null!=t.countdownDuration){if("object"!=typeof t.countdownDuration)throw TypeError(".xtech.selfomat.BoothSettings.countdownDuration: object expected");e.countdownDuration=a.xtech.selfomat.ListSetting.fromObject(t.countdownDuration)}if(null!=t.maxLedBrightness){if("object"!=typeof t.maxLedBrightness)throw TypeError(".xtech.selfomat.BoothSettings.maxLedBrightness: object expected");e.maxLedBrightness=a.xtech.selfomat.IntSetting.fromObject(t.maxLedBrightness)}if(null!=t.autofocusBeforeTrigger){if("object"!=typeof t.autofocusBeforeTrigger)throw TypeError(".xtech.selfomat.BoothSettings.autofocusBeforeTrigger: object expected");e.autofocusBeforeTrigger=a.xtech.selfomat.BoolSetting.fromObject(t.autofocusBeforeTrigger)}if(null!=t.cupsLink){if("object"!=typeof t.cupsLink)throw TypeError(".xtech.selfomat.BoothSettings.cupsLink: object expected");e.cupsLink=a.xtech.selfomat.LinkSetting.fromObject(t.cupsLink)}if(null!=t.updateMode){if("object"!=typeof t.updateMode)throw TypeError(".xtech.selfomat.BoothSettings.updateMode: object expected");e.updateMode=a.xtech.selfomat.PostSetting.fromObject(t.updateMode)}if(null!=t.flashEnabled){if("object"!=typeof t.flashEnabled)throw TypeError(".xtech.selfomat.BoothSettings.flashEnabled: object expected");e.flashEnabled=a.xtech.selfomat.BoolSetting.fromObject(t.flashEnabled)}if(null!=t.flashMode){if("object"!=typeof t.flashMode)throw TypeError(".xtech.selfomat.BoothSettings.flashMode: object expected");e.flashMode=a.xtech.selfomat.BoolSetting.fromObject(t.flashMode)}if(null!=t.flashDurationMicros){if("object"!=typeof t.flashDurationMicros)throw TypeError(".xtech.selfomat.BoothSettings.flashDurationMicros: object expected");e.flashDurationMicros=a.xtech.selfomat.IntSetting.fromObject(t.flashDurationMicros)}if(null!=t.flashTest){if("object"!=typeof t.flashTest)throw TypeError(".xtech.selfomat.BoothSettings.flashTest: object expected");e.flashTest=a.xtech.selfomat.PostSetting.fromObject(t.flashTest)}if(null!=t.debugLogEnabled){if("object"!=typeof t.debugLogEnabled)throw TypeError(".xtech.selfomat.BoothSettings.debugLogEnabled: object expected");e.debugLogEnabled=a.xtech.selfomat.BoolSetting.fromObject(t.debugLogEnabled)}if(null!=t.triggerCounter){if("object"!=typeof t.triggerCounter)throw TypeError(".xtech.selfomat.BoothSettings.triggerCounter: object expected");e.triggerCounter=a.xtech.selfomat.ReadOnlySetting.fromObject(t.triggerCounter)}return e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.storageEnabled=null,n.printerEnabled=null,n.filterChoice=null,n.filterGain=null,n.templateUpload=null,n.templateEnabled=null,n.ledMode=null,n.ledCount=null,n.ledOffsetClockwise=null,n.ledOffsetCounterClockwise=null,n.countdownDuration=null,n.maxLedBrightness=null,n.autofocusBeforeTrigger=null,n.cupsLink=null,n.updateMode=null,n.flashEnabled=null,n.flashMode=null,n.flashDurationMicros=null,n.flashTest=null,n.debugLogEnabled=null,n.triggerCounter=null),null!=t.storageEnabled&&t.hasOwnProperty("storageEnabled")&&(n.storageEnabled=a.xtech.selfomat.BoolSetting.toObject(t.storageEnabled,e)),null!=t.printerEnabled&&t.hasOwnProperty("printerEnabled")&&(n.printerEnabled=a.xtech.selfomat.BoolSetting.toObject(t.printerEnabled,e)),null!=t.filterChoice&&t.hasOwnProperty("filterChoice")&&(n.filterChoice=a.xtech.selfomat.ListSetting.toObject(t.filterChoice,e)),null!=t.filterGain&&t.hasOwnProperty("filterGain")&&(n.filterGain=a.xtech.selfomat.FloatSetting.toObject(t.filterGain,e)),null!=t.templateUpload&&t.hasOwnProperty("templateUpload")&&(n.templateUpload=a.xtech.selfomat.FileUploadSetting.toObject(t.templateUpload,e)),null!=t.templateEnabled&&t.hasOwnProperty("templateEnabled")&&(n.templateEnabled=a.xtech.selfomat.BoolSetting.toObject(t.templateEnabled,e)),null!=t.ledMode&&t.hasOwnProperty("ledMode")&&(n.ledMode=a.xtech.selfomat.ListSetting.toObject(t.ledMode,e)),null!=t.ledCount&&t.hasOwnProperty("ledCount")&&(n.ledCount=a.xtech.selfomat.ListSetting.toObject(t.ledCount,e)),null!=t.ledOffsetClockwise&&t.hasOwnProperty("ledOffsetClockwise")&&(n.ledOffsetClockwise=a.xtech.selfomat.PostSetting.toObject(t.ledOffsetClockwise,e)),null!=t.ledOffsetCounterClockwise&&t.hasOwnProperty("ledOffsetCounterClockwise")&&(n.ledOffsetCounterClockwise=a.xtech.selfomat.PostSetting.toObject(t.ledOffsetCounterClockwise,e)),null!=t.countdownDuration&&t.hasOwnProperty("countdownDuration")&&(n.countdownDuration=a.xtech.selfomat.ListSetting.toObject(t.countdownDuration,e)),null!=t.maxLedBrightness&&t.hasOwnProperty("maxLedBrightness")&&(n.maxLedBrightness=a.xtech.selfomat.IntSetting.toObject(t.maxLedBrightness,e)),null!=t.autofocusBeforeTrigger&&t.hasOwnProperty("autofocusBeforeTrigger")&&(n.autofocusBeforeTrigger=a.xtech.selfomat.BoolSetting.toObject(t.autofocusBeforeTrigger,e)),null!=t.cupsLink&&t.hasOwnProperty("cupsLink")&&(n.cupsLink=a.xtech.selfomat.LinkSetting.toObject(t.cupsLink,e)),null!=t.updateMode&&t.hasOwnProperty("updateMode")&&(n.updateMode=a.xtech.selfomat.PostSetting.toObject(t.updateMode,e)),null!=t.flashEnabled&&t.hasOwnProperty("flashEnabled")&&(n.flashEnabled=a.xtech.selfomat.BoolSetting.toObject(t.flashEnabled,e)),null!=t.flashMode&&t.hasOwnProperty("flashMode")&&(n.flashMode=a.xtech.selfomat.BoolSetting.toObject(t.flashMode,e)),null!=t.flashDurationMicros&&t.hasOwnProperty("flashDurationMicros")&&(n.flashDurationMicros=a.xtech.selfomat.IntSetting.toObject(t.flashDurationMicros,e)),null!=t.flashTest&&t.hasOwnProperty("flashTest")&&(n.flashTest=a.xtech.selfomat.PostSetting.toObject(t.flashTest,e)),null!=t.debugLogEnabled&&t.hasOwnProperty("debugLogEnabled")&&(n.debugLogEnabled=a.xtech.selfomat.BoolSetting.toObject(t.debugLogEnabled,e)),null!=t.triggerCounter&&t.hasOwnProperty("triggerCounter")&&(n.triggerCounter=a.xtech.selfomat.ReadOnlySetting.toObject(t.triggerCounter,e)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e),n),a})?r.apply(e,o):r)||(t.exports=i)},rPjj:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("mrSG"),o=function(t){function e(e,n,r){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=r,o.index=0,o}return r.d(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("FFOo").a)},"t/Na":function(t,e,n){"use strict";n.d(e,"l",function(){return A}),n.d(e,"o",function(){return M}),n.d(e,"p",function(){return U}),n.d(e,"m",function(){return L}),n.d(e,"n",function(){return $}),n.d(e,"b",function(){return d}),n.d(e,"f",function(){return f}),n.d(e,"c",function(){return j}),n.d(e,"g",function(){return p}),n.d(e,"a",function(){return T}),n.d(e,"d",function(){return F}),n.d(e,"e",function(){return B}),n.d(e,"k",function(){return V}),n.d(e,"h",function(){return N}),n.d(e,"j",function(){return R}),n.d(e,"i",function(){return D});var r=n("mrSG"),o=n("CcnG"),i=n("F/XL"),a=n("6blF"),s=n("Phjn"),u=n("VnD/"),c=n("67Y/"),l=n("Ip0R"),f=function(){return function(){}}(),d=function(){return function(){}}(),p=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var o=("a"===t.op?this.headers.get(e):void 0)||[];o.push.apply(o,Object(r.i)(n)),this.headers.set(e,o);break;case"d":var i=t.value;if(i){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===i.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),h=function(){function t(){}return t.prototype.encodeKey=function(t){return m(t)},t.prototype.encodeValue=function(t){return m(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function m(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var g=function(){function t(t){void 0===t&&(t={});var e,n,o,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new h,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,o=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),i=Object(r.h)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),a=i[0],s=i[1],u=o.get(a)||[];u.push(s),o.set(a,u)}),o)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];i.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)},t}();function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}var w=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new p),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),O=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=x.ResponseHeader,n}return Object(r.d)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(S),_=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=x.Response,n.body=void 0!==e.body?e.body:null,n}return Object(r.d)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(S),E=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(r.d)(e,t),e}(S);function C(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var j=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof w)r=t;else{var a;a=n.headers instanceof p?n.headers:new p(n.headers);var l=void 0;n.params&&(l=n.params instanceof g?n.params:new g({fromObject:n.params})),r=new w(t,e,void 0!==n.body?n.body:null,{headers:a,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var f=Object(i.a)(r).pipe(Object(s.a)(function(t){return o.handler.handle(t)}));if(t instanceof w||"events"===n.observe)return f;var d=f.pipe(Object(u.a)(function(t){return t instanceof _}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return d.pipe(Object(c.a)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return d.pipe(Object(c.a)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return d.pipe(Object(c.a)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return d.pipe(Object(c.a)(function(t){return t.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new g).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,C(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,C(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,C(n,e))},t}(),k=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),T=new o.p("HTTP_INTERCEPTORS"),P=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),I=/^\)\]\}',?\n/,R=function(){return function(){}}(),A=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),N=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new a.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new p(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new O({headers:o,status:e,statusText:n,url:i})},c=function(){var e=u(),o=e.headers,i=e.status,a=e.statusText,s=e.url,c=null;204!==i&&(c=void 0===r.response?r.responseText:r.response),0===i&&(i=c?200:0);var l=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof c){var f=c;c=c.replace(I,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=f,l&&(l=!1,c={error:d,text:c})}}l?(n.next(new _({body:c,headers:o,status:i,statusText:a,url:s||void 0})),n.complete()):n.error(new E({error:c,headers:o,status:i,statusText:a,url:s||void 0}))},l=function(t){var e=u().url,o=new E({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(o)},f=!1,d=function(e){f||(n.next(u()),f=!0);var o={type:x.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},h=function(t){var e={type:x.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",c),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",d),null!==a&&r.upload&&r.upload.addEventListener("progress",h)),r.send(a),n.next({type:x.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),t.reportProgress&&(r.removeEventListener("progress",d),null!==a&&r.upload&&r.upload.removeEventListener("progress",h)),r.abort()}})},t}(),L=new o.p("XSRF_COOKIE_NAME"),$=new o.p("XSRF_HEADER_NAME"),D=function(){return function(){}}(),M=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.r)(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),U=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),V=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(T,[]);this.chain=e.reduceRight(function(t,e){return new k(t,e)},this.backend)}return this.chain.handle(t)},t}(),B=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:U,useClass:P}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:L,useValue:t.cookieName}:[],t.headerName?{provide:$,useValue:t.headerName}:[]]}},t}(),F=function(){return function(){}}()},t9fZ:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("mrSG"),o=n("FFOo"),i=n("b7mW"),a=n("G5J1");function s(t){return function(e){return 0===t?Object(a.b)():e.lift(new u(t))}}var u=function(){function t(t){if(this.total=t,this.total<0)throw new i.a}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.d(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.a)},ttJE:function(t,e,n){"use strict";n.d(e,"a",function(){return b}),n.d(e,"b",function(){return g}),n.d(e,"c",function(){return v}),n.d(e,"d",function(){return y}),n.d(e,"e",function(){return r}),n.d(e,"f",function(){return o}),n.d(e,"g",function(){return i});var r=function(t){return i(t)},o=function(t,e){return"string"==typeof t&&(e=t,t=void 0),r(t).includes(e)},i=function(t){void 0===t&&(t=window),t.Ionic=t.Ionic||{};var e=t.Ionic.platforms;return null==e&&(e=t.Ionic.platforms=a(t)).forEach(function(e){return t.document.documentElement.classList.add("plt-"+e)}),e},a=function(t){return Object.keys(m).filter(function(e){return m[e](t)})},s=function(t){return!!p(t,/iPad/i)||!(!p(t,/Macintosh/i)||!c(t))},u=function(t){return p(t,/android|sink/i)},c=function(t){return h(t,"(any-pointer:coarse)")},l=function(t){return f(t)||d(t)},f=function(t){return!!(t.cordova||t.phonegap||t.PhoneGap)},d=function(t){var e=t.Capacitor;return!(!e||!e.isNative)},p=function(t,e){return e.test(t.navigator.userAgent)},h=function(t,e){return t.matchMedia(e).matches},m={ipad:s,iphone:function(t){return p(t,/iPhone/i)},ios:function(t){return p(t,/iPhone|iPod/i)||s(t)},android:u,phablet:function(t){var e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),o=Math.max(e,n);return r>390&&r<520&&o>620&&o<800},tablet:function(t){var e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),o=Math.max(e,n);return s(t)||function(t){return u(t)&&!p(t,/mobile/i)}(t)||r>460&&r<820&&o>780&&o<1400},cordova:f,capacitor:d,electron:function(t){return p(t,/electron/i)},pwa:function(t){return!(!t.matchMedia("(display-mode: standalone)").matches&&!t.navigator.standalone)},mobile:c,mobileweb:function(t){return c(t)&&!l(t)},desktop:function(t){return!c(t)},hybrid:l},g=new(function(){function t(){this.m=new Map}return t.prototype.reset=function(t){this.m=new Map(Object.entries(t))},t.prototype.get=function(t,e){var n=this.m.get(t);return void 0!==n?n:e},t.prototype.getBoolean=function(t,e){void 0===e&&(e=!1);var n=this.m.get(t);return void 0===n?e:"string"==typeof n?"true"===n:!!n},t.prototype.getNumber=function(t,e){var n=parseFloat(this.m.get(t));return isNaN(n)?void 0!==e?e:NaN:n},t.prototype.set=function(t,e){this.m.set(t,e)},t}()),v=function(t){try{var e=t.sessionStorage.getItem(S);return null!==e?JSON.parse(e):{}}catch(n){return{}}},y=function(t,e){try{t.sessionStorage.setItem(S,JSON.stringify(e))}catch(n){return}},b=function(t){var e={};return t.location.search.slice(1).split("&").map(function(t){return t.split("=")}).map(function(t){var e=t[1];return[decodeURIComponent(t[0]),decodeURIComponent(e)]}).filter(function(t){return w(t[0],x)}).map(function(t){var e=t[1];return[t[0].slice(x.length),e]}).forEach(function(t){e[t[0]]=t[1]}),e},w=function(t,e){return t.substr(0,e.length)===e},x="ionic:",S="ionic-persist-config"},u67D:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("En8+"),o=function(t){return function(e){for(var n=t[r.a]();;){var o=n.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}}},wSPg:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return c}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return p}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return a}),n.d(e,"g",function(){return i}),n.d(e,"h",function(){return d}),n.d(e,"i",function(){return l}),n.d(e,"j",function(){return f}),n.d(e,"k",function(){return o});var r=n("mrSG"),o=function(t){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t)},i=function(t){return!!t.shadowRoot&&!!t.attachShadow},a=function(t){var e=t.closest("ion-item");return e?e.querySelector("ion-label"):null},s=function(t,e,n,r,o){if(t||i(e)){var a=e.querySelector("input.aux-input");a||((a=e.ownerDocument.createElement("input")).type="hidden",a.classList.add("aux-input"),e.appendChild(a)),a.disabled=o,a.name=n,a.value=r||""}},u=function(t,e,n){return Math.max(t,Math.min(e,n))},c=function(t,e){if(!t){var n="ASSERT: "+e;throw console.error(n),new Error(n)}},l=function(t){return t.timeStamp||Date.now()},f=function(t){if(t){var e=t.changedTouches;if(e&&e.length>0){var n=e[0];return{x:n.clientX,y:n.clientY}}if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY}}return{x:0,y:0}},d=function(t){var e="rtl"===document.dir;switch(t){case"start":return e;case"end":return!e;default:throw new Error('"'+t+'" is not a valid value for [side]. Use "start" or "end" instead.')}},p=function(t,e){var n=t._original||t;return{_original:t,emit:h(n.emit.bind(n),e)}},h=function(t,e){var n;return void 0===e&&(e=0),function(){for(var o=[],i=0;i0},t.prototype.isDisabled=function(t){var e=this.disabledGestures.get(t);return!!(e&&e.size>0)},t.prototype.newID=function(){return this.gestureId++,this.gestureId},t}(),i=function(){function t(t,e,n,r,o){this.id=e,this.name=n,this.disableScroll=o,this.priority=1e6*r+e,this.ctrl=t}return t.prototype.canStart=function(){return!!this.ctrl&&this.ctrl.canStart(this.name)},t.prototype.start=function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)},t.prototype.capture=function(){if(!this.ctrl)return!1;var t=this.ctrl.capture(this.name,this.id,this.priority);return t&&this.disableScroll&&this.ctrl.disableScroll(this.id),t},t.prototype.release=function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))},t.prototype.destroy=function(){this.release(),this.ctrl=void 0},t}(),a=function(){function t(t,e,n,r){this.id=e,this.disable=n,this.disableScroll=r,this.ctrl=t}return t.prototype.block=function(){if(this.ctrl){if(this.disable)for(var t=0,e=this.disable;ta?1:p<-a?-1:0,l=!1,!0},isGesture:function(){return 0!==f},getDirection:function(){return f}}}(0,i.threshold),x=u.createGesture({name:t.gestureName,priority:t.gesturePriority,disableScroll:t.disableScroll}),S=function(){e&&(o=!1,v&&v(b))},O=function(){return!(x&&!x.capture()||(e=!0,r=!1,b.startX=b.currentX,b.startY=b.currentY,b.startTimeStamp=b.timeStamp,s?s(b).then(_):_(),0))},_=function(){l&&l(b),r=!0},E=function(){e=!1,n=!1,o=!1,r=!0,x.release()},C=function(t){var n=e,o=r;E(),o&&(p(b,t),n?d&&d(b):g&&g(b))},j=function(t,e,n,r,o){var i,a,s,u,l,d,p,h=0,m=function(r){h=Date.now()+2e3,e(r)&&(!a&&n&&(a=c(t,"touchmove",n,o)),s||(s=c(t,"touchend",v,o)),u||(u=c(t,"touchcancel",v,o)))},g=function(r){h>Date.now()||e(r)&&(!d&&n&&(d=c(f(t),"mousemove",n,o)),p||(p=c(f(t),"mouseup",y,o)))},v=function(t){b(),r&&r(t)},y=function(t){w(),r&&r(t)},b=function(){a&&a(),s&&s(),u&&u(),a=s=u=void 0},w=function(){d&&d(),p&&p(),d=p=void 0},x=function(){b(),w()},S=function(e){e?(i&&i(),l&&l(),i=l=void 0,x()):(i||(i=c(t,"touchstart",m,o)),l||(l=c(t,"mousedown",g,o)))};return{setDisabled:S,stop:x,destroy:function(){S(!0),r=n=e=void 0}}}(i.el,function(t){var e=m(t);return!(n||!r)&&(h(t,b),b.startX=b.currentX,b.startY=b.currentY,b.startTimeStamp=b.timeStamp=e,b.velocityX=b.velocityY=b.deltaX=b.deltaY=0,b.event=t,(!a||!1!==a(b))&&(x.release(),!!x.start()&&(n=!0,0===y?O():(w.start(b.startX,b.startY),!0))))},function(t){e?!o&&r&&(o=!0,p(b,t),requestAnimationFrame(S)):(p(b,t),w.detect(b.currentX,b.currentY)&&(w.isGesture()&&O()||k()))},C,{capture:!1}),k=function(){E(),j.stop(),g&&g(b)};return{setDisabled:function(t){t&&e&&C(void 0),j.setDisabled(t)},destroy:function(){x.destroy(),j.destroy()}}},p=function(t,e){if(e){var n=t.currentX,r=t.currentY,o=t.timeStamp;h(e,t);var i=t.currentX,a=t.currentY,s=(t.timeStamp=m(e))-o;if(s>0&&s<100){var u=(a-r)/s;t.velocityX=(i-n)/s*.7+.3*t.velocityX,t.velocityY=.7*u+.3*t.velocityY}t.deltaX=i-t.startX,t.deltaY=a-t.startY,t.event=e}},h=function(t,e){var n=0,r=0;if(t){var o=t.changedTouches;if(o&&o.length>0){var i=o[0];n=i.clientX,r=i.clientY}else void 0!==t.pageX&&(n=t.pageX,r=t.pageY)}e.currentX=n,e.currentY=r},m=function(t){return t.timeStamp||Date.now()}},y3By:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var r=n("+umK");function o(){for(var t=[],e=0;e191&&r<224?i[a++]=(31&r)<<6|63&t[e++]:r>239&&r<365?(r=((7&r)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,i[a++]=55296+(r>>10),i[a++]=56320+(1023&r)):i[a++]=(15&r)<<12|(63&t[e++])<<6|63&t[e++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},r.write=function(t,e,n){for(var r,o,i=n,a=0;a>6|192,e[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(o=t.charCodeAt(a+1)))?(++a,e[n++]=(r=65536+((1023&r)<<10)+(1023&o))>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|128);return n-i}},yTNM:function(t,e,n){"use strict";var r=n("mrSG"),o=n("6blF"),i=n("67Y/"),a=n("9Z1F"),s=n("t/Na"),u=n("AytR"),c=n("ZZ/e"),l=n("q2yH"),f=n("dtEc"),d=n("CcnG"),p=n("A7o+");n.d(e,"a",function(){return h});var h=function(){function t(t,e,n,r,o,i){this.logger=t,this.translate=e,this.http=n,this.loadingController=r,this.actionSheetController=o,this.alertController=i,this.isDemo=window.location.hostname.indexOf("demo.self-o-mat.de")>-1,this.isUpdating=!1,this.endUpdateingTimerID=null,this.postTimer=null,this.postLoadingController=null,this.headers=null,this.headers=new s.g({lang:this.translate.currentLang})}return t.prototype.values=function(t){return null==t?[]:Object.entries(t).filter(function(t){return null!==t[1]}).map(function(t){return t[1]})},t.prototype.isBoolean=function(t){return"boolean"==typeof t},t.prototype.isNumber=function(t){return"number"==typeof t},t.prototype.isList=function(t){return t instanceof l.xtech.selfomat.ListSetting},t.prototype.isReadOnly=function(t){return t instanceof l.xtech.selfomat.ReadOnlySetting},t.prototype.isPost=function(t){return t instanceof l.xtech.selfomat.PostSetting},t.prototype.isFileUpload=function(t){return t instanceof l.xtech.selfomat.FileUploadSetting},t.prototype.isLink=function(t){return t instanceof l.xtech.selfomat.LinkSetting},t.prototype.getList=function(t){return this.isList(t)?t:null},t.prototype.getCameraSettings=function(){var t=this;return this.isDemo?new o.a(function(e){var n=new l.xtech.selfomat.CameraSettings;n.iso=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.CAMERA.iso"),values:["Auto","100","125","160","200","250","320","400","500","640","800","1000"],currentIndex:0,updateUrl:null}),n.aperture=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.CAMERA.aperture"),values:["1.8","2","2.2","2.5","2.8","3.2","3.5","4","4.5","5","5.6","6.3","7.1","8","9","10","11","13","14","16","18","20","22"],currentIndex:6,updateUrl:null}),n.shutterSpeed=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.CAMERA.shutterSpeed"),values:["Auto"],currentIndex:0,updateUrl:null}),n.exposureCompensation=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.CAMERA.exposureCompensation"),values:["-5","-4.6","-4.3","-4","-3.6","-3.3","-3","-2.6","-2.3","-2","-1.6","-1.3","-1","-0.6","-0.3","0","0.3","0.6","1","1.3","1.6","2","2.3","2.6","3","3.3","3.6","4","4.3","4.6","5"],currentIndex:13,updateUrl:null}),n.imageFormat=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.CAMERA.imageFormat"),values:["RAW + Tiny JPEG","RAW + Medium Fine JPEG","RAW + Large Fine JPEG"],currentIndex:2,updateUrl:null}),n.cameraName=new l.xtech.selfomat.ReadOnlySetting({name:t.translate.instant("DEMO.CAMERA.cameraName"),value:"Canon EOS 5D Mark III"}),n.lensName=new l.xtech.selfomat.ReadOnlySetting({name:t.translate.instant("DEMO.CAMERA.lensName"),value:"EF24-70mm f/4L IS USM"}),n.focus=new l.xtech.selfomat.PostSetting({name:t.translate.instant("DEMO.CAMERA.focus"),postUrl:null}),e.next(n),e.complete()}):this.http.get(u.a.SERVER_URL+"/camera_settings",{responseType:"arraybuffer",headers:this.headers}).pipe(Object(i.a)(function(e){return t.parseCameraSettings(e)}),Object(a.a)(this.handleError))},t.prototype.getBoothSettings=function(){var t=this;return this.isDemo?new o.a(function(e){var n=new l.xtech.selfomat.BoothSettings;n.storageEnabled=new l.xtech.selfomat.BoolSetting({name:t.translate.instant("DEMO.BOOTH.storageEnabled"),currentValue:!0,updateUrl:null}),n.printerEnabled=new l.xtech.selfomat.BoolSetting({name:t.translate.instant("DEMO.BOOTH.printerEnabled"),currentValue:!1,updateUrl:null}),n.flashEnabled=new l.xtech.selfomat.BoolSetting({name:t.translate.instant("DEMO.BOOTH.flashEnabled"),currentValue:!0,updateUrl:null}),n.flashDurationMicros=new l.xtech.selfomat.IntSetting({name:t.translate.instant("DEMO.BOOTH.flashDurationMicros"),currentValue:80,minValue:0,maxValue:100,updateUrl:null}),n.countdownDuration=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.BOOTH.countdownDuration"),values:["3s","4s","5s","6s","7s","8s","9s","10s","15s","30s"],currentIndex:2,updateUrl:null}),n.filterChoice=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.BOOTH.filterChoice"),values:["Off","Auto"],currentIndex:1,updateUrl:null}),n.filterGain=new l.xtech.selfomat.FloatSetting({name:t.translate.instant("DEMO.BOOTH.filterGain"),currentValue:.5,minValue:0,maxValue:1,updateUrl:null}),n.templateUpload=new l.xtech.selfomat.FileUploadSetting({name:t.translate.instant("DEMO.BOOTH.templateUpload"),postUrl:null,inputAccept:"image/x-png,image/png"}),n.templateEnabled=new l.xtech.selfomat.BoolSetting({name:t.translate.instant("DEMO.BOOTH.templateEnabled"),currentValue:!1,updateUrl:null}),n.cupsLink=new l.xtech.selfomat.LinkSetting({name:t.translate.instant("DEMO.BOOTH.cupsLink"),url:"https://www.cups.org"}),n.updateMode=new l.xtech.selfomat.PostSetting({name:t.translate.instant("DEMO.BOOTH.updateMode"),postUrl:null,alert:t.translate.instant("DEMO.BOOTH.updateModeAlert")}),e.next(n),e.complete()}):this.http.get(u.a.SERVER_URL+"/booth_settings",{responseType:"arraybuffer",headers:this.headers}).pipe(Object(i.a)(function(e){return t.parseBoothSettings(e)}),Object(a.a)(this.handleError))},t.prototype.parseCameraSettings=function(t){var e=l.xtech.selfomat.CameraSettings.decode(new Uint8Array(t));return this.checkPostTimer(),this.logger.setUserProperty("camera",e.cameraName.value),this.logger.setUserProperty("lens",e.lensName.value),e},t.prototype.parseBoothSettings=function(t){var e=l.xtech.selfomat.BoothSettings.decode(new Uint8Array(t));return this.checkPostTimer(),e},t.prototype.parseBoothError=function(t){return l.xtech.selfomat.BoothError.decode(new Uint8Array(t))},t.prototype.handleError=function(t){return console.error(t),function(t,e){return new o.a(function(e){return e.error(t)})}(t||"Server error")},t.prototype.presentAlert=function(t,e){return r.b(this,void 0,void 0,function(){return r.e(this,function(n){switch(n.label){case 0:return[4,this.alertController.create({header:t,subHeader:null,message:e,buttons:["OK"]})];case 1:return[4,n.sent().present()];case 2:return n.sent(),[2]}})})},t.prototype.clickItem=function(t,e,n){if(t.stopPropagation(),this.isFileUpload(e)){var r=document.getElementById("input_"+n);if(r.value)try{r.value="",r.value&&(r.type="text",r.type="file")}catch(o){}r.click()}else this.isPost(e)?this.post(t,e):this.isLink(e)&&(window.location.href=e.url)},t.prototype.updateSetting=function(t,e){var n,r=this;if(this.isUpdating||(this.isUpdating=!0,this.endUpdateingTimerID=setTimeout(function(){r.isUpdating=!1,r.endUpdateingTimerID=null},5e3)),e instanceof l.xtech.selfomat.BoolSetting){var o=l.xtech.selfomat.BoolUpdate.create({value:e.currentValue});n=l.xtech.selfomat.BoolUpdate.encode(o).finish()}else e instanceof l.xtech.selfomat.FloatSetting?(o=l.xtech.selfomat.FloatUpdate.create({value:e.currentValue}),n=l.xtech.selfomat.FloatUpdate.encode(o).finish()):e instanceof l.xtech.selfomat.IntSetting?(o=l.xtech.selfomat.IntUpdate.create({value:e.currentValue}),n=l.xtech.selfomat.IntUpdate.encode(o).finish()):e instanceof l.xtech.selfomat.ListSetting&&(console.log("LIST"),o=l.xtech.selfomat.IntUpdate.create({value:e.currentIndex}),n=l.xtech.selfomat.IntUpdate.encode(o).finish());this.isDemo||this.http.post(u.a.SERVER_URL+e.updateUrl,n.buffer.slice(n.byteOffset,n.byteLength+n.byteOffset),{headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"arraybuffer"}).subscribe(function(t){},function(t){console.log(t)})},t.prototype.checkPostTimer=function(){null!=this.postTimer&&null!=this.postLoadingController&&Date.now()-this.postTimer>1e4&&(this.postLoadingController.dismiss(),this.postLoadingController=null,this.postTimer=null)},t.prototype.postWithoutHint=function(t){return r.b(this,void 0,void 0,function(){var e,n=this;return r.e(this,function(r){switch(r.label){case 0:return t instanceof l.xtech.selfomat.PostSetting?null!=this.postLoadingController?[3,3]:(e=this,[4,this.loadingController.create({})]):[3,4];case 1:return e.postLoadingController=r.sent(),[4,this.postLoadingController.present()];case 2:r.sent(),r.label=3;case 3:this.postTimer=Date.now(),this.isDemo?(this.postLoadingController.dismiss(),this.postLoadingController=null,this.postTimer=null):(this.logger.logEvent("post",t.postUrl),this.http.post(u.a.SERVER_URL+t.postUrl,null,{responseType:"text"}).subscribe(function(t){n.postLoadingController.dismiss(),n.postLoadingController=null,n.postTimer=null},function(t){})),r.label=4;case 4:return[2]}})})},t.prototype.post=function(t,e){return r.b(this,void 0,void 0,function(){var t=this;return r.e(this,function(n){switch(n.label){case 0:return this.isPost(e)?e.alert.length>0?[4,this.actionSheetController.create({header:e.alert,buttons:[{text:e.name,handler:function(){t.postWithoutHint(e)}},{text:this.translate.instant("CANCEL"),role:"cancel",handler:function(){}}]})]:[3,3]:[3,4];case 1:return[4,n.sent().present()];case 2:return n.sent(),[3,4];case 3:this.postWithoutHint(e),n.label=4;case 4:return[2]}})})},t.prototype.fileUpload=function(t,e){return r.b(this,void 0,void 0,function(){var n,o,i;return r.e(this,function(r){switch(r.label){case 0:return e instanceof l.xtech.selfomat.FileUploadSetting?t.target.files.lengh<1?[2]:(n=t.target.files[0],e.inputAccept.length>0&&!e.inputAccept.split(",").includes(n.type.toLowerCase())?(this.presentAlert(this.translate.instant("ERROR"),this.translate.instant("ERRORS.fileUnsupported")),[2]):null!=this.postLoadingController?[3,3]:(o=this,[4,this.loadingController.create({})])):[3,4];case 1:return o.postLoadingController=r.sent(),[4,this.postLoadingController.present()];case 2:r.sent(),r.label=3;case 3:this.logger.logEvent("file_upload",n.name),(i=new FileReader).onload=(function(){if(this.isDemo)return this.postLoadingController.dismiss(),void(this.postLoadingController=null);var t=new Uint8Array(i.result),n=new XMLHttpRequest;n.open("POST",u.a.SERVER_URL+e.postUrl,!0),n.setRequestHeader("content-type","blob"),n.setRequestHeader("lang",this.translate.currentLang),n.responseType="arraybuffer",n.onreadystatechange=(function(){if(n.readyState===XMLHttpRequest.DONE){this.postLoadingController.dismiss(),this.postLoadingController=null;try{var t=this.parseBoothError(n.response);t.code>0&&this.presentAlert(t.title,t.message)}catch(e){}}}).bind(this),n.onerror=n.onreadystatechange,n.send(t)}).bind(this),i.onerror=(function(){this.postLoadingController.dismiss(),this.postLoadingController=null}).bind(this),i.readAsArrayBuffer(n),r.label=4;case 4:return[2]}})})},t.prototype.trigger=function(){this.isDemo||(this.logger.logEvent("trigger"),this.http.post(u.a.SERVER_URL+"/trigger",null,{responseType:"text"}).subscribe(function(t){},function(t){console.log(t)}))},t.ngInjectableDef=d.R({factory:function(){return new t(d.V(f.a),d.V(p.j),d.V(s.c),d.V(c.Gb),d.V(c.a),d.V(c.b))},token:t,providedIn:"root"}),t}()},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("CcnG"),o=n("AytR"),i=function(){function t(t,e,n){void 0===e&&(e="/assets/i18n/"),void 0===n&&(n=".json"),this.http=t,this.prefix=e,this.suffix=n}return t.prototype.getTranslation=function(t){return this.http.get(""+this.prefix+t+this.suffix)},t}(),a=function(t){return new i(t,"assets/i18n/",".json")},s=function(){return function(){}}(),u=n("ZZ/e"),c=n("mrSG"),l=n("a3Cf"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.d)(e,t),e.prototype.show=function(){return Object(l.cordova)(this,"show",{sync:!0},arguments)},e.prototype.hide=function(){return Object(l.cordova)(this,"hide",{sync:!0},arguments)},e.pluginName="SplashScreen",e.plugin="cordova-plugin-splashscreen",e.pluginRef="navigator.splashscreen",e.repo="https://github.com/apache/cordova-plugin-splashscreen",e.platforms=["Amazon Fire OS","Android","iOS","Windows"],e}(l.IonicNativePlugin),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.d)(e,t),e.prototype.overlaysWebView=function(t){return Object(l.cordova)(this,"overlaysWebView",{sync:!0},arguments)},e.prototype.styleDefault=function(){return Object(l.cordova)(this,"styleDefault",{sync:!0},arguments)},e.prototype.styleLightContent=function(){return Object(l.cordova)(this,"styleLightContent",{sync:!0},arguments)},e.prototype.styleBlackTranslucent=function(){return Object(l.cordova)(this,"styleBlackTranslucent",{sync:!0},arguments)},e.prototype.styleBlackOpaque=function(){return Object(l.cordova)(this,"styleBlackOpaque",{sync:!0},arguments)},e.prototype.backgroundColorByName=function(t){return Object(l.cordova)(this,"backgroundColorByName",{sync:!0},arguments)},e.prototype.backgroundColorByHexString=function(t){return Object(l.cordova)(this,"backgroundColorByHexString",{sync:!0},arguments)},e.prototype.hide=function(){return Object(l.cordova)(this,"hide",{sync:!0},arguments)},e.prototype.show=function(){return Object(l.cordova)(this,"show",{sync:!0},arguments)},Object.defineProperty(e.prototype,"isVisible",{get:function(){return Object(l.cordovaPropertyGet)(this,"isVisible")},set:function(t){Object(l.cordovaPropertySet)(this,"isVisible",t)},enumerable:!0,configurable:!0}),e.pluginName="StatusBar",e.plugin="cordova-plugin-statusbar",e.pluginRef="StatusBar",e.repo="https://github.com/apache/cordova-plugin-statusbar",e.platforms=["Android","iOS","Windows"],e}(l.IonicNativePlugin),p=n("A7o+"),h=function(){function t(t){this.translate=t;var e=this.translate.getBrowserLang();this.translate.setDefaultLang(e),this.translate.use(e)}return t.ngInjectableDef=r.R({factory:function(){return new t(r.V(p.j))},token:t,providedIn:"root"}),t}(),m=function(){function t(t,e,n,r){this.platform=t,this.splashScreen=e,this.statusBar=n,this.languageService=r,this.initializeApp()}return t.prototype.initializeApp=function(){var t=this;this.platform.ready().then(function(){t.statusBar.styleDefault(),t.splashScreen.hide()})},t}(),g=n("pMnS"),v=n("oBZk"),y=n("ZYCi"),b=n("Ip0R"),w=r.mb({encapsulation:2,styles:[],data:{}});function x(t){return r.Fb(0,[(t()(),r.ob(0,0,null,null,3,"ion-app",[],null,null,null,v.t,v.a)),r.nb(1,49152,null,0,u.f,[r.h,r.k,r.z],null,null),(t()(),r.ob(2,16777216,null,0,1,"ion-router-outlet",[],null,null,null,null,null)),r.nb(3,212992,null,0,u.ib,[y.b,r.N,r.j,[8,null],[8,null],u.e,u.Ib,b.f,r.k,y.m,r.z,y.a,[3,u.ib]],null,null)],function(t,e){t(e,3,0)},null)}function S(t){return r.Fb(0,[(t()(),r.ob(0,0,null,null,1,"app-root",[],null,null,null,x,w)),r.nb(1,49152,null,0,m,[u.Jb,f,d,h],null,null)],null,null)}var O=r.kb("app-root",m,S,{},{},[]),_=n("ZYjt"),E=n("t/Na"),C=n("yTNM"),j=n("dtEc"),k=function(){return function(){}}(),T=r.lb(s,[m],function(t){return r.vb([r.wb(512,r.j,r.ab,[[8,[g.a,O]],[3,r.j],r.x]),r.wb(5120,r.u,r.jb,[[3,r.u]]),r.wb(4608,b.k,b.j,[r.u,[2,b.q]]),r.wb(5120,r.c,r.gb,[]),r.wb(5120,r.s,r.hb,[]),r.wb(5120,r.t,r.ib,[]),r.wb(4608,_.b,_.k,[b.c]),r.wb(6144,r.F,null,[_.b]),r.wb(4608,_.e,_.g,[]),r.wb(5120,_.c,function(t,e,n,r,o,i,a,s){return[new _.i(t,e,n),new _.n(r),new _.m(o,i,a,s)]},[b.c,r.z,r.B,b.c,b.c,_.e,r.bb,[2,_.f]]),r.wb(4608,_.d,_.d,[_.c,r.z]),r.wb(135680,_.l,_.l,[b.c]),r.wb(4608,_.j,_.j,[_.d,_.l,r.c]),r.wb(6144,r.D,null,[_.j]),r.wb(6144,_.o,null,[_.l]),r.wb(4608,r.L,r.L,[r.z]),r.wb(4608,E.i,E.o,[b.c,r.B,E.m]),r.wb(4608,E.p,E.p,[E.i,E.n]),r.wb(5120,E.a,function(t){return[t]},[E.p]),r.wb(4608,E.l,E.l,[]),r.wb(6144,E.j,null,[E.l]),r.wb(4608,E.h,E.h,[E.j]),r.wb(6144,E.b,null,[E.h]),r.wb(4608,E.f,E.k,[E.b,r.q]),r.wb(4608,E.c,E.c,[E.f]),r.wb(4608,u.c,u.c,[r.z,r.g]),r.wb(4608,u.Hb,u.Hb,[u.c,r.j,r.q]),r.wb(4608,u.Kb,u.Kb,[u.c,r.j,r.q]),r.wb(5120,y.a,y.z,[y.m]),r.wb(4608,y.g,y.g,[]),r.wb(6144,y.h,null,[y.g]),r.wb(135680,y.p,y.p,[y.m,r.w,r.i,r.q,y.h]),r.wb(4608,y.e,y.e,[]),r.wb(5120,y.D,y.v,[y.m,b.n,y.i]),r.wb(5120,y.j,y.C,[y.A]),r.wb(5120,r.b,function(t){return[t]},[y.j]),r.wb(5120,p.f,a,[E.c]),r.wb(4608,p.c,p.e,[]),r.wb(4608,p.h,p.d,[]),r.wb(4608,p.b,p.a,[]),r.wb(4608,p.k,p.k,[]),r.wb(4608,p.j,p.j,[p.k,p.f,p.c,p.h,p.b,p.l,p.m]),r.wb(4608,d,d,[]),r.wb(4608,f,f,[]),r.wb(4608,C.a,C.a,[j.a,p.j,E.c,u.Gb,u.a,u.b]),r.wb(1073742336,b.b,b.b,[]),r.wb(1024,r.l,_.p,[]),r.wb(1024,r.y,function(){return[y.u()]},[]),r.wb(512,y.A,y.A,[r.q]),r.wb(256,u.Mb,{},[]),r.wb(1024,r.d,function(t,e,n,r,o){return[_.q(t),y.B(e),u.Nb(n,r,o)]},[[2,r.y],y.A,u.Mb,b.c,r.z]),r.wb(512,r.e,r.e,[[2,r.d]]),r.wb(131584,r.g,r.g,[r.z,r.bb,r.q,r.l,r.j,r.e]),r.wb(1073742336,r.f,r.f,[r.g]),r.wb(1073742336,_.a,_.a,[[3,_.a]]),r.wb(1073742336,E.e,E.e,[]),r.wb(1073742336,E.d,E.d,[]),r.wb(1073742336,u.Eb,u.Eb,[]),r.wb(1024,y.t,y.x,[[3,y.m]]),r.wb(512,y.r,y.c,[]),r.wb(512,y.b,y.b,[]),r.wb(256,y.i,{preloadingStrategy:y.g},[]),r.wb(1024,b.g,y.w,[b.m,[2,b.a],y.i]),r.wb(512,b.f,b.f,[b.g]),r.wb(512,r.i,r.i,[]),r.wb(512,r.w,r.I,[r.i,[2,r.J]]),r.wb(1024,y.k,function(){return[[{path:"",loadChildren:"./tabs/tabs.module#TabsPageModule"}]]},[]),r.wb(512,y.l,u.Fb,[]),r.wb(1024,y.m,y.y,[r.g,y.r,y.b,b.f,r.q,r.w,r.i,y.k,y.i,[2,y.q],[2,y.l]]),r.wb(1073742336,y.n,y.n,[[2,y.t],[2,y.m]]),r.wb(1073742336,k,k,[]),r.wb(1073742336,p.g,p.g,[]),r.wb(1073742336,s,s,[]),r.wb(256,r.Z,!0,[]),r.wb(256,E.m,"XSRF-TOKEN",[]),r.wb(256,E.n,"X-XSRF-TOKEN",[]),r.wb(256,p.m,void 0,[]),r.wb(256,p.l,void 0,[])])});o.a.production&&Object(r.S)(),_.h().bootstrapModuleFactory(T).catch(function(t){return console.log(t)})},zotm:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("rPjj"),o=n("Fxb1");function i(t,e,n,i,a){if(void 0===a&&(a=new r.a(t,n,i)),!a.closed)return Object(o.a)(e)(a)}}},[[0,1]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"+tJ4":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return function(e){for(var n=0,r=t.length;n>>0;return this.uint32(e),e&&this._push(s,e,t),this},a.prototype.string=function(t){var e=i.byteLength(t);return this.uint32(e),e&&this._push(u,e,t),this}},"4pTB":function(t,e){},"67Y/":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),o=n("FFOo");function i(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.d(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(o.a)},"6Tgl":function(t,e,n){"use strict";var r=e;function o(t,e,n){for(var r=Object.keys(e),o=0;o0)},r.Buffer=function(){try{var t=r.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(t){return"number"==typeof t?r.Buffer?r._Buffer_allocUnsafe(t):new r.Array(t):r.Buffer?r._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(t){return t?r.LongBits.from(t).toHash():r.LongBits.zeroHash},r.longFromHash=function(t,e){var n=r.LongBits.fromHash(t);return r.Long?r.Long.fromBits(n.lo,n.hi,e):n.toNumber(Boolean(e))},r.merge=o,r.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(t){for(var e={},n=0;n-1;--n)if(1===e[t[n]]&&null!=this[t[n]])return t[n]}},r.oneOfSetter=function(t){return function(e){for(var n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o0?e[0].el:void 0]}})})},o=function(){return Object(r.b)(void 0,void 0,void 0,function(){return Object(r.e)(this,function(t){switch(t.label){case 0:return[4,h()];case 1:return t.sent(),[2,l()]}})})},i=function(e,n){t.set(e,n)},c=function(t){var n=t.side;e.filter(function(e){return e.side===n&&e!==t}).forEach(function(t){return t.disabled=!0})},l=function(){return d(function(t){return t._isOpen})},f=function(){return e.some(function(t){return t.isAnimating})},d=function(t){var n=e.find(t);if(void 0!==n)return n.el},h=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(function(t){return t.componentOnReady()}))};return i("reveal",u),i("push",s),i("overlay",a),{registerAnimation:i,get:n,getMenus:function(){return Object(r.b)(void 0,void 0,void 0,function(){return Object(r.e)(this,function(t){switch(t.label){case 0:return[4,h()];case 1:return t.sent(),[2,e.map(function(t){return t.el})]}})})},getOpen:o,isEnabled:function(t){return Object(r.b)(void 0,void 0,void 0,function(){var e;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,n(t)];case 1:return(e=r.sent())?[2,!e.disabled]:[2,!1]}})})},swipeGesture:function(t,e){return Object(r.b)(void 0,void 0,void 0,function(){var o;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,n(e)];case 1:return(o=r.sent())&&(o.swipeGesture=t),[2,o]}})})},isAnimating:function(){return Object(r.b)(void 0,void 0,void 0,function(){return Object(r.e)(this,function(t){switch(t.label){case 0:return[4,h()];case 1:return t.sent(),[2,f()]}})})},isOpen:function(t){return Object(r.b)(void 0,void 0,void 0,function(){var e;return Object(r.e)(this,function(r){switch(r.label){case 0:return null==t?[3,2]:[4,n(t)];case 1:return[2,void 0!==(e=r.sent())&&e.isOpen()];case 2:return[4,o()];case 3:return[2,void 0!==(e=r.sent())]}})})},enable:function(t,e){return Object(r.b)(void 0,void 0,void 0,function(){var o;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,n(e)];case 1:return(o=r.sent())&&(o.disabled=!t),[2,o]}})})},toggle:function(t){return Object(r.b)(void 0,void 0,void 0,function(){var e;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,n(t)];case 1:return(e=r.sent())?[2,e.toggle()]:[2,!1]}})})},close:function(t){return Object(r.b)(void 0,void 0,void 0,function(){var e;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,void 0!==t?n(t):o()];case 1:return void 0!==(e=r.sent())?[2,e.close()]:[2,!1]}})})},open:function(t){return Object(r.b)(void 0,void 0,void 0,function(){var e;return Object(r.e)(this,function(r){switch(r.label){case 0:return[4,n(t)];case 1:return(e=r.sent())?[2,e.open()]:[2,!1]}})})},_getOpenSync:l,_createAnimation:function(e,n){var r=t.get(e);if(!r)throw new Error("animation not registered");return r(n)},_register:function(t){e.indexOf(t)<0&&(t.disabled||c(t),e.push(t))},_unregister:function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},_setOpen:function(t,e,n){return Object(r.b)(void 0,void 0,void 0,function(){var i;return Object(r.e)(this,function(r){switch(r.label){case 0:return f()?[2,!1]:e?[4,o()]:[3,3];case 1:return(i=r.sent())&&t.el!==i?[4,i.setOpen(!1,!1)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2,t._setOpen(e,n)]}})})},_setActiveMenu:c}}()},BEY9:function(t,e,n){"use strict";t.exports=function(t,e,n){var r=n||8192,o=r>>>1,i=null,a=r;return function(n){if(n<1||n>o)return t(n);a+n>r&&(i=t(r),a=0);var s=e.call(i,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},Bf66:function(t,e,n){var r={"./ion-action-sheet-controller_8.entry.js":["tiht",0,20],"./ion-action-sheet-ios.entry.js":["8fxj",0,21],"./ion-action-sheet-md.entry.js":["/NAp",0,22],"./ion-alert-ios.entry.js":["v39o",0,23],"./ion-alert-md.entry.js":["LO2T",0,24],"./ion-app_8-ios.entry.js":["QHj0",0,25],"./ion-app_8-md.entry.js":["qAXt",0,26],"./ion-avatar_3-ios.entry.js":["0dZQ",0,27],"./ion-avatar_3-md.entry.js":["KCJs",0,28],"./ion-back-button-ios.entry.js":["alfR",0,29],"./ion-back-button-md.entry.js":["U/jw",0,30],"./ion-backdrop-ios.entry.js":["R/c5",31],"./ion-backdrop-md.entry.js":["pA8c",32],"./ion-button_2-ios.entry.js":["Msuq",0,33],"./ion-button_2-md.entry.js":["u/MI",0,34],"./ion-card_5-ios.entry.js":["lVNE",0,35],"./ion-card_5-md.entry.js":["Gb/J",0,36],"./ion-checkbox-ios.entry.js":["2YsE",0,37],"./ion-checkbox-md.entry.js":["lSJ9",0,38],"./ion-chip-ios.entry.js":["h+UY",0,39],"./ion-chip-md.entry.js":["d14f",0,40],"./ion-col_3.entry.js":["aoqT",41],"./ion-datetime_3-ios.entry.js":["SV55",0,42],"./ion-datetime_3-md.entry.js":["KqJa",0,43],"./ion-fab_3-ios.entry.js":["QdBw",0,44],"./ion-fab_3-md.entry.js":["wLS3",0,45],"./ion-img.entry.js":["lYhy",46],"./ion-infinite-scroll_2-ios.entry.js":["W9z5",0,47],"./ion-infinite-scroll_2-md.entry.js":["Osuu",0,48],"./ion-input-ios.entry.js":["TW18",0,49],"./ion-input-md.entry.js":["A3vp",0,50],"./ion-item-option_3-ios.entry.js":["QSHf",0,51],"./ion-item-option_3-md.entry.js":["Lc8E",0,52],"./ion-item_8-ios.entry.js":["yJkF",0,53],"./ion-item_8-md.entry.js":["nJbe",0,54],"./ion-loading-ios.entry.js":["qfPd",0,55],"./ion-loading-md.entry.js":["Voy3",0,56],"./ion-menu_4-ios.entry.js":["FBP2",0,57],"./ion-menu_4-md.entry.js":["g/I3",0,58],"./ion-modal-ios.entry.js":["0+Bq",0,59],"./ion-modal-md.entry.js":["AF5P",0,60],"./ion-nav_5.entry.js":["nD5p",0,61],"./ion-popover-ios.entry.js":["ZG/G",0,62],"./ion-popover-md.entry.js":["z0lq",0,63],"./ion-progress-bar-ios.entry.js":["2YQO",0,64],"./ion-progress-bar-md.entry.js":["qDED",0,65],"./ion-radio_2-ios.entry.js":["IOpt",0,66],"./ion-radio_2-md.entry.js":["Q4Z5",0,67],"./ion-range-ios.entry.js":["t0+n",0,68],"./ion-range-md.entry.js":["Hy4L",0,69],"./ion-refresher_2-ios.entry.js":["ASjW",0,70],"./ion-refresher_2-md.entry.js":["liZc",0,71],"./ion-reorder_2-ios.entry.js":["aMvp",0,72],"./ion-reorder_2-md.entry.js":["wCZP",0,73],"./ion-ripple-effect.entry.js":["yNr1",74],"./ion-route_4.entry.js":["EOjV",0,75],"./ion-searchbar-ios.entry.js":["RXmo",0,76],"./ion-searchbar-md.entry.js":["ffsq",0,77],"./ion-segment_2-ios.entry.js":["Loa/",0,78],"./ion-segment_2-md.entry.js":["hm+o",0,79],"./ion-select_3-ios.entry.js":["kxfy",0,80],"./ion-select_3-md.entry.js":["RRhw",0,81],"./ion-slide_2-ios.entry.js":["MyoC",82],"./ion-slide_2-md.entry.js":["pKl9",83],"./ion-spinner.entry.js":["4RuT",0,84],"./ion-split-pane-ios.entry.js":["8LTB",85],"./ion-split-pane-md.entry.js":["zG3r",86],"./ion-tab-bar_2-ios.entry.js":["ri6M",0,87],"./ion-tab-bar_2-md.entry.js":["3xPB",0,88],"./ion-tab_2.entry.js":["ZyW4",0,89],"./ion-text.entry.js":["7Ttm",0,90],"./ion-textarea-ios.entry.js":["bRvG",0,91],"./ion-textarea-md.entry.js":["RoCC",0,92],"./ion-toast-ios.entry.js":["W9p6",0,93],"./ion-toast-md.entry.js":["XCFn",0,94],"./ion-toggle-ios.entry.js":["ba+K",0,95],"./ion-toggle-md.entry.js":["ro3r",0,96],"./ion-virtual-scroll.entry.js":["X9e5",97]};function o(t){var e=r[t];return e?Promise.all(e.slice(1).map(n.e)).then(function(){return n(e[0])}):Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}o.keys=function(){return Object.keys(r)},o.id="Bf66",t.exports=o},"Bko/":function(t,e,n){"use strict";t.exports={}},CTpc:function(t,e,n){"use strict";n.d(e,"a",function(){return T}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return p}),n.d(e,"f",function(){return b}),n.d(e,"g",function(){return w}),n.d(e,"h",function(){return O}),n.d(e,"i",function(){return m}),n.d(e,"j",function(){return E}),n.d(e,"k",function(){return v}),n.d(e,"l",function(){return y}),n.d(e,"m",function(){return c}),n.d(e,"n",function(){return l}),n.d(e,"o",function(){return f}),n.d(e,"p",function(){return k}),n.d(e,"q",function(){return h});var r=n("mrSG"),o=n("ttJE"),i=0,a=function(t){return{create:function(e){return m(t,e)},dismiss:function(e,n,r){return v(document,e,n,t,r)},getTop:function(){return Object(r.b)(this,void 0,void 0,function(){return Object(r.e)(this,function(e){return[2,y(document,t)]})})}}},s=a("ion-alert"),u=a("ion-action-sheet"),c=a("ion-loading"),l=a("ion-modal"),f=a("ion-picker"),d=a("ion-popover"),h=a("ion-toast"),p=function(t){var e=document;g(e);var n=i++;t.overlayIndex=n,t.hasAttribute("id")||(t.id="ion-overlay-"+n)},m=function(t,e){return customElements.whenDefined(t).then(function(){var n=document,r=n.createElement(t);return r.classList.add("overlay-hidden"),Object.assign(r,e),x(n).appendChild(r),r.componentOnReady()})},g=function(t){0===i&&(i=1,t.addEventListener("focusin",function(e){var n=y(t);if(n&&n.backdropDismiss&&!C(n,e.target)){var r=n.querySelector("input,button");r&&r.focus()}}),t.addEventListener("ionBackButton",function(e){var n=y(t);n&&n.backdropDismiss&&e.detail.register(100,function(){return n.dismiss(void 0,T)})}),t.addEventListener("keyup",function(e){if("Escape"===e.key){var n=y(t);n&&n.backdropDismiss&&n.dismiss(void 0,T)}}))},v=function(t,e,n,r,o){var i=y(t,r,o);return i?i.dismiss(e,n):Promise.reject("overlay does not exist")},y=function(t,e,n){var r=function(t,e){return void 0===e&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter(function(t){return t.overlayIndex>0})}(t,e);return void 0===n?r[r.length-1]:r.find(function(t){return t.id===n})},b=function(t,e,n,i,a){return Object(r.b)(void 0,void 0,void 0,function(){var s;return Object(r.e)(this,function(r){switch(r.label){case 0:return t.presented?[2]:(t.presented=!0,t.willPresent.emit(),s=t.enterAnimation?t.enterAnimation:o.b.get(e,"ios"===t.mode?n:i),[4,S(t,s,t.el,a)]);case 1:return r.sent()&&t.didPresent.emit(),[2]}})})},w=function(t,e,n,i,a,s,u){return Object(r.b)(void 0,void 0,void 0,function(){var c,l;return Object(r.e)(this,function(r){switch(r.label){case 0:if(!t.presented)return[2,!1];t.presented=!1,r.label=1;case 1:return r.trys.push([1,3,,4]),t.willDismiss.emit({data:e,role:n}),c=t.leaveAnimation?t.leaveAnimation:o.b.get(i,"ios"===t.mode?a:s),[4,S(t,c,t.el,u)];case 2:return r.sent(),t.didDismiss.emit({data:e,role:n}),[3,4];case 3:return l=r.sent(),console.error(l),[3,4];case 4:return t.el.remove(),[2,!0]}})})},x=function(t){return t.querySelector("ion-app")||t.body},S=function(t,e,i,a){return Object(r.b)(void 0,void 0,void 0,function(){var s,u,c,l,f;return Object(r.e)(this,function(r){switch(r.label){case 0:if(t.animation)return t.animation.destroy(),t.animation=void 0,[2,!1];i.classList.remove("overlay-hidden"),s=i.shadowRoot||t.el,c=!0,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,n.e(6).then(n.bind(null,"5QBn"))];case 2:return[4,r.sent().create(e,s,a)];case 3:return u=r.sent(),[3,5];case 4:return r.sent(),(u=e(s,a)).fill("both"),c=!1,[3,5];case 5:return t.animation=u,t.animated&&o.b.getBoolean("animated",!0)||u.duration(0),t.keyboardClose&&u.beforeAddWrite(function(){var t=i.ownerDocument.activeElement;t&&t.matches("input, ion-input, ion-textarea")&&t.blur()}),[4,u.playAsync()];case 6:return l=r.sent(),f=void 0===l||u.hasCompleted,c&&u.destroy(),t.animation=void 0,[2,f]}})})},O=function(t,e){var n,r=new Promise(function(t){return n=t});return _(t,e,function(t){n(t.detail)}),r},_=function(t,e,n){var r=function(o){t.removeEventListener(e,r),n(o)};t.addEventListener(e,r)},E=function(t){return"cancel"===t||t===T},C=function(t,e){for(;e;){if(e===t)return!0;e=e.parentElement}return!1},j=function(t){return t()},k=function(t,e){if("function"==typeof t)return o.b.get("_zoneGate",j)(function(){try{return t(e)}catch(n){console.error(n)}})},T="backdrop"},CcnG:function(t,e,n){"use strict";n.d(e,"hb",function(){return Xn}),n.d(e,"ib",function(){return Yn}),n.d(e,"jb",function(){return tr}),n.d(e,"gb",function(){return Ie}),n.d(e,"g",function(){return gn}),n.d(e,"Q",function(){return dn}),n.d(e,"y",function(){return fn}),n.d(e,"S",function(){return Bt}),n.d(e,"W",function(){return Vt}),n.d(e,"c",function(){return Pe}),n.d(e,"C",function(){return Ae}),n.d(e,"B",function(){return Le}),n.d(e,"b",function(){return Ne}),n.d(e,"d",function(){return ke}),n.d(e,"e",function(){return Te}),n.d(e,"U",function(){return An}),n.d(e,"L",function(){return on}),n.d(e,"Y",function(){return sn}),n.d(e,"u",function(){return Kn}),n.d(e,"f",function(){return er}),n.d(e,"m",function(){return le}),n.d(e,"l",function(){return Ee}),n.d(e,"F",function(){return Nt}),n.d(e,"G",function(){return Lt}),n.d(e,"a",function(){return x}),n.d(e,"n",function(){return ye}),n.d(e,"r",function(){return ve}),n.d(e,"O",function(){return N}),n.d(e,"M",function(){return $t}),n.d(e,"R",function(){return h}),n.d(e,"T",function(){return R}),n.d(e,"q",function(){return nt}),n.d(e,"V",function(){return z}),n.d(e,"p",function(){return m}),n.d(e,"o",function(){return $}),n.d(e,"A",function(){return D}),n.d(e,"H",function(){return U}),n.d(e,"z",function(){return Ke}),n.d(e,"D",function(){return Pt}),n.d(e,"E",function(){return It}),n.d(e,"i",function(){return He}),n.d(e,"j",function(){return St}),n.d(e,"k",function(){return jt}),n.d(e,"v",function(){return Ct}),n.d(e,"x",function(){return Et}),n.d(e,"w",function(){return ge}),n.d(e,"I",function(){return xn}),n.d(e,"J",function(){return bn}),n.d(e,"K",function(){return fe}),n.d(e,"N",function(){return On}),n.d(e,"h",function(){return En}),n.d(e,"s",function(){return qn}),n.d(e,"t",function(){return Gn}),n.d(e,"P",function(){return W}),n.d(e,"X",function(){return Qn}),n.d(e,"rb",function(){return J}),n.d(e,"bb",function(){return $e}),n.d(e,"Z",function(){return gt}),n.d(e,"ab",function(){return Ot}),n.d(e,"cb",function(){return ue}),n.d(e,"db",function(){return me}),n.d(e,"eb",function(){return qt}),n.d(e,"pb",function(){return _}),n.d(e,"ub",function(){return T}),n.d(e,"Cb",function(){return P}),n.d(e,"sb",function(){return je}),n.d(e,"tb",function(){return Ce}),n.d(e,"fb",function(){return Zr}),n.d(e,"kb",function(){return mo}),n.d(e,"lb",function(){return va}),n.d(e,"mb",function(){return br}),n.d(e,"nb",function(){return Uo}),n.d(e,"ob",function(){return Jr}),n.d(e,"qb",function(){return Gr}),n.d(e,"vb",function(){return io}),n.d(e,"wb",function(){return oo}),n.d(e,"xb",function(){return si}),n.d(e,"yb",function(){return Co}),n.d(e,"zb",function(){return Vo}),n.d(e,"Ab",function(){return Bo}),n.d(e,"Bb",function(){return ni}),n.d(e,"Db",function(){return ci}),n.d(e,"Eb",function(){return gr}),n.d(e,"Fb",function(){return di});var r=n("mrSG"),o=n("pugT"),i=n("K9Ia"),a=n("6blF"),s=n("p0ib"),u=n("S1nX");function c(t){for(var e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function l(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}var f=c({ngInjectableDef:c}),d=c({ngBaseDef:c});function h(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function p(t){return t&&t.hasOwnProperty(f)?t[f]:null}var m=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?h({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),g="__parameters__",v="__prop__metadata__";function y(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];o.push(i+":"+("string"==typeof a?JSON.stringify(a):P(a)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(lt,"\n ")}function mt(t,e){return new Error(pt(t,e))}var gt=new m("The presence of this token marks an injector as being the root injector."),vt=function(){return function(){}}(),yt=function(){return function(){}}();function bt(t){var e=Error("No component factory found for "+P(t)+". Did you add it to @NgModule.entryComponents?");return e[wt]=t,e}var wt="ngComponent",xt=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw bt(t)},t}(),St=function(){function t(){}return t.NULL=new xt,t}(),Ot=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Yt.hasOwnProperty(e)&&!Jt.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(se(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),ie=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ae=/([^\#-~ |!])/g;function se(t){return t.replace(/&/g,"&").replace(ie,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ae,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function ue(t,e){var n=null;try{Zt=Zt||new Ft(t);var r=e?String(e):"";n=Zt.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Zt.getInertBodyElement(r)}while(r!==i);var a=new oe,s=a.sanitizeChildren(ce(n)||n);return Vt()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=ce(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function ce(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var le=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Object(r.d)(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,a=function(t){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(a=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=t.prototype.subscribe.call(this,i,a,s);return e instanceof o.a&&e.add(u),u},e}(i.a),fe=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return de(t,jt)},t}(),de=K,he=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),pe=/^url\(([^)]+)\)$/;function me(t){if(!(t=String(t).trim()))return"";var e=t.match(pe);return e&&qt(e[1])===e[1]||t.match(he)&&function(t){for(var e=!0,n=!0,r=0;r0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),an=function(){function t(){this._applications=new Map,cn.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),cn.findTestabilityInTree(this,t,e)},Object(r.c)([Object(r.f)("design:paramtypes",[])],t)}();function sn(t){cn=t}var un,cn=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),ln=new m("AllowMultipleToken"),fn=function(){return function(t,e){this.name=t,this.token=e}}();function dn(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new m(r);return function(e){void 0===e&&(e=[]);var i=hn();if(!i||i.injector.get(ln,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var a=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(un&&!un.destroyed&&!un.injector.get(ln,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");un=t.get(pn);var e=t.get(Ae,null);e&&e.forEach(function(t){return t()})}(nt.create({providers:a,name:r}))}return function(t){var e=hn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function hn(){return un&&!un.destroyed?un:null}var pn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new rn:("zone.js"===n?void 0:n)||new Ke({enableLongStackTrace:Vt()}),i=[{provide:Ke,useValue:o}];return o.run(function(){var e=nt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(Ee,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return vn(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,o){try{var i=((a=n.injector.get(Te)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Ce(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(a,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=mn({},e);return function(t,e,n){return t.get(qe).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(gn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+P(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function mn(t,e){return Array.isArray(e)?e.reduce(mn,t):Object(r.a)({},t,e)}var gn=function(){function t(t,e,n,r,o,i){var c=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Vt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var l=new a.a(function(t){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){t.next(c._stable),t.complete()})}),f=new a.a(function(t){var e;c._zone.runOutsideAngular(function(){e=c._zone.onStable.subscribe(function(){Ke.assertNotInAngularZone(),k(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,t.next(!0))})})});var n=c._zone.onUnstable.subscribe(function(){Ke.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(l,f.pipe(Object(u.a)()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof yt?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof _t?null:this._injector.get(Et),i=n.create(nt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var a=i.injector.get(on,null);return a&&i.injector.get(an).registerApplication(i.location.nativeElement,a),this._loadComponent(i),Vt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Qe(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;vn(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ne,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),vn(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Je("ApplicationRef#tick()"),t}();function vn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var yn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new le,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[j()]=function(){return this._results[j()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),bn=function(){return function(){}}(),wn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},xn=function(){function t(t,e){this._compiler=t,this._config=e||wn}return t.prototype.load=function(t){return this._compiler instanceof He?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,o=Object(r.h)(t.split("#"),2),i=o[0],a=o[1];return void 0===a&&(a="default"),n("crnd")(i).then(function(t){return t[a]}).then(function(t){return Sn(t,i,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=Object(r.h)(t.split("#"),2),o=e[0],i=e[1],a="NgFactory";return void 0===i&&(i="default",a=""),n("crnd")(this._config.factoryPathPrefix+o+this._config.factoryPathSuffix).then(function(t){return t[i+a]}).then(function(t){return Sn(t,o,i)})},t}();function Sn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var On=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return _n(t,jt)},t}(),_n=K,En=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Cn()},t}(),Cn=function(){for(var t=[],e=0;e-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var l=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:l,token:e.token},t._providers[l]=to,t._providers[l]=so(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{F(i)}}function so(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var o=n.length;switch(o){case 0:return new e;case 1:return new e(ao(t,n[0]));case 2:return new e(ao(t,n[0]),ao(t,n[1]));case 3:return new e(ao(t,n[0]),ao(t,n[1]),ao(t,n[2]));default:for(var i=new Array(o),a=0;a=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,ho(n,e),cr.dirtyParentQueries(r),lo(r),r}function co(t,e,n){var r=e?Tr(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);Mr(n,2,o,i,void 0)}function lo(t){Mr(t,3,null,null,void 0)}function fo(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ho(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var po=new Object;function mo(t,e,n,r,o,i){return new go(t,e,n,r,o,i)}var go=function(t){function e(e,n,r,o,i,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=o,s._outputs=i,s.ngContentSelectors=a,s.viewDefFactory=r,s}return Object(r.d)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=Dr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=cr.createRootView(t,e||[],n,o,r,po),s=ar(a,i).instance;return n&&a.renderer.setAttribute(ir(a,0).renderElement,"ng-version",Dt.full),new vo(a,new xo(a),s)},e}(yt),vo=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.d)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new jt(ir(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Eo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(vt);function yo(t,e,n){return new bo(t,e,n)}var bo=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new jt(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Eo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=kr(t),t=t.parent;return t?new Eo(t,e):new Eo(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=uo(this._data,t);cr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new xo(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof _t||(o=i.get(Et));var a=t.create(i,r,void 0,o);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,a=t;return i=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=i.length),(o=a._view).viewContainerParent=this._view,fo(i,r,o),function(t,e){var n=jr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),cr.dirtyParentQueries(o),co(n,r>0?i[r-1]:null,o),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,s=this._embeddedViews.indexOf(t._view);return o=e,a=(i=(n=this._data).viewContainer._embeddedViews)[r=s],ho(i,r),null==o&&(o=i.length),fo(i,o,a),cr.dirtyParentQueries(a),lo(a),co(n,o>0?i[o-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=uo(this._data,t);e&&cr.destroyView(e)},t.prototype.detach=function(t){var e=uo(this._data,t);return e?new xo(e):null},t}();function wo(t){return new xo(t)}var xo=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Mr(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){_r(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{cr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){cr.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),cr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,lo(this._view),cr.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function So(t,e){return new Oo(t,e)}var Oo=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.d)(e,t),e.prototype.createEmbeddedView=function(t){return new xo(cr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new jt(ir(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(fe);function _o(t,e){return new Eo(t,e)}var Eo=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=nt.THROW_IF_NOT_FOUND),cr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:mr(t)},e)},t}();function Co(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=ir(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return or(t,n.nodeIndex).renderText;if(20240&n.flags)return ar(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function jo(t){return new ko(t.renderer)}var ko=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Object(r.h)(Hr(e),2),o=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,o=e.provider;switch(201347067&e.flags){case 512:return Zo(t,e.parent,n,o.value,o.deps);case 1024:return function(t,e,n,o,i){var a=i.length;switch(a){case 0:return o();case 1:return o(Qo(t,e,n,i[0]));case 2:return o(Qo(t,e,n,i[0]),Qo(t,e,n,i[1]));case 3:return o(Qo(t,e,n,i[0]),Qo(t,e,n,i[1]),Qo(t,e,n,i[2]));default:for(var s=Array(a),u=0;u0)c=m,hi(m)||(l=m);else for(;c&&p===c.nodeIndex+c.childCount;){var y=c.parent;y&&(y.childFlags|=c.childFlags,y.childMatchedQueries|=c.childMatchedQueries),l=(c=y)&&hi(c)?c.renderParent:c}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||hr,updateRenderer:r||hr,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:h}}function hi(t){return 0!=(1&t.flags)&&null===t.element.name}function pi(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function mi(t,e,n,r){var o=yi(t.root,t.renderer,t,e,n);return bi(o,t.component,r),wi(o),o}function gi(t,e,n){var r=yi(t,t.renderer,null,null,e);return bi(r,n,n),wi(r),r}function vi(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,yi(t.root,o,t,e.element.componentProvider,n)}function yi(t,e,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function bi(t,e,n){t.component=e,t.context=n}function wi(t){var e;Pr(t)&&(e=ir(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Yr(t,e,0,n)&&(h=!0),d>1&&Yr(t,e,1,r)&&(h=!0),d>2&&Yr(t,e,2,o)&&(h=!0),d>3&&Yr(t,e,3,i)&&(h=!0),d>4&&Yr(t,e,4,a)&&(h=!0),d>5&&Yr(t,e,5,s)&&(h=!0),d>6&&Yr(t,e,6,u)&&(h=!0),d>7&&Yr(t,e,7,c)&&(h=!0),d>8&&Yr(t,e,8,l)&&(h=!0),d>9&&Yr(t,e,9,f)&&(h=!0),h}(t,e,n,r,o,i,a,s,u,c,l,f);case 2:return function(t,e,n,r,o,i,a,s,u,c,l,f){var d=!1,h=e.bindings,p=h.length;if(p>0&&Sr(t,e,0,n)&&(d=!0),p>1&&Sr(t,e,1,r)&&(d=!0),p>2&&Sr(t,e,2,o)&&(d=!0),p>3&&Sr(t,e,3,i)&&(d=!0),p>4&&Sr(t,e,4,a)&&(d=!0),p>5&&Sr(t,e,5,s)&&(d=!0),p>6&&Sr(t,e,6,u)&&(d=!0),p>7&&Sr(t,e,7,c)&&(d=!0),p>8&&Sr(t,e,8,l)&&(d=!0),p>9&&Sr(t,e,9,f)&&(d=!0),d){var m=e.text.prefix;p>0&&(m+=fi(n,h[0])),p>1&&(m+=fi(r,h[1])),p>2&&(m+=fi(o,h[2])),p>3&&(m+=fi(i,h[3])),p>4&&(m+=fi(a,h[4])),p>5&&(m+=fi(s,h[5])),p>6&&(m+=fi(u,h[6])),p>7&&(m+=fi(c,h[7])),p>8&&(m+=fi(l,h[8])),p>9&&(m+=fi(f,h[9]));var g=or(t,e.nodeIndex).renderText;t.renderer.setValue(g,m)}return d}(t,e,n,r,o,i,a,s,u,c,l,f);case 16384:return function(t,e,n,r,o,i,a,s,u,c,l,f){var d=ar(t,e.nodeIndex),h=d.instance,p=!1,m=void 0,g=e.bindings.length;return g>0&&xr(t,e,0,n)&&(p=!0,m=Xo(t,d,e,0,n,m)),g>1&&xr(t,e,1,r)&&(p=!0,m=Xo(t,d,e,1,r,m)),g>2&&xr(t,e,2,o)&&(p=!0,m=Xo(t,d,e,2,o,m)),g>3&&xr(t,e,3,i)&&(p=!0,m=Xo(t,d,e,3,i,m)),g>4&&xr(t,e,4,a)&&(p=!0,m=Xo(t,d,e,4,a,m)),g>5&&xr(t,e,5,s)&&(p=!0,m=Xo(t,d,e,5,s,m)),g>6&&xr(t,e,6,u)&&(p=!0,m=Xo(t,d,e,6,u,m)),g>7&&xr(t,e,7,c)&&(p=!0,m=Xo(t,d,e,7,c,m)),g>8&&xr(t,e,8,l)&&(p=!0,m=Xo(t,d,e,8,l,m)),g>9&&xr(t,e,9,f)&&(p=!0,m=Xo(t,d,e,9,f,m)),m&&h.ngOnChanges(m),65536&e.flags&&rr(t,256,e.nodeIndex)&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),p}(t,e,n,r,o,i,a,s,u,c,l,f);case 32:case 64:case 128:return function(t,e,n,r,o,i,a,s,u,c,l,f){var d=e.bindings,h=!1,p=d.length;if(p>0&&Sr(t,e,0,n)&&(h=!0),p>1&&Sr(t,e,1,r)&&(h=!0),p>2&&Sr(t,e,2,o)&&(h=!0),p>3&&Sr(t,e,3,i)&&(h=!0),p>4&&Sr(t,e,4,a)&&(h=!0),p>5&&Sr(t,e,5,s)&&(h=!0),p>6&&Sr(t,e,6,u)&&(h=!0),p>7&&Sr(t,e,7,c)&&(h=!0),p>8&&Sr(t,e,8,l)&&(h=!0),p>9&&Sr(t,e,9,f)&&(h=!0),h){var m=sr(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(d.length),p>0&&(g[0]=n),p>1&&(g[1]=r),p>2&&(g[2]=o),p>3&&(g[3]=i),p>4&&(g[4]=a),p>5&&(g[5]=s),p>6&&(g[6]=u),p>7&&(g[7]=c),p>8&&(g[8]=l),p>9&&(g[9]=f);break;case 64:g={},p>0&&(g[d[0].name]=n),p>1&&(g[d[1].name]=r),p>2&&(g[d[2].name]=o),p>3&&(g[d[3].name]=i),p>4&&(g[d[4].name]=a),p>5&&(g[d[5].name]=s),p>6&&(g[d[6].name]=u),p>7&&(g[d[7].name]=c),p>8&&(g[d[8].name]=l),p>9&&(g[d[9].name]=f);break;case 128:var v=n;switch(p){case 1:g=v.transform(n);break;case 2:g=v.transform(r);break;case 3:g=v.transform(r,o);break;case 4:g=v.transform(r,o,i);break;case 5:g=v.transform(r,o,i,a);break;case 6:g=v.transform(r,o,i,a,s);break;case 7:g=v.transform(r,o,i,a,s,u);break;case 8:g=v.transform(r,o,i,a,s,u,c);break;case 9:g=v.transform(r,o,i,a,s,u,c,l);break;case 10:g=v.transform(r,o,i,a,s,u,c,l,f)}}m.value=g}return h}(t,e,n,r,o,i,a,s,u,c,l,f);default:throw"unreachable"}}(t,e,o,i,a,s,u,c,l,f,d,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&Or(t,e,0,n),d>1&&Or(t,e,1,r),d>2&&Or(t,e,2,o),d>3&&Or(t,e,3,i),d>4&&Or(t,e,4,a),d>5&&Or(t,e,5,s),d>6&&Or(t,e,6,u),d>7&&Or(t,e,7,c),d>8&&Or(t,e,8,l),d>9&&Or(t,e,9,f)}(t,e,r,o,i,a,s,u,c,l,f,d):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);Fi.forEach(function(e,r){if(i.has(p(r).providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:Lr(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[mr(r)]=o}})}}(t=t.factory(function(){return hr})),t):t}(r))}var Bi=new Map,Fi=new Map,zi=new Map;function Hi(t){var e;Bi.set(t.token,t),"function"==typeof t.token&&(e=p(t.token))&&"function"==typeof e.providedIn&&Fi.set(t.token,t)}function qi(t,e){var n=Dr(e.viewDefFactory),r=Dr(n.nodes[0].element.componentView);zi.set(t,r)}function Gi(){Bi.clear(),Fi.clear(),zi.clear()}function Wi(t){if(0===Bi.size)return t;var e=function(t){for(var e=[],n=null,r=0;r>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function m(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}f.create=o.Buffer?function(){return(f.create=function(){return new r})()}:function(){return new f},f.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(t,e,n){return this.tail=this.tail.next=new u(t,e,n),this.len+=e,this},(h.prototype=Object.create(u.prototype)).fn=function(t,e,n){for(;t>127;)e[n++]=127&t|128,t>>>=7;e[n]=t},f.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new h((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},f.prototype.int32=function(t){return t<0?this._push(p,10,i.fromNumber(t)):this.uint32(t)},f.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},f.prototype.int64=f.prototype.uint64=function(t){var e=i.from(t);return this._push(p,e.length(),e)},f.prototype.sint64=function(t){var e=i.from(t).zzEncode();return this._push(p,e.length(),e)},f.prototype.bool=function(t){return this._push(d,1,t?1:0)},f.prototype.sfixed32=f.prototype.fixed32=function(t){return this._push(m,4,t>>>0)},f.prototype.sfixed64=f.prototype.fixed64=function(t){var e=i.from(t);return this._push(m,4,e.lo)._push(m,4,e.hi)},f.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},f.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var g=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var r=0;r>>0;if(!e)return this._push(d,1,0);if(o.isString(t)){var n=f.alloc(e=a.length(t));a.decode(t,n,0),t=n}return this.uint32(e)._push(g,e,t)},f.prototype.string=function(t){var e=s.length(t);return e?this.uint32(e)._push(s.write,e,t):this._push(d,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},f.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},f._configure=function(t){r=t}},DKTb:function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t})}n.d(e,"a",function(){return r})},Ehmk:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r,o=n("eihs");function i(){try{return r.apply(this,arguments)}catch(t){return o.a.e=t,o.a}}function a(t){return r=t,i}},"En8+":function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return o});var o=r()},"F/XL":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("nkY7"),o=n("IUTb"),i=n("G5J1"),a=n("PU8L");function s(){for(var t=[],e=0;e0&&(H?(N.forEach(function(t){var e=t.animate(b,{delay:Y(),duration:K(),easing:Q(),iterations:X(),fill:Z(),direction:J()});e.pause(),F.push(e)}),F.length>0&&(F[0].onfinish=function(){tt()})):function(t){void 0===t&&(t=!0),W(),N.forEach(function(e){if(b.length>0){var n=(void 0===(u=b)&&(u=[]),u.map(function(t){var e=t.offset,n=[];for(var r in t)t.hasOwnProperty(r)&&"offset"!==r&&n.push(r+": "+t[r]+";");return 100*e+"% { "+n.join(" ")+" }"}).join(" ")),r=function(t,e,n){var r=function(t){var e=t.getRootNode();return e.head||e}(n),o=r.querySelector("#"+t);if(o)return o;var i=(n.ownerDocument||document).createElement("style");return i.id=t,i.textContent="@keyframes "+t+" { "+e+" } @keyframes "+t+"-alt { "+e+" }",r.appendChild(i),i}(v=function(t){var e=s.indexOf(t);return e<0&&(e=s.push(t)-1),"ion-animation-"+e}(n),n,e);D.push(r),i(e,"animation-duration",K()+"ms"),i(e,"animation-timing-function",Q()),i(e,"animation-delay",Y()+"ms"),i(e,"animation-fill-mode",Z()),i(e,"animation-direction",J());var a=X()===1/0?"infinite":X().toString();i(e,"animation-iteration-count",a),i(e,"animation-play-state","paused"),t&&i(e,"animation-name",r.id+"-alt"),Object(o.k)(function(){i(e,"animation-name",r.id||null)})}var u})}(t)),S=!0},nt=function(t){if(t=Math.min(Math.max(t,0),.999),H)F.forEach(function(e){e.currentTime=e.effect.getComputedTiming().delay+K()*t,e.pause()});else{var e="-"+((Y()||0)+K()*t)+"ms";N.forEach(function(t){b.length>0&&(i(t,"animation-delay",e),i(t,"animation-play-state","paused"))})}},rt=function(t){void 0===t&&(t=!0),N.forEach(function(e){Object(o.k)(function(){i(e,"animation-name",v||null),i(e,"animation-duration",K()+"ms"),i(e,"animation-timing-function",Q()),i(e,"animation-delay",Y()+"ms"),i(e,"animation-fill-mode",Z()||null),i(e,"animation-direction",J()||null);var n=X()===1/0?"infinite":X().toString();i(e,"animation-iteration-count",n),t&&i(e,"animation-name",v+"-alt"),Object(o.k)(function(){i(e,"animation-name",v||null)})})})},ot=function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!0),t&&$.forEach(function(e){e.update(t)}),H?F.forEach(function(t){t.effect.updateTiming({delay:Y(),duration:K(),easing:Q(),iterations:X(),fill:Z(),direction:J()})}):rt(e),y},it=function(){S&&(H?F.forEach(function(t){t.pause()}):N.forEach(function(t){i(t,"animation-play-state","paused")}))},at=function(){h=void 0,tt()},st=function(){h&&clearTimeout(h)},ut=function(t){return new Promise(function(e){t&&t.sync&&(T=!0,q(function(){return T=!1},{oneTimeCallback:!0})),S||et(),I&&(H?nt(0):rt(),I=!1),R&&(j=$.length+1,R=!1),q(function(){return e()},{oneTimeCallback:!0}),$.forEach(function(t){t.play()}),H?(F.forEach(function(t){t.play()}),0!==b.length&&0!==N.length||tt()):function(){if(st(),N.forEach(function(t){b.length>0&&Object(o.k)(function(){i(t,"animation-play-state","running")})}),0===b.length||0===N.length)tt();else{var t=Y()||0,e=K()||0,n=X()||1;h=setTimeout(at,t+e*n+100),s=function(){st(),Object(o.k)(function(){N.forEach(function(t){a(t,"animation-duration"),a(t,"animation-delay"),a(t,"animation-play-state")}),Object(o.k)(tt)})},c={passive:!0},l=function(){u&&u()},f=function(t){r===t.target&&(l(),s())},(r=N[0])&&(r.addEventListener("webkitAnimationEnd",f,c),r.addEventListener("animationend",f,c),u=function(){r.removeEventListener("webkitAnimationEnd",f,c),r.removeEventListener("animationend",f,c)})}var r,s,u,c,l,f}()})},ct=function(t,e){var n,o=b[0];return void 0!==o&&0===o.offset?o[t]=e:b=Object(r.j)([(n={offset:0},n[t]=e,n)],b),y};return y={parentAnimation:d,elements:N,childAnimations:$,animationFinish:tt,from:ct,to:function(t,e){var n,o=b[b.length-1];return void 0!==o&&1===o.offset?o[t]=e:b=Object(r.j)(b,[(n={offset:1},n[t]=e,n)]),y},fromTo:function(t,e,n){return ct(t,e).to(t,n)},parent:function(t){return d=t,y},play:ut,playAsync:function(){return ut()},playSync:function(){return ut({sync:!0}),y},pause:function(){return $.forEach(function(t){t.pause()}),it(),y},stop:function(){$.forEach(function(t){t.stop()}),S&&(G(),S=!1)},destroy:function(){return $.forEach(function(t){t.destroy()}),G(),W(),N.length=0,$.length=0,b.length=0,A.length=0,L.length=0,S=!1,R=!0,y},keyframes:function(t){return b=t,y},addAnimation:function(t){if(null!=t)if(Array.isArray(t))for(var e=0,n=t;e=0)for(var e=0;e "+t.len)}function u(t){this.buf=t,this.pos=0,this.len=t.length}var c,l="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new u(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new u(t);throw Error("illegal buffer")};function f(){var t=new i(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw s(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw s(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function d(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new i(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}u.create=o.Buffer?function(t){return(u.create=function(t){return o.Buffer.isBuffer(t)?new r(t):l(t)})(t)}:l,u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return d(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|d(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},u.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw s(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,n):e===n?new this.buf.constructor(0):this._slice.call(this.buf,e,n)},u.prototype.string=function(){var t=this.bytes();return a.read(t,0,t.length)},u.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw s(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},u._configure=function(t){r=t;var e=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return f.call(this)[e](!1)},uint64:function(){return f.call(this)[e](!0)},sint64:function(){return f.call(this).zzDecode()[e](!1)},fixed64:function(){return h.call(this)[e](!0)},sfixed64:function(){return h.call(this)[e](!1)}})}},IUTb:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("6blF"),o=n("pugT"),i=n("+tJ4");function a(t,e){return new r.a(e?function(n){var r=new o.a,i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:Object(i.a)(t))}},Ip0R:function(t,e,n){"use strict";n.d(e,"q",function(){return v}),n.d(e,"j",function(){return b}),n.d(e,"k",function(){return y}),n.d(e,"r",function(){return w}),n.d(e,"b",function(){return j}),n.d(e,"h",function(){return S}),n.d(e,"i",function(){return _}),n.d(e,"c",function(){return k}),n.d(e,"p",function(){return T}),n.d(e,"o",function(){return I}),n.d(e,"n",function(){return R}),n.d(e,"m",function(){return i}),n.d(e,"e",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"a",function(){return u}),n.d(e,"d",function(){return f}),n.d(e,"l",function(){return d}),n.d(e,"f",function(){return c});var r=n("CcnG"),o=n("mrSG"),i=function(){return function(){}}(),a=new r.p("Location Initialized"),s=function(){return function(){}}(),u=new r.p("appBaseHref"),c=function(){function t(t){var n=this;this._subject=new r.m,this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(l(o)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,l(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function l(t){return t.replace(/\/index.html$/,"")}var f=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(o.d)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=c.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),d=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(o.d)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return c.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+c.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),h=void 0,p=["en",[["a","p"],["AM","PM"],h],[["AM","PM"],h,h],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],h,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],h,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",h,"{1} 'at' {0}",h],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],m={},g=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),v=new r.p("UseV4Plurals"),y=function(){return function(){}}(),b=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(o.d)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=m[e];if(n)return n;var r=e.split("-")[0];if(n=m[r])return n;if("en"===r)return p;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case g.Zero:return"zero";case g.One:return"one";case g.Two:return"two";case g.Few:return"few";case g.Many:return"many";default:return"other"}},e}(y);function w(t,e){var n,r;e=encodeURIComponent(e);try{for(var i=Object(o.k)(t.split(";")),a=i.next();!a.done;a=i.next()){var s=a.value,u=s.indexOf("="),c=Object(o.h)(-1==u?[s,""]:[s.slice(0,u),s.slice(u+1)],2),l=c[1];if(c[0].trim()===e)return decodeURIComponent(l)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}var x=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),S=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(r.W)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new x(null,e._ngForOf,-1,-1),o),a=new O(t,i);n.push(a)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),a=new O(t,i),n.push(a))});for(var r=0;rt.length?t[e.successIndex]=n:t.splice(e.successIndex,0,n)},a=function(){e.errorIndex>t.length?t[e.errorIndex]=r:t.splice(e.errorIndex,0,r)};e.successIndex>e.errorIndex?(a(),i()):(i(),a())}else t.push(n),t.push(r);return t}function l(t,e,n,r,o,i){void 0===r&&(r={}),n=c(n,r,o,i);var a=u(t,e);if(!0===a){var s=d(t.constructor.getPluginRef());return s[e].apply(s,n)}return a}function f(t,e,n,r,o,i){if(void 0===r&&(r={}),n=c(n,r,o,i),function(t,e){return t._objectInstance&&(!e||void 0!==t._objectInstance[e])}(t,e))return t._objectInstance[e].apply(t._objectInstance,n)}function d(t){return"undefined"!=typeof window?h(window,t):null}function h(t,e){for(var n=e.split("."),r=t,o=0;o0?0:2147483648,n,r);else if(isNaN(e))t(2143289344,n,r);else if(e>3.4028234663852886e38)t((o<<31|2139095040)>>>0,n,r);else if(e<1.1754943508222875e-38)t((o<<31|Math.round(e/1.401298464324817e-45))>>>0,n,r);else{var i=Math.floor(Math.log(e)/Math.LN2);t((o<<31|i+127<<23|8388607&Math.round(e*Math.pow(2,-i)*8388608))>>>0,n,r)}}function n(t,e,n){var r=t(e,n),o=2*(r>>31)+1,i=r>>>23&255,a=8388607&r;return 255===i?a?NaN:o*(1/0):0===i?1.401298464324817e-45*o*a:o*Math.pow(2,i-150)*(a+8388608)}t.writeFloatLE=e.bind(null,o),t.writeFloatBE=e.bind(null,i),t.readFloatLE=n.bind(null,a),t.readFloatBE=n.bind(null,s)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),r=128===n[7];function o(t,r,o){e[0]=t,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r[o+4]=n[4],r[o+5]=n[5],r[o+6]=n[6],r[o+7]=n[7]}function i(t,r,o){e[0]=t,r[o]=n[7],r[o+1]=n[6],r[o+2]=n[5],r[o+3]=n[4],r[o+4]=n[3],r[o+5]=n[2],r[o+6]=n[1],r[o+7]=n[0]}function a(t,r){return n[0]=t[r],n[1]=t[r+1],n[2]=t[r+2],n[3]=t[r+3],n[4]=t[r+4],n[5]=t[r+5],n[6]=t[r+6],n[7]=t[r+7],e[0]}function s(t,r){return n[7]=t[r],n[6]=t[r+1],n[5]=t[r+2],n[4]=t[r+3],n[3]=t[r+4],n[2]=t[r+5],n[1]=t[r+6],n[0]=t[r+7],e[0]}t.writeDoubleLE=r?o:i,t.writeDoubleBE=r?i:o,t.readDoubleLE=r?a:s,t.readDoubleBE=r?s:a}():function(){function e(t,e,n,r,o,i){var a=r<0?1:0;if(a&&(r=-r),0===r)t(0,o,i+e),t(1/r>0?0:2147483648,o,i+n);else if(isNaN(r))t(0,o,i+e),t(2146959360,o,i+n);else if(r>1.7976931348623157e308)t(0,o,i+e),t((a<<31|2146435072)>>>0,o,i+n);else{var s;if(r<2.2250738585072014e-308)t((s=r/5e-324)>>>0,o,i+e),t((a<<31|s/4294967296)>>>0,o,i+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),t(4503599627370496*(s=r*Math.pow(2,-u))>>>0,o,i+e),t((a<<31|u+1023<<20|1048576*s&1048575)>>>0,o,i+n)}}}function n(t,e,n,r,o){var i=t(r,o+e),a=t(r,o+n),s=2*(a>>31)+1,u=a>>>20&2047,c=4294967296*(1048575&a)+i;return 2047===u?c?NaN:s*(1/0):0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+4503599627370496)}t.writeDoubleLE=e.bind(null,o,0,4),t.writeDoubleBE=e.bind(null,i,4,0),t.readDoubleLE=n.bind(null,a,0,4),t.readDoubleBE=n.bind(null,s,4,0)}(),t}function o(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function i(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function a(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function s(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=r(r)},"L/V9":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},Lq6m:function(t,e,n){"use strict";var r=n("KOl+");n.d(e,"a",function(){return o});var o=function(){function t(){}return t.installed=function(){return!0===Object(r.a)(this.pluginRef)},t.getPlugin=function(){return"undefined"!=typeof window?function(t,e){for(var n=e.split("."),r=t,o=0;o=2?function(n){return Object(a.a)(Object(r.a)(t,e),Object(o.a)(1),Object(i.a)(e))(n)}:function(e){return Object(a.a)(Object(r.a)(function(e,n,r){return t(e,n,r+1)}),Object(o.a)(1))(e)}}},"Rt+L":function(t,e,n){"use strict";n("KOl+")},S1nX:function(t,e,n){"use strict";var r=n("mrSG"),o=n("K9Ia"),i=n("6blF"),a=n("FFOo"),s=n("pugT");function u(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new l(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.d(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),f=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.d(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new h(this.getSubject(),this))),t.closed?(this._connection=null,t=s.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return u()(this)},e}(i.a).prototype,d={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}},h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.d(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b);function p(){return new o.a}function m(){return function(t){return u()((e=p,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,d);return r.source=t,r.subjectFactory=n,r})(t));var e}}n.d(e,"a",function(){return m})},S5XQ:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("DKTb"),o=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.a),e}}},Twl7:function(t,e,n){"use strict";n.d(e,"a",function(){return Z}),n.d(e,"b",function(){return V}),n.d(e,"c",function(){return Tt}),n.d(e,"d",function(){return Pt}),n.d(e,"e",function(){return At}),n.d(e,"f",function(){return Rt}),n.d(e,"g",function(){return $}),n.d(e,"h",function(){return Lt}),n.d(e,"i",function(){return G}),n.d(e,"j",function(){return It}),n.d(e,"k",function(){return Ct}),n.d(e,"l",function(){return O}),n.d(e,"m",function(){return D});var r,o,i,a,s=n("mrSG"),u=n("ttJE"),c=0,l=!1,f=!1,d=!1,h=!1,p=!1,m=window,g=document,v={$flags$:0,$resourcesUrl$:"",jmp:function(t){return t()},raf:function(t){return requestAnimationFrame(t)},ael:function(t,e,n,r){return t.addEventListener(e,n,r)},rel:function(t,e,n,r){return t.removeEventListener(e,n,r)}},y=function(){return!!g.documentElement.attachShadow}(),b=function(){var t=!1;try{g.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(e){}return t}(),w=function(){try{return new CSSStyleSheet,!0}catch(t){}return!1}(),x=new WeakMap,S=function(t){return x.get(t)},O=function(t,e){return x.set(e.$lazyInstance$=t,e)},_=function(t){var e={$flags$:0,$hostElement$:t,$instanceValues$:new Map};return e.$onInstancePromise$=new Promise(function(t){return e.$onInstanceResolve$=t}),e.$onReadyPromise$=new Promise(function(t){return e.$onReadyResolve$=t}),t["s-p"]=[],t["s-rc"]=[],x.set(t,e)},E=function(t,e){return e in t},C=function(t){return console.error(t)},j=new Map,k=new Map,T=[],P=[],I=[],R=function(t,e){return function(n){t.push(n),l||(l=!0,e&&4&v.$flags$?N(L):v.raf(L))}},A=function(t,e){for(var n=0,r=0;n0&&(I.push.apply(I,P),P.length=0),(l=T.length+P.length+I.length>0)?v.raf(L):c=0},N=function(t){return Promise.resolve().then(t)},$=R(T,!1),D=R(P,!0),M={},U=function(t){return"object"==(t=typeof t)||"function"===t},V=function(){return m.CSS&&m.CSS.supports&&m.CSS.supports("color","var(--c)")?Promise.resolve():n.e(18).then(n.t.bind(null,"GhCX",7)).then(function(){if(v.$cssShim$=m.__stencil_cssshim,v.$cssShim$)return v.$cssShim$.initShim()})},B="http://www.w3.org/1999/xlink",F=new WeakMap,z=function(t,e,n){var r=k.get(t);w&&n?(r=r||new CSSStyleSheet).replace(e):r=e,k.set(t,r)},H=function(t,e,n,r){var o=q(e.$tagName$,n),i=k.get(o);if(t=11===t.nodeType?t:g,i||(o=q(e.$tagName$),i=k.get(o)),i)if("string"==typeof i){var a=F.get(t=t.head||t),u=void 0;if(a||F.set(t,a=new Set),!a.has(o)){if(t.host&&(u=t.firstElementChild)&&"STYLE"===u.tagName)u.innerHTML=i;else{if(v.$cssShim$){var c=(u=v.$cssShim$.createHostStyle(r,o,i,!!(10&e.$flags$)))["s-sc"];c&&(o=c,a=null)}else(u=g.createElement("style")).setAttribute("data-styles",""),u.innerHTML=i;t.insertBefore(u,t.querySelector("link"))}a&&a.add(o)}}else t.adoptedStyleSheets.includes(i)||(t.adoptedStyleSheets=Object(s.j)(t.adoptedStyleSheets,[i]));return o},q=function(t,e){return"sc-"+(e?t+"-"+e:t)},G=function(t,e){for(var n=[],r=2;r0&&(d.$children$=c),d.$key$=i,d.$name$=a,d},W=function(t,e){return{$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}},Z={},J={forEach:function(t,e){return t.map(Q).forEach(e)},map:function(t,e){return t.map(Q).map(e).map(K)}},Q=function(t){return{vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}},K=function(t){var e=W(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},X=function(t,e,n,r,o,i){if(n!==r){var a=E(t,e),s=e.toLowerCase();if("class"===e){var u=t.classList,c=tt(n),l=tt(r);u.remove.apply(u,c.filter(function(t){return t&&!l.includes(t)})),u.add.apply(u,l.filter(function(t){return t&&!c.includes(t)}))}else if("style"===e){for(var f in n)r&&null!=r[f]||(f.includes("-")?t.style.removeProperty(f):t.style[f]="");for(var f in r)n&&r[f]===n[f]||(f.includes("-")?t.style.setProperty(f,r[f]):t.style[f]=r[f])}else if("key"===e);else if("ref"===e)r&&r(t);else if(a||"o"!==e[0]||"n"!==e[1]){var d=U(r);if((a||d&&null!==r)&&!o)try{if(t.tagName.includes("-"))t[e]=r;else{var h=null==r?"":r;null!=n&&t[e]==h||(t[e]=h)}}catch(g){}var p=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(e=s,p=!0),null==r||!1===r?p?t.removeAttributeNS(B,e):t.removeAttribute(e):(!a||4&i||o)&&!d&&(r=!0===r?"":r,p?t.setAttributeNS(B,e,r):t.setAttribute(e,r))}else e="-"===e[2]?e.slice(3):E(m,s)?s.slice(2):s[2]+e.slice(3),n&&v.rel(t,e,n,!1),r&&v.ael(t,e,r,!1)}},Y=/\s/,tt=function(t){return t?t.split(Y):[]},et=function(t,e,n,r){var o=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,i=t&&t.$attrs$||M,a=e.$attrs$||M;for(r in i)r in a||X(o,r,i[r],void 0,n,e.$flags$);for(r in a)X(o,r,i[r],a[r],n,e.$flags$)},nt=function(t,e,n,a){var s,u,c,l=e.$children$[n],d=0;if(f||(h=!0,"slot"===l.$tag$&&(r&&a.classList.add(r+"-s"),l.$flags$|=l.$children$?2:1)),null!==l.$text$)s=l.$elm$=g.createTextNode(l.$text$);else if(1&l.$flags$)s=l.$elm$=g.createTextNode("");else{if(p||(p="svg"===l.$tag$),s=l.$elm$=g.createElementNS(p?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&l.$flags$?"slot-fb":l.$tag$),p&&"foreignObject"===l.$tag$&&(p=!1),et(null,l,p),null!=r&&s["s-si"]!==r&&s.classList.add(s["s-si"]=r),l.$children$)for(d=0;d=0;r--){var o=n[r];o["s-hn"]!==i&&o["s-ol"]&&(ut(o).insertBefore(o,st(o)),o["s-ol"].remove(),o["s-ol"]=void 0,h=!0),e&&rt(o,e)}v.$flags$&=-2},ot=function(t,e,n,r,o,a){var s,u=t["s-cr"]&&t["s-cr"].parentNode||t;for(u.shadowRoot&&u.tagName===i&&(u=u.shadowRoot);o<=a;++o)r[o]&&(s=nt(null,n,o,t))&&(r[o].$elm$=s,u.insertBefore(s,st(e)))},it=function(t,e,n,r,o){for(;e<=n;++e)(r=t[e])&&(o=r.$elm$,ht(r),d=!0,o["s-ol"]?o["s-ol"].remove():rt(o,!0),o.remove())},at=function(t,e){return t.$tag$===e.$tag$&&("slot"===t.$tag$?t.$name$===e.$name$:t.$key$===e.$key$)},st=function(t){return t&&t["s-ol"]||t},ut=function(t){return(t["s-ol"]?t["s-ol"]:t).parentNode},ct=function(t,e){var n,r=e.$elm$=t.$elm$,o=t.$children$,i=e.$children$;p=r&&r.parentNode&&void 0!==r.ownerSVGElement,p="svg"===e.$tag$||"foreignObject"!==e.$tag$&&p,null===e.$text$?("slot"===e.$tag$||et(t,e,p),null!==o&&null!==i?function(t,e,n,r){for(var o,i,a=0,s=0,u=0,c=0,l=e.length-1,f=e[0],d=e[l],h=r.length-1,p=r[0],m=r[h];a<=l&&s<=h;)if(null==f)f=e[++a];else if(null==d)d=e[--l];else if(null==p)p=r[++s];else if(null==m)m=r[--h];else if(at(f,p))ct(f,p),f=e[++a],p=r[++s];else if(at(d,m))ct(d,m),d=e[--l],m=r[--h];else if(at(f,m))"slot"!==f.$tag$&&"slot"!==m.$tag$||rt(f.$elm$.parentNode,!1),ct(f,m),t.insertBefore(f.$elm$,d.$elm$.nextSibling),f=e[++a],m=r[--h];else if(at(d,p))"slot"!==f.$tag$&&"slot"!==m.$tag$||rt(d.$elm$.parentNode,!1),ct(d,p),t.insertBefore(d.$elm$,f.$elm$),d=e[--l],p=r[++s];else{for(u=-1,c=a;c<=l;++c)if(e[c]&&null!==e[c].$key$&&e[c].$key$===p.$key$){u=c;break}u>=0?((i=e[u]).$tag$!==p.$tag$?o=nt(e&&e[s],n,u,t):(ct(i,p),e[u]=void 0,o=i.$elm$),p=r[++s]):(o=nt(e&&e[s],n,s,t),p=r[++s]),o&&ut(f.$elm$).insertBefore(o,st(f.$elm$))}a>l?ot(t,null==r[h+1]?null:r[h+1].$elm$,n,r,s,h):s>h&&it(e,a,l)}(r,o,e,i):null!==i?(null!==t.$text$&&(r.textContent=""),ot(r,null,e,i,0,i.length-1)):null!==o&&it(o,0,o.length-1)):(n=r["s-cr"])?n.parentNode.textContent=e.$text$:t.$text$!==e.$text$&&(r.data=e.$text$),p&&"svg"===e.$tag$&&(p=!1)},lt=function(t){var e,n,r,o,i,a,s=t.childNodes;for(n=0,r=s.length;n=0;u--)(r=o[u])["s-cn"]||r["s-nr"]||r["s-hn"]===n["s-hn"]||((3===(c=r.nodeType)||8===c)&&""===i||1===c&&null===r.getAttribute("slot")&&""===i||1===c&&r.getAttribute("slot")===i)&&(ft.some(function(t){return t.$nodeToRelocate$===r})||(d=!0,r["s-sn"]=i,ft.push({$slotRefNode$:n,$nodeToRelocate$:r})));1===n.nodeType&&dt(n)}},ht=function(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.forEach(ht)},pt=function(t,e){e&&!t.$onRenderResolve$&&e["s-p"].push(new Promise(function(e){return t.$onRenderResolve$=e}))},mt=function(t,e,n,r){if(e.$flags$|=16,!(4&e.$flags$)){var o,i=e.$lazyInstance$,a=function(){return gt(t,e,n,i,r)},s=t["s-rc"];return pt(e,e.$ancestorComponent$),r&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.forEach(function(t){return bt(i,t[0],t[1])}),e.$queuedListeners$=null),o=bt(i,"componentWillLoad")),o=wt(o,function(){return bt(i,"componentWillRender")}),s&&(s.forEach(function(t){return t()}),t["s-rc"]=void 0),wt(o,function(){return D(a)})}e.$flags$|=512},gt=function(t,e,n,a,s){s&&function(t,e,n){var r=H(y&&t.shadowRoot?t.shadowRoot:t.getRootNode(),e,n,t);10&e.$flags$&&(t["s-sc"]=r,t.classList.add(r+"-h"),2&e.$flags$&&t.classList.add(r+"-s"))}(t,n,e.$modeName$);try{!function(t,e,n,a){i=t.tagName;var s,u=e.$vnode$||W(null,null),c=(s=a)&&s.$tag$===Z?a:G(null,null,a);if(n.$attrsToReflect$&&(c.$attrs$=c.$attrs$||{},n.$attrsToReflect$.forEach(function(e){return c.$attrs$[e[1]]=t[e[0]]})),c.$tag$=null,c.$flags$|=4,e.$vnode$=c,c.$elm$=u.$elm$=t.shadowRoot||t,r=t["s-sc"],o=t["s-cr"],f=y&&0!=(1&n.$flags$),h=d=!1,ct(u,c),h){dt(c.$elm$);for(var l=0;l=0;l--)St(t,e,n,r,o,i.childNodes[l],a);if(i.shadowRoot)for(l=i.shadowRoot.childNodes.length-1;l>=0;l--)St(t,e,n,r,o,i.shadowRoot.childNodes[l],a)}else if(8===i.nodeType)(u=i.nodeValue.split("."))[1]!==a&&"0"!==u[1]||(c={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===(s=u[0])?(c.$elm$=i.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,e.push(c),i.remove(),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===a&&("s"===s?(c.$tag$="slot",i["s-sn"]=u[5]?c.$name$=u[5]:"",i["s-sr"]=!0,r&&(c.$elm$=g.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),i.parentNode.insertBefore(c.$elm$,i),i.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),n.push(c),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c):"r"===s&&(r?i.remove():(o["s-cr"]=i,i["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var f=W(null,i.textContent);f.$elm$=i,f.$index$="0",t.$children$=[f]}},Ot=function(t,e){if(1===t.nodeType){for(var n=0;n=2;return function(r){return r.pipe(t?Object(E.a)(function(e,n){return t(e,n,r)}):$.a,Object(C.a)(1),n?Object(N.a)(e):A(function(){return new f}))}}var M=n("9Z1F"),U=n("t9fZ");function V(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(E.a)(function(e,n){return t(e,n,r)}):$.a,Object(U.a)(1),n?Object(N.a)(e):A(function(){return new f}))}}var B=n("psW0"),F=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new z(t,this.predicate,this.thisArg,this.source))},t}(),z=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return r.d(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(j.a),H=n("15JJ"),q=n("PU8L"),G=n("dEwP"),W=n("dC0D"),Z=n("Phjn"),J=n("Qgas"),Q=n("pugT"),K=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new X(t,this.callback))},t}(),X=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new Q.a(n)),r}return r.d(e,t),e}(j.a),Y=n("Zn8D"),tt=n("ZYjt");n.d(e,"t",function(){return In}),n.d(e,"A",function(){return Bn}),n.d(e,"v",function(){return Nn}),n.d(e,"B",function(){return Fn}),n.d(e,"C",function(){return zn}),n.d(e,"x",function(){return Dn}),n.d(e,"w",function(){return $n}),n.d(e,"z",function(){return Vn}),n.d(e,"u",function(){return An}),n.d(e,"y",function(){return Un}),n.d(e,"D",function(){return Tn}),n.d(e,"o",function(){return On}),n.d(e,"d",function(){return nt}),n.d(e,"l",function(){return fn}),n.d(e,"m",function(){return wn}),n.d(e,"k",function(){return hn}),n.d(e,"i",function(){return Pn}),n.d(e,"j",function(){return Hn}),n.d(e,"n",function(){return Ln}),n.d(e,"b",function(){return Sn}),n.d(e,"e",function(){return jn}),n.d(e,"g",function(){return Cn}),n.d(e,"h",function(){return En}),n.d(e,"p",function(){return kn}),n.d(e,"a",function(){return ce}),n.d(e,"f",function(){return bt}),n.d(e,"q",function(){return mn}),n.d(e,"c",function(){return Ft}),n.d(e,"r",function(){return Bt}),n.d(e,"s",function(){return yt});var et=function(){return function(t,e){this.id=t,this.url=e}}(),nt=function(t){function e(e,n,r,o){void 0===r&&(r="imperative"),void 0===o&&(o=null);var i=t.call(this,e,n)||this;return i.navigationTrigger=r,i.restoredState=o,i}return Object(r.d)(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(et),rt=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o}return Object(r.d)(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(et),ot=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.reason=r,o}return Object(r.d)(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(et),it=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.error=r,o}return Object(r.d)(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(et),at=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.d)(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(et),st=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.d)(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(et),ut=function(t){function e(e,n,r,o,i){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=o,a.shouldActivate=i,a}return Object(r.d)(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(et),ct=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.d)(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(et),lt=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return Object(r.d)(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(et),ft=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),dt=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),ht=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),pt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),mt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),gt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),vt=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),yt=function(){return function(){}}(),bt="primary",wt=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function xt(t){return new wt(t)}var St="ngNavigationCancelingError";function Ot(t){var e=Error("NavigationCancelingError: "+t);return e[St]=!0,e}function _t(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function At(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Lt(t){return Object(i.sb)(t)?t:Object(i.tb)(t)?Object(s.a)(Promise.resolve(t)):Object(a.a)(t)}function Nt(t,e,n){return n?function(t,e){return Pt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Ut(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Ut(a=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Ut(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var a=o.slice(0,n.segments.length),s=o.slice(n.segments.length);return!!Ut(n.segments,a)&&!!n.children[bt]&&e(n.children[bt],r,s)}(e,n,n.segments)}(t.root,e.root)}var $t=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=xt(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return zt.serialize(this)},t}(),Dt=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,At(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ht(this)},t}(),Mt=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=xt(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Qt(this)},t}();function Ut(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Vt(t,e){var n=[];return At(t.children,function(t,r){r===bt&&(n=n.concat(e(t,r)))}),At(t.children,function(t,r){r!==bt&&(n=n.concat(e(t,r)))}),n}var Bt=function(){return function(){}}(),Ft=function(){function t(){}return t.prototype.parse=function(t){var e=new ee(t);return new $t(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Ht(e);if(n){var r=e.children[bt]?t(e.children[bt],!1):"",o=[];return At(e.children,function(e,n){n!==bt&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Vt(e,function(n,r){return r===bt?[t(e.children[bt],!1)]:[r+":"+t(n,!1)]});return Ht(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Gt(t)+"="+Gt(e)}).join("&"):Gt(t)+"="+Gt(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),zt=new Ft;function Ht(t){return t.segments.map(function(t){return Qt(t)}).join("/")}function qt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gt(t){return qt(t).replace(/%3B/gi,";")}function Wt(t){return qt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zt(t){return decodeURIComponent(t)}function Jt(t){return Zt(t.replace(/\+/g,"%20"))}function Qt(t){return""+Wt(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Wt(t)+"="+Wt(e[t])}).join(""));var e}var Kt=/^[^\/()?;=#]+/;function Xt(t){var e=t.match(Kt);return e?e[0]:""}var Yt=/^[^=?&#]+/,te=/^[^?&#]+/,ee=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dt([],{}):new Dt([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[bt]=new Dt(t,e)),n},t.prototype.parseSegment=function(){var t=Xt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Mt(Zt(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Xt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Xt(this.remaining);r&&this.capture(n=r)}t[Zt(e)]=Zt(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Yt))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(te);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Jt(n),a=Jt(r);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(t[i]=s=[s]),s.push(a)}else t[i]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Xt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=bt);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[bt]:new Dt([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),ne=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=re(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=re(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=oe(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return oe(t,this._root).map(function(t){return t.value})},t}();function re(t,e){var n,o;if(t===e.value)return e;try{for(var i=Object(r.k)(e.children),a=i.next();!a.done;a=i.next()){var s=re(t,a.value);if(s)return s}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return null}function oe(t,e){var n,o;if(t===e.value)return[e];try{for(var i=Object(r.k)(e.children),a=i.next();!a.done;a=i.next()){var s=oe(t,a.value);if(s.length)return s.unshift(e),s}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return[]}var ie=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function ae(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var se=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,he(r,e),r}return Object(r.d)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(ne);function ue(t,e){var n=function(t,e){var n=new fe([],{},{},"",{},bt,e,null,t.root,-1,{});return new de("",new ie(n,[]))}(t,e),r=new u.a([new Mt("",{})]),o=new u.a({}),i=new u.a({}),a=new u.a({}),s=new u.a(""),c=new ce(r,o,a,s,i,bt,e,n.root);return c.snapshot=n.root,new se(new ie(c,[]),n)}var ce=function(){function t(t,e,n,r,o,i,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(O.a)(function(t){return xt(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(O.a)(function(t){return xt(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function le(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,o=0;if("always"!==e)for(o=n.length-1;o>=1;){var i=n[o],a=n[o-1];if(i.routeConfig&&""===i.routeConfig.path)o--;else{if(a.component)break;o--}}return function(t){return t.reduce(function(t,e){return{params:Object(r.a)({},t.params,e.params),data:Object(r.a)({},t.data,e.data),resolve:Object(r.a)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(o))}var fe=function(){function t(t,e,n,r,o,i,a,s,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=xt(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=xt(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),de=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,he(r,n),r}return Object(r.d)(e,t),e.prototype.toString=function(){return pe(this._root)},e}(ne);function he(t,e){e.value._routerState=t,e.children.forEach(function(e){return he(t,e)})}function pe(t){var e=t.children.length>0?" { "+t.children.map(pe).join(", ")+" } ":"";return""+t.value+e}function me(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Pt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Pt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&ve(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Rt(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),we=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function xe(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[bt]:""+t}function Se(t,e,n){if(t||(t=new Dt([],{})),0===t.segments.length&&t.hasChildren())return Oe(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var a=t.segments[o],s=xe(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!je(s,u,a))return i;r+=2}else{if(!je(s,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Dt([],((r={})[bt]=t,r)):t;return new $t(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(O.a)(function(t){return new Dt([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Object(a.a)({});var i=[],s=[],u={};return At(n,function(n,o){var a,c,l=(a=o,c=n,r.expandSegmentGroup(t,e,c,a)).pipe(Object(O.a)(function(t){return u[o]=t}));o===bt?i.push(l):s.push(l)}),a.a.apply(null,i.concat(s)).pipe(Object(_.a)(),D(),Object(O.a)(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,o,i,s){var u=this;return a.a.apply(void 0,Object(r.i)(n)).pipe(Object(O.a)(function(r){return u.expandSegmentAgainstRoute(t,e,n,r,o,i,s).pipe(Object(M.a)(function(t){if(t instanceof Re)return Object(a.a)(null);throw t}))}),Object(_.a)(),V(function(t){return!!t}),Object(M.a)(function(t,n){if(t instanceof f||"EmptyError"===t.name){if(u.noLeftoversInUrl(e,o,i))return Object(a.a)(new Dt([],{}));throw new Re(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,a){return Be(r)!==i?Le(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Le(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ne(i):this.lineralizeSegments(n,i).pipe(Object(B.a)(function(n){var i=new Dt(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var a=this,s=Me(e,r,o),u=s.consumedSegments,c=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return Le(e);var f=this.applyRedirectCommands(u,r.redirectTo,l);return r.redirectTo.startsWith("/")?Ne(f):this.lineralizeSegments(r,f).pipe(Object(B.a)(function(r){return a.expandSegment(t,e,n,r.concat(o.slice(c)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,o){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(O.a)(function(t){return n._loadedConfig=t,new Dt(o,{})})):Object(a.a)(new Dt(o,{}));var s=Me(e,n,o),u=s.consumedSegments,c=s.lastChild;if(!s.matched)return Le(e);var l=o.slice(c);return this.getChildConfig(t,n,o).pipe(Object(B.a)(function(t){var n=t.module,o=t.routes,s=function(t,e,n,o){return n.length>0&&function(t,e,n){return o.some(function(n){return Ve(t,e,n)&&Be(n)!==bt})}(t,n)?{segmentGroup:Ue(new Dt(e,function(t,e){var n,o,i={};i[bt]=e;try{for(var a=Object(r.k)(t),s=a.next();!s.done;s=a.next()){var u=s.value;""===u.path&&Be(u)!==bt&&(i[Be(u)]=new Dt([],{}))}}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}(o,new Dt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return o.some(function(n){return Ve(t,e,n)})}(t,n)?{segmentGroup:Ue(new Dt(t.segments,function(t,e,n,o){var i,a,s={};try{for(var u=Object(r.k)(n),c=u.next();!c.done;c=u.next()){var l=c.value;Ve(t,e,l)&&!o[Be(l)]&&(s[Be(l)]=new Dt([],{}))}}catch(f){i={error:f}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return Object(r.a)({},o,s)}(t,n,o,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,l,o),c=s.segmentGroup,f=s.slicedSegments;return 0===f.length&&c.hasChildren()?i.expandChildren(n,o,c).pipe(Object(O.a)(function(t){return new Dt(u,t)})):0===o.length&&0===f.length?Object(a.a)(new Dt(u,{})):i.expandSegment(n,c,o,f,bt,!0).pipe(Object(O.a)(function(t){return new Dt(u.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Object(a.a)(new Et(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(a.a)(e._loadedConfig):function(t,e,n){var r,o=e.canLoad;return o&&0!==o.length?Object(s.a)(o).pipe(Object(O.a)(function(r){var o,i=t.get(r);if(function(t){return t&&Pe(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!Pe(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return Lt(o)})).pipe(Object(_.a)(),(r=function(t){return!0===t},function(t){return t.lift(new F(r,void 0,t))})):Object(a.a)(!0)}(t.injector,e,n).pipe(Object(B.a)(function(n){return n?r.configLoader.load(t.injector,e).pipe(Object(O.a)(function(t){return e._loadedConfig=t,t})):function(t){return new c.a(function(e){return e.error(Ot("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):Object(a.a)(new Et([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(a.a)(n);if(r.numberOfChildren>1||!r.children[bt])return $e(t.redirectTo);r=r.children[bt]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new $t(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return At(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),a={};return At(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,n,r)}),new Dt(i,a)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,o,i=0;try{for(var a=Object(r.k)(e),s=a.next();!s.done;s=a.next()){var u=s.value;if(u.path===t.path)return e.splice(i),u;i++}}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return t},t}();function Me(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||_t)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ue(t){if(1===t.numberOfChildren&&t.children[bt]){var e=t.children[bt];return new Dt(t.segments.concat(e.segments),e.children)}return t}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Be(t){return t.outlet||bt}var Fe=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),ze=function(){return function(t,e){this.component=t,this.route=e}}();function He(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function qe(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=ae(e);return t.children.forEach(function(t){!function(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){var u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ut(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ut(t.url,e.url)||!Pt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ge(t,e)||!Pt(t.queryParams,e.queryParams);case"paramsChange":default:return!ge(t,e)}}(a,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Fe(r)):(i.data=a.data,i._resolvedData=a._resolvedData),qe(t,e,i.component?s?s.children:null:n,r,o),u&&o.canDeactivateChecks.push(new ze(s&&s.outlet&&s.outlet.component||null,a))}else a&&Ge(e,s,o),o.canActivateChecks.push(new Fe(r)),qe(t,null,i.component?s?s.children:null:n,r,o)}(t,i[t.value.outlet],n,r.concat([t.value]),o),delete i[t.value.outlet]}),At(i,function(t,e){return Ge(t,n.getContext(e),o)}),o}function Ge(t,e,n){var r=ae(t),o=t.value;At(r,function(t,r){Ge(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new ze(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}var We=Symbol("INITIAL_VALUE");function Ze(){return Object(H.a)(function(t){return(function(){for(var t=[],e=0;e0?Object(G.a)(Object(g.a)(t,n),e):Object(G.a)(Object(w.b)(n),e):Object(G.a)(Object(q.a)(t[0]),e)}}(We))}))).pipe(Object(W.a)(function(t,e){var n=!1;return e.reduce(function(t,r,o){if(t!==We)return t;if(r===We&&(n=!0),!n){if(!1===r)return r;if(o===e.length-1||Ie(r))return r}return t},t)},We),Object(E.a)(function(t){return t!==We}),Object(O.a)(function(t){return Ie(t)?t:!0===t}),Object(U.a)(1))})}function Je(t,e){return null!==t&&e&&e(new mt(t)),Object(a.a)(!0)}function Qe(t,e){return null!==t&&e&&e(new ht(t)),Object(a.a)(!0)}function Ke(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(a.a)(!0);var o=r.map(function(r){return x(function(){var o,i=He(r,e,n);if(function(t){return t&&Pe(t.canActivate)}(i))o=Lt(i.canActivate(e,t));else{if(!Pe(i))throw new Error("Invalid CanActivate guard");o=Lt(i(e,t))}return o.pipe(V())})});return Object(a.a)(o).pipe(Ze())}function Xe(t,e,n){var r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return x(function(){var o=e.guards.map(function(o){var i,a=He(o,e.node,n);if(function(t){return t&&Pe(t.canActivateChild)}(a))i=Lt(a.canActivateChild(r,t));else{if(!Pe(a))throw new Error("Invalid CanActivateChild guard");i=Lt(a(r,t))}return i.pipe(V())});return Object(a.a)(o).pipe(Ze())})});return Object(a.a)(o).pipe(Ze())}var Ye=function(){return function(){}}(),tn=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=rn(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,bt),n=new fe([],Object.freeze({}),Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},bt,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new ie(n,e),i=new de(this.url,o);return this.inheritParamsAndData(i._root),Object(a.a)(i)}catch(s){return new c.a(function(t){return t.error(s)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=le(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=Vt(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===bt?-1:e.value.outlet===bt?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,o){var i,a;try{for(var s=Object(r.k)(t),u=s.next();!u.done;u=s.next()){var c=u.value;try{return this.processSegmentAgainstRoute(c,e,n,o)}catch(l){if(!(l instanceof Ye))throw l}}}catch(f){i={error:f}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(e,n,o))return[];throw new Ye},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,o){if(t.redirectTo)throw new Ye;if((t.outlet||bt)!==o)throw new Ye;var i,a=[],s=[];if("**"===t.path){var u=n.length>0?Rt(n).parameters:{};i=new fe(n,u,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,sn(t),o,t.component,t,en(e),nn(e)+n.length,un(t))}else{var c=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ye;return{consumedSegments:[],lastChild:0,parameters:{}}}var o=(e.matcher||_t)(n,t,e);if(!o)throw new Ye;var i={};At(o.posParams,function(t,e){i[e]=t.path});var a=o.consumed.length>0?Object(r.a)({},i,o.consumed[o.consumed.length-1].parameters):i;return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a}}(e,t,n);a=c.consumedSegments,s=n.slice(c.lastChild),i=new fe(a,c.parameters,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,sn(t),o,t.component,t,en(e),nn(e)+a.length,un(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=rn(e,a,s,l,this.relativeLinkResolution),d=f.segmentGroup,h=f.slicedSegments;if(0===h.length&&d.hasChildren()){var p=this.processChildren(l,d);return[new ie(i,p)]}if(0===l.length&&0===h.length)return[new ie(i,[])];var m=this.processSegment(l,d,h,bt);return[new ie(i,m)]},t}();function en(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function nn(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function rn(t,e,n,o,i){if(n.length>0&&function(t,e,n){return o.some(function(n){return on(t,e,n)&&an(n)!==bt})}(t,n)){var a=new Dt(e,function(t,e,n,o){var i,a,s={};s[bt]=o,o._sourceSegment=t,o._segmentIndexShift=e.length;try{for(var u=Object(r.k)(n),c=u.next();!c.done;c=u.next()){var l=c.value;if(""===l.path&&an(l)!==bt){var f=new Dt([],{});f._sourceSegment=t,f._segmentIndexShift=e.length,s[an(l)]=f}}}catch(d){i={error:d}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return s}(t,e,o,new Dt(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return o.some(function(n){return on(t,e,n)})}(t,n)){var s=new Dt(t.segments,function(t,e,n,o,i,a){var s,u,c={};try{for(var l=Object(r.k)(o),f=l.next();!f.done;f=l.next()){var d=f.value;if(on(t,n,d)&&!i[an(d)]){var h=new Dt([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:e.length,c[an(d)]=h}}}catch(p){s={error:p}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(s)throw s.error}}return Object(r.a)({},i,c)}(t,e,n,o,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var u=new Dt(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function on(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function an(t){return t.outlet||bt}function sn(t){return t.data||{}}function un(t){return t.resolve||{}}function cn(t,e,n,r){var o=He(t,e,r);return Lt(o.resolve?o.resolve(e,n):o(e,n))}function ln(t){return function(e){return e.pipe(Object(H.a)(function(e){var n=t(e);return n?Object(s.a)(n).pipe(Object(O.a)(function(){return e})):Object(s.a)([e])}))}}var fn=function(){return function(){}}(),dn=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),hn=new i.p("ROUTES"),pn=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(O.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Et(It(o.injector.get(hn)).map(Tt),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(s.a)(this.loader.load(t)):Lt(t()).pipe(Object(B.a)(function(t){return t instanceof i.v?Object(a.a)(t):Object(s.a)(e.compiler.compileModuleAsync(t))}))},t}(),mn=function(){return function(){}}(),gn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function vn(t){throw t}function yn(t,e,n){return e.parse("/")}function bn(t,e){return Object(a.a)(null)}var wn=function(){function t(t,e,n,r,o,a,s,c){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S.a,this.errorHandler=vn,this.malformedUriErrorHandler=yn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:bn,afterPreactivation:bn},this.urlHandlingStrategy=new gn,this.routeReuseStrategy=new dn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(i.x),this.console=o.get(i.bb);var f=o.get(i.z);this.isNgZoneEnabled=f instanceof i.z,this.resetConfig(c),this.currentUrlTree=new $t(new Dt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new pn(a,s,function(t){return l.triggerEvent(new ft(t))},function(t){return l.triggerEvent(new dt(t))}),this.routerState=ue(this.currentUrlTree,this.rootComponentType),this.transitions=new u.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(Object(E.a)(function(t){return 0!==t.id}),Object(O.a)(function(t){return Object(r.a)({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Object(H.a)(function(t){var o,i,c,l,f=!1,d=!1;return Object(a.a)(t).pipe(P(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object(r.a)({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Object(H.a)(function(t){var o,i,s,u,c=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||c)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(a.a)(t).pipe(Object(H.a)(function(t){var r=e.transitions.getValue();return n.next(new nt(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?w.a:[t]}),Object(H.a)(function(t){return Promise.resolve(t)}),(o=e.ngModule.injector,i=e.configLoader,s=e.urlSerializer,u=e.config,function(t){return t.pipe(Object(H.a)(function(t){return function(e,n,r,o,i){return new De(e,n,r,t.extractedUrl,i).apply()}(o,i,s,0,u).pipe(Object(O.a)(function(e){return Object(r.a)({},t,{urlAfterRedirects:e})}))}))}),P(function(t){e.currentNavigation=Object(r.a)({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,o,i,a){return function(o){return o.pipe(Object(B.a)(function(o){return function(t,e,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new tn(t,e,n,r,o,i).recognize()}(t,n,o.urlAfterRedirects,(s=o.urlAfterRedirects,e.serializeUrl(s)),i,a).pipe(Object(O.a)(function(t){return Object(r.a)({},o,{targetSnapshot:t})}));var s}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),P(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id),e.browserUrlTree=t.urlAfterRedirects)}),P(function(t){var r=new at(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(c&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,f=t.source,d=t.restoredState,h=t.extras,p=new nt(t.id,e.serializeUrl(l),f,d);n.next(p);var m=ue(l,e.rootComponentType).snapshot;return Object(a.a)(Object(r.a)({},t,{targetSnapshot:m,urlAfterRedirects:l,extras:Object(r.a)({},h,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),w.a}),ln(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),P(function(t){var n=new st(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Object(O.a)(function(t){return Object(r.a)({},t,{guards:(n=t.targetSnapshot,o=t.currentSnapshot,i=e.rootContexts,a=n._root,qe(a,o?o._root:null,i,[a.value]))});var n,o,i,a}),function(t,e){return function(n){return n.pipe(Object(B.a)(function(n){var o=n.targetSnapshot,i=n.currentSnapshot,u=n.guards,c=u.canActivateChecks,l=u.canDeactivateChecks;return 0===l.length&&0===c.length?Object(a.a)(Object(r.a)({},n,{guardsResult:!0})):function(t,e,n,r){return Object(s.a)(t).pipe(Object(B.a)(function(t){return function(t,e,n,r,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||0===i.length)return Object(a.a)(!0);var s=i.map(function(i){var a,s=He(i,e,o);if(function(t){return t&&Pe(t.canDeactivate)}(s))a=Lt(s.canDeactivate(t,e,n,r));else{if(!Pe(s))throw new Error("Invalid CanDeactivate guard");a=Lt(s(t,e,n,r))}return a.pipe(V())});return Object(a.a)(s).pipe(Ze())}(t.component,t.route,n,e,r)}),V(function(t){return!0!==t},!0))}(l,o,i,t).pipe(Object(B.a)(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Object(s.a)(e).pipe(Object(Z.a)(function(e){return Object(s.a)([Qe(e.route.parent,r),Je(e.route,r),Xe(t,e.path,n),Ke(t,e.route,n)]).pipe(Object(_.a)(),V(function(t){return!0!==t},!0))}),V(function(t){return!0!==t},!0))}(o,c,t,e):Object(a.a)(n)}),Object(O.a)(function(t){return Object(r.a)({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),P(function(t){if(Ie(t.guardsResult)){var n=Ot('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),P(function(t){var n=new ut(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),Object(E.a)(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new ot(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),ln(function(t){if(t.guards.canActivateChecks.length)return Object(a.a)(t).pipe(P(function(t){var n=new ct(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,o=e.ngModule.injector,function(t){return t.pipe(Object(B.a)(function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;return i.length?Object(s.a)(i).pipe(Object(Z.a)(function(t){return function(t,n,o,i){return function(t,e,n,r){var o=Object.keys(t);if(0===o.length)return Object(a.a)({});if(1===o.length){var i=o[0];return cn(t[i],e,n,r).pipe(Object(O.a)(function(t){var e;return(e={})[i]=t,e}))}var u={};return Object(s.a)(o).pipe(Object(B.a)(function(o){return cn(t[o],e,n,r).pipe(Object(O.a)(function(t){return u[o]=t,t}))})).pipe(D(),Object(O.a)(function(){return u}))}(t._resolve,t,e,i).pipe(Object(O.a)(function(e){return t._resolvedData=e,t.data=Object(r.a)({},t.data,le(t,o).resolve),null}))}(t.route,0,n,o)}),Object(J.a)(function(t,e){return t}),Object(O.a)(function(e){return t})):Object(a.a)(t)}))}),P(function(t){var n=new lt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,o}),ln(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Object(O.a)(function(t){var n,o,i,a=(i=function t(e,n,o){if(o&&e.shouldReuseRoute(n.value,o.value.snapshot)){(l=o.value)._futureSnapshot=n.value;var i=function(e,n,o){return n.children.map(function(n){var i,a;try{for(var s=Object(r.k)(o.children),u=s.next();!u.done;u=s.next()){var c=u.value;if(e.shouldReuseRoute(c.value.snapshot,n.value))return t(e,n,c)}}catch(l){i={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return t(e,n)})}(e,n,o);return new ie(l,i)}var a=e.retrieve(n.value);if(a){var s=a.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;rs;){if(u-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new we(a,!1,s-u)}()}(a,0,t),u=s.processChildren?Oe(s.segmentGroup,s.index,a.commands):Se(s.segmentGroup,s.index,a.commands);return ye(s.segmentGroup,u,e,o,i)}(l,this.currentUrlTree,t,d,f)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),Object(i.W)()&&this.isNgZoneEnabled&&!i.z.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Ie(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;s||(s=t[a]=[]);var c=Q(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:c,handler:o});else{for(var l=!1,f=0;f-1},e}(T),ot=["alt","control","meta","shift"],it={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},at=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.d)(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(ot.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ot.forEach(function(r){r!=n&&(0,it[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(T),st=function(){return function(){}}(),ut=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(r.d)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case i.G.NONE:return e;case i.G.HTML:return e instanceof lt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),Object(i.cb)(this._doc,String(e)));case i.G.STYLE:return e instanceof ft?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),Object(i.db)(e));case i.G.SCRIPT:if(e instanceof dt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case i.G.URL:return e instanceof pt||e instanceof ht?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),Object(i.eb)(String(e)));case i.G.RESOURCE_URL:if(e instanceof pt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ct)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new lt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ft(t)},e.prototype.bypassSecurityTrustScript=function(t){return new dt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ht(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new pt(t)},e}(st),ct=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ct),ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ct),dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ct),ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ct),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ct),mt=[{provide:i.B,useValue:o.p},{provide:i.C,useValue:function(){h.makeCurrent(),w.init()},multi:!0},{provide:o.m,useClass:v,deps:[m]},{provide:m,useFactory:function(){return document},deps:[]}],gt=Object(i.Q)(i.X,"browser",mt);function vt(){return new i.l}var yt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var e;return e=t,t.withServerTransition=function(t){return{ngModule:e,providers:[{provide:i.c,useValue:t.appId},{provide:y,useExisting:i.c},b]}},t}();"undefined"!=typeof window&&window},"ZZ/e":function(t,e,n){"use strict";var r=n("mrSG"),o=n("CcnG"),i=n("Ip0R"),a=n("ZYCi"),s=n("ttJE"),u=(n("wSPg"),n("FX7f"),n("xoJo"),n("ocqh")),c=(n("BCwa"),n("CTpc")),l=n("K9Ia"),f=n("bne5"),d=n("26FU"),h=n("VnD/"),p=n("15JJ"),m=n("FFOo"),g=n("Ehmk"),v=n("eihs"),y=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new b(t,this.compare,this.keySelector))},t}(),b=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return r.d(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Object(g.a)(this.keySelector)(t))===v.a)return this.destination.error(v.a.e);var n=!1;if(this.hasKey){if((n=Object(g.a)(this.compare)(this.key,e))===v.a)return this.destination.error(v.a.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(m.a),w=n("Twl7");!function(){if(void 0!==window.Reflect&&void 0!==window.customElements){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}(),n.d(e,"a",function(){return Ie}),n.d(e,"b",function(){return Re}),n.d(e,"c",function(){return ce}),n.d(e,"d",function(){return j}),n.d(e,"e",function(){return ie}),n.d(e,"f",function(){return U}),n.d(e,"g",function(){return V}),n.d(e,"h",function(){return B}),n.d(e,"i",function(){return F}),n.d(e,"j",function(){return z}),n.d(e,"k",function(){return H}),n.d(e,"l",function(){return q}),n.d(e,"m",function(){return G}),n.d(e,"n",function(){return W}),n.d(e,"o",function(){return Z}),n.d(e,"p",function(){return J}),n.d(e,"q",function(){return Q}),n.d(e,"r",function(){return K}),n.d(e,"s",function(){return X}),n.d(e,"t",function(){return Y}),n.d(e,"u",function(){return tt}),n.d(e,"v",function(){return et}),n.d(e,"w",function(){return nt}),n.d(e,"x",function(){return rt}),n.d(e,"y",function(){return ot}),n.d(e,"z",function(){return it}),n.d(e,"A",function(){return at}),n.d(e,"B",function(){return st}),n.d(e,"C",function(){return ut}),n.d(e,"D",function(){return ct}),n.d(e,"E",function(){return lt}),n.d(e,"F",function(){return ft}),n.d(e,"G",function(){return dt}),n.d(e,"H",function(){return ht}),n.d(e,"I",function(){return pt}),n.d(e,"J",function(){return mt}),n.d(e,"K",function(){return gt}),n.d(e,"L",function(){return vt}),n.d(e,"M",function(){return yt}),n.d(e,"N",function(){return bt}),n.d(e,"O",function(){return wt}),n.d(e,"P",function(){return xt}),n.d(e,"Q",function(){return St}),n.d(e,"R",function(){return Ot}),n.d(e,"S",function(){return _t}),n.d(e,"T",function(){return Et}),n.d(e,"U",function(){return Ct}),n.d(e,"V",function(){return jt}),n.d(e,"W",function(){return kt}),n.d(e,"X",function(){return Tt}),n.d(e,"Y",function(){return Pt}),n.d(e,"Z",function(){return It}),n.d(e,"ab",function(){return Rt}),n.d(e,"bb",function(){return At}),n.d(e,"cb",function(){return Lt}),n.d(e,"db",function(){return Nt}),n.d(e,"eb",function(){return $t}),n.d(e,"fb",function(){return Dt}),n.d(e,"gb",function(){return Mt}),n.d(e,"hb",function(){return Ut}),n.d(e,"ib",function(){return Ee}),n.d(e,"jb",function(){return Vt}),n.d(e,"kb",function(){return Bt}),n.d(e,"lb",function(){return Ft}),n.d(e,"mb",function(){return zt}),n.d(e,"nb",function(){return Ht}),n.d(e,"ob",function(){return qt}),n.d(e,"pb",function(){return Gt}),n.d(e,"qb",function(){return Wt}),n.d(e,"rb",function(){return Zt}),n.d(e,"sb",function(){return Jt}),n.d(e,"tb",function(){return Qt}),n.d(e,"ub",function(){return Kt}),n.d(e,"vb",function(){return Xt}),n.d(e,"wb",function(){return je}),n.d(e,"xb",function(){return Yt}),n.d(e,"yb",function(){return te}),n.d(e,"zb",function(){return ee}),n.d(e,"Ab",function(){return ne}),n.d(e,"Bb",function(){return re}),n.d(e,"Cb",function(){return oe}),n.d(e,"Db",function(){return ke}),n.d(e,"Eb",function(){return Ue}),n.d(e,"Fb",function(){return $e}),n.d(e,"Gb",function(){return Ae}),n.d(e,"Hb",function(){return Le}),n.d(e,"Ib",function(){return R}),n.d(e,"Jb",function(){return T}),n.d(e,"Kb",function(){return Ne}),n.d(e,"Lb",function(){return k}),n.d(e,"Mb",function(){return ae}),n.d(e,"Nb",function(){return Me});var x=function(t){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t)},S=function(){function t(t){this.el=t,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this.el.nativeElement.value=this.lastValue=null==t?"":t,O(this.el)},t.prototype.handleChangeEvent=function(t,e){t===this.el.nativeElement&&(e!==this.lastValue&&(this.lastValue=e,this.onChange(e)),O(this.el))},t.prototype._handleBlurEvent=function(t){t===this.el.nativeElement&&(this.onTouched(),O(this.el))},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.el.nativeElement.disabled=t},t}(),O=function(t){x(function(){var e=t.nativeElement,n=_(e);E(e,n);var r=e.closest("ion-item");r&&E(r,n)})},_=function(t){for(var e=t.classList,n=[],r=0;r=0)},t.prototype.url=function(){return this.win.location.href},t.prototype.width=function(){return this.win.innerWidth},t.prototype.height=function(){return this.win.innerHeight},t.ngInjectableDef=Object(o.R)({factory:function(){return new t(Object(o.V)(i.c),Object(o.V)(o.z))},token:t,providedIn:"root"}),t}(),P=function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},I=function(t,e,n){e&&e.addEventListener(n,function(e){t.next(null!=e?e.detail:void 0)})},R=function(){function t(t,e,n,r){var o=this;this.location=e,this.serializer=n,this.router=r,this.direction=L,this.animated=N,this.guessDirection="forward",this.lastNavId=-1,r&&r.events.subscribe(function(t){if(t instanceof a.d){var e=t.restoredState?t.restoredState.navigationId:t.id;o.guessDirection=e=t.length)return n[r];if(n[r]!==t[r])return}},we=function(t){return t.split("/").map(function(t){return t.trim()}).filter(function(t){return""!==t})},xe=function(t){t&&(t.ref.destroy(),t.unlistenEvents())},Se=function(){function t(t,e,n,r,o,i){this.containerEl=e,this.router=n,this.navCtrl=r,this.zone=o,this.location=i,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==t?we(t):void 0}return t.prototype.createView=function(t,e){var n=ye(this.router,e),r=t&&t.location&&t.location.nativeElement,o=he(this.zone,t.instance,r);return{id:this.nextId++,stackId:be(this.tabsPrefix,n),unlistenEvents:o,element:r,ref:t,url:n}},t.prototype.getExistingView=function(t){var e=ye(this.router,t),n=this.views.find(function(t){return t.url===e});return n&&n.ref.changeDetectorRef.reattach(),n},t.prototype.setActive=function(t){var e=this,n=this.navCtrl.consumeTransition(),r=n.direction,o=n.animation,i=this.activeView,a=function(t,e){return!e||t.stackId!==e.stackId}(t,i);a&&(r="back",o=void 0);var s,u=this.views.slice(),c=this.router;c.getCurrentNavigation?s=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(s=c.navigations.value),s&&s.extras&&s.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);var l=this.views.includes(t),f=this.insertView(t,r);return l||t.ref.changeDetectorRef.detectChanges(),this.zone.runOutsideAngular(function(){return e.wait(function(){return i&&i.ref.changeDetectorRef.detach(),t.ref.changeDetectorRef.reattach(),e.transition(t,i,o,e.canGoBack(1),!1).then(function(){return Oe(t,f,u,e.location)}).then(function(){return{enteringView:t,direction:r,animation:o,tabSwitch:a}})})})},t.prototype.canGoBack=function(t,e){return void 0===e&&(e=this.getActiveStackId()),this.getStack(e).length>t},t.prototype.pop=function(t,e){var n=this;return void 0===e&&(e=this.getActiveStackId()),this.zone.run(function(){var r=n.getStack(e);if(r.length<=t)return Promise.resolve(!1);var o=r[r.length-t-1],i=o.url,a=o.savedData;if(a){var s=a.get("primary");s&&s.route&&s.route._routerState&&s.route._routerState.snapshot&&s.route._routerState.snapshot.url&&(i=s.route._routerState.snapshot.url)}return n.navCtrl.navigateBack(i,o.savedExtras).then(function(){return!0})})},t.prototype.startBackTransition=function(){var t=this,e=this.activeView;if(e){var n=this.getStack(e.stackId),r=n[n.length-2];return this.wait(function(){return t.transition(r,e,"back",t.canGoBack(2),!0)})}return Promise.resolve()},t.prototype.endBackTransition=function(t){t?(this.skipTransition=!0,this.pop(1)):this.activeView&&_e(this.activeView,this.views,this.views,this.location)},t.prototype.getLastUrl=function(t){var e=this.getStack(t);return e.length>0?e[e.length-1]:void 0},t.prototype.getActiveStackId=function(){return this.activeView?this.activeView.stackId:void 0},t.prototype.destroy=function(){this.containerEl=void 0,this.views.forEach(xe),this.activeView=void 0,this.views=[]},t.prototype.getStack=function(t){return this.views.filter(function(e){return e.stackId===t})},t.prototype.insertView=function(t,e){return this.activeView=t,this.views=function(t,e,n){return"root"===n?ve(t,e):"forward"===n?function(t,e){return t.indexOf(e)>=0?t=t.filter(function(t){return t.stackId!==e.stackId||t.id<=e.id}):t.push(e),t}(t,e):function(t,e){return t.indexOf(e)>=0?t.filter(function(t){return t.stackId!==e.stackId||t.id<=e.id}):ve(t,e)}(t,e)}(this.views,t,e),this.views.slice()},t.prototype.transition=function(t,e,n,r,o){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(e===t)return Promise.resolve(!1);var i=t?t.element:void 0,a=e?e.element:void 0,s=this.containerEl;return i&&i!==a&&(i.classList.add("ion-page"),i.classList.add("ion-page-invisible"),i.parentElement!==s&&s.appendChild(i),s.commit)?s.commit(i,a,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:r,progressAnimation:o}):Promise.resolve(!1)},t.prototype.wait=function(t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.e)(this,function(e){switch(e.label){case 0:return void 0===this.runningTask?[3,2]:[4,this.runningTask];case 1:e.sent(),this.runningTask=void 0,e.label=2;case 2:return[2,this.runningTask=t()]}})})},t}(),Oe=function(t,e,n,r){return"function"==typeof requestAnimationFrame?new Promise(function(o){requestAnimationFrame(function(){_e(t,e,n,r),o()})}):Promise.resolve()},_e=function(t,e,n,r){n.filter(function(t){return!e.includes(t)}).forEach(xe),e.forEach(function(e){var n=r.path().split("?")[0].split("#")[0];if(e!==t&&e.url!==n){var o=e.element;o.setAttribute("aria-hidden","true"),o.classList.add("ion-page-hidden"),e.ref.changeDetectorRef.detach()}})},Ee=function(){function t(t,e,n,r,i,s,u,c,l,f,h,p,m){this.parentContexts=t,this.location=e,this.resolver=n,this.config=s,this.navCtrl=u,this.parentOutlet=m,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new d.a(null),this.stackEvents=new o.m,this.activateEvents=new o.m,this.deactivateEvents=new o.m,this.nativeEl=l.nativeElement,this.name=r||a.f,this.tabsPrefix="true"===i?ye(f,p):void 0,this.stackCtrl=new Se(this.tabsPrefix,this.nativeEl,f,u,h,c),t.onChildOutletCreated(this.name,this)}return Object.defineProperty(t.prototype,"animated",{set:function(t){this.nativeEl.animated=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"swipeGesture",{set:function(t){var e=this;this._swipeGesture=t,this.nativeEl.swipeHandler=t?{canStart:function(){return e.stackCtrl.canGoBack(1)},onStart:function(){return e.stackCtrl.startBackTransition()},onEnd:function(t){return e.stackCtrl.endBackTransition(t)}}:void 0},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.stackCtrl.destroy()},t.prototype.getContext=function(){return this.parentContexts.getContext(this.name)},t.prototype.ngOnInit=function(){var t=this;if(!this.activated){var e=this.getContext();e&&e.route&&this.activateWith(e.route,e.resolver||null)}this.nativeEl.componentOnReady&&this.nativeEl.componentOnReady().then(function(){void 0===t._swipeGesture&&(t.swipeGesture=t.config.getBoolean("swipeBackEnabled","ios"===t.nativeEl.mode))})},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){throw new Error("incompatible reuse strategy")},t.prototype.attach=function(t,e){throw new Error("incompatible reuse strategy")},t.prototype.deactivate=function(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};var t=this.getContext();if(t.route){var e=t.route.snapshot;this.activatedView.savedExtras.queryParams=e.queryParams,this.activatedView.savedExtras.fragment=e.fragment}}var n=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}},t.prototype.activateWith=function(t,e){var n,r=this;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var o=this.stackCtrl.getExistingView(t);if(o){n=this.activated=o.ref;var i=o.savedData;i&&(this.getContext().children.contexts=i),this.updateActivatedRouteProxy(n.instance,t)}else{var a=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,u=new d.a(null),c=this.createActivatedRouteProxy(u,t),l=new Ce(c,s,this.location.injector);n=this.activated=this.location.createComponent(a,this.location.length,l),u.next(n.instance),o=this.stackCtrl.createView(this.activated,t),this.proxyMap.set(n.instance,c),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:t})}this.activatedView=o,this.stackCtrl.setActive(o).then(function(t){r.navCtrl.setTopOutlet(r),r.activateEvents.emit(n.instance),r.stackEvents.emit(t)})},t.prototype.canGoBack=function(t,e){return void 0===t&&(t=1),this.stackCtrl.canGoBack(t,e)},t.prototype.pop=function(t,e){return void 0===t&&(t=1),this.stackCtrl.pop(t,e)},t.prototype.getLastUrl=function(t){var e=this.stackCtrl.getLastUrl(t);return e?e.url:void 0},t.prototype.getActiveStackId=function(){return this.stackCtrl.getActiveStackId()},t.prototype.createActivatedRouteProxy=function(t,e){var n=new a.a;return n._futureSnapshot=e._futureSnapshot,n._routerState=e._routerState,n.snapshot=e.snapshot,n.outlet=e.outlet,n.component=e.component,n._paramMap=this.proxyObservable(t,"paramMap"),n._queryParamMap=this.proxyObservable(t,"queryParamMap"),n.url=this.proxyObservable(t,"url"),n.params=this.proxyObservable(t,"params"),n.queryParams=this.proxyObservable(t,"queryParams"),n.fragment=this.proxyObservable(t,"fragment"),n.data=this.proxyObservable(t,"data"),n},t.prototype.proxyObservable=function(t,e){var n=this;return t.pipe(Object(h.a)(function(t){return!!t}),Object(p.a)(function(t){return n.currentActivatedRoute$.pipe(Object(h.a)(function(e){return null!==e&&e.component===t}),Object(p.a)(function(t){return t&&t.activatedRoute[e]}),function(t){return t.lift(new y(void 0,void 0))})}))},t.prototype.updateActivatedRouteProxy=function(t,e){var n=this.proxyMap.get(t);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=e._futureSnapshot,n._routerState=e._routerState,n.snapshot=e.snapshot,n.outlet=e.outlet,n.component=e.component,this.currentActivatedRoute$.next({component:t,activatedRoute:e})},t}(),Ce=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===a.a?this.route:t===a.b?this.childContexts:this.parent.get(t,e)},t}(),je=function(){function t(t){this.navCtrl=t,this.ionTabsWillChange=new o.m,this.ionTabsDidChange=new o.m}return t.prototype.onPageSelected=function(t){var e=t.enteringView.stackId;t.tabSwitch&&void 0!==e&&(this.tabBar&&(this.tabBar.selectedTab=e),this.ionTabsWillChange.emit({tab:e}),this.ionTabsDidChange.emit({tab:e}))},t.prototype.select=function(t){var e=this.outlet.getActiveStackId()===t,n=this.outlet.tabsPrefix+"/"+t,r=e?n:this.outlet.getLastUrl(t)||n;return this.navCtrl.navigateRoot(r,{animated:!0,animationDirection:"back"})},t.prototype.getSelected=function(){return this.outlet.getActiveStackId()},t}(),ke=function(){function t(t,e,n){this.z=t,this.iterableDiffers=e,this.refMap=new WeakMap,this.el=n.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}return t.prototype.ngOnChanges=function(t){if(this.trackBy&&"items"in t){var e=t.items.currentValue;if(void 0===this.differ&&null!=e)try{this.differ=this.iterableDiffers.find(e).create(this.trackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+e+"'. VirtualScroll only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)},t.prototype.nodeRender=function(t,e,n){var r=this;return this.z.run(function(){var o;if(t){var i=(o=r.refMap.get(t)).context;i.$implicit=e.value,i.index=e.index}else o=r.itmTmp.viewContainer.createEmbeddedView(r.getComponent(e.type),{$implicit:e.value,index:n},n),t=Te(o),r.refMap.set(t,o);return o.detectChanges(),t})},t.prototype.getComponent=function(t){switch(t){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")},t}(),Te=function(t){for(var e=t.rootNodes,n=0;n1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var o=new Array(64),i=new Array(123),a=0;a<64;)i[o[a]=a<26?a+65:a<52?a+71:a<62?a-4:a-59|43]=a++;r.encode=function(t,e,n){for(var r,i=null,a=[],s=0,u=0;e>2],r=(3&c)<<4,u=1;break;case 1:a[s++]=o[r|c>>4],r=(15&c)<<2,u=2;break;case 2:a[s++]=o[r|c>>6],a[s++]=o[63&c],u=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=o[r],a[s++]=61,1===u&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join("")):String.fromCharCode.apply(String,a.slice(0,s))},r.decode=function(t,e,n){for(var r,o=n,a=0,s=0;s1)break;if(void 0===(u=i[u]))throw Error("invalid encoding");switch(a){case 0:r=u,a=1;break;case 1:e[n++]=r<<2|(48&u)>>4,r=u,a=2;break;case 2:e[n++]=(15&r)<<4|(60&u)>>2,r=u,a=3;break;case 3:e[n++]=(3&r)<<6|u,a=0}}if(1===a)throw Error("invalid encoding");return n-o},r.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},bne5:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("6blF"),o=n("isby"),i=n("2Bdj"),a=n("67Y/");function s(t,e,n,u){return Object(i.a)(n)&&(u=n,n=void 0),u?s(t,e,n).pipe(Object(a.a)(function(t){return Object(o.a)(t)?u.apply(void 0,t):u(t)})):new r.a(function(r){!function t(e,n,r,o,i){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,i),a=function(){return s.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),a=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),a=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l1?Array.prototype.slice.call(arguments):t)},r,n)})}},crnd:function(t,e,n){var r={"../tab1/tab1.module.ngfactory":["JLuJ",2,0,15],"../tab2/tab2.module.ngfactory":["8cDG",2,0,16],"./tabs/tabs.module.ngfactory":["pZl2",2,0,17]};function o(t){var e=r[t];return e?Promise.all(e.slice(1).map(n.e)).then(function(){return n(e[0])}):Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}o.keys=function(){return Object.keys(r)},o.id="crnd",t.exports=o},dC0D:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("mrSG"),o=n("FFOo");function i(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r.d(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(o.a)},dEwP:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("nkY7"),o=n("F/XL"),i=n("0/uQ"),a=n("Txjg");function s(){for(var t=[],e=0;e=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function s(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r.throw(t))}catch(e){i(e)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})}function l(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function h(){for(var t=[],e=0;e>>0,this.hi=e>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return i;var e=t<0;e&&(t=-t);var n=t>>>0,r=(t-n)/4294967296>>>0;return e&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new o(n,r)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(r.isString(t)){if(!r.Long)return o.fromNumber(parseInt(t,10));t=r.Long.fromString(t)}return t.low||t.high?new o(t.low>>>0,t.high>>>0):i},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+4294967296*n)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(t){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var s=String.prototype.charCodeAt;o.fromHash=function(t){return t===a?i:new o((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},oBZk:function(t,e,n){"use strict";n.d(e,"p",function(){return s}),n.d(e,"I",function(){return u}),n.d(e,"a",function(){return c}),n.d(e,"t",function(){return l}),n.d(e,"b",function(){return f}),n.d(e,"u",function(){return d}),n.d(e,"c",function(){return h}),n.d(e,"w",function(){return p}),n.d(e,"d",function(){return m}),n.d(e,"v",function(){return g}),n.d(e,"e",function(){return v}),n.d(e,"x",function(){return y}),n.d(e,"f",function(){return b}),n.d(e,"y",function(){return w}),n.d(e,"g",function(){return x}),n.d(e,"z",function(){return S}),n.d(e,"h",function(){return O}),n.d(e,"A",function(){return _}),n.d(e,"i",function(){return E}),n.d(e,"B",function(){return C}),n.d(e,"j",function(){return j}),n.d(e,"C",function(){return k}),n.d(e,"k",function(){return T}),n.d(e,"D",function(){return P}),n.d(e,"l",function(){return I}),n.d(e,"F",function(){return R}),n.d(e,"m",function(){return A}),n.d(e,"E",function(){return L}),n.d(e,"n",function(){return N}),n.d(e,"G",function(){return $}),n.d(e,"o",function(){return D}),n.d(e,"H",function(){return M}),n.d(e,"q",function(){return U}),n.d(e,"J",function(){return V}),n.d(e,"r",function(){return B}),n.d(e,"K",function(){return F}),n.d(e,"s",function(){return z}),n.d(e,"L",function(){return H});var r=n("CcnG"),o=n("ZZ/e"),i=n("Ip0R"),a=n("ZYCi"),s=r.mb({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n flex-direction: column;\n\n width: 100%;\n height: 100%;\n\n contain: layout size style;\n z-index: $z-index-page-container;\n }\n .tabs-inner[_ngcontent-%COMP%] {\n position: relative;\n\n flex: 1;\n\n contain: layout size style;\n }"],data:{}});function u(t){return r.Fb(0,[r.Bb(402653184,1,{outlet:0}),r.xb(null,0),(t()(),r.ob(2,0,null,null,2,"div",[["class","tabs-inner"]],null,null,null,null,null)),(t()(),r.ob(3,16777216,[["outlet",1]],null,1,"ion-router-outlet",[["tabs","true"]],null,[[null,"stackEvents"]],function(t,e,n){var r=!0;return"stackEvents"===e&&(r=!1!==t.component.onPageSelected(n)&&r),r},null,null)),r.nb(4,212992,[[1,4]],0,o.ib,[a.b,r.N,r.j,[8,null],[8,"true"],o.e,o.Ib,i.f,r.k,a.m,r.z,a.a,[3,o.ib]],null,{stackEvents:"stackEvents"}),r.xb(null,1)],function(t,e){t(e,4,0)},null)}var c=r.mb({encapsulation:2,styles:[],data:{}});function l(t){return r.Fb(2,[r.xb(null,0)],null,null)}var f=r.mb({encapsulation:2,styles:[],data:{}});function d(t){return r.Fb(2,[r.xb(null,0)],null,null)}var h=r.mb({encapsulation:2,styles:[],data:{}});function p(t){return r.Fb(2,[r.xb(null,0)],null,null)}var m=r.mb({encapsulation:2,styles:[],data:{}});function g(t){return r.Fb(2,[r.xb(null,0)],null,null)}var v=r.mb({encapsulation:2,styles:[],data:{}});function y(t){return r.Fb(2,[r.xb(null,0)],null,null)}var b=r.mb({encapsulation:2,styles:[],data:{}});function w(t){return r.Fb(2,[r.xb(null,0)],null,null)}var x=r.mb({encapsulation:2,styles:[],data:{}});function S(t){return r.Fb(2,[r.xb(null,0)],null,null)}var O=r.mb({encapsulation:2,styles:[],data:{}});function _(t){return r.Fb(2,[r.xb(null,0)],null,null)}var E=r.mb({encapsulation:2,styles:[],data:{}});function C(t){return r.Fb(2,[r.xb(null,0)],null,null)}var j=r.mb({encapsulation:2,styles:[],data:{}});function k(t){return r.Fb(2,[r.xb(null,0)],null,null)}var T=r.mb({encapsulation:2,styles:[],data:{}});function P(t){return r.Fb(2,[r.xb(null,0)],null,null)}var I=r.mb({encapsulation:2,styles:[],data:{}});function R(t){return r.Fb(2,[r.xb(null,0)],null,null)}var A=r.mb({encapsulation:2,styles:[],data:{}});function L(t){return r.Fb(2,[r.xb(null,0)],null,null)}var N=r.mb({encapsulation:2,styles:[],data:{}});function $(t){return r.Fb(2,[r.xb(null,0)],null,null)}var D=r.mb({encapsulation:2,styles:[],data:{}});function M(t){return r.Fb(2,[r.xb(null,0)],null,null)}var U=r.mb({encapsulation:2,styles:[],data:{}});function V(t){return r.Fb(2,[r.xb(null,0)],null,null)}var B=r.mb({encapsulation:2,styles:[],data:{}});function F(t){return r.Fb(2,[r.xb(null,0)],null,null)}var z=r.mb({encapsulation:2,styles:[],data:{}});function H(t){return r.Fb(2,[r.xb(null,0)],null,null)}},ocqh:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return s});var r="ionViewWillEnter",o="ionViewDidEnter",i="ionViewWillLeave",a="ionViewDidLeave",s="ionViewWillUnload"},p0ib:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("6blF"),o=n("nkY7"),i=n("Zn8D"),a=n("IUTb");function s(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(n)(Object(a.a)(t,s))}},pMnS:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("CcnG"),o=n("ZYCi"),i=r.mb({encapsulation:2,styles:[],data:{}});function a(t){return r.Fb(0,[(t()(),r.ob(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.nb(1,212992,null,0,o.o,[o.b,r.N,r.j,[8,null],r.h],null,null)],function(t,e){t(e,1,0)},null)}function s(t){return r.Fb(0,[(t()(),r.ob(0,0,null,null,1,"ng-component",[],null,null,null,a,i)),r.nb(1,49152,null,0,o.s,[],null,null)],null,null)}var u=r.kb("ng-component",o.s,s,{},{},[])},psW0:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("mrSG"),o=n("zotm"),i=n("MGBS"),a=n("rPjj"),s=n("67Y/"),u=n("0/uQ");function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c(function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)(function(t,o){return e(n,t,r,o)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new l(t,n))})}var l=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project,this.concurrent))},t}(),f=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.d(e,t),e.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.a)},pugT:function(t,e,n){"use strict";var r=n("isby"),o=n("McSo"),i=n("2Bdj"),a=n("Ehmk"),s=n("eihs");function u(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}u.prototype=Object.create(Error.prototype);var c=u;n.d(e,"a",function(){return l});var l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,u=this._parents,l=this._unsubscribe,d=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,p=u?u.length:0;n;)n.remove(this),n=++h>>3){case 1:o.currentState=t.int32();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("currentState"))throw i.ProtocolError("missing required 'currentState'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){if("object"!=typeof t||null===t)return"object expected";switch(t.currentState){default:return"currentState: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.Status)return t;var e=new a.xtech.selfomat.Status;switch(t.currentState){case"INITIALIZING":case 0:e.currentState=0;break;case"RUNNING":case 1:e.currentState=1;break;case"ERROR":case 2:e.currentState=2}return e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.currentState=e.enums===String?"INITIALIZING":0),null!=t.currentState&&t.hasOwnProperty("currentState")&&(n.currentState=e.enums===String?a.xtech.selfomat.Status.State[t.currentState]:t.currentState),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e.State=(n={},(s=Object.create(n))[n[0]="INITIALIZING"]=0,s[n[1]="RUNNING"]=1,s[n[2]="ERROR"]=2,s),e}(),e.BoothError=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.code=t.int32();break;case 2:o.title=t.string();break;case 3:o.message=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("code"))throw i.ProtocolError("missing required 'code'",{instance:o});if(!o.hasOwnProperty("title"))throw i.ProtocolError("missing required 'title'",{instance:o});if(!o.hasOwnProperty("message"))throw i.ProtocolError("missing required 'message'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isInteger(t.code)?i.isString(t.title)?i.isString(t.message)?null:"message: string expected":"title: string expected":"code: integer expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.BoothError)return t;var e=new a.xtech.selfomat.BoothError;return null!=t.code&&(e.code=0|t.code),null!=t.title&&(e.title=String(t.title)),null!=t.message&&(e.message=String(t.message)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.code=0,n.title="",n.message=""),null!=t.code&&t.hasOwnProperty("code")&&(n.code=t.code),null!=t.title&&t.hasOwnProperty("title")&&(n.title=t.title),null!=t.message&&t.hasOwnProperty("message")&&(n.message=t.message),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.IntUpdate=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.value=t.int64();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("value"))throw i.ProtocolError("missing required 'value'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isInteger(t.value)||t.value&&i.isInteger(t.value.low)&&i.isInteger(t.value.high)?null:"value: integer|Long expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.IntUpdate)return t;var e=new a.xtech.selfomat.IntUpdate;return null!=t.value&&(i.Long?(e.value=i.Long.fromValue(t.value)).unsigned=!1:"string"==typeof t.value?e.value=parseInt(t.value,10):"number"==typeof t.value?e.value=t.value:"object"==typeof t.value&&(e.value=new i.LongBits(t.value.low>>>0,t.value.high>>>0).toNumber())),e},e.toObject=function(t,e){e||(e={});var n={};if(e.defaults)if(i.Long){var r=new i.Long(0,0,!1);n.value=e.longs===String?r.toString():e.longs===Number?r.toNumber():r}else n.value=e.longs===String?"0":0;return null!=t.value&&t.hasOwnProperty("value")&&(n.value="number"==typeof t.value?e.longs===String?String(t.value):t.value:e.longs===String?i.Long.prototype.toString.call(t.value):e.longs===Number?new i.LongBits(t.value.low>>>0,t.value.high>>>0).toNumber():t.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.BoolUpdate=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.value=t.bool();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("value"))throw i.ProtocolError("missing required 'value'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":"boolean"!=typeof t.value?"value: boolean expected":null},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.BoolUpdate)return t;var e=new a.xtech.selfomat.BoolUpdate;return null!=t.value&&(e.value=Boolean(t.value)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.value=!1),null!=t.value&&t.hasOwnProperty("value")&&(n.value=t.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.FloatUpdate=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.value=t.float();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("value"))throw i.ProtocolError("missing required 'value'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":"number"!=typeof t.value?"value: number expected":null},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.FloatUpdate)return t;var e=new a.xtech.selfomat.FloatUpdate;return null!=t.value&&(e.value=Number(t.value)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.value=0),null!=t.value&&t.hasOwnProperty("value")&&(n.value=e.json&&!isFinite(t.value)?String(t.value):t.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.ReadOnlySetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.value=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("value"))throw i.ProtocolError("missing required 'value'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?i.isString(t.value)?null:"value: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.ReadOnlySetting)return t;var e=new a.xtech.selfomat.ReadOnlySetting;return null!=t.name&&(e.name=String(t.name)),null!=t.value&&(e.value=String(t.value)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.value=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.value&&t.hasOwnProperty("value")&&(n.value=t.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.PostSetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.postUrl=t.string();break;case 3:o.alert=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("postUrl"))throw i.ProtocolError("missing required 'postUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?i.isString(t.postUrl)?null!=t.alert&&t.hasOwnProperty("alert")&&!i.isString(t.alert)?"alert: string expected":null:"postUrl: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.PostSetting)return t;var e=new a.xtech.selfomat.PostSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.postUrl&&(e.postUrl=String(t.postUrl)),null!=t.alert&&(e.alert=String(t.alert)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.postUrl="",n.alert=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.postUrl&&t.hasOwnProperty("postUrl")&&(n.postUrl=t.postUrl),null!=t.alert&&t.hasOwnProperty("alert")&&(n.alert=t.alert),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.FileUploadSetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.postUrl=t.string();break;case 3:o.inputAccept=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("postUrl"))throw i.ProtocolError("missing required 'postUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?i.isString(t.postUrl)?null!=t.inputAccept&&t.hasOwnProperty("inputAccept")&&!i.isString(t.inputAccept)?"inputAccept: string expected":null:"postUrl: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.FileUploadSetting)return t;var e=new a.xtech.selfomat.FileUploadSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.postUrl&&(e.postUrl=String(t.postUrl)),null!=t.inputAccept&&(e.inputAccept=String(t.inputAccept)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.postUrl="",n.inputAccept=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.postUrl&&t.hasOwnProperty("postUrl")&&(n.postUrl=t.postUrl),null!=t.inputAccept&&t.hasOwnProperty("inputAccept")&&(n.inputAccept=t.inputAccept),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.LinkSetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.url=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("url"))throw i.ProtocolError("missing required 'url'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?i.isString(t.url)?null:"url: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.LinkSetting)return t;var e=new a.xtech.selfomat.LinkSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.url&&(e.url=String(t.url)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.url=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.url&&t.hasOwnProperty("url")&&(n.url=t.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.ListSetting=function(){function e(t){if(this.values=[],t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.currentIndex=t.int32();break;case 3:o.values&&o.values.length||(o.values=[]),o.values.push(t.string());break;case 4:o.updateUrl=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("currentIndex"))throw i.ProtocolError("missing required 'currentIndex'",{instance:o});if(!o.hasOwnProperty("updateUrl"))throw i.ProtocolError("missing required 'updateUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(!i.isString(t.name))return"name: string expected";if(!i.isInteger(t.currentIndex))return"currentIndex: integer expected";if(null!=t.values&&t.hasOwnProperty("values")){if(!Array.isArray(t.values))return"values: array expected";for(var e=0;e>>3){case 1:o.name=t.string();break;case 2:o.currentValue=t.bool();break;case 3:o.updateUrl=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("currentValue"))throw i.ProtocolError("missing required 'currentValue'",{instance:o});if(!o.hasOwnProperty("updateUrl"))throw i.ProtocolError("missing required 'updateUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?"boolean"!=typeof t.currentValue?"currentValue: boolean expected":i.isString(t.updateUrl)?null:"updateUrl: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.BoolSetting)return t;var e=new a.xtech.selfomat.BoolSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.currentValue&&(e.currentValue=Boolean(t.currentValue)),null!=t.updateUrl&&(e.updateUrl=String(t.updateUrl)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.currentValue=!1,n.updateUrl=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.currentValue&&t.hasOwnProperty("currentValue")&&(n.currentValue=t.currentValue),null!=t.updateUrl&&t.hasOwnProperty("updateUrl")&&(n.updateUrl=t.updateUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.FloatSetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.currentValue=t.float();break;case 3:o.minValue=t.float();break;case 4:o.maxValue=t.float();break;case 5:o.updateUrl=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("currentValue"))throw i.ProtocolError("missing required 'currentValue'",{instance:o});if(!o.hasOwnProperty("minValue"))throw i.ProtocolError("missing required 'minValue'",{instance:o});if(!o.hasOwnProperty("maxValue"))throw i.ProtocolError("missing required 'maxValue'",{instance:o});if(!o.hasOwnProperty("updateUrl"))throw i.ProtocolError("missing required 'updateUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?"number"!=typeof t.currentValue?"currentValue: number expected":"number"!=typeof t.minValue?"minValue: number expected":"number"!=typeof t.maxValue?"maxValue: number expected":i.isString(t.updateUrl)?null:"updateUrl: string expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.FloatSetting)return t;var e=new a.xtech.selfomat.FloatSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.currentValue&&(e.currentValue=Number(t.currentValue)),null!=t.minValue&&(e.minValue=Number(t.minValue)),null!=t.maxValue&&(e.maxValue=Number(t.maxValue)),null!=t.updateUrl&&(e.updateUrl=String(t.updateUrl)),e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.name="",n.currentValue=0,n.minValue=0,n.maxValue=0,n.updateUrl=""),null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.currentValue&&t.hasOwnProperty("currentValue")&&(n.currentValue=e.json&&!isFinite(t.currentValue)?String(t.currentValue):t.currentValue),null!=t.minValue&&t.hasOwnProperty("minValue")&&(n.minValue=e.json&&!isFinite(t.minValue)?String(t.minValue):t.minValue),null!=t.maxValue&&t.hasOwnProperty("maxValue")&&(n.maxValue=e.json&&!isFinite(t.maxValue)?String(t.maxValue):t.maxValue),null!=t.updateUrl&&t.hasOwnProperty("updateUrl")&&(n.updateUrl=t.updateUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.IntSetting=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.name=t.string();break;case 2:o.currentValue=t.int64();break;case 3:o.minValue=t.int64();break;case 4:o.maxValue=t.int64();break;case 5:o.updateUrl=t.string();break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("name"))throw i.ProtocolError("missing required 'name'",{instance:o});if(!o.hasOwnProperty("currentValue"))throw i.ProtocolError("missing required 'currentValue'",{instance:o});if(!o.hasOwnProperty("minValue"))throw i.ProtocolError("missing required 'minValue'",{instance:o});if(!o.hasOwnProperty("maxValue"))throw i.ProtocolError("missing required 'maxValue'",{instance:o});if(!o.hasOwnProperty("updateUrl"))throw i.ProtocolError("missing required 'updateUrl'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":i.isString(t.name)?i.isInteger(t.currentValue)||t.currentValue&&i.isInteger(t.currentValue.low)&&i.isInteger(t.currentValue.high)?i.isInteger(t.minValue)||t.minValue&&i.isInteger(t.minValue.low)&&i.isInteger(t.minValue.high)?i.isInteger(t.maxValue)||t.maxValue&&i.isInteger(t.maxValue.low)&&i.isInteger(t.maxValue.high)?i.isString(t.updateUrl)?null:"updateUrl: string expected":"maxValue: integer|Long expected":"minValue: integer|Long expected":"currentValue: integer|Long expected":"name: string expected"},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.IntSetting)return t;var e=new a.xtech.selfomat.IntSetting;return null!=t.name&&(e.name=String(t.name)),null!=t.currentValue&&(i.Long?(e.currentValue=i.Long.fromValue(t.currentValue)).unsigned=!1:"string"==typeof t.currentValue?e.currentValue=parseInt(t.currentValue,10):"number"==typeof t.currentValue?e.currentValue=t.currentValue:"object"==typeof t.currentValue&&(e.currentValue=new i.LongBits(t.currentValue.low>>>0,t.currentValue.high>>>0).toNumber())),null!=t.minValue&&(i.Long?(e.minValue=i.Long.fromValue(t.minValue)).unsigned=!1:"string"==typeof t.minValue?e.minValue=parseInt(t.minValue,10):"number"==typeof t.minValue?e.minValue=t.minValue:"object"==typeof t.minValue&&(e.minValue=new i.LongBits(t.minValue.low>>>0,t.minValue.high>>>0).toNumber())),null!=t.maxValue&&(i.Long?(e.maxValue=i.Long.fromValue(t.maxValue)).unsigned=!1:"string"==typeof t.maxValue?e.maxValue=parseInt(t.maxValue,10):"number"==typeof t.maxValue?e.maxValue=t.maxValue:"object"==typeof t.maxValue&&(e.maxValue=new i.LongBits(t.maxValue.low>>>0,t.maxValue.high>>>0).toNumber())),null!=t.updateUrl&&(e.updateUrl=String(t.updateUrl)),e},e.toObject=function(t,e){e||(e={});var n={};if(e.defaults){if(n.name="",i.Long){var r=new i.Long(0,0,!1);n.currentValue=e.longs===String?r.toString():e.longs===Number?r.toNumber():r}else n.currentValue=e.longs===String?"0":0;i.Long?(r=new i.Long(0,0,!1),n.minValue=e.longs===String?r.toString():e.longs===Number?r.toNumber():r):n.minValue=e.longs===String?"0":0,i.Long?(r=new i.Long(0,0,!1),n.maxValue=e.longs===String?r.toString():e.longs===Number?r.toNumber():r):n.maxValue=e.longs===String?"0":0,n.updateUrl=""}return null!=t.name&&t.hasOwnProperty("name")&&(n.name=t.name),null!=t.currentValue&&t.hasOwnProperty("currentValue")&&(n.currentValue="number"==typeof t.currentValue?e.longs===String?String(t.currentValue):t.currentValue:e.longs===String?i.Long.prototype.toString.call(t.currentValue):e.longs===Number?new i.LongBits(t.currentValue.low>>>0,t.currentValue.high>>>0).toNumber():t.currentValue),null!=t.minValue&&t.hasOwnProperty("minValue")&&(n.minValue="number"==typeof t.minValue?e.longs===String?String(t.minValue):t.minValue:e.longs===String?i.Long.prototype.toString.call(t.minValue):e.longs===Number?new i.LongBits(t.minValue.low>>>0,t.minValue.high>>>0).toNumber():t.minValue),null!=t.maxValue&&t.hasOwnProperty("maxValue")&&(n.maxValue="number"==typeof t.maxValue?e.longs===String?String(t.maxValue):t.maxValue:e.longs===String?i.Long.prototype.toString.call(t.maxValue):e.longs===Number?new i.LongBits(t.maxValue.low>>>0,t.maxValue.high>>>0).toNumber():t.maxValue),null!=t.updateUrl&&t.hasOwnProperty("updateUrl")&&(n.updateUrl=t.updateUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.CameraSettings=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:o.iso=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 2:o.shutterSpeed=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 3:o.aperture=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 4:o.exposureCompensation=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 5:o.exposureCompensationTrigger=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 6:o.imageFormat=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 7:o.cameraName=a.xtech.selfomat.ReadOnlySetting.decode(t,t.uint32());break;case 8:o.lensName=a.xtech.selfomat.ReadOnlySetting.decode(t,t.uint32());break;case 10:o.focus=a.xtech.selfomat.PostSetting.decode(t,t.uint32());break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("iso"))throw i.ProtocolError("missing required 'iso'",{instance:o});if(!o.hasOwnProperty("shutterSpeed"))throw i.ProtocolError("missing required 'shutterSpeed'",{instance:o});if(!o.hasOwnProperty("aperture"))throw i.ProtocolError("missing required 'aperture'",{instance:o});if(!o.hasOwnProperty("exposureCompensation"))throw i.ProtocolError("missing required 'exposureCompensation'",{instance:o});if(!o.hasOwnProperty("exposureCompensationTrigger"))throw i.ProtocolError("missing required 'exposureCompensationTrigger'",{instance:o});if(!o.hasOwnProperty("imageFormat"))throw i.ProtocolError("missing required 'imageFormat'",{instance:o});if(!o.hasOwnProperty("cameraName"))throw i.ProtocolError("missing required 'cameraName'",{instance:o});if(!o.hasOwnProperty("lensName"))throw i.ProtocolError("missing required 'lensName'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":(e=a.xtech.selfomat.ListSetting.verify(t.iso))?"iso."+e:(e=a.xtech.selfomat.ListSetting.verify(t.shutterSpeed))?"shutterSpeed."+e:(e=a.xtech.selfomat.ListSetting.verify(t.aperture))?"aperture."+e:(e=a.xtech.selfomat.ListSetting.verify(t.exposureCompensation))?"exposureCompensation."+e:(e=a.xtech.selfomat.ListSetting.verify(t.exposureCompensationTrigger))?"exposureCompensationTrigger."+e:(e=a.xtech.selfomat.ListSetting.verify(t.imageFormat))?"imageFormat."+e:(e=a.xtech.selfomat.ReadOnlySetting.verify(t.cameraName))?"cameraName."+e:(e=a.xtech.selfomat.ReadOnlySetting.verify(t.lensName))?"lensName."+e:null!=t.focus&&t.hasOwnProperty("focus")&&(e=a.xtech.selfomat.PostSetting.verify(t.focus))?"focus."+e:null;var e},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.CameraSettings)return t;var e=new a.xtech.selfomat.CameraSettings;if(null!=t.iso){if("object"!=typeof t.iso)throw TypeError(".xtech.selfomat.CameraSettings.iso: object expected");e.iso=a.xtech.selfomat.ListSetting.fromObject(t.iso)}if(null!=t.shutterSpeed){if("object"!=typeof t.shutterSpeed)throw TypeError(".xtech.selfomat.CameraSettings.shutterSpeed: object expected");e.shutterSpeed=a.xtech.selfomat.ListSetting.fromObject(t.shutterSpeed)}if(null!=t.aperture){if("object"!=typeof t.aperture)throw TypeError(".xtech.selfomat.CameraSettings.aperture: object expected");e.aperture=a.xtech.selfomat.ListSetting.fromObject(t.aperture)}if(null!=t.exposureCompensation){if("object"!=typeof t.exposureCompensation)throw TypeError(".xtech.selfomat.CameraSettings.exposureCompensation: object expected");e.exposureCompensation=a.xtech.selfomat.ListSetting.fromObject(t.exposureCompensation)}if(null!=t.exposureCompensationTrigger){if("object"!=typeof t.exposureCompensationTrigger)throw TypeError(".xtech.selfomat.CameraSettings.exposureCompensationTrigger: object expected");e.exposureCompensationTrigger=a.xtech.selfomat.ListSetting.fromObject(t.exposureCompensationTrigger)}if(null!=t.imageFormat){if("object"!=typeof t.imageFormat)throw TypeError(".xtech.selfomat.CameraSettings.imageFormat: object expected");e.imageFormat=a.xtech.selfomat.ListSetting.fromObject(t.imageFormat)}if(null!=t.cameraName){if("object"!=typeof t.cameraName)throw TypeError(".xtech.selfomat.CameraSettings.cameraName: object expected");e.cameraName=a.xtech.selfomat.ReadOnlySetting.fromObject(t.cameraName)}if(null!=t.lensName){if("object"!=typeof t.lensName)throw TypeError(".xtech.selfomat.CameraSettings.lensName: object expected");e.lensName=a.xtech.selfomat.ReadOnlySetting.fromObject(t.lensName)}if(null!=t.focus){if("object"!=typeof t.focus)throw TypeError(".xtech.selfomat.CameraSettings.focus: object expected");e.focus=a.xtech.selfomat.PostSetting.fromObject(t.focus)}return e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.iso=null,n.shutterSpeed=null,n.aperture=null,n.exposureCompensation=null,n.exposureCompensationTrigger=null,n.imageFormat=null,n.cameraName=null,n.lensName=null,n.focus=null),null!=t.iso&&t.hasOwnProperty("iso")&&(n.iso=a.xtech.selfomat.ListSetting.toObject(t.iso,e)),null!=t.shutterSpeed&&t.hasOwnProperty("shutterSpeed")&&(n.shutterSpeed=a.xtech.selfomat.ListSetting.toObject(t.shutterSpeed,e)),null!=t.aperture&&t.hasOwnProperty("aperture")&&(n.aperture=a.xtech.selfomat.ListSetting.toObject(t.aperture,e)),null!=t.exposureCompensation&&t.hasOwnProperty("exposureCompensation")&&(n.exposureCompensation=a.xtech.selfomat.ListSetting.toObject(t.exposureCompensation,e)),null!=t.exposureCompensationTrigger&&t.hasOwnProperty("exposureCompensationTrigger")&&(n.exposureCompensationTrigger=a.xtech.selfomat.ListSetting.toObject(t.exposureCompensationTrigger,e)),null!=t.imageFormat&&t.hasOwnProperty("imageFormat")&&(n.imageFormat=a.xtech.selfomat.ListSetting.toObject(t.imageFormat,e)),null!=t.cameraName&&t.hasOwnProperty("cameraName")&&(n.cameraName=a.xtech.selfomat.ReadOnlySetting.toObject(t.cameraName,e)),null!=t.lensName&&t.hasOwnProperty("lensName")&&(n.lensName=a.xtech.selfomat.ReadOnlySetting.toObject(t.lensName,e)),null!=t.focus&&t.hasOwnProperty("focus")&&(n.focus=a.xtech.selfomat.PostSetting.toObject(t.focus,e)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e.BoothSettings=function(){function e(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 5:o.languageChoice=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 10:o.storageEnabled=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 11:o.printerEnabled=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 20:o.filterChoice=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 21:o.filterGain=a.xtech.selfomat.FloatSetting.decode(t,t.uint32());break;case 30:o.templateUpload=a.xtech.selfomat.FileUploadSetting.decode(t,t.uint32());break;case 31:o.templateEnabled=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 40:o.ledMode=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 41:o.ledCount=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 42:o.ledOffsetClockwise=a.xtech.selfomat.PostSetting.decode(t,t.uint32());break;case 43:o.ledOffsetCounterClockwise=a.xtech.selfomat.PostSetting.decode(t,t.uint32());break;case 44:o.countdownDuration=a.xtech.selfomat.ListSetting.decode(t,t.uint32());break;case 45:o.maxLedBrightness=a.xtech.selfomat.IntSetting.decode(t,t.uint32());break;case 46:o.autofocusBeforeTrigger=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 50:o.cupsLink=a.xtech.selfomat.LinkSetting.decode(t,t.uint32());break;case 51:o.updateMode=a.xtech.selfomat.PostSetting.decode(t,t.uint32());break;case 200:o.flashEnabled=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 201:o.flashMode=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 202:o.flashDurationMicros=a.xtech.selfomat.IntSetting.decode(t,t.uint32());break;case 203:o.flashTest=a.xtech.selfomat.PostSetting.decode(t,t.uint32());break;case 240:o.debugLogEnabled=a.xtech.selfomat.BoolSetting.decode(t,t.uint32());break;case 250:o.triggerCounter=a.xtech.selfomat.ReadOnlySetting.decode(t,t.uint32());break;default:t.skipType(7&s)}}if(!o.hasOwnProperty("languageChoice"))throw i.ProtocolError("missing required 'languageChoice'",{instance:o});if(!o.hasOwnProperty("storageEnabled"))throw i.ProtocolError("missing required 'storageEnabled'",{instance:o});if(!o.hasOwnProperty("printerEnabled"))throw i.ProtocolError("missing required 'printerEnabled'",{instance:o});if(!o.hasOwnProperty("filterChoice"))throw i.ProtocolError("missing required 'filterChoice'",{instance:o});if(!o.hasOwnProperty("filterGain"))throw i.ProtocolError("missing required 'filterGain'",{instance:o});if(!o.hasOwnProperty("ledOffsetClockwise"))throw i.ProtocolError("missing required 'ledOffsetClockwise'",{instance:o});if(!o.hasOwnProperty("ledOffsetCounterClockwise"))throw i.ProtocolError("missing required 'ledOffsetCounterClockwise'",{instance:o});if(!o.hasOwnProperty("countdownDuration"))throw i.ProtocolError("missing required 'countdownDuration'",{instance:o});if(!o.hasOwnProperty("autofocusBeforeTrigger"))throw i.ProtocolError("missing required 'autofocusBeforeTrigger'",{instance:o});if(!o.hasOwnProperty("updateMode"))throw i.ProtocolError("missing required 'updateMode'",{instance:o});if(!o.hasOwnProperty("triggerCounter"))throw i.ProtocolError("missing required 'triggerCounter'",{instance:o});return o},e.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},e.verify=function(t){return"object"!=typeof t||null===t?"object expected":(e=a.xtech.selfomat.ListSetting.verify(t.languageChoice))?"languageChoice."+e:(e=a.xtech.selfomat.BoolSetting.verify(t.storageEnabled))?"storageEnabled."+e:(e=a.xtech.selfomat.BoolSetting.verify(t.printerEnabled))?"printerEnabled."+e:(e=a.xtech.selfomat.ListSetting.verify(t.filterChoice))?"filterChoice."+e:(e=a.xtech.selfomat.FloatSetting.verify(t.filterGain))?"filterGain."+e:null!=t.templateUpload&&t.hasOwnProperty("templateUpload")&&(e=a.xtech.selfomat.FileUploadSetting.verify(t.templateUpload))?"templateUpload."+e:null!=t.templateEnabled&&t.hasOwnProperty("templateEnabled")&&(e=a.xtech.selfomat.BoolSetting.verify(t.templateEnabled))?"templateEnabled."+e:null!=t.ledMode&&t.hasOwnProperty("ledMode")&&(e=a.xtech.selfomat.ListSetting.verify(t.ledMode))?"ledMode."+e:null!=t.ledCount&&t.hasOwnProperty("ledCount")&&(e=a.xtech.selfomat.ListSetting.verify(t.ledCount))?"ledCount."+e:(e=a.xtech.selfomat.PostSetting.verify(t.ledOffsetClockwise))?"ledOffsetClockwise."+e:(e=a.xtech.selfomat.PostSetting.verify(t.ledOffsetCounterClockwise))?"ledOffsetCounterClockwise."+e:(e=a.xtech.selfomat.ListSetting.verify(t.countdownDuration))?"countdownDuration."+e:null!=t.maxLedBrightness&&t.hasOwnProperty("maxLedBrightness")&&(e=a.xtech.selfomat.IntSetting.verify(t.maxLedBrightness))?"maxLedBrightness."+e:(e=a.xtech.selfomat.BoolSetting.verify(t.autofocusBeforeTrigger))?"autofocusBeforeTrigger."+e:null!=t.cupsLink&&t.hasOwnProperty("cupsLink")&&(e=a.xtech.selfomat.LinkSetting.verify(t.cupsLink))?"cupsLink."+e:(e=a.xtech.selfomat.PostSetting.verify(t.updateMode))?"updateMode."+e:null!=t.flashEnabled&&t.hasOwnProperty("flashEnabled")&&(e=a.xtech.selfomat.BoolSetting.verify(t.flashEnabled))?"flashEnabled."+e:null!=t.flashMode&&t.hasOwnProperty("flashMode")&&(e=a.xtech.selfomat.BoolSetting.verify(t.flashMode))?"flashMode."+e:null!=t.flashDurationMicros&&t.hasOwnProperty("flashDurationMicros")&&(e=a.xtech.selfomat.IntSetting.verify(t.flashDurationMicros))?"flashDurationMicros."+e:null!=t.flashTest&&t.hasOwnProperty("flashTest")&&(e=a.xtech.selfomat.PostSetting.verify(t.flashTest))?"flashTest."+e:null!=t.debugLogEnabled&&t.hasOwnProperty("debugLogEnabled")&&(e=a.xtech.selfomat.BoolSetting.verify(t.debugLogEnabled))?"debugLogEnabled."+e:(e=a.xtech.selfomat.ReadOnlySetting.verify(t.triggerCounter))?"triggerCounter."+e:null;var e},e.fromObject=function(t){if(t instanceof a.xtech.selfomat.BoothSettings)return t;var e=new a.xtech.selfomat.BoothSettings;if(null!=t.languageChoice){if("object"!=typeof t.languageChoice)throw TypeError(".xtech.selfomat.BoothSettings.languageChoice: object expected");e.languageChoice=a.xtech.selfomat.ListSetting.fromObject(t.languageChoice)}if(null!=t.storageEnabled){if("object"!=typeof t.storageEnabled)throw TypeError(".xtech.selfomat.BoothSettings.storageEnabled: object expected");e.storageEnabled=a.xtech.selfomat.BoolSetting.fromObject(t.storageEnabled)}if(null!=t.printerEnabled){if("object"!=typeof t.printerEnabled)throw TypeError(".xtech.selfomat.BoothSettings.printerEnabled: object expected");e.printerEnabled=a.xtech.selfomat.BoolSetting.fromObject(t.printerEnabled)}if(null!=t.filterChoice){if("object"!=typeof t.filterChoice)throw TypeError(".xtech.selfomat.BoothSettings.filterChoice: object expected");e.filterChoice=a.xtech.selfomat.ListSetting.fromObject(t.filterChoice)}if(null!=t.filterGain){if("object"!=typeof t.filterGain)throw TypeError(".xtech.selfomat.BoothSettings.filterGain: object expected");e.filterGain=a.xtech.selfomat.FloatSetting.fromObject(t.filterGain)}if(null!=t.templateUpload){if("object"!=typeof t.templateUpload)throw TypeError(".xtech.selfomat.BoothSettings.templateUpload: object expected");e.templateUpload=a.xtech.selfomat.FileUploadSetting.fromObject(t.templateUpload)}if(null!=t.templateEnabled){if("object"!=typeof t.templateEnabled)throw TypeError(".xtech.selfomat.BoothSettings.templateEnabled: object expected");e.templateEnabled=a.xtech.selfomat.BoolSetting.fromObject(t.templateEnabled)}if(null!=t.ledMode){if("object"!=typeof t.ledMode)throw TypeError(".xtech.selfomat.BoothSettings.ledMode: object expected");e.ledMode=a.xtech.selfomat.ListSetting.fromObject(t.ledMode)}if(null!=t.ledCount){if("object"!=typeof t.ledCount)throw TypeError(".xtech.selfomat.BoothSettings.ledCount: object expected");e.ledCount=a.xtech.selfomat.ListSetting.fromObject(t.ledCount)}if(null!=t.ledOffsetClockwise){if("object"!=typeof t.ledOffsetClockwise)throw TypeError(".xtech.selfomat.BoothSettings.ledOffsetClockwise: object expected");e.ledOffsetClockwise=a.xtech.selfomat.PostSetting.fromObject(t.ledOffsetClockwise)}if(null!=t.ledOffsetCounterClockwise){if("object"!=typeof t.ledOffsetCounterClockwise)throw TypeError(".xtech.selfomat.BoothSettings.ledOffsetCounterClockwise: object expected");e.ledOffsetCounterClockwise=a.xtech.selfomat.PostSetting.fromObject(t.ledOffsetCounterClockwise)}if(null!=t.countdownDuration){if("object"!=typeof t.countdownDuration)throw TypeError(".xtech.selfomat.BoothSettings.countdownDuration: object expected");e.countdownDuration=a.xtech.selfomat.ListSetting.fromObject(t.countdownDuration)}if(null!=t.maxLedBrightness){if("object"!=typeof t.maxLedBrightness)throw TypeError(".xtech.selfomat.BoothSettings.maxLedBrightness: object expected");e.maxLedBrightness=a.xtech.selfomat.IntSetting.fromObject(t.maxLedBrightness)}if(null!=t.autofocusBeforeTrigger){if("object"!=typeof t.autofocusBeforeTrigger)throw TypeError(".xtech.selfomat.BoothSettings.autofocusBeforeTrigger: object expected");e.autofocusBeforeTrigger=a.xtech.selfomat.BoolSetting.fromObject(t.autofocusBeforeTrigger)}if(null!=t.cupsLink){if("object"!=typeof t.cupsLink)throw TypeError(".xtech.selfomat.BoothSettings.cupsLink: object expected");e.cupsLink=a.xtech.selfomat.LinkSetting.fromObject(t.cupsLink)}if(null!=t.updateMode){if("object"!=typeof t.updateMode)throw TypeError(".xtech.selfomat.BoothSettings.updateMode: object expected");e.updateMode=a.xtech.selfomat.PostSetting.fromObject(t.updateMode)}if(null!=t.flashEnabled){if("object"!=typeof t.flashEnabled)throw TypeError(".xtech.selfomat.BoothSettings.flashEnabled: object expected");e.flashEnabled=a.xtech.selfomat.BoolSetting.fromObject(t.flashEnabled)}if(null!=t.flashMode){if("object"!=typeof t.flashMode)throw TypeError(".xtech.selfomat.BoothSettings.flashMode: object expected");e.flashMode=a.xtech.selfomat.BoolSetting.fromObject(t.flashMode)}if(null!=t.flashDurationMicros){if("object"!=typeof t.flashDurationMicros)throw TypeError(".xtech.selfomat.BoothSettings.flashDurationMicros: object expected");e.flashDurationMicros=a.xtech.selfomat.IntSetting.fromObject(t.flashDurationMicros)}if(null!=t.flashTest){if("object"!=typeof t.flashTest)throw TypeError(".xtech.selfomat.BoothSettings.flashTest: object expected");e.flashTest=a.xtech.selfomat.PostSetting.fromObject(t.flashTest)}if(null!=t.debugLogEnabled){if("object"!=typeof t.debugLogEnabled)throw TypeError(".xtech.selfomat.BoothSettings.debugLogEnabled: object expected");e.debugLogEnabled=a.xtech.selfomat.BoolSetting.fromObject(t.debugLogEnabled)}if(null!=t.triggerCounter){if("object"!=typeof t.triggerCounter)throw TypeError(".xtech.selfomat.BoothSettings.triggerCounter: object expected");e.triggerCounter=a.xtech.selfomat.ReadOnlySetting.fromObject(t.triggerCounter)}return e},e.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.languageChoice=null,n.storageEnabled=null,n.printerEnabled=null,n.filterChoice=null,n.filterGain=null,n.templateUpload=null,n.templateEnabled=null,n.ledMode=null,n.ledCount=null,n.ledOffsetClockwise=null,n.ledOffsetCounterClockwise=null,n.countdownDuration=null,n.maxLedBrightness=null,n.autofocusBeforeTrigger=null,n.cupsLink=null,n.updateMode=null,n.flashEnabled=null,n.flashMode=null,n.flashDurationMicros=null,n.flashTest=null,n.debugLogEnabled=null,n.triggerCounter=null),null!=t.languageChoice&&t.hasOwnProperty("languageChoice")&&(n.languageChoice=a.xtech.selfomat.ListSetting.toObject(t.languageChoice,e)),null!=t.storageEnabled&&t.hasOwnProperty("storageEnabled")&&(n.storageEnabled=a.xtech.selfomat.BoolSetting.toObject(t.storageEnabled,e)),null!=t.printerEnabled&&t.hasOwnProperty("printerEnabled")&&(n.printerEnabled=a.xtech.selfomat.BoolSetting.toObject(t.printerEnabled,e)),null!=t.filterChoice&&t.hasOwnProperty("filterChoice")&&(n.filterChoice=a.xtech.selfomat.ListSetting.toObject(t.filterChoice,e)),null!=t.filterGain&&t.hasOwnProperty("filterGain")&&(n.filterGain=a.xtech.selfomat.FloatSetting.toObject(t.filterGain,e)),null!=t.templateUpload&&t.hasOwnProperty("templateUpload")&&(n.templateUpload=a.xtech.selfomat.FileUploadSetting.toObject(t.templateUpload,e)),null!=t.templateEnabled&&t.hasOwnProperty("templateEnabled")&&(n.templateEnabled=a.xtech.selfomat.BoolSetting.toObject(t.templateEnabled,e)),null!=t.ledMode&&t.hasOwnProperty("ledMode")&&(n.ledMode=a.xtech.selfomat.ListSetting.toObject(t.ledMode,e)),null!=t.ledCount&&t.hasOwnProperty("ledCount")&&(n.ledCount=a.xtech.selfomat.ListSetting.toObject(t.ledCount,e)),null!=t.ledOffsetClockwise&&t.hasOwnProperty("ledOffsetClockwise")&&(n.ledOffsetClockwise=a.xtech.selfomat.PostSetting.toObject(t.ledOffsetClockwise,e)),null!=t.ledOffsetCounterClockwise&&t.hasOwnProperty("ledOffsetCounterClockwise")&&(n.ledOffsetCounterClockwise=a.xtech.selfomat.PostSetting.toObject(t.ledOffsetCounterClockwise,e)),null!=t.countdownDuration&&t.hasOwnProperty("countdownDuration")&&(n.countdownDuration=a.xtech.selfomat.ListSetting.toObject(t.countdownDuration,e)),null!=t.maxLedBrightness&&t.hasOwnProperty("maxLedBrightness")&&(n.maxLedBrightness=a.xtech.selfomat.IntSetting.toObject(t.maxLedBrightness,e)),null!=t.autofocusBeforeTrigger&&t.hasOwnProperty("autofocusBeforeTrigger")&&(n.autofocusBeforeTrigger=a.xtech.selfomat.BoolSetting.toObject(t.autofocusBeforeTrigger,e)),null!=t.cupsLink&&t.hasOwnProperty("cupsLink")&&(n.cupsLink=a.xtech.selfomat.LinkSetting.toObject(t.cupsLink,e)),null!=t.updateMode&&t.hasOwnProperty("updateMode")&&(n.updateMode=a.xtech.selfomat.PostSetting.toObject(t.updateMode,e)),null!=t.flashEnabled&&t.hasOwnProperty("flashEnabled")&&(n.flashEnabled=a.xtech.selfomat.BoolSetting.toObject(t.flashEnabled,e)),null!=t.flashMode&&t.hasOwnProperty("flashMode")&&(n.flashMode=a.xtech.selfomat.BoolSetting.toObject(t.flashMode,e)),null!=t.flashDurationMicros&&t.hasOwnProperty("flashDurationMicros")&&(n.flashDurationMicros=a.xtech.selfomat.IntSetting.toObject(t.flashDurationMicros,e)),null!=t.flashTest&&t.hasOwnProperty("flashTest")&&(n.flashTest=a.xtech.selfomat.PostSetting.toObject(t.flashTest,e)),null!=t.debugLogEnabled&&t.hasOwnProperty("debugLogEnabled")&&(n.debugLogEnabled=a.xtech.selfomat.BoolSetting.toObject(t.debugLogEnabled,e)),null!=t.triggerCounter&&t.hasOwnProperty("triggerCounter")&&(n.triggerCounter=a.xtech.selfomat.ReadOnlySetting.toObject(t.triggerCounter,e)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,t.util.toJSONOptions)},e}(),e),n),a})?r.apply(e,o):r)||(t.exports=i)},rPjj:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("mrSG"),o=function(t){function e(e,n,r){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=r,o.index=0,o}return r.d(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("FFOo").a)},"t/Na":function(t,e,n){"use strict";n.d(e,"l",function(){return A}),n.d(e,"o",function(){return M}),n.d(e,"p",function(){return U}),n.d(e,"m",function(){return N}),n.d(e,"n",function(){return $}),n.d(e,"b",function(){return d}),n.d(e,"f",function(){return f}),n.d(e,"c",function(){return j}),n.d(e,"g",function(){return h}),n.d(e,"a",function(){return T}),n.d(e,"d",function(){return F}),n.d(e,"e",function(){return B}),n.d(e,"k",function(){return V}),n.d(e,"h",function(){return L}),n.d(e,"j",function(){return R}),n.d(e,"i",function(){return D});var r=n("mrSG"),o=n("CcnG"),i=n("F/XL"),a=n("6blF"),s=n("Phjn"),u=n("VnD/"),c=n("67Y/"),l=n("Ip0R"),f=function(){return function(){}}(),d=function(){return function(){}}(),h=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var o=("a"===t.op?this.headers.get(e):void 0)||[];o.push.apply(o,Object(r.i)(n)),this.headers.set(e,o);break;case"d":var i=t.value;if(i){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===i.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),p=function(){function t(){}return t.prototype.encodeKey=function(t){return m(t)},t.prototype.encodeValue=function(t){return m(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function m(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var g=function(){function t(t){void 0===t&&(t={});var e,n,o,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,o=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),i=Object(r.h)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),a=i[0],s=i[1],u=o.get(a)||[];u.push(s),o.set(a,u)}),o)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];i.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)},t}();function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}var w=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new h),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),O=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=x.ResponseHeader,n}return Object(r.d)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(S),_=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=x.Response,n.body=void 0!==e.body?e.body:null,n}return Object(r.d)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(S),E=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(r.d)(e,t),e}(S);function C(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var j=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof w)r=t;else{var a;a=n.headers instanceof h?n.headers:new h(n.headers);var l=void 0;n.params&&(l=n.params instanceof g?n.params:new g({fromObject:n.params})),r=new w(t,e,void 0!==n.body?n.body:null,{headers:a,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var f=Object(i.a)(r).pipe(Object(s.a)(function(t){return o.handler.handle(t)}));if(t instanceof w||"events"===n.observe)return f;var d=f.pipe(Object(u.a)(function(t){return t instanceof _}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return d.pipe(Object(c.a)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return d.pipe(Object(c.a)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return d.pipe(Object(c.a)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return d.pipe(Object(c.a)(function(t){return t.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new g).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,C(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,C(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,C(n,e))},t}(),k=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),T=new o.p("HTTP_INTERCEPTORS"),P=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),I=/^\)\]\}',?\n/,R=function(){return function(){}}(),A=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),L=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new a.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new h(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new O({headers:o,status:e,statusText:n,url:i})},c=function(){var e=u(),o=e.headers,i=e.status,a=e.statusText,s=e.url,c=null;204!==i&&(c=void 0===r.response?r.responseText:r.response),0===i&&(i=c?200:0);var l=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof c){var f=c;c=c.replace(I,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=f,l&&(l=!1,c={error:d,text:c})}}l?(n.next(new _({body:c,headers:o,status:i,statusText:a,url:s||void 0})),n.complete()):n.error(new E({error:c,headers:o,status:i,statusText:a,url:s||void 0}))},l=function(t){var e=u().url,o=new E({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(o)},f=!1,d=function(e){f||(n.next(u()),f=!0);var o={type:x.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},p=function(t){var e={type:x.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",c),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",d),null!==a&&r.upload&&r.upload.addEventListener("progress",p)),r.send(a),n.next({type:x.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),t.reportProgress&&(r.removeEventListener("progress",d),null!==a&&r.upload&&r.upload.removeEventListener("progress",p)),r.abort()}})},t}(),N=new o.p("XSRF_COOKIE_NAME"),$=new o.p("XSRF_HEADER_NAME"),D=function(){return function(){}}(),M=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.r)(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),U=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),V=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(T,[]);this.chain=e.reduceRight(function(t,e){return new k(t,e)},this.backend)}return this.chain.handle(t)},t}(),B=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:U,useClass:P}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:N,useValue:t.cookieName}:[],t.headerName?{provide:$,useValue:t.headerName}:[]]}},t}(),F=function(){return function(){}}()},t9fZ:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("mrSG"),o=n("FFOo"),i=n("b7mW"),a=n("G5J1");function s(t){return function(e){return 0===t?Object(a.b)():e.lift(new u(t))}}var u=function(){function t(t){if(this.total=t,this.total<0)throw new i.a}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.d(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.a)},ttJE:function(t,e,n){"use strict";n.d(e,"a",function(){return b}),n.d(e,"b",function(){return g}),n.d(e,"c",function(){return v}),n.d(e,"d",function(){return y}),n.d(e,"e",function(){return r}),n.d(e,"f",function(){return o}),n.d(e,"g",function(){return i});var r=function(t){return i(t)},o=function(t,e){return"string"==typeof t&&(e=t,t=void 0),r(t).includes(e)},i=function(t){void 0===t&&(t=window),t.Ionic=t.Ionic||{};var e=t.Ionic.platforms;return null==e&&(e=t.Ionic.platforms=a(t)).forEach(function(e){return t.document.documentElement.classList.add("plt-"+e)}),e},a=function(t){return Object.keys(m).filter(function(e){return m[e](t)})},s=function(t){return!!h(t,/iPad/i)||!(!h(t,/Macintosh/i)||!c(t))},u=function(t){return h(t,/android|sink/i)},c=function(t){return p(t,"(any-pointer:coarse)")},l=function(t){return f(t)||d(t)},f=function(t){return!!(t.cordova||t.phonegap||t.PhoneGap)},d=function(t){var e=t.Capacitor;return!(!e||!e.isNative)},h=function(t,e){return e.test(t.navigator.userAgent)},p=function(t,e){return t.matchMedia(e).matches},m={ipad:s,iphone:function(t){return h(t,/iPhone/i)},ios:function(t){return h(t,/iPhone|iPod/i)||s(t)},android:u,phablet:function(t){var e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),o=Math.max(e,n);return r>390&&r<520&&o>620&&o<800},tablet:function(t){var e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),o=Math.max(e,n);return s(t)||function(t){return u(t)&&!h(t,/mobile/i)}(t)||r>460&&r<820&&o>780&&o<1400},cordova:f,capacitor:d,electron:function(t){return h(t,/electron/i)},pwa:function(t){return!(!t.matchMedia("(display-mode: standalone)").matches&&!t.navigator.standalone)},mobile:c,mobileweb:function(t){return c(t)&&!l(t)},desktop:function(t){return!c(t)},hybrid:l},g=new(function(){function t(){this.m=new Map}return t.prototype.reset=function(t){this.m=new Map(Object.entries(t))},t.prototype.get=function(t,e){var n=this.m.get(t);return void 0!==n?n:e},t.prototype.getBoolean=function(t,e){void 0===e&&(e=!1);var n=this.m.get(t);return void 0===n?e:"string"==typeof n?"true"===n:!!n},t.prototype.getNumber=function(t,e){var n=parseFloat(this.m.get(t));return isNaN(n)?void 0!==e?e:NaN:n},t.prototype.set=function(t,e){this.m.set(t,e)},t}()),v=function(t){try{var e=t.sessionStorage.getItem(S);return null!==e?JSON.parse(e):{}}catch(n){return{}}},y=function(t,e){try{t.sessionStorage.setItem(S,JSON.stringify(e))}catch(n){return}},b=function(t){var e={};return t.location.search.slice(1).split("&").map(function(t){return t.split("=")}).map(function(t){var e=t[1];return[decodeURIComponent(t[0]),decodeURIComponent(e)]}).filter(function(t){return w(t[0],x)}).map(function(t){var e=t[1];return[t[0].slice(x.length),e]}).forEach(function(t){e[t[0]]=t[1]}),e},w=function(t,e){return t.substr(0,e.length)===e},x="ionic:",S="ionic-persist-config"},u67D:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("En8+"),o=function(t){return function(e){for(var n=t[r.a]();;){var o=n.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}}},wSPg:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return c}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return p}),n.d(e,"f",function(){return a}),n.d(e,"g",function(){return i}),n.d(e,"h",function(){return d}),n.d(e,"i",function(){return l}),n.d(e,"j",function(){return f}),n.d(e,"k",function(){return o});var r=n("mrSG"),o=function(t){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t)},i=function(t){return!!t.shadowRoot&&!!t.attachShadow},a=function(t){var e=t.closest("ion-item");return e?e.querySelector("ion-label"):null},s=function(t,e,n,r,o){if(t||i(e)){var a=e.querySelector("input.aux-input");a||((a=e.ownerDocument.createElement("input")).type="hidden",a.classList.add("aux-input"),e.appendChild(a)),a.disabled=o,a.name=n,a.value=r||""}},u=function(t,e,n){return Math.max(t,Math.min(e,n))},c=function(t,e){if(!t){var n="ASSERT: "+e;throw console.error(n),new Error(n)}},l=function(t){return t.timeStamp||Date.now()},f=function(t){if(t){var e=t.changedTouches;if(e&&e.length>0){var n=e[0];return{x:n.clientX,y:n.clientY}}if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY}}return{x:0,y:0}},d=function(t){var e="rtl"===document.dir;switch(t){case"start":return e;case"end":return!e;default:throw new Error('"'+t+'" is not a valid value for [side]. Use "start" or "end" instead.')}},h=function(t,e){var n=t._original||t;return{_original:t,emit:p(n.emit.bind(n),e)}},p=function(t,e){var n;return void 0===e&&(e=0),function(){for(var o=[],i=0;i0},t.prototype.isDisabled=function(t){var e=this.disabledGestures.get(t);return!!(e&&e.size>0)},t.prototype.newID=function(){return this.gestureId++,this.gestureId},t}(),i=function(){function t(t,e,n,r,o){this.id=e,this.name=n,this.disableScroll=o,this.priority=1e6*r+e,this.ctrl=t}return t.prototype.canStart=function(){return!!this.ctrl&&this.ctrl.canStart(this.name)},t.prototype.start=function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)},t.prototype.capture=function(){if(!this.ctrl)return!1;var t=this.ctrl.capture(this.name,this.id,this.priority);return t&&this.disableScroll&&this.ctrl.disableScroll(this.id),t},t.prototype.release=function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))},t.prototype.destroy=function(){this.release(),this.ctrl=void 0},t}(),a=function(){function t(t,e,n,r){this.id=e,this.disable=n,this.disableScroll=r,this.ctrl=t}return t.prototype.block=function(){if(this.ctrl){if(this.disable)for(var t=0,e=this.disable;ta?1:h<-a?-1:0,l=!1,!0},isGesture:function(){return 0!==f},getDirection:function(){return f}}}(0,i.threshold),x=u.createGesture({name:t.gestureName,priority:t.gesturePriority,disableScroll:t.disableScroll}),S=function(){e&&(o=!1,v&&v(b))},O=function(){return!(x&&!x.capture()||(e=!0,r=!1,b.startX=b.currentX,b.startY=b.currentY,b.startTimeStamp=b.timeStamp,s?s(b).then(_):_(),0))},_=function(){l&&l(b),r=!0},E=function(){e=!1,n=!1,o=!1,r=!0,x.release()},C=function(t){var n=e,o=r;E(),o&&(h(b,t),n?d&&d(b):g&&g(b))},j=function(t,e,n,r,o){var i,a,s,u,l,d,h,p=0,m=function(r){p=Date.now()+2e3,e(r)&&(!a&&n&&(a=c(t,"touchmove",n,o)),s||(s=c(t,"touchend",v,o)),u||(u=c(t,"touchcancel",v,o)))},g=function(r){p>Date.now()||e(r)&&(!d&&n&&(d=c(f(t),"mousemove",n,o)),h||(h=c(f(t),"mouseup",y,o)))},v=function(t){b(),r&&r(t)},y=function(t){w(),r&&r(t)},b=function(){a&&a(),s&&s(),u&&u(),a=s=u=void 0},w=function(){d&&d(),h&&h(),d=h=void 0},x=function(){b(),w()},S=function(e){e?(i&&i(),l&&l(),i=l=void 0,x()):(i||(i=c(t,"touchstart",m,o)),l||(l=c(t,"mousedown",g,o)))};return{setDisabled:S,stop:x,destroy:function(){S(!0),r=n=e=void 0}}}(i.el,function(t){var e=m(t);return!(n||!r)&&(p(t,b),b.startX=b.currentX,b.startY=b.currentY,b.startTimeStamp=b.timeStamp=e,b.velocityX=b.velocityY=b.deltaX=b.deltaY=0,b.event=t,(!a||!1!==a(b))&&(x.release(),!!x.start()&&(n=!0,0===y?O():(w.start(b.startX,b.startY),!0))))},function(t){e?!o&&r&&(o=!0,h(b,t),requestAnimationFrame(S)):(h(b,t),w.detect(b.currentX,b.currentY)&&(w.isGesture()&&O()||k()))},C,{capture:!1}),k=function(){E(),j.stop(),g&&g(b)};return{setDisabled:function(t){t&&e&&C(void 0),j.setDisabled(t)},destroy:function(){x.destroy(),j.destroy()}}},h=function(t,e){if(e){var n=t.currentX,r=t.currentY,o=t.timeStamp;p(e,t);var i=t.currentX,a=t.currentY,s=(t.timeStamp=m(e))-o;if(s>0&&s<100){var u=(a-r)/s;t.velocityX=(i-n)/s*.7+.3*t.velocityX,t.velocityY=.7*u+.3*t.velocityY}t.deltaX=i-t.startX,t.deltaY=a-t.startY,t.event=e}},p=function(t,e){var n=0,r=0;if(t){var o=t.changedTouches;if(o&&o.length>0){var i=o[0];n=i.clientX,r=i.clientY}else void 0!==t.pageX&&(n=t.pageX,r=t.pageY)}e.currentX=n,e.currentY=r},m=function(t){return t.timeStamp||Date.now()}},y3By:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var r=n("+umK");function o(){for(var t=[],e=0;e191&&r<224?i[a++]=(31&r)<<6|63&t[e++]:r>239&&r<365?(r=((7&r)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,i[a++]=55296+(r>>10),i[a++]=56320+(1023&r)):i[a++]=(15&r)<<12|(63&t[e++])<<6|63&t[e++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},r.write=function(t,e,n){for(var r,o,i=n,a=0;a>6|192,e[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(o=t.charCodeAt(a+1)))?(++a,e[n++]=(r=65536+((1023&r)<<10)+(1023&o))>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|128);return n-i}},yTNM:function(t,e,n){"use strict";var r=n("mrSG"),o=n("6blF"),i=n("67Y/"),a=n("9Z1F"),s=n("t/Na"),u=n("AytR"),c=n("ZZ/e"),l=n("q2yH"),f=n("dtEc"),d=n("CcnG"),h=n("A7o+");n.d(e,"a",function(){return p});var p=function(){function t(t,e,n,r,o,i){this.logger=t,this.translate=e,this.http=n,this.loadingController=r,this.actionSheetController=o,this.alertController=i,this.isDemo=window.location.hostname.indexOf("demo.self-o-mat.de")>-1,this.isUpdating=!1,this.endUpdateingTimerID=null,this.postTimer=null,this.postLoadingController=null,this.headers=null,this.headers=new s.g({lang:this.translate.currentLang})}return t.prototype.values=function(t){return null==t?[]:Object.entries(t).filter(function(t){return null!==t[1]}).map(function(t){return t[1]})},t.prototype.isBoolean=function(t){return"boolean"==typeof t},t.prototype.isNumber=function(t){return"number"==typeof t},t.prototype.isList=function(t){return t instanceof l.xtech.selfomat.ListSetting},t.prototype.isReadOnly=function(t){return t instanceof l.xtech.selfomat.ReadOnlySetting},t.prototype.isPost=function(t){return t instanceof l.xtech.selfomat.PostSetting},t.prototype.isFileUpload=function(t){return t instanceof l.xtech.selfomat.FileUploadSetting},t.prototype.isLink=function(t){return t instanceof l.xtech.selfomat.LinkSetting},t.prototype.getList=function(t){return this.isList(t)?t:null},t.prototype.getCameraSettings=function(){var t=this;return this.isDemo?new o.a(function(e){var n=new l.xtech.selfomat.CameraSettings;n.iso=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.CAMERA.iso"),values:["Auto","100","125","160","200","250","320","400","500","640","800","1000"],currentIndex:0,updateUrl:null}),n.aperture=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.CAMERA.aperture"),values:["1.8","2","2.2","2.5","2.8","3.2","3.5","4","4.5","5","5.6","6.3","7.1","8","9","10","11","13","14","16","18","20","22"],currentIndex:6,updateUrl:null}),n.shutterSpeed=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.CAMERA.shutterSpeed"),values:["Auto"],currentIndex:0,updateUrl:null}),n.exposureCompensation=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.CAMERA.exposureCompensation"),values:["-5","-4.6","-4.3","-4","-3.6","-3.3","-3","-2.6","-2.3","-2","-1.6","-1.3","-1","-0.6","-0.3","0","0.3","0.6","1","1.3","1.6","2","2.3","2.6","3","3.3","3.6","4","4.3","4.6","5"],currentIndex:13,updateUrl:null}),n.imageFormat=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.CAMERA.imageFormat"),values:["RAW + Tiny JPEG","RAW + Medium Fine JPEG","RAW + Large Fine JPEG"],currentIndex:2,updateUrl:null}),n.cameraName=new l.xtech.selfomat.ReadOnlySetting({name:t.translate.instant("DEMO.CAMERA.cameraName"),value:"Canon EOS 5D Mark III"}),n.lensName=new l.xtech.selfomat.ReadOnlySetting({name:t.translate.instant("DEMO.CAMERA.lensName"),value:"EF24-70mm f/4L IS USM"}),n.focus=new l.xtech.selfomat.PostSetting({name:t.translate.instant("DEMO.CAMERA.focus"),postUrl:null}),e.next(n),e.complete()}):this.http.get(u.a.SERVER_URL+"/camera_settings",{responseType:"arraybuffer",headers:this.headers}).pipe(Object(i.a)(function(e){return t.parseCameraSettings(e)}),Object(a.a)(this.handleError))},t.prototype.getBoothSettings=function(){var t=this;return this.isDemo?new o.a(function(e){var n=new l.xtech.selfomat.BoothSettings;n.storageEnabled=new l.xtech.selfomat.BoolSetting({name:t.translate.instant("DEMO.BOOTH.storageEnabled"),currentValue:!0,updateUrl:null}),n.printerEnabled=new l.xtech.selfomat.BoolSetting({name:t.translate.instant("DEMO.BOOTH.printerEnabled"),currentValue:!1,updateUrl:null}),n.flashEnabled=new l.xtech.selfomat.BoolSetting({name:t.translate.instant("DEMO.BOOTH.flashEnabled"),currentValue:!0,updateUrl:null}),n.flashDurationMicros=new l.xtech.selfomat.IntSetting({name:t.translate.instant("DEMO.BOOTH.flashDurationMicros"),currentValue:80,minValue:0,maxValue:100,updateUrl:null}),n.countdownDuration=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.BOOTH.countdownDuration"),values:["3s","4s","5s","6s","7s","8s","9s","10s","15s","30s"],currentIndex:2,updateUrl:null}),n.filterChoice=new l.xtech.selfomat.ListSetting({name:t.translate.instant("DEMO.BOOTH.filterChoice"),values:["Off","Auto"],currentIndex:1,updateUrl:null}),n.filterGain=new l.xtech.selfomat.FloatSetting({name:t.translate.instant("DEMO.BOOTH.filterGain"),currentValue:.5,minValue:0,maxValue:1,updateUrl:null}),n.templateUpload=new l.xtech.selfomat.FileUploadSetting({name:t.translate.instant("DEMO.BOOTH.templateUpload"),postUrl:null,inputAccept:"image/x-png,image/png"}),n.templateEnabled=new l.xtech.selfomat.BoolSetting({name:t.translate.instant("DEMO.BOOTH.templateEnabled"),currentValue:!1,updateUrl:null}),n.cupsLink=new l.xtech.selfomat.LinkSetting({name:t.translate.instant("DEMO.BOOTH.cupsLink"),url:"https://www.cups.org"}),n.updateMode=new l.xtech.selfomat.PostSetting({name:t.translate.instant("DEMO.BOOTH.updateMode"),postUrl:null,alert:t.translate.instant("DEMO.BOOTH.updateModeAlert")}),e.next(n),e.complete()}):this.http.get(u.a.SERVER_URL+"/booth_settings",{responseType:"arraybuffer",headers:this.headers}).pipe(Object(i.a)(function(e){return t.parseBoothSettings(e)}),Object(a.a)(this.handleError))},t.prototype.parseCameraSettings=function(t){var e=l.xtech.selfomat.CameraSettings.decode(new Uint8Array(t));return this.checkPostTimer(),this.logger.setUserProperty("camera",e.cameraName.value),this.logger.setUserProperty("lens",e.lensName.value),e},t.prototype.parseBoothSettings=function(t){var e=l.xtech.selfomat.BoothSettings.decode(new Uint8Array(t));return this.checkPostTimer(),e},t.prototype.parseBoothError=function(t){return l.xtech.selfomat.BoothError.decode(new Uint8Array(t))},t.prototype.handleError=function(t){return console.error(t),function(t,e){return new o.a(function(e){return e.error(t)})}(t||"Server error")},t.prototype.presentAlert=function(t,e){return r.b(this,void 0,void 0,function(){return r.e(this,function(n){switch(n.label){case 0:return[4,this.alertController.create({header:t,subHeader:null,message:e,buttons:["OK"]})];case 1:return[4,n.sent().present()];case 2:return n.sent(),[2]}})})},t.prototype.clickItem=function(t,e,n){if(t.stopPropagation(),this.isFileUpload(e)){var r=document.getElementById("input_"+n);if(r.value)try{r.value="",r.value&&(r.type="text",r.type="file")}catch(o){}r.click()}else this.isPost(e)?this.post(t,e):this.isLink(e)&&(window.location.href=e.url)},t.prototype.updateSetting=function(t,e){var n,r=this;if(this.isUpdating||(this.isUpdating=!0,this.endUpdateingTimerID=setTimeout(function(){r.isUpdating=!1,r.endUpdateingTimerID=null},5e3)),e instanceof l.xtech.selfomat.BoolSetting){var o=l.xtech.selfomat.BoolUpdate.create({value:e.currentValue});n=l.xtech.selfomat.BoolUpdate.encode(o).finish()}else e instanceof l.xtech.selfomat.FloatSetting?(o=l.xtech.selfomat.FloatUpdate.create({value:e.currentValue}),n=l.xtech.selfomat.FloatUpdate.encode(o).finish()):e instanceof l.xtech.selfomat.IntSetting?(o=l.xtech.selfomat.IntUpdate.create({value:e.currentValue}),n=l.xtech.selfomat.IntUpdate.encode(o).finish()):e instanceof l.xtech.selfomat.ListSetting&&(console.log("LIST"),o=l.xtech.selfomat.IntUpdate.create({value:e.currentIndex}),n=l.xtech.selfomat.IntUpdate.encode(o).finish());this.isDemo||this.http.post(u.a.SERVER_URL+e.updateUrl,n.buffer.slice(n.byteOffset,n.byteLength+n.byteOffset),{headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"arraybuffer"}).subscribe(function(t){},function(t){console.log(t)})},t.prototype.checkPostTimer=function(){null!=this.postTimer&&null!=this.postLoadingController&&Date.now()-this.postTimer>1e4&&(this.postLoadingController.dismiss(),this.postLoadingController=null,this.postTimer=null)},t.prototype.postWithoutHint=function(t){return r.b(this,void 0,void 0,function(){var e,n=this;return r.e(this,function(r){switch(r.label){case 0:return t instanceof l.xtech.selfomat.PostSetting?null!=this.postLoadingController?[3,3]:(e=this,[4,this.loadingController.create({})]):[3,4];case 1:return e.postLoadingController=r.sent(),[4,this.postLoadingController.present()];case 2:r.sent(),r.label=3;case 3:this.postTimer=Date.now(),this.isDemo?(this.postLoadingController.dismiss(),this.postLoadingController=null,this.postTimer=null):(this.logger.logEvent("post",t.postUrl),this.http.post(u.a.SERVER_URL+t.postUrl,null,{responseType:"text"}).subscribe(function(t){n.postLoadingController.dismiss(),n.postLoadingController=null,n.postTimer=null},function(t){})),r.label=4;case 4:return[2]}})})},t.prototype.post=function(t,e){return r.b(this,void 0,void 0,function(){var t=this;return r.e(this,function(n){switch(n.label){case 0:return this.isPost(e)?e.alert.length>0?[4,this.actionSheetController.create({header:e.alert,buttons:[{text:e.name,handler:function(){t.postWithoutHint(e)}},{text:this.translate.instant("CANCEL"),role:"cancel",handler:function(){}}]})]:[3,3]:[3,4];case 1:return[4,n.sent().present()];case 2:return n.sent(),[3,4];case 3:this.postWithoutHint(e),n.label=4;case 4:return[2]}})})},t.prototype.fileUpload=function(t,e){return r.b(this,void 0,void 0,function(){var n,o,i;return r.e(this,function(r){switch(r.label){case 0:return e instanceof l.xtech.selfomat.FileUploadSetting?t.target.files.lengh<1?[2]:(n=t.target.files[0],e.inputAccept.length>0&&!e.inputAccept.split(",").includes(n.type.toLowerCase())?(this.presentAlert(this.translate.instant("ERROR"),this.translate.instant("ERRORS.fileUnsupported")),[2]):null!=this.postLoadingController?[3,3]:(o=this,[4,this.loadingController.create({})])):[3,4];case 1:return o.postLoadingController=r.sent(),[4,this.postLoadingController.present()];case 2:r.sent(),r.label=3;case 3:this.logger.logEvent("file_upload",n.name),(i=new FileReader).onload=(function(){if(this.isDemo)return this.postLoadingController.dismiss(),void(this.postLoadingController=null);var t=new Uint8Array(i.result),n=new XMLHttpRequest;n.open("POST",u.a.SERVER_URL+e.postUrl,!0),n.setRequestHeader("content-type","blob"),n.setRequestHeader("lang",this.translate.currentLang),n.responseType="arraybuffer",n.onreadystatechange=(function(){if(n.readyState===XMLHttpRequest.DONE){this.postLoadingController.dismiss(),this.postLoadingController=null;try{var t=this.parseBoothError(n.response);t.code>0&&this.presentAlert(t.title,t.message)}catch(e){}}}).bind(this),n.onerror=n.onreadystatechange,n.send(t)}).bind(this),i.onerror=(function(){this.postLoadingController.dismiss(),this.postLoadingController=null}).bind(this),i.readAsArrayBuffer(n),r.label=4;case 4:return[2]}})})},t.prototype.trigger=function(){this.isDemo||(this.logger.logEvent("trigger"),this.http.post(u.a.SERVER_URL+"/trigger",null,{responseType:"text"}).subscribe(function(t){},function(t){console.log(t)}))},t.ngInjectableDef=d.R({factory:function(){return new t(d.V(f.a),d.V(h.j),d.V(s.c),d.V(c.Gb),d.V(c.a),d.V(c.b))},token:t,providedIn:"root"}),t}()},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("CcnG"),o=n("AytR"),i=function(){function t(t,e,n){void 0===e&&(e="/assets/i18n/"),void 0===n&&(n=".json"),this.http=t,this.prefix=e,this.suffix=n}return t.prototype.getTranslation=function(t){return this.http.get(""+this.prefix+t+this.suffix)},t}(),a=function(t){return new i(t,"assets/i18n/",".json")},s=function(){return function(){}}(),u=n("ZZ/e"),c=n("mrSG"),l=n("a3Cf"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.d)(e,t),e.prototype.show=function(){return Object(l.cordova)(this,"show",{sync:!0},arguments)},e.prototype.hide=function(){return Object(l.cordova)(this,"hide",{sync:!0},arguments)},e.pluginName="SplashScreen",e.plugin="cordova-plugin-splashscreen",e.pluginRef="navigator.splashscreen",e.repo="https://github.com/apache/cordova-plugin-splashscreen",e.platforms=["Amazon Fire OS","Android","iOS","Windows"],e}(l.IonicNativePlugin),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.d)(e,t),e.prototype.overlaysWebView=function(t){return Object(l.cordova)(this,"overlaysWebView",{sync:!0},arguments)},e.prototype.styleDefault=function(){return Object(l.cordova)(this,"styleDefault",{sync:!0},arguments)},e.prototype.styleLightContent=function(){return Object(l.cordova)(this,"styleLightContent",{sync:!0},arguments)},e.prototype.styleBlackTranslucent=function(){return Object(l.cordova)(this,"styleBlackTranslucent",{sync:!0},arguments)},e.prototype.styleBlackOpaque=function(){return Object(l.cordova)(this,"styleBlackOpaque",{sync:!0},arguments)},e.prototype.backgroundColorByName=function(t){return Object(l.cordova)(this,"backgroundColorByName",{sync:!0},arguments)},e.prototype.backgroundColorByHexString=function(t){return Object(l.cordova)(this,"backgroundColorByHexString",{sync:!0},arguments)},e.prototype.hide=function(){return Object(l.cordova)(this,"hide",{sync:!0},arguments)},e.prototype.show=function(){return Object(l.cordova)(this,"show",{sync:!0},arguments)},Object.defineProperty(e.prototype,"isVisible",{get:function(){return Object(l.cordovaPropertyGet)(this,"isVisible")},set:function(t){Object(l.cordovaPropertySet)(this,"isVisible",t)},enumerable:!0,configurable:!0}),e.pluginName="StatusBar",e.plugin="cordova-plugin-statusbar",e.pluginRef="StatusBar",e.repo="https://github.com/apache/cordova-plugin-statusbar",e.platforms=["Android","iOS","Windows"],e}(l.IonicNativePlugin),h=n("A7o+"),p=function(){function t(t){this.translate=t;var e=this.translate.getBrowserLang();this.translate.setDefaultLang(e),this.translate.use(e)}return t.ngInjectableDef=r.R({factory:function(){return new t(r.V(h.j))},token:t,providedIn:"root"}),t}(),m=function(){function t(t,e,n,r){this.platform=t,this.splashScreen=e,this.statusBar=n,this.languageService=r,this.initializeApp()}return t.prototype.initializeApp=function(){var t=this;this.platform.ready().then(function(){t.statusBar.styleDefault(),t.splashScreen.hide()})},t}(),g=n("pMnS"),v=n("oBZk"),y=n("ZYCi"),b=n("Ip0R"),w=r.mb({encapsulation:2,styles:[],data:{}});function x(t){return r.Fb(0,[(t()(),r.ob(0,0,null,null,3,"ion-app",[],null,null,null,v.t,v.a)),r.nb(1,49152,null,0,u.f,[r.h,r.k,r.z],null,null),(t()(),r.ob(2,16777216,null,0,1,"ion-router-outlet",[],null,null,null,null,null)),r.nb(3,212992,null,0,u.ib,[y.b,r.N,r.j,[8,null],[8,null],u.e,u.Ib,b.f,r.k,y.m,r.z,y.a,[3,u.ib]],null,null)],function(t,e){t(e,3,0)},null)}function S(t){return r.Fb(0,[(t()(),r.ob(0,0,null,null,1,"app-root",[],null,null,null,x,w)),r.nb(1,49152,null,0,m,[u.Jb,f,d,p],null,null)],null,null)}var O=r.kb("app-root",m,S,{},{},[]),_=n("ZYjt"),E=n("t/Na"),C=n("yTNM"),j=n("dtEc"),k=function(){return function(){}}(),T=r.lb(s,[m],function(t){return r.vb([r.wb(512,r.j,r.ab,[[8,[g.a,O]],[3,r.j],r.x]),r.wb(5120,r.u,r.jb,[[3,r.u]]),r.wb(4608,b.k,b.j,[r.u,[2,b.q]]),r.wb(5120,r.c,r.gb,[]),r.wb(5120,r.s,r.hb,[]),r.wb(5120,r.t,r.ib,[]),r.wb(4608,_.b,_.k,[b.c]),r.wb(6144,r.F,null,[_.b]),r.wb(4608,_.e,_.g,[]),r.wb(5120,_.c,function(t,e,n,r,o,i,a,s){return[new _.i(t,e,n),new _.n(r),new _.m(o,i,a,s)]},[b.c,r.z,r.B,b.c,b.c,_.e,r.bb,[2,_.f]]),r.wb(4608,_.d,_.d,[_.c,r.z]),r.wb(135680,_.l,_.l,[b.c]),r.wb(4608,_.j,_.j,[_.d,_.l,r.c]),r.wb(6144,r.D,null,[_.j]),r.wb(6144,_.o,null,[_.l]),r.wb(4608,r.L,r.L,[r.z]),r.wb(4608,E.i,E.o,[b.c,r.B,E.m]),r.wb(4608,E.p,E.p,[E.i,E.n]),r.wb(5120,E.a,function(t){return[t]},[E.p]),r.wb(4608,E.l,E.l,[]),r.wb(6144,E.j,null,[E.l]),r.wb(4608,E.h,E.h,[E.j]),r.wb(6144,E.b,null,[E.h]),r.wb(4608,E.f,E.k,[E.b,r.q]),r.wb(4608,E.c,E.c,[E.f]),r.wb(4608,u.c,u.c,[r.z,r.g]),r.wb(4608,u.Hb,u.Hb,[u.c,r.j,r.q]),r.wb(4608,u.Kb,u.Kb,[u.c,r.j,r.q]),r.wb(5120,y.a,y.z,[y.m]),r.wb(4608,y.g,y.g,[]),r.wb(6144,y.h,null,[y.g]),r.wb(135680,y.p,y.p,[y.m,r.w,r.i,r.q,y.h]),r.wb(4608,y.e,y.e,[]),r.wb(5120,y.D,y.v,[y.m,b.n,y.i]),r.wb(5120,y.j,y.C,[y.A]),r.wb(5120,r.b,function(t){return[t]},[y.j]),r.wb(5120,h.f,a,[E.c]),r.wb(4608,h.c,h.e,[]),r.wb(4608,h.h,h.d,[]),r.wb(4608,h.b,h.a,[]),r.wb(4608,h.k,h.k,[]),r.wb(4608,h.j,h.j,[h.k,h.f,h.c,h.h,h.b,h.l,h.m]),r.wb(4608,d,d,[]),r.wb(4608,f,f,[]),r.wb(4608,C.a,C.a,[j.a,h.j,E.c,u.Gb,u.a,u.b]),r.wb(1073742336,b.b,b.b,[]),r.wb(1024,r.l,_.p,[]),r.wb(1024,r.y,function(){return[y.u()]},[]),r.wb(512,y.A,y.A,[r.q]),r.wb(256,u.Mb,{},[]),r.wb(1024,r.d,function(t,e,n,r,o){return[_.q(t),y.B(e),u.Nb(n,r,o)]},[[2,r.y],y.A,u.Mb,b.c,r.z]),r.wb(512,r.e,r.e,[[2,r.d]]),r.wb(131584,r.g,r.g,[r.z,r.bb,r.q,r.l,r.j,r.e]),r.wb(1073742336,r.f,r.f,[r.g]),r.wb(1073742336,_.a,_.a,[[3,_.a]]),r.wb(1073742336,E.e,E.e,[]),r.wb(1073742336,E.d,E.d,[]),r.wb(1073742336,u.Eb,u.Eb,[]),r.wb(1024,y.t,y.x,[[3,y.m]]),r.wb(512,y.r,y.c,[]),r.wb(512,y.b,y.b,[]),r.wb(256,y.i,{preloadingStrategy:y.g},[]),r.wb(1024,b.g,y.w,[b.m,[2,b.a],y.i]),r.wb(512,b.f,b.f,[b.g]),r.wb(512,r.i,r.i,[]),r.wb(512,r.w,r.I,[r.i,[2,r.J]]),r.wb(1024,y.k,function(){return[[{path:"",loadChildren:"./tabs/tabs.module#TabsPageModule"}]]},[]),r.wb(512,y.l,u.Fb,[]),r.wb(1024,y.m,y.y,[r.g,y.r,y.b,b.f,r.q,r.w,r.i,y.k,y.i,[2,y.q],[2,y.l]]),r.wb(1073742336,y.n,y.n,[[2,y.t],[2,y.m]]),r.wb(1073742336,k,k,[]),r.wb(1073742336,h.g,h.g,[]),r.wb(1073742336,s,s,[]),r.wb(256,r.Z,!0,[]),r.wb(256,E.m,"XSRF-TOKEN",[]),r.wb(256,E.n,"X-XSRF-TOKEN",[]),r.wb(256,h.m,void 0,[]),r.wb(256,h.l,void 0,[])])});o.a.production&&Object(r.S)(),_.h().bootstrapModuleFactory(T).catch(function(t){return console.log(t)})},zotm:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("rPjj"),o=n("Fxb1");function i(t,e,n,i,a){if(void 0===a&&(a=new r.a(t,n,i)),!a.closed)return Object(o.a)(e)(a)}}},[[0,1]]]); \ No newline at end of file