text
stringlengths
3
1.05M
from amaru.level_structures import structure_chair_small from amaru.level_structures import structure_small_table from amaru.utilities import constants def make_dinner_small(complete_locations=None, final_platforms=None, final_pig_positions=None, final_TNT_positions=None, ground=-3.5, pos_x=1): if complete_locations is None: complete_locations = [] if final_platforms is None: final_platforms = [] if final_pig_positions is None: final_pig_positions = [] if final_TNT_positions is None: final_TNT_positions = [] chair_table_distance = 1.30 complete_locations, final_platforms, final_pig_positions, final_TNT_positions = structure_small_table.make_table_small( complete_locations, final_platforms, final_pig_positions, final_TNT_positions, ground, pos_x, material="ice") complete_locations, final_platforms, final_pig_positions, final_TNT_positions = structure_chair_small.make_chair_small( complete_locations, final_platforms, final_pig_positions, final_TNT_positions, ground, pos_x - chair_table_distance, facing="right") complete_locations, final_platforms, final_pig_positions, final_TNT_positions = structure_chair_small.make_chair_small( complete_locations, final_platforms, final_pig_positions, final_TNT_positions, ground, pos_x + chair_table_distance, facing="left") ground_width = (chair_table_distance + constants.blocks['8'][0] / 2) * 2 return complete_locations, final_platforms, final_pig_positions, final_TNT_positions
"use strict"; require("core-js/modules/es.array.every"); require("core-js/modules/es.regexp.exec"); require("core-js/modules/es.string.starts-with"); exports.__esModule = true; exports.formatToken = formatToken; exports.parseForDateTimeFormat = parseForDateTimeFormat; exports.parseForNumberFormat = parseForNumberFormat; exports.parse = parse; exports.isEscapeToken = isEscapeToken; exports.FormatExpressionType = exports.TokenType = void 0; /** * @license * Copyright (c) 2020 Handsoncode. All rights reserved. */ var dateFormatRegex = /(\\.|dd|DD|d|D|mm|MM|m|M|YYYY|YY|yyyy|yy|HH|hh|H|h|ss(\.(0+|s+))?|s|AM\/PM|am\/pm|A\/P|a\/p|\[mm]|\[MM]|\[hh]|\[HH])/g; var numberFormatRegex = /(\\.|[#0]+(\.[#0]*)?)/g; var TokenType; exports.TokenType = TokenType; (function (TokenType) { TokenType["FORMAT"] = "FORMAT"; TokenType["FREE_TEXT"] = "FREE_TEXT"; })(TokenType || (exports.TokenType = TokenType = {})); function formatToken(type, value) { return { type: type, value: value }; } var FormatExpressionType; exports.FormatExpressionType = FormatExpressionType; (function (FormatExpressionType) { FormatExpressionType["DATE"] = "DATE"; FormatExpressionType["NUMBER"] = "NUMBER"; FormatExpressionType["STRING"] = "STRING"; })(FormatExpressionType || (exports.FormatExpressionType = FormatExpressionType = {})); function matchDateFormat(str) { dateFormatRegex.lastIndex = 0; var tokens = []; var m; do { m = dateFormatRegex.exec(str); if (m !== null) { tokens.push(m); } } while (m); return tokens; } function matchNumberFormat(str) { numberFormatRegex.lastIndex = 0; var numberFormatToken = numberFormatRegex.exec(str); if (numberFormatToken !== null) { return [numberFormatToken]; } else { return []; } } function createTokens(regexTokens, str) { var tokens = []; var start = 0; for (var i = 0; i < regexTokens.length; ++i) { var token = regexTokens[i]; if (token.index !== start) { var beforeToken = str.substr(start, token.index - start); tokens.push(formatToken(TokenType.FREE_TEXT, beforeToken)); } if (token[0].startsWith('\\')) { tokens.push(formatToken(TokenType.FREE_TEXT, token[0])); } else { tokens.push(formatToken(TokenType.FORMAT, token[0])); } start = token.index + token[0].length; } var lastToken = regexTokens[regexTokens.length - 1]; if (lastToken.index + lastToken[0].length < str.length) { var afterLastToken = str.substr(lastToken.index + lastToken[0].length, str.length); tokens.push(formatToken(TokenType.FREE_TEXT, afterLastToken)); } return tokens; } function parseForDateTimeFormat(str) { var dateFormatTokens = matchDateFormat(str); if (dateFormatTokens.every(function (elem) { return isEscapeToken(elem); })) { return undefined; } else { return { type: FormatExpressionType.DATE, tokens: createTokens(dateFormatTokens, str) }; } } function parseForNumberFormat(str) { var numberFormatTokens = matchNumberFormat(str); if (numberFormatTokens.every(function (elem) { return isEscapeToken(elem); })) { return undefined; } else { return { type: FormatExpressionType.NUMBER, tokens: createTokens(numberFormatTokens, str) }; } } function parse(str) { var _a, _b; return (_b = (_a = parseForDateTimeFormat(str)) !== null && _a !== void 0 ? _a : parseForNumberFormat(str)) !== null && _b !== void 0 ? _b : { type: FormatExpressionType.STRING, tokens: [{ type: TokenType.FREE_TEXT, value: str }] }; } function isEscapeToken(token) { return token[0].startsWith('\\'); }
import angular from 'angular'; import '../image/service'; import '../edits/service'; import '../analytics/track'; import '../components/gr-delete-image/gr-delete-image'; var image = angular.module( 'kahuna.image.controller', [ 'kahuna.edits.service', 'gr.image.service', 'analytics.track', 'gr.deleteImage' ] ); image.controller('ImageCtrl', [ '$rootScope', '$scope', '$state', '$window', 'onValChange', 'image', 'mediaApi', 'optimisedImageUri', 'cropKey', 'mediaCropper', 'editsService', 'editsApi', 'imageService', 'track', function ($rootScope, $scope, $state, $window, onValChange, image, mediaApi, optimisedImageUri, cropKey, mediaCropper, editsService, editsApi, imageService, track) { var ctrl = this; ctrl.credits = function(searchText) { return ctrl.metadataSearch('credit', searchText); }; ctrl.metadataSearch = (field, q) => { return mediaApi.metadataSearch(field, { q }).then(resource => { return resource.data.map(d => d.key); }); }; ctrl.image = image; ctrl.usageRights = imageService(image).usageRights; ctrl.optimisedImageUri = optimisedImageUri; ctrl.setUsageCategory = (cats, categoryCode) => { const usageCategory = cats.find(cat => cat.value === categoryCode); ctrl.usageCategory = usageCategory ? usageCategory.name : categoryCode; }; editsApi.getUsageRightsCategories().then((cats) => { ctrl.usageCategories = cats; ctrl.setUsageCategory(cats, ctrl.usageRights.data.category); }); // TODO: we should be able to rely on ctrl.crop.id instead once // all existing crops are migrated to have an id (they didn't // initially) ctrl.cropKey = cropKey; // Alias for convenience in view ctrl.metadata = image.data.metadata; // Map of metadata location field to query filter name ctrl.locationFieldMap = { 'subLocation': 'location', 'city': 'city', 'state': 'state', 'country': 'country' }; ctrl.isUsefulMetadata = isUsefulMetadata; ctrl.cropSelected = cropSelected; // TODO: move this to a more sensible place. function getCropDimensions() { return { width: ctrl.crop.specification.bounds.width, height: ctrl.crop.specification.bounds.height }; } // TODO: move this to a more sensible place. function getImageDimensions() { return ctrl.image.data.source.dimensions; } mediaCropper.getCropsFor(image).then(crops => { ctrl.crops = crops; ctrl.crop = crops.find(crop => crop.id === cropKey); }).finally(() => { ctrl.dimensions = angular.isDefined(ctrl.crop) ? getCropDimensions() : getImageDimensions(); if (angular.isDefined(ctrl.crop)) { ctrl.originalDimensions = getImageDimensions(); } }); updateAbilities(image); var ignoredMetadata = [ 'title', 'description', 'copyright', 'keywords', 'byline', 'credit', 'subLocation', 'city', 'state', 'country', 'dateTaken', 'specialInstructions' ]; function isUsefulMetadata(metadataKey) { return ignoredMetadata.indexOf(metadataKey) === -1; } function cropSelected(crop) { $rootScope.$emit('events:crop-selected', { image: ctrl.image, crop: crop }); } function updateAbilities(image) { mediaApi.canDelete(image).then(deletable => { ctrl.canBeDeleted = deletable; }); mediaCropper.canBeCropped(image).then(croppable => { ctrl.canBeCropped = croppable; }); editsService.canUserEdit(image).then(editable => { ctrl.userCanEdit = editable; }); } const freeUpdateListener = $rootScope.$on('image-updated', (e, updatedImage) => { ctrl.image = updatedImage; ctrl.usageRights = imageService(ctrl.image).usageRights; ctrl.setUsageCategory(ctrl.usageCategories, ctrl.usageRights.data.category); }); ctrl.updateMetadataField = function (field, value) { return editsService.updateMetadataField(image, field, value) .then((updatedImage) => { if (updatedImage) { ctrl.image = updatedImage; updateAbilities(updatedImage); track.success('Metadata edit', { field: field }); } }) .catch(() => { track.failure('Metadata edit', { field: field }); /* Save failed. Per the angular-xeditable docs, returning a string indicates an error and will not update the local model, nor will the form close (so the edit is not lost). Instead, a message is shown and the field keeps focus for user to edit again. http://vitalets.github.io/angular-xeditable/#onbeforesave */ return 'failed to save (press esc to cancel)'; }); }; ctrl.onDeleteSuccess = function () { $state.go('search'); }; ctrl.onDeleteError = function (err) { if (err.body.errorKey === 'image-not-found') { $state.go('search'); } else { $window.alert(err.body.errorMessage); } }; $scope.$on('$destroy', function() { freeUpdateListener(); }); }]);
""" Copyright 2020 Jackpine Technologies Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ # coding: utf-8 """ cons3rt - Copyright Jackpine Technologies Corp. NOTE: This file is auto-generated. Do not edit the file manually. """ import pprint import re # noqa: F401 import six from cons3rt.configuration import Configuration __author__ = 'Jackpine Technologies Corporation' __copyright__ = 'Copyright 2020, Jackpine Technologies Corporation' __license__ = 'Apache 2.0', __version__ = '1.0.0' __maintainer__ = 'API Support' __email__ = 'support@cons3rt.com' class Deployment(object): """NOTE: This class is auto-generated. Do not edit the class manually. """ """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ openapi_types = { 'recurring_schedules': 'list[RecurringSchedule]', 'id': 'str', 'trusted_projects': 'list[Project]', 'creator': 'User', 'dependent_asset_count': 'int', 'description': 'str', 'metadata': 'Metadata', 'name': 'str', 'offline': 'bool', 'owning_project': 'Project', 'state': 'str', 'visibility': 'str', 'impact_level': 'str', 'categories': 'list[Category]', 'scenarios': 'list[DeploymentScenario]', 'test_bundles': 'list[TestBundle]', 'deployment_hosts': 'list[DeploymentHost]' } attribute_map = { 'recurring_schedules': 'recurringSchedules', 'id': 'id', 'trusted_projects': 'trustedProjects', 'creator': 'creator', 'dependent_asset_count': 'dependentAssetCount', 'description': 'description', 'metadata': 'metadata', 'name': 'name', 'offline': 'offline', 'owning_project': 'owningProject', 'state': 'state', 'visibility': 'visibility', 'impact_level': 'impactLevel', 'categories': 'categories', 'scenarios': 'scenarios', 'test_bundles': 'testBundles', 'deployment_hosts': 'deploymentHosts' } def __init__(self, recurring_schedules=None, id=None, trusted_projects=None, creator=None, dependent_asset_count=None, description=None, metadata=None, name=None, offline=None, owning_project=None, state=None, visibility=None, impact_level=None, categories=None, scenarios=None, test_bundles=None, deployment_hosts=None, local_vars_configuration=None): # noqa: E501 """Deployment - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._recurring_schedules = None self._id = None self._trusted_projects = None self._creator = None self._dependent_asset_count = None self._description = None self._metadata = None self._name = None self._offline = None self._owning_project = None self._state = None self._visibility = None self._impact_level = None self._categories = None self._scenarios = None self._test_bundles = None self._deployment_hosts = None self.discriminator = None if recurring_schedules is not None: self.recurring_schedules = recurring_schedules if id is not None: self.id = id if trusted_projects is not None: self.trusted_projects = trusted_projects if creator is not None: self.creator = creator if dependent_asset_count is not None: self.dependent_asset_count = dependent_asset_count if description is not None: self.description = description if metadata is not None: self.metadata = metadata if name is not None: self.name = name if offline is not None: self.offline = offline if owning_project is not None: self.owning_project = owning_project if state is not None: self.state = state if visibility is not None: self.visibility = visibility if impact_level is not None: self.impact_level = impact_level if categories is not None: self.categories = categories if scenarios is not None: self.scenarios = scenarios if test_bundles is not None: self.test_bundles = test_bundles if deployment_hosts is not None: self.deployment_hosts = deployment_hosts @property def recurring_schedules(self): """Gets the recurring_schedules of this Deployment. # noqa: E501 :return: The recurring_schedules of this Deployment. # noqa: E501 :rtype: list[RecurringSchedule] """ return self._recurring_schedules @recurring_schedules.setter def recurring_schedules(self, recurring_schedules): """Sets the recurring_schedules of this Deployment. :param recurring_schedules: The recurring_schedules of this Deployment. # noqa: E501 :type: list[RecurringSchedule] """ self._recurring_schedules = recurring_schedules @property def id(self): """Gets the id of this Deployment. # noqa: E501 :return: The id of this Deployment. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this Deployment. :param id: The id of this Deployment. # noqa: E501 :type: str """ self._id = id @property def trusted_projects(self): """Gets the trusted_projects of this Deployment. # noqa: E501 :return: The trusted_projects of this Deployment. # noqa: E501 :rtype: list[Project] """ return self._trusted_projects @trusted_projects.setter def trusted_projects(self, trusted_projects): """Sets the trusted_projects of this Deployment. :param trusted_projects: The trusted_projects of this Deployment. # noqa: E501 :type: list[Project] """ self._trusted_projects = trusted_projects @property def creator(self): """Gets the creator of this Deployment. # noqa: E501 :return: The creator of this Deployment. # noqa: E501 :rtype: User """ return self._creator @creator.setter def creator(self, creator): """Sets the creator of this Deployment. :param creator: The creator of this Deployment. # noqa: E501 :type: User """ self._creator = creator @property def dependent_asset_count(self): """Gets the dependent_asset_count of this Deployment. # noqa: E501 :return: The dependent_asset_count of this Deployment. # noqa: E501 :rtype: int """ return self._dependent_asset_count @dependent_asset_count.setter def dependent_asset_count(self, dependent_asset_count): """Sets the dependent_asset_count of this Deployment. :param dependent_asset_count: The dependent_asset_count of this Deployment. # noqa: E501 :type: int """ self._dependent_asset_count = dependent_asset_count @property def description(self): """Gets the description of this Deployment. # noqa: E501 :return: The description of this Deployment. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): """Sets the description of this Deployment. :param description: The description of this Deployment. # noqa: E501 :type: str """ self._description = description @property def metadata(self): """Gets the metadata of this Deployment. # noqa: E501 :return: The metadata of this Deployment. # noqa: E501 :rtype: Metadata """ return self._metadata @metadata.setter def metadata(self, metadata): """Sets the metadata of this Deployment. :param metadata: The metadata of this Deployment. # noqa: E501 :type: Metadata """ self._metadata = metadata @property def name(self): """Gets the name of this Deployment. # noqa: E501 :return: The name of this Deployment. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this Deployment. :param name: The name of this Deployment. # noqa: E501 :type: str """ self._name = name @property def offline(self): """Gets the offline of this Deployment. # noqa: E501 :return: The offline of this Deployment. # noqa: E501 :rtype: bool """ return self._offline @offline.setter def offline(self, offline): """Sets the offline of this Deployment. :param offline: The offline of this Deployment. # noqa: E501 :type: bool """ self._offline = offline @property def owning_project(self): """Gets the owning_project of this Deployment. # noqa: E501 :return: The owning_project of this Deployment. # noqa: E501 :rtype: Project """ return self._owning_project @owning_project.setter def owning_project(self, owning_project): """Sets the owning_project of this Deployment. :param owning_project: The owning_project of this Deployment. # noqa: E501 :type: Project """ self._owning_project = owning_project @property def state(self): """Gets the state of this Deployment. # noqa: E501 :return: The state of this Deployment. # noqa: E501 :rtype: str """ return self._state @state.setter def state(self, state): """Sets the state of this Deployment. :param state: The state of this Deployment. # noqa: E501 :type: str """ allowed_values = ["IN_DEVELOPMENT", "CERTIFIED", "DEPRECATED", "RETIRED"] # noqa: E501 if self.local_vars_configuration.client_side_validation and state not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 .format(state, allowed_values) ) self._state = state @property def visibility(self): """Gets the visibility of this Deployment. # noqa: E501 :return: The visibility of this Deployment. # noqa: E501 :rtype: str """ return self._visibility @visibility.setter def visibility(self, visibility): """Sets the visibility of this Deployment. :param visibility: The visibility of this Deployment. # noqa: E501 :type: str """ allowed_values = ["OWNER", "OWNING_PROJECT", "TRUSTED_PROJECTS", "COMMUNITY"] # noqa: E501 if self.local_vars_configuration.client_side_validation and visibility not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `visibility` ({0}), must be one of {1}" # noqa: E501 .format(visibility, allowed_values) ) self._visibility = visibility @property def impact_level(self): """Gets the impact_level of this Deployment. # noqa: E501 :return: The impact_level of this Deployment. # noqa: E501 :rtype: str """ return self._impact_level @impact_level.setter def impact_level(self, impact_level): """Sets the impact_level of this Deployment. :param impact_level: The impact_level of this Deployment. # noqa: E501 :type: str """ allowed_values = ["NONE", "FEDRAMP_LOW", "FEDRAMP_MODERATE_DOD_LEVEL_2", "FEDRAMP_HIGH_DOD_LEVEL_4", "DOD_LEVEL_5", "DOD_LEVEL_6"] # noqa: E501 if self.local_vars_configuration.client_side_validation and impact_level not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `impact_level` ({0}), must be one of {1}" # noqa: E501 .format(impact_level, allowed_values) ) self._impact_level = impact_level @property def categories(self): """Gets the categories of this Deployment. # noqa: E501 :return: The categories of this Deployment. # noqa: E501 :rtype: list[Category] """ return self._categories @categories.setter def categories(self, categories): """Sets the categories of this Deployment. :param categories: The categories of this Deployment. # noqa: E501 :type: list[Category] """ self._categories = categories @property def scenarios(self): """Gets the scenarios of this Deployment. # noqa: E501 :return: The scenarios of this Deployment. # noqa: E501 :rtype: list[DeploymentScenario] """ return self._scenarios @scenarios.setter def scenarios(self, scenarios): """Sets the scenarios of this Deployment. :param scenarios: The scenarios of this Deployment. # noqa: E501 :type: list[DeploymentScenario] """ self._scenarios = scenarios @property def test_bundles(self): """Gets the test_bundles of this Deployment. # noqa: E501 :return: The test_bundles of this Deployment. # noqa: E501 :rtype: list[TestBundle] """ return self._test_bundles @test_bundles.setter def test_bundles(self, test_bundles): """Sets the test_bundles of this Deployment. :param test_bundles: The test_bundles of this Deployment. # noqa: E501 :type: list[TestBundle] """ self._test_bundles = test_bundles @property def deployment_hosts(self): """Gets the deployment_hosts of this Deployment. # noqa: E501 :return: The deployment_hosts of this Deployment. # noqa: E501 :rtype: list[DeploymentHost] """ return self._deployment_hosts @deployment_hosts.setter def deployment_hosts(self, deployment_hosts): """Sets the deployment_hosts of this Deployment. :param deployment_hosts: The deployment_hosts of this Deployment. # noqa: E501 :type: list[DeploymentHost] """ self._deployment_hosts = deployment_hosts def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, Deployment): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" if not isinstance(other, Deployment): return True return self.to_dict() != other.to_dict()
const dhisDevConfig = DHIS_CONFIG; // eslint-disable-line if (process.env.NODE_ENV !== 'production') { jQuery.ajaxSetup({ headers: { Authorization: dhisDevConfig.authorization } }); // eslint-disable-line } import React from 'react'; import { render } from 'react-dom'; import { init, config, getManifest, getUserSettings, D2Library } from 'd2/lib/d2'; import log from 'loglevel'; import LoadingMask from 'd2-ui/lib/loading-mask/LoadingMask.component'; import 'react-tap-event-plugin'; import App from './app/App'; import './app/app.scss'; import d2 from 'd2/lib/d2'; import dhis2 from 'd2-ui/lib/header-bar/dhis2'; import AppTheme from './colortheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import i18next from 'i18next'; import Backend from 'i18next-xhr-backend'; /* if (process.env.NODE_ENV !== 'production') { jQuery.ajaxSetup({ // eslint-disable-line no-undef headers: { Authorization: `Basic ${btoa('admin:district')}`, }, }); } */ // Render the a LoadingMask to show the user the app is in loading // The consecutive render after we did our setup will replace this loading mask // with the rendered version of the application. render( <MuiThemeProvider muiTheme={AppTheme}> <LoadingMask /> </MuiThemeProvider> , document.getElementById('app')); function configI18n(userSettings) { i18next .use(Backend) .init({ returnEmptyString: false, fallbackLng: false, keySeparator: '|', backend: { loadPath: '/i18n/{{lng}}.json' } }, function(err, t) { const uiLocale = userSettings.keyUiLocale; if (uiLocale && uiLocale !== 'en') { i18next.changeLanguage(uiLocale); } }); } /** * Renders the application into the page. * * @param d2 Instance of the d2 library that is returned by the `init` function. */ function startApp(d2) { render( <MuiThemeProvider muiTheme={AppTheme}> <App d2={d2} /> </MuiThemeProvider>, document.querySelector('#app')); } // Load the application manifest to be able to determine the location of the Api // After we have the location of the api, we can set it onto the d2.config object // and initialise the library. We use the initialised library to pass it into the app // to make it known on the context of the app, so the sub-components (primarily the d2-ui components) // can use it to access the api, translations etc. getManifest('./manifest.webapp') .then(manifest => { const baseUrl = process.env.NODE_ENV === 'production' ? manifest.getBaseUrl() : dhisDevConfig.baseUrl; config.baseUrl = `${baseUrl}/api`; // Set the baseUrl to localhost if we are in dev mode if (process.env.NODE_ENV !== 'production') { dhis2.settings.baseUrl = baseUrl; } }) .then(getUserSettings) .then(configI18n) .then(init) .then(startApp) .catch(log.error.bind(log));
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['ku']={"editor":"سەرنووسەی دەقی تەواو","editorPanel":"بڕگەی سەرنووسەی دەقی تەواو","common":{"editorHelp":"کلیکی ALT لەگەڵ 0 بکه‌ بۆ یارمەتی","browseServer":"هێنانی ڕاژە","url":"ناونیشانی بەستەر","protocol":"پڕۆتۆکۆڵ","upload":"بارکردن","uploadSubmit":"ناردنی بۆ ڕاژە","image":"وێنە","flash":"فلاش","form":"داڕشتە","checkbox":"خانەی نیشانکردن","radio":"جێگرەوەی دوگمە","textField":"خانەی دەق","textarea":"ڕووبەری دەق","hiddenField":"شاردنەوی خانە","button":"دوگمە","select":"هەڵبژاردەی خانە","imageButton":"دوگمەی وێنە","notSet":"<هیچ دانەدراوە>","id":"ناسنامە","name":"ناو","langDir":"ئاراستەی زمان","langDirLtr":"چەپ بۆ ڕاست (LTR)","langDirRtl":"ڕاست بۆ چەپ (RTL)","langCode":"هێمای زمان","longDescr":"پێناسەی درێژی بەستەر","cssClass":"شێوازی چینی په‌ڕە","advisoryTitle":"ڕاوێژکاری سەردێڕ","cssStyle":"شێواز","ok":"باشە","cancel":"پاشگەزبوونەوە","close":"داخستن","preview":"پێشبینین","resize":"گۆڕینی ئەندازە","generalTab":"گشتی","advancedTab":"پەرەسەندوو","validateNumberFailed":"ئەم نرخە ژمارە نیە، تکایە نرخێکی ژمارە بنووسە.","confirmNewPage":"سەرجەم گۆڕانکاریەکان و پێکهاتەکانی ناووەوە لەدەست دەدەی گەر بێتوو پاشکەوتی نەکەی یەکەم جار، تۆ هەر دڵنیایی لەکردنەوەی پەنجەرەکی نوێ؟","confirmCancel":"هەندێك هەڵبژاردە گۆڕدراوە. تۆ دڵنیایی لە داخستنی ئەم دیالۆگە؟","options":"هەڵبژاردەکان","target":"ئامانج","targetNew":"پەنجەرەیەکی نوێ (_blank)","targetTop":"لووتکەی پەنجەرە (_top)","targetSelf":"لەهەمان پەنجەرە (_self)","targetParent":"پەنجەرەی باوان (_parent)","langDirLTR":"چەپ بۆ ڕاست (LTR)","langDirRTL":"ڕاست بۆ چەپ (RTL)","styles":"شێواز","cssClasses":"شێوازی چینی پەڕە","width":"پانی","height":"درێژی","align":"ڕێککەرەوە","alignLeft":"چەپ","alignRight":"ڕاست","alignCenter":"ناوەڕاست","alignJustify":"هاوستوونی","alignTop":"سەرەوە","alignMiddle":"ناوەند","alignBottom":"ژێرەوە","alignNone":"هیچ","invalidValue":"نرخێکی نادرووست.","invalidHeight":"درێژی دەبێت ژمارە بێت.","invalidWidth":"پانی دەبێت ژمارە بێت.","invalidCssLength":"ئەم نرخەی دراوە بۆ خانەی \"%1\" دەبێت ژمارەکی درووست بێت یان بێ ناونیشانی ئامرازی (px, %, in, cm, mm, em, ex, pt, یان pc).","invalidHtmlLength":"ئەم نرخەی دراوە بۆ خانەی \"%1\" دەبێت ژمارەکی درووست بێت یان بێ ناونیشانی ئامرازی HTML (px یان %).","invalidInlineStyle":"دانەی نرخی شێوازی ناوهێڵ دەبێت پێکهاتبێت لەیەك یان زیاتری داڕشتە \"ناو : نرخ\", جیاکردنەوەی بە فاریزە و خاڵ","cssLengthTooltip":"ژمارەیەك بنووسه‌ بۆ نرخی piksel یان ئامرازێکی درووستی CSS (px, %, in, cm, mm, em, ex, pt, یان pc).","unavailable":"%1<span class=\"cke_accessibility\">, ئامادە نیە</span>"},"about":{"copy":"مافی لەبەرگەرتنەوەی &copy; $1. گشتی پارێزراوه. ورگێڕانی بۆ کوردی لەلایەن هۆژە کۆیی.","dlgTitle":"دەربارەی CKEditor","help":"سەیری $1 بکه بۆ یارمەتی.","moreInfo":"بۆ زانیاری زیاتر دەربارەی مۆڵەتی بەکارهێنان، تکایه سەردانی ماڵپەڕەکەمان بکه:","title":"دەربارەی CKEditor","userGuide":"ڕێپیشاندەری CKEditors"},"basicstyles":{"bold":"قەڵەو","italic":"لار","strike":"لێدان","subscript":"ژێرنووس","superscript":"سەرنووس","underline":"ژێرهێڵ"},"bidi":{"ltr":"ئاراستەی نووسە لە چەپ بۆ ڕاست","rtl":"ئاراستەی نووسە لە ڕاست بۆ چەپ"},"blockquote":{"toolbar":"بەربەستکردنی ووتەی وەرگیراو"},"clipboard":{"copy":"لەبەرگرتنەوە","copyError":"پارێزی وێبگەڕەکەت ڕێگەنادات بەسەرنووسەکە لە لکاندنی دەقی خۆکارارنە. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+C).","cut":"بڕین","cutError":"پارێزی وێبگەڕەکەت ڕێگەنادات بە سەرنووسەکە لەبڕینی خۆکارانە. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+X).","paste":"لکاندن","pasteArea":"ناوچەی لکاندن","pasteMsg":"تکایە بیلکێنە لەناوەوەی ئەم سنوقە لەڕێی تەختەکلیلەکەت بە بەکارهێنانی کلیلی (<STRONG>Ctrl/Cmd+V</STRONG>) دووای کلیکی باشە بکە.","securityMsg":"بەهۆی شێوەپێدانی پارێزی وێبگەڕەکەت، سەرنووسەکه ناتوانێت دەستبگەیەنێت بەهەڵگیراوەکە ڕاستەوخۆ. بۆیه پێویسته دووباره بیلکێنیت لەم پەنجەرەیه.","title":"لکاندن"},"button":{"selectedLabel":"%1 (هەڵبژێردراو)"},"colorbutton":{"auto":"خۆکار","bgColorTitle":"ڕەنگی پاشبنەما","colors":{"000":"ڕەش","800000":"سۆرو ماڕوونی","8B4513":"ماڕوونی","2F4F4F":"سەوزی تاریك","008080":"سەوز و شین","000080":"شینی تۆخ","4B0082":"مۆری تۆخ","696969":"ڕەساسی تۆخ","B22222":"سۆری تۆخ","A52A2A":"قاوەیی","DAA520":"قاوەیی بریسکەدار","006400":"سەوزی تۆخ","40E0D0":"شینی ناتۆخی بریسکەدار","0000CD":"شینی مامناوەند","800080":"پەمبەیی","808080":"ڕەساسی","F00":"سۆر","FF8C00":"نارەنجی تۆخ","FFD700":"زەرد","008000":"سەوز","0FF":"شینی ئاسمانی","00F":"شین","EE82EE":"پەمەیی","A9A9A9":"ڕەساسی ناتۆخ","FFA07A":"نارەنجی ناتۆخ","FFA500":"نارەنجی","FFFF00":"زەرد","00FF00":"سەوز","AFEEEE":"شینی ناتۆخ","ADD8E6":"شینی زۆر ناتۆخ","DDA0DD":"پەمەیی ناتۆخ","D3D3D3":"ڕەساسی بریسکەدار","FFF0F5":"جەرگی زۆر ناتۆخ","FAEBD7":"جەرگی ناتۆخ","FFFFE0":"سپی ناتۆخ","F0FFF0":"هەنگوینی ناتۆخ","F0FFFF":"شینێکی زۆر ناتۆخ","F0F8FF":"شینێکی ئاسمانی زۆر ناتۆخ","E6E6FA":"شیری","FFF":"سپی"},"more":"ڕەنگی زیاتر...","panelTitle":"ڕەنگەکان","textColorTitle":"ڕەنگی دەق"},"colordialog":{"clear":"پاکیکەوە","highlight":"نیشانکردن","options":"هەڵبژاردەی ڕەنگەکان","selected":"ڕەنگی هەڵبژێردراو","title":"هەڵبژاردنی ڕەنگ"},"templates":{"button":"ڕووکار","emptyListMsg":"(هیچ ڕووکارێك دیارینەکراوە)","insertOption":"لە شوێن دانانی ئەم پێکهاتانەی ئێستا","options":"هەڵبژاردەکانی ڕووکار","selectPromptMsg":"ڕووکارێك هەڵبژێره بۆ کردنەوەی له سەرنووسەر:","title":"پێکهاتەی ڕووکار"},"contextmenu":{"options":"هەڵبژاردەی لیستەی کلیکی دەستی ڕاست"},"div":{"IdInputLabel":"ناسنامە","advisoryTitleInputLabel":"سەردێڕ","cssClassInputLabel":"شێوازی چینی پەڕه","edit":"چاکسازی Div","inlineStyleInputLabel":"شێوازی ناوهێڵ","langDirLTRLabel":"چەپ بۆ ڕاست (LTR)","langDirLabel":"ئاراستەی زمان","langDirRTLLabel":"ڕاست بۆ چەپ (RTL)","languageCodeInputLabel":"هێمای زمان","remove":"لابردنی Div","styleSelectLabel":"شێواز","title":"دروستکردنی لەخۆگری Div","toolbar":"دروستکردنی لەخۆگری Div"},"toolbar":{"toolbarCollapse":"شاردنەوی هێڵی تووڵامراز","toolbarExpand":"نیشاندانی هێڵی تووڵامراز","toolbarGroups":{"document":"پەڕه","clipboard":"بڕین/پووچکردنەوە","editing":"چاکسازی","forms":"داڕشتە","basicstyles":"شێوازی بنچینەیی","paragraph":"بڕگە","links":"بەستەر","insert":"خستنە ناو","styles":"شێواز","colors":"ڕەنگەکان","tools":"ئامرازەکان"},"toolbars":"تووڵامرازی دەسکاریکەر"},"elementspath":{"eleLabel":"ڕێڕەوی توخمەکان","eleTitle":"%1 توخم"},"find":{"find":"گەڕان","findOptions":"هەڵبژاردەکانی گەڕان","findWhat":"گەڕان بەدووای:","matchCase":"جیاکردنەوه لەنێوان پیتی گەورەو بچووك","matchCyclic":"گەڕان لەهەموو پەڕەکه","matchWord":"تەنەا هەموو وشەکه","notFoundMsg":"هیچ دەقه گەڕانێك نەدۆزراوه.","replace":"لەبریدانان","replaceAll":"لەبریدانانی هەمووی","replaceSuccessMsg":" پێشهاتە(ی) لەبری دانرا. %1","replaceWith":"لەبریدانان به:","title":"گەڕان و لەبریدانان"},"fakeobjects":{"anchor":"لەنگەر","flash":"فلاش","hiddenfield":"شاردنەوەی خانه","iframe":"لەچوارچێوە","unknown":"بەرکارێکی نەناسراو"},"flash":{"access":"دەستپێگەیشتنی نووسراو","accessAlways":"هەمیشه","accessNever":"هەرگیز","accessSameDomain":"هەمان دۆمەین","alignAbsBottom":"له ژێرەوه","alignAbsMiddle":"لەناوەند","alignBaseline":"هێڵەبنەڕەت","alignTextTop":"دەق لەسەرەوه","bgcolor":"ڕەنگی پاشبنەما","chkFull":"ڕێپێدان بە پڕی شاشه","chkLoop":"گرێ","chkMenu":"چالاککردنی لیستەی فلاش","chkPlay":"پێکردنی یان لێدانی خۆکار","flashvars":"گۆڕاوەکان بۆ فلاش","hSpace":"بۆشایی ئاسۆیی","properties":"خاسیەتی فلاش","propertiesTab":"خاسیەت","quality":"جۆرایەتی","qualityAutoHigh":"بەرزی خۆکار","qualityAutoLow":"نزمی خۆکار","qualityBest":"باشترین","qualityHigh":"بەرزی","qualityLow":"نزم","qualityMedium":"مامناوەند","scale":"پێوانه","scaleAll":"نیشاندانی هەموو","scaleFit":"بەوردی بگونجێت","scaleNoBorder":"بێ پەراوێز","title":"خاسیەتی فلاش","vSpace":"بۆشایی ئەستونی","validateHSpace":"بۆشایی ئاسۆیی دەبێت ژمارە بێت.","validateSrc":"ناونیشانی بەستەر نابێت خاڵی بێت","validateVSpace":"بۆشایی ئەستونی دەبێت ژماره بێت.","windowMode":"شێوازی پەنجەره","windowModeOpaque":"ناڕوون","windowModeTransparent":"ڕۆشن","windowModeWindow":"پەنجەره"},"font":{"fontSize":{"label":"گەورەیی","voiceLabel":"گەورەیی فۆنت","panelTitle":"گەورەیی فۆنت"},"label":"فۆنت","panelTitle":"ناوی فۆنت","voiceLabel":"فۆنت"},"forms":{"button":{"title":"خاسیەتی دوگمە","text":"(نرخی) دەق","type":"جۆر","typeBtn":"دوگمە","typeSbm":"بنێرە","typeRst":"ڕێکخستنەوە"},"checkboxAndRadio":{"checkboxTitle":"خاسیەتی چووارگۆشی پشکنین","radioTitle":"خاسیەتی جێگرەوەی دوگمە","value":"نرخ","selected":"هەڵبژاردرا","required":"Required"},"form":{"title":"خاسیەتی داڕشتە","menu":"خاسیەتی داڕشتە","action":"کردار","method":"ڕێگە","encoding":"بەکۆدکەر"},"hidden":{"title":"خاسیەتی خانەی شاردراوە","name":"ناو","value":"نرخ"},"select":{"title":"هەڵبژاردەی خاسیەتی خانە","selectInfo":"زانیاری","opAvail":"هەڵبژاردەی لەبەردەستدابوون","value":"نرخ","size":"گەورەیی","lines":"هێڵەکان","chkMulti":"ڕێدان بەفره هەڵبژارده","required":"Required","opText":"دەق","opValue":"نرخ","btnAdd":"زیادکردن","btnModify":"گۆڕانکاری","btnUp":"سەرەوه","btnDown":"خوارەوە","btnSetValue":"دابنێ وەك نرخێکی هەڵبژێردراو","btnDelete":"سڕینەوه"},"textarea":{"title":"خاسیەتی ڕووبەری دەق","cols":"ستوونەکان","rows":"ڕیزەکان"},"textfield":{"title":"خاسیەتی خانەی دەق","name":"ناو","value":"نرخ","charWidth":"پانی نووسە","maxChars":"ئەوپەڕی نووسە","required":"Required","type":"جۆر","typeText":"دەق","typePass":"پێپەڕەوشە","typeEmail":"ئیمەیل","typeSearch":"گەڕان","typeTel":"ژمارەی تەلەفۆن","typeUrl":"ناونیشانی بەستەر"}},"format":{"label":"ڕازاندنەوە","panelTitle":"بەشی ڕازاندنەوه","tag_address":"ناونیشان","tag_div":"(DIV)-ی ئاسایی","tag_h1":"سەرنووسەی ١","tag_h2":"سەرنووسەی ٢","tag_h3":"سەرنووسەی ٣","tag_h4":"سەرنووسەی ٤","tag_h5":"سەرنووسەی ٥","tag_h6":"سەرنووسەی ٦","tag_p":"ئاسایی","tag_pre":"شێوازکراو"},"horizontalrule":{"toolbar":"دانانی هێلی ئاسۆیی"},"iframe":{"border":"نیشاندانی لاکێشه بە چوواردەوری چووارچێوە","noUrl":"تکایه ناونیشانی بەستەر بنووسه بۆ چووارچێوه","scrolling":"چالاککردنی هاتووچۆپێکردن","title":"دیالۆگی چووارچێوه","toolbar":"چووارچێوه"},"image":{"alt":"جێگرەوەی دەق","border":"پەراوێز","btnUpload":"ناردنی بۆ ڕاژه","button2Img":"تۆ دەتەوێت دوگمەی وێنەی دیاریکراو بگۆڕیت بۆ وێنەیەکی ئاسایی؟","hSpace":"بۆشایی ئاسۆیی","img2Button":"تۆ دەتەوێت وێنەی دیاریکراو بگۆڕیت بۆ دوگمەی وێنه؟","infoTab":"زانیاری وێنه","linkTab":"بەستەر","lockRatio":"داخستنی ڕێژه","menu":"خاسیەتی وێنه","resetSize":"ڕێکخستنەوەی قەباره","title":"خاسیەتی وێنه","titleButton":"خاسیەتی دوگمەی وێنه","upload":"بارکردن","urlMissing":"سەرچاوەی بەستەری وێنه بزره","vSpace":"بۆشایی ئەستونی","validateBorder":"پەراوێز دەبێت بەتەواوی تەنها ژماره بێت.","validateHSpace":"بۆشایی ئاسۆیی دەبێت بەتەواوی تەنها ژمارە بێت.","validateVSpace":"بۆشایی ئەستونی دەبێت بەتەواوی تەنها ژماره بێت."},"indent":{"indent":"زیادکردنی بۆشایی","outdent":"کەمکردنەوەی بۆشایی"},"smiley":{"options":"هەڵبژاردەی زەردەخەنه","title":"دانانی زەردەخەنەیەك","toolbar":"زەردەخەنه"},"justify":{"block":"هاوستوونی","center":"ناوەڕاست","left":"بەهێڵ کردنی چەپ","right":"بەهێڵ کردنی ڕاست"},"language":{"button":"جێگیرکردنی زمان","remove":"لابردنی زمان"},"link":{"acccessKey":"کلیلی دەستپێگەیشتن","advanced":"پێشکەوتوو","advisoryContentType":"جۆری ناوەڕۆکی ڕاویژکار","advisoryTitle":"ڕاوێژکاری سەردێڕ","anchor":{"toolbar":"دانان/چاکسازی لەنگەر","menu":"چاکسازی لەنگەر","title":"خاسیەتی لەنگەر","name":"ناوی لەنگەر","errorName":"تکایه ناوی لەنگەر بنووسه","remove":"لابردنی لەنگەر"},"anchorId":"بەپێی ناسنامەی توخم","anchorName":"بەپێی ناوی لەنگەر","charset":"بەستەری سەرچاوەی نووسە","cssClasses":"شێوازی چینی پەڕه","emailAddress":"ناونیشانی ئیمەیل","emailBody":"ناوەڕۆکی نامە","emailSubject":"بابەتی نامە","id":"ناسنامە","info":"زانیاری بەستەر","langCode":"هێمای زمان","langDir":"ئاراستەی زمان","langDirLTR":"چەپ بۆ ڕاست (LTR)","langDirRTL":"ڕاست بۆ چەپ (RTL)","menu":"چاکسازی بەستەر","name":"ناو","noAnchors":"(هیچ جۆرێکی لەنگەر ئامادە نیە لەم پەڕەیه)","noEmail":"تکایە ناونیشانی ئیمەیل بنووسە","noUrl":"تکایە ناونیشانی بەستەر بنووسە","other":"<هیتر>","popupDependent":"پێوەبەستراو (Netscape)","popupFeatures":"خاسیەتی پەنجەرەی سەرهەڵدەر","popupFullScreen":"پڕ بەپڕی شاشە (IE)","popupLeft":"جێگای چەپ","popupLocationBar":"هێڵی ناونیشانی بەستەر","popupMenuBar":"هێڵی لیسته","popupResizable":"توانای گۆڕینی قەباره","popupScrollBars":"هێڵی هاتووچۆپێکردن","popupStatusBar":"هێڵی دۆخ","popupToolbar":"هێڵی تووڵامراز","popupTop":"جێگای سەرەوە","rel":"پەیوەندی","selectAnchor":"هەڵبژاردنی لەنگەرێك","styles":"شێواز","tabIndex":"بازدەری تابی ئیندێکس","target":"ئامانج","targetFrame":"<چووارچێوە>","targetFrameName":"ناوی ئامانجی چووارچێوە","targetPopup":"<پەنجەرەی سەرهەڵدەر>","targetPopupName":"ناوی پەنجەرەی سەرهەڵدەر","title":"بەستەر","toAnchor":"بەستەر بۆ لەنگەر له دەق","toEmail":"ئیمەیل","toUrl":"ناونیشانی بەستەر","toolbar":"دانان/ڕێکخستنی بەستەر","type":"جۆری بەستەر","unlink":"لابردنی بەستەر","upload":"بارکردن"},"list":{"bulletedlist":"دانان/لابردنی خاڵی لیست","numberedlist":"دانان/لابردنی ژمارەی لیست"},"liststyle":{"armenian":"ئاراستەی ژمارەی ئەرمەنی","bulletedTitle":"خاسیەتی لیستی خاڵی","circle":"بازنه","decimal":"ژمارە (1, 2, 3, وە هیتر.)","decimalLeadingZero":"ژمارە سفڕی لەپێشەوه (01, 02, 03, وە هیتر.)","disc":"پەپکە","georgian":"ئاراستەی ژمارەی جۆڕجی (an, ban, gan, وە هیتر.)","lowerAlpha":"ئەلفابێی بچووك (a, b, c, d, e, وە هیتر.)","lowerGreek":"یۆنانی بچووك (alpha, beta, gamma, وە هیتر.)","lowerRoman":"ژمارەی ڕۆمی بچووك (i, ii, iii, iv, v, وە هیتر.)","none":"هیچ","notset":"<دانەندراوه>","numberedTitle":"خاسیەتی لیستی ژمارەیی","square":"چووراگۆشە","start":"دەستپێکردن","type":"جۆر","upperAlpha":"ئەلفابێی گەوره (A, B, C, D, E, وە هیتر.)","upperRoman":"ژمارەی ڕۆمی گەوره (I, II, III, IV, V, وە هیتر.)","validateStartNumber":"دەستپێکەری لیستی ژمارەیی دەبێت تەنها ژمارە بێت."},"magicline":{"title":"بڕگە لێرە دابنێ"},"maximize":{"maximize":"ئەوپەڕی گەورەیی","minimize":"ئەوپەڕی بچووکی"},"newpage":{"toolbar":"پەڕەیەکی نوێ"},"pagebreak":{"alt":"پشووی پەڕە","toolbar":"دانانی پشووی پەڕە بۆ چاپکردن"},"pastetext":{"button":"لکاندنی وەك دەقی ڕوون","title":"لکاندنی وەك دەقی ڕوون"},"pastefromword":{"confirmCleanup":"ئەم دەقەی بەتەمای بیلکێنی پێدەچێت له word هێنرابێت. دەتەوێت پاکی بکەیوه پێش ئەوەی بیلکێنی؟","error":"هیچ ڕێگەیەك نەبوو لەلکاندنی دەقەکه بەهۆی هەڵەیەکی ناوەخۆیی","title":"لکاندنی لەلایەن Word","toolbar":"لکاندنی لەڕێی Word"},"preview":{"preview":"پێشبینین"},"print":{"toolbar":"چاپکردن"},"removeformat":{"toolbar":"لابردنی داڕشتەکە"},"save":{"toolbar":"پاشکەوتکردن"},"selectall":{"toolbar":"دیاریکردنی هەمووی"},"showblocks":{"toolbar":"نیشاندانی بەربەستەکان"},"sourcearea":{"toolbar":"سەرچاوە"},"specialchar":{"options":"هەڵبژاردەی نووسەی تایبەتی","title":"هەڵبژاردنی نووسەی تایبەتی","toolbar":"دانانی نووسەی تایبەتی"},"scayt":{"btn_about":"دهربارهی SCAYT","btn_dictionaries":"فهرههنگهکان","btn_disable":"ناچالاککردنی SCAYT","btn_enable":"چالاککردنی SCAYT","btn_langs":"زمانهکان","btn_options":"ههڵبژارده","text_title":"پشکنینی نووسه لهکاتی نووسین"},"stylescombo":{"label":"شێواز","panelTitle":"شێوازی ڕازاندنەوە","panelTitle1":"شێوازی خشت","panelTitle2":"شێوازی ناوهێڵ","panelTitle3":"شێوازی بەرکار"},"table":{"border":"گەورەیی پەراوێز","caption":"سەردێڕ","cell":{"menu":"خانه","insertBefore":"دانانی خانه لەپێش","insertAfter":"دانانی خانه لەپاش","deleteCell":"سڕینەوەی خانه","merge":"تێکەڵکردنی خانە","mergeRight":"تێکەڵکردنی لەگەڵ ڕاست","mergeDown":"تێکەڵکردنی لەگەڵ خوارەوە","splitHorizontal":"دابەشکردنی خانەی ئاسۆیی","splitVertical":"دابەشکردنی خانەی ئەستونی","title":"خاسیەتی خانه","cellType":"جۆری خانه","rowSpan":"ماوەی نێوان ڕیز","colSpan":"بستی ئەستونی","wordWrap":"پێچانەوەی وشە","hAlign":"ڕیزکردنی ئاسۆیی","vAlign":"ڕیزکردنی ئەستونی","alignBaseline":"هێڵەبنەڕەت","bgColor":"ڕەنگی پاشبنەما","borderColor":"ڕەنگی پەراوێز","data":"داتا","header":"سەرپەڕه","yes":"بەڵێ","no":"نەخێر","invalidWidth":"پانی خانه دەبێت بەتەواوی ژماره بێت.","invalidHeight":"درێژی خانه بەتەواوی دەبێت ژمارە بێت.","invalidRowSpan":"ماوەی نێوان ڕیز بەتەواوی دەبێت ژمارە بێت.","invalidColSpan":"ماوەی نێوان ئەستونی بەتەواوی دەبێت ژمارە بێت.","chooseColor":"هەڵبژێرە"},"cellPad":"بۆشایی ناوپۆش","cellSpace":"بۆشایی خانه","column":{"menu":"ئەستون","insertBefore":"دانانی ئەستون لەپێش","insertAfter":"دانانی ئەستوون لەپاش","deleteColumn":"سڕینەوەی ئەستوون"},"columns":"ستوونەکان","deleteTable":"سڕینەوەی خشتە","headers":"سەرپەڕه","headersBoth":"هەردووك","headersColumn":"یەکەم ئەستوون","headersNone":"هیچ","headersRow":"یەکەم ڕیز","invalidBorder":"ژمارەی پەراوێز دەبێت تەنها ژماره بێت.","invalidCellPadding":"ناوپۆشی خانه دەبێت ژمارەکی درووست بێت.","invalidCellSpacing":"بۆشایی خانه دەبێت ژمارەکی درووست بێت.","invalidCols":"ژمارەی ئەستوونی دەبێت گەورەتر بێت لەژمارەی 0.","invalidHeight":"درێژی خشته دهبێت تهنها ژماره بێت.","invalidRows":"ژمارەی ڕیز دەبێت گەورەتر بێت لەژمارەی 0.","invalidWidth":"پانی خشته دەبێت تەنها ژماره بێت.","menu":"خاسیەتی خشتە","row":{"menu":"ڕیز","insertBefore":"دانانی ڕیز لەپێش","insertAfter":"دانانی ڕیز لەپاش","deleteRow":"سڕینەوەی ڕیز"},"rows":"ڕیز","summary":"کورتە","title":"خاسیەتی خشتە","toolbar":"خشتە","widthPc":"لەسەدا","widthPx":"وێنەخاڵ - پیکسل","widthUnit":"پانی یەکە"},"undo":{"redo":"هەڵگەڕاندنەوە","undo":"پووچکردنەوە"},"wsc":{"btnIgnore":"پشتگوێ کردن","btnIgnoreAll":"پشتگوێکردنی ههمووی","btnReplace":"لهبریدانن","btnReplaceAll":"لهبریدانانی ههمووی","btnUndo":"پووچکردنهوه","changeTo":"گۆڕینی بۆ","errorLoading":"ههڵه لههێنانی داخوازینامهی خانهخۆێی ڕاژه: %s.","ieSpellDownload":"پشکنینی ڕێنووس دانهمزراوه. دهتهوێت ئێستا دایبگریت?","manyChanges":"پشکنینی ڕێنووس کۆتای هات: لهسهدا %1 ی وشهکان گۆڕدرا","noChanges":"پشکنینی ڕێنووس کۆتای هات: هیچ وشهیهك نۆگۆڕدرا","noMispell":"پشکنینی ڕێنووس کۆتای هات: هیچ ههڵهیهکی ڕێنووس نهدۆزراوه","noSuggestions":"- هیچ پێشنیارێك -","notAvailable":"ببووره، لهمکاتهدا ڕاژهکه لهبهردهستا نیه.","notInDic":"لهفهرههنگ دانیه","oneChange":"پشکنینی ڕێنووس کۆتای هات: یهك وشه گۆڕدرا","progress":"پشکنینی ڕێنووس لهبهردهوامبوون دایه...","title":"پشکنینی ڕێنووس","toolbar":"پشکنینی ڕێنووس"}};
export { default as search } from './search/index'; export { default as algorithmWithoutTypo } from './algorithm/no-typo'; export { default as algorithmWithTypo } from './algorithm/typo'; export { createCache } from './internals/cache';
class Carrito { constructor() { this.contador = 0 } async agregarAlCarrito(productID) { //const cantidad = obtenerCantidad(productID); const cantidad = 1; const productos = await getProductByID(productID); let carrito = this.obtenerProductosLocalStorage(); const producto = { id: productID, thumbnail: productos[0].thumbnail, title: productos[0].title, price: productos[0].price || productos[0].unit_price, cantidad, isML: productID.startsWith('MLM') }; carrito.forEach( (productoLS) => { if(productoLS.id === producto.id){ carrito = productoLS.id; } }); if(carrito === producto.id){ alert("El producto ya esta en el carrito"); } else { this.insertarCarrito(producto); alert("Se agrego el producto al carrito"); } } eliminarDelCarrito(productID) { let producto = document.getElementById(`carrito_${productID}`); while(producto.firstChild){ producto.removeChild(producto.firstChild); } producto.remove(); this.contador--; this.actualizarNumeroDeCarrito(this.contador); this.eliminarProductoLocalStorage(productID); alert("Se removio el producto del carrito"); } eliminarProductoLocalStorage(productID){ let productosLS; productosLS = this.obtenerProductosLocalStorage(); productosLS.forEach(function(productoLS, index){ if(productoLS.id === productID){ productosLS.splice(index, 1); } }); localStorage.setItem('carrito', JSON.stringify(productosLS)); } obtenerProductosLocalStorage() { return (localStorage.getItem('carrito') === null) ? [] : JSON.parse(localStorage.getItem('carrito')); } insertarCarrito(producto) { const row = document.createElement('tr'); row.innerHTML = ` <td> <img src="${producto.thumbnail}" alt="${producto.title}" style="max-height: 50px; min-width: 50px"> </td> <td>${producto.title}</td> <td>${producto.cantidad}</td> <td>$${producto.price}</td> <td> <a href="#" class="fas fa-times-circle" onclick="borrarProducto('${producto.id}')" id="borrar-${producto.id}"></a> </td> `; row.id = `carrito_${producto.id}` const listaProductosCarrito = document.querySelector('#items_carrito_nav tbody'); listaProductosCarrito.appendChild(row); this.contador++; this.guardarProductosLocalStorage(producto); this.actualizarNumeroDeCarrito(this.contador); } actualizarNumeroDeCarrito(valor) { const numero = document.getElementById('items_nav'); numero.innerHTML = valor; } guardarProductosLocalStorage(producto) { let productos; productos = this.obtenerProductosLocalStorage(); productos.push(producto); localStorage.setItem('carrito', JSON.stringify(productos)) } vaciarLocalStorage() { localStorage.removeItem('carrito'); } vaciarCarrito() { const listaProductosCarrito = document.querySelector('#items_carrito_nav tbody'); while(listaProductosCarrito.firstChild){ listaProductosCarrito.removeChild(listaProductosCarrito.firstChild); } this.vaciarLocalStorage(); this.contador = 0; this.actualizarNumeroDeCarrito(this.contador); return false; } calcularTotal(){ let productosLS; let total = 0, igv = 0, subtotal = 0; productosLS = this.obtenerProductosLocalStorage(); for(let i = 0; i < productosLS.length; i++){ let element = Number(productosLS[i].price * productosLS[i].cantidad); total = total + element; } igv = parseFloat(total * 0.18).toFixed(2); subtotal = parseFloat(total-igv).toFixed(2); document.getElementById('precio_total').innerHTML = `Total: ${total.toFixed(2)}`; //document.getElementById('subtotal').innerHTML = "S/. " + subtotal; //document.getElementById('igv').innerHTML = "S/. " + igv; //document.getElementById('total').value = "S/. " + total.toFixed(2); } leerLocalStorage () { let productosLS; productosLS = this.obtenerProductosLocalStorage(); productosLS.forEach(function (producto){ //Construir plantilla const row = document.createElement('tr'); row.innerHTML = ` <td> <img src="${producto.thumbnail}" alt="${producto.title}" style="max-height: 50px; min-width: 50px"> </td> <td>${producto.title}</td> <td>${producto.cantidad}</td> <td>$${producto.price}</td> <td> <a href="#" class="fas fa-times-circle" onclick="borrarProducto('${producto.id}'); location.reload();" id="borrar-${producto.id}"></a> </td> `; row.id = `carrito_${producto.id}` const listaProductosCarrito = document.querySelector('#items_carrito_nav tbody'); listaProductosCarrito.appendChild(row); }); this.contador = productosLS.length; this.actualizarNumeroDeCarrito(this.contador); } actualizarCostos(productID) { const cantidad = document.getElementById(`cantidad-${productID}`).value const costo = document.getElementById(`precio-producto-${productID}`).innerHTML; const totalProducto = document.getElementById(`costo-producto-${productID}`); totalProducto.innerHTML = `$${(cantidad * costo).toFixed(2)}`; const carrito = compra.obtenerProductosLocalStorage(); carrito.forEach( producto => { if(producto.id === productID){ producto.cantidad = cantidad; } }); localStorage.setItem('carrito', JSON.stringify(carrito)); compra.calcularTotal(); } } const compra = new Carrito(); console.log(compra.obtenerProductosLocalStorage()); if(!CheckBrowser()){ alert("Tu navegador no soporta nuestro carrito de compras"); } /* const updateCart = async () => { if(localStorage.getItem('carrito') === null){ localStorage.setItem('carrito', '[]'); } const carrito = JSON.parse(localStorage.getItem('carrito')); if(carrito === null || carrito.length === 0) { document.getElementById('noItems').style.display = "block"; return; } refreshCart(carrito); document.getElementById('noItems').style.display = "none"; }*/ //updateCart(); const obtenerCantidad = (ProductID) => { const cantidad = parseInt(document.getElementById(ProductID).value); if( isNaN(cantidad) || cantidad <= 0) alert("El número de productos a agregar es inválido"); return cantidad; } const getProductByID = async (ProductID) => { if(ProductID.startsWith('MLM')){ return getData(`products?id=${ProductID}`); } const data = await getData(`products/ours?product_id=${ProductID}`); return data.products; } /* const refreshCart = (carrito) => { if(carrito.length > 0) { const nav_carrito = document.getElementById('items_carrito_nav'); nav_carrito.innerHTML = ""; let total = 0; carrito.forEach( (producto) => { const lista = document.createElement('li'); lista.innerHTML = ` <div> <img src="${producto.thumbnail}" alt="${producto.title}" style="max-height: 50px; min-width: 50px"/> <span>Cant: ${producto.cantidad} $${producto.price} = ${producto.cantidad * producto.price}</span> </div>`; total += producto.cantidad * producto.price; nav_carrito.appendChild(lista); }); document.getElementById("total_nav").innerHTML = `Total: ${total}`; } document.getElementById('items_nav').innerHTML = `${carrito.length}`; } */ /* const removeCart = (idProducto) => { const cantidad = document.getElementById(idProducto).value; if( isNaN(cantidad) || cantidad <= 0) return alert("El número de productos a remover es inválido"); const carrito = JSON.parse(localStorage.getItem('carrito')); if(carrito !== null){ const ifExist = carrito.find( (product, index) => { if(product.id === idProducto){ //Si ya existe el producto actualzar la cantidad product.cantidad -= cantidad; alert("Producto actualizado"); if(product.cantidad <= 0){ carrito.splice(index, 1); } } return product.id === idProducto; }); if(!ifExist) alert("No tienes este artículo en tu carrito."); localStorage.setItem('carrito', JSON.stringify(carrito)); } else { document.getElementById('noItems').style.display = "block"; alert("Tu carrito esta vacio"); } if(carrito.length === 0) document.getElementById('noItems').style.display = "block"; } */ const clearCart = () => { localStorage.removeItem('carrito'); } function CheckBrowser() { return 'localStorage' in window && window['localStorage'] !== null; } async function addToCart(ProductID) { await compra.agregarAlCarrito(ProductID); } function vaciarCarrito() { compra.vaciarCarrito(); } function borrarProducto(ProductID){ compra.eliminarDelCarrito(ProductID); } function loadCart() { setTimeout( () => { compra.leerLocalStorage(); },400) } loadCart();
import Vue from "vue" import vurRouter from 'vue-router' Vue.use(vurRouter) import login from '@/views/login' import layout from '@/views/layout' const router = new vurRouter({ routes: [ {path:'/login',component:login}, {path:'/layout',component:layout}, {path:'/',redirect:'/login'} ] }) export default router
window.onload = init; var map = null; function Thought(id, text) { this.id = id; this.text = text; } function init() { var submit = document.getElementById("submit"); submit.onclick = getThought; } function getThought() { var aThought = document.getElementById("aThought").value; if (aThought == null || aThought == "") { alert("Please enter a thought with at least one word"); return; } var id = (new Date()).getTime(); var thought = new Thought(id, aThought); // get the location of the thought if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(getLocation, locationError); } else { console.log("Sorry, no Geolocation support!"); return; } addThoughtToPage(thought); } function addThoughtToPage(thought) { var ul = document.getElementById("thoughts"); var li = document.createElement("li"); li.setAttribute("id", thought.id); var spanText = document.createElement("span"); spanText.setAttribute("class", "thoughtText"); spanText.innerHTML = thought.text; li.appendChild(spanText); ul.appendChild(li); } function getLocation(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; if (!map) { showMap(latitude, longitude); } addMarker(latitude, longitude); } function showMap(lat, long) { var googleLatLong = new google.maps.LatLng(lat, long); var mapOptions = { zoom: 12, center: googleLatLong, mapTypeId: google.maps.MapTypeId.ROADMAP }; var mapDiv = document.getElementById("map"); map = new google.maps.Map(mapDiv, mapOptions); map.panTo(googleLatLong); } function addMarker(lat, long) { var googleLatLong = new google.maps.LatLng(lat, long); var markerOptions = { position: googleLatLong, map: map, title: "Where I'm thinking today" } var marker = new google.maps.Marker(markerOptions); } function locationError(error) { var errorTypes = { 0: "Unknown error", 1: "Permission denied by user", 2: "Position not available", 3: "Request timed out" }; var errorMessage = errorTypes[error.code]; if (error.code == 0 || error.code == 2) { errorMessage += " " + error.message; } console.log(errorMessage); alert(errorMessage); }
import matplotlib.pyplot as plt import seaborn as sb import pandas as pd class Countplot(): '''The Countplot class is used to visualize in a bar plot the frecuency of occurrence of a unique value list contained in an list-like column Attributes: Color (string): the color of the bars in the plot N_bars (int): number of top values that appear in the plot Size (float array 2x1): size of the visualization Title (string): title of the plot Sep_type: separator between values in the original column data: a list-like column ''' def __init__(self, data, color = 'cornflowerblue', n_bars = 10, size = [11.69, 8.27], title = 'Frecuency of occurrence', sep_type = ';'): self.color = color self.size = size self.title = title self.n_bars = n_bars self.sep_type = sep_type self.data = data self.ratio = None self.split_array_like() self.calculate_percentage() def split_array_like (self): ''' Method to separate all the single values in the array and append them to a list. It iterates trough all the rows in the data Args: None Returns: pandasseries: list of values ''' #Order values by count, rename columns and split strings temp = self.data.value_counts().reset_index() temp.rename(columns = {'index': 'method', 'col_name':'count'}, inplace = True) temp['method'] = temp['method'].str.split(self.sep_type) #Create a list with all separated values val_list = [] for i in range(temp.shape[0]): for j in temp['method'][i]: val_list.append(j) #Convert list to series series = pd.Series(val_list) return series def calculate_percentage(self): ''' Method to calculate the frecuency of ocurrence of each unique value in a pandas series. Args: None Returns: pandasseries: frecuency of occurrence of each unique value ''' #Calculate the unique value frecuency split = self.split_array_like () self.ratio = split.value_counts()/self.data.shape[0] def barplot(self): ''' Method to plot the frecuency of occurrence of each unique value ------- Args: None Returns: ax object: bar plot of the ratio variable ''' temp = self.ratio.head(self.n_bars) plt.figure(figsize = self.size) ax = sb.barplot(temp.values, temp.index, orient='h', color = self.color) plt.title(self.title, fontsize = 18, loc = 'left', pad = 20) #Remove plot frame ax.spines['top'].set_visible(False) ax.spines['right'].set_visible(False) ax.spines['left'].set_visible(False) #Draw y grid below the bars ax.set_axisbelow(True) ax.grid(axis='x') #Introducte percentages for p in ax.patches: width = p.get_width() height = p.get_height() x, y = p.get_xy() ax.annotate( f'{width:.1%}', (0.5*width, y + height/1.6), ha='right') return ax
'user strict'; var sql = require('./newdb.js'); var url = require('url'); var helper = require('./helper'); //User_Package object constructor var User_Package = function(req,user_package){ this.id = 0; this.user_id = user_package.user_id; this.package_id = user_package.package_id; this.available_balance = user_package.available_balance; this.start_date = user_package.start_date; this.end_date = user_package.end_date; this.status = user_package.status; this.updated_by = user_package.updated_by; this.created_by = user_package.created_by; this.updated_at = user_package.updated_at; this.created_at = user_package.created_at; }; User_Package.create = function (req,newUser_Package, result) { sql.query("INSERT INTO user_package set ?",newUser_Package, function (err, res) { if(err) { console.log("error: ", err); result(err, null); } else{ console.log(res.insertId); result(null, res.insertId); } }); }; User_Package.getById = function (req,id, result) { sql.query("SELECT t.* FROM user_package t WHERE t.id= ? LIMIT 0,1", id, function (err, res) { if(err) { console.log("error: ", err); result(err, null); } else if(res && res.length>0){ result(null, res); }else{ result("Record Not Found", null); } }); }; User_Package.totalCount = function (req,result) { sql.query("SELECT count(*) TotalCount FROM user_package t ", function (err, res) { if(err) { console.log("error: ", err); result(err, null); } else{ result(null, res); } }); }; User_Package.totalSearchCount = function (req,searchKey,result) { sql.query("SELECT count(*) TotalCount FROM user_package t WHERE LOWER(t.user_id) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.package_id) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.available_balance) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.start_date) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.end_date) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.status) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.updated_by) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.created_by) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.updated_at) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.created_at) LIKE CONCAT('%','"+searchKey+"','%') ", function (err, res) { if(err) { console.log("error: ", err); result(err, null); } else{ result(null, res); } }); }; User_Package.getAll = function (req,offset,pageSize,result) { sql.query("SELECT t.* FROM user_package t LIMIT ?, ?",[offset,pageSize],function (err, res) { if(err) { console.log("error: ", err); result(null, err); } else{ console.log('user_package : ', res); result(null, res); } }); }; User_Package.search = function (req,searchKey,offset,pageSize,result) { sql.query("SELECT t.* FROM user_package t WHERE LOWER(t.user_id) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.package_id) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.available_balance) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.start_date) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.end_date) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.status) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.updated_by) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.created_by) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.updated_at) LIKE CONCAT('%','"+searchKey+"','%') OR LOWER(t.created_at) LIKE CONCAT('%','"+searchKey+"','%') LIMIT ?,?",[offset,pageSize],function (err, res) { if(err) { console.log("error: ", err); result(null, err); } else{ console.log('user_package : ', res); result(null, res); } }); }; User_Package.updateById = function(req,id, user_package, result){ sql.query("UPDATE user_package SET user_id = ?,package_id = ?,available_balance = ?,start_date = ?,end_date = ?,status = ?,updated_by = ?,created_by = ?,updated_at = ?,created_at = ? WHERE id= ?",[ user_package.user_id, user_package.package_id, user_package.available_balance, user_package.start_date, user_package.end_date, user_package.status, user_package.updated_by, user_package.created_by, user_package.updated_at, user_package.created_at,id], function (err, res) { if(err) { console.log("error: ", err); result(null, err); } else{ result(null, res); } }); }; User_Package.remove = function(req,id, result){ sql.query("DELETE FROM user_package Where id=?",[id], function (err, res) { if(err) { console.log("error: ", err); result(null, err); } else{ result(null, res); } }); }; module.exports= User_Package;
// Copyright 2011 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following // disclaimer in the documentation and/or other materials provided // with the distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // Flags: --allow-natives-syntax --expose-gc --no-always-opt --opt var a = new Int32Array(1024); // Test that we do not assert if the accessed index has not an int32 rep. var v = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; function test_do_not_assert_on_non_int32(vector, base) { var r = 0; var a1 = base + 1; var a2 = base + 2; var a3 = base + 3; var a4 = base + 4; if (a1 == 2) { r += vector[a1]; r += vector[a4]; r += vector[a2]; r += vector[a3]; } return r; } %PrepareFunctionForOptimization(test_do_not_assert_on_non_int32); test_do_not_assert_on_non_int32(v,1); test_do_not_assert_on_non_int32(v,1); test_do_not_assert_on_non_int32(v,"a"); test_do_not_assert_on_non_int32(v,"a"); %OptimizeFunctionOnNextCall(test_do_not_assert_on_non_int32); test_do_not_assert_on_non_int32(v,0); function test_base(a, base, condition) { a[base + 1] = 1; a[base + 4] = 2; a[base + 3] = 3; a[base + 2] = 4; a[base + 4] = base + 4; if (condition) { a[base + 1] = 1; a[base + 2] = 2; a[base + 2] = 3; a[base + 2] = 4; a[base + 4] = base + 4; } else { a[base + 6] = 1; a[base + 4] = 2; a[base + 3] = 3; a[base + 2] = 4; a[base + 4] = base - 4; } } function check_test_base(a, base, condition) { if (condition) { assertEquals(1, a[base + 1]); assertEquals(4, a[base + 2]); assertEquals(base + 4, a[base + 4]); } else { assertEquals(1, a[base + 6]); assertEquals(3, a[base + 3]); assertEquals(4, a[base + 2]); assertEquals(base - 4, a[base + 4]); } } %PrepareFunctionForOptimization(test_base); test_base(a, 1, true); test_base(a, 2, true); test_base(a, 1, false); test_base(a, 2, false); %OptimizeFunctionOnNextCall(test_base); test_base(a, 3, true); check_test_base(a, 3, true); test_base(a, 3, false); check_test_base(a, 3, false); assertOptimized(test_base); function test_base_for_dictionary_map(a, base, condition) { a[base + 1] = 1; a[base + 4] = 2; a[base + 3] = 3; a[base + 2] = 4; a[base + 4] = base + 4; if (condition) { a[base + 1] = 1; a[base + 2] = 2; a[base + 2] = 3; a[base + 2] = 4; a[base + 4] = base + 4; } else { a[base + 6] = 1; a[base + 4] = 2; a[base + 3] = 3; a[base + 2] = 4; a[base + 4] = base - 4; } } // Test that we deopt on failed bounds checks. var dictionary_map_array = new Int32Array(128); test_base_for_dictionary_map(dictionary_map_array, 5, true); %PrepareFunctionForOptimization(test_base_for_dictionary_map); test_base_for_dictionary_map(dictionary_map_array, 6, true); test_base_for_dictionary_map(dictionary_map_array, 5, false); test_base_for_dictionary_map(dictionary_map_array, 6, false); %OptimizeFunctionOnNextCall(test_base_for_dictionary_map); test_base_for_dictionary_map(dictionary_map_array, -2, true); assertUnoptimized(test_base_for_dictionary_map); function test_base_for_oob(a, base, condition) { a[base + 1] = 1; a[base + 4] = 2; a[base + 3] = 3; a[base + 2] = 4; a[base + 4] = base + 4; if (condition) { a[base + 1] = 1; a[base + 2] = 2; a[base + 2] = 3; a[base + 2] = 4; a[base + 4] = base + 4; } else { a[base + 6] = 1; a[base + 4] = 2; a[base + 3] = 3; a[base + 2] = 4; a[base + 4] = base - 4; } } %PrepareFunctionForOptimization(test_base_for_oob); test_base_for_oob(a, 5, true); test_base_for_oob(a, 6, true); test_base_for_oob(a, 5, false); test_base_for_oob(a, 6, false); %OptimizeFunctionOnNextCall(test_base_for_oob); test_base_for_oob(a, 2048, true); assertUnoptimized(test_base_for_oob); function test_minus(base,cond) { a[base - 1] = 1; a[base - 2] = 2; a[base + 4] = 3; a[base] = 4; a[base + 4] = base + 4; if (cond) { a[base - 4] = 1; a[base + 5] = 2; a[base + 3] = 3; a[base + 2] = 4; a[base + 4] = base + 4; } else { a[base + 6] = 1; a[base + 4] = 2; a[base + 3] = 3; a[base + 2] = 4; a[base + 4] = base - 4; } } function check_test_minus(base,cond) { if (cond) { assertEquals(2, a[base + 5]); assertEquals(3, a[base + 3]); assertEquals(4, a[base + 2]); assertEquals(base + 4, a[base + 4]); } else { assertEquals(1, a[base + 6]); assertEquals(3, a[base + 3]); assertEquals(4, a[base + 2]); assertEquals(base - 4, a[base + 4]); } } %PrepareFunctionForOptimization(test_minus); test_minus(5,true); test_minus(6,true); %OptimizeFunctionOnNextCall(test_minus); test_minus(7,true); check_test_minus(7,true); test_minus(7,false); check_test_minus(7,false); // Specific test on negative offsets. var short_a = new Array(100); for (var i = 0; i < short_a.length; i++) short_a[i] = 0; function short_test(a, i) { a[i + 9] = 0; a[i - 10] = 0; } %PrepareFunctionForOptimization(short_test); short_test(short_a, 50); short_test(short_a, 50); %OptimizeFunctionOnNextCall(short_test); short_a.length = 10; short_test(short_a, 0); // TODO(v8:11457) Currently, we cannot inline stores if there is a dictionary // mode prototype on the prototype chain. Therefore, if // v8_dict_property_const_tracking is enabled, the optimized code only contains // a call to the IC handler and doesn't get deopted. assertEquals(%IsDictPropertyConstTrackingEnabled(), isOptimized(short_test)); // A test for when we would modify a phi index. var data_phi = [0, 1, 2, 3, 4, 5, 6, 7, 8]; function test_phi(a, base, check) { var index; if (check) { index = base + 1; } else { index = base + 2; } var result = a[index]; result += a[index + 1]; result += a[index - 1]; return result; } %PrepareFunctionForOptimization(test_phi); var result_phi = 0; result_phi = test_phi(data_phi, 3, true); assertEquals(12, result_phi); result_phi = test_phi(data_phi, 3, true); assertEquals(12, result_phi); %OptimizeFunctionOnNextCall(test_phi); result_phi = test_phi(data_phi, 3, true); assertEquals(12, result_phi); // A test for recursive decomposition var data_composition_long = [0, 1, 2, 3, 4, 5, 6, 7, 8]; var data_composition_short = [0, 1, 2, 3, 4]; function test_composition(a, base0, check) { var base1 = ((base0 + 2)); var base2 = ((base1 + 8) >> 2); var base3 = ((base2 + 6) >> 1); var base4 = ((base3 + 8) >> 1); var result = 0; result += a[base0]; result += a[base1]; result += a[base2]; result += a[base3]; result += a[base4]; return result; } %PrepareFunctionForOptimization(test_composition); var result_composition = 0; result_composition = test_composition(data_composition_long, 2); assertEquals(19, result_composition); result_composition = test_composition(data_composition_long, 2); assertEquals(19, result_composition); %OptimizeFunctionOnNextCall(test_composition); result_composition = test_composition(data_composition_short, 2); assertEquals(NaN, result_composition); gc();
// @ts-nocheck function bang () { outlet(0, 'bang'); }
export default { esm: { type: 'rollup' }, }
export function getRandomNumber(num) { return Math.floor(Math.random() * num) }
function deleteBeneficiary(beneficiaryId) { $.ajax({ type: "DELETE", url: "delete-payment-beneficiary-api", datatype: "application/json", data: { beneficiaryId }, headers: { "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), }, success: (res) => { console.log(res); if (res.responseCode === "000") { $("#edit_modal").modal("hide"); beneficiaryDeleted(); } else { toaster(res.message, "error"); } }, error: (err) => { console.log(err); toaster(err.statusText, "error"); }, }); } function saveBeneficiary(data) { siteLoading("show"); $.ajax({ type: "POST", url: "save-payment-beneficiary-api", datatype: "application/json", data, headers: { "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), }, success: (res) => { siteLoading("hide"); if (res.responseCode === "000") { $("#edit_modal").modal("hide"); beneficiarySaved(); } else { toaster(res.message, "error"); } }, error: (err) => { siteLoading("hide"); toaster(err.statusText, "error"); }, }); } //Adding Beneficiary async function addPaymentBeneficiary(currentType) { await prepareBeneficiaryForm(currentType, "Add"); $("#delete_btn").hide(); } async function prepareBeneficiaryForm(currentType, mode) { $("#edit_modal").attr("data-mode", mode.toUpperCase()); $("#edit_modal").attr("data-type", currentType.toUpperCase()); console.log(currentType); const { description, paySubTypes, label } = pageData["pay_" + currentType]; $("#beneficiary_form_title").text(`${mode} ${description} Beneficiary`); $("#subtype_label").text(label.toLowerCase() + " :"); $("#payment_label").text(paySubTypes[0].paymentLabel.toLowerCase() + " :"); $("#payment_label_input").attr( "placeholder", "Enter " + paySubTypes[0].paymentLabel.toLowerCase() ); $.each(paySubTypes, (i) => { const { paymentCode, paymentDescription } = paySubTypes[i]; const option = `<option value='${paymentCode}' >${paymentDescription} </option>`; $("#payment_subtype").append(option); }); $("#payment_subtype") .on("change", function () { const i = document.getElementById("payment_subtype").selectedIndex; const type = $("#edit_modal").attr("data-type"); let img = "assets/images/add.png"; console.log(i); if (pageData["pay_" + type].paySubTypes[i].paymentLogo) { img = "data:image/jpg;base64," + pageData["pay_" + type].paySubTypes[i].paymentLogo; } $("#payment_type_image").css("background-image", `url("${img}")`); }) .trigger("change"); $("#edit_modal").modal("show"); } //editting beneficiary async function editPaymentBeneficiary(data, type) { await prepareBeneficiaryForm(type, "Edit"); $("#payment_label_input").val(data.ACCOUNT); $(`#payment_subtype option[value="${data.PAYEE_NAME}"]`) .prop("selected", true) .trigger("change"); $("#beneficiary_name").val(data.NICKNAME); if (!pageData.beneficiary) { pageData.beneficiary = {}; } // prepopulate bene form pageData.beneficiary.Id = data.BENE_ID; $("#edit_modal").modal("show"); } function initBeneficiaryForm() { $("#save_btn").click(function () { if (!pageData.beneficiary) pageData.beneficiary = {}; pageData.beneficiary.account = $("#payment_label_input").val(); pageData.beneficiary.nickname = $("#beneficiary_name").val(); pageData.beneficiary.payeeName = $("#payment_subtype").val(); pageData.beneficiary.paymentType = $("#edit_modal").attr("data-type"); pageData.beneficiary.mode = $("#edit_modal").attr("data-mode"); if ( !pageData.beneficiary.account || !pageData.beneficiary.nickname || !pageData.beneficiary.payeeName ) { toaster("All fields required", "warning"); return; } saveBeneficiary(pageData.beneficiary); }); $("#delete_btn").on("click", () => { Swal.fire({ title: "Are you sure?", text: "You won't be able to revert this!", icon: "warning", showCancelButton: true, confirmButtonColor: "#d33", cancelButtonColor: "#6c757d", confirmButtonText: "Yes, delete it!", }).then((result) => { if (result.isConfirmed) { deleteBeneficiary(pageData.beneficiary.Id); } }); }); } $(document).ready(function () { pageData.initialModalHtml = $("#edit_modal").html(); initBeneficiaryForm(); $("#edit_modal").on("hidden.bs.modal", (e) => { $("#edit_modal").html(pageData.initialModalHtml); initBeneficiaryForm(); delete pageData.beneficiary; }); });
import React, { useState } from "react"; import { Link } from "gatsby"; import { navRoutes } from "./utils/misc"; import Footer from "./Footer"; // ANIMATION import { motion, AnimatePresence } from "framer-motion"; // CONTEXT import { useGlobalStateContext, useGlobalDispatchContext, } from "../context/globalContext"; import { change_Menu } from "../actions/action"; // STYLED-COMPONENT import { Container, Flex } from "../styles/globalStyles"; import { Nav, NavHeader, NavFooter, CloseNav, NavList, NavVideos, } from "../styles/navigationStyles"; const Navigation = ({ onCursor, setHamburgerPosition }) => { const { toggleMenu } = useGlobalStateContext(); const dispatch = useGlobalDispatchContext(); const [revealVideo, setRevealVideo] = useState({ show: false, video: "featured-video.mp4", key: "0", }); return ( <AnimatePresence> {toggleMenu && ( <Nav initial={{ x: "-100%" }} exit={{ x: "-100%" }} animate={{ x: toggleMenu ? 0 : "-100%" }} transition={{ duration: 0.8, ease: [0.6, 0.5, -0.01, 0.9] }} > <Container> <NavHeader> <Flex spaceBetween noHeight> <h2>projects</h2> <CloseNav onMouseEnter={() => onCursor("pointer")} onMouseLeave={onCursor} onClick={() => dispatch(change_Menu(toggleMenu))} > <button> <span></span> <span></span> </button> </CloseNav> </Flex> </NavHeader> <NavList> <ul> {navRoutes.map(route => ( <motion.li key={route.id} onMouseEnter={() => onCursor("pointer")} onMouseLeave={onCursor} onHoverStart={() => setRevealVideo({ show: true, video: route.video, key: route.id, }) } onHoverEnd={() => setRevealVideo(prv => ({ ...prv, show: false, })) } > <Link to={`/projects/${route.path}`}> <motion.div className="link" initial={{ x: -108 }} whileHover={{ x: -40, transition: { duration: 0.4, ease: [0.6, 0.05, -0.01, 0.9], }, }} > <span className="arrow"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 101 57" > <path d="M33 34H0V24h81.429L66 7.884 73.548 0l19.877 20.763.027-.029L101 28.618 73.829 57l-7.548-7.884L80.753 34H33z" fill="#FFF" fillRule="evenodd" ></path> </svg> </span> {route.title} </motion.div> </Link> </motion.li> ))} </ul> </NavList> <NavFooter> <Footer setHamburgerPosition={setHamburgerPosition} onCursor={onCursor} type="pointer" /> </NavFooter> <NavVideos> <motion.div className="reveal" animate={{ width: revealVideo.show ? 0 : "100%" }} ></motion.div> <div className="video"> <AnimatePresence initial={false} exitBeforeEnter> <motion.video key={revealVideo.key} initial={{ opacity: 0 }} exit={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ duration: 0.2, ease: "easeInOut", }} src={require(`../assets/video/${revealVideo.video}`)} autoPlay loop ></motion.video> </AnimatePresence> </div> </NavVideos> </Container> </Nav> )} </AnimatePresence> ); }; export default Navigation;
from django.urls import path, include from . import views urlpatterns = [ path("", views.FAQViewSet.as_view()), ]
//define angular core libs as externals, so we are not loading them multiple times module.exports = { "externals": { "rxjs": "rxjs", "@angular/core": "ng.core", "@angular/common": "ng.common", "@angular/platform-browser": "ng.platformBrowser", "@angular/elements": "ng.elements" } }
'use strict'; process.stdin.resume(); process.stdin.setEncoding('utf-8'); let inputString = ''; let currentLine = 0; process.stdin.on('data', inputStdin => { inputString += inputStdin; }); process.stdin.on('end', _ => { inputString = inputString.trim().split('\n').map(string => { return string.trim(); }); main(); }); function readLine() { return inputString[currentLine++]; } function factorial(n) { return (n == 1) ? 1 : n * factorial(--n); } function main() { const n = +(readLine()); console.log(factorial(n)); }
// 导入定义验证规则的包 const joi = require('@hapi/joi') // 定义用户名和密码的验证规则 const name = joi.string().alphanum().min(1).max(10).required() const password = joi .string() .pattern(/^[\S]{6,12}$/) .required() // 定义验证注册和登录表单数据的规则对象 exports.reg_login_schema = { body: { name, password, }, }
export { default } from "./removeMedicationConfirmCard";
import React, { Component } from 'react'; import { connect } from 'dva'; import Link from 'umi/link'; import { Alert } from 'antd'; import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; import Login from '@/components/Login'; import styles from './Login.less'; const { UserName, Password, Submit } = Login; @connect(({ login, loading }) => ({ login, submitting: loading.effects['login/login'], })) class LoginPage extends Component { state = { // type: 'account', // autoLogin: true, }; handleSubmit = (err, values) => { // const { type } = this.state; if (!err) { const { dispatch } = this.props; dispatch({ type: 'login/login', payload: { ...values, // type, }, }); } }; // changeAutoLogin = e => { // this.setState({ // autoLogin: e.target.checked, // }); // }; renderMessage = content => ( <Alert style={{ marginBottom: 24 }} message={content} type="error" showIcon /> ); render() { const { login, submitting } = this.props; // const { autoLogin } = this.state; return ( <div className={styles.main}> <Login onSubmit={this.handleSubmit} ref={form => { this.loginForm = form; }} > {login.status === 'error' && // login.type === 'account' && !submitting && this.renderMessage(formatMessage({ id: 'app.login.message-invalid-credentials' }))} <UserName name="email" placeholder="email" rules={[ { required: true, message: "email is required!", }, ]} /> <Password name="password" placeholder="password" rules={[ { required: true, message: "password is required", }, ]} onPressEnter={e => { e.preventDefault(); this.loginForm.validateFields(this.handleSubmit); }} /> <div> {/* <Checkbox checked={autoLogin} onChange={this.changeAutoLogin}> <FormattedMessage id="app.login.remember-me" /> </Checkbox> */} <a style={{ float: 'right' }} href=""> <FormattedMessage id="app.login.forgot-password" /> </a> </div> <Submit loading={submitting}> <FormattedMessage id="app.login.login" /> </Submit> <div className={styles.other}> <Link className={styles.register} to="/user/register"> <FormattedMessage id="app.login.signup" /> </Link> </div> </Login> </div> ); } } export default LoginPage;
const key = 'deals-stats-filter'; const FORM_FILTER_BY_START_DATE_TITLE = `${key}.form-filter-by-start-date-title`; const FORM_FILTER_BY_END_DATE_TITLE = `${key}.form-filter-by-end-date-title`; const BUTTON_FILTER_TITLE = `${key}.button-filter-title`; export default { FORM_FILTER_BY_START_DATE_TITLE, FORM_FILTER_BY_END_DATE_TITLE, BUTTON_FILTER_TITLE, };
require('dotenv').config() const fs = require('fs'); const Discord = require('discord.js'); const mongoose = require('mongoose'); const client = new Discord.Client(); client.commands = new Discord.Collection(); const commandFiles = fs.readdirSync('./controllers').filter(file => file.endsWith('.js')); const prefix = process.env.prefix; const token = process.env.BOT_TOKEN; var db = process.env.MONGODB_URI; console.log(typeof(token)); console.log(JSON.stringify(token)); console.log(process.env.BOT_TOKEN); mongoose.connect(db); for (const file of commandFiles) { const command = require(`./controllers/${file}`); client.commands.set(command.name, command); } client.on('ready', () => { console.log('Ready!'); }); client.on('message', message => { if (!message.content.startsWith(prefix) || message.author.bot) return; const args = message.content.slice(prefix.length).split(/ +/); const command = args.shift().toLowerCase(); if (command === (`npc`)) { client.commands.get('npcs').execute(message, args); } else if (command === (`faction`)) { client.commands.get('factions').execute(message, args); } else if (command === (`more-help`)) { message.channel.send("_please note that currently, all names are case sensitive. also, for now NPC names must be two words, and faction names must be one word._\n**NPCs:**\n`!npc list` - *List of all NPCs*\n`!npc get <npc name>` - *pulls up info on requested npc*\n`!npc new <npc name> <npc description>` - *creates a new npc*\n`!npc describe <npc name> <new npc description>` - *replaces the old description*\n`!npc rename <npc old name> <npc new name>` - *renames npc*\n`!npc recruit <npc name> <faction name>` - *adds npc to an existing faction*\n`!npc kill <npc name>` - *removes npc from database*\n**Factions:**\n `!faction list` - *List of all NPCs*\n`!faction get <faction name>` - *pulls up info on requested faction*\n`!faction new <new faction name< <new faction description>` - *creates a new faction*\n`!faction describe <faction name> <new faction description>` - *replaces the old description*\n`!faction rename <faction old name> <faction new name>` - *renames faction*\n`!faction recruit <faction name> <npc name>` - *adds npc to an existing faction*\n`!faction members <faction name>` - *pulls up a list of members of said faction*\n`!faction kill <faction name>` - *removes faction from database*"); } else if (command === (`help`)) { message.channel.send("_please note that currently, all names are case sensitive. also, for now NPC names must be two words, and faction names must be one word. editing commands are available at `!more-help`. thanks!_\n**NPCs:**\n`!npc list` - *List of all NPCs*\n`!npc get <npc name>` - *pulls up info on requested npc*\n**Factions:**\n `!faction list` - *List of all NPCs*\n`!faction get <faction name>` - *pulls up info on requested faction*"); } else if (command === 'args-info') { if (!args.length) { return message.channel.send(`You didn't provide any arguments, ${message.author}!`); } else if (args[0] === 'foo') { return message.channel.send('bar'); } message.channel.send(`First argument: ${args[0]}`); message.channel.send(`Command name: ${command}\nArguments: ${args}`); } else if (command === 'prune') { const amount = parseInt(args[0]) + 1; if (isNaN(amount)) { return message.reply('that doesn\'t seem to be a valid number.'); } else if (amount <= 1 || amount > 100) { return message.reply('you need to input a number between 1 and 99.'); } message.channel.bulkDelete(amount, true).catch(err => { console.error(err); message.channel.send('there was an error trying to prune messages in this channel!'); }); } else if (command === 'roll') { var roll = function(amt, size, bonus) { var face = function(sides) { var answer = Math.floor(Math.random() * sides) + 1; return answer }; var i; var result = parseInt(bonus) || 0; var rolls = (amt || 1); for (i = 0; i < rolls; i++) { let once = face(size) let rollnumber = i + 1; message.channel.send("roll " + rollnumber + ": " + once); result = result + once; }; return result }; if (!args.length) { var spell = roll(1, 20, 0); message.channel.send(spell) } else { var argument = args[0]; var form = argument.split('d'); var num = form[0]; var shape = form[1].split('+'); var magic = roll(num, shape[0], shape[1]); message.channel.send("result: " + magic); } } else if (command === 'roll-help') { message.channel.send("to roll a d20, simply type `!roll`. for more complicated dice rolls, add standard dice notation. here are some examples:\n`2d8` `d12+3` `3d4+3`\nplease do not use negative bonuses or incredibly large dice or number of dice. thanks") } }); client.login(token);
/* * Copyright 2015 Open Networking Laboratory * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ONOS GUI -- Remote -- General Functions - Unit Tests */ describe('factory: fw/remote/urlfn.js', function () { var $log, $loc, ufs, fs; var protocol, host, port; beforeEach(module('onosRemote')); beforeEach(module(function($provide) { $provide.factory('$location', function (){ return { protocol: function () { return protocol; }, host: function () { return host; }, port: function () { return port; } }; }) })); beforeEach(inject(function (_$log_, $location, UrlFnService, FnService) { $log = _$log_; $loc = $location; ufs = UrlFnService; fs = FnService; })); function setLoc(prot, h, p) { protocol = prot; host = h; port = p; } it('should define UrlFnService', function () { expect(ufs).toBeDefined(); }); it('should define api functions', function () { expect(fs.areFunctions(ufs, [ 'rsUrl', 'wsUrl' ])).toBeTruthy(); }); it('should return the correct (http) RS url', function () { setLoc('http', 'foo', '123'); expect(ufs.rsUrl('path')).toEqual('http://foo:123/onos/ui/rs/path'); }); it('should return the correct (https) RS url', function () { setLoc('https', 'foo', '123'); expect(ufs.rsUrl('path')).toEqual('https://foo:123/onos/ui/rs/path'); }); it('should return the correct (ws) WS url', function () { setLoc('http', 'foo', '123'); expect(ufs.wsUrl('path')).toEqual('ws://foo:123/onos/ui/websock/path'); }); it('should return the correct (wss) WS url', function () { setLoc('https', 'foo', '123'); expect(ufs.wsUrl('path')).toEqual('wss://foo:123/onos/ui/websock/path'); }); it('should allow us to define an alternate WS port', function () { setLoc('http', 'foo', '123'); expect(ufs.wsUrl('xyyzy', 456)).toEqual('ws://foo:456/onos/ui/websock/xyyzy'); }); it('should allow us to define an alternate host', function () { setLoc('http', 'foo', '123'); expect(ufs.wsUrl('core', 456, 'bar')).toEqual('ws://bar:456/onos/ui/websock/core'); }); });
import React, { Component } from 'react' import { Table, Button } from 'reactstrap'; import ModalForm from '../Modals/Modal' class DataTable extends Component { deleteItem = id => { let confirmDelete = window.confirm('Delete item forever?') if(confirmDelete){ const url = 'https://cors-anywhere.herokuapp.com/'; fetch('http://localhost:8090/rep/deleterepbyid/', { method: 'delete', headers: { "Access-Control-Allow-Origin":"*", "Access-Control-Allow-Methods": "HEAD, GET, POST, PUT, PATCH, DELETE", "Access-Control-Allow-Credentials": "true", "Access-Control-Allow-Headers": "X-Auth-Token,Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers", 'Content-Type': 'application/json' }, body: JSON.stringify({ id }) }) .then(response => response.json()) .then(item => { this.props.deleteItemFromState(id) }) .catch(err => console.log(err)) } } render() { const items = this.props.items.map(item => { return ( <tr key={item.id}> <th scope="row">{item.id}</th> <td>{item.name}</td> <td>{item.opening_sales}</td> <td>{item.closing_sales}</td> <td> <div style={{width:"110px"}}> <ModalForm buttonLabel="Edit" item={item} updateState={this.props.updateState}/> {' '} <Button color="danger" onClick={() => this.deleteItem(item.id)}>Del</Button> </div> </td> </tr> ) }) return ( <Table responsive hover> <thead> <tr> <th>id</th> <th>name</th> <th>opening_sales</th> <th>closing_sales</th> </tr> </thead> <tbody> {items} </tbody> </Table> ) } } export default DataTable
import React from "react"; // components import CardStats from "components/Cards/CardStats.js"; export default function HeaderStats() { return ( <> {/* Header */} <div className="relative bg-lightBlue-600 md:pt-32 pb-32 pt-12"> <div className="px-4 md:px-10 mx-auto w-full"> <div> {/* Card stats */} <div className="flex flex-wrap"> <div className="w-full lg:w-6/12 xl:w-3/12 px-4"> <CardStats statSubtitle="Total Users" statTitle="350,897" statArrow="up" // statPercent="3.48" // statPercentColor="text-emerald-500" // statDescripiron="Since last month" statIconName="far fa-chart-bar" statIconColor="bg-red-500" /> </div> <div className="w-full lg:w-6/12 xl:w-3/12 px-4"> <CardStats statSubtitle="NEW USERS" statTitle="2,356" statArrow="down" statPercent="3.48" statPercentColor="text-red-500" statDescripiron="Since last week" statIconName="fas fa-chart-pie" statIconColor="bg-orange-500" /> </div> <div className="w-full lg:w-6/12 xl:w-3/12 px-4"> <CardStats statSubtitle="Total Doctors" statTitle="924" statArrow="down" statPercent="1.10" statPercentColor="text-orange-500" statDescripiron="Since yesterday" statIconName="fas fa-users" statIconColor="bg-pink-500" /> </div> <div className="w-full lg:w-6/12 xl:w-3/12 px-4"> <CardStats statSubtitle="Total Hospitals" statTitle="49,65%" statArrow="up" statPercent="12" statPercentColor="text-emerald-500" statDescripiron="Since last month" statIconName="fas fa-percent" statIconColor="bg-lightBlue-500" /> </div> </div> </div> </div> </div> </> ); }
if (!window.LChart) { throw new Error('未能加载loongchart.core.js,该js必须在其他LChart框架的js加载之前被引用。\n' + 'Not loaded loongchart.core.js which must be loaded before other LChart\'s js.'); } else { LChart.Const.Skins.BlackAndWhite.Bar = { TopLabelColor: null }; } LChart.Bar = LChart.getCore().__extends({ GraphType: 'Bar' }); LChart.Bar._spreadSkin = function (newOps, skin) { newOps.topLabel = {}; newOps.topLabel.color = skin.TopLabelColor || null; }; LChart.Bar._getDefaultOptions = function (originalCommonOptions) { var options = LChart.Methods.Extend(originalCommonOptions, { animateY: true, animateX: true, bar: { colors: null, length: null, gap: null, useSameColor: true }, topLabel: { show: true, content: function (data) { if (this.valueType == 'd' || this.valueType == 't' || this.valueType == 'm') { return ''; } else if (this.valueType == 'p') { return data.percent.toFixed(1).toString() + '%'; } else { return data.value.toString(); } }, color: null, fontweight: null, fontsize: null, fontfamily: null } }); return options; }; LChart.Bar._getCheckOptions = function () { return { __top: [['animateY', 'b'], ['animateX', 'b']], bar: [['colors', 'ca'], ['length', 'n'], ['gap', 'n'], ['useSameColor', 'b']], topLabel: [['show', 'b'], ['content', 'f'], ['color', 'c'], ['fontweight', 's'], ['fontsize', 'n'], ['fontfamily', 's']] }; }; LChart.Bar._drawgraphic = function (inner, graphicID, innerData, options) { if (graphicID == inner.ID) { inner._configs.invertAxis = true; inner._configs.notAllowValueNegative = true; } var axisData = inner._formatAxisData(); var valids = inner._calculateOutersValid(); var axisSize = inner._computeAxis(valids); var coordinate = inner._getDrawableCoordinate(); inner.shapes[graphicID] = { bars: [] }; if (!inner.coordinates.bars) { inner.coordinates.bars = {}; } inner.coordinates.bars[graphicID] = []; var specificConfig = inner._configs.specificConfig[graphicID]; var percentType = axisData.vValueType == 'p'; var showshadow = options.shadow.show && options.shadow.blur > 0; var shadow = showshadow ? options.shadow : null; if (shadow) { if (shadow.blur && shadow.offsetX < shadow.blur) { shadow.offsetX = shadow.blur; } } var length = options.bar.length; var gap = options.bar.gap; if (axisData.multiple) { if (gap && gap > 0) { var maxGap = (axisSize.labelDistance - axisData.demanCount * 2) / (axisData.demanCount + 1); gap = Math.min(gap, maxGap); } else { gap = axisSize.labelDistance / 20; } } else { gap = 0; } if (length && length > 0) { var maxLen = axisData.multiple ? ((axisSize.labelDistance - (axisData.demanCount + 1) * gap) / axisData.demanCount) : axisSize.labelDistance * 0.8; length = Math.min(length, maxLen); } else { length = (axisSize.labelDistance - (axisData.demanCount + 1) * gap) / (axisData.multiple ? (axisData.demanCount + 0.5) : 1.5); } var getBarTop = function (i, k) { if (k != undefined) { var cut = axisData.demanCount / 2 - i; return axisSize.startPos - axisSize.labelDistance * k - cut * length - (cut - 0.5) * gap; } else { return axisSize.startPos - axisSize.labelDistance * i - length / 2 } }; var colors = (options.bar.colors && options.bar.colors.length > 0 ? options.bar.colors : null) || LChart.Const.Defaults.FillColors; if (graphicID == inner.ID) { inner.coordinates.draw = coordinate; inner._configs.legendColors = colors; if (axisData.multiple) { inner._configs.pointsPosition = { labelDistance: axisSize.labelDistance, startPoints: [] }; for (var i = 0, item; item = innerData[i]; i++) { inner._configs.pointsPosition[i] = getBarTop(i, 0) + length / 2; } } } var drawPart = function (left, top, width, height, color, data, _shadow) { inner.DrawFigures.createRectangleFill(left, top, width, height, color, _shadow || shadow); if (data && options.topLabel.show) { var ops = options.topLabel; var content = typeof ops.content == 'function' ? ops.content.call(options, data) : ''; if (content) { var size = ops.fontsize || LChart.Methods.CapValue(height, 18, 11); var _left = left + width + size / 2; var _top = top + height / 2 + size / 3; inner.DrawFigures.createText(content, _left, _top, 'left', data.fontweight || ops.fontweight, data.fontsize || size, ops.fontfamily, data.fontcolor || ops.color); } } }; var barShape = function (indexX, indexY, left, top, width, height, color, data) { this.indexX = indexX; this.indexY = indexY; this.left = left; this.top = top; this.width = width; this.height = height; this.data = data; this.isHovered = false; this.color = color; this.redraw = function (color, drawlabel) { if (arguments.length == 1 && typeof arguments[0] == 'boolean') { drawlabel = arguments[0]; color = undefined; } var tmpshadow = shadow; if (shadow && shadow.show && color) { tmpshadow = LChart.Methods.DeepCopy(shadow); tmpshadow.color = color; } drawPart(this.left, this.top, this.width, this.height, color || this.color, drawlabel ? this.data : null, tmpshadow); }; this.click = function (e) { var click = typeof this.data.click == 'function' ? this.data.click : (options.click || null); if (click) { click(this.data, e); } }; if (options.tip.show && typeof options.tip.content == 'function') { this.tip = null; this.showTip = function () { if (this.tip) { this.tip.style.display = 'inline'; } else { var left = this.left + this.width / 2 + 5; var top = this.top + this.height / 2; this.tip = inner._createTip(options.tip.content.call(options, this.data), left, top); var shape = this; shape.tip.onclick = function (e) { shape.click(e); }; } }; this.hideTip = function () { if (this.tip) { this.tip.style.display = 'none'; } }; } }; var drawSegments = function (animationDecimal, percentAnimComplete) { var getWidth = function (val) { var width = (options.animateX ? animationDecimal : 1) * (axisSize.maxX - axisSize.minX) * inner._getFormatDiff(axisData.vValueType, axisData.vMinValue, val) / inner._getFormatDiff(axisData.vValueType, axisData.vMinValue, axisData.vMaxValue); return width; }; for (var i = 0, item; item = innerData[i]; i++) { var height = (options.animateY ? animationDecimal : 1) * length; if (axisData.multiple) { var color = item.color || colors[i % colors.length]; var values = percentType ? item.percent : item.value; for (var k = 0; k < values.length; k++) { var val = values[k]; var top = getBarTop(i, k); var width = getWidth(val); var left = axisSize.minX; if (percentAnimComplete >= 1) { var data = { click: item.click, mouseover: item.mouseover, mouseleave: item.mouseleave, text: item.text, indexX: k, indexY: i, fontsize: item.fontsize, fontcolor: item.fontcolor, fontweight: item.fontweight }; if (percentType) { data.percent = val; data.value = item.value[k]; } else { data.value = val; } var shape = new barShape(k, i, left, top, width, height, color, data); inner.shapes[graphicID].bars.push(shape); drawPart(left, top, width, height, color, data); if (!inner.coordinates.bars[graphicID][k]) { inner.coordinates.bars[graphicID][k] = []; } inner.coordinates.bars[graphicID][k][i] = { left: left, top: top, width: width, height: height, color: color }; } else { drawPart(left, top, width, height, color); } } } else { var top = getBarTop(i); var width = getWidth(percentType ? item.percent : item.value); var left = axisSize.minX; var color = item.color || (options.bar.useSameColor ? 'rgba(69,114,167,1)' : colors[i % colors.length]); if (percentAnimComplete >= 1) { item.indexX = i; item.indexY = 1; var shape = new barShape(i, 1, left, top, width, height, color, item); inner.shapes[graphicID].bars.push(shape); drawPart(left, top, width, height, color, item); inner.coordinates.bars[graphicID][i] = { left: left, top: top, width: width, height: height, color: color }; } else { drawPart(left, top, width, height, color); } } } }; var mouseEvents = function () { var fixShape = function (x, y) { var veryShape = null; for (var i = 0, shape; shape = inner.shapes[graphicID].bars[i]; i++) { if (shape.left <= x && shape.left + shape.width >= x && shape.top <= y && shape.top + shape.height >= y) { veryShape = shape; break; } } return veryShape; }; var onclick = function (e) { var e = window.event || e; var location = inner._getMouseLoction(e); var veryShape = fixShape(location.X, location.Y); if (veryShape) { veryShape.click(e); } }; var onmousemove = function (e) { var e = window.event || e; var location = inner._getMouseLoction(e); var veryShape = fixShape(location.X, location.Y); if (veryShape) { inner._configs.cursorPointer = true; } if (specificConfig.currentMouseShape != veryShape) { var shape = specificConfig.currentMouseShape; if (shape) { var mouseleave = typeof shape.data.mouseleave == 'function' ? shape.data.mouseleave : (options.mouseleave || null); if (mouseleave) { mouseleave(shape.data, e); } } if (showshadow || specificConfig.currentMouseShape) { inner.redrawAll(); } specificConfig.currentMouseShape = veryShape; for (var i = 0, shape; shape = inner.shapes[graphicID].bars[i]; i++) { if (shape != veryShape && shape.isHovered) { shape.isHovered = false; if (shape.hideTip) { shape.hideTip(); } } } if (veryShape) { veryShape.isHovered = true; var mouseoverTransp = options.mouseoverTransparency; veryShape.redraw('rgba(255,255,255,' + (mouseoverTransp > 0 && mouseoverTransp < 1 ? mouseoverTransp : 0.2) + ')'); if (veryShape.showTip) { veryShape.showTip(); } var mouseover = typeof veryShape.data.mouseover == 'function' ? veryShape.data.mouseover : (options.mouseover || null); if (mouseover) { mouseover(veryShape.data, e); } } } }; inner._addEventListener('click', onclick); inner._addEventListener('mousemove', onmousemove); }; var redraw = function () { for (var i = 0, shape; shape = inner.shapes[graphicID].bars[i]; i++) { shape.redraw(true); } }; return { drawSegments: drawSegments, mouseEvents: mouseEvents, redraw: redraw }; };
function makeMap(e){for(var a={},t=e.split(","),l=t.length;l--;)a[t[l]]=!0;return a}var canIUse=wx.canIUse("editor");module.exports={filter:null,highlight:null,onText:null,entities:{quot:'"',apos:"'",semi:";",nbsp:" ",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},blankChar:makeMap(" , ,\t,\r,\n,\f"),inlineTags:makeMap("abbr,b,big,code,del,em,i,ins,label,q,small,span,strong"),blockTags:makeMap("address,article,aside,body,caption,center,cite,footer,header,html,nav,section"+(canIUse?"":",pre")),ignoreTags:makeMap("area,base,basefont,canvas,command,embed,frame,iframe,input,isindex,keygen,link,map,meta,param,script,source,style,svg,textarea,title,track,use,wbr"+(canIUse?",rp":"")),richOnlyTags:makeMap("a,colgroup,fieldset,legend,picture,table"+(canIUse?",bdi,bdo,rt,ruby":"")),selfClosingTags:makeMap("area,base,basefont,br,col,circle,ellipse,embed,frame,hr,img,input,isindex,keygen,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustAttrs:makeMap("align,alt,app-id,author,autoplay,border,cellpadding,cellspacing,class,color,colspan,controls,data-src,dir,face,height,href,id,ignore,loop,media,muted,name,path,poster,rowspan,size,span,src,start,style,type,unit-id,width,xmlns"),boolAttrs:makeMap("autoplay,controls,ignore,loop,muted"),trustTags:makeMap("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"+(canIUse?",bdi,bdo,caption,pre,rt,ruby":"")),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}};
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.tlh'); goog.require('Blockly.Msg'); Blockly.Msg.ADD_COMMENT = "QInHom chel"; Blockly.Msg.AUTH = "ngogh nablIj DapollaHmeH qoj latlhvaD DangeHlaHmeH chaw' yInob."; Blockly.Msg.CHANGE_VALUE_TITLE = "choH:"; Blockly.Msg.CHAT = "beqpu'lI'vaD bIjawmeH naDev yIrI'!"; Blockly.Msg.CLEAN_UP = "ngoghmeyvaD tlhegh rurmoH"; Blockly.Msg.COLLAPSE_ALL = "ngoghmey DejmoH"; Blockly.Msg.COLLAPSE_BLOCK = "ngogh DejmoH"; Blockly.Msg.COLOUR_BLEND_COLOUR1 = "rItlh wa'"; Blockly.Msg.COLOUR_BLEND_COLOUR2 = "rItlh cha'"; Blockly.Msg.COLOUR_BLEND_HELPURL = "http://meyerweb.com/eric/tools/color-blend/"; // untranslated Blockly.Msg.COLOUR_BLEND_RATIO = "'ar"; Blockly.Msg.COLOUR_BLEND_TITLE = "DuD"; Blockly.Msg.COLOUR_BLEND_TOOLTIP = "Blends two colours together with a given ratio (0.0 - 1.0)."; // untranslated Blockly.Msg.COLOUR_PICKER_HELPURL = "https://en.wikipedia.org/wiki/Color"; // untranslated Blockly.Msg.COLOUR_PICKER_TOOLTIP = "Choose a colour from the palette."; // untranslated Blockly.Msg.COLOUR_RANDOM_HELPURL = "http://randomcolour.com"; // untranslated Blockly.Msg.COLOUR_RANDOM_TITLE = "rItlh vISaHbe'"; Blockly.Msg.COLOUR_RANDOM_TOOLTIP = "Choose a colour at random."; // untranslated Blockly.Msg.COLOUR_RGB_BLUE = "chal rItlh"; Blockly.Msg.COLOUR_RGB_GREEN = "tI rItlh"; Blockly.Msg.COLOUR_RGB_HELPURL = "http://www.december.com/html/spec/colorper.html"; // untranslated Blockly.Msg.COLOUR_RGB_RED = "'Iw rItlh"; Blockly.Msg.COLOUR_RGB_TITLE = "rItlh wIv"; Blockly.Msg.COLOUR_RGB_TOOLTIP = "Create a colour with the specified amount of red, green, and blue. All values must be between 0 and 100."; // untranslated Blockly.Msg.CONTROLS_FLOW_STATEMENTS_HELPURL = "https://github.com/google/blockly/wiki/Loops#loop-termination-blocks"; // untranslated Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK = "gho Haw'"; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE = "gho taHqa'"; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK = "Break out of the containing loop."; // untranslated Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE = "Skip the rest of this loop, and continue with the next iteration."; // untranslated Blockly.Msg.CONTROLS_FLOW_STATEMENTS_WARNING = "yIqIm! ghoDaq neH ngoghvam lo'laH vay'."; Blockly.Msg.CONTROLS_FOREACH_HELPURL = "https://github.com/google/blockly/wiki/Loops#for-each"; // untranslated Blockly.Msg.CONTROLS_FOREACH_TITLE = "ngIq Doch %1 ngaSbogh tetlh %2 nuDDI'"; Blockly.Msg.CONTROLS_FOREACH_TOOLTIP = "For each item in a list, set the variable '%1' to the item, and then do some statements."; // untranslated Blockly.Msg.CONTROLS_FOR_HELPURL = "https://github.com/google/blockly/wiki/Loops#count-with"; // untranslated Blockly.Msg.CONTROLS_FOR_TITLE = "togh %1 mung %2 ghoch %3 Do %4"; Blockly.Msg.CONTROLS_FOR_TOOLTIP = "Have the variable '%1' take on the values from the start number to the end number, counting by the specified interval, and do the specified blocks."; // untranslated Blockly.Msg.CONTROLS_IF_ELSEIF_TOOLTIP = "Add a condition to the if block."; // untranslated Blockly.Msg.CONTROLS_IF_ELSE_TOOLTIP = "Add a final, catch-all condition to the if block."; // untranslated Blockly.Msg.CONTROLS_IF_HELPURL = "https://github.com/google/blockly/wiki/IfElse"; // untranslated Blockly.Msg.CONTROLS_IF_IF_TOOLTIP = "Add, remove, or reorder sections to reconfigure this if block."; // untranslated Blockly.Msg.CONTROLS_IF_MSG_ELSE = "pagh"; Blockly.Msg.CONTROLS_IF_MSG_ELSEIF = "pagh teHchugh"; Blockly.Msg.CONTROLS_IF_MSG_IF = "teHchugh"; Blockly.Msg.CONTROLS_IF_TOOLTIP_1 = "If a value is true, then do some statements."; // untranslated Blockly.Msg.CONTROLS_IF_TOOLTIP_2 = "If a value is true, then do the first block of statements. Otherwise, do the second block of statements."; // untranslated Blockly.Msg.CONTROLS_IF_TOOLTIP_3 = "If the first value is true, then do the first block of statements. Otherwise, if the second value is true, do the second block of statements."; // untranslated Blockly.Msg.CONTROLS_IF_TOOLTIP_4 = "If the first value is true, then do the first block of statements. Otherwise, if the second value is true, do the second block of statements. If none of the values are true, do the last block of statements."; // untranslated Blockly.Msg.CONTROLS_REPEAT_HELPURL = "https://en.wikipedia.org/wiki/For_loop"; // untranslated Blockly.Msg.CONTROLS_REPEAT_INPUT_DO = "ruch"; Blockly.Msg.CONTROLS_REPEAT_TITLE = "%1-logh qaSmoH"; Blockly.Msg.CONTROLS_REPEAT_TOOLTIP = "Do some statements several times."; // untranslated Blockly.Msg.CONTROLS_SWITCH = "switch "; // untranslated Blockly.Msg.CONTROLS_SWITCH_BREAK = "break"; // untranslated Blockly.Msg.CONTROLS_SWITCH_BREAK_TOOLTIP = "break the statement and leave the switch block."; // untranslated Blockly.Msg.CONTROLS_SWITCH_CASE = "case"; // untranslated Blockly.Msg.CONTROLS_SWITCH_CASE_TOOLTIP = "Add case."; // untranslated Blockly.Msg.CONTROLS_SWITCH_DEFAULT = "if there are no corresponding value"; // untranslated Blockly.Msg.CONTROLS_SWITCH_DO = "DO"; // untranslated Blockly.Msg.CONTROLS_SWITCH_TOOLTIP1 = "if there are no corresponding value, do first block statement and if value correspond with second value, do second block statement."; // untranslated Blockly.Msg.CONTROLS_SWITCH_TOOLTIP2 = "if there are no corresponding value, do first block statement, if value correspond with second value, do second block statement, and if value correspond with third value, do third block statement."; // untranslated Blockly.Msg.CONTROLS_SWITCH_TOOLTIP3 = "if there are no corresponding value, do first block statement and if value correspond with second value, do second block statement, .... , and if value correspond with last value, do last block statement."; // untranslated Blockly.Msg.CONTROLS_SWITCH_TOOLTIP4 = "if there are no corresponding value, do first block statement and if value correspond with second value, do second block statement, .... , and if value correspond with last value, do last block statement."; // untranslated Blockly.Msg.CONTROLS_WHILEUNTIL_HELPURL = "https://github.com/google/blockly/wiki/Loops#repeat"; // untranslated Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_UNTIL = "teHpa' qaSmoH"; Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_WHILE = "teHtaHvIS qaSmoH"; Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL = "While a value is false, then do some statements."; // untranslated Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE = "While a value is true, then do some statements."; // untranslated Blockly.Msg.DELETE_ALL_BLOCKS = "Hoch %1 ngoghmey Qaw'?"; Blockly.Msg.DELETE_BLOCK = "ngogh Qaw'"; Blockly.Msg.DELETE_X_BLOCKS = "%1 ngoghmey Qaw'"; Blockly.Msg.DISABLE_BLOCK = "ngogh Qotlh"; Blockly.Msg.DUPLICATE_BLOCK = "velqa' chenmoH"; Blockly.Msg.ENABLE_BLOCK = "ngogh QotlhHa'"; Blockly.Msg.EXPAND_ALL = "ngoghmey DejHa'moH"; Blockly.Msg.EXPAND_BLOCK = "ngogh DejHa'moH"; Blockly.Msg.EXTERNAL_INPUTS = "Hur rar"; Blockly.Msg.HELP = "QaH"; Blockly.Msg.INLINE_INPUTS = "qoD rar"; Blockly.Msg.LISTS_CREATE_EMPTY_HELPURL = "https://github.com/google/blockly/wiki/Lists#create-empty-list"; // untranslated Blockly.Msg.LISTS_CREATE_EMPTY_TITLE = "tetlh chIm"; Blockly.Msg.LISTS_CREATE_EMPTY_TOOLTIP = "Returns a list, of length 0, containing no data records"; // untranslated Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TITLE_ADD = "tetlh"; Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TOOLTIP = "Add, remove, or reorder sections to reconfigure this list block."; // untranslated Blockly.Msg.LISTS_CREATE_WITH_HELPURL = "https://github.com/google/blockly/wiki/Lists#create-list-with"; // untranslated Blockly.Msg.LISTS_CREATE_WITH_INPUT_WITH = "tetlh ghom"; Blockly.Msg.LISTS_CREATE_WITH_ITEM_TOOLTIP = "Add an item to the list."; // untranslated Blockly.Msg.LISTS_CREATE_WITH_TOOLTIP = "Create a list with any number of items."; // untranslated Blockly.Msg.LISTS_GET_INDEX_FIRST = "wa'DIch"; Blockly.Msg.LISTS_GET_INDEX_FROM_END = "# Qav"; Blockly.Msg.LISTS_GET_INDEX_FROM_START = "#"; Blockly.Msg.LISTS_GET_INDEX_GET = "Suq"; Blockly.Msg.LISTS_GET_INDEX_GET_REMOVE = "Suq vaj pej"; Blockly.Msg.LISTS_GET_INDEX_LAST = "Qav"; Blockly.Msg.LISTS_GET_INDEX_RANDOM = "Sahbe'"; Blockly.Msg.LISTS_GET_INDEX_REMOVE = "pej"; Blockly.Msg.LISTS_GET_INDEX_TAIL = ""; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FIRST = "Returns the first item in a list."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_END = "Returns the item at the specified position in a list. #1 is the last item."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_START = "Returns the item at the specified position in a list. #1 is the first item."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_LAST = "Returns the last item in a list."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM = "Returns a random item in a list."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FIRST = "Removes and returns the first item in a list."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM_END = "Removes and returns the item at the specified position in a list. #1 is the last item."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM_START = "Removes and returns the item at the specified position in a list. #1 is the first item."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_LAST = "Removes and returns the last item in a list."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM = "Removes and returns a random item in a list."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FIRST = "Removes the first item in a list."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_END = "Removes the item at the specified position in a list. #1 is the last item."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_START = "Removes the item at the specified position in a list. #1 is the first item."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_LAST = "Removes the last item in a list."; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_RANDOM = "Removes a random item in a list."; // untranslated Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_END = "mojaQ # Qav"; Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_START = "mojaQ #"; Blockly.Msg.LISTS_GET_SUBLIST_END_LAST = "mojaQ Qav"; Blockly.Msg.LISTS_GET_SUBLIST_HELPURL = "https://github.com/google/blockly/wiki/Lists#getting-a-sublist"; // untranslated Blockly.Msg.LISTS_GET_SUBLIST_START_FIRST = "tetlhHom moHaq wa'DIch"; Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_END = "tetlhHom moHaq # Qav"; Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_START = "tetlhHom moHaq #"; Blockly.Msg.LISTS_GET_SUBLIST_TAIL = "Suq"; Blockly.Msg.LISTS_GET_SUBLIST_TOOLTIP = "Creates a copy of the specified portion of a list."; // untranslated Blockly.Msg.LISTS_INDEX_OF_FIRST = "Doch sam wa'DIch"; Blockly.Msg.LISTS_INDEX_OF_HELPURL = "https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list"; // untranslated Blockly.Msg.LISTS_INDEX_OF_LAST = "Doch sam Qav"; Blockly.Msg.LISTS_INDEX_OF_TOOLTIP = "Returns the index of the first/last occurrence of the item in the list. Returns 0 if item is not found."; // untranslated Blockly.Msg.LISTS_INLIST = "tetlhDaq"; Blockly.Msg.LISTS_ISEMPTY_HELPURL = "https://github.com/google/blockly/wiki/Lists#is-empty"; // untranslated Blockly.Msg.LISTS_ISEMPTY_TITLE = "%1 chIm'a'"; Blockly.Msg.LISTS_ISEMPTY_TOOLTIP = "Returns true if the list is empty."; // untranslated Blockly.Msg.LISTS_LENGTH_HELPURL = "https://github.com/google/blockly/wiki/Lists#length-of"; // untranslated Blockly.Msg.LISTS_LENGTH_TITLE = "chuq %1"; Blockly.Msg.LISTS_LENGTH_TOOLTIP = "Returns the length of a list."; // untranslated Blockly.Msg.LISTS_REPEAT_HELPURL = "https://github.com/google/blockly/wiki/Lists#create-list-with"; // untranslated Blockly.Msg.LISTS_REPEAT_TITLE = "tetlh ghom %2 Dochmey %1 pus"; Blockly.Msg.LISTS_REPEAT_TOOLTIP = "Creates a list consisting of the given value repeated the specified number of times."; // untranslated Blockly.Msg.LISTS_SET_INDEX_HELPURL = "https://github.com/google/blockly/wiki/Lists#in-list--set"; // untranslated Blockly.Msg.LISTS_SET_INDEX_INPUT_TO = "Dos"; Blockly.Msg.LISTS_SET_INDEX_INSERT = "lIH"; Blockly.Msg.LISTS_SET_INDEX_SET = "choH"; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FIRST = "Inserts the item at the start of a list."; // untranslated Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_END = "Inserts the item at the specified position in a list. #1 is the last item."; // untranslated Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_START = "Inserts the item at the specified position in a list. #1 is the first item."; // untranslated Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_LAST = "Append the item to the end of a list."; // untranslated Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_RANDOM = "Inserts the item randomly in a list."; // untranslated Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FIRST = "Sets the first item in a list."; // untranslated Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_END = "Sets the item at the specified position in a list. #1 is the last item."; // untranslated Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_START = "Sets the item at the specified position in a list. #1 is the first item."; // untranslated Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_LAST = "Sets the last item in a list."; // untranslated Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_RANDOM = "Sets a random item in a list."; // untranslated Blockly.Msg.LISTS_SORT_HELPURL = "https://github.com/google/blockly/wiki/Lists#sorting-a-list"; // untranslated Blockly.Msg.LISTS_SORT_ORDER_ASCENDING = "ascending"; // untranslated Blockly.Msg.LISTS_SORT_ORDER_DESCENDING = "descending"; // untranslated Blockly.Msg.LISTS_SORT_TITLE = "sort %1 %2 %3"; // untranslated Blockly.Msg.LISTS_SORT_TOOLTIP = "Sort a copy of a list."; // untranslated Blockly.Msg.LISTS_SORT_TYPE_IGNORECASE = "alphabetic, ignore case"; // untranslated Blockly.Msg.LISTS_SORT_TYPE_NUMERIC = "numeric"; // untranslated Blockly.Msg.LISTS_SORT_TYPE_TEXT = "alphabetic"; // untranslated Blockly.Msg.LISTS_SPLIT_HELPURL = "https://github.com/google/blockly/wiki/Lists#splitting-strings-and-joining-lists"; // untranslated Blockly.Msg.LISTS_SPLIT_LIST_FROM_TEXT = "tetlh ghermeH ghItlh wav"; Blockly.Msg.LISTS_SPLIT_TEXT_FROM_LIST = "ghItlh chenmoHmeH tetlh gherHa'"; Blockly.Msg.LISTS_SPLIT_TOOLTIP_JOIN = "Join a list of texts into one text, separated by a delimiter."; // untranslated Blockly.Msg.LISTS_SPLIT_TOOLTIP_SPLIT = "Split text into a list of texts, breaking at each delimiter."; // untranslated Blockly.Msg.LISTS_SPLIT_WITH_DELIMITER = "rarwI'Hom lo'"; Blockly.Msg.LOGIC_BOOLEAN_FALSE = "teHbe'"; Blockly.Msg.LOGIC_BOOLEAN_HELPURL = "https://github.com/google/blockly/wiki/Logic#values"; // untranslated Blockly.Msg.LOGIC_BOOLEAN_TOOLTIP = "Returns either true or false."; // untranslated Blockly.Msg.LOGIC_BOOLEAN_TRUE = "teH"; Blockly.Msg.LOGIC_COMPARE_HELPURL = "https://en.wikipedia.org/wiki/Inequality_(mathematics)"; // untranslated Blockly.Msg.LOGIC_COMPARE_TOOLTIP_EQ = "Return true if both inputs equal each other."; // untranslated Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT = "Return true if the first input is greater than the second input."; // untranslated Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GTE = "Return true if the first input is greater than or equal to the second input."; // untranslated Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT = "Return true if the first input is smaller than the second input."; // untranslated Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LTE = "Return true if the first input is smaller than or equal to the second input."; // untranslated Blockly.Msg.LOGIC_COMPARE_TOOLTIP_NEQ = "Return true if both inputs are not equal to each other."; // untranslated Blockly.Msg.LOGIC_NEGATE_HELPURL = "https://github.com/google/blockly/wiki/Logic#not"; // untranslated Blockly.Msg.LOGIC_NEGATE_TITLE = "yoymoH %1"; Blockly.Msg.LOGIC_NEGATE_TOOLTIP = "Returns true if the input is false. Returns false if the input is true."; // untranslated Blockly.Msg.LOGIC_NULL = "paghna'"; Blockly.Msg.LOGIC_NULL_HELPURL = "https://en.wikipedia.org/wiki/Nullable_type"; // untranslated Blockly.Msg.LOGIC_NULL_TOOLTIP = "Returns null."; // untranslated Blockly.Msg.LOGIC_OPERATION_AND = "'ej"; Blockly.Msg.LOGIC_OPERATION_HELPURL = "https://github.com/google/blockly/wiki/Logic#logical-operations"; // untranslated Blockly.Msg.LOGIC_OPERATION_OR = "qoj"; Blockly.Msg.LOGIC_OPERATION_TOOLTIP_AND = "Return true if both inputs are true."; // untranslated Blockly.Msg.LOGIC_OPERATION_TOOLTIP_OR = "Return true if at least one of the inputs is true."; // untranslated Blockly.Msg.LOGIC_TERNARY_CONDITION = "chov"; Blockly.Msg.LOGIC_TERNARY_HELPURL = "https://en.wikipedia.org/wiki/%3F:"; // untranslated Blockly.Msg.LOGIC_TERNARY_IF_FALSE = "teHbe'chugh"; Blockly.Msg.LOGIC_TERNARY_IF_TRUE = "teHchugh"; Blockly.Msg.LOGIC_TERNARY_TOOLTIP = "Check the condition in 'test'. If the condition is true, returns the 'if true' value; otherwise returns the 'if false' value."; // untranslated Blockly.Msg.MATH_ADDITION_SYMBOL = "+"; Blockly.Msg.MATH_ARITHMETIC_HELPURL = "https://en.wikipedia.org/wiki/Arithmetic"; // untranslated Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_ADD = "Return the sum of the two numbers."; // untranslated Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE = "Return the quotient of the two numbers."; // untranslated Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS = "Return the difference of the two numbers."; // untranslated Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY = "Return the product of the two numbers."; // untranslated Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_POWER = "Return the first number raised to the power of the second number."; // untranslated Blockly.Msg.MATH_CHANGE_HELPURL = "https://en.wikipedia.org/wiki/Programming_idiom#Incrementing_a_counter"; // untranslated Blockly.Msg.MATH_CHANGE_TITLE = "choH %1 chel %2"; Blockly.Msg.MATH_CHANGE_TOOLTIP = "Add a number to variable '%1'."; // untranslated Blockly.Msg.MATH_CONSTANT_HELPURL = "https://en.wikipedia.org/wiki/Mathematical_constant"; // untranslated Blockly.Msg.MATH_CONSTANT_TOOLTIP = "Return one of the common constants: π (3.141…), e (2.718…), φ (1.618…), sqrt(2) (1.414…), sqrt(½) (0.707…), or ∞ (infinity)."; // untranslated Blockly.Msg.MATH_CONSTRAIN_HELPURL = "https://en.wikipedia.org/wiki/Clamping_%28graphics%29"; // untranslated Blockly.Msg.MATH_CONSTRAIN_TITLE = "jon %1 bIng %2 Dung %3"; Blockly.Msg.MATH_CONSTRAIN_TOOLTIP = "Constrain a number to be between the specified limits (inclusive)."; // untranslated Blockly.Msg.MATH_DIVISION_SYMBOL = "÷"; Blockly.Msg.MATH_IS_DIVISIBLE_BY = "wav'a'"; Blockly.Msg.MATH_IS_EVEN = "lang'a' mI'"; Blockly.Msg.MATH_IS_NEGATIVE = "bIng pagh"; Blockly.Msg.MATH_IS_ODD = "ror'a' mI'"; Blockly.Msg.MATH_IS_POSITIVE = "Dung pagh"; Blockly.Msg.MATH_IS_PRIME = "potlh'a' mI'"; Blockly.Msg.MATH_IS_TOOLTIP = "Check if a number is an even, odd, prime, whole, positive, negative, or if it is divisible by certain number. Returns true or false."; // untranslated Blockly.Msg.MATH_IS_WHOLE = "ngoHlaHbe''a'"; Blockly.Msg.MATH_MODULO_HELPURL = "https://en.wikipedia.org/wiki/Modulo_operation"; // untranslated Blockly.Msg.MATH_MODULO_TITLE = "ratlwI' SIm %1 ÷ %2"; Blockly.Msg.MATH_MODULO_TOOLTIP = "Return the remainder from dividing the two numbers."; // untranslated Blockly.Msg.MATH_MULTIPLICATION_SYMBOL = "×"; Blockly.Msg.MATH_NUMBER_HELPURL = "https://en.wikipedia.org/wiki/Number"; // untranslated Blockly.Msg.MATH_NUMBER_TOOLTIP = "A number."; // untranslated Blockly.Msg.MATH_ONLIST_HELPURL = ""; // untranslated Blockly.Msg.MATH_ONLIST_OPERATOR_AVERAGE = "beQwI' SIm tetlh"; Blockly.Msg.MATH_ONLIST_OPERATOR_MAX = "tInwI''a' SIm tetlh"; Blockly.Msg.MATH_ONLIST_OPERATOR_MEDIAN = "beQwI'botlh SIm tetlh"; Blockly.Msg.MATH_ONLIST_OPERATOR_MIN = "machwI''a' SIm tetlh"; Blockly.Msg.MATH_ONLIST_OPERATOR_MODE = "beQwI' motlh SIm tetlh"; Blockly.Msg.MATH_ONLIST_OPERATOR_RANDOM = "SaHbe' SIm tetlh"; Blockly.Msg.MATH_ONLIST_OPERATOR_STD_DEV = "motlhbe'wI' SIm tetlh"; Blockly.Msg.MATH_ONLIST_OPERATOR_SUM = "chelwI' SIm tetlh"; Blockly.Msg.MATH_ONLIST_TOOLTIP_AVERAGE = "Return the average (arithmetic mean) of the numeric values in the list."; // untranslated Blockly.Msg.MATH_ONLIST_TOOLTIP_MAX = "Return the largest number in the list."; // untranslated Blockly.Msg.MATH_ONLIST_TOOLTIP_MEDIAN = "Return the median number in the list."; // untranslated Blockly.Msg.MATH_ONLIST_TOOLTIP_MIN = "Return the smallest number in the list."; // untranslated Blockly.Msg.MATH_ONLIST_TOOLTIP_MODE = "Return a list of the most common item(s) in the list."; // untranslated Blockly.Msg.MATH_ONLIST_TOOLTIP_RANDOM = "Return a random element from the list."; // untranslated Blockly.Msg.MATH_ONLIST_TOOLTIP_STD_DEV = "Return the standard deviation of the list."; // untranslated Blockly.Msg.MATH_ONLIST_TOOLTIP_SUM = "Return the sum of all the numbers in the list."; // untranslated Blockly.Msg.MATH_POWER_SYMBOL = "^"; Blockly.Msg.MATH_RANDOM_FLOAT_HELPURL = "https://en.wikipedia.org/wiki/Random_number_generation"; // untranslated Blockly.Msg.MATH_RANDOM_FLOAT_TITLE_RANDOM = "mI'HomSaHbe'"; Blockly.Msg.MATH_RANDOM_FLOAT_TOOLTIP = "Return a random fraction between 0.0 (inclusive) and 1.0 (exclusive)."; // untranslated Blockly.Msg.MATH_RANDOM_INT_HELPURL = "https://en.wikipedia.org/wiki/Random_number_generation"; // untranslated Blockly.Msg.MATH_RANDOM_INT_TITLE = "ngoH mI'SaHbe' bIng %1 Dung %2"; Blockly.Msg.MATH_RANDOM_INT_TOOLTIP = "Return a random integer between the two specified limits, inclusive."; // untranslated Blockly.Msg.MATH_ROUND_HELPURL = "https://en.wikipedia.org/wiki/Rounding"; // untranslated Blockly.Msg.MATH_ROUND_OPERATOR_ROUND = "ngoH"; Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDDOWN = "bIng ngoH"; Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDUP = "Dung ngoH"; Blockly.Msg.MATH_ROUND_TOOLTIP = "Round a number up or down."; // untranslated Blockly.Msg.MATH_SINGLE_HELPURL = "https://en.wikipedia.org/wiki/Square_root"; // untranslated Blockly.Msg.MATH_SINGLE_OP_ABSOLUTE = "Dung pagh choH"; Blockly.Msg.MATH_SINGLE_OP_ROOT = "cha'DIch wav"; Blockly.Msg.MATH_SINGLE_TOOLTIP_ABS = "Return the absolute value of a number."; // untranslated Blockly.Msg.MATH_SINGLE_TOOLTIP_EXP = "Return e to the power of a number."; // untranslated Blockly.Msg.MATH_SINGLE_TOOLTIP_LN = "Return the natural logarithm of a number."; // untranslated Blockly.Msg.MATH_SINGLE_TOOLTIP_LOG10 = "Return the base 10 logarithm of a number."; // untranslated Blockly.Msg.MATH_SINGLE_TOOLTIP_NEG = "Return the negation of a number."; // untranslated Blockly.Msg.MATH_SINGLE_TOOLTIP_POW10 = "Return 10 to the power of a number."; // untranslated Blockly.Msg.MATH_SINGLE_TOOLTIP_ROOT = "Return the square root of a number."; // untranslated Blockly.Msg.MATH_SUBTRACTION_SYMBOL = "-"; Blockly.Msg.MATH_TRIG_ACOS = "acos"; Blockly.Msg.MATH_TRIG_ASIN = "asin"; Blockly.Msg.MATH_TRIG_ATAN = "atan"; Blockly.Msg.MATH_TRIG_COS = "cos"; Blockly.Msg.MATH_TRIG_HELPURL = "https://en.wikipedia.org/wiki/Trigonometric_functions"; // untranslated Blockly.Msg.MATH_TRIG_SIN = "sin"; Blockly.Msg.MATH_TRIG_TAN = "tan"; Blockly.Msg.MATH_TRIG_TOOLTIP_ACOS = "Return the arccosine of a number."; // untranslated Blockly.Msg.MATH_TRIG_TOOLTIP_ASIN = "Return the arcsine of a number."; // untranslated Blockly.Msg.MATH_TRIG_TOOLTIP_ATAN = "Return the arctangent of a number."; // untranslated Blockly.Msg.MATH_TRIG_TOOLTIP_COS = "Return the cosine of a degree (not radian)."; // untranslated Blockly.Msg.MATH_TRIG_TOOLTIP_SIN = "Return the sine of a degree (not radian)."; // untranslated Blockly.Msg.MATH_TRIG_TOOLTIP_TAN = "Return the tangent of a degree (not radian)."; // untranslated Blockly.Msg.ME = "Me"; // untranslated Blockly.Msg.NEW_VARIABLE = "lIw chu'..."; Blockly.Msg.NEW_VARIABLE_TITLE = "lIw chu' pong:"; Blockly.Msg.ORDINAL_NUMBER_SUFFIX = ""; Blockly.Msg.PROCEDURES_ALLOW_STATEMENTS = "mu'tlhegh chaw'"; Blockly.Msg.PROCEDURES_BEFORE_PARAMS = "qel:"; Blockly.Msg.PROCEDURES_CALLNORETURN_HELPURL = "https://en.wikipedia.org/wiki/Procedure_%28computer_science%29"; // untranslated Blockly.Msg.PROCEDURES_CALLNORETURN_TOOLTIP = "Run the user-defined function '%1'."; // untranslated Blockly.Msg.PROCEDURES_CALLRETURN_HELPURL = "https://en.wikipedia.org/wiki/Procedure_%28computer_science%29"; // untranslated Blockly.Msg.PROCEDURES_CALLRETURN_TOOLTIP = "Run the user-defined function '%1' and use its output."; // untranslated Blockly.Msg.PROCEDURES_CALL_BEFORE_PARAMS = "qel:"; Blockly.Msg.PROCEDURES_CREATE_DO = "chel '%1'"; Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT = "mIw yIDel..."; Blockly.Msg.PROCEDURES_DEFNORETURN_DO = ""; Blockly.Msg.PROCEDURES_DEFNORETURN_HELPURL = "https://en.wikipedia.org/wiki/Procedure_%28computer_science%29"; // untranslated Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE = "mIw"; Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE = "ruch"; Blockly.Msg.PROCEDURES_DEFNORETURN_TOOLTIP = "Creates a function with no output."; // untranslated Blockly.Msg.PROCEDURES_DEFRETURN_HELPURL = "https://en.wikipedia.org/wiki/Procedure_%28computer_science%29"; // untranslated Blockly.Msg.PROCEDURES_DEFRETURN_RETURN = "chegh"; Blockly.Msg.PROCEDURES_DEFRETURN_TOOLTIP = "Creates a function with an output."; // untranslated Blockly.Msg.PROCEDURES_DEF_DUPLICATE_WARNING = "ghuHmoHna': qelwI' cha'logh chen."; Blockly.Msg.PROCEDURES_HIGHLIGHT_DEF = "mIwna' wew"; Blockly.Msg.PROCEDURES_IFRETURN_HELPURL = "http://c2.com/cgi/wiki?GuardClause"; // untranslated Blockly.Msg.PROCEDURES_IFRETURN_TOOLTIP = "If a value is true, then return a second value."; // untranslated Blockly.Msg.PROCEDURES_IFRETURN_WARNING = "ghoHmoHna': ngoghvam ngaSbe' mIwDaq."; Blockly.Msg.PROCEDURES_MUTATORARG_TITLE = "pong:"; Blockly.Msg.PROCEDURES_MUTATORARG_TOOLTIP = "Add an input to the function."; // untranslated Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TITLE = "qelwI'mey"; Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TOOLTIP = "Add, remove, or reorder inputs to this function."; // untranslated Blockly.Msg.REDO = "vangqa'"; Blockly.Msg.REMOVE_COMMENT = "QInHom chelHa'"; Blockly.Msg.RENAME_VARIABLE = "lIw pong choH..."; Blockly.Msg.RENAME_VARIABLE_TITLE = "Hoch \"%1\" lIwmey pongmey choH:"; Blockly.Msg.TEXT_APPEND_APPENDTEXT = "ghItlh"; Blockly.Msg.TEXT_APPEND_HELPURL = "https://github.com/google/blockly/wiki/Text#text-modification"; // untranslated Blockly.Msg.TEXT_APPEND_TO = "chel"; Blockly.Msg.TEXT_APPEND_TOOLTIP = "Append some text to variable '%1'."; // untranslated Blockly.Msg.TEXT_CHANGECASE_HELPURL = "https://github.com/google/blockly/wiki/Text#adjusting-text-case"; // untranslated Blockly.Msg.TEXT_CHANGECASE_OPERATOR_LOWERCASE = "machchoH"; Blockly.Msg.TEXT_CHANGECASE_OPERATOR_TITLECASE = "DojchoH"; Blockly.Msg.TEXT_CHANGECASE_OPERATOR_UPPERCASE = "tInchoH"; Blockly.Msg.TEXT_CHANGECASE_TOOLTIP = "Return a copy of the text in a different case."; // untranslated Blockly.Msg.TEXT_CHARAT_FIRST = "mu'Hom wa'DIch"; Blockly.Msg.TEXT_CHARAT_FROM_END = "mu'Hom # Qav"; Blockly.Msg.TEXT_CHARAT_FROM_START = "mu'Hom #"; Blockly.Msg.TEXT_CHARAT_HELPURL = "https://github.com/google/blockly/wiki/Text#extracting-text"; // untranslated Blockly.Msg.TEXT_CHARAT_INPUT_INTEXT = "ghItlhDaq"; Blockly.Msg.TEXT_CHARAT_LAST = "mu'Hom Qav"; Blockly.Msg.TEXT_CHARAT_RANDOM = "mu'Hom SaHbe'"; Blockly.Msg.TEXT_CHARAT_TAIL = "Suq"; Blockly.Msg.TEXT_CHARAT_TOOLTIP = "Returns the letter at the specified position."; // untranslated Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TOOLTIP = "Add an item to the text."; // untranslated Blockly.Msg.TEXT_CREATE_JOIN_TITLE_JOIN = "ghom"; Blockly.Msg.TEXT_CREATE_JOIN_TOOLTIP = "Add, remove, or reorder sections to reconfigure this text block."; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_END = "mojaq mu'Hom # Qav"; Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_START = "mojaq mu'Hom #"; Blockly.Msg.TEXT_GET_SUBSTRING_END_LAST = "mojaq mu'Hom Qav"; Blockly.Msg.TEXT_GET_SUBSTRING_HELPURL = "https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text"; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_INPUT_IN_TEXT = "ghItlhDaq"; Blockly.Msg.TEXT_GET_SUBSTRING_START_FIRST = "ghItlhHom moHaq mu'Hom wa'DIch"; Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_END = "ghItlhHom moHaq mu'Hom # Qav"; Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_START = "ghItlhHom moHaq mu'Hom #"; Blockly.Msg.TEXT_GET_SUBSTRING_TAIL = "Suq"; Blockly.Msg.TEXT_GET_SUBSTRING_TOOLTIP = "Returns a specified portion of the text."; // untranslated Blockly.Msg.TEXT_INDEXOF_HELPURL = "https://github.com/google/blockly/wiki/Text#finding-text"; // untranslated Blockly.Msg.TEXT_INDEXOF_INPUT_INTEXT = "ghItlhDaq"; Blockly.Msg.TEXT_INDEXOF_OPERATOR_FIRST = "ghItlh wa'DIch Sam"; Blockly.Msg.TEXT_INDEXOF_OPERATOR_LAST = "ghItlh Qav Sam"; Blockly.Msg.TEXT_INDEXOF_TAIL = ""; Blockly.Msg.TEXT_INDEXOF_TOOLTIP = "Returns the index of the first/last occurrence of the first text in the second text. Returns 0 if text is not found."; // untranslated Blockly.Msg.TEXT_ISEMPTY_HELPURL = "https://github.com/google/blockly/wiki/Text#checking-for-empty-text"; // untranslated Blockly.Msg.TEXT_ISEMPTY_TITLE = "%1 chIm'a'"; Blockly.Msg.TEXT_ISEMPTY_TOOLTIP = "Returns true if the provided text is empty."; // untranslated Blockly.Msg.TEXT_JOIN_HELPURL = "https://github.com/google/blockly/wiki/Text#text-creation"; // untranslated Blockly.Msg.TEXT_JOIN_TITLE_CREATEWITH = "ghItlh ghom"; Blockly.Msg.TEXT_JOIN_TOOLTIP = "Create a piece of text by joining together any number of items."; // untranslated Blockly.Msg.TEXT_LENGTH_HELPURL = "https://github.com/google/blockly/wiki/Text#text-modification"; // untranslated Blockly.Msg.TEXT_LENGTH_TITLE = "chuq %1"; Blockly.Msg.TEXT_LENGTH_TOOLTIP = "Returns the number of letters (including spaces) in the provided text."; // untranslated Blockly.Msg.TEXT_PRINT_HELPURL = "https://github.com/google/blockly/wiki/Text#printing-text"; // untranslated Blockly.Msg.TEXT_PRINT_TITLE = "maq %1"; Blockly.Msg.TEXT_PRINT_TOOLTIP = "Print the specified text, number or other value."; // untranslated Blockly.Msg.TEXT_PROMPT_HELPURL = "https://github.com/google/blockly/wiki/Text#getting-input-from-the-user"; // untranslated Blockly.Msg.TEXT_PROMPT_TOOLTIP_NUMBER = "Prompt for user for a number."; // untranslated Blockly.Msg.TEXT_PROMPT_TOOLTIP_TEXT = "Prompt for user for some text."; // untranslated Blockly.Msg.TEXT_PROMPT_TYPE_NUMBER = "mI' tlhob 'ej maq"; Blockly.Msg.TEXT_PROMPT_TYPE_TEXT = "ghItln tlhob 'ej maq"; Blockly.Msg.TEXT_TEXT_HELPURL = "https://en.wikipedia.org/wiki/String_(computer_science)"; // untranslated Blockly.Msg.TEXT_TEXT_TOOLTIP = "A letter, word, or line of text."; // untranslated Blockly.Msg.TEXT_TRIM_HELPURL = "https://github.com/google/blockly/wiki/Text#trimming-removing-spaces"; // untranslated Blockly.Msg.TEXT_TRIM_OPERATOR_BOTH = "poSnIHlogh pei"; Blockly.Msg.TEXT_TRIM_OPERATOR_LEFT = "poSlogh pei"; Blockly.Msg.TEXT_TRIM_OPERATOR_RIGHT = "nIHlogh pei"; Blockly.Msg.TEXT_TRIM_TOOLTIP = "Return a copy of the text with spaces removed from one or both ends."; // untranslated Blockly.Msg.TODAY = "DaHjaj"; Blockly.Msg.UNDO = "vangHa'"; Blockly.Msg.VARIABLES_DEFAULT_NAME = "Doch"; Blockly.Msg.VARIABLES_GET_CREATE_SET = "chel 'choH %1'"; Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Variables#get"; // untranslated Blockly.Msg.VARIABLES_GET_TOOLTIP = "Returns the value of this variable."; // untranslated Blockly.Msg.VARIABLES_SET = "choH %1 %2"; Blockly.Msg.VARIABLES_SET_CREATE_GET = "chel 'Suq %1'"; Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set"; // untranslated Blockly.Msg.VARIABLES_SET_TOOLTIP = "Sets this variable to be equal to the input."; // untranslated Blockly.Msg.MATH_CHANGE_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.PROCEDURES_DEFRETURN_TITLE = Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE; Blockly.Msg.CONTROLS_IF_IF_TITLE_IF = Blockly.Msg.CONTROLS_IF_MSG_IF; Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.CONTROLS_IF_MSG_THEN = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.CONTROLS_IF_ELSE_TITLE_ELSE = Blockly.Msg.CONTROLS_IF_MSG_ELSE; Blockly.Msg.PROCEDURES_DEFRETURN_PROCEDURE = Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE; Blockly.Msg.LISTS_GET_SUBLIST_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.LISTS_GET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.PROCEDURES_DEFRETURN_DO = Blockly.Msg.PROCEDURES_DEFNORETURN_DO; Blockly.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF = Blockly.Msg.CONTROLS_IF_MSG_ELSEIF; Blockly.Msg.LISTS_GET_INDEX_HELPURL = Blockly.Msg.LISTS_INDEX_OF_HELPURL; Blockly.Msg.CONTROLS_FOREACH_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.LISTS_SET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.CONTROLS_FOR_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.LISTS_CREATE_WITH_ITEM_TITLE = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.TEXT_APPEND_VARIABLE = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.LISTS_INDEX_OF_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT = Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT; // Ardublockly strings Blockly.Msg.ARD_ANALOGREAD = "read analog Pin#"; // untranslated Blockly.Msg.ARD_ANALOGREAD_TIP = "Return value between 0 and 1024"; // untranslated Blockly.Msg.ARD_ANALOGWRITE = "set analog Pin#"; // untranslated Blockly.Msg.ARD_ANALOGWRITE_TIP = "Write analog value between 0 and 255 to a specific PWM Port"; // untranslated Blockly.Msg.ARD_BUILTIN_LED = "set built-in LED"; // untranslated Blockly.Msg.ARD_BUILTIN_LED_TIP = "Light on or off for the built-in LED of the Arduino"; // untranslated Blockly.Msg.ARD_COMPONENT_WARN1 = "A %1 configuration block with the same %2 name must be added to use this block!"; // untranslated Blockly.Msg.ARD_DEFINE = "Define"; // untranslated Blockly.Msg.ARD_DIGITALREAD = "read digital Pin#"; // untranslated Blockly.Msg.ARD_DIGITALREAD_TIP = "Read digital value on a Pin: HIGH or LOW"; // untranslated Blockly.Msg.ARD_DIGITALWRITE = "set digitial Pin#"; // untranslated Blockly.Msg.ARD_DIGITALWRITE_TIP = "Write digital value HIGH or LOW to a specific Port"; // untranslated Blockly.Msg.ARD_FUN_RUN_LOOP = "Arduino loop forever:"; // untranslated Blockly.Msg.ARD_FUN_RUN_SETUP = "Arduino run first:"; // untranslated Blockly.Msg.ARD_FUN_RUN_TIP = "Defines the Arduino setup() and loop() functions."; // untranslated Blockly.Msg.ARD_HIGH = "HIGH"; // untranslated Blockly.Msg.ARD_HIGHLOW_TIP = "Set a Pin state logic High or Low."; // untranslated Blockly.Msg.ARD_LOW = "LOW"; // untranslated Blockly.Msg.ARD_MAP = "Map"; // untranslated Blockly.Msg.ARD_MAP_TIP = "Re-maps a number from [0-1024] to another."; // untranslated Blockly.Msg.ARD_MAP_VAL = "value to [0-"; // untranslated Blockly.Msg.ARD_NOTONE = "Turn off tone on Pin #"; // untranslated Blockly.Msg.ARD_NOTONE_PIN = "No tone PIN#"; // untranslated Blockly.Msg.ARD_NOTONE_PIN_TIP = "Stop generating a tone on a Pin"; // untranslated Blockly.Msg.ARD_NOTONE_TIP = "Turns the tone off on the selected Pin"; // untranslated Blockly.Msg.ARD_PIN_WARN1 = "Pin %1 is needed for %2 as Pin %3. Already used as %4."; // untranslated Blockly.Msg.ARD_PULSETIMEOUT_TIP = "Measures the duration of a pulse on the selected Pin, if it is within the time-out in microseconds."; // untranslated Blockly.Msg.ARD_PULSE_READ = "measure %1 pulse on Pin #%2"; // untranslated Blockly.Msg.ARD_PULSE_READ_TIMEOUT = "measure %1 pulse on Pin #%2 (timeout after %3 μs)"; // untranslated Blockly.Msg.ARD_PULSE_TIP = "Measures the duration of a pulse on the selected Pin."; // untranslated Blockly.Msg.ARD_SERIAL_BPS = "bps"; // untranslated Blockly.Msg.ARD_SERIAL_PRINT = "print"; // untranslated Blockly.Msg.ARD_SERIAL_PRINT_NEWLINE = "add new line"; // untranslated Blockly.Msg.ARD_SERIAL_PRINT_TIP = "Prints data to the console/serial port as human-readable ASCII text."; // untranslated Blockly.Msg.ARD_SERIAL_PRINT_WARN = "A setup block for %1 must be added to the workspace to use this block!"; // untranslated Blockly.Msg.ARD_SERIAL_SETUP = "Setup"; // untranslated Blockly.Msg.ARD_SERIAL_SETUP_TIP = "Selects the speed for a specific Serial peripheral"; // untranslated Blockly.Msg.ARD_SERIAL_SPEED = ": speed to"; // untranslated Blockly.Msg.ARD_SERVO_READ = "read SERVO from PIN#"; // untranslated Blockly.Msg.ARD_SERVO_READ_TIP = "Read a Servo angle"; // untranslated Blockly.Msg.ARD_SERVO_WRITE = "set SERVO from Pin"; // untranslated Blockly.Msg.ARD_SERVO_WRITE_DEG_180 = "Degrees (0~180)"; // untranslated Blockly.Msg.ARD_SERVO_WRITE_TIP = "Set a Servo to an specified angle"; // untranslated Blockly.Msg.ARD_SERVO_WRITE_TO = "to"; // untranslated Blockly.Msg.ARD_SETTONE = "Set tone on Pin #"; // untranslated Blockly.Msg.ARD_SPI_SETUP = "Setup"; // untranslated Blockly.Msg.ARD_SPI_SETUP_CONF = "configuration:"; // untranslated Blockly.Msg.ARD_SPI_SETUP_DIVIDE = "clock divide"; // untranslated Blockly.Msg.ARD_SPI_SETUP_LSBFIRST = "LSBFIRST"; // untranslated Blockly.Msg.ARD_SPI_SETUP_MODE = "SPI mode (idle - edge)"; // untranslated Blockly.Msg.ARD_SPI_SETUP_MODE0 = "0 (Low - Falling)"; // untranslated Blockly.Msg.ARD_SPI_SETUP_MODE1 = "1 (Low - Rising)"; // untranslated Blockly.Msg.ARD_SPI_SETUP_MODE2 = "2 (High - Falling)"; // untranslated Blockly.Msg.ARD_SPI_SETUP_MODE3 = "3 (High - Rising)"; // untranslated Blockly.Msg.ARD_SPI_SETUP_MSBFIRST = "MSBFIRST"; // untranslated Blockly.Msg.ARD_SPI_SETUP_SHIFT = "data shift"; // untranslated Blockly.Msg.ARD_SPI_SETUP_TIP = "Configures the SPI peripheral."; // untranslated Blockly.Msg.ARD_SPI_TRANSRETURN_TIP = "Send a SPI message to an specified slave device and get data back."; // untranslated Blockly.Msg.ARD_SPI_TRANS_NONE = "none"; // untranslated Blockly.Msg.ARD_SPI_TRANS_SLAVE = "to slave Pin"; // untranslated Blockly.Msg.ARD_SPI_TRANS_TIP = "Send a SPI message to an specified slave device."; // untranslated Blockly.Msg.ARD_SPI_TRANS_VAL = "transfer"; // untranslated Blockly.Msg.ARD_SPI_TRANS_WARN1 = "A setup block for %1 must be added to the workspace to use this block!"; // untranslated Blockly.Msg.ARD_SPI_TRANS_WARN2 = "Old Pin value %1 is no longer available."; // untranslated Blockly.Msg.ARD_STEPPER_COMPONENT = "stepper"; // untranslated Blockly.Msg.ARD_STEPPER_DEFAULT_NAME = "MyStepper"; // untranslated Blockly.Msg.ARD_STEPPER_FOUR_PINS = "4"; // untranslated Blockly.Msg.ARD_STEPPER_MOTOR = "stepper motor:"; // untranslated Blockly.Msg.ARD_STEPPER_NUMBER_OF_PINS = "Number of pins"; // untranslated Blockly.Msg.ARD_STEPPER_PIN1 = "pin1#"; // untranslated Blockly.Msg.ARD_STEPPER_PIN2 = "pin2#"; // untranslated Blockly.Msg.ARD_STEPPER_PIN3 = "pin3#"; // untranslated Blockly.Msg.ARD_STEPPER_PIN4 = "pin4#"; // untranslated Blockly.Msg.ARD_STEPPER_REVOLVS = "how many steps per revolution"; // untranslated Blockly.Msg.ARD_STEPPER_SETUP = "Setup stepper motor"; // untranslated Blockly.Msg.ARD_STEPPER_SETUP_TIP = "Configures a stepper motor pinout and other settings."; // untranslated Blockly.Msg.ARD_STEPPER_SPEED = "set speed (rpm) to"; // untranslated Blockly.Msg.ARD_STEPPER_STEP = "move stepper"; // untranslated Blockly.Msg.ARD_STEPPER_STEPS = "steps"; // untranslated Blockly.Msg.ARD_STEPPER_STEP_TIP = "Turns the stepper motor a specific number of steps."; // untranslated Blockly.Msg.ARD_STEPPER_TWO_PINS = "2"; // untranslated Blockly.Msg.ARD_TIME_DELAY = "wait"; // untranslated Blockly.Msg.ARD_TIME_DELAY_MICROS = "microseconds"; // untranslated Blockly.Msg.ARD_TIME_DELAY_MICRO_TIP = "Wait specific time in microseconds"; // untranslated Blockly.Msg.ARD_TIME_DELAY_TIP = "Wait specific time in milliseconds"; // untranslated Blockly.Msg.ARD_TIME_INF = "wait forever (end program)"; // untranslated Blockly.Msg.ARD_TIME_INF_TIP = "Wait indefinitely, stopping the program."; // untranslated Blockly.Msg.ARD_TIME_MICROS = "current elapsed Time (microseconds)"; // untranslated Blockly.Msg.ARD_TIME_MICROS_TIP = "Returns the number of microseconds since the Arduino board began running the current program. Has to be stored in a positive long integer"; // untranslated Blockly.Msg.ARD_TIME_MILLIS = "current elapsed Time (milliseconds)"; // untranslated Blockly.Msg.ARD_TIME_MILLIS_TIP = "Returns the number of milliseconds since the Arduino board began running the current program. Has to be stored in a positive long integer"; // untranslated Blockly.Msg.ARD_TIME_MS = "milliseconds"; // untranslated Blockly.Msg.ARD_TONEFREQ = "at frequency"; // untranslated Blockly.Msg.ARD_TONE_FREQ = "frequency"; // untranslated Blockly.Msg.ARD_TONE_PIN = "Tone PIN#"; // untranslated Blockly.Msg.ARD_TONE_PIN_TIP = "Generate audio tones on a Pin"; // untranslated Blockly.Msg.ARD_TONE_TIP = "Sets tone on Pin to specified frequency within range 31 - 65535"; // untranslated Blockly.Msg.ARD_TONE_WARNING = "Frequency must be in range 31 - 65535"; // untranslated Blockly.Msg.ARD_TYPE_ARRAY = "Array"; // untranslated Blockly.Msg.ARD_TYPE_BOOL = "Boolean"; // untranslated Blockly.Msg.ARD_TYPE_CHAR = "Character"; // untranslated Blockly.Msg.ARD_TYPE_CHILDBLOCKMISSING = "ChildBlockMissing"; // untranslated Blockly.Msg.ARD_TYPE_DECIMAL = "Decimal"; // untranslated Blockly.Msg.ARD_TYPE_LONG = "Large Number"; // untranslated Blockly.Msg.ARD_TYPE_NULL = "Null"; // untranslated Blockly.Msg.ARD_TYPE_NUMBER = "Number"; // untranslated Blockly.Msg.ARD_TYPE_SHORT = "Short Number"; // untranslated Blockly.Msg.ARD_TYPE_TEXT = "Text"; // untranslated Blockly.Msg.ARD_TYPE_UNDEF = "Undefined"; // untranslated Blockly.Msg.ARD_VAR_AS = "as"; // untranslated Blockly.Msg.ARD_VAR_AS_TIP = "Sets a value to a specific type"; // untranslated Blockly.Msg.ARD_WRITE_TO = "to"; // untranslated Blockly.Msg.NEW_INSTANCE = "New instance..."; // untranslated Blockly.Msg.NEW_INSTANCE_TITLE = "New instance name:"; // untranslated Blockly.Msg.RENAME_INSTANCE = "Rename instance..."; // untranslated Blockly.Msg.RENAME_INSTANCE_TITLE = "Rename all '%1' instances to:"; // untranslated
/* */ "format cjs"; /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */ import * as tslib_1 from "tslib"; import { Subscriber } from '../Subscriber'; export function filter(predicate, thisArg) { return function filterOperatorFunction(source) { return source.lift(new FilterOperator(predicate, thisArg)); }; } var FilterOperator = /*@__PURE__*/ (function () { function FilterOperator(predicate, thisArg) { this.predicate = predicate; this.thisArg = thisArg; } FilterOperator.prototype.call = function (subscriber, source) { return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg)); }; return FilterOperator; }()); var FilterSubscriber = /*@__PURE__*/ (function (_super) { tslib_1.__extends(FilterSubscriber, _super); function FilterSubscriber(destination, predicate, thisArg) { var _this = _super.call(this, destination) || this; _this.predicate = predicate; _this.thisArg = thisArg; _this.count = 0; return _this; } FilterSubscriber.prototype._next = function (value) { var result; try { result = this.predicate.call(this.thisArg, value, this.count++); } catch (err) { this.destination.error(err); return; } if (result) { this.destination.next(value); } }; return FilterSubscriber; }(Subscriber)); //# sourceMappingURL=filter.js.map
import React from 'react'; import Layout from '../components/layout'; import { graphql } from 'gatsby'; const notes = (props) => { const notesMarkdown = props.data.markdownRemark; console.log(notesMarkdown); const { title } = notesMarkdown.frontmatter; return ( <Layout> <h1>{title}</h1> <div dangerouslySetInnerHTML={{__html: notesMarkdown.html}}></div> </Layout> ); } export default notes; export const query = graphql` query NotesQuery($slug: String!) { markdownRemark(fields: { slug: {eq: $slug } }) { html frontmatter { title } } } `;
function compute() { var principal = document.getElementById("principal").value; if(principal == '' || principal <=0){ alert("enter a positive number"); document.getElementById("principal").focus(); return; } var rate = document.getElementById("rate").value; var years = document.getElementById("years").value; var interst = principal*years*rate/100; var datenow = new Date(); var yearnow = parseInt(datenow.getFullYear()) + parseInt(years); var resultdisplay = document.getElementById("result"); resultdisplay.innerHTML= "If you deposit "+ "<span class= 'highlight'>" +principal+"</span>." +",<br> at an interst rate of "+"<span class = 'highlight' >" + rate + "</span>%."+"<br> you will recieve the amount of "+"<span class = 'highlight' > "+ interst +"</span>" + ", <br> in the year "+ "<span class = 'highlight'>" +yearnow+ "</span>"; } function SliderValue(){ var slider = document.getElementById("rate"); var output = document.getElementById("rate_display"); output.innerHTML = slider.value; slider.oninput = function() { output.innerHTML = this.value; } }
// Copyright (c) 2018, Mitch Kennedy // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. import path from 'path'; import {BaseCompiler} from '../base-compiler'; import * as utils from '../utils'; export class AdaCompiler extends BaseCompiler { static get key() { return 'ada'; } constructor(info, env) { super(info, env); this.compiler.supportsGccDump = true; this.compiler.removeEmptyGccDump = true; // used for all GNAT related panes (Expanded code, Tree) this.compiler.supportsGnatDebugViews = true; } getExecutableFilename(dirPath) { // The name here must match the value used in the pragma Source_File // in the user provided source. return path.join(dirPath, 'example'); } getOutputFilename(dirPath) { // The basename here must match the value used in the pragma Source_File // in the user provided source. return path.join(dirPath, 'example.o'); } optionsForBackend(backendOptions, outputFilename) { // super is needed as it handles the GCC Dump files. const opts = super.optionsForBackend(backendOptions, outputFilename); if (backendOptions.produceGnatDebug && this.compiler.supportsGnatDebugViews) // This is using stdout opts.push('-gnatGL'); if (backendOptions.produceGnatDebugTree && this.compiler.supportsGnatDebugViews) // This is also using stdout opts.push('-gnatdt'); return opts; } optionsForFilter(filters, outputFilename) { let options = []; // Always add -cargs to the options. If not needed here, put it last. // It's used in runCompiler to insert the input filename at the correct // location in the command line. // input filename is inserted before -cargs. if (!filters.binary) { // produce assembly output in outputFilename options.push( 'compile', '-g', // enable debugging '-S', // Generate ASM '-fdiagnostics-color=always', '-fverbose-asm', // Generate verbose ASM showing variables '-c', // Compile only '-eS', // commands are not errors '-cargs', // Compiler Switches for gcc. '-o', outputFilename ); if (this.compiler.intelAsm && filters.intel) { options = options.concat(this.compiler.intelAsm.split(' ')); } } else { // produce an executable in the file specified in getExecutableFilename. // The output file is automatically decided by GNAT based on the Source_File_Name being used. // As we are for forcing 'example.adb', the output here will be 'example'. options.push( 'make', '-eS', '-g', '-cargs' // Compiler Switches for gcc. ); } return options; } async runCompiler(compiler, options, inputFilename, execOptions) { if (!execOptions) { execOptions = this.getDefaultExecOptions(); } // Set the working directory to be the temp directory that has been created execOptions.customCwd = path.dirname(inputFilename); // As the file name is always appended to the end of the options array we need to // find where the '-cargs' flag is in options. This is to allow us to set the // output as 'output.s' and not end up with 'example.s'. If the output is left // as 'example.s' CE can't find it and thus you get no output. const inputFileName = options.pop(); for (let i = 0; i < options.length; i++) { if (options[i] === '-cargs') { options.splice(i, 0, inputFileName); // If the compiler contains a RTS, add the extra --RTS=. // FIXME: should probably check the user did not use one. if (this.compiler.adarts) { options.splice(i, 0, `--RTS=${this.compiler.adarts}`); } break; } } const result = await this.exec(compiler, options, execOptions); result.inputFilename = inputFilename; const baseFilename = path.basename(inputFileName); result.stdout = utils.parseOutput(result.stdout, baseFilename, execOptions.customCwd); result.stderr = utils.parseOutput(result.stderr, baseFilename, execOptions.customCwd); return result; } }
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'x(htqfw1x+uif_4ps!x6qwso*1+s6b5wbr#^bhdb6$)+k0l*6g' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'core', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'app.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'app.wsgi.application' # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3', } } # Password validation # https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' AUTH_USER_MODEL = 'core.User'
# thesaurus cog for dage # Discord import discord import re # Red from redbot.core import commands # Libs import aiohttp class Thesaurus(commands.Cog): """Access the thesaurus. Dictionary used: Datamuse API""" def __init__(self, bot): self.bot = bot self.session = aiohttp.ClientSession() @commands.command(aliases=['syn']) async def synonym(self, ctx, word, topic=""): """Get a word's synonyms. Optional: include a topic to choose words from.""" if topic != "": topics = f"&topics={topic}" topic = f" regarding **{topic}**" else: topics = "" try: async with self.session.get(f"https://api.datamuse.com/words?rel_syn={word}{topics}&max=30") as s: syns = await s.json() except (ValueError, AttributeError, NameError): return await ctx.send("Error.") await ctx.send(f"Synonyms for **{word}**{topic}:\n\n{', '.join(self.get_results(syns))}") return @commands.command(aliases=['ant']) async def antonym(self, ctx, word, topic=""): """Get a word's antonyms. Optional: include a topic to choose words from.""" if topic != "": topics = f"&topics={topic}" topic = f" regarding **{topic}**" else: topics = "" try: async with self.session.get(f"https://api.datamuse.com/words?rel_ant={word}{topics}&max=30") as a: ants = await a.json() except (ValueError, AttributeError, NameError): return await ctx.send("Error.") await ctx.send(f"Antonyms for **{word}**{topic}:\n\n{', '.join(self.get_results(ants))}") return @commands.command(aliases=['desc','d']) async def describe(self, ctx, word, topic=""): """Get adjectives for a word. Optional: include a topic to choose words from.""" if topic != "": topics = f"&topics={topic}" topic = f" regarding **{topic}**" else: topics = "" try: async with self.session.get(f"https://api.datamuse.com/words?rel_jjb={word}{topics}&max=30") as ad: adjs = await ad.json() except (ValueError, AttributeError, NameError): return await ctx.send("Error.") await ctx.send(f"Adjectives for **{word}**{topic}:\n\n{', '.join(self.get_results(adjs))}") return @commands.command(aliases=['dby','descby']) async def describedby(self, ctx, word, topic=""): """Get nouns described by an adjective. Optional: include a topic to choose words from.""" if topic != "": topics = f"&topics={topic}" topic = f" regarding **{topic}**" else: topics = "" try: async with self.session.get(f"https://api.datamuse.com/words?rel_jja={word}{topics}&max=30") as nn: nouns = await nn.json() except (ValueError, AttributeError, NameError): return await ctx.send("Error.") await ctx.send(f"Nouns described by **{word}**{topic}:\n\n{', '.join(self.get_results(nouns))}") return @commands.command() async def rhyme(self, ctx, word, topic=""): """Get rhymes for a word. Optional: include a topic to choose words from.""" if topic != "": topics = f"&topics={topic}" topic = f" regarding **{topic}**" else: topics = "" try: async with self.session.get(f"https://api.datamuse.com/words?rel_rhy={word}{topics}&max=30") as rhy: rhyme = await rhy.json() except (ValueError, AttributeError, NameError): return await ctx.send("Error.") await ctx.send(f"Words rhyming with **{word}**{topic}:\n\n{', '.join(self.get_results(rhyme))}") return @commands.command() async def related(self, ctx, word, topic=""): """Find words associated to your word. Optional: include a topic to choose words from.""" if topic != "": topics = f"&topics={topic}" topic = f" regarding **{topic}**" else: topics = "" try: async with self.session.get(f"https://api.datamuse.com/words?rel_trg={word}{topics}&max=30") as rel: related = await rel.json() except (ValueError, AttributeError, NameError): return await ctx.send("Error.") await ctx.send(f"Words associated with **{word}**{topic}:\n\n{', '.join(self.get_results(related))}") return @commands.command(aliases=['wsearch']) async def wordsearch(self, ctx, *, description): """Find the word that suits your needs. Use the following flags separated by commas to further specify your search: `means like` or `ml` - Find words that fit the meaning you want to portray. `sounds like` or `sl` - Find words that sound like your word `spelled like` or `sp` - Finds words spelled similar to that word. Only the top five results will be shown, sorted according to accuracy. Examples: [p]wsearch means like ringing in the ears, sounds like teeny toes, spelled like tinnies > tinnitus [p]wsearch ml tall animal, sl jiraff > giraffe, jeer, carafe """ param = re.sub(r'means like |ml ','ml=', description) param = re.sub(r'sounds like |sl ','sl=', param) param = re.sub(r'spelled like |sp ','sp=', param) param = re.sub(r', ', '&', param) param = re.sub(r' ', '+', param) try: async with self.session.get(f"https://api.datamuse.com/words?{param}&max=5") as ws: wsearch = await ws.json() except (ValueError, AttributeError): return await ctx.send("Error.") await ctx.send(f"Possible words:\n\n{', '.join(self.get_results(wsearch))}") return def get_results(self, json): result_list = [] y = len(json) for x in range(y): r = json[x]['word'] result_list.append(r) if result_list == []: result_list = ['No results found.'] return result_list def cog_unload(self): self.bot.loop.create_task(self.session.close())
// Your web app's Firebase configuration var firebaseConfig = { apiKey: "AIzaSyAQu435FNTmXIcFigctYMdRO8sPLX78HI0", authDomain: "pushdexp.firebaseapp.com", databaseURL: "https://pushdexp.firebaseio.com", projectId: "pushdexp", storageBucket: "pushdexp.appspot.com", messagingSenderId: "84430156157", appId: "1:84430156157:web:b4fc89624448507bb05c14" }; // Initialize Firebase firebase.initializeApp(firebaseConfig); var database = firebase.database(); var prolificURL = null var userId = null var mySynth = null var myReal = null var isSynth = 'unk' firebase.auth().onAuthStateChanged(function(user) { if (user) { var isAnonymous = user.isAnonymous; var uid = user.uid; getProlificURLS() setUp() } else { firebase.auth().signInAnonymously().catch(function(error) { $.alert({ title: 'Oops!', type: 'red', content: 'Something went wrong. Please try again later.', }); }); } }); function setUp(){ var prolificId = '' try{ const urlParams = new URLSearchParams(window.location.search); prolificId = urlParams.get('PROLIFIC_PID'); }catch(e){} if(prolificId && prolificId!=''){ try{ $('#completeButton').show() $('#postQuestionnaire').show() }catch(e){ $.alert({ title: 'Error!', type: 'red', content: 'There was an error submitting. Please contact the lead researcher.', }); return } } else{ // no prolific id.. get user id.. try{ // get userId from the p parameter! const urlParams = new URLSearchParams(window.location.search); userId = urlParams.get('u'); database.ref('participant/'+userId) .once('value') .then(function(snapshot) { if(snapshot && snapshot.val()!=null){ var user = snapshot.val() var size = 0 var answers = 0 var daysLeft = 0 var alreadyCompleted = false var prolificId = null if(user.hasOwnProperty('notifications')) size = Object.keys(user.notifications).length if(user.hasOwnProperty('midstudy')) answers = Object.keys(user.midstudy).length if(user.hasOwnProperty('timeCompleted')) alreadyCompleted = true try{ if(user.hasOwnProperty('prolificId') && user.prolificId && user.prolificId!=null && user.prolificId!='') prolificId = user.prolificId }catch(e){} var phase = user.phase $("#delivered").html(size); $("#answered").html(answers); if(prolificId!=null){ console.log(prolificId) var timeDiff = (new Date()).getTime() - (new Date(user.signedUp)).getTime(); var daysLeft = timeDiff / (1000 * 3600 * 24); daysLeft = 9 - Math.round(daysLeft) if(daysLeft < 0) daysLeft = 0 $("#daysLeft").html(daysLeft); $('#studyStats').show() if(phase && phase==4 && !alreadyCompleted){ // show checkboxes $('#completeCheckboxes').show() getMetrics(); } else if (alreadyCompleted){ $('#alreadyCompleteMessage').show() } else{ $('#notCompleteMessage').show() } } else{ $("#daysLeftContainer").hide(); $('#studyStats').show() if(phase && phase==4 && !alreadyCompleted){ // show checkboxes $('#completeCheckboxes').show() getMetrics(); } else if (alreadyCompleted){ $('#alreadyCompleteMessage').show() } } } else{ $.alert({ title: 'Error!', type: 'red', content: 'There was an error. Please contact the lead researcher.', }); } }); } catch(e){ $.alert({ title: 'Error!', type: 'red', content: 'There was an error. Please contact the lead researcher.', }); } } } // Get the notifications.. // Top topics opened // Top domains opened // Hours most receptive // Days of week most receptive function getMetrics(){} function goToProlific(){ $('#completeButton').prop('disabled', true); $('#completeButton').attr('disabled', true); if(userId!=null && prolificURL!=null){ // get questionnaire results topics = $('#topics').val() domains = $('#domains').val() days = $('#days').val() times = $('#times').val() formatInformative = $('#formatInformative').val() formatDecision = $('#formatDecision').val() formatPrivacy = $('#formatPrivacy').val() formatConsent = $('#formatConsent').val() emojiEnticing = $('#emojiEnticing').val() emojiUse = $('#emojiUse').val() emojiRelevant = $('#emojiRelevant').val() if(topics!=null && domains!=null && days!=null && times!=null && formatInformative!=null && formatDecision!=null && formatPrivacy!=null && formatConsent!=null && emojiEnticing!=null && emojiUse!=null && emojiRelevant!=null){ $.confirm({ title: 'Oops', type: 'orange', content: 'You have missed some answers. Are you sure you want to submit without answering them?', buttons: { confirm: function () { }, cancel: function () { } } }); } } else{ $.alert({ title: 'Error!', type: 'red', content: 'There was an error submitting. Please contact the lead researcher.', }); return } } function getProlificURLS(){ } function completed(){ $('#completeButton').prop('disabled', true); $('#completeButton').attr('disabled', true); // get questionnaire results topics = $('#topics').val() domains = $('#domains').val() days = $('#days').val() times = $('#times').val() emailForDraw = $('#emailForDraw').val() formatInformative = $('#formatInformative').val() formatDecision = $('#formatDecision').val() formatPrivacy = $('#formatPrivacy').val() formatConsent = $('#formatConsent').val() emojiEnticing = $('#emojiEnticing').val() emojiUse = $('#emojiUse').val() emojiRelevant = $('#emojiRelevant').val() if(topics==null || domains==null || days==null || times==null || formatInformative==null || formatDecision==null || formatPrivacy==null || formatConsent==null || emojiEnticing==null || emojiUse==null || emojiRelevant==null){ $.confirm({ title: 'Oops', type: 'orange', content: 'You have missed some answers. Are you sure you want to submit without answering them?', buttons: { confirm: function () { }, cancel: function () { } } }); } } function checkboxCalc(){ if($("#cb-yesProlific").prop('checked')){ $('#completeButton').show() $('#completeButtonAlt').hide() $('#emailDraw').hide() $("#cb-noProlific").prop('checked', false) } else{ $('#completeButton').hide() } if($("#cb-noProlific").prop('checked')){ $('#completeButtonAlt').show() $('#completeButton').hide() $('#emailDraw').show() $("#cb-yesProlific").prop('checked', false) } else{ $('#completeButtonAlt').hide() $('#emailDraw').hide() } }
const vscode = require('vscode'); /** * 插件被激活时触发,所有代码总入口 * @param {*} context 插件上下文 */ exports.activate = function (context) { require('./template/createTem')(context); // 获取当前路径 require('./tpCli/tpCli')(context); // 获取当前路径 }; /** * 插件被释放时触发 */ exports.deactivate = function () { console.log('您的扩展已被释放!') };
import * as d3 from "d3"; var d3Graph = {}; d3Graph.update = function(el, props, state) { //console.log('update graph'); var data = state.data; var margin = {top: 0, right: 0, bottom: 0, left: 0} var axisMargin = 20; //var margin = 80; var valueMargin = 14; var height = props.height - margin.top - margin.bottom; var width = props.width - margin.right - margin.left; var xScale = d3.scaleLinear() .domain([d3.min(data, function(d){ return d.point.x; })-2, d3.max(data, function(d){ return d.point.x; })+2]) .range([0, width-1]); var yScale = d3.scaleLinear() .domain([d3.min(data, function(d){ return d.point.y; })-2, d3.max(data, function(d){ return d.point.y; })+2]) .range([height, 0]); var xAxis = d3.axisBottom() .scale(xScale) .ticks(8) .tickPadding(10) .tickSizeInner(-height-1); var yAxis = d3.axisLeft() .scale(yScale) .ticks(6.5) .tickPadding(10) .tickSizeInner(-width-1) function pointAtX(a, b, x) { var interpolator = d3.scaleLinear() let x1 = xScale(a.x) let y1 = yScale(a.y) let x2 = xScale(b.x) let y2 = yScale(b.y) interpolator .domain([x1, x2]) .range([y1, y2]); //return [x, interpolator(x)]; return interpolator(x); } var svg = d3.select(el).append("svg") .attr("width", width + margin.left + margin.right) .attr("height", height + margin.top + margin.bottom) .append("g") .attr("transform", "translate(" + margin.left + "," + margin.top + ")"); svg.append("g") .attr("class", "x axis") .attr("transform", "translate(0," + height + ")") .call(xAxis) svg.append("g") .attr("class", "y axis") .call(yAxis) d3Graph.test = svg .append("g") .selectAll("g") .data(data) .enter() .append("circle") .attr("cx", function(d) { return xScale(d.point.x); }) .attr("cy", function(d) { return yScale(d.point.y); }) .attr("r", 5); svg.append('line') .style('stroke', 'black') .attr('x1', 0) .attr('y1', pointAtX(data[0].point, data[1].point, 0)) .attr('x2', width) .attr('y2', pointAtX(data[0].point, data[1].point, width)) .attr("stroke-width", 2) svg.append('line') .style('stroke', 'black') .attr('x1', 0) .attr('y1', yScale(0)) .attr('x2', width) .attr('y2', yScale(0)) .attr("stroke-width", 2) svg.append('line') .style('stroke', 'black') .attr('x1', xScale(data[0].point.x)) .attr('y1', 0) .attr('x2', xScale(data[0].point.x)) .attr('y2', height) .attr("stroke-width", 2) } d3Graph.create = function(el, props, state) { console.log('create graph'); var data = state.data; d3Graph.update(el, props, state); return; }; export default d3Graph;
/* * Copyright 2017, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import { compose, withPropsOnChange } from 'recompose'; import { find, isEmpty, isEqual } from 'lodash'; import { composeAttributeFilters, toCQLFilter } from '../../../utils/FilterUtils'; import { optionsToVendorParams } from '../../../utils/VendorParamsUtils'; import { arrayUpdate } from '../../../utils/ImmutableUtils'; import { composeFilterObject } from './utils'; /** * Merges dependencies quickFilters and filter into a cql filter for a layer * @returns {object} the map with layers updated or not */ export default compose( withPropsOnChange( ({mapSync, dependencies = {}, maps = [], selectedMapId } = {}, nextProps = {}, filter) => mapSync !== nextProps.mapSync || !isEqual(dependencies, nextProps.dependencies) || !isEqual(maps, nextProps.maps) || filter !== nextProps.filter || selectedMapId !== nextProps.selectedMapId, ({ mapSync, dependencies = {}, filter: filterObj = {}, maps = [], selectedMapId} = {}) => { const targetLayerName = dependencies && dependencies.layer && dependencies.layer.name; const map = find(maps, (m) => m.mapId === selectedMapId); if (map) { const layerInCommon = find(map?.layers, {name: targetLayerName}) || {}; let filterObjCollection = {}; let layersUpdatedWithCql = {}; let cqlFilter = undefined; if (mapSync && !isEmpty(layerInCommon)) { if (dependencies.quickFilters) { filterObjCollection = {...filterObjCollection, ...composeFilterObject(filterObj, dependencies.quickFilters, dependencies.options)}; } if (dependencies.filter) { filterObjCollection = {...filterObjCollection, ...composeAttributeFilters([filterObjCollection, dependencies.filter])}; } if (!isEmpty(filterObjCollection) && toCQLFilter(filterObjCollection)) { cqlFilter = toCQLFilter(filterObjCollection); layersUpdatedWithCql = arrayUpdate( false, { ...layerInCommon, params: optionsToVendorParams({ params: {CQL_FILTER: cqlFilter}}, layerInCommon && layerInCommon.params && layerInCommon.params.CQL_FILTER) }, {name: targetLayerName}, map.layers ); return { maps: arrayUpdate(false, { ...map, layers: layersUpdatedWithCql }, {mapId: selectedMapId}, maps) }; } } layersUpdatedWithCql = map.layers.map(l => ({...l, params: {...l.params, CQL_FILTER: undefined}})); return { maps: arrayUpdate(false, { ...map, layers: layersUpdatedWithCql }, {mapId: selectedMapId}, maps) }; } return { maps }; } ) );
(function(root, factory) { if (typeof define === 'function' && define.amd) { define(['underscore', 'backbone', 'jquery'], function(_, Backbone, $) { return factory(_, Backbone, $); }); } else if (typeof exports !== 'undefined') { var _ = require('underscore'); var Backbone = require('backbone'); var $ = require('jquery'); module.exports = factory(_, Backbone, $); } else { factory(root._, root.Backbone, root.jQuery); } }(this, function(_, Backbone, $) { 'use strict'; var previousSyphon = Backbone.Syphon; var Syphon = Backbone.Syphon = {}; Syphon.VERSION = '0.5.0'; Syphon.noConflict = function() { Backbone.Syphon = previousSyphon; return this; }; /* jshint maxstatements: 13, maxlen: 102, maxcomplexity: 8, latedef: false */ // Ignore Element Types // -------------------- // Tell Syphon to ignore all elements of these types. You can // push new types to ignore directly in to this array. Syphon.ignoredTypes = ['button', 'submit', 'reset', 'fieldset']; // Syphon // ------ // Get a JSON object that represents // all of the form inputs, in this view. // Alternately, pass a form element directly // in place of the view. Syphon.serialize = function(view, options){ var data = {}; // Build the configuration var config = buildConfig(options); // Get all of the elements to process var elements = getInputElements(view, config); // Process all of the elements _.each(elements, function(el){ var $el = $(el); var type = getElementType($el); // Get the key for the input var keyExtractor = config.keyExtractors.get(type); var key = keyExtractor($el); // Get the value for the input var inputReader = config.inputReaders.get(type); var value = inputReader($el); // Get the key assignment validator and make sure // it's valid before assigning the value to the key var validKeyAssignment = config.keyAssignmentValidators.get(type); if (validKeyAssignment($el, key, value)){ var keychain = config.keySplitter(key); data = assignKeyValue(data, keychain, value); } }); // Done; send back the results. return data; }; // Use the given JSON object to populate // all of the form inputs, in this view. // Alternately, pass a form element directly // in place of the view. Syphon.deserialize = function(view, data, options){ // Build the configuration var config = buildConfig(options); // Get all of the elements to process var elements = getInputElements(view, config); // Flatten the data structure that we are deserializing var flattenedData = flattenData(config, data); // Process all of the elements _.each(elements, function(el){ var $el = $(el); var type = getElementType($el); // Get the key for the input var keyExtractor = config.keyExtractors.get(type); var key = keyExtractor($el); // Get the input writer and the value to write var inputWriter = config.inputWriters.get(type); var value = flattenedData[key]; // Write the value to the input inputWriter($el, value); }); }; // Helpers // ------- // Retrieve all of the form inputs // from the form var getInputElements = function(view, config){ var form = getForm(view); var elements = form.elements; elements = _.reject(elements, function(el){ var reject; var type = getElementType(el); var extractor = config.keyExtractors.get(type); var identifier = extractor($(el)); var foundInIgnored = _.include(config.ignoredTypes, type); var foundInInclude = _.include(config.include, identifier); var foundInExclude = _.include(config.exclude, identifier); if (foundInInclude){ reject = false; } else { if (config.include){ reject = true; } else { reject = (foundInExclude || foundInIgnored); } } return reject; }); return elements; }; // Determine what type of element this is. It // will either return the `type` attribute of // an `<input>` element, or the `tagName` of // the element when the element is not an `<input>`. var getElementType = function(el){ var typeAttr; var $el = $(el); var tagName = $el[0].tagName; var type = tagName; if (tagName.toLowerCase() === 'input'){ typeAttr = $el.attr('type'); if (typeAttr){ type = typeAttr; } else { type = 'text'; } } // Always return the type as lowercase // so it can be matched to lowercase // type registrations. return type.toLowerCase(); }; // If a form element is given, just return it. // Otherwise, get the form element from the view. var getForm = function(viewOrForm){ if (_.isUndefined(viewOrForm.$el) && viewOrForm.tagName.toLowerCase() === 'form'){ return viewOrForm; } else { return viewOrForm.$el.is('form') ? viewOrForm.el : viewOrForm.$('form')[0]; } }; // Build a configuration object and initialize // default values. var buildConfig = function(options){ var config = _.clone(options) || {}; config.ignoredTypes = _.clone(Syphon.ignoredTypes); config.inputReaders = config.inputReaders || Syphon.InputReaders; config.inputWriters = config.inputWriters || Syphon.InputWriters; config.keyExtractors = config.keyExtractors || Syphon.KeyExtractors; config.keySplitter = config.keySplitter || Syphon.KeySplitter; config.keyJoiner = config.keyJoiner || Syphon.KeyJoiner; config.keyAssignmentValidators = config.keyAssignmentValidators || Syphon.KeyAssignmentValidators; return config; }; // Assigns `value` to a parsed JSON key. // // The first parameter is the object which will be // modified to store the key/value pair. // // The second parameter accepts an array of keys as a // string with an option array containing a // single string as the last option. // // The third parameter is the value to be assigned. // // Examples: // // `['foo', 'bar', 'baz'] => {foo: {bar: {baz: 'value'}}}` // // `['foo', 'bar', ['baz']] => {foo: {bar: {baz: ['value']}}}` // // When the final value is an array with a string, the key // becomes an array, and values are pushed in to the array, // allowing multiple fields with the same name to be // assigned to the array. var assignKeyValue = function(obj, keychain, value) { if (!keychain){ return obj; } var key = keychain.shift(); // build the current object we need to store data if (!obj[key]){ obj[key] = _.isArray(key) ? [] : {}; } // if it's the last key in the chain, assign the value directly if (keychain.length === 0){ if (_.isArray(obj[key])){ obj[key].push(value); } else { obj[key] = value; } } // recursive parsing of the array, depth-first if (keychain.length > 0){ assignKeyValue(obj[key], keychain, value); } return obj; }; // Flatten the data structure in to nested strings, using the // provided `KeyJoiner` function. // // Example: // // This input: // // ```js // { // widget: 'wombat', // foo: { // bar: 'baz', // baz: { // quux: 'qux' // }, // quux: ['foo', 'bar'] // } // } // ``` // // With a KeyJoiner that uses [ ] square brackets, // should produce this output: // // ```js // { // 'widget': 'wombat', // 'foo[bar]': 'baz', // 'foo[baz][quux]': 'qux', // 'foo[quux]': ['foo', 'bar'] // } // ``` var flattenData = function(config, data, parentKey){ var flatData = {}; _.each(data, function(value, keyName){ var hash = {}; // If there is a parent key, join it with // the current, child key. if (parentKey){ keyName = config.keyJoiner(parentKey, keyName); } if (_.isArray(value)){ keyName += '[]'; hash[keyName] = value; } else if (_.isObject(value)){ hash = flattenData(config, value, keyName); } else { hash[keyName] = value; } // Store the resulting key/value pairs in the // final flattened data object _.extend(flatData, hash); }); return flatData; }; // Type Registry // ------------- // Type Registries allow you to register something to // an input type, and retrieve either the item registered // for a specific type or the default registration var TypeRegistry = Syphon.TypeRegistry = function() { this.registeredTypes = {}; }; // Borrow Backbone's `extend` keyword for our TypeRegistry TypeRegistry.extend = Backbone.Model.extend; _.extend(TypeRegistry.prototype, { // Get the registered item by type. If nothing is // found for the specified type, the default is // returned. get: function(type){ return this.registeredTypes[type] || this.registeredTypes['default']; }, // Register a new item for a specified type register: function(type, item) { this.registeredTypes[type] = item; }, // Register a default item to be used when no // item for a specified type is found registerDefault: function(item) { this.registeredTypes['default'] = item; }, // Remove an item from a given type registration unregister: function(type) { if (this.registeredTypes[type]) { delete this.registeredTypes[type]; } } }); // Key Extractors // -------------- // Key extractors produce the "key" in `{key: "value"}` // pairs, when serializing. var KeyExtractorSet = Syphon.KeyExtractorSet = TypeRegistry.extend(); // Built-in Key Extractors var KeyExtractors = Syphon.KeyExtractors = new KeyExtractorSet(); // The default key extractor, which uses the // input element's "name" attribute KeyExtractors.registerDefault(function($el) { return $el.prop('name') || ''; }); // Input Readers // ------------- // Input Readers are used to extract the value from // an input element, for the serialized object result var InputReaderSet = Syphon.InputReaderSet = TypeRegistry.extend(); // Built-in Input Readers var InputReaders = Syphon.InputReaders = new InputReaderSet(); // The default input reader, which uses an input // element's "value" InputReaders.registerDefault(function($el){ return $el.val(); }); // Checkbox reader, returning a boolean value for // whether or not the checkbox is checked. InputReaders.register('checkbox', function($el) { return $el.prop('checked'); }); // Input Writers // ------------- // Input Writers are used to insert a value from an // object into an input element. var InputWriterSet = Syphon.InputWriterSet = TypeRegistry.extend(); // Built-in Input Writers var InputWriters = Syphon.InputWriters = new InputWriterSet(); // The default input writer, which sets an input // element's "value" InputWriters.registerDefault(function($el, value) { $el.val(value); }); // Checkbox writer, set whether or not the checkbox is checked // depending on the boolean value. InputWriters.register('checkbox', function($el, value) { $el.prop('checked', value); }); // Radio button writer, set whether or not the radio button is // checked. The button should only be checked if it's value // equals the given value. InputWriters.register('radio', function($el, value) { $el.prop('checked', $el.val() === value.toString()); }); // Key Assignment Validators // ------------------------- // Key Assignment Validators are used to determine whether or not a // key should be assigned to a value, after the key and value have been // extracted from the element. This is the last opportunity to prevent // bad data from getting serialized to your object. var KeyAssignmentValidatorSet = Syphon.KeyAssignmentValidatorSet = TypeRegistry.extend(); // Build-in Key Assignment Validators var KeyAssignmentValidators = Syphon.KeyAssignmentValidators = new KeyAssignmentValidatorSet(); // Everything is valid by default KeyAssignmentValidators.registerDefault(function() { return true; }); // But only the "checked" radio button for a given // radio button group is valid KeyAssignmentValidators.register('radio', function($el, key, value) { return $el.prop('checked'); }); // Backbone.Syphon.KeySplitter // --------------------------- // This function is used to split DOM element keys in to an array // of parts, which are then used to create a nested result structure. // returning `["foo", "bar"]` results in `{foo: { bar: "value" }}`. // // Override this method to use a custom key splitter, such as: // `<input name="foo.bar.baz">`, `return key.split(".")` Syphon.KeySplitter = function(key) { var matches = key.match(/[^\[\]]+/g); var lastKey; if (key.indexOf('[]') === key.length - 2) { lastKey = matches.pop(); matches.push([lastKey]); } return matches; }; // Backbone.Syphon.KeyJoiner // ------------------------- // Take two segments of a key and join them together, to create the // de-normalized key name, when deserializing a data structure back // in to a form. // // Example: // // With this data strucutre `{foo: { bar: {baz: "value", quux: "another"} } }`, // the key joiner will be called with these parameters, and assuming the // join happens with "[ ]" square brackets, the specified output: // // `KeyJoiner("foo", "bar")` //=> "foo[bar]" // `KeyJoiner("foo[bar]", "baz")` //=> "foo[bar][baz]" // `KeyJoiner("foo[bar]", "quux")` //=> "foo[bar][quux]" Syphon.KeyJoiner = function(parentKey, childKey) { return parentKey + '[' + childKey + ']'; }; return Backbone.Syphon; }));
import bz2 import contextlib import io import itertools import json import os import pathlib import pickle import random import shutil import string import unittest import xml.etree.ElementTree as ET import zipfile import datasets_utils import numpy as np import PIL import pytest import torch import torch.nn.functional as F from torchvision import datasets class STL10TestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.STL10 ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(split=("train", "test", "unlabeled", "train+unlabeled")) @staticmethod def _make_binary_file(num_elements, root, name): file_name = os.path.join(root, name) np.zeros(num_elements, dtype=np.uint8).tofile(file_name) @staticmethod def _make_image_file(num_images, root, name, num_channels=3, height=96, width=96): STL10TestCase._make_binary_file(num_images * num_channels * height * width, root, name) @staticmethod def _make_label_file(num_images, root, name): STL10TestCase._make_binary_file(num_images, root, name) @staticmethod def _make_class_names_file(root, name="class_names.txt"): with open(os.path.join(root, name), "w") as fh: for cname in ("airplane", "bird"): fh.write(f"{cname}\n") @staticmethod def _make_fold_indices_file(root): num_folds = 10 offset = 0 with open(os.path.join(root, "fold_indices.txt"), "w") as fh: for fold in range(num_folds): line = " ".join([str(idx) for idx in range(offset, offset + fold + 1)]) fh.write(f"{line}\n") offset += fold + 1 return tuple(range(1, num_folds + 1)) @staticmethod def _make_train_files(root, num_unlabeled_images=1): num_images_in_fold = STL10TestCase._make_fold_indices_file(root) num_train_images = sum(num_images_in_fold) STL10TestCase._make_image_file(num_train_images, root, "train_X.bin") STL10TestCase._make_label_file(num_train_images, root, "train_y.bin") STL10TestCase._make_image_file(1, root, "unlabeled_X.bin") return dict(train=num_train_images, unlabeled=num_unlabeled_images) @staticmethod def _make_test_files(root, num_images=2): STL10TestCase._make_image_file(num_images, root, "test_X.bin") STL10TestCase._make_label_file(num_images, root, "test_y.bin") return dict(test=num_images) def inject_fake_data(self, tmpdir, config): root_folder = os.path.join(tmpdir, "stl10_binary") os.mkdir(root_folder) num_images_in_split = self._make_train_files(root_folder) num_images_in_split.update(self._make_test_files(root_folder)) self._make_class_names_file(root_folder) return sum(num_images_in_split[part] for part in config["split"].split("+")) def test_folds(self): for fold in range(10): with self.create_dataset(split="train", folds=fold) as (dataset, _): assert len(dataset) == fold + 1 def test_unlabeled(self): with self.create_dataset(split="unlabeled") as (dataset, _): labels = [dataset[idx][1] for idx in range(len(dataset))] assert all(label == -1 for label in labels) def test_invalid_folds1(self): with pytest.raises(ValueError): with self.create_dataset(folds=10): pass def test_invalid_folds2(self): with pytest.raises(ValueError): with self.create_dataset(folds="0"): pass class Caltech101TestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.Caltech101 FEATURE_TYPES = (PIL.Image.Image, (int, np.ndarray, tuple)) ADDITIONAL_CONFIGS = datasets_utils.combinations_grid( target_type=("category", "annotation", ["category", "annotation"]) ) REQUIRED_PACKAGES = ("scipy",) def inject_fake_data(self, tmpdir, config): root = pathlib.Path(tmpdir) / "caltech101" images = root / "101_ObjectCategories" annotations = root / "Annotations" categories = (("Faces", "Faces_2"), ("helicopter", "helicopter"), ("ying_yang", "ying_yang")) num_images_per_category = 2 for image_category, annotation_category in categories: datasets_utils.create_image_folder( root=images, name=image_category, file_name_fn=lambda idx: f"image_{idx + 1:04d}.jpg", num_examples=num_images_per_category, ) self._create_annotation_folder( root=annotations, name=annotation_category, file_name_fn=lambda idx: f"annotation_{idx + 1:04d}.mat", num_examples=num_images_per_category, ) # This is included in the original archive, but is removed by the dataset. Thus, an empty directory suffices. os.makedirs(images / "BACKGROUND_Google") return num_images_per_category * len(categories) def _create_annotation_folder(self, root, name, file_name_fn, num_examples): root = pathlib.Path(root) / name os.makedirs(root) for idx in range(num_examples): self._create_annotation_file(root, file_name_fn(idx)) def _create_annotation_file(self, root, name): mdict = dict(obj_contour=torch.rand((2, torch.randint(3, 6, size=())), dtype=torch.float64).numpy()) datasets_utils.lazy_importer.scipy.io.savemat(str(pathlib.Path(root) / name), mdict) def test_combined_targets(self): target_types = ["category", "annotation"] individual_targets = [] for target_type in target_types: with self.create_dataset(target_type=target_type) as (dataset, _): _, target = dataset[0] individual_targets.append(target) with self.create_dataset(target_type=target_types) as (dataset, _): _, combined_targets = dataset[0] actual = len(individual_targets) expected = len(combined_targets) assert ( actual == expected ), "The number of the returned combined targets does not match the the number targets if requested " f"individually: {actual} != {expected}", for target_type, combined_target, individual_target in zip(target_types, combined_targets, individual_targets): with self.subTest(target_type=target_type): actual = type(combined_target) expected = type(individual_target) assert ( actual is expected ), "Type of the combined target does not match the type of the corresponding individual target: " f"{actual} is not {expected}", class Caltech256TestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.Caltech256 def inject_fake_data(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) / "caltech256" / "256_ObjectCategories" categories = ((1, "ak47"), (127, "laptop-101"), (257, "clutter")) num_images_per_category = 2 for idx, category in categories: datasets_utils.create_image_folder( tmpdir, name=f"{idx:03d}.{category}", file_name_fn=lambda image_idx: f"{idx:03d}_{image_idx + 1:04d}.jpg", num_examples=num_images_per_category, ) return num_images_per_category * len(categories) class WIDERFaceTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.WIDERFace FEATURE_TYPES = (PIL.Image.Image, (dict, type(None))) # test split returns None as target ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(split=("train", "val", "test")) def inject_fake_data(self, tmpdir, config): widerface_dir = pathlib.Path(tmpdir) / "widerface" annotations_dir = widerface_dir / "wider_face_split" os.makedirs(annotations_dir) split_to_idx = split_to_num_examples = { "train": 1, "val": 2, "test": 3, } # We need to create all folders regardless of the split in config for split in ("train", "val", "test"): split_idx = split_to_idx[split] num_examples = split_to_num_examples[split] datasets_utils.create_image_folder( root=tmpdir, name=widerface_dir / f"WIDER_{split}" / "images" / "0--Parade", file_name_fn=lambda image_idx: f"0_Parade_marchingband_1_{split_idx + image_idx}.jpg", num_examples=num_examples, ) annotation_file_name = { "train": annotations_dir / "wider_face_train_bbx_gt.txt", "val": annotations_dir / "wider_face_val_bbx_gt.txt", "test": annotations_dir / "wider_face_test_filelist.txt", }[split] annotation_content = { "train": "".join( f"0--Parade/0_Parade_marchingband_1_{split_idx + image_idx}.jpg\n1\n449 330 122 149 0 0 0 0 0 0\n" for image_idx in range(num_examples) ), "val": "".join( f"0--Parade/0_Parade_marchingband_1_{split_idx + image_idx}.jpg\n1\n501 160 285 443 0 0 0 0 0 0\n" for image_idx in range(num_examples) ), "test": "".join( f"0--Parade/0_Parade_marchingband_1_{split_idx + image_idx}.jpg\n" for image_idx in range(num_examples) ), }[split] with open(annotation_file_name, "w") as annotation_file: annotation_file.write(annotation_content) return split_to_num_examples[config["split"]] class CityScapesTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.Cityscapes TARGET_TYPES = ( "instance", "semantic", "polygon", "color", ) ADDITIONAL_CONFIGS = ( *datasets_utils.combinations_grid(mode=("fine",), split=("train", "test", "val"), target_type=TARGET_TYPES), *datasets_utils.combinations_grid( mode=("coarse",), split=("train", "train_extra", "val"), target_type=TARGET_TYPES, ), ) FEATURE_TYPES = (PIL.Image.Image, (dict, PIL.Image.Image)) def inject_fake_data(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) mode_to_splits = { "Coarse": ["train", "train_extra", "val"], "Fine": ["train", "test", "val"], } if config["split"] == "train": # just for coverage of the number of samples cities = ["bochum", "bremen"] else: cities = ["bochum"] polygon_target = { "imgHeight": 1024, "imgWidth": 2048, "objects": [ { "label": "sky", "polygon": [ [1241, 0], [1234, 156], [1478, 197], [1611, 172], [1606, 0], ], }, { "label": "road", "polygon": [ [0, 448], [1331, 274], [1473, 265], [2047, 605], [2047, 1023], [0, 1023], ], }, ], } for mode in ["Coarse", "Fine"]: gt_dir = tmpdir / f"gt{mode}" for split in mode_to_splits[mode]: for city in cities: def make_image(name, size=10): datasets_utils.create_image_folder( root=gt_dir / split, name=city, file_name_fn=lambda _: name, size=size, num_examples=1, ) make_image(f"{city}_000000_000000_gt{mode}_instanceIds.png") make_image(f"{city}_000000_000000_gt{mode}_labelIds.png") make_image(f"{city}_000000_000000_gt{mode}_color.png", size=(4, 10, 10)) polygon_target_name = gt_dir / split / city / f"{city}_000000_000000_gt{mode}_polygons.json" with open(polygon_target_name, "w") as outfile: json.dump(polygon_target, outfile) # Create leftImg8bit folder for split in ["test", "train_extra", "train", "val"]: for city in cities: datasets_utils.create_image_folder( root=tmpdir / "leftImg8bit" / split, name=city, file_name_fn=lambda _: f"{city}_000000_000000_leftImg8bit.png", num_examples=1, ) info = {"num_examples": len(cities)} if config["target_type"] == "polygon": info["expected_polygon_target"] = polygon_target return info def test_combined_targets(self): target_types = ["semantic", "polygon", "color"] with self.create_dataset(target_type=target_types) as (dataset, _): output = dataset[0] assert isinstance(output, tuple) assert len(output) == 2 assert isinstance(output[0], PIL.Image.Image) assert isinstance(output[1], tuple) assert len(output[1]) == 3 assert isinstance(output[1][0], PIL.Image.Image) # semantic assert isinstance(output[1][1], dict) # polygon assert isinstance(output[1][2], PIL.Image.Image) # color def test_feature_types_target_color(self): with self.create_dataset(target_type="color") as (dataset, _): color_img, color_target = dataset[0] assert isinstance(color_img, PIL.Image.Image) assert np.array(color_target).shape[2] == 4 def test_feature_types_target_polygon(self): with self.create_dataset(target_type="polygon") as (dataset, info): polygon_img, polygon_target = dataset[0] assert isinstance(polygon_img, PIL.Image.Image) (polygon_target, info["expected_polygon_target"]) class ImageNetTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.ImageNet REQUIRED_PACKAGES = ("scipy",) ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(split=("train", "val")) def inject_fake_data(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) wnid = "n01234567" if config["split"] == "train": num_examples = 3 datasets_utils.create_image_folder( root=tmpdir, name=tmpdir / "train" / wnid / wnid, file_name_fn=lambda image_idx: f"{wnid}_{image_idx}.JPEG", num_examples=num_examples, ) else: num_examples = 1 datasets_utils.create_image_folder( root=tmpdir, name=tmpdir / "val" / wnid, file_name_fn=lambda image_ifx: "ILSVRC2012_val_0000000{image_idx}.JPEG", num_examples=num_examples, ) wnid_to_classes = {wnid: [1]} torch.save((wnid_to_classes, None), tmpdir / "meta.bin") return num_examples class CIFAR10TestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.CIFAR10 ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(train=(True, False)) _VERSION_CONFIG = dict( base_folder="cifar-10-batches-py", train_files=tuple(f"data_batch_{idx}" for idx in range(1, 6)), test_files=("test_batch",), labels_key="labels", meta_file="batches.meta", num_categories=10, categories_key="label_names", ) def inject_fake_data(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) / self._VERSION_CONFIG["base_folder"] os.makedirs(tmpdir) num_images_per_file = 1 for name in itertools.chain(self._VERSION_CONFIG["train_files"], self._VERSION_CONFIG["test_files"]): self._create_batch_file(tmpdir, name, num_images_per_file) categories = self._create_meta_file(tmpdir) return dict( num_examples=num_images_per_file * len(self._VERSION_CONFIG["train_files"] if config["train"] else self._VERSION_CONFIG["test_files"]), categories=categories, ) def _create_batch_file(self, root, name, num_images): np_rng = np.random.RandomState(0) data = datasets_utils.create_image_or_video_tensor((num_images, 32 * 32 * 3)) labels = np_rng.randint(0, self._VERSION_CONFIG["num_categories"], size=num_images).tolist() self._create_binary_file(root, name, {"data": data, self._VERSION_CONFIG["labels_key"]: labels}) def _create_meta_file(self, root): categories = [ f"{idx:0{len(str(self._VERSION_CONFIG['num_categories'] - 1))}d}" for idx in range(self._VERSION_CONFIG["num_categories"]) ] self._create_binary_file( root, self._VERSION_CONFIG["meta_file"], {self._VERSION_CONFIG["categories_key"]: categories} ) return categories def _create_binary_file(self, root, name, content): with open(pathlib.Path(root) / name, "wb") as fh: pickle.dump(content, fh) def test_class_to_idx(self): with self.create_dataset() as (dataset, info): expected = {category: label for label, category in enumerate(info["categories"])} actual = dataset.class_to_idx assert actual == expected class CIFAR100(CIFAR10TestCase): DATASET_CLASS = datasets.CIFAR100 _VERSION_CONFIG = dict( base_folder="cifar-100-python", train_files=("train",), test_files=("test",), labels_key="fine_labels", meta_file="meta", num_categories=100, categories_key="fine_label_names", ) class CelebATestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.CelebA FEATURE_TYPES = (PIL.Image.Image, (torch.Tensor, int, tuple, type(None))) ADDITIONAL_CONFIGS = datasets_utils.combinations_grid( split=("train", "valid", "test", "all"), target_type=("attr", "identity", "bbox", "landmarks", ["attr", "identity"]), ) _SPLIT_TO_IDX = dict(train=0, valid=1, test=2) def inject_fake_data(self, tmpdir, config): base_folder = pathlib.Path(tmpdir) / "celeba" os.makedirs(base_folder) num_images, num_images_per_split = self._create_split_txt(base_folder) datasets_utils.create_image_folder( base_folder, "img_align_celeba", lambda idx: f"{idx + 1:06d}.jpg", num_images ) attr_names = self._create_attr_txt(base_folder, num_images) self._create_identity_txt(base_folder, num_images) self._create_bbox_txt(base_folder, num_images) self._create_landmarks_txt(base_folder, num_images) return dict(num_examples=num_images_per_split[config["split"]], attr_names=attr_names) def _create_split_txt(self, root): num_images_per_split = dict(train=4, valid=3, test=2) data = [ [self._SPLIT_TO_IDX[split]] for split, num_images in num_images_per_split.items() for _ in range(num_images) ] self._create_txt(root, "list_eval_partition.txt", data) num_images_per_split["all"] = num_images = sum(num_images_per_split.values()) return num_images, num_images_per_split def _create_attr_txt(self, root, num_images): header = ("5_o_Clock_Shadow", "Young") data = torch.rand((num_images, len(header))).ge(0.5).int().mul(2).sub(1).tolist() self._create_txt(root, "list_attr_celeba.txt", data, header=header, add_num_examples=True) return header def _create_identity_txt(self, root, num_images): data = torch.randint(1, 4, size=(num_images, 1)).tolist() self._create_txt(root, "identity_CelebA.txt", data) def _create_bbox_txt(self, root, num_images): header = ("x_1", "y_1", "width", "height") data = torch.randint(10, size=(num_images, len(header))).tolist() self._create_txt( root, "list_bbox_celeba.txt", data, header=header, add_num_examples=True, add_image_id_to_header=True ) def _create_landmarks_txt(self, root, num_images): header = ("lefteye_x", "rightmouth_y") data = torch.randint(10, size=(num_images, len(header))).tolist() self._create_txt(root, "list_landmarks_align_celeba.txt", data, header=header, add_num_examples=True) def _create_txt(self, root, name, data, header=None, add_num_examples=False, add_image_id_to_header=False): with open(pathlib.Path(root) / name, "w") as fh: if add_num_examples: fh.write(f"{len(data)}\n") if header: if add_image_id_to_header: header = ("image_id", *header) fh.write(f"{' '.join(header)}\n") for idx, line in enumerate(data, 1): fh.write(f"{' '.join((f'{idx:06d}.jpg', *[str(value) for value in line]))}\n") def test_combined_targets(self): target_types = ["attr", "identity", "bbox", "landmarks"] individual_targets = [] for target_type in target_types: with self.create_dataset(target_type=target_type) as (dataset, _): _, target = dataset[0] individual_targets.append(target) with self.create_dataset(target_type=target_types) as (dataset, _): _, combined_targets = dataset[0] actual = len(individual_targets) expected = len(combined_targets) assert ( actual == expected ), "The number of the returned combined targets does not match the the number targets if requested " f"individually: {actual} != {expected}", for target_type, combined_target, individual_target in zip(target_types, combined_targets, individual_targets): with self.subTest(target_type=target_type): actual = type(combined_target) expected = type(individual_target) assert ( actual is expected ), "Type of the combined target does not match the type of the corresponding individual target: " f"{actual} is not {expected}", def test_no_target(self): with self.create_dataset(target_type=[]) as (dataset, _): _, target = dataset[0] assert target is None def test_attr_names(self): with self.create_dataset() as (dataset, info): assert tuple(dataset.attr_names) == info["attr_names"] def test_images_names_split(self): with self.create_dataset(split="all") as (dataset, _): all_imgs_names = set(dataset.filename) merged_imgs_names = set() for split in ["train", "valid", "test"]: with self.create_dataset(split=split) as (dataset, _): merged_imgs_names.update(dataset.filename) assert merged_imgs_names == all_imgs_names class VOCSegmentationTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.VOCSegmentation FEATURE_TYPES = (PIL.Image.Image, PIL.Image.Image) ADDITIONAL_CONFIGS = ( *datasets_utils.combinations_grid( year=[f"20{year:02d}" for year in range(7, 13)], image_set=("train", "val", "trainval") ), dict(year="2007", image_set="test"), dict(year="2007-test", image_set="test"), ) def inject_fake_data(self, tmpdir, config): year, is_test_set = ( ("2007", True) if config["year"] == "2007-test" or config["image_set"] == "test" else (config["year"], False) ) image_set = config["image_set"] base_dir = pathlib.Path(tmpdir) if year == "2011": base_dir /= "TrainVal" base_dir = base_dir / "VOCdevkit" / f"VOC{year}" os.makedirs(base_dir) num_images, num_images_per_image_set = self._create_image_set_files(base_dir, "ImageSets", is_test_set) datasets_utils.create_image_folder(base_dir, "JPEGImages", lambda idx: f"{idx:06d}.jpg", num_images) datasets_utils.create_image_folder(base_dir, "SegmentationClass", lambda idx: f"{idx:06d}.png", num_images) annotation = self._create_annotation_files(base_dir, "Annotations", num_images) return dict(num_examples=num_images_per_image_set[image_set], annotation=annotation) def _create_image_set_files(self, root, name, is_test_set): root = pathlib.Path(root) / name src = pathlib.Path(root) / "Main" os.makedirs(src, exist_ok=True) idcs = dict(train=(0, 1, 2), val=(3, 4), test=(5,)) idcs["trainval"] = (*idcs["train"], *idcs["val"]) for image_set in ("test",) if is_test_set else ("train", "val", "trainval"): self._create_image_set_file(src, image_set, idcs[image_set]) shutil.copytree(src, root / "Segmentation") num_images = max(itertools.chain(*idcs.values())) + 1 num_images_per_image_set = {image_set: len(idcs_) for image_set, idcs_ in idcs.items()} return num_images, num_images_per_image_set def _create_image_set_file(self, root, image_set, idcs): with open(pathlib.Path(root) / f"{image_set}.txt", "w") as fh: fh.writelines([f"{idx:06d}\n" for idx in idcs]) def _create_annotation_files(self, root, name, num_images): root = pathlib.Path(root) / name os.makedirs(root) for idx in range(num_images): annotation = self._create_annotation_file(root, f"{idx:06d}.xml") return annotation def _create_annotation_file(self, root, name): def add_child(parent, name, text=None): child = ET.SubElement(parent, name) child.text = text return child def add_name(obj, name="dog"): add_child(obj, "name", name) return name def add_bndbox(obj, bndbox=None): if bndbox is None: bndbox = {"xmin": "1", "xmax": "2", "ymin": "3", "ymax": "4"} obj = add_child(obj, "bndbox") for name, text in bndbox.items(): add_child(obj, name, text) return bndbox annotation = ET.Element("annotation") obj = add_child(annotation, "object") data = dict(name=add_name(obj), bndbox=add_bndbox(obj)) with open(pathlib.Path(root) / name, "wb") as fh: fh.write(ET.tostring(annotation)) return data class VOCDetectionTestCase(VOCSegmentationTestCase): DATASET_CLASS = datasets.VOCDetection FEATURE_TYPES = (PIL.Image.Image, dict) def test_annotations(self): with self.create_dataset() as (dataset, info): _, target = dataset[0] assert "annotation" in target annotation = target["annotation"] assert "object" in annotation objects = annotation["object"] assert len(objects) == 1 object = objects[0] assert object == info["annotation"] class CocoDetectionTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.CocoDetection FEATURE_TYPES = (PIL.Image.Image, list) REQUIRED_PACKAGES = ("pycocotools",) _IMAGE_FOLDER = "images" _ANNOTATIONS_FOLDER = "annotations" _ANNOTATIONS_FILE = "annotations.json" def dataset_args(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) root = tmpdir / self._IMAGE_FOLDER annotation_file = tmpdir / self._ANNOTATIONS_FOLDER / self._ANNOTATIONS_FILE return root, annotation_file def inject_fake_data(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) num_images = 3 num_annotations_per_image = 2 files = datasets_utils.create_image_folder( tmpdir, name=self._IMAGE_FOLDER, file_name_fn=lambda idx: f"{idx:012d}.jpg", num_examples=num_images ) file_names = [file.relative_to(tmpdir / self._IMAGE_FOLDER) for file in files] annotation_folder = tmpdir / self._ANNOTATIONS_FOLDER os.makedirs(annotation_folder) info = self._create_annotation_file( annotation_folder, self._ANNOTATIONS_FILE, file_names, num_annotations_per_image ) info["num_examples"] = num_images return info def _create_annotation_file(self, root, name, file_names, num_annotations_per_image): image_ids = [int(file_name.stem) for file_name in file_names] images = [dict(file_name=str(file_name), id=id) for file_name, id in zip(file_names, image_ids)] annotations, info = self._create_annotations(image_ids, num_annotations_per_image) self._create_json(root, name, dict(images=images, annotations=annotations)) return info def _create_annotations(self, image_ids, num_annotations_per_image): annotations = datasets_utils.combinations_grid( image_id=image_ids, bbox=([1.0, 2.0, 3.0, 4.0],) * num_annotations_per_image ) for id, annotation in enumerate(annotations): annotation["id"] = id return annotations, dict() def _create_json(self, root, name, content): file = pathlib.Path(root) / name with open(file, "w") as fh: json.dump(content, fh) return file class CocoCaptionsTestCase(CocoDetectionTestCase): DATASET_CLASS = datasets.CocoCaptions def _create_annotations(self, image_ids, num_annotations_per_image): captions = [str(idx) for idx in range(num_annotations_per_image)] annotations = datasets_utils.combinations_grid(image_id=image_ids, caption=captions) for id, annotation in enumerate(annotations): annotation["id"] = id return annotations, dict(captions=captions) def test_captions(self): with self.create_dataset() as (dataset, info): _, captions = dataset[0] assert tuple(captions) == tuple(info["captions"]) class UCF101TestCase(datasets_utils.VideoDatasetTestCase): DATASET_CLASS = datasets.UCF101 ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(fold=(1, 2, 3), train=(True, False)) _VIDEO_FOLDER = "videos" _ANNOTATIONS_FOLDER = "annotations" def dataset_args(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) root = tmpdir / self._VIDEO_FOLDER annotation_path = tmpdir / self._ANNOTATIONS_FOLDER return root, annotation_path def inject_fake_data(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) video_folder = tmpdir / self._VIDEO_FOLDER os.makedirs(video_folder) video_files = self._create_videos(video_folder) annotations_folder = tmpdir / self._ANNOTATIONS_FOLDER os.makedirs(annotations_folder) num_examples = self._create_annotation_files(annotations_folder, video_files, config["fold"], config["train"]) return num_examples def _create_videos(self, root, num_examples_per_class=3): def file_name_fn(cls, idx, clips_per_group=2): return f"v_{cls}_g{(idx // clips_per_group) + 1:02d}_c{(idx % clips_per_group) + 1:02d}.avi" video_files = [ datasets_utils.create_video_folder(root, cls, lambda idx: file_name_fn(cls, idx), num_examples_per_class) for cls in ("ApplyEyeMakeup", "YoYo") ] return [path.relative_to(root) for path in itertools.chain(*video_files)] def _create_annotation_files(self, root, video_files, fold, train): current_videos = random.sample(video_files, random.randrange(1, len(video_files) - 1)) current_annotation = self._annotation_file_name(fold, train) self._create_annotation_file(root, current_annotation, current_videos) other_videos = set(video_files) - set(current_videos) other_annotations = [ self._annotation_file_name(fold, train) for fold, train in itertools.product((1, 2, 3), (True, False)) ] other_annotations.remove(current_annotation) for name in other_annotations: self._create_annotation_file(root, name, other_videos) return len(current_videos) def _annotation_file_name(self, fold, train): return f"{'train' if train else 'test'}list{fold:02d}.txt" def _create_annotation_file(self, root, name, video_files): with open(pathlib.Path(root) / name, "w") as fh: fh.writelines(f"{file}\n" for file in sorted(video_files)) class LSUNTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.LSUN REQUIRED_PACKAGES = ("lmdb",) ADDITIONAL_CONFIGS = datasets_utils.combinations_grid( classes=("train", "test", "val", ["bedroom_train", "church_outdoor_train"]) ) _CATEGORIES = ( "bedroom", "bridge", "church_outdoor", "classroom", "conference_room", "dining_room", "kitchen", "living_room", "restaurant", "tower", ) def inject_fake_data(self, tmpdir, config): root = pathlib.Path(tmpdir) num_images = 0 for cls in self._parse_classes(config["classes"]): num_images += self._create_lmdb(root, cls) return num_images @contextlib.contextmanager def create_dataset(self, *args, **kwargs): with super().create_dataset(*args, **kwargs) as output: yield output # Currently datasets.LSUN caches the keys in the current directory rather than in the root directory. Thus, # this creates a number of _cache_* files in the current directory that will not be removed together # with the temporary directory for file in os.listdir(os.getcwd()): if file.startswith("_cache_"): try: os.remove(file) except FileNotFoundError: # When the same test is run in parallel (in fb internal tests), a thread may remove another # thread's file. We should be able to remove the try/except when # https://github.com/pytorch/vision/issues/825 is fixed. pass def _parse_classes(self, classes): if not isinstance(classes, str): return classes split = classes if split == "test": return [split] return [f"{category}_{split}" for category in self._CATEGORIES] def _create_lmdb(self, root, cls): lmdb = datasets_utils.lazy_importer.lmdb hexdigits_lowercase = string.digits + string.ascii_lowercase[:6] folder = f"{cls}_lmdb" num_images = torch.randint(1, 4, size=()).item() format = "png" files = datasets_utils.create_image_folder(root, folder, lambda idx: f"{idx}.{format}", num_images) with lmdb.open(str(root / folder)) as env, env.begin(write=True) as txn: for file in files: key = "".join(random.choice(hexdigits_lowercase) for _ in range(40)).encode() buffer = io.BytesIO() PIL.Image.open(file).save(buffer, format) buffer.seek(0) value = buffer.read() txn.put(key, value) os.remove(file) return num_images def test_not_found_or_corrupted(self): # LSUN does not raise built-in exception, but a custom one. It is expressive enough to not 'cast' it to # RuntimeError or FileNotFoundError that are normally checked by this test. with pytest.raises(datasets_utils.lazy_importer.lmdb.Error): super().test_not_found_or_corrupted() class KineticsTestCase(datasets_utils.VideoDatasetTestCase): DATASET_CLASS = datasets.Kinetics ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(split=("train", "val"), num_classes=("400", "600", "700")) def inject_fake_data(self, tmpdir, config): classes = ("Abseiling", "Zumba") num_videos_per_class = 2 tmpdir = pathlib.Path(tmpdir) / config["split"] digits = string.ascii_letters + string.digits + "-_" for cls in classes: datasets_utils.create_video_folder( tmpdir, cls, lambda _: f"{datasets_utils.create_random_string(11, digits)}.mp4", num_videos_per_class, ) return num_videos_per_class * len(classes) class Kinetics400TestCase(datasets_utils.VideoDatasetTestCase): DATASET_CLASS = datasets.Kinetics400 def inject_fake_data(self, tmpdir, config): classes = ("Abseiling", "Zumba") num_videos_per_class = 2 digits = string.ascii_letters + string.digits + "-_" for cls in classes: datasets_utils.create_video_folder( tmpdir, cls, lambda _: f"{datasets_utils.create_random_string(11, digits)}.avi", num_videos_per_class, ) return num_videos_per_class * len(classes) class HMDB51TestCase(datasets_utils.VideoDatasetTestCase): DATASET_CLASS = datasets.HMDB51 ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(fold=(1, 2, 3), train=(True, False)) _VIDEO_FOLDER = "videos" _SPLITS_FOLDER = "splits" _CLASSES = ("brush_hair", "wave") def dataset_args(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) root = tmpdir / self._VIDEO_FOLDER annotation_path = tmpdir / self._SPLITS_FOLDER return root, annotation_path def inject_fake_data(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) video_folder = tmpdir / self._VIDEO_FOLDER os.makedirs(video_folder) video_files = self._create_videos(video_folder) splits_folder = tmpdir / self._SPLITS_FOLDER os.makedirs(splits_folder) num_examples = self._create_split_files(splits_folder, video_files, config["fold"], config["train"]) return num_examples def _create_videos(self, root, num_examples_per_class=3): def file_name_fn(cls, idx, clips_per_group=2): return f"{cls}_{(idx // clips_per_group) + 1:d}_{(idx % clips_per_group) + 1:d}.avi" return [ ( cls, datasets_utils.create_video_folder( root, cls, lambda idx: file_name_fn(cls, idx), num_examples_per_class, ), ) for cls in self._CLASSES ] def _create_split_files(self, root, video_files, fold, train): num_videos = num_train_videos = 0 for cls, videos in video_files: num_videos += len(videos) train_videos = set(random.sample(videos, random.randrange(1, len(videos) - 1))) num_train_videos += len(train_videos) with open(pathlib.Path(root) / f"{cls}_test_split{fold}.txt", "w") as fh: fh.writelines(f"{file.name} {1 if file in train_videos else 2}\n" for file in videos) return num_train_videos if train else (num_videos - num_train_videos) class OmniglotTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.Omniglot ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(background=(True, False)) def inject_fake_data(self, tmpdir, config): target_folder = ( pathlib.Path(tmpdir) / "omniglot-py" / f"images_{'background' if config['background'] else 'evaluation'}" ) os.makedirs(target_folder) num_images = 0 for name in ("Alphabet_of_the_Magi", "Tifinagh"): num_images += self._create_alphabet_folder(target_folder, name) return num_images def _create_alphabet_folder(self, root, name): num_images_total = 0 for idx in range(torch.randint(1, 4, size=()).item()): num_images = torch.randint(1, 4, size=()).item() num_images_total += num_images datasets_utils.create_image_folder( root / name, f"character{idx:02d}", lambda image_idx: f"{image_idx:02d}.png", num_images ) return num_images_total class SBUTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.SBU FEATURE_TYPES = (PIL.Image.Image, str) def inject_fake_data(self, tmpdir, config): num_images = 3 dataset_folder = pathlib.Path(tmpdir) / "dataset" images = datasets_utils.create_image_folder(tmpdir, "dataset", self._create_file_name, num_images) self._create_urls_txt(dataset_folder, images) self._create_captions_txt(dataset_folder, num_images) return num_images def _create_file_name(self, idx): part1 = datasets_utils.create_random_string(10, string.digits) part2 = datasets_utils.create_random_string(10, string.ascii_lowercase, string.digits[:6]) return f"{part1}_{part2}.jpg" def _create_urls_txt(self, root, images): with open(root / "SBU_captioned_photo_dataset_urls.txt", "w") as fh: for image in images: fh.write( f"http://static.flickr.com/{datasets_utils.create_random_string(4, string.digits)}/{image.name}\n" ) def _create_captions_txt(self, root, num_images): with open(root / "SBU_captioned_photo_dataset_captions.txt", "w") as fh: for _ in range(num_images): fh.write(f"{datasets_utils.create_random_string(10)}\n") class SEMEIONTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.SEMEION def inject_fake_data(self, tmpdir, config): num_images = 3 images = torch.rand(num_images, 256) labels = F.one_hot(torch.randint(10, size=(num_images,))) with open(pathlib.Path(tmpdir) / "semeion.data", "w") as fh: for image, one_hot_labels in zip(images, labels): image_columns = " ".join([f"{pixel.item():.4f}" for pixel in image]) labels_columns = " ".join([str(label.item()) for label in one_hot_labels]) fh.write(f"{image_columns} {labels_columns}\n") return num_images class USPSTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.USPS ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(train=(True, False)) def inject_fake_data(self, tmpdir, config): num_images = 2 if config["train"] else 1 images = torch.rand(num_images, 256) * 2 - 1 labels = torch.randint(1, 11, size=(num_images,)) with bz2.open(pathlib.Path(tmpdir) / f"usps{'.t' if not config['train'] else ''}.bz2", "w") as fh: for image, label in zip(images, labels): line = " ".join((str(label.item()), *[f"{idx}:{pixel:.6f}" for idx, pixel in enumerate(image, 1)])) fh.write(f"{line}\n".encode()) return num_images class SBDatasetTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.SBDataset FEATURE_TYPES = (PIL.Image.Image, (np.ndarray, PIL.Image.Image)) REQUIRED_PACKAGES = ("scipy.io", "scipy.sparse") ADDITIONAL_CONFIGS = datasets_utils.combinations_grid( image_set=("train", "val", "train_noval"), mode=("boundaries", "segmentation") ) _NUM_CLASSES = 20 def inject_fake_data(self, tmpdir, config): num_images, num_images_per_image_set = self._create_split_files(tmpdir) sizes = self._create_target_folder(tmpdir, "cls", num_images) datasets_utils.create_image_folder( tmpdir, "img", lambda idx: f"{self._file_stem(idx)}.jpg", num_images, size=lambda idx: sizes[idx] ) return num_images_per_image_set[config["image_set"]] def _create_split_files(self, root): root = pathlib.Path(root) splits = dict(train=(0, 1, 2), train_noval=(0, 2), val=(3,)) for split, idcs in splits.items(): self._create_split_file(root, split, idcs) num_images = max(itertools.chain(*splits.values())) + 1 num_images_per_split = {split: len(idcs) for split, idcs in splits.items()} return num_images, num_images_per_split def _create_split_file(self, root, name, idcs): with open(root / f"{name}.txt", "w") as fh: fh.writelines(f"{self._file_stem(idx)}\n" for idx in idcs) def _create_target_folder(self, root, name, num_images): io = datasets_utils.lazy_importer.scipy.io target_folder = pathlib.Path(root) / name os.makedirs(target_folder) sizes = [torch.randint(1, 4, size=(2,)).tolist() for _ in range(num_images)] for idx, size in enumerate(sizes): content = dict( GTcls=dict(Boundaries=self._create_boundaries(size), Segmentation=self._create_segmentation(size)) ) io.savemat(target_folder / f"{self._file_stem(idx)}.mat", content) return sizes def _create_boundaries(self, size): sparse = datasets_utils.lazy_importer.scipy.sparse return [ [sparse.csc_matrix(torch.randint(0, 2, size=size, dtype=torch.uint8).numpy())] for _ in range(self._NUM_CLASSES) ] def _create_segmentation(self, size): return torch.randint(0, self._NUM_CLASSES + 1, size=size, dtype=torch.uint8).numpy() def _file_stem(self, idx): return f"2008_{idx:06d}" class FakeDataTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.FakeData FEATURE_TYPES = (PIL.Image.Image, int) def dataset_args(self, tmpdir, config): return () def inject_fake_data(self, tmpdir, config): return config["size"] def test_not_found_or_corrupted(self): self.skipTest("The data is generated at creation and thus cannot be non-existent or corrupted.") class PhotoTourTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.PhotoTour # The PhotoTour dataset returns examples with different features with respect to the 'train' parameter. Thus, # we overwrite 'FEATURE_TYPES' with a dummy value to satisfy the initial checks of the base class. Furthermore, we # overwrite the 'test_feature_types()' method to select the correct feature types before the test is run. FEATURE_TYPES = () _TRAIN_FEATURE_TYPES = (torch.Tensor,) _TEST_FEATURE_TYPES = (torch.Tensor, torch.Tensor, torch.Tensor) datasets_utils.combinations_grid(train=(True, False)) _NAME = "liberty" def dataset_args(self, tmpdir, config): return tmpdir, self._NAME def inject_fake_data(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) # In contrast to the original data, the fake images injected here comprise only a single patch. Thus, # num_images == num_patches. num_patches = 5 image_files = self._create_images(tmpdir, self._NAME, num_patches) point_ids, info_file = self._create_info_file(tmpdir / self._NAME, num_patches) num_matches, matches_file = self._create_matches_file(tmpdir / self._NAME, num_patches, point_ids) self._create_archive(tmpdir, self._NAME, *image_files, info_file, matches_file) return num_patches if config["train"] else num_matches def _create_images(self, root, name, num_images): # The images in the PhotoTour dataset comprises of multiple grayscale patches of 64 x 64 pixels. Thus, the # smallest fake image is 64 x 64 pixels and comprises a single patch. return datasets_utils.create_image_folder( root, name, lambda idx: f"patches{idx:04d}.bmp", num_images, size=(1, 64, 64) ) def _create_info_file(self, root, num_images): point_ids = torch.randint(num_images, size=(num_images,)).tolist() file = root / "info.txt" with open(file, "w") as fh: fh.writelines([f"{point_id} 0\n" for point_id in point_ids]) return point_ids, file def _create_matches_file(self, root, num_patches, point_ids): lines = [ f"{patch_id1} {point_ids[patch_id1]} 0 {patch_id2} {point_ids[patch_id2]} 0\n" for patch_id1, patch_id2 in itertools.combinations(range(num_patches), 2) ] file = root / "m50_100000_100000_0.txt" with open(file, "w") as fh: fh.writelines(lines) return len(lines), file def _create_archive(self, root, name, *files): archive = root / f"{name}.zip" with zipfile.ZipFile(archive, "w") as zip: for file in files: zip.write(file, arcname=file.relative_to(root)) return archive @datasets_utils.test_all_configs def test_feature_types(self, config): feature_types = self.FEATURE_TYPES self.FEATURE_TYPES = self._TRAIN_FEATURE_TYPES if config["train"] else self._TEST_FEATURE_TYPES try: super().test_feature_types.__wrapped__(self, config) finally: self.FEATURE_TYPES = feature_types class Flickr8kTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.Flickr8k FEATURE_TYPES = (PIL.Image.Image, list) _IMAGES_FOLDER = "images" _ANNOTATIONS_FILE = "captions.html" def dataset_args(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) root = tmpdir / self._IMAGES_FOLDER ann_file = tmpdir / self._ANNOTATIONS_FILE return str(root), str(ann_file) def inject_fake_data(self, tmpdir, config): num_images = 3 num_captions_per_image = 3 tmpdir = pathlib.Path(tmpdir) images = self._create_images(tmpdir, self._IMAGES_FOLDER, num_images) self._create_annotations_file(tmpdir, self._ANNOTATIONS_FILE, images, num_captions_per_image) return dict(num_examples=num_images, captions=self._create_captions(num_captions_per_image)) def _create_images(self, root, name, num_images): return datasets_utils.create_image_folder(root, name, self._image_file_name, num_images) def _image_file_name(self, idx): id = datasets_utils.create_random_string(10, string.digits) checksum = datasets_utils.create_random_string(10, string.digits, string.ascii_lowercase[:6]) size = datasets_utils.create_random_string(1, "qwcko") return f"{id}_{checksum}_{size}.jpg" def _create_annotations_file(self, root, name, images, num_captions_per_image): with open(root / name, "w") as fh: fh.write("<table>") for image in (None, *images): self._add_image(fh, image, num_captions_per_image) fh.write("</table>") def _add_image(self, fh, image, num_captions_per_image): fh.write("<tr>") self._add_image_header(fh, image) fh.write("</tr><tr><td><ul>") self._add_image_captions(fh, num_captions_per_image) fh.write("</ul></td></tr>") def _add_image_header(self, fh, image=None): if image: url = f"http://www.flickr.com/photos/user/{image.name.split('_')[0]}/" data = f'<a href="{url}">{url}</a>' else: data = "Image Not Found" fh.write(f"<td>{data}</td>") def _add_image_captions(self, fh, num_captions_per_image): for caption in self._create_captions(num_captions_per_image): fh.write(f"<li>{caption}") def _create_captions(self, num_captions_per_image): return [str(idx) for idx in range(num_captions_per_image)] def test_captions(self): with self.create_dataset() as (dataset, info): _, captions = dataset[0] assert len(captions) == len(info["captions"]) assert all([a == b for a, b in zip(captions, info["captions"])]) class Flickr30kTestCase(Flickr8kTestCase): DATASET_CLASS = datasets.Flickr30k FEATURE_TYPES = (PIL.Image.Image, list) _ANNOTATIONS_FILE = "captions.token" def _image_file_name(self, idx): return f"{idx}.jpg" def _create_annotations_file(self, root, name, images, num_captions_per_image): with open(root / name, "w") as fh: for image, (idx, caption) in itertools.product( images, enumerate(self._create_captions(num_captions_per_image)) ): fh.write(f"{image.name}#{idx}\t{caption}\n") class MNISTTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.MNIST ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(train=(True, False)) _MAGIC_DTYPES = { torch.uint8: 8, torch.int8: 9, torch.int16: 11, torch.int32: 12, torch.float32: 13, torch.float64: 14, } _IMAGES_SIZE = (28, 28) _IMAGES_DTYPE = torch.uint8 _LABELS_SIZE = () _LABELS_DTYPE = torch.uint8 def inject_fake_data(self, tmpdir, config): raw_dir = pathlib.Path(tmpdir) / self.DATASET_CLASS.__name__ / "raw" os.makedirs(raw_dir, exist_ok=True) num_images = self._num_images(config) self._create_binary_file( raw_dir, self._images_file(config), (num_images, *self._IMAGES_SIZE), self._IMAGES_DTYPE ) self._create_binary_file( raw_dir, self._labels_file(config), (num_images, *self._LABELS_SIZE), self._LABELS_DTYPE ) return num_images def _num_images(self, config): return 2 if config["train"] else 1 def _images_file(self, config): return f"{self._prefix(config)}-images-idx3-ubyte" def _labels_file(self, config): return f"{self._prefix(config)}-labels-idx1-ubyte" def _prefix(self, config): return "train" if config["train"] else "t10k" def _create_binary_file(self, root, filename, size, dtype): with open(pathlib.Path(root) / filename, "wb") as fh: for meta in (self._magic(dtype, len(size)), *size): fh.write(self._encode(meta)) # If ever an MNIST variant is added that uses floating point data, this should be adapted. data = torch.randint(0, torch.iinfo(dtype).max + 1, size, dtype=dtype) fh.write(data.numpy().tobytes()) def _magic(self, dtype, dims): return self._MAGIC_DTYPES[dtype] * 256 + dims def _encode(self, v): return torch.tensor(v, dtype=torch.int32).numpy().tobytes()[::-1] class FashionMNISTTestCase(MNISTTestCase): DATASET_CLASS = datasets.FashionMNIST class KMNISTTestCase(MNISTTestCase): DATASET_CLASS = datasets.KMNIST class EMNISTTestCase(MNISTTestCase): DATASET_CLASS = datasets.EMNIST DEFAULT_CONFIG = dict(split="byclass") ADDITIONAL_CONFIGS = datasets_utils.combinations_grid( split=("byclass", "bymerge", "balanced", "letters", "digits", "mnist"), train=(True, False) ) def _prefix(self, config): return f"emnist-{config['split']}-{'train' if config['train'] else 'test'}" class QMNISTTestCase(MNISTTestCase): DATASET_CLASS = datasets.QMNIST ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(what=("train", "test", "test10k", "nist")) _LABELS_SIZE = (8,) _LABELS_DTYPE = torch.int32 def _num_images(self, config): if config["what"] == "nist": return 3 elif config["what"] == "train": return 2 elif config["what"] == "test50k": # The split 'test50k' is defined as the last 50k images beginning at index 10000. Thus, we need to create # more than 10000 images for the dataset to not be empty. Since this takes significantly longer than the # creation of all other splits, this is excluded from the 'ADDITIONAL_CONFIGS' and is tested only once in # 'test_num_examples_test50k'. return 10001 else: return 1 def _labels_file(self, config): return f"{self._prefix(config)}-labels-idx2-int" def _prefix(self, config): if config["what"] == "nist": return "xnist" if config["what"] is None: what = "train" if config["train"] else "test" elif config["what"].startswith("test"): what = "test" else: what = config["what"] return f"qmnist-{what}" def test_num_examples_test50k(self): with self.create_dataset(what="test50k") as (dataset, info): # Since the split 'test50k' selects all images beginning from the index 10000, we subtract the number of # created examples by this. assert len(dataset) == info["num_examples"] - 10000 class DatasetFolderTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.DatasetFolder # The dataset has no fixed return type since it is defined by the loader parameter. For testing, we use a loader # that simply returns the path as type 'str' instead of loading anything. See the 'dataset_args()' method. FEATURE_TYPES = (str, int) _IMAGE_EXTENSIONS = ("jpg", "png") _VIDEO_EXTENSIONS = ("avi", "mp4") _EXTENSIONS = (*_IMAGE_EXTENSIONS, *_VIDEO_EXTENSIONS) # DatasetFolder has two mutually exclusive parameters: 'extensions' and 'is_valid_file'. One of both is required. # We only iterate over different 'extensions' here and handle the tests for 'is_valid_file' in the # 'test_is_valid_file()' method. DEFAULT_CONFIG = dict(extensions=_EXTENSIONS) ADDITIONAL_CONFIGS = ( *datasets_utils.combinations_grid(extensions=[(ext,) for ext in _IMAGE_EXTENSIONS]), dict(extensions=_IMAGE_EXTENSIONS), *datasets_utils.combinations_grid(extensions=[(ext,) for ext in _VIDEO_EXTENSIONS]), dict(extensions=_VIDEO_EXTENSIONS), ) def dataset_args(self, tmpdir, config): return tmpdir, lambda x: x def inject_fake_data(self, tmpdir, config): extensions = config["extensions"] or self._is_valid_file_to_extensions(config["is_valid_file"]) num_examples_total = 0 classes = [] for ext, cls in zip(self._EXTENSIONS, string.ascii_letters): if ext not in extensions: continue create_example_folder = ( datasets_utils.create_image_folder if ext in self._IMAGE_EXTENSIONS else datasets_utils.create_video_folder ) num_examples = torch.randint(1, 3, size=()).item() create_example_folder(tmpdir, cls, lambda idx: self._file_name_fn(cls, ext, idx), num_examples) num_examples_total += num_examples classes.append(cls) return dict(num_examples=num_examples_total, classes=classes) def _file_name_fn(self, cls, ext, idx): return f"{cls}_{idx}.{ext}" def _is_valid_file_to_extensions(self, is_valid_file): return {ext for ext in self._EXTENSIONS if is_valid_file(f"foo.{ext}")} @datasets_utils.test_all_configs def test_is_valid_file(self, config): extensions = config.pop("extensions") # We need to explicitly pass extensions=None here or otherwise it would be filled by the value from the # DEFAULT_CONFIG. with self.create_dataset( config, extensions=None, is_valid_file=lambda file: pathlib.Path(file).suffix[1:] in extensions ) as (dataset, info): assert len(dataset) == info["num_examples"] @datasets_utils.test_all_configs def test_classes(self, config): with self.create_dataset(config) as (dataset, info): assert len(dataset.classes) == len(info["classes"]) assert all([a == b for a, b in zip(dataset.classes, info["classes"])]) class ImageFolderTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.ImageFolder def inject_fake_data(self, tmpdir, config): num_examples_total = 0 classes = ("a", "b") for cls in classes: num_examples = torch.randint(1, 3, size=()).item() num_examples_total += num_examples datasets_utils.create_image_folder(tmpdir, cls, lambda idx: f"{cls}_{idx}.png", num_examples) return dict(num_examples=num_examples_total, classes=classes) @datasets_utils.test_all_configs def test_classes(self, config): with self.create_dataset(config) as (dataset, info): assert len(dataset.classes) == len(info["classes"]) assert all([a == b for a, b in zip(dataset.classes, info["classes"])]) class KittiTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.Kitti FEATURE_TYPES = (PIL.Image.Image, (list, type(None))) # test split returns None as target ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(train=(True, False)) def inject_fake_data(self, tmpdir, config): kitti_dir = os.path.join(tmpdir, "Kitti", "raw") os.makedirs(kitti_dir) split_to_num_examples = { True: 1, False: 2, } # We need to create all folders(training and testing). for is_training in (True, False): num_examples = split_to_num_examples[is_training] datasets_utils.create_image_folder( root=kitti_dir, name=os.path.join("training" if is_training else "testing", "image_2"), file_name_fn=lambda image_idx: f"{image_idx:06d}.png", num_examples=num_examples, ) if is_training: for image_idx in range(num_examples): target_file_dir = os.path.join(kitti_dir, "training", "label_2") os.makedirs(target_file_dir) target_file_name = os.path.join(target_file_dir, f"{image_idx:06d}.txt") target_contents = "Pedestrian 0.00 0 -0.20 712.40 143.00 810.73 307.92 1.89 0.48 1.20 1.84 1.47 8.41 0.01\n" # noqa with open(target_file_name, "w") as target_file: target_file.write(target_contents) return split_to_num_examples[config["train"]] class SvhnTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.SVHN REQUIRED_PACKAGES = ("scipy",) ADDITIONAL_CONFIGS = datasets_utils.combinations_grid(split=("train", "test", "extra")) def inject_fake_data(self, tmpdir, config): import scipy.io as sio split = config["split"] num_examples = { "train": 2, "test": 3, "extra": 4, }.get(split) file = f"{split}_32x32.mat" images = np.zeros((32, 32, 3, num_examples), dtype=np.uint8) targets = np.zeros((num_examples,), dtype=np.uint8) sio.savemat(os.path.join(tmpdir, file), {"X": images, "y": targets}) return num_examples class Places365TestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.Places365 ADDITIONAL_CONFIGS = datasets_utils.combinations_grid( split=("train-standard", "train-challenge", "val"), small=(False, True), ) _CATEGORIES = "categories_places365.txt" # {split: file} _FILE_LISTS = { "train-standard": "places365_train_standard.txt", "train-challenge": "places365_train_challenge.txt", "val": "places365_val.txt", } # {(split, small): folder_name} _IMAGES = { ("train-standard", False): "data_large_standard", ("train-challenge", False): "data_large_challenge", ("val", False): "val_large", ("train-standard", True): "data_256_standard", ("train-challenge", True): "data_256_challenge", ("val", True): "val_256", } # (class, idx) _CATEGORIES_CONTENT = ( ("/a/airfield", 0), ("/a/apartment_building/outdoor", 8), ("/b/badlands", 30), ) # (file, idx) _FILE_LIST_CONTENT = ( ("Places365_val_00000001.png", 0), *((f"{category}/Places365_train_00000001.png", idx) for category, idx in _CATEGORIES_CONTENT), ) @staticmethod def _make_txt(root, name, seq): file = os.path.join(root, name) with open(file, "w") as fh: for text, idx in seq: fh.write(f"{text} {idx}\n") @staticmethod def _make_categories_txt(root, name): Places365TestCase._make_txt(root, name, Places365TestCase._CATEGORIES_CONTENT) @staticmethod def _make_file_list_txt(root, name): Places365TestCase._make_txt(root, name, Places365TestCase._FILE_LIST_CONTENT) @staticmethod def _make_image(file_name, size): os.makedirs(os.path.dirname(file_name), exist_ok=True) PIL.Image.fromarray(np.zeros((*size, 3), dtype=np.uint8)).save(file_name) @staticmethod def _make_devkit_archive(root, split): Places365TestCase._make_categories_txt(root, Places365TestCase._CATEGORIES) Places365TestCase._make_file_list_txt(root, Places365TestCase._FILE_LISTS[split]) @staticmethod def _make_images_archive(root, split, small): folder_name = Places365TestCase._IMAGES[(split, small)] image_size = (256, 256) if small else (512, random.randint(512, 1024)) files, idcs = zip(*Places365TestCase._FILE_LIST_CONTENT) images = [f.lstrip("/").replace("/", os.sep) for f in files] for image in images: Places365TestCase._make_image(os.path.join(root, folder_name, image), image_size) return [(os.path.join(root, folder_name, image), idx) for image, idx in zip(images, idcs)] def inject_fake_data(self, tmpdir, config): self._make_devkit_archive(tmpdir, config["split"]) return len(self._make_images_archive(tmpdir, config["split"], config["small"])) def test_classes(self): classes = list(map(lambda x: x[0], self._CATEGORIES_CONTENT)) with self.create_dataset() as (dataset, _): assert dataset.classes == classes def test_class_to_idx(self): class_to_idx = dict(self._CATEGORIES_CONTENT) with self.create_dataset() as (dataset, _): assert dataset.class_to_idx == class_to_idx def test_images_download_preexisting(self): with pytest.raises(RuntimeError): with self.create_dataset({"download": True}): pass class INaturalistTestCase(datasets_utils.ImageDatasetTestCase): DATASET_CLASS = datasets.INaturalist FEATURE_TYPES = (PIL.Image.Image, (int, tuple)) ADDITIONAL_CONFIGS = datasets_utils.combinations_grid( target_type=("kingdom", "full", "genus", ["kingdom", "phylum", "class", "order", "family", "genus", "full"]), version=("2021_train",), ) def inject_fake_data(self, tmpdir, config): categories = [ "00000_Akingdom_0phylum_Aclass_Aorder_Afamily_Agenus_Aspecies", "00001_Akingdom_1phylum_Aclass_Border_Afamily_Bgenus_Aspecies", "00002_Akingdom_2phylum_Cclass_Corder_Cfamily_Cgenus_Cspecies", ] num_images_per_category = 3 for category in categories: datasets_utils.create_image_folder( root=os.path.join(tmpdir, config["version"]), name=category, file_name_fn=lambda idx: f"image_{idx + 1:04d}.jpg", num_examples=num_images_per_category, ) return num_images_per_category * len(categories) def test_targets(self): target_types = ["kingdom", "phylum", "class", "order", "family", "genus", "full"] with self.create_dataset(target_type=target_types, version="2021_valid") as (dataset, _): items = [d[1] for d in dataset] for i, item in enumerate(items): assert dataset.category_name("kingdom", item[0]) == "Akingdom" assert dataset.category_name("phylum", item[1]) == f"{i // 3}phylum" assert item[6] == i // 3 class LFWPeopleTestCase(datasets_utils.DatasetTestCase): DATASET_CLASS = datasets.LFWPeople FEATURE_TYPES = (PIL.Image.Image, int) ADDITIONAL_CONFIGS = datasets_utils.combinations_grid( split=("10fold", "train", "test"), image_set=("original", "funneled", "deepfunneled") ) _IMAGES_DIR = {"original": "lfw", "funneled": "lfw_funneled", "deepfunneled": "lfw-deepfunneled"} _file_id = {"10fold": "", "train": "DevTrain", "test": "DevTest"} def inject_fake_data(self, tmpdir, config): tmpdir = pathlib.Path(tmpdir) / "lfw-py" os.makedirs(tmpdir, exist_ok=True) return dict( num_examples=self._create_images_dir(tmpdir, self._IMAGES_DIR[config["image_set"]], config["split"]), split=config["split"], ) def _create_images_dir(self, root, idir, split): idir = os.path.join(root, idir) os.makedirs(idir, exist_ok=True) n, flines = (10, ["10\n"]) if split == "10fold" else (1, []) num_examples = 0 names = [] for _ in range(n): num_people = random.randint(2, 5) flines.append(f"{num_people}\n") for i in range(num_people): name = self._create_random_id() no = random.randint(1, 10) flines.append(f"{name}\t{no}\n") names.append(f"{name}\t{no}\n") datasets_utils.create_image_folder(idir, name, lambda n: f"{name}_{n+1:04d}.jpg", no, 250) num_examples += no with open(pathlib.Path(root) / f"people{self._file_id[split]}.txt", "w") as f: f.writelines(flines) with open(pathlib.Path(root) / "lfw-names.txt", "w") as f: f.writelines(sorted(names)) return num_examples def _create_random_id(self): part1 = datasets_utils.create_random_string(random.randint(5, 7)) part2 = datasets_utils.create_random_string(random.randint(4, 7)) return f"{part1}_{part2}" class LFWPairsTestCase(LFWPeopleTestCase): DATASET_CLASS = datasets.LFWPairs FEATURE_TYPES = (PIL.Image.Image, PIL.Image.Image, int) def _create_images_dir(self, root, idir, split): idir = os.path.join(root, idir) os.makedirs(idir, exist_ok=True) num_pairs = 7 # effectively 7*2*n = 14*n n, self.flines = (10, [f"10\t{num_pairs}"]) if split == "10fold" else (1, [str(num_pairs)]) for _ in range(n): self._inject_pairs(idir, num_pairs, True) self._inject_pairs(idir, num_pairs, False) with open(pathlib.Path(root) / f"pairs{self._file_id[split]}.txt", "w") as f: f.writelines(self.flines) return num_pairs * 2 * n def _inject_pairs(self, root, num_pairs, same): for i in range(num_pairs): name1 = self._create_random_id() name2 = name1 if same else self._create_random_id() no1, no2 = random.randint(1, 100), random.randint(1, 100) if same: self.flines.append(f"\n{name1}\t{no1}\t{no2}") else: self.flines.append(f"\n{name1}\t{no1}\t{name2}\t{no2}") datasets_utils.create_image_folder(root, name1, lambda _: f"{name1}_{no1:04d}.jpg", 1, 250) datasets_utils.create_image_folder(root, name2, lambda _: f"{name2}_{no2:04d}.jpg", 1, 250) if __name__ == "__main__": unittest.main()
import skopt from distutils.version import LooseVersion import numpy as np np.random.seed(2022) def gen_dataset(bounds, N_sample, method="pseudo", ndim=1): if ndim == 0: return bounds[0] * np.ones([N_sample, 1]) elif ndim == 1: if method == 'uniform': return np.linspace(bounds[0], bounds[1], N_sample) else: X = sample(N_sample, ndim, method) return X * (np.array(bounds)[1]-np.array(bounds)[0]) + np.array(bounds)[0] elif ndim == 2: if method == 'uniform': n = int(np.sqrt(N_sample)) x0 = np.linspace(bounds[0, 0], bounds[0, 1], n) x1 = np.linspace(bounds[1, 0], bounds[1, 1], n) X = np.concatenate([np.tile(x0, 1, n), np.tile(x1, 1, n)], axis=-1) return X else: X = sample(N_sample, ndim, method) return X * (np.array(bounds)[1, :]-np.array(bounds)[0,:]) + np.array(bounds)[0,:] ################################ hpinns文章中生成数据方式 ################################################ def sample(n_samples, dimension, sampler="pseudo"): """Generate random or quasirandom samples in [0, 1]^dimension. Args: n_samples (int): The number of samples. dimension (int): Space dimension. sampler (string): One of the following: "pseudo" (pseudorandom), "LHS" (Latin hypercube sampling), "Halton" (Halton sequence), "Hammersley" (Hammersley sequence), or "Sobol" (Sobol sequence). """ if sampler == "pseudo": return pseudo(n_samples, dimension) if sampler in ["LHS", "Halton", "Hammersley", "Sobol"]: return quasirandom(n_samples, dimension, sampler) raise ValueError("f{sampler} sampler is not available.") def pseudo(n_samples, dimension): """Pseudo random.""" # If random seed is set, then the rng based code always returns the same random # number, which may not be what we expect. # rng = np.random.default_rng(config.random_seed) # return rng.random(size=(n_samples, dimension), dtype=config.real(np)) return np.random.random(size=(n_samples, dimension)).astype(dtype=np.float32) def quasirandom(n_samples, dimension, sampler): if sampler == "LHS": sampler = skopt.sampler.Lhs( lhs_type="centered", criterion="maximin", iterations=1000 ) elif sampler == "Halton": sampler = skopt.sampler.Halton(min_skip=-1, max_skip=-1) elif sampler == "Hammersley": sampler = skopt.sampler.Hammersly(min_skip=-1, max_skip=-1) elif sampler == "Sobol": # Remove the first point [0, 0, ...] and the second point [0.5, 0.5, ...], which # are too special and may cause some error. if LooseVersion(skopt.__version__) < LooseVersion("0.9"): sampler = skopt.sampler.Sobol(min_skip=2, max_skip=2, randomize=False) else: sampler = skopt.sampler.Sobol(skip=0, randomize=False) space = [(0.0, 1.0)] * dimension return np.array( sampler.generate(space, n_samples + 2)[2:], dtype=np.float32 ) space = [(0.0, 1.0)] * dimension return np.array(sampler.generate(space, n_samples), dtype=np.float32)
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ 'use strict'; module.exports = jest.fn(require.requireActual('../intersectRelayQuery'));
const router = require('express').Router(); const { Post, User, Comment } = require('../../models'); const sequelize = require('../../config/connection'); const withAuth = require('../../utils/auth'); router.get('/', (req, res) => { Post.findAll({ attributes: ['id', 'post_title', 'post_content', 'created_at'], order: [['created_at', 'DESC']], include: [{ model: User, attributes: ['username'] }, { model: Comment, attributes: ['id', 'comment', 'postid', 'userid', 'created_at'], include: { model: User, attributes: ['username'] } } ] }) .then(dbPostData => res.json(dbPostData.reverse())) .catch(err => { res.status(500).json(err); }); }); router.get('/:id', (req, res) => { Post.findOne({ where: { id: req.params.id }, attributes: ['id', 'post_content', 'post_title', 'created_at'], include: [{ model: User, attributes: ['username'] }, { model: Comment, attributes: ['id', 'comment', 'postid', 'userid', 'created_at'], include: { model: User, attributes: ['username'] } } ] }) .then(dbPostData => { if (!dbPostData) { res.status(404).json({ message: 'No post matching this ID' }); return; } res.json(dbPostData); }) .catch(err => { res.status(500).json(err); }); }); router.post('/', withAuth, (req, res) => { Post.create({ post_title: req.body.post_title, post_content: req.body.post_content, userid: req.session.userid }) .then(dbPostData => res.json(dbPostData)) .catch(err => { res.status(500).json(err); }); }); router.put('/:id', withAuth, (req, res) => { Post.update({ post_title: req.body.post_title, post_content: req.body.post_content }, { where: { id: req.params.id } }).then(dbPostData => { if (!dbPostData) { res.status(404).json({ message: 'No post matching this ID' }); return; } res.json(dbPostData); }) .catch(err => { res.status(500).json(err); }); }); router.delete('/:id', withAuth, (req, res) => { Post.destroy({ where: { id: req.params.id } }).then(dbPostData => { if (!dbPostData) { res.status(404).json({ message: 'No post matching this ID' }); return; } res.json(dbPostData); }).catch(err => { res.status(500).json(err); }); }); module.exports = router;
var tokei = require('tokei'); var _ = require('lodash'); export default () => { 'use strict'; return { main: function() { tokei.locale(this.header.getLocale()); this.localize = tokei; }, package: _.merge({ type: 'localize' }, require('../package')), defaults: {} }; };
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("moment"),require("react-sizeme")):"function"==typeof define&&define.amd?define("react-gantt-timeline",["React","moment","ReactDOM"],t):"object"==typeof exports?exports["react-gantt-timeline"]=t(require("react"),require("moment"),require("react-sizeme")):e["react-gantt-timeline"]=t(e.React,e.moment,e.ReactDOM)}(window,function(e,t,n){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var r={header:{top:{style:{backgroundColor:"#333333",fontSize:10,color:"white",textAlign:"center"}},middle:{style:{backgroundColor:"chocolate"},selectedStyle:{backgroundColor:"#b13525",fontWeight:"bold"}},bottom:{style:{background:"grey",color:"white",fontSize:9},selectedStyle:{backgroundColor:"#b13525",fontWeight:"bold"}}},taskList:{title:{label:"Projects",style:{backgroundColor:"#333333",borderBottom:"solid 1px silver",color:"white",textAlign:"center"}},task:{style:{backgroundColor:"#fbf9f9"}},verticalSeparator:{style:{backgroundColor:"#333333"},grip:{style:{backgroundColor:"#cfcfcd"}}}},dataViewPort:{rows:{style:{backgroundColor:"#fbf9f9",borderBottom:"solid 0.5px #cfcfcd"}},task:{showLabel:!1,style:{position:"absolute",borderRadius:14,color:"white",textAlign:"center",backgroundColor:"grey"},selectedStyle:{position:"absolute",borderRadius:14,border:"solid 1px #ff00fa",color:"white",textAlign:"center",backgroundColor:"grey"}}},links:{color:"black",selectedColor:"#ff00fa"}},i=new(function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.load=function(e){t.data={},e?t.populate(e,r,t.data):t.data=r},this.data=r}return o(e,[{key:"populate",value:function(e,t,n){if(this.isObject(t))for(var o in t)e[o]?(n[o]=e[o],this.populate(e[o],t[o],n[o])):n[o]=t[o]}},{key:"isObject",value:function(e){return"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e}},{key:"values",get:function(){return this.data}}]),e}());t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var r=new(function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dayToPosition=function(e,t,n){return e*n+t},this.daysInYear=function(e){return t.isLeapYear(e)?366:365}}return o(e,[{key:"dateToPixel",value:function(e,t,n){var o=this.getToday(),r=new Date(e),i=60*(r.getTimezoneOffset()-o.getTimezoneOffset())*1e3;return(r.getTime()-o.getTime()-i)/36e5*(n/24)+t}},{key:"pixelToDate",value:function(e,t,n){var o=24/n,r=e-t,i=this.getToday(),a=i.getTime()+r*o*36e5,s=new Date(a),l=60*(s.getTimezoneOffset()-i.getTimezoneOffset())*1e3;return s.setTime(s.getTime()+l),s}},{key:"getToday",value:function(){var e=new Date;return e.setHours(0,0,0,0),e}},{key:"monthDiff",value:function(e,t){return Math.abs(t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()))}},{key:"daysInMonth",value:function(e,t){return new Date(t,e,0).getDate()}},{key:"isLeapYear",value:function(e){return e%400==0||e%100!=0&&e%4==0}}]),e}());t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MODE_NONE=0,t.MODE_MOVE=1,t.MOVE_RESIZE_LEFT=2,t.MOVE_RESIZE_RIGHT=3,t.BUFFER_DAYS=30,t.DATA_CONTAINER_WIDTH=5e3,t.VIEW_MODE_DAY="day",t.VIEW_MODE_WEEK="week",t.VIEW_MODE_MONTH="month",t.VIEW_MODE_YEAR="year",t.DAY_YEAR_MODE=4,t.DAY_MONTH_MODE=24,t.DAY_WEEK_MODE=480,t.HOUR_DAY_WEEK=20,t.DAY_DAY_MODE=1440,t.HOUR_DAY_DAY=60},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"});return[n].concat(i).concat([r]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var o,r,i={},a=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=o.apply(this,arguments)),r}),s=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),l=null,u=0,c=[],d=n(17);function p(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=i[o.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](o.parts[a]);for(;a<o.parts.length;a++)r.parts.push(v(o.parts[a],t))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(v(o.parts[a],t));i[o.id]={id:o.id,refs:1,parts:s}}}}function f(e,t){for(var n=[],o={},r=0;r<e.length;r++){var i=e[r],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}return n}function h(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=c[c.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=s(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,r)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function y(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),g(t,e.attrs),h(e,t),t}function g(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function v(e,t){var n,o,r,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=l||(l=y(t)),o=k.bind(null,n,a,!1),r=k.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",g(t,e.attrs),h(e,t),t}(t),o=function(e,t,n){var o=n.css,r=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||i)&&(o=d(o));r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([o],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),r=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(t),o=function(e,t){var n=t.css,o=t.media;o&&e.setAttribute("media",o);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),r=function(){m(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return p(n,t),function(e){for(var o=[],r=0;r<n.length;r++){var a=n[r];(s=i[a.id]).refs--,o.push(s)}e&&p(f(e,t),t);for(r=0;r<o.length;r++){var s;if(0===(s=o[r]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete i[s.id]}}}};var b,w=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function k(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=w(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var r=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data={},this.link={}}return o(e,[{key:"registerData",value:function(e){if(e){this.data={};for(var t=0;t<e.length;t++)this.data[e[t].id]={item:e[t],index:t}}}},{key:"registerLinks",value:function(e){if(e){this.link={};for(var t=0,n=0,o=0;o<e.length;o++){t=e[o].start,n=e[o].end;var r={link:e[o],index:o};this.createAddTo(t,this.link,r,o),this.createAddTo(n,this.link,r,o)}}}},{key:"createAddTo",value:function(e,t,n,o){t[e]||(t[e]=[]),-1==t[e].indexOf(n)&&t[e].push(n)}},{key:"getTask",value:function(e){return this.data[e]}},{key:"getLinks",value:function(e){return this.link[e]}}]),e}());t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),i=s(r),a=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var l=20,u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.calcNormCoordinates=function(){var e;return{cpt1:{x:e=n.props.start.x+(n.props.end.x-n.props.start.x)/2,y:n.props.start.y},cpt2:{x:e,y:n.props.end.y}}},n.calcSCoordinates=function(){var e={x:n.props.start.x+l,y:n.props.start.y},t=(n.props.end.y-n.props.start.y)/2,o={x:e.x,y:e.y+t},r={x:n.props.end.x-l,y:o.y};return{cpt1:e,cpt2:o,cpt3:r,cpt4:{x:r.x,y:r.y+t}}},n.getPath=function(){var e=null;return n.props.start.x>n.props.end.x?(e=n.calcSCoordinates(),"M"+n.props.start.x+" "+n.props.start.y+" "+e.cpt1.x+" "+e.cpt1.y+" "+e.cpt2.x+" "+e.cpt2.y+" "+e.cpt3.x+" "+e.cpt3.y+" "+e.cpt4.x+" "+e.cpt4.y+" "+n.props.end.x+" "+n.props.end.y):(e=n.calcNormCoordinates(),"M"+n.props.start.x+" "+n.props.start.y+" "+e.cpt1.x+" "+e.cpt1.y+" "+e.cpt2.x+" "+e.cpt2.y+" "+n.props.end.x+" "+n.props.end.y)},n.onSelect=function(e){n.props.onSelectItem&&n.props.onSelectItem(n.props.item)},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),o(t,[{key:"render",value:function(){var e=this.props.isSelected?a.default.values.links.selectedColor:a.default.values.links.color;return i.default.createElement("g",{className:"timeline-link"},i.default.createElement("path",{pointerEvents:"stroke",onMouseDown:this.onSelect,stroke:"white",d:this.getPath(),strokeLinejoin:"round",fill:"transparent",strokeWidth:"4",cursor:"pointer"}),i.default.createElement("path",{pointerEvents:"stroke",onMouseDown:this.onSelect,stroke:e,d:this.getPath(),strokeLinejoin:"round",fill:"transparent",strokeWidth:"1",cursor:"pointer",markerEnd:"url(#arrow)"}))}}]),t}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=g(i),s=g(n(9)),l=g(n(12)),u=g(n(13)),c=g(n(18)),d=g(n(21)),p=g(n(23)),f=g(n(6)),h=n(3),m=g(n(25)),y=g(n(1));g(n(2));function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(26);var b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onSize=function(e){n.calculateVerticalScrollVariables(e),n.initialise||(n.dc.initialise(n.state.scrollLeft+n.state.nowposition,n.state.scrollLeft+n.state.nowposition+e.width,n.state.nowposition,n.state.dayWidth),n.initialise=!0),n.setStartEnd();var t=Math.ceil(e.height/n.props.itemheight),o=n.calcNumVisibleDays(e),r=n.calculateStartEndRows(t,n.props.data,n.state.scrollTop);n.setState({numVisibleRows:t,numVisibleDays:o,startRow:r.start,endRow:r.end,size:e})},n.verticalChange=function(e){if(e!=n.state.scrollTop){var t=n.calculateStartEndRows(n.state.numVisibleRows,n.props.data,e);t.start!==n.state.start&&n.setState(n.state={scrollTop:e,startRow:t.start,endRow:t.end})}},n.calculateStartEndRows=function(e,t,o){var r=Math.trunc(o/n.props.itemheight);return{start:r,end:r+e>=t.length?t.length:r+e}},n.setStartEnd=function(){n.dc.setStartEnd(n.state.scrollLeft,n.state.scrollLeft+n.state.size.width,n.state.nowposition,n.state.dayWidth)},n.horizontalChange=function(e){var t=n.state.nowposition,o=-1,r=n.state.headerData,i=n.state.startRow,a=n.state.endRow;e>n.pxToScroll?(t=n.state.nowposition-n.pxToScroll,o=0):e<=0?(t=n.state.nowposition+n.pxToScroll,o=n.pxToScroll):o=e;var s=Math.trunc((e-n.state.nowposition)/n.state.dayWidth);a=(i=Math.trunc(n.state.scrollTop/n.props.itemheight))+n.state.numVisibleRows>=n.props.data.length?n.props.data.length-1:i+n.state.numVisibleRows,n.setStartEnd(),n.setState(n.state={currentday:s,nowposition:t,headerData:r,scrollLeft:o,startRow:i,endRow:a})},n.calculateVerticalScrollVariables=function(e){n.pxToScroll=(1-e.width/h.DATA_CONTAINER_WIDTH)*h.DATA_CONTAINER_WIDTH-1},n.onHorizonChange=function(e,t){n.props.onHorizonChange&&n.props.onHorizonChange(e,t)},n.doMouseDown=function(e){n.dragging=!0,n.draggingPosition=e.clientX},n.doMouseMove=function(e){if(n.dragging){var t=n.draggingPosition-e.clientX;0!==t&&(n.draggingPosition=e.clientX,n.horizontalChange(n.state.scrollLeft+t))}},n.doMouseUp=function(e){n.dragging=!1},n.doMouseLeave=function(e){n.dragging=!1},n.doTouchStart=function(e){n.dragging=!0,n.draggingPosition=e.touches[0].clientX},n.doTouchEnd=function(e){n.dragging=!1},n.doTouchMove=function(e){if(n.dragging){var t=n.draggingPosition-e.touches[0].clientX;0!==t&&(n.draggingPosition=e.touches[0].clientX,n.horizontalChange(n.state.scrollLeft+t))}},n.doTouchCancel=function(e){n.dragging=!1},n.doMouseLeave=function(e){n.dragging=!1},n.onTaskListSizing=function(e){n.setState(function(t){var n=o({},t);return n.sideStyle={width:n.sideStyle.width-e},n})},n.onSelectItem=function(e){n.props.onSelectItem&&e!=n.props.selectedItem&&n.props.onSelectItem(e)},n.onStartCreateLink=function(e,t){n.setState({interactiveMode:!0,taskToCreate:{task:e,position:t}})},n.onFinishCreateLink=function(e,t){n.props.onCreateLink&&e&&n.props.onCreateLink({start:n.state.taskToCreate,end:{task:e,position:t}}),n.setState({interactiveMode:!1,taskToCreate:null})},n.onTaskChanging=function(e){n.setState({changingTask:e})},n.calcNumVisibleDays=function(e){return Math.ceil(e.width/n.state.dayWidth)+h.BUFFER_DAYS},n.checkNeeeData=function(){if(n.props.data!=n.state.data){n.state.data=n.props.data;var e=n.calculateStartEndRows(n.state.numVisibleRows,n.props.data,n.state.scrollTop);n.state.startRow=e.start,n.state.endRow=e.end,f.default.registerData(n.state.data)}n.props.links!=n.state.links&&(n.state.links=n.props.links,f.default.registerLinks(n.props.links))},n.dragging=!1,n.draggingPosition=0,n.dc=new m.default,n.dc.onHorizonChange=n.onHorizonChange,n.initialise=!1,n.pxToScroll=1900;var r=n.getDayWidth(n.props.mode);return y.default.load(n.props.config),n.state={currentday:0,nowposition:0,startRow:0,endRow:10,sideStyle:{width:200},scrollLeft:0,scrollTop:0,numVisibleRows:40,numVisibleDays:60,dayWidth:r,interactiveMode:!1,taskToCreate:null,links:[],mode:n.props.mode?n.props.mode:h.VIEW_MODE_MONTH,size:{width:1,height:1},changingTask:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"getDayWidth",value:function(e){switch(e){case h.VIEW_MODE_DAY:return h.DAY_DAY_MODE;case h.VIEW_MODE_WEEK:return h.DAY_WEEK_MODE;case h.VIEW_MODE_MONTH:return h.DAY_MONTH_MODE;case h.VIEW_MODE_YEAR:return h.DAY_YEAR_MODE;default:return h.DAY_MONTH_MODE}}},{key:"checkMode",value:function(){if(this.props.mode!=this.state.mode&&this.props.mode){this.state.mode=this.props.mode;var e=this.getDayWidth(this.state.mode);this.state.dayWidth=e,this.state.numVisibleDays=this.calcNumVisibleDays(this.state.size);var t=Math.ceil(-this.state.currentday*this.state.dayWidth/this.pxToScroll);this.state.nowposition=t*this.pxToScroll;var n=(this.state.currentday*this.state.dayWidth+this.state.nowposition)%this.pxToScroll;this.state.scrollLeft=n}}},{key:"render",value:function(){var e;return this.checkMode(),this.checkNeeeData(),a.default.createElement("div",{className:"timeLine"},a.default.createElement("div",{className:"timeLine-side-main",style:this.state.sideStyle},a.default.createElement(p.default,{ref:"taskViewPort",itemheight:this.props.itemheight,startRow:this.state.startRow,endRow:this.state.endRow,data:this.props.data,selectedItem:this.props.selectedItem,onSelectItem:this.onSelectItem,onUpdateTask:this.props.onUpdateTask,onScroll:this.verticalChange,nonEditable:this.props.nonEditableName}),a.default.createElement(l.default,{onTaskListSizing:this.onTaskListSizing})),a.default.createElement("div",{className:"timeLine-main"},a.default.createElement(u.default,{headerData:this.state.headerData,numVisibleDays:this.state.numVisibleDays,currentday:this.state.currentday,nowposition:this.state.nowposition,dayWidth:this.state.dayWidth,mode:this.state.mode,scrollLeft:this.state.scrollLeft}),a.default.createElement(c.default,{ref:"dataViewPort",scrollLeft:this.state.scrollLeft,scrollTop:this.state.scrollTop,itemheight:this.props.itemheight,nowposition:this.state.nowposition,startRow:this.state.startRow,endRow:this.state.endRow,data:this.props.data,selectedItem:this.props.selectedItem,dayWidth:this.state.dayWidth,onScroll:this.scrollData,onMouseDown:this.doMouseDown,onMouseMove:this.doMouseMove,onMouseUp:this.doMouseUp,onMouseLeave:this.doMouseLeave,onTouchStart:this.doTouchStart,onTouchMove:this.doTouchMove,onTouchEnd:this.doTouchEnd,onTouchCancel:this.doTouchCancel,onSelectItem:this.onSelectItem,onUpdateTask:this.props.onUpdateTask,onTaskChanging:this.onTaskChanging,onStartCreateLink:this.onStartCreateLink,onFinishCreateLink:this.onFinishCreateLink,boundaries:{lower:this.state.scrollLeft,upper:this.state.scrollLeft+this.state.size.width},onSize:this.onSize}),a.default.createElement(d.default,(v(e={scrollLeft:this.state.scrollLeft,scrollTop:this.state.scrollTop,startRow:this.state.startRow,endRow:this.state.endRow,data:this.props.data,nowposition:this.state.nowposition,dayWidth:this.state.dayWidth,interactiveMode:this.state.interactiveMode,taskToCreate:this.state.taskToCreate,onFinishCreateLink:this.onFinishCreateLink,changingTask:this.state.changingTask,selectedItem:this.props.selectedItem,onSelectItem:this.onSelectItem,itemheight:this.props.itemheight},"onSelectItem",this.onSelectItem),v(e,"links",this.props.links),e))))}}]),t}();b.propTypes={itemheight:s.default.number.isRequired,dayWidth:s.default.number.isRequired,nonEditableName:s.default.bool},b.defaultProps={itemheight:20,dayWidth:24,nonEditableName:!1},t.default=b},function(e,t,n){e.exports=n(10)()},function(e,t,n){"use strict";var o=n(11);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),i=s(r),a=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.doMouseMove=n.doMouseMove.bind(n),n.doMouseDown=n.doMouseDown.bind(n),n.doMouseUp=n.doMouseUp.bind(n),n.state={dragging:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),o(t,[{key:"doMouseDown",value:function(e){0===e.button&&(this.draggingPosition=e.clientX,this.setState({dragging:!0}))}},{key:"componentDidUpdate",value:function(e,t){this.state.dragging&&!t.dragging?(document.addEventListener("mousemove",this.doMouseMove),document.addEventListener("mouseup",this.doMouseUp)):!this.state.dragging&&t.dragging&&(document.removeEventListener("mousemove",this.doMouseMove),document.removeEventListener("mouseup",this.doMouseUp))}},{key:"doMouseMove",value:function(e){if(this.state.dragging){e.stopPropagation();var t=this.draggingPosition-e.clientX;this.draggingPosition=e.clientX,this.props.onTaskListSizing(t)}}},{key:"doMouseUp",value:function(e){this.setState({dragging:!1})}},{key:"render",value:function(){return i.default.createElement("div",{className:"verticalResizer",style:a.default.values.taskList.verticalSeparator.style,onMouseDown:this.doMouseDown},i.default.createElement("div",{className:"squareGrip",style:a.default.values.taskList.verticalSeparator.grip.style}),i.default.createElement("div",{className:"squareGrip",style:a.default.values.taskList.verticalSeparator.grip.style}),i.default.createElement("div",{className:"squareGrip",style:a.default.values.taskList.verticalSeparator.grip.style}),i.default.createElement("div",{className:"squareGrip",style:a.default.values.taskList.verticalSeparator.grip.style}))}}]),t}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderItem=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=d(i),s=d(n(14)),l=n(3),u=d(n(1)),c=d(n(2));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n(15);var m=t.HeaderItem=function(e){function t(e){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return h(t,i.PureComponent),r(t,[{key:"render",value:function(){return a.default.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px white",position:"absolute",height:20,left:this.props.left,width:this.props.width}},a.default.createElement("div",null,this.props.label))}}]),t}(),y=function(e){function t(e){p(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getStartDate=function(e,t){var n=null;switch(t){case"year":return n=e.year(),(0,s.default)([n,0,1]);case"month":n=e.year();var o=e.month();return(0,s.default)([n,o,1]);case"week":return e.subtract(e.day(),"days");default:return e}},n.renderTime=function(e,t,n,o){for(var r=[],i=t/24,s=0,l=0;l<24;l++)r.push(a.default.createElement(m,{key:l,left:s,width:i,label:"shorttime"==n?l:l+":00"})),s+=i;return a.default.createElement("div",{key:o,style:{position:"absolute",height:20,left:e,width:t}}," ",r)},n.renderHeaderRows=function(e,t,r){for(var i={top:[],middle:[],bottom:[]},c={},d="",p="",f="",h=null,y=null,g=n.props.currentday,v=n.props.currentday+n.props.numVisibleDays,b=g-l.BUFFER_DAYS;b<v+l.BUFFER_DAYS;b++)d!=(h=(0,s.default)().add(b,"days")).format(n.getFormat(e,"top"))&&(d=h.format(n.getFormat(e,"top")),y=n.getBox(h,e,c.top),c.top=y.left+y.width,i.top.push(a.default.createElement(m,{key:b,left:y.left,width:y.width,label:d}))),p!=h.format(n.getFormat(t))&&(p=h.format(n.getFormat(t)),y=n.getBox(h,t,c.middle),c.middle=y.left+y.width,i.middle.push(a.default.createElement(m,{key:b,left:y.left,width:y.width,label:p}))),f!=h.format(n.getFormat(r))&&(f=h.format(n.getFormat(r)),y=n.getBox(h,r,c.bottom),c.bottom=y.left+y.width,"shorttime"==r||"fulltime"==r?i.bottom.push(n.renderTime(y.left,y.width,r,b)):i.bottom.push(a.default.createElement(m,{key:b,left:y.left,width:y.width,label:f})));return a.default.createElement("div",{className:"timeLine-main-header-container",style:{width:l.DATA_CONTAINER_WIDTH,maxWidth:l.DATA_CONTAINER_WIDTH}},a.default.createElement("div",{className:"header-top",style:o({},u.default.values.header.top.style)},i.top),a.default.createElement("div",{className:"header-middle",style:o({},u.default.values.header.middle.style)},i.middle),a.default.createElement("div",{className:"header-bottom",style:o({},u.default.values.header.bottom.style)},i.bottom))},n.renderHeader=function(){switch(n.props.mode){case l.VIEW_MODE_DAY:return n.renderHeaderRows("week","dayweek","fulltime");case l.VIEW_MODE_WEEK:return n.renderHeaderRows("week","dayweek","shorttime");case l.VIEW_MODE_MONTH:return n.renderHeaderRows("month","dayweek","daymonth");case l.VIEW_MODE_YEAR:return n.renderHeaderRows("year","month","week")}},n.setBoundaries=function(){n.start=n.props.currentday-l.BUFFER_DAYS,n.end=n.props.currentday+n.props.numVisibleDays+l.BUFFER_DAYS},n.needToRender=function(){return n.props.currentday<n.start||n.props.currentday+n.props.numVisibleDays>n.end},n.setBoundaries(),n}return h(t,i.PureComponent),r(t,[{key:"getFormat",value:function(e,t){switch(e){case"year":return"YYYY";case"month":return"top"==t?"MMMM YYYY":"MMMM";case"week":return"top"==t?"ww MMMM YYYY":"ww";case"dayweek":return"dd";case"daymonth":return"D"}}},{key:"getModeIncrement",value:function(e,t){switch(t){case"year":return c.default.daysInYear(e.year());case"month":return e.daysInMonth();case"week":return 7;default:return 1}}},{key:"getBox",value:function(e,t,n){var o=this.getModeIncrement(e,t)*this.props.dayWidth;if(!n){var r=this.getStartDate(e,t);r=r.startOf("day");var i=(0,s.default)().startOf("day"),a=r.diff(i,"days");n=c.default.dayToPosition(a,this.props.nowposition,this.props.dayWidth)}return{left:n,width:o}}},{key:"render",value:function(){return this.refs.Header&&(this.refs.Header.scrollLeft=this.props.scrollLeft),a.default.createElement("div",{id:"timeline-header",ref:"Header",className:"timeLine-main-header-viewPort"},this.renderHeader())}}]),t}();t.default=y},function(e,n){e.exports=t},function(e,t,n){var o=n(16);"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(5)(o,r);o.locals&&(e.exports=o.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".header-top{\n height: 20px;\n\n border-bottom: solid 0.5px silver;\n}\n\n.header-middle{\n height: 20px;\n background-color: chocolate;\n color: white;\n font-size:10px;\n border-bottom: solid 0.5px silver;\n \n}\n.header-bottom{\n height: 20px;\n font-size:10px;\n border-bottom: solid 0.5px silver;\n}\n",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,o=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var r,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:o+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataViewPort=t.DataRow=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=p(i),s=n(3),l=p(n(19)),u=p(n(2)),c=p(n(20)),d=p(n(1));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=t.DataRow=function(e){function t(e){return f(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return m(t,i.Component),r(t,[{key:"render",value:function(){return a.default.createElement("div",{className:"timeLine-main-data-row",style:o({},d.default.values.dataViewPort.rows.style,{top:this.props.top,height:this.props.itemheight})},this.props.children)}}]),t}(),g=t.DataViewPort=function(e){function t(e){f(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChildDrag=function(e){n.childDragging=e},n.renderRows=function(){for(var e=[],t=n.props.startRow;t<n.props.endRow+1;t++){var o=n.props.data[t];if(!o)break;var r=u.default.dateToPixel(o.start,n.props.nowposition,n.props.dayWidth),i=u.default.dateToPixel(o.end,n.props.nowposition,n.props.dayWidth)-r;e.push(a.default.createElement(y,{key:t,label:o.name,top:t*n.props.itemheight,left:20,itemheight:n.props.itemheight},a.default.createElement(l.default,{item:o,label:o.name,nowposition:n.props.nowposition,dayWidth:n.props.dayWidth,color:o.color,left:r,width:i,height:n.props.itemheight,onChildDrag:n.onChildDrag,isSelected:n.props.selectedItem==o,onSelectItem:n.props.onSelectItem,onStartCreateLink:n.props.onStartCreateLink,onFinishCreateLink:n.props.onFinishCreateLink,onTaskChanging:n.props.onTaskChanging,onUpdateTask:n.props.onUpdateTask}," ")))}return e},n.doMouseDown=function(e){0!==e.button||n.childDragging||n.props.onMouseDown(e)},n.doMouseMove=function(e){n.props.onMouseMove(e,n.refs.dataViewPort)},n.doTouchStart=function(e){n.childDragging||n.props.onTouchStart(e)},n.doTouchMove=function(e){n.props.onTouchMove(e,n.refs.dataViewPort)},n.childDragging=!1,n}return m(t,i.Component),r(t,[{key:"getContainerHeight",value:function(e){return e>0?e*this.props.itemheight:10}},{key:"componentDidMount",value:function(){this.refs.dataViewPort.scrollLeft=0}},{key:"render",value:function(){this.refs.dataViewPort&&(this.refs.dataViewPort.scrollLeft=this.props.scrollLeft,this.refs.dataViewPort.scrollTop=this.props.scrollTop);var e=this.getContainerHeight(this.props.data.length);return a.default.createElement("div",{ref:"dataViewPort",id:"timeLinedataViewPort",className:"timeLine-main-data-viewPort",onMouseDown:this.doMouseDown,onMouseMove:this.doMouseMove,onMouseUp:this.props.onMouseUp,onMouseLeave:this.props.onMouseLeave,onTouchStart:this.doTouchStart,onTouchMove:this.doTouchMove,onTouchEnd:this.props.onTouchEnd,onTouchCancel:this.props.onTouchCancel},a.default.createElement("div",{className:"timeLine-main-data-container",style:{height:e,width:s.DATA_CONTAINER_WIDTH,maxWidth:s.DATA_CONTAINER_WIDTH}},this.renderRows()))}}]),t}();t.default=(0,c.default)({monitorWidth:!0,monitorHeight:!0})(g)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=c(i),s=c(n(2)),l=n(3),u=c(n(1));function c(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onCreateLinkMouseDown=function(e,t){0===e.button&&(e.stopPropagation(),n.props.onStartCreateLink(n.props.item,t))},n.onCreateLinkMouseUp=function(e,t){e.stopPropagation(),n.props.onFinishCreateLink(n.props.item,t)},n.onCreateLinkTouchStart=function(e,t){e.stopPropagation(),n.props.onStartCreateLink(n.props.item,t)},n.onCreateLinkTouchEnd=function(e,t){e.stopPropagation(),n.props.onFinishCreateLink(n.props.item,t)},n.doMouseDown=function(e,t){n.props.onUpdateTask&&0===e.button&&(e.stopPropagation(),n.dragStart(e.clientX,t))},n.doMouseMove=function(e){n.state.dragging&&(e.stopPropagation(),n.dragProcess(e.clientX))},n.doMouseUp=function(){n.dragEnd()},n.doTouchStart=function(e,t){n.props.onUpdateTask&&(e.stopPropagation(),n.dragStart(e.touches[0].clientX,t))},n.doTouchMove=function(e){n.state.dragging&&(e.stopPropagation(),n.dragProcess(e.changedTouches[0].clientX))},n.doTouchEnd=function(e){n.dragEnd()},n.calculateStyle=n.calculateStyle.bind(n),n.state={dragging:!1,left:n.props.left,width:n.props.width,mode:l.MODE_NONE},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidUpdate",value:function(e,t){this.state.dragging&&!t.dragging?(document.addEventListener("mousemove",this.doMouseMove),document.addEventListener("mouseup",this.doMouseUp),document.addEventListener("touchmove",this.doTouchMove),document.addEventListener("touchend",this.doTouchEnd)):!this.state.dragging&&t.dragging&&(document.removeEventListener("mousemove",this.doMouseMove),document.removeEventListener("mouseup",this.doMouseUp),document.removeEventListener("touchmove",this.doTouchMove),document.removeEventListener("touchend",this.doTouchEnd))}},{key:"dragStart",value:function(e,t){this.props.onChildDrag(!0),this.draggingPosition=e,this.setState({dragging:!0,mode:t,left:this.props.left,width:this.props.width})}},{key:"dragProcess",value:function(e){var t=this.draggingPosition-e,n=this.state.left,o=this.state.width;switch(this.state.mode){case l.MODE_MOVE:n=this.state.left-t;break;case l.MOVE_RESIZE_LEFT:n=this.state.left-t,o=this.state.width+t;break;case l.MOVE_RESIZE_RIGHT:o=this.state.width-t}var r={item:this.props.item,position:{start:n-this.props.nowposition,end:n+o-this.props.nowposition}};this.props.onTaskChanging(r),this.setState({left:n,width:o}),this.draggingPosition=e}},{key:"dragEnd",value:function(){this.props.onChildDrag(!1);var e=s.default.pixelToDate(this.state.left,this.props.nowposition,this.props.dayWidth),t=s.default.pixelToDate(this.state.left+this.state.width,this.props.nowposition,this.props.dayWidth);this.props.onUpdateTask(this.props.item,{start:e,end:t}),this.setState({dragging:!1,mode:l.MODE_NONE})}},{key:"calculateStyle",value:function(){var e=this.props.isSelected?u.default.values.dataViewPort.task.selectedStyle:u.default.values.dataViewPort.task.style,t=this.props.color?this.props.color:e.backgroundColor;return this.state.dragging?o({},e,{backgroundColor:t,left:this.state.left,width:this.state.width,height:this.props.height-5,top:2}):o({},e,{backgroundColor:t,left:this.props.left,width:this.props.width,height:this.props.height-5,top:2})}},{key:"render",value:function(){var e=this,t=this.calculateStyle();return a.default.createElement("div",{onMouseDown:function(t){return e.doMouseDown(t,l.MODE_MOVE)},onTouchStart:function(t){return e.doTouchStart(t,l.MODE_MOVE)},onClick:function(t){e.props.onSelectItem(e.props.item)},style:t},a.default.createElement("div",{className:"timeLine-main-data-task-side",style:{top:0,left:-4,height:t.height},onMouseDown:function(t){return e.doMouseDown(t,l.MOVE_RESIZE_LEFT)},onTouchStart:function(t){return e.doTouchStart(t,l.MOVE_RESIZE_LEFT)}},a.default.createElement("div",{className:"timeLine-main-data-task-side-linker",onMouseUp:function(t){return e.onCreateLinkMouseUp(t,l.LINK_POS_LEFT)},onTouchEnd:function(t){return e.onCreateLinkTouchEnd(t,l.LINK_POS_LEFT)}})),a.default.createElement("div",{style:{overflow:"hidden"}},u.default.values.dataViewPort.task.showLabel?this.props.item.name:"",a.default.createElement("a",{style:{color:"#fff"},href:this.props.item.href},this.props.item.name)),a.default.createElement("div",{className:"timeLine-main-data-task-side",style:{top:0,left:t.width-3,height:t.height},onMouseDown:function(t){return e.doMouseDown(t,l.MOVE_RESIZE_RIGHT)},onTouchStart:function(t){return e.doTouchStart(t,l.MOVE_RESIZE_RIGHT)}},a.default.createElement("div",{className:"timeLine-main-data-task-side-linker",onMouseDown:function(t){return e.onCreateLinkMouseDown(t,l.LINK_POS_RIGHT)},onTouchStart:function(t){return e.onCreateLinkTouchStart(t,l.LINK_POS_RIGHT)}})))}}]),t}();t.default=d},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),i=c(r),a=c(n(6)),s=c(n(7)),l=c(n(22)),u=c(n(2));function c(e){return e&&e.__esModule?e:{default:e}}function d(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getItemPosition=function(e,t){return{x:u.default.dateToPixel(t,0,n.props.dayWidth),y:e*n.props.itemheight+n.props.itemheight/2}},n.renderCreateLink=function(){if(n.props.interactiveMode){var e=a.default.getTask(n.props.taskToCreate.task.id),t=n.getItemPosition(e.index,e.item.end);return i.default.createElement(l.default,{start:t,onFinishCreateLink:n.props.onFinishCreateLink})}},n.renderChangingTaskLinks=function(){if(n.props.changingTask!=n.state.changingTask){n.state.changingTask=n.props.changingTask;var e=a.default.getLinks(n.state.changingTask.item.id);if(!e)return;for(var t=null,o=null,r=null,l={},u={},c=0;c<e.length;c++)t=e[c],(o=a.default.getTask(t.link.start))&&(r=a.default.getTask(t.link.end))&&(l=n.getItemPosition(o.index,o.item.end),n.state.changingTask.item.id==t.link.start&&(l.x=n.state.changingTask.position.end),u=n.getItemPosition(r.index,r.item.start),n.state.changingTask.item.id==t.link.end&&(u.x=n.state.changingTask.position.start),n.cache[t.index]=i.default.createElement(s.default,{key:-c-1,item:t,start:{x:l.x,y:l.y},end:{x:u.x,y:u.y},isSelected:n.props.selectedItem==t,onSelectItem:n.props.onSelectItem}),n.cache=[].concat(d(n.cache)))}},n.cache=[],n.state={links:[],data:[],selectedItem:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),o(t,[{key:"renderLink",value:function(e,t,n,o){var r=this.getItemPosition(e.index,e.item.end),a=this.getItemPosition(t.index,t.item.start);return i.default.createElement(s.default,{key:o,item:n,start:{x:r.x,y:r.y},end:{x:a.x,y:a.y},isSelected:this.props.selectedItem==n,onSelectItem:this.props.onSelectItem})}},{key:"renderLinks",value:function(){this.cache=[];var e={},t=void 0,n={};if(0!=this.state.data.length)for(var o=0;o<this.state.links.length;o++){var r=this.state.links[o];!r&&e[r.id]||((t=a.default.getTask(r.start))&&(n=a.default.getTask(r.end))?(this.cache.push(this.renderLink(t,n,r,o)),e[r.id]=""):this.cache.push(null))}}},{key:"refreshData",value:function(){this.props.links==this.state.links&&this.props.data==this.state.data&&this.props.dayWidth==this.state.dayWidth&&this.props.selectedItem==this.state.selectedItem||(this.state.selectedItem=this.props.selectedItem,this.state.dayWidth=this.props.dayWidth,this.state.links=this.props.links,this.state.data=this.props.data,this.state.links&&this.state.data&&this.renderLinks())}},{key:"render",value:function(){return this.refreshData(),this.renderChangingTaskLinks(),i.default.createElement("svg",{x:0,y:0,width:"100%",pointerEvents:"none",style:{position:"absolute",top:60,userSelect:"none",height:"100%"}},i.default.createElement("defs",null,i.default.createElement("marker",{id:"arrow",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"9",markerHeight:"9",orient:"auto-start-reverse"},i.default.createElement("path",{d:"M 0 0 L 10 5 L 0 10 z",strokeLinejoin:"round"}))),i.default.createElement("g",{transform:"matrix(1,0,0,1,"+-(this.props.scrollLeft-this.props.nowposition)+","+-this.props.scrollTop+")"},this.cache,this.renderCreateLink()))}}]),t}();t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),i=s(r),a=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.doMouseMove=function(e){n.init||(n.lastX=e.clientX,n.lastY=e.clientY,n.init=!0);var t=n.state.x+(e.clientX-n.lastX),o=n.state.y+(e.clientY-n.lastY);n.lastX=e.clientX,n.lastY=e.clientY,n.setState({x:t,y:o})},n.doMouseUp=function(e){n.props.onFinishCreateLink()},n.state={x:n.props.start.x,y:n.props.start.y},n.init=!1,n.lastX=-1,n.lastY=-1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),o(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousemove",this.doMouseMove),document.addEventListener("mouseup",this.doMouseUp)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousemove",this.doMouseMove),document.removeEventListener("mouseup",this.doMouseUp)}},{key:"render",value:function(){return i.default.createElement(a.default,{key:-1,start:{x:this.props.start.x,y:this.props.start.y},end:{x:this.state.x,y:this.state.y}})}}]),t}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskRow=t.VerticalLine=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=u(i),s=u(n(1)),l=u(n(24));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.VerticalLine=function(e){function t(e){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return p(t,i.Component),r(t,[{key:"render",value:function(){return a.default.createElement("div",{className:"timeLine-main-data-verticalLine",style:{left:this.props.left}})}}]),t}();var f=t.TaskRow=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChange=function(e){n.props.onUpdateTask&&n.props.onUpdateTask(n.props.item,{name_user:e})},n}return p(t,i.Component),r(t,[{key:"render",value:function(){var e=this;return a.default.createElement("div",{className:"timeLine-side-task-row",style:o({},s.default.values.taskList.task.style,{top:this.props.top,height:this.props.itemheight}),onClick:function(t){return e.props.onSelectItem(e.props.item)}},this.props.nonEditable?a.default.createElement("div",{tabIndex:this.props.index,style:{width:"100%"}},this.props.label):a.default.createElement(l.default,{value:this.props.label,background:this.props.item.color,index:this.props.index,onChange:this.onChange}))}}]),t}(),h=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.doScroll=function(){n.props.onScroll(n.refs.taskViewPort.scrollTop)},n}return p(t,i.Component),r(t,[{key:"getContainerStyle",value:function(e){return{height:e>0?e*this.props.itemheight:10}}},{key:"renderTaskRow",value:function(e){for(var t=[],n=this.props.startRow;n<this.props.endRow+1;n++){var o=e[n];if(!o)break;t.push(a.default.createElement(f,{key:n,index:n,item:o,label:o.name_user,top:n*this.props.itemheight,itemheight:this.props.itemheight,isSelected:this.props.selectedItem==o,onUpdateTask:this.props.onUpdateTask,onSelectItem:this.props.onSelectItem,nonEditable:this.props.nonEditable}))}return t}},{key:"render",value:function(){var e=this.props.data?this.props.data:[];return this.containerStyle=this.getContainerStyle(e.length),a.default.createElement("div",{className:"timeLine-side"},a.default.createElement("div",{className:"timeLine-side-title",style:s.default.values.taskList.title.style},a.default.createElement("div",null,s.default.values.taskList.title.label)),a.default.createElement("div",{ref:"taskViewPort",className:"timeLine-side-task-viewPort",onScroll:this.doScroll},a.default.createElement("div",{className:"timeLine-side-task-container",style:this.containerStyle},this.renderTaskRow(e))))}}]),t}();t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),a=(o=i)&&o.__esModule?o:{default:o};var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onFocus=function(){n.setState({editing:!0})},n.onBlur=function(){n.finishEditing()},n.handleKey=function(e){13===(e.keyCode||e.which)&&n.finishEditing()},n.finishEditing=function(){n.isFocus=!1,n.setState({editing:!1}),n.props.onChange&&n.props.onChange(n.state.value)},n.handleChange=function(e){n.setState({value:e.target.value})},n.renderDiv=function(){return a.default.createElement("div",{tabIndex:n.props.index,onClick:n.onFocus,onFocus:n.onFocus,style:{width:"100%"}},a.default.createElement("div",{className:"block__color_tab_render",style:{background:""+n.props.background}}),n.state.value)},n.renderEditor=function(){return a.default.createElement("input",{ref:"textInput",onBlur:n.onBlur,style:{width:"100%",outlineColor:"black",outlineStyle:"oinset"},type:"text",name:"name",value:n.state.value,onKeyUp:n.handleKey,onChange:n.handleChange})},n.isFocus=!1,n.state={editing:!1,value:n.props.value},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidUpdate",value:function(e,t){this.refs.textInput&&!this.isFocus&&(this.refs.textInput.focus(),this.isFocus=!0)}},{key:"shouldComponentUpdate",value:function(e,t){return e.value!=this.props.value&&(this.state.value=e.value),!0}},{key:"render",value:function(){return this.state.editing?this.renderEditor():this.renderDiv()}}]),t}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(2),i=(o=r)&&o.__esModule?o:{default:o};t.default=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialise=function(e,n,o,r){t.nowposition=o,t.daywidth=r,t.setLimits(e,n,o,r),t.loadDataHorizon()},this.setStartEnd=function(e,n,o,r){t.nowposition=o,t.daywidth=r,t.needData(e,n)&&(t.setLimits(e,n),t.loadDataHorizon())},this.needData=function(e,n){return e<t.lower_data_limit||n>t.upper_data_limit},this.setLimits=function(e,n){t.lower_limit=e-1e3,t.lower_data_limit=e-750,t.upper_limit=n+1e3,t.upper_data_limit=n+750},this.loadDataHorizon=function(){var e=i.default.pixelToDate(t.lower_limit,t.nowposition,t.daywidth),n=i.default.pixelToDate(t.upper_limit,t.nowposition,t.daywidth);t.onHorizonChange(e,n)},this.lower_limit=0,this.upper_limit=0,this._dataToRender=[]}},function(e,t,n){var o=n(27);"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(5)(o,r);o.locals&&(e.exports=o.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".timeLine {\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n border: solid 1px rgb(207, 207, 205);\n font-size: 12px;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n\n/* Main Area */\n\n.timeLine-main {\n flex: 1 1 100%;\n position: relative;\n display: flex;\n flex-direction: column;\n overflow-y: hidden;\n}\n/* Main Area Header*/\n\n.timeLine-main-header-viewPort {\n flex: 0 0 60px;\n position: relative;\n height: 60px;\n width: 100%;\n background-color: rgb(112, 112, 112);\n overflow: hidden;\n}\n\n.timeLine-main-header-container {\n flex: 0 0 60px;\n position: relative;\n top: 0;\n left: 0;\n height: 100%;\n display: flex;\n flex-direction: column;\n background-color: #333333;\n overflow: hidden;\n user-select: none;\n}\n\n.timeLine-main-header-day-item {\n position: absolute;\n display: flex;\n flex-direction: column;\n justify-content: center;\n background-color: rgb(112, 112, 112);\n font-size: 10px;\n text-align: center;\n border-right: solid 1px;\n border-top: solid 1px;\n border-bottom: solid 1px;\n top: 20px;\n height: 40px;\n color: white;\n text-align: center;\n}\n\n.timeLine-main-header-top-item {\n position: absolute;\n display: flex;\n flex-direction: column;\n justify-content: center;\n border-right: solid 1px white;\n height: 20px;\n z-index: 91;\n}\n\n.timeLine-main-header-day-week {\n flex: 0 0 12px;\n padding: 4px;\n z-index: 90;\n}\n\n.timeLine-main-header-day-month {\n top: 0px;\n position: sticky;\n flex: 0 0 15px;\n padding: 5px;\n z-index: 90;\n}\n\n.timeLine-main-header-time {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n height: 22px;\n justify-content: stretch;\n}\n\n.timeLine-main-header-time-item {\n border-left: solid 1px silver;\n border-bottom: solid 1px silver;\n border-top: solid 1px silver;\n text-align: center;\n padding-top: 5px;\n}\n/* Main Area Data*/\n\n.timeLine-main-data-viewPort {\n flex: 1 1 auto;\n position: relative;\n overflow: hidden;\n background-color: #fbf9f9;\n}\n.timeLine-main-data-container {\n position: relative;\n top: 0;\n left: 0;\n height: 100%;\n background-color: rgb(255, 255, 255);\n}\n\n.timeLine-main-data-row {\n position: absolute;\n width: 100%;\n height: 50px;\n}\n\n.timeLine-main-data-task {\n position: absolute;\n background-color: darkorchid;\n border-radius: 14px;\n color: white;\n text-align: center;\n}\n\n.timeLine-main-data-task-side {\n position: absolute;\n width: 10px;\n cursor: col-resize;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.timeLine-main-data-task-side-linker {\n width: 8px;\n height: 8px;\n border-radius: 4px;\n cursor: default;\n z-index: 100;\n}\n.timeLine-main-data-task-side-linker:hover {\n background-color: black;\n border: solid 0.5px grey;\n}\n/* .timeLine-main-data-task:hover {\n background-color:chocolate;\n border:solid 2px darkorchid;\n cursor: move;\n} */\n\n.timeLine-main-data-verticalLine {\n flex: 1 1 auto;\n height: 100%;\n width: 24px;\n background-color: white;\n border-left-width: 0.5px;\n border-left-color: rgb(207, 207, 205);\n border-left-style: dashed;\n}\n\n/* Side Area */\n\n.timeLine-side-main {\n flex: 0 0 auto;\n width: 108px;\n min-width: 108px;\n display: flex;\n flex-direction: row;\n}\n\n.timeLine-side {\n flex: 1 0 100px;\n display: flex;\n flex-direction: column;\n border-right: solid 1px rgb(207, 207, 205);\n}\n\n.verticalResizer {\n flex: 0 0 8px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n cursor: col-resize;\n border-right: solid 1px rgb(207, 207, 205);\n height: 100%;\n}\n.squareGrip {\n flex: 0 0 auto;\n\n border-radius: 50%;\n height: 5px;\n width: 5px;\n margin: 3px 0;\n}\n\n.timeLine-side-title {\n flex: 0 0 60px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.timeLine-side-task-viewPort {\n position: relative;\n flex: 1 1 auto;\n height: 100%;\n background-color: #fbf9f9;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.timeLine-side-task-container {\n position: relative;\n overflow-x: hidden;\n overflow-y: hidden;\n}\n\n.timeLine-side-task-row {\n position: absolute;\n width: 100%;\n background-color: rgb(112, 112, 112);\n border-bottom-width: 0.5px;\n border-bottom-color: rgb(207, 207, 205);\n border-bottom-style: solid;\n height: 30px;\n color: grey;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis;\n outline: none;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n.block__color_tab_render{\n position: absolute;\n width: 9%;\n height: 100%;\n top: 0px;\n}",""])}])});
// Copyright 2017 Cristian Mattarei // // Licensed under the modified BSD (3-clause BSD) License. // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Thread t1 $262.agent.start( `$262.agent.receiveBroadcast(function (x_sab) { var report = []; var x = new Int8Array(x_sab); x[0] = 0; var x = new Int8Array(x_sab); x[1] = 3; var x = new Int8Array(x_sab); x[2] = 2; var x = new Int8Array(x_sab); x[3] = 3; $262.agent.report(report); $262.agent.leaving(); }) `); // Thread t2 $262.agent.start( `$262.agent.receiveBroadcast(function (x_sab) { var report = []; var x = new Int16Array(x_sab); id6_R_t2 = x[0]; report.push("id6_R_t2: "+id6_R_t2); var x = new Int16Array(x_sab); id7_R_t2 = x[1]; report.push("id7_R_t2: "+id7_R_t2); $262.agent.report(report); $262.agent.leaving(); }) `); var x_sab = new SharedArrayBuffer(8); $262.agent.broadcast(x_sab); var report = []; // MAIN Thread var thread_report; var reports = 0; var i = 0; while (true) { thread_report = $262.agent.getReport(); if (thread_report != null) { thread_report = thread_report.split(","); for(i=0; i < thread_report.length; i++){ if(thread_report[i] == "") continue; report.push(thread_report[i]); print(thread_report[i]); } reports += 1; if (reports >= 2) break; } } report.sort(); report = report.join(";"); var outputs = []; outputs[0] = "id6_R_t2: 0;id7_R_t2: 0"; outputs[1] = "id6_R_t2: 768;id7_R_t2: 0"; outputs[2] = "id6_R_t2: 0;id7_R_t2: 2"; outputs[3] = "id6_R_t2: 768;id7_R_t2: 2"; outputs[4] = "id6_R_t2: 0;id7_R_t2: 768"; outputs[5] = "id6_R_t2: 768;id7_R_t2: 768"; outputs[6] = "id6_R_t2: 0;id7_R_t2: 770"; outputs[7] = "id6_R_t2: 768;id7_R_t2: 770"; assert(-1 != outputs.indexOf(report));
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; exports.__esModule = true; var en = { blocks: [ { order: 'ltr', letters: [/^\s+/] }, { order: 'numeric-ltr', letters: __spread('0123456789'), decimalSeparator: /^\.(?=\d)/, ignore: ',' }, { order: 'ltr', letters: Array.from('abcdefghijklmnopqrstuvwxyz').map(function (l) { return RegExp('^' + l, 'i'); }) } ] }; var cs = { blocks: [ __assign({}, en.blocks[0]), __assign({}, en.blocks[1], { decimalSeparator: /^,(?=\d)/, ignore: /^\s+/ }), __assign({}, en.blocks[2], { letters: [ [/^a/i, /^á/i], [/^b/i], [/^c(?!h)/i, /^č/i], [/^d/i, /^ď/i], [/^e/i, /^é/i, /^ě/i], [/^f/i], [/^g/i], [/^h/i], [/^ch/i], [/^i/i, /^í/i], [/^j/i], [/^k/i], [/^l/i], [/^m/i], [/^n/i, /^ň/i], [/^o/i, /^ó/i], [/^p/i], [/^q/i], [/^r/i, /^ř/i], [/^s/i, /^š/i], [/^t/i, /^ť/i], [/^u/i, /^ú/i, /^ů/i], [/^v/i], [/^w/i], [/^x/i], [/^y/i, /^ý/i], [/^z/i, /^ž/i] ] }) ] }; var sk = { blocks: [ cs.blocks[0], cs.blocks[1], __assign({}, cs.blocks[2], { letters: [ [/^a/i, /^á/i, /^ä/i], [/^b/i], [/^c(?!h)/i, /^č/i], [/^d(?![zž])/i, /^ď/i], [/^dz/i, /^dž/i], [/^e/i, /^é/i], [/^f/i], [/^g/i], [/^h/i], [/^ch/i], [/^i/i, /^í/i], [/^j/i], [/^k/i], [/^l/i, /^ĺ/i, /^ľ/i], [/^m/i], [/^n/i, /^ň/i], [/^o/i, /^ó/i, /^ô/i], [/^p/i], [/^q/i], [/^r/i, /^ŕ/i], [/^s/i, /^š/i], [/^t/i, /^ť/i], [/^u/i, /^ú/i], [/^v/i], [/^w/i], [/^x/i], [/^y/i, /^ý/i], [/^z/i, /^ž/i], ] }) ] }; exports.lang = { en: en, cs: cs, sk: sk }; //# sourceMappingURL=lang.js.map
var callbackArguments = []; var argument1 = function (type) { callbackArguments.push(arguments) var axes = this.axesByType[type]; axes && axes.forEach(this._setCartAxisScaleRange, this); }; var argument2 = false; var argument3 = function (i) { callbackArguments.push(arguments) var n = fetchValue(vars, i, t, key); if (n) { if (n instanceof Array && d3plus.object.validate(n[0])) { n = d3plus.util.uniques(n, t); } name = name.concat(n); } }; var argument4 = function (engine) { callbackArguments.push(arguments) files.push({ cwd: './engines/' + engine + '/app/javascripts', src: '**', dest: 'tmp/requirejs', expand: true }); }; var argument5 = function (calcSpec) { callbackArguments.push(arguments) complexTypeProj.setCalc(calcSpec); }; var argument6 = {"9":8.248375605689746e+307,"iQ":"","":2.864832914980868e+307,"1.1996628523310154e+308":1.5347135813630436e+308}; var argument7 = null; var base_0 = [122,705,82,59,823,122,714,-1] var r_0= undefined try { r_0 = base_0.forEach(argument1,argument2) } catch(e) { r_0= "Error" } var base_1 = [122,705,82,59,823,122,714,-1] var r_1= undefined try { r_1 = base_1.forEach(argument3) } catch(e) { r_1= "Error" } var base_2 = [122,705,82,59,823,122,714,-1] var r_2= undefined try { r_2 = base_2.forEach(argument4) } catch(e) { r_2= "Error" } var base_3 = [122,705,82,59,823,122,714,-1] var r_3= undefined try { r_3 = base_3.forEach(argument5,argument6,argument7) } catch(e) { r_3= "Error" } function serialize(array){ return array.map(function(a){ if (a === null || a == undefined) return a; var name = a.constructor.name; if (name==='Object' || name=='Boolean'|| name=='Array'||name=='Number'||name=='String') return JSON.stringify(a); return name; }); } setTimeout(function(){ require("fs").writeFileSync("./experiments/forEach/forEachMined/test647.json",JSON.stringify({"baseObjects":serialize([base_0,base_1,base_2,base_3]),"returnObjects":serialize([r_0,r_1,r_2,r_3]),"callbackArgs":callbackArguments})) },300)
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Tests for tf_agents.bandits.policies.mixture_policy.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tensorflow as tf import tensorflow_probability as tfp from tf_agents.bandits.policies import mixture_policy from tf_agents.policies import policy_saver from tf_agents.policies import tf_policy from tf_agents.specs import tensor_spec from tf_agents.trajectories import policy_step from tf_agents.trajectories import time_step as ts from tf_agents.utils import test_utils tfd = tfp.distributions class ConstantPolicy(tf_policy.TFPolicy): """A policy that outputs a constant action, for testing purposes.""" def __init__(self, action_spec, time_step_spec, action): self._constant_action = action super(ConstantPolicy, self).__init__( time_step_spec=time_step_spec, action_spec=action_spec, info_spec={'a': tensor_spec.TensorSpec(shape=(), dtype=tf.int32), 'b': tensor_spec.TensorSpec(shape=(4,), dtype=tf.float32)}) def _variables(self): return [] def _distribution(self, time_step, policy_state): raise NotImplementedError( 'This policy outputs an action and not a distribution.') def _action(self, time_step, policy_state, seed=None): batch_size = tf.compat.dimension_value(tf.shape(time_step.observation)[0]) return policy_step.PolicyStep( tf.fill([batch_size], self._constant_action), policy_state, {'a': tf.range(batch_size, dtype=tf.int32), 'b': tf.ones(shape=[batch_size, 4], dtype=tf.float32)}) class MixturePolicyTest(test_utils.TestCase): def testMixturePolicyInconsistentSpecs(self): context_dim = 11 observation_spec = tensor_spec.TensorSpec([context_dim], tf.float32) time_step_spec = ts.time_step_spec(observation_spec) action_spec = tensor_spec.BoundedTensorSpec( shape=(), dtype=tf.int32, minimum=0, maximum=9, name='action') sub_policies = [ ConstantPolicy(action_spec, time_step_spec, i) for i in range(9) ] wrong_obs_spec = tensor_spec.TensorSpec([context_dim + 1], tf.float32) wrong_time_step_spec = ts.time_step_spec(wrong_obs_spec) wrong_policy = ConstantPolicy(action_spec, wrong_time_step_spec, 9) sub_policies.append(wrong_policy) weights = [0, 0, 0.2, 0, 0, -0.3, 0, 0, 0.5, 0] dist = tfd.Categorical(probs=weights) with self.assertRaisesRegexp(AssertionError, 'Inconsistent time step specs'): mixture_policy.MixturePolicy(dist, sub_policies) def testMixturePolicyChoices(self): context_dim = 34 observation_spec = tensor_spec.TensorSpec([context_dim], tf.float32) time_step_spec = ts.time_step_spec(observation_spec) action_spec = tensor_spec.BoundedTensorSpec( shape=(), dtype=tf.int32, minimum=0, maximum=9, name='action') sub_policies = [ ConstantPolicy(action_spec, time_step_spec, i) for i in range(10) ] weights = [0, 0, 0.2, 0, 0, 0.3, 0, 0, 0.5, 0] dist = tfd.Categorical(probs=weights) policy = mixture_policy.MixturePolicy(dist, sub_policies) batch_size = 15 time_step = ts.TimeStep( tf.constant( ts.StepType.FIRST, dtype=tf.int32, shape=[batch_size], name='step_type'), tf.constant(0.0, dtype=tf.float32, shape=[batch_size], name='reward'), tf.constant(1.0, dtype=tf.float32, shape=[batch_size], name='discount'), tf.constant( list(range(batch_size * context_dim)), dtype=tf.float32, shape=[batch_size, context_dim], name='observation')) action_step = policy.action(time_step) actions, infos = self.evaluate([action_step.action, action_step.info]) tf.nest.assert_same_structure(policy.info_spec, infos) self.assertAllEqual(actions.shape, [batch_size]) self.assertAllInSet(actions, [2, 5, 8]) def testMixturePolicyDynamicBatchSize(self): context_dim = 35 observation_spec = tensor_spec.TensorSpec([context_dim], tf.float32) time_step_spec = ts.time_step_spec(observation_spec) action_spec = tensor_spec.BoundedTensorSpec( shape=(), dtype=tf.int32, minimum=0, maximum=9, name='action') sub_policies = [ ConstantPolicy(action_spec, time_step_spec, i) for i in range(10) ] weights = [0, 0, 0.2, 0, 0, 0.3, 0, 0, 0.5, 0] dist = tfd.Categorical(probs=weights) policy = mixture_policy.MixturePolicy(dist, sub_policies) batch_size = tf.random.uniform( shape=(), minval=10, maxval=15, dtype=tf.int32) time_step = ts.TimeStep( tf.fill( tf.expand_dims(batch_size, axis=0), ts.StepType.FIRST, name='step_type'), tf.zeros(shape=[batch_size], dtype=tf.float32, name='reward'), tf.ones(shape=[batch_size], dtype=tf.float32, name='discount'), tf.reshape( tf.range( tf.cast(batch_size * context_dim, dtype=tf.float32), dtype=tf.float32), shape=[-1, context_dim], name='observation')) action_step = policy.action(time_step) actions, bsize = self.evaluate([action_step.action, batch_size]) self.assertAllEqual(actions.shape, [bsize]) self.assertAllInSet(actions, [2, 5, 8]) train_step = tf.compat.v1.train.get_or_create_global_step() saver = policy_saver.PolicySaver(policy, train_step=train_step) location = os.path.join(self.get_temp_dir(), 'saved_policy') if not tf.executing_eagerly(): with self.cached_session(): self.evaluate(tf.compat.v1.global_variables_initializer()) saver.save(location) else: saver.save(location) loaded_policy = tf.compat.v2.saved_model.load(location) new_batch_size = 3 new_time_step = ts.TimeStep( tf.fill( tf.expand_dims(new_batch_size, axis=0), ts.StepType.FIRST, name='step_type'), tf.zeros(shape=[new_batch_size], dtype=tf.float32, name='reward'), tf.ones(shape=[new_batch_size], dtype=tf.float32, name='discount'), tf.reshape( tf.range( tf.cast(new_batch_size * context_dim, dtype=tf.float32), dtype=tf.float32), shape=[-1, context_dim], name='observation')) new_action = self.evaluate(loaded_policy.action(new_time_step).action) self.assertAllEqual(new_action.shape, [new_batch_size]) self.assertAllInSet(new_action, [2, 5, 8]) if __name__ == '__main__': tf.test.main()
/* * LaTeX IT - JavaScript to Convert Latex within an HTML page into Equations * Copyright (C) 2009 William Bateman, 2008 Waipot Ngamsaad * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ var LatexIT = { mode : 'gif', imgnum : 0, isFirefox:false, init : function() { // We need to review the support for SVG. Latest released versions are not supporting this as they should // if(document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1")) // this.mode='svg'; // browser name // svg support in FireFox is not allowing two images to occur currently on the same line. var ua = navigator.userAgent.toLowerCase(); if(ua.indexOf("firefox")!=-1) { // this.isFirefox = true; } }, pre : function(txt) { if ( !txt.match(/<img.*?>/i) ) { //Clean code txt=txt.replace(/<br>/mgi,""); txt=txt.replace(/<br \/>/mgi,""); //Create img tag // txt = " <img src=\"http://latex.codecogs.com/"+this.mode+".latex?"+ txt +"\" /> "; // txt = " <object type=\"image/svg+xml\" width=\"20\" data=\"http://latex.codecogs.com/"+this.mode+".latex?"+ txt +"\" /> "; if(this.mode=='svg') { // Best for Firefox if(this.isFirefox) txt = " <object type=\"image/svg+xml\" data=\"http://latex.codecogs.com/"+this.mode+".latex?"+ txt +"\" class=\"latex\" style=\"margin:0; padding:0; border:0\" /> "; else // Best for Chrome // txt = " <object type=\"image/svg+xml\" data=\"http://latex.codecogs.com/"+this.mode+".latex?"+ txt +"\" class=\"latex\" /> "; txt = " <img src=\"http://latex.codecogs.com/"+this.mode+".latex?"+ txt +"\" alt=\""+ txt +"\" title=\""+ txt +"\" border=\"0\" class=\"latex\" /> "; } else txt = " <img src=\"http://latex.codecogs.com/"+this.mode+".latex?"+ txt +"\" alt=\""+txt+"\" border=\"0\" class=\"latex\" /> "; } return txt; }, latex : function(txt) { var html, htmlinline; if(this.isFirefox) { html=" <object type=\"image/svg+xml\" data=\"http://latex.codecogs.com/"+this.mode+".latex?$2\" class=\"latex\" /> "; htmlinline=" <object type=\"image/svg+xml\" data=\"http://latex.codecogs.com/"+this.mode+".latex?\\inline $2\" class=\"latex\" /> "; } else { html=" <img src=\"http://latex.codecogs.com/"+this.mode+".latex?$2\" border=\"0\" class=\"latex\" /> "; htmlinline=" <img src=\"http://latex.codecogs.com/"+this.mode+".latex?\\inline $2\" border=\"0\" class=\"latex\" /> "; } txt=txt.replace(/(^\$|[^\\]\$)(.*?[^\\])\$/gm, htmlinline); txt=txt.replace(/(^\\|[^\\]\\)\[(.*?[^\\])\\\]/mg," <br/>"+html+"<br/> "); txt=txt.replace(/\\\$/mg,"\$"); txt=txt.replace(/\\\\(\[|\])/mg,"$1"); return txt; }, render : function(tag, latexmode) { var eqn = window.document.getElementsByTagName(tag); for (var i=0; i<eqn.length; i++) { if(latexmode) eqn[i].innerHTML = LatexIT.latex(eqn[i].innerHTML); else if (eqn[i].getAttribute("lang") == "latex" || eqn[i].getAttribute("xml:lang") == "latex") eqn[i].innerHTML = LatexIT.pre(eqn[i].innerHTML); } }, add : function(tag, latexmode) { if(typeof(latexmode)=='undefined') latexmode=false; if(window.addEventListener) window.addEventListener('load', new Function('LatexIT.render("'+tag+'", '+latexmode+')'),false); else window.attachEvent('onload', new Function('LatexIT.render("'+tag+'", '+latexmode+')') ); }, scale : function(e,scale) { e.width =(e.width*scale); e.height=(e.height*scale); } }; LatexIT.init(); LatexIT.add('*');
#Coded by Vichitr # import the modules import pygame,random,sys from pygame.locals import * # set the window size WINDOWWIDTH = 900 WINDOWHEIGHT = 700 # set the colors TEXTCOLOR = (255, 255, 255) BACKGROUNDCOLOR = (0,0,0) BLUE = (0,0,255) RED = (255,0,0) YELLOW = (255,255,0) GREEN = (0, 128,0) # set the constant variables FPS = 30 ALIENMINSPEED = 1 ALIENMAXSPEED = 4 ADDNEWALIENRATE = 10 ADDNEWALIEN1RATE = 20 ADDSUPERALIENRATE = 40 PLAYERMOVERATE = 5 ALIENSIZE = 50 BULLETSPEED = 4 NOSUPERBULLETS = 5 POWERUPRATE = 1000 POWERUPSIZE = 50 POWERUPSPEED = 4 ADDNEWLIFERATE = 3000 LIFESIZE = 50 PAUSE = False def terminate(): pygame.quit() sys.exit() def waitForPlayerToPressKey(): while True: for event in pygame.event.get(): if event.type == QUIT: terminate() if event.type == KEYDOWN: if event.key == K_ESCAPE: terminate() return # define a function to draw text on the screen def drawText(text,font,surface, x, y): textobj= font.render(text, 1, TEXTCOLOR) textrect = textobj.get_rect() textrect.topleft = (x, y) surface.blit(textobj, textrect) # set up pygame, the window and the mouse cursor pygame.init() mainClock = pygame.time.Clock() windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT)) pygame.display.set_caption('Alien Attack') pygame.mouse.set_visible(False) # set up fonts font = pygame.font.SysFont(None,48) # set up sounds gameOverSound = pygame.mixer.Sound('gameover.wav') pygame.mixer.music.load('background.mid') # set up images playerImage1 = pygame.image.load('spaceship.png') playerImage = pygame.transform.scale(playerImage1, (60,60)) playerRect = playerImage.get_rect() alienImage = pygame.image.load('alien.png') alien1Image = pygame.image.load('alien1.png') superAlienImage = pygame.image.load('superalien.png') lifeImage = pygame.image.load('life.png') powerUpImage = pygame.image.load('powerup.png') superBulletImage = pygame.image.load('superbullet.png') # set up the background background = pygame.image.load("background.png") backgroundImage = pygame.transform.scale(background,(WINDOWWIDTH,WINDOWHEIGHT)) backgroundRect = backgroundImage.get_rect() # show the start screen drawText('Alien Attack',font, windowSurface, (WINDOWWIDTH / 3), (WINDOWHEIGHT / 3)) drawText('Press a key to start!', font, windowSurface, (WINDOWWIDTH / 3) - 30, (WINDOWHEIGHT / 3) + 50) pygame.display.update() waitForPlayerToPressKey() highScore = 0 while True: # set up the start of the game aliens=[] aliens1=[] superAliens = [] spaceshipBullets = [] superBullets = [] alienBullets = [] superPower = [] lifes = [] score = 0 levelUpScore = 1000 level = 0 LIFES = 3 playerRect.topleft = (WINDOWWIDTH/2, WINDOWHEIGHT - 50) moveLeft = moveRight = moveUp = moveDown = False alienAddCounter = 0 alien1AddCounter = 0 superAlienAddCounter = 0 superPowerCounter = 0 newLifeCounter = 0 pygame.mixer.music.play(-1,0.0) # update the background of the window windowSurface.blit(backgroundImage, backgroundRect) pygame.display.update() while True: # the game loop runs while the game part is playing # pause the game while PAUSE == True: # wait till the player resumes the game for event in pygame.event.get(): if event.type == KEYUP: if event.key == ord('p'): PAUSE = False # quit the game for event in pygame.event.get(): if event.type == QUIT: terminate() if event.type == KEYDOWN: if event.key == K_LEFT or event.key == ord('a'): moveRight = False moveLeft = True if event.key == K_RIGHT or event.key == ord('d'): moveLeft = False moveRight = True if event.key == K_UP or event.key == ord('w'): moveDown = False moveUp = True if event.key == K_DOWN or event.key == ord('s'): moveUp = False moveDown = True if event.key == K_SPACE: # create new bullets if space is pressed newSpaceshipBullet1 = pygame.Rect(playerRect.centerx-20, playerRect.centery+5, 3, 6) spaceshipBullets.append(newSpaceshipBullet1) newSpaceshipBullet2 = pygame.Rect(playerRect.centerx+15, playerRect.centery+5, 3, 6) spaceshipBullets.append(newSpaceshipBullet2) if event.key == K_LALT and NOSUPERBULLETS > 0: # use the super bullets when left alt is pressed newSuperBullet = {'rect': pygame.Rect(playerRect.centerx-12, playerRect.centery-50, 20, 50), 'surface': pygame.transform.scale(superBulletImage, (20,50))} superBullets.append(newSuperBullet) NOSUPERBULLETS -= 1 if event.type == KEYUP: if event.key == K_ESCAPE: # exit the game terminate() if event.key == ord('p'): # pause the game PAUSE = True if event.key == K_LEFT or event.key == ord('a'): moveLeft = False if event.key == K_RIGHT or event.key == ord('d'): moveRight = False if event.key == K_UP or event.key == ord('w'): moveUp = False if event.key == K_DOWN or event.key == ord('s'): moveDown = False # move spaceship as mouse moves if event.type == MOUSEMOTION: playerRect.move_ip(event.pos[0] - playerRect.centerx, event.pos[1] - playerRect.centery) # add aliens at the top of the screen alienAddCounter += 1 if alienAddCounter == ADDNEWALIENRATE: alienAddCounter = 0 newAlien = {'rect': pygame.Rect(random.randint(0, WINDOWWIDTH - ALIENSIZE),0 - ALIENSIZE, ALIENSIZE, ALIENSIZE), 'speed': random.randint(ALIENMINSPEED,ALIENMAXSPEED),'surface': pygame.transform.scale(alienImage, (ALIENSIZE, ALIENSIZE))} aliens.append(newAlien) # add different type aliens alien1AddCounter += 1 if alien1AddCounter == ADDNEWALIEN1RATE: alien1AddCounter = 0 newAlien1 = {'rect': pygame.Rect(random.randint(0, WINDOWWIDTH - ALIENSIZE), 0 - ALIENSIZE, ALIENSIZE, ALIENSIZE), 'speed': random.randint(ALIENMINSPEED, ALIENMAXSPEED), 'surface': pygame.transform.scale(alien1Image,(ALIENSIZE, ALIENSIZE))} aliens1.append(newAlien1) # add super aliens superAlienAddCounter += 1 if superAlienAddCounter == ADDSUPERALIENRATE: superAlienAddCounter = 0 newSuperAlien = {'rect': pygame.Rect(random.randint(0, WINDOWWIDTH - ALIENSIZE), 0 - ALIENSIZE, ALIENSIZE, ALIENSIZE), 'speed': random.randint(ALIENMINSPEED, ALIENMAXSPEED), 'surface': pygame.transform.scale(superAlienImage, (ALIENSIZE, ALIENSIZE)), 'hit': 3} superAliens.append(newSuperAlien) # add powerups to increase no of super bullets superPowerCounter += 1 if superPowerCounter == POWERUPRATE: superPowerCounter = 0 newPower = {'rect': pygame.Rect(random.randint(0,WINDOWWIDTH - POWERUPSIZE), 0 - POWERUPSIZE, POWERUPSIZE, POWERUPSIZE), 'surface': pygame.transform.scale(powerUpImage, (POWERUPSIZE, POWERUPSIZE))} superPower.append(newPower) # add new powerup to increase the no of lifes newLifeCounter += 1 if newLifeCounter == ADDNEWLIFERATE: newLifeCounter = 0 newLife = {'rect': pygame.Rect(random.randint(0, WINDOWWIDTH - LIFESIZE), 0 - LIFESIZE, LIFESIZE, LIFESIZE), 'surface': pygame.transform.scale(lifeImage, (LIFESIZE, LIFESIZE))} lifes.append(newLife) # move the spaceship around if moveLeft and playerRect.left > 0: playerRect.move_ip(-1 * PLAYERMOVERATE, 0) if moveRight and playerRect.right < WINDOWWIDTH: playerRect.move_ip(PLAYERMOVERATE, 0) if moveUp and playerRect.top > 0: playerRect.move_ip(0, -1 * PLAYERMOVERATE) if moveDown and playerRect.bottom < WINDOWHEIGHT: playerRect.move_ip(0, PLAYERMOVERATE) # move the mouse cursor to match the player pygame.mouse.set_pos(playerRect.centerx,playerRect.centery) # move the aliens down for a in aliens: a['rect'].move_ip(0,a['speed']) for a1 in aliens1: a1['rect'].move_ip(0, a1['speed']) for sa in superAliens: sa['rect'].move_ip(0, sa['speed']) # move the powerups down for p in superPower[:]: p['rect'].move_ip(0, POWERUPSPEED) for l in lifes[:]: l['rect'].move_ip(0, POWERUPSPEED) # move the bullets up for b in spaceshipBullets: b.move_ip(0,-BULLETSPEED) for s in superBullets: s['rect'].move_ip(0,-BULLETSPEED) # delete bullets that have moved past the top for b in spaceshipBullets[:]: if b.top < 0: spaceshipBullets.remove(b) for s in superBullets[:]: if s['rect'].top <0: superBullets.remove(s) # delete aliens that have fallen past the bottom for a in aliens[:]: if a['rect'].top > WINDOWHEIGHT: aliens.remove(a) for a1 in aliens1[:]: if a1['rect'].top > WINDOWHEIGHT: aliens1.remove(a1) for sa in superAliens[:]: if sa['rect'].top > WINDOWHEIGHT: superAliens.remove(sa) # delete powerups that have fallen past the bottom for l in lifes[:]: if l['rect'].top > WINDOWHEIGHT: lifes.remove(l) for p in superPower[:]: if p['rect'].top > WINDOWHEIGHT: superPower.remove(p) # draw the game world on the window windowSurface.blit(backgroundImage, backgroundRect) pygame.display.update() #windowSurface.fill(BACKGROUNDCOLOR) # draw the score, high score, Lifes and super bullets drawText('Score: %s' %(score), font, windowSurface, 10, 0) drawText('High Score: %s' %(highScore),font, windowSurface, 10,30) drawText('Super Bullets: %s' %(NOSUPERBULLETS),font, windowSurface, WINDOWWIDTH - 260, 30) drawText('Lifes: %s' %(LIFES), font, windowSurface, WINDOWWIDTH - 260, 0) # draw the spaceship windowSurface.blit(playerImage, playerRect) pygame.display.update() # draw the aliens for a in aliens: windowSurface.blit(a['surface'], a['rect']) for a1 in aliens1: windowSurface.blit(a1['surface'],a1['rect']) for sa in superAliens: windowSurface.blit(sa['surface'],sa['rect']) # draw the powerups for l in lifes: windowSurface.blit(l['surface'],l['rect']) # draw the bullets for b in spaceshipBullets: pygame.draw.rect(windowSurface, BLUE, b, 0) for s in superBullets: windowSurface.blit(s['surface'], s['rect']) # draw the powerups for p in superPower: windowSurface.blit(p['surface'], p['rect']) # check if bullets have hit the aliens for b in spaceshipBullets: for a in aliens: if b.colliderect(a['rect']): score += 10 # increase the score aliens.remove(a) spaceshipBullets.remove(b) break for b in spaceshipBullets: for a1 in aliens1: if b.colliderect(a1['rect']): score += 15 # increase the score aliens1.remove(a1) spaceshipBullets.remove(b) break for b in spaceshipBullets: for sa in superAliens: if b.colliderect(sa['rect']): sa['hit'] -= 1 # check bullets have hit the super aliens 3 times if sa['hit'] > 0: spaceshipBullets.remove(b) break else: score += 30 # increase the score superAliens.remove(sa) spaceshipBullets.remove(b) break # if super bullets hit the aliens, increase more score for s in superBullets: for a in aliens: if s['rect'].colliderect(a['rect']): score += 20 aliens.remove(a) for s in superBullets: for a1 in aliens1: if s['rect'].colliderect(a1['rect']): score += 30 aliens1.remove(a1) for s in superBullets: for sa in superAliens: if s['rect'].colliderect(sa['rect']): score += 60 superAliens.remove(sa) # if powerup is catched by spaceship for p in superPower: if playerRect.colliderect(p['rect']): if NOSUPERBULLETS < 9: NOSUPERBULLETS += 1 superPower.remove(p) for l in lifes: if playerRect.colliderect(l['rect']): if LIFES < 3: LIFES += 1 lifes.remove(l) # increase the difficulty if game proceeds if score >= levelUpScore: levelUpScore += 1000 level += 1 ALIENMINSPEED += 1 ALIENMAXSPEED += 1 # update the window pygame.display.update() # if aliens hit the spaceship decrease lifes for a in aliens: if playerRect.colliderect(a['rect']): aliens.remove(a) LIFES -= 1 for a1 in aliens1: if playerRect.colliderect(a1['rect']): aliens1.remove(a1) LIFES -= 1 for sa in superAliens: if playerRect.colliderect(sa['rect']): LIFES -= 1 superAliens.remove(sa) # if lifes are zero, end the game if LIFES <= 0: if score > highScore: # set up high score highScore= score NOSUPERBULLETS = 5 break mainClock.tick(FPS) # set the speed to the initial ones ALIENMINSPEED = 1 ALIENMAXSPEED = 4 # stop the game sound and play game over sound pygame.mixer.music.stop() gameOverSound.play() # show the 'Game Over' screen drawText('GAME OVER',font,windowSurface, (WINDOWWIDTH / 3),(WINDOWHEIGHT / 3)) drawText('Press a key to play again.',font,windowSurface, (WINDOWWIDTH / 3) -80, (WINDOWHEIGHT / 3) + 50) pygame.display.update() waitForPlayerToPressKey() # stop the game over sound gameOverSound.stop()
module.exports=require('../../decode-ranges.js')('AhAZFZguAOAEWAeAnAgmEEBThzAIAFAAAoAAiBANACAfAeJhyAqFBwTYAmUDkhAwXuChGBjKBAAwTMAMAGDAFABsILBhWAKCKAOQahEglACBFAaAQgoAFpjLgmYKUqfAj-j_pMCJqlg7mzLDEAAAYOHDDhaBCAhZBiSPfgjg7g_ehQiHinxm_g_1j_ghhlCikJmUA1NtBi8ARJVgiASADiSAAfZFZKJAgsBg_GAGJEkBCDgsCIhPLgzgs4M4Cj1JgmBg9CQHBGdDgvkhhWIRiNhUAhGABBABBBDALAAAGAhAADBHAGAbADAEAACGAlTBkjBgxxf_grDhjLOBNBOAOfKEeAg7DgqhKZABMgqEIGBitggOFAhFCTLgkAEUQOg-AAAi1ADCg9BDLXiShFDKgvhFg5hz7AiMAdhf')
var searchData= [ ['state_87',['state',['../classSpaceInvaders_1_1Game.html#a15cb29dbaf9ef85acc1eae9c60d3253d',1,'SpaceInvaders::Game']]] ];
// Common client-side webpack configuration used by webpack.hot.config and webpack.rails.config. const webpack = require('webpack'); const path = require('path'); const autoprefixer = require('autoprefixer'); const devBuild = process.env.NODE_ENV !== 'production'; const nodeEnv = devBuild ? 'development' : 'production'; module.exports = { // the project dir context: __dirname, entry: { // See use of 'vendor' in the CommonsChunkPlugin inclusion below. vendor: [ 'babel-polyfill', 'jquery', ], // This will contain the app entry points defined by webpack.hot.config and webpack.rails.config app: [ './app/bundles/comments/startup/clientRegistration', ], }, resolve: { extensions: ['', '.js', '.jsx'], alias: { libs: path.join(process.cwd(), 'app', 'libs'), react: path.resolve('./node_modules/react'), 'react-dom': path.resolve('./node_modules/react-dom'), }, }, plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify(nodeEnv), }, TRACE_TURBOLINKS: devBuild, }), // https://webpack.github.io/docs/list-of-plugins.html#2-explicit-vendor-chunk new webpack.optimize.CommonsChunkPlugin({ // This name 'vendor' ties into the entry definition name: 'vendor', // We don't want the default vendor.js name filename: 'vendor-bundle.js', // Passing Infinity just creates the commons chunk, but moves no modules into it. // In other words, we only put what's in the vendor entry definition in vendor-bundle.js minChunks: Infinity, }), ], module: { loaders: [ { test: /\.(woff2?|svg)$/, loader: 'url?limit=10000' }, { test: /\.(ttf|eot)$/, loader: 'file' }, { test: /\.(jpe?g|png|gif|svg|ico)$/, loader: 'url?limit=10000' }, { test: require.resolve('jquery'), loader: 'expose?jQuery' }, { test: require.resolve('jquery'), loader: 'expose?$' }, // Use one of these to serve jQuery for Bootstrap scripts: // Bootstrap 3 { test: /bootstrap-sass\/assets\/javascripts\//, loader: 'imports?jQuery=jquery' }, // Bootstrap 4 { test: /bootstrap\/dist\/js\/umd\//, loader: 'imports?jQuery=jquery' }, ], }, // Place here all postCSS plugins here, so postcss-loader will apply them postcss: [autoprefixer], // Place here all SASS files with variables, mixins etc. // And sass-resources-loader will load them in every CSS Module (SASS file) for you // (so don't need to @import them explicitly) // https://github.com/shakacode/sass-resources-loader sassResources: ['./app/assets/styles/app-variables.scss'], };
// Copyright 2013 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following // disclaimer in the documentation and/or other materials provided // with the distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Debug = debug.Debug; function listener(event, exec_state, event_data, data) { if (event == Debug.DebugEvent.Break) { exec_state.prepareStep(Debug.StepAction.StepOver); } }; Debug.setListener(listener); var statement = ""; for (var i = 0; i < 1024; i++) statement += "z"; statement = 'with(0)' + statement + '=function foo(){}'; debugger; eval(statement);
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatagridHeaderCell = undefined; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames); var _shouldUpdate = require('recompose/shouldUpdate'); var _shouldUpdate2 = _interopRequireDefault(_shouldUpdate); var _compose = require('recompose/compose'); var _compose2 = _interopRequireDefault(_compose); var _TableCell = require('@material-ui/core/TableCell'); var _TableCell2 = _interopRequireDefault(_TableCell); var _Tooltip = require('@material-ui/core/Tooltip'); var _Tooltip2 = _interopRequireDefault(_Tooltip); var _styles = require('@material-ui/core/styles'); var _raCore = require('ra-core'); var _TableSortLabel = require('./TableSortLabel'); var _TableSortLabel2 = _interopRequireDefault(_TableSortLabel); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // remove the sort icons when not active // import TableSortLabel from '@material-ui/core/TableSortLabel'; var styles = { icon: { display: 'none' }, active: { '& $icon': { display: 'inline' } } }; var DatagridHeaderCell = function DatagridHeaderCell(_ref) { var classes = _ref.classes, className = _ref.className, field = _ref.field, currentSort = _ref.currentSort, updateSort = _ref.updateSort, resource = _ref.resource, isSorting = _ref.isSorting, translate = _ref.translate, rest = (0, _objectWithoutProperties3.default)(_ref, ['classes', 'className', 'field', 'currentSort', 'updateSort', 'resource', 'isSorting', 'translate']); return _react2.default.createElement( _TableCell2.default, (0, _extends3.default)({ className: (0, _classnames2.default)(className, field.props.headerClassName), numeric: field.props.textAlign === 'right', variant: 'head' }, rest), field.props.sortable !== false && (field.props.sortBy || field.props.source) ? _react2.default.createElement( _Tooltip2.default, { title: translate('ra.action.sort'), placement: field.props.textAlign === 'right' ? 'bottom-end' : 'bottom-start', enterDelay: 300 }, _react2.default.createElement( _TableSortLabel2.default, { active: currentSort.field === (field.props.sortBy || field.props.source), direction: currentSort.order === 'ASC' ? 'asc' : 'desc', 'data-sort': field.props.sortBy || field.props.source, onClick: updateSort, classes: classes }, _react2.default.createElement(_raCore.FieldTitle, { label: field.props.label, source: field.props.source, resource: resource }) ) ) : _react2.default.createElement(_raCore.FieldTitle, { label: field.props.label, source: field.props.source, resource: resource }) ); }; exports.DatagridHeaderCell = DatagridHeaderCell; DatagridHeaderCell.propTypes = { classes: _propTypes2.default.object, className: _propTypes2.default.string, field: _propTypes2.default.element, currentSort: _propTypes2.default.shape({ sort: _propTypes2.default.string, order: _propTypes2.default.string }).isRequired, isSorting: _propTypes2.default.bool, sortable: _propTypes2.default.bool, resource: _propTypes2.default.string, translate: _propTypes2.default.func.isRequired, updateSort: _propTypes2.default.func.isRequired }; var enhance = (0, _compose2.default)((0, _shouldUpdate2.default)(function (props, nextProps) { return props.isSorting !== nextProps.isSorting || nextProps.isSorting && props.currentSort.order !== nextProps.currentSort.order; }), _raCore.translate, (0, _styles.withStyles)(styles)); exports.default = enhance(DatagridHeaderCell);
/** * This file is part of vue-boilerplate. * @link : https://zhaiyiming.com/ * @author : Emil Zhai (root@derzh.com) * @modifier : Emil Zhai (root@derzh.com) * @copyright: Copyright (c) 2018 TINYMINS. */ // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path'); const moment = require('moment'); const isRun = process.env.NODE_ACTION === 'run'; const isProd = process.env.NODE_ENV === 'production'; module.exports = { title: '谷歌汇率', env: { NODE_ENV: process.env.NODE_ENV, NODE_ACTION: process.env.NODE_ACTION, ROUTER_MODE: process.env.ROUTER_MODE, PUBLIC_PATH: process.env.PUBLIC_PATH, BUILD_TIME: moment().format('YMMDDHHmm'), }, port: 18080, autoOpenBrowser: false, assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPath: process.env.PUBLIC_PATH, manifestPath: 'manifest.json', // Run the build command with an extra argument to // View the bundle analyzer report after build finishes: // `npm run build --report` // Set to `true` or `false` to always turn it on or off bundleAnalyzerReport: process.env.npm_config_report, // Gzip off by default as many popular static hosts such as // Surge or Netlify already gzip all static assets for you. // Before setting to `true`, make sure to: // npm install --save-dev compression-webpack-plugin productionGzip: false, productionGzipExtensions: ['js', 'css'], proxyTable: {}, // CSS Sourcemaps off by default because relative paths are "buggy" // with this option, according to the CSS-Loader README // (https://github.com/webpack/css-loader#sourcemaps) // In our experience, they generally work as expected, // just be aware of this issue when enabling this option. sourceMap: !isProd, // see https://www.npmjs.com/package/px2rem px2rem: { remUnit: 75 }, };
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # import os import sys sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('rw_data_proc')) # -- Project information ----------------------------------------------------- project = 'Roadwatch Data Processor' copyright = '2019, Daniel SASU' author = 'Daniel SASU' # The short X.Y version version = '0.2.7' # The full version, including alpha/beta/rc tags release = '0.2.7' # -- General configuration --------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. # # needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.coverage', ] # Add any paths that contain templates here, relative to this directory. # templates_path = ['_templates'] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # # source_suffix = ['.rst', '.md'] source_suffix = '.rst' # The master toctree document. master_doc = 'index' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = None # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. exclude_patterns = [] # The name of the Pygments (syntax highlighting) style to use. pygments_style = None # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # html_theme = 'alabaster' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # # html_theme_options = {} # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". # html_static_path = ['_static'] # Custom sidebar templates, must be a dictionary that maps document names # to template names. # # The default sidebars (for documents that don't match any pattern) are # defined by theme itself. Builtin themes are using these templates by # default: ``['localtoc.html', 'relations.html', 'sourcelink.html', # 'searchbox.html']``. # # html_sidebars = {} # -- Options for HTMLHelp output --------------------------------------------- # Output file base name for HTML help builder. htmlhelp_basename = 'RoadwatchDataProcessordoc' # -- Options for LaTeX output ------------------------------------------------ latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # # 'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). # # 'pointsize': '10pt', # Additional stuff for the LaTeX preamble. # # 'preamble': '', # Latex figure (float) alignment # # 'figure_align': 'htbp', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ (master_doc, 'RoadwatchDataProcessor.tex', 'Roadwatch Data Processor Documentation', 'Daniel SASU', 'manual'), ] # -- Options for manual page output ------------------------------------------ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ (master_doc, 'roadwatchdataprocessor', 'Roadwatch Data Processor Documentation', [author], 1) ] # -- Options for Texinfo output ---------------------------------------------- # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ (master_doc, 'RoadwatchDataProcessor', 'Roadwatch Data Processor Documentation', author, 'RoadwatchDataProcessor', 'One line description of project.', 'Miscellaneous'), ] # -- Options for Epub output ------------------------------------------------- # Bibliographic Dublin Core info. epub_title = project # The unique identifier of the text. This can be a ISBN number # or the project homepage. # # epub_identifier = '' # A unique identification for the text. # # epub_uid = '' # A list of files that should not be packed into the epub file. epub_exclude_files = ['search.html'] # -- Extension configuration ------------------------------------------------- # -- Options for intersphinx extension --------------------------------------- # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {'https://docs.python.org/': None}
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S7.4_A4_T5; * @section: 7.4; * @assertion: Single and Multi line comments are used together; * @description: Insert Multi line comment into Single line comment; */ /*CHECK#1*/ // var /* x */
// 保持脚本运行 var ID = setInterval(() => { }, 1000) // 监听主脚本消息 events.on("prepare", function (i, mainEngine) { try{ var taskData = getTask(); log(taskData.task.data); readInfo(); main(); callback_task(taskData.task.id,"done"); launch('com.wenfree.cn'); } catch(err){ log(err) } callback_task(taskData.task.id,"done"); mainEngine.emit("control", i); //向主脚本发送一个事件,该事件可以在它的events模块监听到并在脚本主线程执行事件处理。 clearInterval(ID); //取消一个由 setInterval() 创建的循环定时任务。 }); function jspost(url,data){ var res = http.post(url, data); var data = res.body.string(); if(data){ return data; } } // 获取接口数据 function getTask() { var url = 'http://api.wenfree.cn/public/'; let res = http.post(url, { "s": "NewsImei.Imei", "imei": device.getIMEI() }); let json = {}; try { let html = res.body.string(); // log(html) json = JSON.parse(html); log(json) return json.data; } catch (err) { //在此处理错误 } }; function callback_task(id,state){ var url = "http://api.wenfree.cn/public/"; var arr = {}; arr["id"] = id; arr["state"] = state; var postdata = {}; postdata["s"]="NewsRecordBack.Back" postdata["arr"] = JSON.stringify(arr) log(arr,postdata) log(jspost(url,postdata)); } //读取本地数据 function getStorageData(name, key) { const storage = storages.create(name); //创建storage对象 if (storage.contains(key)) { return storage.get(key); }; //默认返回undefined } function app_info(name,data){ var url = "http://api.wenfree.cn/public/"; var postdata = {}; postdata["s"]="App.NewsAppInfo.App_info"; postdata["imei"]= device.getIMEI(); postdata["imei_tag"]= getStorageData(device.getIMEI(), "tag");; postdata["app_name"]= name; postdata["whos"]= "ouwen000"; postdata["app_info"]= JSON.stringify(data); log(jspost(url,postdata)); } //基础函数 function active(pkg,n){ if(!n){n=5} if( currentPackage() == pkg ){ log("应用在前端"); return true; }else{ app.launch(pkg); sleep(1000*n); } } //准备点击 function click_(x,y){ if(x>0 && x < 720 && y > 0 && y < 1440){ click(x,y); return true }else{ log('坐标错误'); return false } } //点击obj function click__(obj){ click_(obj.bounds().centerX(),obj.bounds().centerY()) } //普通封装 function jsclick(way,txt,clickKey,n){ if(!n){n=1};//当n没有传值时,设置n=1 var res = false; if(!clickKey){clickKey=false}; //如果没有设置点击项,设置为false if (way == "text"){ res = text(txt).findOne(200); }else if(way == "id"){ res = id(txt).findOne(200); }else if(way == "desc"){ res = desc(txt).findOne(200); } if(res){ if ( clickKey ){ if ( res.bounds().centerX() < 0 || res.bounds().centerX()> width || res.bounds().centerY() < 0 || res.bounds().centerY() > height ){ return false } log('准备点击->',txt,"x:",res.bounds().centerX(),"y:",res.bounds().centerY()); click__(res); }else{ log("找到->",txt); } sleep(1000*n); return true; }else{ // log("没有找到->",txt) } } //随机数 function rd(min,max){ if (min<=max){ return random(min,max) }else{ return random(max,min) } } function moveTo(x,y,x1,y1,times){ swipe(x,y,x1,y1,times); sleep(1000); } var replayText = [ "不要在本该奋斗的年纪选择了安逸,只有度过了一段连自己都被感动的日子,才会遇见那个最好的自己,未来的你,一定会感谢现在拼命努力的自己。永远相信,越努力,越幸运,所有失去的,都会以另一种方式归来,踏实一些,你想要的,岁月统统都会给你。", "与其担心未来,不如好好把握现在,不要轻易把梦想寄托在某个人身上,因为未来是你自己的,只有你自己能给自己最大的安全感,无论我们处在人生的那一个阶段,都应努力好好经营自己。", "生活不能等待别人来安排,要自己去争取和奋斗;而不论其结果是喜是悲,但可以慰藉的是,你总不枉在这世界上活了一场。", "人最大的对手,往往不是别人,而是自己的懒惰。别指望撞大运,运气不可能永远在你身上,任何时候都要靠本事吃饭。你必须拼尽全力,才有资格说自己的运气不好。", "当你越来越漂亮时,自然有人关注你。当你越来越有能力时,自然会有人看得起你。改变自己,你才有自信,梦想才会慢慢的实现。", "如果没人认可你,那就自己认可自己;如果没人欣赏你,那就自己欣赏自己;如果没人祝福你,那就自己祝福自己。与其用泪水悔恨昨天,不如用汗水拼搏明天。", "只有你自己变优秀了,那样才会有别人来亲附。这叫做“近者悦,远者来”。自己是梧桐,凤凰才会来栖;自己是大海,百川才会来归。你只有到了那个层次,才会有相应的圈子,而不是倒过来。", "不去做,就永远不会有收获,不尝试,就永远不会有成功,不可能,就永远停留在现在,未来,是靠把握和努力争取来的,相信,永远比怀疑多一次成功的机会。请相信:想法+做法+坚持=成功!", "二十多岁了,请放下你的清高,收起你的自尊,褪去你的愚昧,穿上你的现实,冲出你的花季,去走出你的人生。", "一个能把每一个今天过好的人,明天也坏不到哪里去。因为对未来的真正慷慨,就是把最卓越的努力献给现在,珍惜当下的一切。未来才会无限可能!趁年轻,埋头苦干;免来日,仰慕求人。", "所谓迷茫,就是才华配不上梦想:大事干不了,小事不肯干;不想做手边的事,只想做天边的事。解除迷茫,就从小事做起,从身边的事情做起,能力不是从做大事得来的,而是从这些“不起眼”的事情中锻炼来的。小事不肯干的你,大事轮不到你,趁你跌倒还能站起来的时候,先学会脚踏实地。", "能自己扛就别声张,你矫情幽怨的样子并不漂亮,做个勇敢的人,学着去承受命运给你的每一个耳光。", "看清楚自己的心,找准属于自己的路,用力去飞,努力去追,不负年华和未来。遇见更好的自己!", "这个世界上从来没有一劳永逸的努力,就如没有不劳而获的成功,要想一生过得顺遂,除了一直努力,别无捷径。", "改变,永远不嫌晚。无论你是几岁,也无论你目前所处的境况有多糟,只要立定目标、一步一步往前走,人生随时都有翻盘的可能性。", "长时间呆在舒适区,人难免会慢慢丧失斗志,动起来做出改变,出去看看世界,或者学一个新技能,让自己始终在进步;你要相信,这个世界上,一定有另一个自己,在做着你不敢做的事情,过着你想过的生活!", "从没有白费的努力,也没有碰巧的成功。只要认真对待生活,终有一天,你的每一份努力,都将绚烂成花。", "比我差的人还没放弃,比我好的人仍在努力,我就更没资格说,我无能为力。——致自己", "请把努力当成一种习惯,而不是三分钟热度。每一个你羡慕的收获,都是努力用心拼来的。相信人生不会亏待你,你吃的苦,你受的累,你掉进的坑,你走错的路,都会练就独一无二成熟坚强感恩的你。", "当你真心想做一件事的时候,全世界都会给你让路;当你只想试一试的时候,总能找到不去努力的借口;当你连尝试都不愿意的时候,便能找到一万个不做的理由。", ] var emoji = [ '[微笑]','[撇嘴]','[色]','[发呆]','[得意]','[流泪]','[害羞]','[呲牙]','[调皮]','[发怒]','[尴尬]','[大哭]','[睡]','[闭嘴]','[惊讶]','[难过]', '[囧]','[抓狂]','[吐]','[偷笑]','[愉快]','[悠闲]','[憨笑]','[流汗]','[惊恐]','[困]','[傲慢]','[白眼]','[奋斗]','[咒骂]','[疑问]','[嘘]', '[晕]','[衰]','[骷髅]','[左哼哼]','[坏笑]','[鼓掌]','[抠鼻]','[擦汗]','[再见]','[敲打]','[亲亲]','[阴险]','[快哭了]','[委屈]','[鄙视]', '[哈欠]','[右哼哼]','[玫瑰]','[猪头]','[咖啡]','[啤酒]','[西瓜]','[菜刀]','[可怜]','[便便]','[炸弹]','[蛋糕]','[心碎]','[爱心]','[嘴唇]', '[凋谢]','[胜利]','[握手]','[弱]','[强]','[拥抱]','[太阳]','[月亮]','[怄火]','[发抖]','[跳跳]','[OK]','[拳头]','[勾引]','[抱拳]','[转圈]', '[皱眉]','[机智]','[奸笑]','[捂脸]','[嘿哈]','[社会社会]','[Emm]','[天啊]','[汗]','[加油]','[吃瓜]','[耶]','[哇]','[加油加油]','[打脸]', '[好的]','[旺柴]','[福]','[發]','[红包]' ] function Tips(){ log("查询弹窗"); var textTips = {} textTips["允许"]="text"; textTips["保存"]="text"; textTips["我知道了"]="text"; textTips["好的"]="text"; for(var k in textTips){ if (jsclick(textTips[k],k,true,2)){ return false } } log('查询弹窗-end') return true } // [500,1044,692,1238] function main(){ var fristbox = true var readtimes = 0 var readtimes_end = random(2,3) var detail2 = 0; var movetoTimes = 0 var i__ = 0; while (i__ < 200) { i__++; if ( active( appinfo.bid , 8) ){ var UI = currentActivity(); log('UI',UI,i__) switch(UI){ case 'com.tencent.mm.ui.LauncherUI': log('主界面'); if (fristbox){ if (jsclick('text','微信',true,2)){ var mesglist = id('b4r').find(); if ( mesglist ){ click__(mesglist[rd(0,mesglist.length-1)]) sleep(rd(1000,5000)); } fristbox = false }else{ click_(90,1318); } }else if (jsclick('desc','更多功能按钮,已折叠',false,2) || jsclick('text','发送',false,2)){ log('聊天界面'); setText(0,replayText[rd(0,replayText.length-1)]+emoji[rd(0,emoji.length-1)]); sleep(rd(1000,3000)); jsclick('text','发送',true,rd(2,5)); back(); }else if( jsclick('id','rr',true,2)){ }else if( mesg() ){ if (jsclick('id','ga3',true,2)){ } }else { if ( i__ > 120){ return true } } break; case "com.android.systemui.recents.RecentsActivity": home(); break; case "com.tencent.mm.plugin.account.ui.WelcomeActivity": case "com.tencent.mm.plugin.account.ui.LoginPasswordUI": return true default: back(); } } Tips(); sleep(1000); } } function readInfo(){ info = {}; var i__ = 0; while (i__ < 8) { i__++; if ( active( appinfo.bid , 8) ){ var UI = currentActivity(); log('UI',UI,i__) switch(UI){ case 'com.tencent.mm.ui.LauncherUI': log('首页'); if(jsclick('text',"我",true,2)){ if(jsclick("text","设置",false,2)){ var d = textMatches(/微信号.*/).findOne(1000) if(d){ var d = d.parent().parent() var keyArr = { '0':'微信昵称', '1':'微信号', } if(d){ var d2 = d.children() log(d2.length) for (var i=0;i<2;i++){ d2_ = d2[i].children() log(d2_[0].text()) info[keyArr[i]] = d2_[0].text(); } log(info); app_info(appinfo.name,info); return true } } } }else{ back(); } break; case "com.tencent.mm.plugin.account.ui.WelcomeActivity": log('未注册'); app_info(appinfo.name,{"状态":'未注册'}); break; case "com.tencent.mm.plugin.account.ui.LoginPasswordUI": log('封号'); app_info(appinfo.name,{"状态":'封号'}); return true default: back(); } } Tips(); sleep(500); } } function mesg(){ var redmsg = text('微信').depth(12).findOne(500); if (redmsg){ var redmsg = redmsg.parent().children() var rredmsg = redmsg[0].children() if ( rredmsg[1] ){ log( '未读消息->',rredmsg[1].text() ,'条') return true }else{ log('暂无未读消息') } } } // 正式开始编代码 log([currentPackage(),currentActivity(),device.width,device.height]); var width = 720; var height = 1440; var appinfo = {} appinfo.name = "微信"; appinfo.bid = "com.tencent.mm"; info={} // var all_Info = textMatches(/.*/).find(); // for (var i = 0;i<all_Info.length;i++){ // var d = all_Info[i]; // log(i,d.id(),d.text(),d.depth()) // } // var redmsg = text('微信').findOne(500); // if (redmsg){ // var redmsg = redmsg.parent().children() // var rredmsg = redmsg[0].children() // if ( rredmsg[1] ){ // log( '未读消息->',rredmsg[1].text() ,'条') // }else{ // log('暂无未读消息') // } // } // var idlist = {} // var list = className('android.widget.LinearLayout').find(); // for (var i = 0;i<list.length;i++){ // var d = list[i]; // log(i,d.id(),d.text(),d.depth()) // if (idlist[d.id()]){ // idlist[d.id()]++ // }else{ // idlist[d.id()]=1; // } // } // readInfo() // main() // jsclick('text','微信',true,2)
import React, { useState, useEffect } from 'react'; import styled from 'styled-components'; import {axiosLoginAuth} from '../../utils/axiosLoginAuth'; import { ButtonBackground, ButtonFont, ButtonHover, ButtonHoverFont, MainFontFamily, LoginColor } from '../Styling'; import AddActivity from '../ActivityComponents/AddActivity'; import ActivityBuilder from '../ActivityComponents/ActivityBuilder'; import { ActivitiesContext } from "../../contexts/ActivitiesContext"; import ActivityForm from "../ActivityComponents/ActivityForm"; /* * RETURNS A CARD OF EACH ACTIVITY */ /*========STYLING========*/ // Category Card Wrapper const CardWrapper = styled.div` display: flex; border-radius: 6px; margin: 20px; width: 350px; font-family: ${MainFontFamily}; }`; // Title and Rating Wrapper const TitleBox = styled.div` display:flex; width: 100%; align-items: center; padding: 10px; font-size: 1rem; color:purple; `; const CreateNew = styled.button ` font-size:1.25rem; border-radius:5px; background-image: ${ButtonBackground}; color: ${ButtonFont}; :hover{ background-image: ${ButtonHover}; color: ${ButtonHoverFont}; } ` const PopDownDiv = styled.div ` padding: 2% width:40%; margin-left:28%; margin-top:2%; background:${LoginColor}; border-radius:5px; color:ghostwhite; ` /*========DEFAULT FUNCTION========*/ const Work = props => { const [activities, setActivities] = useState([]); const getData = () => { axiosLoginAuth() .get("https://build-your-life.herokuapp.com/api/activities") .then(res => { setActivities(res.data.filter((i)=> { if (i.categories_id === 3) { console.log("filteredstuff", i) return (i) } })) }) .catch(err => console.log(err)) } useEffect(() => { axiosLoginAuth() .get("https://build-your-life.herokuapp.com/api/activities") .then(res => { setActivities(res.data) }) .catch(err => console.log(err)) }, []) const addNewActivity = activity => { const newActivity = { activity_name: activity.activity, reflections: activity.description, starRating: activity.rating, categories_id: activity.categories_id }; axiosLoginAuth() .post("https://build-your-life.herokuapp.com/api/activities", newActivity) .then(res => { console.log("add RES", res) setActivities([...activities, res]); props.getData() }) .catch(err => console.log(err)) }; const [showText, setShowText] = useState(false); return ( <ActivitiesContext.Provider value={{activities, getData }}> <div> <h2>Work and Career</h2> <CreateNew onClick={() => setShowText(!showText)}>Create New</CreateNew> {showText && <PopDownDiv> <ActivityForm addNewActivity={addNewActivity}/> </PopDownDiv>} <CardWrapper> <TitleBox> <ActivityBuilder activities={activities}/> <div> <AddActivity /> </div> </TitleBox> </CardWrapper> </div> </ActivitiesContext.Provider> ) } export default Work;
var express = require('express'); var router = express.Router(); var cmd = require('node-cmd'); var path = require('path'); router.post('/', function(req, res) { console.log('POST /optimize'); console.log(req.body); var elasticube = req.body.elasticube; cmd.get( `psm ecube info name="${elasticube}" serverAddress=localhost`, (err, data, stderr) => { // var ecubePath = data.split("DBFarmDirectory: ")[1].split("LastFullBuildTime: ")[0]; var ecubePath = path.join(path.normalize(data.split("DBFarmDirectory: ")[1].split("LastFullBuildTime: ")[0]), "ElastiCube.ecube").replace("\r\n", ""); console.log(ecubePath); cmd.get( `psm ecube convert name="${ecubePath}"`, (err, data, stderr) => { if(err) throw err; if(stderr) throw stderr; console.log(data); } ) } ) }) module.exports = router;
const upload = require('../middlewares/upload'); const Movie = require('../models/movie'); const Grid = require('gridfs-stream'); const mongoose = require('mongoose'); const express = require('express'); const conn = mongoose.connection; let gfs; const uploadFile = async (req, res) => { try { gfs = Grid(conn.db, mongoose.mongo); gfs.collection('photos'); //collection name await gfs.files.deleteMany({ filename: req.params.id }); await upload(req, res); console.log(req.file); if (req.file == undefined) { return res.send(`You must select a file.`); } const movieId = req.params.id; const movie = await Movie.findById(movieId); //console.log(movie); if (!movie) return res.sendStatus(404); movie.image = req.params.id; //console.log('hola ', movie.image); await movie.save(); return res.sendStatus(200) } catch (error) { console.log(error); return res.send(`Error when trying upload image: ${error}`); } }; module.exports = { uploadFile: uploadFile, };
// Run the script when the screen loads window.onload = function() { // Create our paper var paper = new Raphael("canvas", "100%", "100%"); // Create our boxes options // These are Raphael Path options var options = { "stroke-dasharray": "100 20 0 20", "stroke": "#F00" }; var callback = function(set) { if (set.length == 0) { console.log("No nodes found."); } else { for(var i = 0; i < set.items.length; i++) { console.log("set["+i+"] - " + set.items[i].type); } } }; // Initialise the Plugin with a callback function paper.dragSelect(callback, options) .setColor("#00F"); // Create a node on screen paper.rect(10, 10, 100, 100); }
module.exports = (sequelize, DataTypes) => { const RefHorizontalCollectionMethod = sequelize.define( 'RefHorizontalCollectionMethod', { name: DataTypes.STRING, description: DataTypes.TEXT, }, { timestamps: false, } ); return RefHorizontalCollectionMethod; };
'use strict'; module.exports = (sequelize, DataTypes) => { const Review = sequelize.define('Review', { comment: DataTypes.TEXT, score: DataTypes.INTEGER }, {}); Review.associate = function(models) { // associations can be defined here Review.belongsTo(models.Shop,{ foreignKey: 'shopId', as: 'shop', }); Review.belongsTo(models.User,{ foreignKey: 'userId', as: 'user', }); }; return Review; };
UI = function(id) { // UserInterface。具象化としてButton,ToggleButton,SelectButton, Switch,RollSwitch,CircleSwitch, Slider等がある this._id = id; } Object.defineProperties(UI.prototype, { Id: { get: function() { return this._id; } }, Html: { get: function() { return document.getElementById(`${id}`); } }, Storage: { get: function() { return localStorage.getItem(`${id}`); } set: function(v) { return localStorage.getItem(`${id}`, v); } } // , // Db: { // IndexedDB // get: function() { return localStorage.getItem(`${id}`); } // set: function(v) { return localStorage.getItem(`${id}`, v); } // } } LineOfChars.prototype.load = function() {} LineOfChars.prototype.save = function() {} LineOfChars.prototype.addEvent = function() {} LineOfChars.prototype.removeEvent = function() {}
""" start_time, end_time, is_only_by_appointment, is_or_by_appointment, is_subject_to_change, start_date, end_date, hours_open_id, id """ import pandas as pd import config import datetime import hashlib class ScheduleTxt(object): """ """ def __init__(self, base_df): self.base_df = base_df #print self.base_df # def mountain_time(self, county): # df = self.build_schedule_txt() # if df['county'] in mountain_tz: # df['start_date'] = df['start_date'].str.replace('\n', '') def get_start_time(self, index, office_name, start_time, start_date): """#""" if start_time: if len(start_time.replace(' - ', '-')) == 13: st = '0' + start_time.replace(' - ', '-') print st return st else: print start_time return start_time.replace(' - ', '-') else: raise ValueError('Missing start_time value at row ' + str(index) + '.') def get_end_time(self, index, end_time): """#""" if end_time: print end_time return end_time.replace(' - ', '-') else: raise ValueError('Missing end_time value at row ' + str(index) + '.') def is_only_by_appointment(self): return None def is_or_by_appointment(self): return None def is_subject_to_change(self): # create conditional when/if column is present return None def get_start_date(self, index, start_date): """#""" print index, start_date if len(start_date) == 5: start_date = start_date + '-16' start_date = datetime.datetime.strptime(start_date, '%m-%d-%y').strftime('%Y-%m-%d') print 'a', index, start_date return start_date #print index, start_date elif len(start_date) == 7: sd = tuple(start_date.split('/')) #print sd #date_tup = tuple(sd.split('-')) #print date_tup m = sd[0] d= sd[1] if len(d) == 1: d = '0' + d else: d = d y= '16' start_date = m + '-' + d + '-' + y start_date = datetime.datetime.strptime(start_date, '%m-%d-%y').strftime('%Y-%m-%d') print 'b', index, start_date return start_date else: print index, start_date sd = tuple(start_date.split('/')) m = sd[0] d = sd[1] if len(d) == 1: d = '0' + d else: d = d return '2016-' + m + '-' + d def get_end_date(self, index, end_date): """#""" if len(end_date) == 5: end_date = end_date + '-16' end_date = datetime.datetime.strptime(end_date, '%m-%d-%y').strftime('%Y-%m-%d') #print 'a', index, end_date return end_date #print index, start_date elif len(end_date) == 4: #print end_date sd = tuple(end_date.split('/')) m = str(sd[0]) d = str(sd[1]) if len(d) == 1: d = '0' + d else: d = d #y = '16' #e = str(m + '-' + d + '-' + y) #print type(e) return '2016-' + m + '-' + d elif len(end_date) == 7: sd = tuple(end_date.split('/')) #print sd #date_tup = tuple(sd.split('-')) #print date_tup m = sd[0] d= sd[1] if len(d) == 1: d = '0' + d else: d = d y= '16' end_date = m + '-' + d + '-' + y end_date = datetime.datetime.strptime(end_date, '%m-%d-%y').strftime('%Y-%m-%d') #print 'b', index, end_date return end_date elif len(end_date) == 8: print index, end_date end_date = datetime.datetime.strptime(end_date, '%m/%d/%y').strftime('%Y-%m-%d') return end_date elif len(end_date) == 9: sd = tuple(end_date.split('/')) m = sd[0] d = sd[1] if len(d) == 1: d = '0' + d else: d = d y = sd[2] return '2016-' + m + '-' + d elif len(end_date) == 10: return datetime.datetime.strptime(end_date, '%m-%d-%Y').strftime('%Y-%m-%d') else: end = datetime.datetime.strptime(end_date, '%m-%d-%y').strftime('%Y-%m-%d') return end #print index, start_date # end = end_date #sd = tuple(start_date.split('-')) #d = '2016-' + sd[0] + '-' + sd[1] #print d #return d # try: # end = datetime.datetime.strptime(end, '%m-%d-%y').strftime('%Y-%m-%d') # return end # print 'c', index, sd # return sd # except: # sd = datetime.datetime.strptime(start_date, '%m-%d-%y').strftime('%Y-%m-%d') #print 'd', index, sd # pass #mdy = self.format_date(start_date) #end_date = datetime.datetime.strptime(end_date, '%m-%d-%y').strftime('%Y-%m-%d') #print end_date + '-' + utc_offset #return end_date def get_hours_open_id(self, hours_open_id): """#""" print hours_open_id return hours_open_id def create_schedule_id(self, index): """Create id""" # concatenate county name, or part of it (first 3/4 letters) with index # add leading zeros to maintain consistent id length if index <= 9: index_str = '000' + str(index) elif index in range(10, 100): index_str = '00' + str(index) elif index in range(100, 1000): index_str = '0' + str(index) else: index_str = str(index) return 'sch' + str(index_str) def build_schedule_txt(self): """ New columns that match the 'schedule.txt' template are inserted into the DataFrame, apply() is used to run methods that generate the values for each row of the new columns. """ self.base_df['start_time'] = self.base_df.apply( lambda row: self.get_start_time(row['index'], row['county'], row['start_time'], row['start_date']), axis=1) self.base_df['end_time'] = self.base_df.apply( lambda row: self.get_end_time(row['county'], row['end_time']), axis=1) self.base_df['is_only_by_appointment'] = self.base_df.apply( lambda row: self.is_only_by_appointment(), axis=1) self.base_df['is_or_by_appointment'] = self.base_df.apply( lambda row: self.is_or_by_appointment(), axis=1) self.base_df['is_subject_to_change'] = self.base_df.apply( lambda row: self.is_subject_to_change(), axis=1) self.base_df['start_date'] = self.base_df.apply( lambda row: self.get_start_date(row['index'], row['start_date']), axis=1) self.base_df['end_date'] = self.base_df.apply( lambda row: self.get_end_date(row['index'], row['end_date']), axis=1) self.base_df['hours_open_id'] = self.base_df.apply( lambda row: self.get_hours_open_id(row['hours_open_id']), axis=1) self.base_df['id'] = self.base_df.apply( lambda row: self.create_schedule_id(row['index']), axis=1) return self.base_df def add_utc_offset(self): base = self.build_schedule_txt pass def write_schedule_txt(self): """Drops base DataFrame columns then writes final dataframe to text or csv file""" sch = self.build_schedule_txt() #print sch # Drop base_df columns. sch.drop(['index', 'county', 'ocd_division', 'homepage_url', 'phone', 'email', 'street', 'city', 'state', 'zip_code', 'address_line', 'directions', 'hours', 'photo_uri', 'is_drop_box', 'is_early_voting', 'latitude', 'longitude', 'latlng_source'], inplace=True, axis=1) # reorder columns cols =['start_time', 'end_time', 'is_only_by_appointment', 'is_or_by_appointment', 'is_subject_to_change', 'start_date', 'end_date', 'hours_open_id', 'id'] sch = sch.reindex(columns=cols) print sch sch.to_csv(config.output + 'schedule.txt', index=False, encoding='utf-8') # send to txt file sch.to_csv(config.output + 'schedule.csv', index=False, encoding='utf-8') # send to csv file if __name__ == '__main__': intermediate_doc = 'intermediate_doc.csv' colnames = ['county', 'ocd_division', 'homepage_url', 'phone', 'email', 'loc_name', 'street', 'dirs', 'city', 'state', 'zip_code', 'start_time', 'end_time', 'start_date', 'end_date', 'notes', 'index', 'address_line', 'directions', 'hours', 'photo_uri', 'hours_open_id', 'is_drop_box', 'is_early_voting', 'latitude', 'longitude', 'latlng_source', 'id'] early_voting_df = pd.read_csv(config.output + intermediate_doc, names=colnames, encoding='ISO-8859-1', skiprows=1, delimiter=',') early_voting_df['index'] = early_voting_df.index +1 # offsets zero based index so it starts at 1 for ids #print early_voting_df #print early_voting_df.hours_open_id ScheduleTxt(early_voting_df).write_schedule_txt() #ScheduleTxt(early_voting_df).format_for_schedule()
var setData = require('@progress/kendo-angular-intl').setData; setData({ name: "tk", likelySubtags: { tk: "tk-Latn-TM" }, identity: { language: "tk" }, territory: "TM", calendar: { patterns: { d: "dd.MM.y", D: "d MMMM y EEEE", m: "d MMM", M: "d MMMM", y: "MMM y", Y: "MMMM y", F: "d MMMM y EEEE HH:mm:ss", g: "dd.MM.y HH:mm", G: "dd.MM.y HH:mm:ss", t: "HH:mm", T: "HH:mm:ss", s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss", u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'" }, dateTimeFormats: { full: "{1} {0}", long: "{1} {0}", medium: "{1} {0}", short: "{1} {0}", availableFormats: { Bh: "h B", Bhm: "h:mm B", Bhms: "h:mm:ss B", d: "d", E: "ccc", EBhm: "E h:mm B", EBhms: "E h:mm:ss B", Ed: "d E", Ehm: "E h:mm a", EHm: "E HH:mm", Ehms: "E h:mm:ss a", EHms: "E HH:mm:ss", Gy: "G y", GyMMM: "G y MMM", GyMMMd: "G y MMM d", GyMMMEd: "G y MMM d, E", h: "h a", H: "HH", hm: "h:mm a", Hm: "HH:mm", hms: "h:mm:ss a", Hms: "HH:mm:ss", hmsv: "h:mm:ss a v", Hmsv: "HH:mm:ss v", hmv: "h:mm a v", Hmv: "HH:mm v", M: "L", Md: "dd.MM", MEd: "dd.MM E", MMM: "LLL", MMMd: "d MMM", MMMEd: "d MMM E", MMMMd: "d MMMM", MMMMEd: "d MMMM E", "MMMMW-count-one": "'hepde' W, MMMM", "MMMMW-count-other": "'hepde' W, MMMM", mmss: "mm:ss", ms: "mm:ss", y: "y", yM: "MM.y", yMd: "dd.MM.y", yMEd: "dd.MM.y E", yMMM: "MMM y", yMMMd: "d MMM y", yMMMEd: "d MMM y E", yMMMM: "MMMM y", yQQQ: "y QQQ", yQQQQ: "y QQQQ", "yw-count-one": "'hepde' w, Y", "yw-count-other": "'hepde' w, Y" } }, timeFormats: { full: "HH:mm:ss zzzz", long: "HH:mm:ss z", medium: "HH:mm:ss", short: "HH:mm" }, dateFormats: { full: "d MMMM y EEEE", long: "d MMMM y", medium: "d MMM y", short: "dd.MM.y" }, days: { format: { abbreviated: [ "ýek", "duş", "siş", "çar", "pen", "ann", "şen" ], narrow: [ "Ý", "D", "S", "Ç", "P", "A", "Ş" ], short: [ "ýb", "db", "sb", "çb", "pb", "an", "şb" ], wide: [ "ýekşenbe", "duşenbe", "sişenbe", "çarşenbe", "penşenbe", "anna", "şenbe" ] }, "stand-alone": { abbreviated: [ "Ýek", "Duş", "Siş", "Çar", "Pen", "Ann", "Şen" ], narrow: [ "Ý", "D", "S", "Ç", "P", "A", "Ş" ], short: [ "Ýb", "Db", "Sb", "Çb", "Pb", "An", "Şb" ], wide: [ "Ýekşenbe", "Duşenbe", "Sişenbe", "Çarşenbe", "Penşenbe", "Anna", "Şenbe" ] } }, months: { format: { abbreviated: [ "ýan", "few", "mart", "apr", "maý", "iýun", "iýul", "awg", "sen", "okt", "noý", "dek" ], narrow: [ "Ý", "F", "M", "A", "M", "I", "I", "A", "S", "O", "N", "D" ], wide: [ "ýanwar", "fewral", "mart", "aprel", "maý", "iýun", "iýul", "awgust", "sentýabr", "oktýabr", "noýabr", "dekabr" ] }, "stand-alone": { abbreviated: [ "Ýan", "Few", "Mar", "Apr", "Maý", "Iýun", "Iýul", "Awg", "Sen", "Okt", "Noý", "Dek" ], narrow: [ "Ý", "F", "M", "A", "M", "I", "I", "A", "S", "O", "N", "D" ], wide: [ "Ýanwar", "Fewral", "Mart", "Aprel", "Maý", "Iýun", "Iýul", "Awgust", "Sentýabr", "Oktýabr", "Noýabr", "Dekabr" ] } }, quarters: { format: { abbreviated: [ "1Ç", "2Ç", "3Ç", "4Ç" ], narrow: [ "1", "2", "3", "4" ], wide: [ "1-nji çärýek", "2-nji çärýek", "3-nji çärýek", "4-nji çärýek" ] }, "stand-alone": { abbreviated: [ "1Ç", "2Ç", "3Ç", "4Ç" ], narrow: [ "1", "2", "3", "4" ], wide: [ "1-nji çärýek", "2-nji çärýek", "3-nji çärýek", "4-nji çärýek" ] } }, dayPeriods: { format: { abbreviated: { am: "go.öň", pm: "go.soň" }, narrow: { am: "öň", pm: "soň" }, wide: { am: "günortadan öň", pm: "günortadan soň" } }, "stand-alone": { abbreviated: { am: "g.öň", pm: "g.soň" }, narrow: { am: "öň", pm: "soň" }, wide: { am: "günortadan öň", pm: "günortadan soň" } } }, eras: { format: { wide: { "0": "Isadan öň", "1": "Isadan soň", "0-alt-variant": "Biziň eramyzdan öň", "1-alt-variant": "Biziň eramyz" }, abbreviated: { "0": "B.e.öň", "1": "B.e.", "0-alt-variant": "b.e.öň", "1-alt-variant": "b.e." }, narrow: { "0": "B.e.öň", "1": "B.e.", "0-alt-variant": "b.e.öň", "1-alt-variant": "b.e." } } }, gmtFormat: "GMT{0}", gmtZeroFormat: "GMT", dateFields: { era: { wide: "era", short: "era", narrow: "era" }, year: { wide: "ýyl", short: "ý.", narrow: "ý." }, quarter: { wide: "çärýek", short: "çär.", narrow: "çär." }, month: { wide: "aý", short: "aý", narrow: "aý" }, week: { wide: "hepde", short: "hep.", narrow: "hep." }, weekOfMonth: { wide: "aýyň hepdesi", short: "hep./aý", narrow: "hep./aý" }, day: { wide: "gün", short: "gün", narrow: "gün" }, dayOfYear: { wide: "ýylyň güni", short: "ý. güni", narrow: "ý. güni" }, weekday: { wide: "hepdäniň güni", short: "hep. güni", narrow: "hep. güni" }, weekdayOfMonth: { wide: "aýda hepdäň güni", short: "aýda hep. güni", narrow: "aýda hep. güni" }, dayperiod: { short: "GÖ/GS", wide: "günortadan öň/günortadan soň", narrow: "GÖ/GS" }, hour: { wide: "sagat", short: "sag.", narrow: "sag." }, minute: { wide: "minut", short: "min.", narrow: "min." }, second: { wide: "sekunt", short: "sek.", narrow: "sek." }, zone: { wide: "sagat guşaklygy", short: "guşaklyk", narrow: "guşaklyk" } } }, firstDay: 1 });
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.sq'); goog.require('Blockly.Msg'); Blockly.Msg.ABOUT = "about"; // untranslated Blockly.Msg.ACCELERATION_TOOLTIP = "Get the acceleration value in milli-gravities."; // untranslated Blockly.Msg.ACCELEROMETER_ROTATION_TOOLTIP = "Get the tilt or rotations in degrees."; // untranslated Blockly.Msg.ACCELEROMETER_TOOLTIP = "Represents an accelerometer."; // untranslated Blockly.Msg.ACTION_ANALOGIN = "actuator analog"; // untranslated Blockly.Msg.ACTION_BUZZER = "buzzer"; // untranslated Blockly.Msg.ACTION_BUZZER_ARDUINO = "buzzer HYT120"; // untranslated Blockly.Msg.ACTION_CALLIBOT = "Calli:bot"; // untranslated Blockly.Msg.ACTION_DIGITALIN = "actuator digital"; // untranslated Blockly.Msg.ACTION_EVAL = "eval"; // untranslated Blockly.Msg.ACTION_EVAL_AS = "as"; // untranslated Blockly.Msg.ACTION_IN = "actuator"; // untranslated Blockly.Msg.ACTION_INFRARED = "infrared emitter"; // untranslated Blockly.Msg.ACTION_LCD = "LCD 1602"; // untranslated Blockly.Msg.ACTION_LCDI2C = "LCD 1602 I²C"; // untranslated Blockly.Msg.ACTION_LCDI2C_SENSEBOX = "OLED Display I²C"; // untranslated Blockly.Msg.ACTION_LED = "LED"; // untranslated Blockly.Msg.ACTION_MOTOR = "motor"; // untranslated Blockly.Msg.ACTION_PLAY = "play"; // untranslated Blockly.Msg.ACTION_PLOTTING = "plot"; // untranslated Blockly.Msg.ACTION_PLOT_CLEAR = "clear the plot"; // untranslated Blockly.Msg.ACTION_PLOT_CLEAR_TOOLTIP = "Removes all the data from the plot."; // untranslated Blockly.Msg.ACTION_PLOT_POINT = "plot a point on"; // untranslated Blockly.Msg.ACTION_PLOT_POINT_TOOLTIP = "Plots a point with specified value (Y axis) at the specified tickmark (X axis)."; // untranslated Blockly.Msg.ACTION_PLOT_TICKMARK = "at tickmark"; // untranslated Blockly.Msg.ACTION_RELAY = "relay SRD-05VDC-SL-C"; // untranslated Blockly.Msg.ACTION_RGBLED = "RGB LED"; // untranslated Blockly.Msg.ACTION_SDCARD = "SD card"; // untranslated Blockly.Msg.ACTION_SERIAL_PRINT = "show on Serial Monitor"; // untranslated Blockly.Msg.ACTION_SERIAL_PRINT_TOOLTIP = "Show data on the Serial Monitor. You can find the Serial Monitor in the USB Programm on top, under View."; // untranslated Blockly.Msg.ACTION_SERVO = "servo motor"; // untranslated Blockly.Msg.ACTION_SERVO_ARDUINO = "servo motor SG90"; // untranslated Blockly.Msg.ACTION_STEPMOTOR = "step motor"; // untranslated Blockly.Msg.ACTION_WIRELESS = "WiFi connection."; // untranslated Blockly.Msg.ACTIVITY_TOOLTIP = "Marker for an additional activity."; // untranslated Blockly.Msg.ACTOR_ANALOGIN_TOOLTIP = "Writes an analog value (PWM wave) to a pin. Only values between 0 and 255 should be used"; // untranslated Blockly.Msg.ACTOR_DIGITALIN_TOOLTIP = "Writes a HIGH or a LOW value to a digital pin. Only the values HIGH »1« and LOW »0« should be used."; // untranslated Blockly.Msg.ACTOR_TOOLTIP = "Represents any actor."; // untranslated Blockly.Msg.ADDRESS = "address"; // untranslated Blockly.Msg.ADD_COMMENT = "Vendos nje Koment"; Blockly.Msg.ALL_RGBLED = "RGB LED all"; // untranslated Blockly.Msg.ANALOG = "analog"; // untranslated Blockly.Msg.ANALOGIN_TOOLTIP = "Represents any actuator connected to an analog pin."; // untranslated Blockly.Msg.ANALOGOUT_TOOLTIP = "Represents any sensor connected to an analog pin."; // untranslated Blockly.Msg.AND = "and"; // untranslated Blockly.Msg.ARDUBRICK_TOOLTIP = "Represents the Bot'n Roll board with connected actors and sensors. There are also inbuilt actors and sensors available, e.g. pushbuttons, display ..."; // untranslated Blockly.Msg.AUTH = "Please authorize this app to enable your work to be saved and to allow it to be shared by you."; // untranslated Blockly.Msg.BATTERY_GETSAMPLE_TOOLTIP = "Gets the current voltage from the battery."; // untranslated Blockly.Msg.BELOW = "below"; // untranslated Blockly.Msg.BLOCK_NOT_EXECUTED = "The exection of this block will have no effect!"; // untranslated Blockly.Msg.BLOCK_NOT_SUPPORTED = "This robot does not support this block!"; // untranslated Blockly.Msg.BLOCK_USED_INCORRECTLY = "Unfortunately, this block cannot be used in this way."; // untranslated Blockly.Msg.BOB3_READNUMBER_TOOLTIP = "Returns the previously stored number."; // untranslated Blockly.Msg.BOB3_RECALL_NUMBER = "recall number"; // untranslated Blockly.Msg.BOB3_REMEMBER_NUMBER = "remember number"; // untranslated Blockly.Msg.BOB3_SAVENUMBER_TOOLTIP = "The number to store should be an integer in the range of 0 to 255"; // untranslated Blockly.Msg.BOTH = "both"; // untranslated Blockly.Msg.BOTH_LED = "LED both"; // untranslated Blockly.Msg.BOX_ID = "Device ID"; // untranslated Blockly.Msg.BRICKLIGHT = "brick light"; // untranslated Blockly.Msg.BRICKLIGHT_BLUE = "blue"; // untranslated Blockly.Msg.BRICKLIGHT_COLOR = "colour"; // untranslated Blockly.Msg.BRICKLIGHT_DOUBLE_FLASH = "double flashing"; // untranslated Blockly.Msg.BRICKLIGHT_FLASH = "flashing"; // untranslated Blockly.Msg.BRICKLIGHT_GREEN = "green"; // untranslated Blockly.Msg.BRICKLIGHT_OFF_TOOLTIP = "Turns bricklight off."; // untranslated Blockly.Msg.BRICKLIGHT_ON = "on"; // untranslated Blockly.Msg.BRICKLIGHT_ON_TOOLTIP = "Turns bricklight on."; // untranslated Blockly.Msg.BRICKLIGHT_ORANGE = "orange"; // untranslated Blockly.Msg.BRICKLIGHT_RED = "red"; // untranslated Blockly.Msg.BRICKLIGHT_RESET_TOOLTIP = "Resets bricklight. Sets the default bricklight: green and blinking."; // untranslated Blockly.Msg.BRICKNAME_MATATABOT = "MatataBot"; // untranslated Blockly.Msg.BRICKNAME_WEDO = "WeDo"; // untranslated Blockly.Msg.BRICK_IPADDRESS = "ip address"; // untranslated Blockly.Msg.BRICK_PASSWORD = "password"; // untranslated Blockly.Msg.BRICK_PHENOMENON = "Phenomenon"; // untranslated Blockly.Msg.BRICK_PORT = "port"; // untranslated Blockly.Msg.BRICK_TRACK_WIDTH = "track width"; // untranslated Blockly.Msg.BRICK_USERNAME = "user name"; // untranslated Blockly.Msg.BRICK_WHEEL_DIAMETER = "wheel diameter"; // untranslated Blockly.Msg.BRUSH_OFF = "turn brush Off"; // untranslated Blockly.Msg.BRUSH_OFF_TOOLTIP = "Turns the brush off."; // untranslated Blockly.Msg.BRUSH_ON = "turn brush on (RPM)"; // untranslated Blockly.Msg.BRUSH_ON_TOOLTIP = "Turns on the brush with RPM of the motor (0<=RPM<=10000)"; // untranslated Blockly.Msg.BUTTON_DO_SHARE = "Share"; // untranslated Blockly.Msg.BUTTON_DO_UPLOAD_GALLERY = "Upload »$« to the gallery"; // untranslated Blockly.Msg.BUTTON_EMPTY_LIST = "Empty list"; // untranslated Blockly.Msg.BUZZER_TOOLTIP = "Represents a buzzer."; // untranslated Blockly.Msg.CALLIBOT_TOOLTIP = "Represents the Calli:bot extension board."; // untranslated Blockly.Msg.CALLIOPEBRICK_TOOLTIP = "Represents Calliope, a pocket-sized codeable computer. There are also inbuilt actors and sensors available, e.g. buttons, display ..."; // untranslated Blockly.Msg.CB_ALL = "Calli:bot all"; // untranslated Blockly.Msg.CB_BOTH = "Calli:bot both"; // untranslated Blockly.Msg.CB_LEFT = "Calli:bot left"; // untranslated Blockly.Msg.CB_RIGHT = "Calli:bot right"; // untranslated Blockly.Msg.CENTER = "center"; // untranslated Blockly.Msg.CHANGE_VALUE_TITLE = "Ndrysho Vlerat:"; Blockly.Msg.CHAT = "Chat with your collaborator by typing in this box!"; // untranslated Blockly.Msg.CLEAN_UP = "Clean up Blocks"; // untranslated Blockly.Msg.CLEAR = "clear"; // untranslated Blockly.Msg.COLLAPSE_ALL = "Mbyll blloqet"; Blockly.Msg.COLLAPSE_BLOCK = "Mbyll bllokun"; Blockly.Msg.COLON = "colon"; // untranslated Blockly.Msg.COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = "Gets the current ambient light reading from the sensor."; // untranslated Blockly.Msg.COLOUR_BLEND_COLOUR1 = "Ngjyra 1"; Blockly.Msg.COLOUR_BLEND_COLOUR2 = "Ngjyra 2"; Blockly.Msg.COLOUR_BLEND_HELPURL = "http://meyerweb.com/eric/tools/color-blend/"; Blockly.Msg.COLOUR_BLEND_RATIO = "Perpjesetim"; Blockly.Msg.COLOUR_BLEND_TITLE = "Përzierje"; Blockly.Msg.COLOUR_BLEND_TOOLTIP = "Perzien dy ngjyra së bashku me një raport të dhënë (0.0 - 1.0)."; Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP = "Gets the current colour reading from the sensor."; // untranslated Blockly.Msg.COLOUR_GETSAMPLE_TOOLTIP = "Gets the current reading from the colour sensor."; // untranslated Blockly.Msg.COLOUR_LIGHT_GETSAMPLE_TOOLTIP = "Gets the current brightness reading from the sensor."; // untranslated Blockly.Msg.COLOUR_PICKER_HELPURL = "http://en.wikipedia.org/wiki/Color"; Blockly.Msg.COLOUR_PICKER_TOOLTIP = "Zgjidh nje ngjyre nga nje game ngjyrash."; Blockly.Msg.COLOUR_RANDOM_HELPURL = "http://randomcolour.com"; // untranslated Blockly.Msg.COLOUR_RANDOM_TITLE = "ngjyre e rastesishme"; Blockly.Msg.COLOUR_RANDOM_TOOLTIP = "Zgjidhni një ngjyrë në mënyrë të rastësishme."; Blockly.Msg.COLOUR_RGB_BLUE = "blu"; Blockly.Msg.COLOUR_RGB_GETSAMPLE_TOOLTIP = "Gets the current colour reading from the colour sensor. Values are in the range 0 to 255."; // untranslated Blockly.Msg.COLOUR_RGB_GREEN = "jeshile"; Blockly.Msg.COLOUR_RGB_HELPURL = "http://www.december.com/html/spec/colorper.html"; Blockly.Msg.COLOUR_RGB_RED = "e kuqe"; Blockly.Msg.COLOUR_RGB_TITLE = "ngjyre me"; Blockly.Msg.COLOUR_RGB_TOOLTIP = "Krijo një ngjyrë me shumën e specifikuar te te kuqes, te gjelbëres, dhe bluse. Te gjitha vlerat duhet te jene mes 0 dhe 100."; Blockly.Msg.COLOUR_RGB_WHITE = "white"; // untranslated Blockly.Msg.COLOUR_TOOLTIP = "Represents a colour sensor."; // untranslated Blockly.Msg.COMPASS_CALIBRATE_TOOLTIP = "Calibrates the compass. Turn the compass sensor VERY slowly for two times (about 40 seconds)."; // untranslated Blockly.Msg.COMPASS_GETSAMPLE_TOOLTIP = "Gets the current reading from the compass sensor."; // untranslated Blockly.Msg.COMPASS_TOOLTIP = "Represents a compass sensor."; // untranslated Blockly.Msg.COMPASS_TOOLTIP_EV3 = "Represents a HiTechnic NXT compass sensor."; // untranslated Blockly.Msg.CONFIGURATION_ERROR_ACTOR_MISSING = "This actuator is not configured. Please add the corresponding block in the configuration tab!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_MOTORS_ROTATION_DIRECTION = "The direction of rotation of the left and right motor is different!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_MOTOR_LEFT_MISSING = "Left motor missing in the configuration!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_MOTOR_LEFT_UNREGULATED = "Left motor is not regulated!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_MOTOR_MISSING = "Motor is missing on the given port!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_MOTOR_RIGHT_MISSING = "Right motor missing in the configuration!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_MOTOR_RIGHT_UNREGULATED = "Right motor is not regulated!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_MULTIPLE_LEFT_MOTORS = "You have multiple left motors assigned to your configuration!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_MULTIPLE_RIGHT_MOTORS = "You have multiple right motors assigned to your configuration!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_NO_BUILTIN_RGBLED = "This board does not have a built in RGB LED!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_OTHER_NOT_SUPPORTED = "Other power consumer does not support this type of block!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_OVERLAPPING_PORTS = "Another component is already using the same port!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_SENSOR_MISSING = "This sensor is not configured. Please add the corresponding block in the configuration tab!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_SENSOR_WRONG = "Connected wrong sensor to the given port!"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_WLAN_CREDENTIALS_MISSING = "Missing WLAN credentials, please enter them in robot -> WLAN credentials ... !"; // untranslated Blockly.Msg.CONFIGURATION_ERROR_WLAN_MISSING = "WiFi is not configured. Please add the corresponding block in the configuration tab!"; // untranslated Blockly.Msg.CONFIGURATION_NO_PHENOMENON = "no phenomenon"; // untranslated Blockly.Msg.CONFIGURATION_NO_PORT = "no port"; // untranslated Blockly.Msg.CONFIGURATION_PORT = "Port1"; // untranslated Blockly.Msg.CONFLIST_DELETE_ALL_TOOLTIP = "Click here to delete all selected programs."; // untranslated Blockly.Msg.CONFLIST_DELETE_TOOLTIP = "Click here to delete your robot configuration."; // untranslated Blockly.Msg.CONFLIST_LOAD_TOOLTIP = "Click here to load your robot configuration in the configuration environment."; // untranslated Blockly.Msg.CONNECTION_CHECK = "connection to robot %1 active?"; // untranslated Blockly.Msg.CONNECTION_CHECK_TOOLTIP = "Check if the connection to the robot is active."; // untranslated Blockly.Msg.CONNECTION_CONNECT = "connect to robot name"; // untranslated Blockly.Msg.CONNECTION_FROM_CONNECTION = "from connection"; // untranslated Blockly.Msg.CONNECTION_FROM_ROBOT = "from robot"; // untranslated Blockly.Msg.CONNECTION_MBED_RECEIVE_TOOLTIP = "Reads a message over one of the channels (0 - 255). The default channel is 0."; // untranslated Blockly.Msg.CONNECTION_MBED_SEND_TOOLTIP = "Sends a message to another system. You can specify a signal strength from 0 - 7, where 0 is very low and 7 is the strongests. The message is send over channel 0 unless you specify another one."; // untranslated Blockly.Msg.CONNECTION_OVER_CHANNEL = "over channel"; // untranslated Blockly.Msg.CONNECTION_POWER = "with strength"; // untranslated Blockly.Msg.CONNECTION_PROTOCOL_BLUETOOTH = "Bluetooth"; // untranslated Blockly.Msg.CONNECTION_RECEIVED_DATA = "receive message"; // untranslated Blockly.Msg.CONNECTION_RECEIVE_TOOLTIP = "Waits for a message from the robot which you declare in the connection."; // untranslated Blockly.Msg.CONNECTION_RECEIVE_TOOLTIP_BOB3 = "Reads a message via the IR receiver. Only numbers can be received."; // untranslated Blockly.Msg.CONNECTION_RECEIVE_TOOLTIP_MBOT = "Reads a message from the IR receiver. Only strings can be received."; // untranslated Blockly.Msg.CONNECTION_SEND_DATA = "send message"; // untranslated Blockly.Msg.CONNECTION_SEND_TOOLTIP = "Sends a message to another robot."; // untranslated Blockly.Msg.CONNECTION_SEND_TOOLTIP_BOB3 = "Sends a message of type number to another Bob3. Hold the Bob3's face to face!"; // untranslated Blockly.Msg.CONNECTION_SEND_TOOLTIP_MBOT = "Sends a message of type string to another mBot. Hold the mBots's face to face!"; // untranslated Blockly.Msg.CONNECTION_SET_CHANNEL = "set channel to %1"; // untranslated Blockly.Msg.CONNECTION_SET_CHANNEL_TOOLTIP = "Sets the channel for sending and receiving messages. Can be set from 0 to 255."; // untranslated Blockly.Msg.CONNECTION_START_TOOLTIP = "Tries to make a connection to another robot via Bluetooth."; // untranslated Blockly.Msg.CONNECTION_TOOLTIP = "A robot's connection"; // untranslated Blockly.Msg.CONNECTION_TO_CONNECTION = "to connection"; // untranslated Blockly.Msg.CONNECTION_TO_ROBOT = "to robot"; // untranslated Blockly.Msg.CONNECTION_WAIT_FOR_CONNECTION = "wait for connection"; // untranslated Blockly.Msg.CONNECTION_WAIT_TOOLTIP = "Waits for a connection via Bluetooth."; // untranslated Blockly.Msg.CONNECTOR = "hub"; // untranslated Blockly.Msg.CONTROLS_FLOW_STATEMENTS_HELPURL = "https://github.com/google/blockly/wiki/Loops#loop-termination-blocks"; // untranslated Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK = "dil nga nje faze perseritese"; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE = "vazhdo me elementin tjeter te nje faze perseritese"; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK = "Ndahu nga unaza."; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE = "Kapërce pjesën e mbetur të unazës, dhe vazhdo me ripërsëritjen tjetër."; Blockly.Msg.CONTROLS_FLOW_STATEMENTS_WARNING = "Paralajmërim: Ky bllok mund të përdoret vetëm brenda unazës."; Blockly.Msg.CONTROLS_FOREACH_HELPURL = "https://github.com/google/blockly/wiki/Loops#for-each"; // untranslated Blockly.Msg.CONTROLS_FOREACH_TITLE = "per cdo produkt %1 ne liste %2"; Blockly.Msg.CONTROLS_FOREACH_TOOLTIP = "Per cdo produkt ne nje \"liste\" \"vendos\" ndryshoren '%1' produktit, dhe pastaj bej disa deklarata."; Blockly.Msg.CONTROLS_FOR_HELPURL = "https://github.com/google/blockly/wiki/Loops#count-with"; // untranslated Blockly.Msg.CONTROLS_FOR_TITLE = "numero me %1 nga %2 ne %3 me nga %4"; Blockly.Msg.CONTROLS_FOR_TOOLTIP = "Bëje identifikuesin \"%1\" që ta ketë vlerat prej numrit të fillimit deri tek numri i fundit, duke numëruar nga intervali i specifikuar, dhe ti bëj blloqet e specifikuara."; Blockly.Msg.CONTROLS_IF_ELSEIF_TOOLTIP = "\"Vendos\" \"kushtein\"tek \"pjesa\" \"if\""; Blockly.Msg.CONTROLS_IF_ELSE_TOOLTIP = "Shto një përfundues, që i mbërrin të gjitha kushtet në bllokun nëse."; Blockly.Msg.CONTROLS_IF_HELPURL = "https://github.com/google/blockly/wiki/IfElse"; // untranslated Blockly.Msg.CONTROLS_IF_IF_TOOLTIP = "Shto, fshij, ose rirregullo sektoret për ta rikonfiguruar këte bllok nëse."; Blockly.Msg.CONTROLS_IF_MSG_ELSE = "përndryshe"; Blockly.Msg.CONTROLS_IF_MSG_ELSEIF = "përndryshe nëse"; Blockly.Msg.CONTROLS_IF_MSG_IF = "nëse"; Blockly.Msg.CONTROLS_IF_TOOLTIP_1 = "Nëse një vlerë është e saktë, atëherë ekzekuto disa fjali."; Blockly.Msg.CONTROLS_IF_TOOLTIP_2 = "Nëse një vlerë është e saktë, atëherë ekzekuto bllokun e parë të fjalive. Përndryshe, ekzekuto bllokun e dytë të fjalive."; Blockly.Msg.CONTROLS_IF_TOOLTIP_3 = "Nëse vlera e parë është e saktë, atëherë ekzekuto bllokun e parë të fjalive. Përndryshe, nëse vlera e dytë është e saktë, ekzekuto bllokun e dytë të fjalive."; Blockly.Msg.CONTROLS_IF_TOOLTIP_4 = "Nëse vlera e parë është e saktë, atëherë ekzekuto bllokun e parë të fjalive. Përndryshe, nëse vlera e dytë është e saktë, ekzekuto bllokun e dytë të fjalive. Nëse asnjëra nga vlerat nuk është e saktë, ekzekuto bllokun e fundit të fjalive."; Blockly.Msg.CONTROLS_REPEAT_HELPURL = "http://en.wikipedia.org/wiki/For_loop"; Blockly.Msg.CONTROLS_REPEAT_INPUT_DO = "ekzekuto"; Blockly.Msg.CONTROLS_REPEAT_TITLE = "përsërit %1 herë"; Blockly.Msg.CONTROLS_REPEAT_TOOLTIP = "Ekzekuto disa fjali disa herë."; Blockly.Msg.CONTROLS_WHILEUNTIL_HELPURL = "https://github.com/google/blockly/wiki/Loops#repeat"; // untranslated Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_UNTIL = "përsërit derisa"; Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_WHILE = "përsërit përderisa"; Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL = "Përderisa një vlerë është e pasaktë, atëherë ekzekuto disa fjali."; Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE = "Përderisa një vlerë është e saktë, atëherë ekzekuto disa fjali."; Blockly.Msg.DATATABLE_ACTUALIZATION = "Modification date"; // untranslated Blockly.Msg.DATATABLE_CONFIGURATIONS = "configurations"; // untranslated Blockly.Msg.DATATABLE_CONFIGURATION_NAME = "Configuration name"; // untranslated Blockly.Msg.DATATABLE_CREATED_BY = "Creator"; // untranslated Blockly.Msg.DATATABLE_CREATED_ON = "Creation date"; // untranslated Blockly.Msg.DATATABLE_MEMBERS = "members"; // untranslated Blockly.Msg.DATATABLE_PROGRAMS = "programs"; // untranslated Blockly.Msg.DATATABLE_PROGRAM_NAME = "Program name"; // untranslated Blockly.Msg.DATATABLE_SHARED = "Shared"; // untranslated Blockly.Msg.DATATABLE_SHARED_PROGRAMS = "shared programs"; // untranslated Blockly.Msg.DATATABLE_SHARED_WITH = "Shared with"; // untranslated Blockly.Msg.DATATABLE_USERGROUP = "user group"; // untranslated Blockly.Msg.DATATABLE_USERGROUPS = "user groups"; // untranslated Blockly.Msg.DATATABLE_USERGROUP_NAME = "Name of the user group"; // untranslated Blockly.Msg.DATATABLE_USERGROUP_NAME_CREATE_HINT = "The name of the user group. Kepp in mind, that the members will have to type it in each time they log in."; // untranslated Blockly.Msg.DATATABLE_USERGROUP_OWNER = "Name of the owner of the user group"; // untranslated Blockly.Msg.DELETE_ALL_BLOCKS = "Delete all %1 blocks?"; // untranslated Blockly.Msg.DELETE_BLOCK = "Fshij bllokun"; Blockly.Msg.DELETE_USERGROUP_MEMBER_AFTER_LOGIN_WARNING = "A member you want to delete did already log in and might have create own programs. Are you sure that you want to delete the selected member(s)?"; // untranslated Blockly.Msg.DELETE_USERGROUP_MEMBER_WARNING = "Are you sure that you want to delete the selected member(s)?"; // untranslated Blockly.Msg.DELETE_X_BLOCKS = "Fshij %1 blloqe"; Blockly.Msg.DIGITAL = "digital"; // untranslated Blockly.Msg.DIGITALIN_TOOLTIP = "Represents any actuator connected to a digital pin."; // untranslated Blockly.Msg.DIGITALOUT_TOOLTIP = "Represents any sensor connected to a digital."; // untranslated Blockly.Msg.DISABLE_BLOCK = "Çaktivizo bllokun"; Blockly.Msg.DISPLAY_ANIMATION = "animation"; // untranslated Blockly.Msg.DISPLAY_CHARACTER = "character"; // untranslated Blockly.Msg.DISPLAY_CLEAR = "clear display"; // untranslated Blockly.Msg.DISPLAY_CLEAR_TOOLTIP = "Clears the display."; // untranslated Blockly.Msg.DISPLAY_COL = "in column"; // untranslated Blockly.Msg.DISPLAY_GET_BRIGHTNESS_TOOLTIP = "Returns the brightness for all leds of the display. 0 means all leds are turned off, 9 is the brightest value."; // untranslated Blockly.Msg.DISPLAY_GET_PIXEL_TOOLTIP = "Returns the brightness for this led. 0 means the led is turned off, 9 is the brightest value."; // untranslated Blockly.Msg.DISPLAY_IMAGE = "image"; // untranslated Blockly.Msg.DISPLAY_PICTURE = "picture"; // untranslated Blockly.Msg.DISPLAY_PICTURE_EYES_CLOSED = "eyes closed"; // untranslated Blockly.Msg.DISPLAY_PICTURE_EYES_OPEN = "eyes open"; // untranslated Blockly.Msg.DISPLAY_PICTURE_FLOWERS = "flowers"; // untranslated Blockly.Msg.DISPLAY_PICTURE_GLASSES = "glasses"; // untranslated Blockly.Msg.DISPLAY_PICTURE_TACHO = "speedo"; // untranslated Blockly.Msg.DISPLAY_PICTURE_TOOLTIP = "Displays a picture on the screen."; // untranslated Blockly.Msg.DISPLAY_PIXEL_BRIGHTNESS = "brightness"; // untranslated Blockly.Msg.DISPLAY_PIXEL_TITLE = "LED"; // untranslated Blockly.Msg.DISPLAY_ROW = "in row"; // untranslated Blockly.Msg.DISPLAY_SET_BRIGHTNESS_TOOLTIP = "Sets the brightness for all leds of the display. 0 means all leds are turned off, 9 is the brightest value."; // untranslated Blockly.Msg.DISPLAY_SET_PIXEL_TOOLTIP = "Sets the brightness for this led. 0 means the led is turned off, 9 is the brightest value. With x and y you can determine the position of the led you would like to change."; // untranslated Blockly.Msg.DISPLAY_SHOW = "show"; // untranslated Blockly.Msg.DISPLAY_TEXT = "text"; // untranslated Blockly.Msg.DISPLAY_TEXT_TOOLTIP = "Displays a text on the screen."; // untranslated Blockly.Msg.DROP_TOOLTIP = "Represents a drop sensor."; // untranslated Blockly.Msg.DUPLICATE_BLOCK = "Kopjo"; Blockly.Msg.ENABLE_BLOCK = "Aktivizo bllokun"; Blockly.Msg.ENCODER_GETSAMPLE_TOOLTIP = "Gets the current reading from the motor encoder."; // untranslated Blockly.Msg.ENCODER_RESET_TOOLTIP = "Resets the motor encoder."; // untranslated Blockly.Msg.ENCODER_TOOLTIP = "Represents an encoder."; // untranslated Blockly.Msg.ENVIRONMENTAL_TOOLTIP = "Represents an environmental sensor."; // untranslated Blockly.Msg.ENVIRONMENTAL_TOOLTIP_SENSEBOX = "Represents the BME680 environmental sensor."; // untranslated Blockly.Msg.ERROR_MISSING_PARAMETER = "An input value is missing!"; // untranslated Blockly.Msg.ERROR_MISSING_RETURN = "The function return value is missing!"; // untranslated Blockly.Msg.EV3BRICK_TOOLTIP = "Represents the EV3 brick with connected actors and sensors. There are also inbuilt actors and sensors available, e.g. buttons, display ..."; // untranslated Blockly.Msg.EXPAND_ALL = "Zmadho blloqet"; Blockly.Msg.EXPAND_BLOCK = "Zmadho bllokun"; Blockly.Msg.EXTERNAL_INPUTS = "Hyrjet e jashtme"; Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP = "Gets the current reading from the flame sensor."; // untranslated Blockly.Msg.FLAME_TOOLTIP = "Represents a flame sensor."; // untranslated Blockly.Msg.FLYOUT_VARIABLE_TEXT = "You need a variable? Please declare it first with a click on the + sign at the »start« block."; // untranslated Blockly.Msg.FOR = "for"; // untranslated Blockly.Msg.FOURDIGITDISPLAY = "4-Digit Display"; // untranslated Blockly.Msg.FOURDIGITDISPLAY_CLEAR_TOOLTIP = "Clears the 4-Digit Display."; // untranslated Blockly.Msg.FOURDIGITDISPLAY_SHOW_TOOLTIP = "Displays a number [0-9999] on the 4-Digit Display. Position [0-3] represents the starting position of the number"; // untranslated Blockly.Msg.FOURDIGITDISPLAY_TOOLTIP = "Represents a Grove 4-Digit Display by Seeed"; // untranslated Blockly.Msg.FROM_POSITION = "from position"; // untranslated Blockly.Msg.FSR_TOOLTIP = "Get the current reading from the force sensitive resistor under the feet of the robot."; // untranslated Blockly.Msg.GAIN = "gain"; // untranslated Blockly.Msg.GALLERY_BY = "by"; // untranslated Blockly.Msg.GALLERY_DATE = "created"; // untranslated Blockly.Msg.GALLERY_DISLIKE = "dislike"; // untranslated Blockly.Msg.GALLERY_LIKE = "like"; // untranslated Blockly.Msg.GALLERY_SHARED_ALREADY = "You have already uploaded this program to the gallery. If you want to change it, look for the copy from the gallery and modify it. You can also remove it from the gallery while deleting the copy from the gallery."; // untranslated Blockly.Msg.GEARED_MOTOR = "geared motor"; // untranslated Blockly.Msg.GET = "get"; // untranslated Blockly.Msg.GETSAMPLE_TOOLTIP = "Gets the current reading from chosen sensor."; // untranslated Blockly.Msg.GET_CODE_TOOLTIP = "Returns the value of the solderable code pad in the head piece. Values are in range 0-31."; // untranslated Blockly.Msg.GO_TO_GROUPS = "Go to groups"; // untranslated Blockly.Msg.GPS_TOOLTIP = "Represents a GPS receiver."; // untranslated Blockly.Msg.GROUP_CREATE_NAME_HINT = "Please keep in mind, that all members of a group have to enter the group name on each login. It should neither be complicated nor long."; // untranslated Blockly.Msg.GYRO_GETSAMPLE_TOOLTIP = "Gets the current reading from the gyro sensor."; // untranslated Blockly.Msg.GYRO_RESET_TOOLTIP = "Resets the gyro sensor."; // untranslated Blockly.Msg.GYRO_TOOLTIP = "Represents a gyro sensor."; // untranslated Blockly.Msg.GYRO_TOOLTIP_WEDO = "Represents a tilt sensor."; // untranslated Blockly.Msg.HELP = "Ndihmë"; Blockly.Msg.HINT_USERGROUP_MEMBER = "Enter the member id of your user here."; // untranslated Blockly.Msg.HINT_USERGROUP_OWNER = "Do <strong>not</strong> enter the real name of the owner of the user group here, but his <strong>username</strong> instead."; // untranslated Blockly.Msg.HINT_USER_ACCOUNT = "»IAmBotman« or »RobellaStracciatella«? Not everyone needs to know your real name. Think of a cool nickname that you can easily remember."; // untranslated Blockly.Msg.HINT_USER_AGE = "Are you under 16? Then please ask your parents to help you. They can specify their e-mail address to confirm your account."; // untranslated Blockly.Msg.HINT_USER_EMAIL = "This is voluntary! However, some functions of the lab are only available if you have verified your account by e-mail. You are younger than 16? Please ask your parents to help you out with one of their e-mail addresses. <br><a href='https://www.roberta-home.de/index.php?id=138&L=1' target='_blank'>Further information ...</a>"; // untranslated Blockly.Msg.HINT_USER_NAME = "Enter your real name here if you like. This is just for you, no one else will see it."; // untranslated Blockly.Msg.HINT_USER_PASSWORT = "12345 is no secure password. Rather think of a safe combination of numbers and letters that you will not forget."; // untranslated Blockly.Msg.HINT_USER_PASSWORT_CONFIRM = "Got it? Better make sure!"; // untranslated Blockly.Msg.HTCOLOUR_TOOLTIP = "Represents a HiTechnic NXT Color Sensor V2."; // untranslated Blockly.Msg.HUMIDITY_TOOLTIP = "Represents a humidity sensor."; // untranslated Blockly.Msg.ICON_BLOCKING_TOOLTIP = "Blocking block! This blocks needs some time to be executed, so other's have to wait until it gives back the control to the caller function."; // untranslated Blockly.Msg.ID = "ID"; // untranslated Blockly.Msg.IF_TOOLTIP = "Checks the condition in »if«. If the condition is true, executes the »do« action."; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP = "Returns the chosen image."; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_ANGRY = "angry"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_ASLEEP = "asleep"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_BUTTERFLY = "butterfly"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_CHESSBOARD = "chessboard"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_CONFUSED = "confused"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_COW = "cow"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_DIAMOND = "diamond"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_DIAMOND_SMALL = "small diamond"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_DUCK = "duck"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_FABULOUS = "fabulous"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_GHOST = "ghost"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_GIRAFFE = "giraffe"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_HEART = "heart"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_HEART_SMALL = "small heart"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_HOUSE = "house"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_MEH = "meh!"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_MUSIC_CROTCHET = "music crotchet"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_MUSIC_QUAVER = "music quaver"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_MUSIC_QUAVERS = "music quavers"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_NO = "no"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_PACMAN = "pacman"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_PITCHFORK = "pitchfork"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_RABBIT = "rabbit"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_ROLLERSKATE = "rollerskate"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_SAD = "sad"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_SILLY = "silly"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_SKULL = "skull"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_SMILE = "smile"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_SNAKE = "snake"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_SQUARE = "square"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_SQUARE_SMALL = "small square"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_STICKFIGURE = "stickfigure"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_SWORD = "sword"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_TARGET = "target"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_TORTOISE = "tortoise"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_TRIANGLE = "triangle"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_TRIANGLE_LEFT = "triangle left"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_TSHIRT = "T-shirt"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_UMBRELLA = "umbrella"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_XMAS = "xmas"; // untranslated Blockly.Msg.IMAGE_GET_TOOLTIP_YES = "yes"; // untranslated Blockly.Msg.IMAGE_INVERT = "invert"; // untranslated Blockly.Msg.IMAGE_INVERT_TOOLTIP = "Inverts the image. Each pixel with value 0 or none will be set to # or 9 and pixels with value # or 9 will be set to 0 or none."; // untranslated Blockly.Msg.IMAGE_SHIFT = "shift"; // untranslated Blockly.Msg.IMAGE_SHIFT_TOOLTIP = "Shifts the image in the given direction by the given number"; // untranslated Blockly.Msg.IMAGE_TOOLTIP = "Creates an image for the display. You can specify the brightness of each pixel from 0 to 9 or # where 0 means no light, 1 is a bit bright and 9 or # is the brightest value."; // untranslated Blockly.Msg.INFO_DOCUMENTATION_HINT = "Document your program here ..."; // untranslated Blockly.Msg.INFO_TAGS = "Tags"; // untranslated Blockly.Msg.INFRARED_DISTANCE_GETSAMPLE_TOOLTIP = "Gets the current relative distance from the infrared sensor. The values are between 1 and 75 cm."; // untranslated Blockly.Msg.INFRARED_GETSAMPLE_TOOLTIP = "Gets the current reading from the infrared sensor."; // untranslated Blockly.Msg.INFRARED_GETSAMPLE_TOOLTIP_MBOT = "Gets the current reading from the light sensor -- if a black line is detected (true/false)."; // untranslated Blockly.Msg.INFRARED_PRESENCE_GETSAMPLE_TOOLTIP = "Returns an array of measurements for the presence of a beacon."; // untranslated Blockly.Msg.INFRARED_TOOLTIP = "Represents an infrared sensor."; // untranslated Blockly.Msg.INLINE_INPUTS = "Hyrjet e brendshme"; Blockly.Msg.INPUT = "input"; // untranslated Blockly.Msg.INTERNAL_PORT = "internal"; // untranslated Blockly.Msg.IRSEEKER_TOOLTIP = "Represents a HiTechnic NXT IRSeeker V2 sensor."; // untranslated Blockly.Msg.I_TIME = "integration time"; // untranslated Blockly.Msg.JOYSTICK_GETSAMPLE_TOOLTIP = "Gets the current reading of one of the axises of the joystick"; // untranslated Blockly.Msg.KEY_ISPRESSED_TOOLTIP = "Is the selected button pressed?"; // untranslated Blockly.Msg.KEY_TOOLTIP = "Represents a button."; // untranslated Blockly.Msg.LANGUAGE = "language"; // untranslated Blockly.Msg.LANGUAGE_ARABIC = "Arabic"; // untranslated Blockly.Msg.LANGUAGE_BRAZILIAN = "Brazilian"; // untranslated Blockly.Msg.LANGUAGE_CHINESE = "Chinese"; // untranslated Blockly.Msg.LANGUAGE_CZECH = "Czech"; // untranslated Blockly.Msg.LANGUAGE_DANISH = "Danish"; // untranslated Blockly.Msg.LANGUAGE_DUTCH = "Dutch"; // untranslated Blockly.Msg.LANGUAGE_ENGLISH = "English"; // untranslated Blockly.Msg.LANGUAGE_FINNISH = "Finnish"; // untranslated Blockly.Msg.LANGUAGE_FRENCH = "French"; // untranslated Blockly.Msg.LANGUAGE_GERMAN = "German"; // untranslated Blockly.Msg.LANGUAGE_GREEK = "Greek"; // untranslated Blockly.Msg.LANGUAGE_ITALIAN = "Italian"; // untranslated Blockly.Msg.LANGUAGE_JAPANESE = "Japanese"; // untranslated Blockly.Msg.LANGUAGE_KOREAN = "Korean"; // untranslated Blockly.Msg.LANGUAGE_NORWEGIAN = "Norwegian"; // untranslated Blockly.Msg.LANGUAGE_POLISH = "Polish"; // untranslated Blockly.Msg.LANGUAGE_PORTUGUESE = "Portuguese"; // untranslated Blockly.Msg.LANGUAGE_RUSSIAN = "Russian"; // untranslated Blockly.Msg.LANGUAGE_SPANISH = "Spanish"; // untranslated Blockly.Msg.LANGUAGE_SWEDISH = "Swedish"; // untranslated Blockly.Msg.LANGUAGE_TURKISH = "Turkish"; // untranslated Blockly.Msg.LCDI2C_TOOLTIP = "Represents an LCD 1602 display with a soldered I²C module."; // untranslated Blockly.Msg.LCD_TOOLTIP = "Represents an LCD display."; // untranslated Blockly.Msg.LED = "LED"; // untranslated Blockly.Msg.LEDBAR = "LED Bar"; // untranslated Blockly.Msg.LEDBAR_SET_TOOLTIP = "Sets the specified LED [0-9] on the LED Bar to the given brightness [0-8]."; // untranslated Blockly.Msg.LEDBAR_TOOLTIP = "Represents a Grove LED Bar v2.0 by Seeed."; // untranslated Blockly.Msg.LED_MATRIX = "LED matrix"; // untranslated Blockly.Msg.LED_OFF = "turn LED off"; // untranslated Blockly.Msg.LED_OFF_TOOLTIP = "Turns the LED off."; // untranslated Blockly.Msg.LED_ON = "turn LED on"; // untranslated Blockly.Msg.LED_ON_TOOLTIP = "Turns the LED on and changes the color."; // untranslated Blockly.Msg.LED_ON_TOOLTIP_CB = "Turns the LED on and changes the color. Attention: calli:Bot only supports 7 different colors, the nearest will be chosen."; // untranslated Blockly.Msg.LED_ON_TOOLTIP_EDISON = "Turns the LED on."; // untranslated Blockly.Msg.LED_ON_WHITE_TOOLTIP = "Turns the LED on. Watch out, it's very bright!"; // untranslated Blockly.Msg.LED_TOOLTIP = "Represents an LED."; // untranslated Blockly.Msg.LEFT = "left"; // untranslated Blockly.Msg.LEFT_FRONT_RGBLED = "RGB LED left front"; // untranslated Blockly.Msg.LEFT_INFRARED_SENSOR = "infraredsensor left"; // untranslated Blockly.Msg.LEFT_LED = "LED left"; // untranslated Blockly.Msg.LEFT_MOTOR = "motor left"; // untranslated Blockly.Msg.LEFT_REAR_RGBLED = "RGB LED left rear"; // untranslated Blockly.Msg.LIGHTVEML_TOOLTIP = "Represents a visible/UV light sensor."; // untranslated Blockly.Msg.LIGHT_ARDU_TOOLTIP = "Represents 8 light sensors."; // untranslated Blockly.Msg.LIGHT_GETSAMPLE_TOOLTIP = "Gets the current reading from the light sensor in percent."; // untranslated Blockly.Msg.LIGHT_TOOLTIP = "Represents a light sensor."; // untranslated Blockly.Msg.LISTS_CREATE_EMPTY_HELPURL = "https://github.com/google/blockly/wiki/Lists#create-empty-list"; Blockly.Msg.LISTS_CREATE_EMPTY_TITLE = "krijo një listë të zbrazët"; Blockly.Msg.LISTS_CREATE_EMPTY_TOOLTIP = "Kthen një listë, te gjatësisë 0, duke mos përmbajtur asnjë regjistrim të të dhënave"; Blockly.Msg.LISTS_CREATE_TITLE = "list"; // untranslated Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TITLE_ADD = "listë"; Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TOOLTIP = "Shto, fshij, ose rirregullo sektoret për ta rikonfiguruar këtë bllok të listës."; Blockly.Msg.LISTS_CREATE_WITH_HELPURL = "https://github.com/google/blockly/wiki/Lists#create-list-with"; // untranslated Blockly.Msg.LISTS_CREATE_WITH_INPUT_WITH = "krijo listë me"; Blockly.Msg.LISTS_CREATE_WITH_ITEM_TOOLTIP = "Shto një send në listë."; Blockly.Msg.LISTS_CREATE_WITH_TOOLTIP = "Krijo një listë me ndonjë numbër të sendeve."; Blockly.Msg.LISTS_GET_INDEX_FIRST = "i parë"; Blockly.Msg.LISTS_GET_INDEX_FROM_END = "# nga fundi"; Blockly.Msg.LISTS_GET_INDEX_FROM_START = "#"; Blockly.Msg.LISTS_GET_INDEX_GET = "merr"; Blockly.Msg.LISTS_GET_INDEX_GET_REMOVE = "merr dhe fshij"; Blockly.Msg.LISTS_GET_INDEX_LAST = "i fundit"; Blockly.Msg.LISTS_GET_INDEX_RANDOM = "i rastësishëm"; Blockly.Msg.LISTS_GET_INDEX_REMOVE = "largo"; Blockly.Msg.LISTS_GET_INDEX_TAIL = ""; // untranslated Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FIRST = "Rikthen tek artikulli i par në list."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_END = "Kthen një send në pozicionin e specifikuar në listë. #1 është sendi i fundit."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_START = "Kthen një send në pozicionin e specifikuar në listë. #1 është sendi i parë."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_LAST = "Kthen artikullin e fundit në list."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM = "Kthen një send të rastësishëm në listë."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FIRST = "Fshin dhe kthen sendin e parë në listë."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM_END = "Fshin dhe kthen sendin në pozicionin e specifikuar në listë. #1 është sendi i fundit."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM_START = "Fshin dhe kthen sendin në pozicionin e specifikuar në listë. #1 është sendi i parë."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_LAST = "Fshin dhe kthen sendin e fundit në listë."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM = "Fshin dhe kthen një send të rastësishëm në listë."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FIRST = "Fshin sendin e parë në listë."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_END = "Fshin sendin në pozicionin e specifikuar në listë. #1 është sendi i fundit."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_START = "Fshin sendin në pozicionin e specifikuar në listë. #1 është sendi i parë."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_LAST = "Fshin sendin e fundit në listë."; Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_RANDOM = "Kthen një send të rastësishëm në listë."; Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_END = "tek # nga fundi"; Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_START = "tek #"; Blockly.Msg.LISTS_GET_SUBLIST_END_LAST = "tek i fundit"; Blockly.Msg.LISTS_GET_SUBLIST_HELPURL = "https://github.com/google/blockly/wiki/Lists#getting-a-sublist"; // untranslated Blockly.Msg.LISTS_GET_SUBLIST_START_FIRST = "merr nën-listën nga i pari"; Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_END = "merr nën listën nga # nga fundi"; Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_START = "merr nën-listën nga #"; Blockly.Msg.LISTS_GET_SUBLIST_TAIL = ""; // untranslated Blockly.Msg.LISTS_GET_SUBLIST_TOOLTIP = "Krijon në kopje të pjesës së specifikuar të listës."; Blockly.Msg.LISTS_INDEX_OF_FIRST = "gjen ndodhjen e parë të sendit"; Blockly.Msg.LISTS_INDEX_OF_HELPURL = "https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list"; // untranslated Blockly.Msg.LISTS_INDEX_OF_LAST = "gjen ndodhjen e fundit të sendit"; Blockly.Msg.LISTS_INDEX_OF_TOOLTIP = "Kthen indeksin e ndodhjes së parë/fudit të sendit në listë. Kthen 0 nëse teksti nuk është gjetur."; Blockly.Msg.LISTS_INLIST = "në listë"; Blockly.Msg.LISTS_ISEMPTY_HELPURL = "https://github.com/google/blockly/wiki/Lists#is-empty"; // untranslated Blockly.Msg.LISTS_ISEMPTY_TITLE = "%1 është e zbraztë"; Blockly.Msg.LISTS_ISEMPTY_TOOLTIP = "Kthehet i saktë nëse lista është e zbraztë."; Blockly.Msg.LISTS_LENGTH_HELPURL = "https://github.com/google/blockly/wiki/Lists#length-of"; // untranslated Blockly.Msg.LISTS_LENGTH_TITLE = "gjatësia e %1"; Blockly.Msg.LISTS_LENGTH_TOOLTIP = "Kthen gjatësinë e listës."; Blockly.Msg.LISTS_REPEAT_HELPURL = "https://github.com/google/blockly/wiki/Lists#create-list-with"; // untranslated Blockly.Msg.LISTS_REPEAT_TITLE = "krijo listën me sendin %1 të përsëritur %2 herë"; Blockly.Msg.LISTS_REPEAT_TOOLTIP = "Krijon në listë qe përmban vlerën e dhënë të përsëritur aq herë sa numri i specifikuar."; Blockly.Msg.LISTS_SET_INDEX_HELPURL = "https://github.com/google/blockly/wiki/Lists#in-list--set"; // untranslated Blockly.Msg.LISTS_SET_INDEX_INPUT_TO = "sikurse"; Blockly.Msg.LISTS_SET_INDEX_INSERT = "fut në"; Blockly.Msg.LISTS_SET_INDEX_SET = "vendos"; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FIRST = "Fut sendin në fillim të listës."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_END = "Fut sendin në pozicionin e specifikuar të listës. #1 është sendi i fundit."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_START = "Fut sendin në pozicionin e specifikuar të listës. #1 është sendi i parë."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_LAST = "Bashkangjit sendin në fund të listës."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_RANDOM = "Fut sendin rastësisht në listë."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FIRST = "Vendos sendin e parë në listë."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_END = "Vendos sendin ne pozicionin e specifikuar në listë. #1 është sendi i fundit."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_START = "Vendos sendin në pozicionin e specifikuar në listë. #1 është sendi i parë."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_LAST = "Vendos sendin e fundit në listë."; Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_RANDOM = "Vendos një send të rastësishëm në listë."; Blockly.Msg.LISTS_SORT_HELPURL = "https://github.com/google/blockly/wiki/Lists#sorting-a-list"; // untranslated Blockly.Msg.LISTS_SORT_ORDER_ASCENDING = "ascending"; // untranslated Blockly.Msg.LISTS_SORT_ORDER_DESCENDING = "descending"; // untranslated Blockly.Msg.LISTS_SORT_TITLE = "sort %1 %2 %3"; // untranslated Blockly.Msg.LISTS_SORT_TOOLTIP = "Sort a copy of a list."; // untranslated Blockly.Msg.LISTS_SORT_TYPE_IGNORECASE = "alphabetic, ignore case"; // untranslated Blockly.Msg.LISTS_SORT_TYPE_NUMERIC = "numeric"; // untranslated Blockly.Msg.LISTS_SORT_TYPE_TEXT = "alphabetic"; // untranslated Blockly.Msg.LISTS_SPLIT_HELPURL = "https://github.com/google/blockly/wiki/Lists#splitting-strings-and-joining-lists"; // untranslated Blockly.Msg.LISTS_SPLIT_LIST_FROM_TEXT = "make list from text"; // untranslated Blockly.Msg.LISTS_SPLIT_TEXT_FROM_LIST = "make text from list"; // untranslated Blockly.Msg.LISTS_SPLIT_TOOLTIP_JOIN = "Join a list of texts into one text, separated by a delimiter."; // untranslated Blockly.Msg.LISTS_SPLIT_TOOLTIP_SPLIT = "Split text into a list of texts, breaking at each delimiter."; // untranslated Blockly.Msg.LISTS_SPLIT_WITH_DELIMITER = "with delimiter"; // untranslated Blockly.Msg.LIST_BACK_TOOLTIP = "Back to previous view."; // untranslated Blockly.Msg.LOGIC_BOOLEAN_FALSE = "e pasaktë"; Blockly.Msg.LOGIC_BOOLEAN_HELPURL = "https://github.com/google/blockly/wiki/Logic#values"; // untranslated Blockly.Msg.LOGIC_BOOLEAN_TOOLTIP = "Kthehet ose të saktë ose të pasaktë."; Blockly.Msg.LOGIC_BOOLEAN_TRUE = "e saktë"; Blockly.Msg.LOGIC_COMPARE_HELPURL = "http://en.wikipedia.org/wiki/Inequality_(mathematics)"; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_EQ = "Ktheje të saktë nëse të dy hyrjet janë të barabarta me njëra-tjetrën."; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT = "Ktheje të saktë nëse hyrja e parë është më e madhe se hyrja e dytë."; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GTE = "Ktheje të saktë nëse hyrja e parë është më e madhe ose e barabartë me hyrjen e dytë."; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT = "Ktheje të saktë nëse hyrja e parë është më e vogël se hyrja e dytë."; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LTE = "Ktheje të saktë nëse hyrja e parë është më e vogël ose e barabartë me hyrjen e dytë."; Blockly.Msg.LOGIC_COMPARE_TOOLTIP_NEQ = "Ktheje të saktë nëse të dy hyrjet nuk janë të barabarta me njëra-tjetrën."; Blockly.Msg.LOGIC_NEGATE_HELPURL = "https://github.com/google/blockly/wiki/Logic#not"; // untranslated Blockly.Msg.LOGIC_NEGATE_TITLE = "jo %1"; Blockly.Msg.LOGIC_NEGATE_TOOLTIP = "Kthehet e saktë nëse hyrja është e pasaktë. Kthehet e pasaktë nëse hyrja është e saktë."; Blockly.Msg.LOGIC_NULL = "pavlerë"; Blockly.Msg.LOGIC_NULL_HELPURL = "http://en.wikipedia.org/wiki/Nullable_type"; Blockly.Msg.LOGIC_NULL_TOOLTIP = "Kthehet e pavlerë."; Blockly.Msg.LOGIC_OPERATION_AND = "dhe"; Blockly.Msg.LOGIC_OPERATION_HELPURL = "https://github.com/google/blockly/wiki/Logic#logical-operations"; // untranslated Blockly.Msg.LOGIC_OPERATION_OR = "ose"; Blockly.Msg.LOGIC_OPERATION_TOOLTIP_AND = "Kthehet të saktë nëse të dy hyrjet janë të sakta."; Blockly.Msg.LOGIC_OPERATION_TOOLTIP_OR = "Kthehet e saktë nëse së paku njëra nga hyrjet është e saktë."; Blockly.Msg.LOGIC_TERNARY_CONDITION = "test"; Blockly.Msg.LOGIC_TERNARY_HELPURL = "http://en.wikipedia.org/wiki/%3F:"; Blockly.Msg.LOGIC_TERNARY_IF_FALSE = "nëse e pasaktë"; Blockly.Msg.LOGIC_TERNARY_IF_TRUE = "nëse e saktë"; Blockly.Msg.LOGIC_TERNARY_TOOLTIP = "Kontrollo kushtin në 'test'. Nëse kushti është i saktë, kthen vlerën 'nëse e saktë'; përndryshe kthen vlerën 'nëse e pasaktë'."; Blockly.Msg.LOOP = "repeat until"; // untranslated Blockly.Msg.LOOPFOREVER_TOOLTIP = "Repeats indefinitely an action."; // untranslated Blockly.Msg.LOOP_FOREVER = "repeat indefinitely"; // untranslated Blockly.Msg.MATATABOT_ACTION_NUM1 = "the 1st"; // untranslated Blockly.Msg.MATATABOT_ACTION_NUM2 = "the 2nd"; // untranslated Blockly.Msg.MATATABOT_ACTION_NUM3 = "the 3rd"; // untranslated Blockly.Msg.MATATABOT_ACTION_NUM4 = "the 4th"; // untranslated Blockly.Msg.MATATABOT_ACTION_NUM5 = "the 5th"; // untranslated Blockly.Msg.MATATABOT_ACTION_NUM6 = "the 6th"; // untranslated Blockly.Msg.MATATABOT_BRIGHTNESS_LEV1 = "1"; // untranslated Blockly.Msg.MATATABOT_BRIGHTNESS_LEV2 = "2"; // untranslated Blockly.Msg.MATATABOT_BRIGHTNESS_LEV3 = "3"; // untranslated Blockly.Msg.MATATABOT_BRIGHTNESS_LEV4 = "4"; // untranslated Blockly.Msg.MATATABOT_BRIGHTNESS_LEV5 = "5"; // untranslated Blockly.Msg.MATATABOT_BRIGHTNESS_LEV6 = "6"; // untranslated Blockly.Msg.MATATABOT_COLOR_BLACK = "black"; // untranslated Blockly.Msg.MATATABOT_COLOR_BLUE = "blue"; // untranslated Blockly.Msg.MATATABOT_COLOR_GREEN = "green"; // untranslated Blockly.Msg.MATATABOT_COLOR_PURPLE = "purple"; // untranslated Blockly.Msg.MATATABOT_COLOR_RED = "red"; // untranslated Blockly.Msg.MATATABOT_COLOR_WHITE = "white"; // untranslated Blockly.Msg.MATATABOT_COLOR_YELLOW = "yellow"; // untranslated Blockly.Msg.MATATABOT_DANCE_NUM1 = "the 1st"; // untranslated Blockly.Msg.MATATABOT_DANCE_NUM2 = "the 2nd"; // untranslated Blockly.Msg.MATATABOT_DANCE_NUM3 = "the 3rd"; // untranslated Blockly.Msg.MATATABOT_DANCE_NUM4 = "the 4th"; // untranslated Blockly.Msg.MATATABOT_DANCE_NUM5 = "the 5th"; // untranslated Blockly.Msg.MATATABOT_DANCE_NUM6 = "the 6th"; // untranslated Blockly.Msg.MATATABOT_DO_ACTION = "perform %1 action"; // untranslated Blockly.Msg.MATATABOT_DO_ACTION_TOOLTIP = "perform action"; // untranslated Blockly.Msg.MATATABOT_DO_DANCE = "perform %1 dance"; // untranslated Blockly.Msg.MATATABOT_DO_DANCE_TOOLTIP = "perform dance"; // untranslated Blockly.Msg.MATATABOT_EYELED_ALL_OFF = "turn all eyes off"; // untranslated Blockly.Msg.MATATABOT_EYELED_ALL_OFF_TOOLTIP = "turn all eyes lights off"; // untranslated Blockly.Msg.MATATABOT_EYELED_SINGLE_SET1 = "set %1 eye(s) to %2 and brightness is level %3"; // untranslated Blockly.Msg.MATATABOT_EYELED_SINGLE_SET1_TOOLTIP = "set eye LED function 1"; // untranslated Blockly.Msg.MATATABOT_EYELED_SINGLE_SET2 = "set %1 eye(s) to color %2"; // untranslated Blockly.Msg.MATATABOT_EYELED_SINGLE_SET2_TOOLTIP = "set eye LED function 2"; // untranslated Blockly.Msg.MATATABOT_EYELED_SINGLE_SET3 = "set eye %1 red %2 green %3 blue %4"; // untranslated Blockly.Msg.MATATABOT_EYELED_SINGLE_SET3_TOOLTIP = "set eye LED function 3"; // untranslated Blockly.Msg.MATATABOT_LOOK_SIDE_ALL = "all"; // untranslated Blockly.Msg.MATATABOT_LOOK_SIDE_LEFT = "left"; // untranslated Blockly.Msg.MATATABOT_LOOK_SIDE_RIGHT = "right"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE108 = "108°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE120 = "120°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE135 = "135°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE144 = "144°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE150 = "150°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE180 = "180°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE30 = "30°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE36 = "36°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE45 = "45°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE60 = "60°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE72 = "72°"; // untranslated Blockly.Msg.MATATABOT_MOTION_ANGLE90 = "90°"; // untranslated Blockly.Msg.MATATABOT_MOTION_BACKWARD = "backward"; // untranslated Blockly.Msg.MATATABOT_MOTION_FORWARD = "forward"; // untranslated Blockly.Msg.MATATABOT_MOTION_MOVE_BACKWARD = "move %1 backward"; // untranslated Blockly.Msg.MATATABOT_MOTION_MOVE_BACKWARD_TOOLTIP = "Move backward according to the set number of steps"; // untranslated Blockly.Msg.MATATABOT_MOTION_MOVE_FORWARD = "move %1 forward"; // untranslated Blockly.Msg.MATATABOT_MOTION_MOVE_FORWARD_TOOLTIP = "Move forward according to the set number of steps"; // untranslated Blockly.Msg.MATATABOT_MOTION_MOVING = "move %1 cm"; // untranslated Blockly.Msg.MATATABOT_MOTION_MOVING_TOOLTIP = "Move distance"; // untranslated Blockly.Msg.MATATABOT_MOTION_STEP1 = "1 step"; // untranslated Blockly.Msg.MATATABOT_MOTION_STEP2 = "2 steps"; // untranslated Blockly.Msg.MATATABOT_MOTION_STEP3 = "3 steps"; // untranslated Blockly.Msg.MATATABOT_MOTION_STEP4 = "4 steps"; // untranslated Blockly.Msg.MATATABOT_MOTION_STEP5 = "5 steps"; // untranslated Blockly.Msg.MATATABOT_MOTION_STEP6 = "6 steps"; // untranslated Blockly.Msg.MATATABOT_MOTION_STOP_MOVING = "%1 stop moving"; // untranslated Blockly.Msg.MATATABOT_MOTION_STOP_MOVING_TOOLTIP = "Stop moving"; // untranslated Blockly.Msg.MATATABOT_MOTION_TURN_LEFT = "turn %1 left"; // untranslated Blockly.Msg.MATATABOT_MOTION_TURN_LEFT_TOOLTIP = "Turn left according to the set number of angle"; // untranslated Blockly.Msg.MATATABOT_MOTION_TURN_RIGHT = "turn %1 right"; // untranslated Blockly.Msg.MATATABOT_MOTION_TURN_RIGHT_TOOLTIP = "Turn right according to the set number of angle"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_BOTH = "both wheels"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_GEAR1 = "gear 1"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_GEAR2 = "gear 2"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_GEAR3 = "gear 3"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_GEAR4 = "gear 4"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_GEAR5 = "gear 5"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_GEAR6 = "gear 6"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_LEFT = "left wheel"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_POWER = "set left wheel %1 speed %2%3set right wheel %4 speed %5"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_POWER_TOOLTIP = "left motor gear move and right motor gear move"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_RIGHT = "right wheel"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_SPEED = "set left motor speed (cm/s)%1set right motor speed (cm/s)%2"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_SPEED_TOOLTIP = "left motor speed and right motor speed"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_STOP = "stop"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHEEL_UNCHANGED = "unchanged"; // untranslated Blockly.Msg.MATATABOT_MOTION_WHIRL = "rotate %1 degrees "; // untranslated Blockly.Msg.MATATABOT_MOTION_WHIRL_TOOLTIP = "Rotational movement"; // untranslated Blockly.Msg.MATATABOT_SOUND_ALTO_TOOLTIP = "play a alto sound"; // untranslated Blockly.Msg.MATATABOT_SOUND_BEAT_FIVE_FOURTH = "5/4"; // untranslated Blockly.Msg.MATATABOT_SOUND_BEAT_FOUR_FOURTH = "4/4"; // untranslated Blockly.Msg.MATATABOT_SOUND_BEAT_ONE_FOURTH = "1/4"; // untranslated Blockly.Msg.MATATABOT_SOUND_BEAT_SIX_FOURTH = "6/4"; // untranslated Blockly.Msg.MATATABOT_SOUND_BEAT_THREE_FOURTH = "3/4"; // untranslated Blockly.Msg.MATATABOT_SOUND_BEAT_TWO_FOURTH = "2/4"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY = "play %1 melody"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_NUM1 = "the 1st"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_NUM10 = "the 10th"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_NUM2 = "the 2nd"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_NUM3 = "the 3rd"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_NUM4 = "the 4th"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_NUM5 = "the 5th"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_NUM6 = "the 6th"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_NUM7 = "the 7th"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_NUM8 = "the 8th"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_NUM9 = "the 9th"; // untranslated Blockly.Msg.MATATABOT_SOUND_MELODY_TOOLTIP = "play a melody"; // untranslated Blockly.Msg.MATATABOT_SOUND_PLAY_ALTO = "play alto %1 for %2 beats"; // untranslated Blockly.Msg.MATATABOT_SOUND_PLAY_TREBLE = "play treble %1 for %2 beats"; // untranslated Blockly.Msg.MATATABOT_SOUND_SONG = "play %1 song"; // untranslated Blockly.Msg.MATATABOT_SOUND_SONG_NUM1 = "the 1st"; // untranslated Blockly.Msg.MATATABOT_SOUND_SONG_NUM2 = "the 2nd"; // untranslated Blockly.Msg.MATATABOT_SOUND_SONG_NUM3 = "the 3rd"; // untranslated Blockly.Msg.MATATABOT_SOUND_SONG_NUM4 = "the 4th"; // untranslated Blockly.Msg.MATATABOT_SOUND_SONG_NUM5 = "the 5th"; // untranslated Blockly.Msg.MATATABOT_SOUND_SONG_NUM6 = "the 6th"; // untranslated Blockly.Msg.MATATABOT_SOUND_SONG_TOOLTIP = "play a melody"; // untranslated Blockly.Msg.MATATABOT_SOUND_TONE_DO = "do"; // untranslated Blockly.Msg.MATATABOT_SOUND_TONE_FA = "fa"; // untranslated Blockly.Msg.MATATABOT_SOUND_TONE_LA = "la"; // untranslated Blockly.Msg.MATATABOT_SOUND_TONE_MI = "mi"; // untranslated Blockly.Msg.MATATABOT_SOUND_TONE_RE = "re"; // untranslated Blockly.Msg.MATATABOT_SOUND_TONE_SO = "so"; // untranslated Blockly.Msg.MATATABOT_SOUND_TONE_TI = "ti"; // untranslated Blockly.Msg.MATATABOT_SOUND_TREBLE_TOOLTIP = "play a treble sound"; // untranslated Blockly.Msg.MATH_ADDITION_SYMBOL = "+"; Blockly.Msg.MATH_ARITHMETIC_HELPURL = "http://sq.wikipedia.org/wiki/Aritmetika"; Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_ADD = "Kthen shumën e dy numrave."; Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE = "Kthen herësin e dy numrave."; Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS = "Kthen ndryshimin e dy numrave."; Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY = "Kthen produktin e dy numrave."; Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_POWER = "Kthen numrin e parë të ngritur në fuqinë e numrit të dytë."; Blockly.Msg.MATH_CAST_TOCHAR = "cast %1 to Char"; // untranslated Blockly.Msg.MATH_CAST_TOCHAR_TOOLTIP = "Convert this number into a single ASCII character"; // untranslated Blockly.Msg.MATH_CAST_TOSTRING = "cast %1 to String"; // untranslated Blockly.Msg.MATH_CAST_TOSTRING_TOOLTIP = "Convert this number into a string."; // untranslated Blockly.Msg.MATH_CHANGE_HELPURL = "http://en.wikipedia.org/wiki/Programming_idiom#Incrementing_a_counter"; Blockly.Msg.MATH_CHANGE_TITLE = "ndrysho %1 nga %2"; Blockly.Msg.MATH_CHANGE_TOOLTIP = "Shto një numër në ndryshoren '%1'."; Blockly.Msg.MATH_CONSTANT_HELPURL = "http://en.wikipedia.org/wiki/Mathematical_constant"; Blockly.Msg.MATH_CONSTANT_TOOLTIP = "Kthen një nga konstantet e përbashkëta: : π (3.141…), e (2.718…), φ (1.618…), sqrt(2) (1.414…), sqrt(½) (0.707…), or ∞ (infiniti)."; Blockly.Msg.MATH_CONSTRAIN_HELPURL = "https://en.wikipedia.org/wiki/Clamping_%28graphics%29"; // untranslated Blockly.Msg.MATH_CONSTRAIN_TITLE = "detyro %1 e ulët %2 e lartë %3"; Blockly.Msg.MATH_CONSTRAIN_TOOLTIP = "Vëni një numër që të jetë në mes të kufive të specifikuara(përfshirëse)."; Blockly.Msg.MATH_DIVISION_SYMBOL = "÷"; Blockly.Msg.MATH_IS_DIVISIBLE_BY = "është i pjestueshme me"; Blockly.Msg.MATH_IS_EVEN = "është çift"; Blockly.Msg.MATH_IS_NEGATIVE = "është negativ"; Blockly.Msg.MATH_IS_ODD = "është tek"; Blockly.Msg.MATH_IS_POSITIVE = "është pozitiv"; Blockly.Msg.MATH_IS_PRIME = "është prim"; Blockly.Msg.MATH_IS_TOOLTIP = "Kontrollo nëse një numër është çift, tek, prim, i plotë, pozitiv, negativ, ose nëse është i pjestueshëm me një numër të caktuar. Kthehet e saktë ose e pasaktë."; Blockly.Msg.MATH_IS_WHOLE = "është i plotë"; Blockly.Msg.MATH_MODULO_HELPURL = "http://en.wikipedia.org/wiki/Modulo_operation"; Blockly.Msg.MATH_MODULO_TITLE = "mbetësi i %1 ÷ %2"; Blockly.Msg.MATH_MODULO_TOOLTIP = "Kthen mbetësin nga pjestimi i dy numrave."; Blockly.Msg.MATH_MULTIPLICATION_SYMBOL = "x"; Blockly.Msg.MATH_NUMBER_HELPURL = "http://en.wikipedia.org/wiki/Number"; Blockly.Msg.MATH_NUMBER_TOOLTIP = "Një numër."; Blockly.Msg.MATH_ONLIST_HELPURL = ""; // untranslated Blockly.Msg.MATH_ONLIST_OPERATOR_AVERAGE = "mesatarja e listës"; Blockly.Msg.MATH_ONLIST_OPERATOR_MAX = "numri më i madh i listës"; Blockly.Msg.MATH_ONLIST_OPERATOR_MEDIAN = "mediana e listës"; Blockly.Msg.MATH_ONLIST_OPERATOR_MIN = "numri më i ulët i listës"; Blockly.Msg.MATH_ONLIST_OPERATOR_MODE = "modat e listës"; Blockly.Msg.MATH_ONLIST_OPERATOR_RANDOM = "send i rastësishëm i listës"; Blockly.Msg.MATH_ONLIST_OPERATOR_STD_DEV = "devijimi standard i listës"; Blockly.Msg.MATH_ONLIST_OPERATOR_SUM = "mbledhja e listës"; Blockly.Msg.MATH_ONLIST_TOOLTIP_AVERAGE = "Kthen mesatarën (kuptimi aritmetik) i vlerave numerike të listës."; Blockly.Msg.MATH_ONLIST_TOOLTIP_MAX = "Kthe numrin më të madh të listës."; Blockly.Msg.MATH_ONLIST_TOOLTIP_MEDIAN = "Kthe numrin median të listës."; Blockly.Msg.MATH_ONLIST_TOOLTIP_MIN = "Kthe numrin me të vogël të listës."; Blockly.Msg.MATH_ONLIST_TOOLTIP_MODE = "Kthe listën e sendit(eve) më të zakonshme të listës."; Blockly.Msg.MATH_ONLIST_TOOLTIP_RANDOM = "Kthe një element të rastësishëm nga lista."; Blockly.Msg.MATH_ONLIST_TOOLTIP_STD_DEV = "Kthe devijimin standard të listës."; Blockly.Msg.MATH_ONLIST_TOOLTIP_SUM = "Kthe shumën e të gjithë numrave të listës."; Blockly.Msg.MATH_POWER_SYMBOL = "^"; Blockly.Msg.MATH_RANDOM_FLOAT_HELPURL = "http://en.wikipedia.org/wiki/Random_number_generation"; Blockly.Msg.MATH_RANDOM_FLOAT_TITLE_RANDOM = "fraksioni i rastësishëm"; Blockly.Msg.MATH_RANDOM_FLOAT_TOOLTIP = "Kthe fraksionin e rastësishëm në mes të 0.0 (përfshirëse) dhe 1.0 (jopërfshirëse)."; Blockly.Msg.MATH_RANDOM_INT_HELPURL = "http://en.wikipedia.org/wiki/Random_number_generation"; Blockly.Msg.MATH_RANDOM_INT_TITLE = "numër i plotë i rastësishëm nga %1 deri në %2"; Blockly.Msg.MATH_RANDOM_INT_TOOLTIP = "Kthe një numër të plotë të rastësishëm të dy kufijve të specifikuar, të përfshirë."; Blockly.Msg.MATH_ROUND_HELPURL = "http://en.wikipedia.org/wiki/Rounding"; Blockly.Msg.MATH_ROUND_OPERATOR_ROUND = "rrumbullakësimi"; Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDDOWN = "rrumbullakësimi i ulët"; Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDUP = "rrumbullakësimi i lartë"; Blockly.Msg.MATH_ROUND_TOOLTIP = "Rrumbullakësimi i numrit të lartë ose të ulët."; Blockly.Msg.MATH_SINGLE_HELPURL = "http://en.wikipedia.org/wiki/Square_root"; Blockly.Msg.MATH_SINGLE_OP_ABSOLUTE = "absolut"; Blockly.Msg.MATH_SINGLE_OP_ROOT = "rrënja katrore"; Blockly.Msg.MATH_SINGLE_OP_SQUARE = "square"; // untranslated Blockly.Msg.MATH_SINGLE_TOOLTIP_ABS = "Kthen vlerën absolute të një numri."; Blockly.Msg.MATH_SINGLE_TOOLTIP_EXP = "Kthen e në fuqinë e një numri."; Blockly.Msg.MATH_SINGLE_TOOLTIP_LN = "Kthen logaritmën natyrale të një numri."; Blockly.Msg.MATH_SINGLE_TOOLTIP_LOG10 = "Kthen 10 logaritmet bazë të një numri."; Blockly.Msg.MATH_SINGLE_TOOLTIP_NEG = "Kthe negacionin e një numri."; Blockly.Msg.MATH_SINGLE_TOOLTIP_POW10 = "Kthen 10 në fuqinë e një numri."; Blockly.Msg.MATH_SINGLE_TOOLTIP_ROOT = "Kthen rrënjën katrore të një numri."; Blockly.Msg.MATH_SINGLE_TOOLTIP_SQUARE = "Return the number multiplied by itself."; // untranslated Blockly.Msg.MATH_SUBTRACTION_SYMBOL = "-"; Blockly.Msg.MATH_TRIG_ACOS = "acosinus"; Blockly.Msg.MATH_TRIG_ASIN = "asinus"; Blockly.Msg.MATH_TRIG_ATAN = "atangjentë"; Blockly.Msg.MATH_TRIG_COS = "cos"; Blockly.Msg.MATH_TRIG_HELPURL = "http://en.wikipedia.org/wiki/Trigonometric_functions"; Blockly.Msg.MATH_TRIG_SIN = "sin"; Blockly.Msg.MATH_TRIG_TAN = "tan"; Blockly.Msg.MATH_TRIG_TOOLTIP_ACOS = "Rikthe cos-1 e nje numeri."; Blockly.Msg.MATH_TRIG_TOOLTIP_ASIN = "Rikthe sin-1 e nje numeri."; Blockly.Msg.MATH_TRIG_TOOLTIP_ATAN = "Kthe tg-1 e nje numeri."; Blockly.Msg.MATH_TRIG_TOOLTIP_COS = "Kthe kosinusin e nje grade (jo ne radiant)."; Blockly.Msg.MATH_TRIG_TOOLTIP_SIN = "Kthe kosinusin e nje kendi (jo ne radiant)."; Blockly.Msg.MATH_TRIG_TOOLTIP_TAN = "Kthe tangentin e nje kendi (jo radiant)."; Blockly.Msg.ME = "Me"; // untranslated Blockly.Msg.MENU_ABOUT = "about the Open Roberta Lab"; // untranslated Blockly.Msg.MENU_ABOUT_PROJECT = "about the Open Roberta Project"; // untranslated Blockly.Msg.MENU_ATTACH = "attach ..."; // untranslated Blockly.Msg.MENU_BEGINNER = "beginner"; // untranslated Blockly.Msg.MENU_CHANGE = "change ..."; // untranslated Blockly.Msg.MENU_CHECK = "check"; // untranslated Blockly.Msg.MENU_CODE_DOWNLOAD_TOOLTIP = "Download the source code of your program on the computer"; // untranslated Blockly.Msg.MENU_CODE_REFRESH_TOOLTIP = "Refresh the source code, if you have changed the NEPO Blocks."; // untranslated Blockly.Msg.MENU_CONNECT = "connect ..."; // untranslated Blockly.Msg.MENU_CREATE_LINK = "create program link ..."; // untranslated Blockly.Msg.MENU_DEBUG_START_TOOLTIP = "Enter Debugging Mode."; // untranslated Blockly.Msg.MENU_DEBUG_STEP_BREAKPOINT_TOOLTIP = "Step forward to the next breakpoint in the program."; // untranslated Blockly.Msg.MENU_DEBUG_STEP_INTO_TOOLTIP = "Step Into to the next block in the program."; // untranslated Blockly.Msg.MENU_DEBUG_STEP_OVER_TOOLTIP = "Step Over to the next block in the program."; // untranslated Blockly.Msg.MENU_DEBUG_STOP_TOOLTIP = "Exit Debugging Mode."; // untranslated Blockly.Msg.MENU_DELETE_USER = "delete user ..."; // untranslated Blockly.Msg.MENU_EDIT = "edit"; // untranslated Blockly.Msg.MENU_EDIT_TOOLTIP = "edit"; // untranslated Blockly.Msg.MENU_EV3 = "Robot preparation"; // untranslated Blockly.Msg.MENU_EXPERT = "expert"; // untranslated Blockly.Msg.MENU_EXPORT_PROG = "export program"; // untranslated Blockly.Msg.MENU_FAQ = "FAQ"; // untranslated Blockly.Msg.MENU_GALLERY = "gallery"; // untranslated Blockly.Msg.MENU_GALLERY_TOOLTIP = "gallery"; // untranslated Blockly.Msg.MENU_GENERAL = "general help"; // untranslated Blockly.Msg.MENU_HELP = "help"; // untranslated Blockly.Msg.MENU_HELP_TOOLTIP = "help"; // untranslated Blockly.Msg.MENU_IMPORT_PROG = "import program ..."; // untranslated Blockly.Msg.MENU_LANGUAGE = "languages"; // untranslated Blockly.Msg.MENU_LANGUAGE_TOOLTIP = "languages"; // untranslated Blockly.Msg.MENU_LIST = "list ..."; // untranslated Blockly.Msg.MENU_LIST_CONF = "my configurations ..."; // untranslated Blockly.Msg.MENU_LIST_PROG = "my programs ..."; // untranslated Blockly.Msg.MENU_LIST_PROG_EXAMPLES = "example programs ..."; // untranslated Blockly.Msg.MENU_LOGGING = "logging"; // untranslated Blockly.Msg.MENU_LOG_IN = "login ..."; // untranslated Blockly.Msg.MENU_LOG_OUT = "logout"; // untranslated Blockly.Msg.MENU_MANAGE_USERGROUPS = "Manage user groups ..."; // untranslated Blockly.Msg.MENU_MESSAGE_DOWNLOAD = "Your program has been successfully downloaded."; // untranslated Blockly.Msg.MENU_NEW = "new"; // untranslated Blockly.Msg.MENU_PROGRAMMING = "programming with NEPO"; // untranslated Blockly.Msg.MENU_PROPERTIES = "properties"; // untranslated Blockly.Msg.MENU_RESET_FIRMWARE = "reset to factory defaults"; // untranslated Blockly.Msg.MENU_RIGHT_CODE_TOOLTIP = "Open/close the source code view."; // untranslated Blockly.Msg.MENU_RIGHT_HELP_TOOLTIP = "Open/close the help view."; // untranslated Blockly.Msg.MENU_RIGHT_INFO_TOOLTIP = "Open/close the program documentation view."; // untranslated Blockly.Msg.MENU_RIGHT_LEGAL_TOOLTIP = "Open/close the legal information view."; // untranslated Blockly.Msg.MENU_RIGHT_SIM_TOOLTIP = "Open/close the simulation view."; // untranslated Blockly.Msg.MENU_RIGHT_TUTORIAL_TOOLTIP = "open/close the tutorial's view"; // untranslated Blockly.Msg.MENU_ROBOT = "robot"; // untranslated Blockly.Msg.MENU_ROBOT_STATE_INFO = "info"; // untranslated Blockly.Msg.MENU_ROBOT_STATE_TOOLTIP = "robot info"; // untranslated Blockly.Msg.MENU_ROBOT_STOP_HINT_EV3 = "Press <span class='typcn typcn-media-stop'></span>+<span class='typcn typcn-arrow-sorted-down'></span> buttons on the robot to abort the program!"; // untranslated Blockly.Msg.MENU_ROBOT_STOP_HINT_NXT = "Press <span class='typcn typcn-media-cancel'></span> button on the robot to abort the program!"; // untranslated Blockly.Msg.MENU_ROBOT_TOOLTIP = "robots"; // untranslated Blockly.Msg.MENU_ROBOT_WLAN = "WLAN credentials ..."; // untranslated Blockly.Msg.MENU_RUN_MULT_SIM = "multiple robot simulation ..."; // untranslated Blockly.Msg.MENU_SAVE = "save"; // untranslated Blockly.Msg.MENU_SAVE_AS = "save as ..."; // untranslated Blockly.Msg.MENU_SHORTCUT = "Keyboard Shortcuts"; // untranslated Blockly.Msg.MENU_SHORTCUT_EDITOR = "Ctrl + Shift + Z: Open source code editor"; // untranslated Blockly.Msg.MENU_SHORTCUT_EXPORT = "Ctrl + E: Export Program"; // untranslated Blockly.Msg.MENU_SHORTCUT_IMPORT = "Ctrl + I: Import Program"; // untranslated Blockly.Msg.MENU_SHORTCUT_MULTISIM = "Ctrl + Shift + G: Multiple robot simulation"; // untranslated Blockly.Msg.MENU_SHORTCUT_OPEN_SIM = "Ctrl + G: Open/Close simulation view"; // untranslated Blockly.Msg.MENU_SHORTCUT_RUN = "Ctrl + R: Run on robot"; // untranslated Blockly.Msg.MENU_SHORTCUT_SAVE = "Ctrl + S: Save"; // untranslated Blockly.Msg.MENU_SHORTCUT_SAVEAS = "Ctrl + Shift + S: Save As"; // untranslated Blockly.Msg.MENU_SHORTCUT_SOURCE_CODE = "Ctrl + Z: Open/Close source code view"; // untranslated Blockly.Msg.MENU_SHORTCUT_VIEW_PROGRAM = "Ctrl + M: My programs"; // untranslated Blockly.Msg.MENU_SHOW_AGAIN = "show welcome note again"; // untranslated Blockly.Msg.MENU_SHOW_CODE = "open/close source code view"; // untranslated Blockly.Msg.MENU_SIM_BACK = "Back"; // untranslated Blockly.Msg.MENU_SIM_DRAW = "Drawing Scene"; // untranslated Blockly.Msg.MENU_SIM_IMPORT_TOOLTIP = "Upload your own simulation background image, it will be appended at the end of the background's list."; // untranslated Blockly.Msg.MENU_SIM_MATH = "Math Scene"; // untranslated Blockly.Msg.MENU_SIM_POSE_TOOLTIP = "Resets the positions of all robots and obstacles then clears all drawings."; // untranslated Blockly.Msg.MENU_SIM_RESCUE = "Rescue Scene"; // untranslated Blockly.Msg.MENU_SIM_ROBERTA = "Roberta Scene"; // untranslated Blockly.Msg.MENU_SIM_ROBOT_TOOLTIP = "open/close the robot's view"; // untranslated Blockly.Msg.MENU_SIM_SCENE_TOOLTIP = "change the scene"; // untranslated Blockly.Msg.MENU_SIM_SIMPLE = "Simple Scene"; // untranslated Blockly.Msg.MENU_SIM_START_TOOLTIP = "Start your program in the simulation."; // untranslated Blockly.Msg.MENU_SIM_STOP = "Stop"; // untranslated Blockly.Msg.MENU_SIM_STOP_TOOLTIP = "Stop your program in the simulation."; // untranslated Blockly.Msg.MENU_SIM_VALUES_TOOLTIP = "Open/close the sensors' data view."; // untranslated Blockly.Msg.MENU_SIM_VARIABLES_TOOLTIP = "Open/close the variable data view."; // untranslated Blockly.Msg.MENU_SIM_WRO = "World Robot Olympiad scene"; // untranslated Blockly.Msg.MENU_SOURCE_CODE_EDITOR = "open source code editor"; // untranslated Blockly.Msg.MENU_START_BRICK = "run on »$«"; // untranslated Blockly.Msg.MENU_START_SIM = "open/close simulation view"; // untranslated Blockly.Msg.MENU_STATE_INFO = "state information"; // untranslated Blockly.Msg.MENU_STOP_BRICK = "stop program on »$«"; // untranslated Blockly.Msg.MENU_TOOLBOX = "NEPO-Blocks"; // untranslated Blockly.Msg.MENU_TOOLBOX_BEGINNER = "NEPO-Blocks beginner"; // untranslated Blockly.Msg.MENU_TOOLBOX_EXPERT = "NEPO-Blocks expert"; // untranslated Blockly.Msg.MENU_TUTORIAL = "tutorials"; // untranslated Blockly.Msg.MENU_TUTORIAL_TOOLTIP = "tutorials"; // untranslated Blockly.Msg.MENU_USER = "login"; // untranslated Blockly.Msg.MENU_USERGROUP_LOG_IN = "Log in with user group ..."; // untranslated Blockly.Msg.MENU_USER_STATE_TOOLTIP = "user info"; // untranslated Blockly.Msg.MENU_USER_TOOLTIP = "user"; // untranslated Blockly.Msg.MENU_WLAN_CREDENTIALS = "WLAN credentials"; // untranslated Blockly.Msg.MENU_ZOOM = "zoom"; // untranslated Blockly.Msg.MENU_ZOOM_IN = "zoom in"; // untranslated Blockly.Msg.MENU_ZOOM_OUT = "zoom out"; // untranslated Blockly.Msg.MENU_ZOOM_RESET = "reset zoom"; // untranslated Blockly.Msg.MESSAGE_ADDED_USER = "User »$« was added"; // untranslated Blockly.Msg.MESSAGE_CONFIGURATION_DELETED = "Configuration »$« was deleted"; // untranslated Blockly.Msg.MESSAGE_EDIT_CHECK = "Your program is now checked!"; // untranslated Blockly.Msg.MESSAGE_EDIT_SAVE_CONFIGURATION = "Your configuration has been saved"; // untranslated Blockly.Msg.MESSAGE_EDIT_SAVE_CONFIGURATION_AS = "Your configuration has been saved as »$«"; // untranslated Blockly.Msg.MESSAGE_EDIT_SAVE_GROUP_AS = "Your group has been created"; // untranslated Blockly.Msg.MESSAGE_EDIT_SAVE_PROGRAM = "Your program has been saved"; // untranslated Blockly.Msg.MESSAGE_EDIT_SAVE_PROGRAM_AS = "Your program has been saved as »$«"; // untranslated Blockly.Msg.MESSAGE_EDIT_START = "Your program »$« will run in a moment!"; // untranslated Blockly.Msg.MESSAGE_FIRMWARE_ERROR = "The firmware of your robot is newer than that of the Open Roberta Lab. Please tell your server admin, that the server needs to be updated."; // untranslated Blockly.Msg.MESSAGE_GROUP_DELETED = "Group »$« was deleted"; // untranslated Blockly.Msg.MESSAGE_INVALID_CONF_NAME = "Please fill in a correct name. A correct name begins with a letter and can only contain letters or numbers. The default name »[robot]basis« can't be used here."; // untranslated Blockly.Msg.MESSAGE_INVALID_NAME = "Please fill in a correct name. A correct name begins with a letter and can only contain letters or numbers, max. length is 255."; // untranslated Blockly.Msg.MESSAGE_NOT_AVAILABLE = "Not available."; // untranslated Blockly.Msg.MESSAGE_PROGRAM_DELETED = "Program »$« was deleted"; // untranslated Blockly.Msg.MESSAGE_RESTART_ROBOT = "Please reconnect the robot to the Open Roberta Lab."; // untranslated Blockly.Msg.MESSAGE_ROBOT_CONNECTED = "Your robot »$« is connected"; // untranslated Blockly.Msg.MESSAGE_ROBOT_DISCONNECTED = "An active robot was disconnected"; // untranslated Blockly.Msg.MESSAGE_USER_DELETED = "User deleted"; // untranslated Blockly.Msg.MESSAGE_USER_GROUP_DELETED = "User »$« was deleted"; // untranslated Blockly.Msg.MESSAGE_USER_LOGIN = "Hello »$«"; // untranslated Blockly.Msg.MESSAGE_USER_LOGOUT = "You are logged out"; // untranslated Blockly.Msg.MICROBITBRICK_TOOLTIP = "Represents micro:bit, a pocket-sized codeable computer. There are also inbuilt actors and sensors available, e.g. buttons, display ..."; // untranslated Blockly.Msg.MICROPHONE_GETSAMPLE_TOOLTIP = "Gets the current reading from the microphone in % (mapped to 0 - 100). If the value is always low, the value has to be multiplied by 10, because the amplification is missing on the hardware."; // untranslated Blockly.Msg.MODE = "mode"; // untranslated Blockly.Msg.MODE_ACCELERATION = "acceleration"; // untranslated Blockly.Msg.MODE_ALTITUDE = "altitude"; // untranslated Blockly.Msg.MODE_AMBIENTLIGHT = "ambient light"; // untranslated Blockly.Msg.MODE_ANALOG = "analog value"; // untranslated Blockly.Msg.MODE_ANGLE = "angle"; // untranslated Blockly.Msg.MODE_CALIBRATION = "Calibration Value"; // untranslated Blockly.Msg.MODE_CLAP = "clap"; // untranslated Blockly.Msg.MODE_CLOSE = "close"; // untranslated Blockly.Msg.MODE_CO2EQUIVALENT = "CO2 Equivalent"; // untranslated Blockly.Msg.MODE_COLOR = "color"; // untranslated Blockly.Msg.MODE_COLOUR = "colour"; // untranslated Blockly.Msg.MODE_COMPASS = "compass"; // untranslated Blockly.Msg.MODE_CURRENT = "current"; // untranslated Blockly.Msg.MODE_DATE = "date"; // untranslated Blockly.Msg.MODE_DEGREE = "degree"; // untranslated Blockly.Msg.MODE_DIGITAL = "digital value"; // untranslated Blockly.Msg.MODE_DISTANCE = "distance"; // untranslated Blockly.Msg.MODE_GESTURE = "gesture"; // untranslated Blockly.Msg.MODE_GYRO = "gyroscope"; // untranslated Blockly.Msg.MODE_HUMIDITY = "humidity"; // untranslated Blockly.Msg.MODE_IAQ = "Indoor Air Quality (IAQ)"; // untranslated Blockly.Msg.MODE_IDALL = "IDs (list)"; // untranslated Blockly.Msg.MODE_IDONE = "ID"; // untranslated Blockly.Msg.MODE_INFO = "information"; // untranslated Blockly.Msg.MODE_LATITUDE = "latitude"; // untranslated Blockly.Msg.MODE_LIGHT = "light"; // untranslated Blockly.Msg.MODE_LINE = "line"; // untranslated Blockly.Msg.MODE_LONGITUDE = "longitude"; // untranslated Blockly.Msg.MODE_MAGNETICFIELD = "mag field"; // untranslated Blockly.Msg.MODE_MODULATED = "modulated"; // untranslated Blockly.Msg.MODE_MOISTURE = "moisture"; // untranslated Blockly.Msg.MODE_NAMEALL = "names (list)"; // untranslated Blockly.Msg.MODE_NAMEONE = "name"; // untranslated Blockly.Msg.MODE_OBSTACLE = "obstacle"; // untranslated Blockly.Msg.MODE_OPEN = "open"; // untranslated Blockly.Msg.MODE_ORIENTATION = "orientation"; // untranslated Blockly.Msg.MODE_PM10 = "PM10"; // untranslated Blockly.Msg.MODE_PM25 = "PM2.5"; // untranslated Blockly.Msg.MODE_PRESENCE = "presence"; // untranslated Blockly.Msg.MODE_PRESSED = "pressed"; // untranslated Blockly.Msg.MODE_PRESSURE = "pressure"; // untranslated Blockly.Msg.MODE_PULSEHIGH = "pulse time HIGH"; // untranslated Blockly.Msg.MODE_PULSELOW = "pulse time LOW"; // untranslated Blockly.Msg.MODE_RATE = "rate"; // untranslated Blockly.Msg.MODE_RCCODE = "R/C code"; // untranslated Blockly.Msg.MODE_REFLEXION = "reflected light"; // untranslated Blockly.Msg.MODE_RGB = "RGB"; // untranslated Blockly.Msg.MODE_ROTATION = "rotation"; // untranslated Blockly.Msg.MODE_SENSOR1 = "Light Sensor1"; // untranslated Blockly.Msg.MODE_SENSOR2 = "Light Sensor2"; // untranslated Blockly.Msg.MODE_SOUND = "sound"; // untranslated Blockly.Msg.MODE_SPEED = "speed"; // untranslated Blockly.Msg.MODE_TEMPERATURE = "temperature"; // untranslated Blockly.Msg.MODE_TILTED = "tilted"; // untranslated Blockly.Msg.MODE_TIME = "time"; // untranslated Blockly.Msg.MODE_UNMODULATED = "unmodulated"; // untranslated Blockly.Msg.MODE_UVLIGHT = "UV light"; // untranslated Blockly.Msg.MODE_VALUE = "value"; // untranslated Blockly.Msg.MODE_VOCEQUIVALENT = "Breathe VOC Equivalent"; // untranslated Blockly.Msg.MODE_WORD = "word"; // untranslated Blockly.Msg.MODE_X = "X-value"; // untranslated Blockly.Msg.MODE_Y = "Y-value"; // untranslated Blockly.Msg.MODE_Z = "Z-value"; // untranslated Blockly.Msg.MOISTURE_TOOLTIP = "Represents a moisture sensor."; // untranslated Blockly.Msg.MOTIONKIT = "MotionKit"; // untranslated Blockly.Msg.MOTIONKIT_DUAL_TOOLTIP = "Sets each MotionKit motor to the specified direction."; // untranslated Blockly.Msg.MOTIONKIT_SINGLE_TOOLTIP = "Sets the selected MotionKit motor/motors to the specified direction."; // untranslated Blockly.Msg.MOTION_TOOLTIP = "Represents a motion sensor."; // untranslated Blockly.Msg.MOTOR = "motor"; // untranslated Blockly.Msg.MOTORDIFF_ON_FOR_TOOLTIP = "Starts the robot with specific speed and stops after specific distance."; // untranslated Blockly.Msg.MOTORDIFF_ON_TOOLTIP = "Starts the robot with specific speed."; // untranslated Blockly.Msg.MOTORDIFF_STOP_TOOLTIP = "Stops the robot."; // untranslated Blockly.Msg.MOTORDIFF_TURN_FOR_TOOLTIP = "Turns the robot for number of degrees."; // untranslated Blockly.Msg.MOTORDIFF_TURN_TOOLTIP = "Turns the robot."; // untranslated Blockly.Msg.MOTORS_ON_TOOLTIP_CALLIOPE = "Turns motor A and B on with a specific power."; // untranslated Blockly.Msg.MOTORS_ON_TOOLTIP_CALLIOPE_CB = "Turns both motors on with a specific power. Power can be positiv or negativ for reverse direction."; // untranslated Blockly.Msg.MOTORS_STOP_TOOLTIP = "Stops both motors, A and B."; // untranslated Blockly.Msg.MOTOR_ARDU_TOOLTIP = "Represents a Bot'n Roll chassis motor."; // untranslated Blockly.Msg.MOTOR_BACKWARD = "backwards"; // untranslated Blockly.Msg.MOTOR_BIG = "big"; // untranslated Blockly.Msg.MOTOR_BIG_TOOLTIP = "Represents a big motor."; // untranslated Blockly.Msg.MOTOR_BRAKE = "brake"; // untranslated Blockly.Msg.MOTOR_DEGREE = "degree"; // untranslated Blockly.Msg.MOTOR_DISTANCE = "distance cm"; // untranslated Blockly.Msg.MOTOR_DRIVE = "drive"; // untranslated Blockly.Msg.MOTOR_FLOAT = "float"; // untranslated Blockly.Msg.MOTOR_FOREWARD = "forwards"; // untranslated Blockly.Msg.MOTOR_GETPOWER_TOOLTIP = "Gets current power of this motor."; // untranslated Blockly.Msg.MOTOR_LEFT = "left"; // untranslated Blockly.Msg.MOTOR_MIDDLE = "middle"; // untranslated Blockly.Msg.MOTOR_MIDDLE_TOOLTIP = "Represents a middle motor."; // untranslated Blockly.Msg.MOTOR_NONE = "none"; // untranslated Blockly.Msg.MOTOR_ON_FOR_TOOLTIP = "Turns motor on and stops motor after execution of rotations/degrees."; // untranslated Blockly.Msg.MOTOR_ON_FOR_TOOLTIP_MS = "Turns motor on and stops motor after execution after time has passed."; // untranslated Blockly.Msg.MOTOR_ON_FOR_TOOLTIP_RPM = "Turns motor on at speed in rpms (rotation per minute) and stops motor after execution of rotations/degrees."; // untranslated Blockly.Msg.MOTOR_ON_FOR_TOOLTIP_SERVO = "Sets the servo motor to a specific position in degrees."; // untranslated Blockly.Msg.MOTOR_ON_TOOLTIP = "Turns motor on with specific power."; // untranslated Blockly.Msg.MOTOR_ON_TOOLTIP_CALLIOPE = "Turns motor A, B or A+B on with a specific power."; // untranslated Blockly.Msg.MOTOR_ON_TOOLTIP_CALLIOPE_CB = "Turns left or right motor on with a specific power. Power can be positiv or negativ for reverse direction."; // untranslated Blockly.Msg.MOTOR_OTHER = "other power consumer"; // untranslated Blockly.Msg.MOTOR_PAN = "pan"; // untranslated Blockly.Msg.MOTOR_PORT = "motor port"; // untranslated Blockly.Msg.MOTOR_PORT_ARDUINO = "motor 28BYJ-48 port"; // untranslated Blockly.Msg.MOTOR_REGULATION = "regulation"; // untranslated Blockly.Msg.MOTOR_RIGHT = "right"; // untranslated Blockly.Msg.MOTOR_ROTATION = "rotation"; // untranslated Blockly.Msg.MOTOR_ROTATION_PER_MINUTE = "rpm"; // untranslated Blockly.Msg.MOTOR_ROTATION_REVERSE = "direction of rotation"; // untranslated Blockly.Msg.MOTOR_SETPOWER_TOOLTIP = "Sets power of this motor."; // untranslated Blockly.Msg.MOTOR_SIDE = "side"; // untranslated Blockly.Msg.MOTOR_SPEED = "speed %"; // untranslated Blockly.Msg.MOTOR_SPEED_0 = "Motor Speed is 0!"; // untranslated Blockly.Msg.MOTOR_STEER = "steer"; // untranslated Blockly.Msg.MOTOR_STOP = "stop"; // untranslated Blockly.Msg.MOTOR_STOP_TOOLTIP = "Stops this motor."; // untranslated Blockly.Msg.MOTOR_TILT = "tilt"; // untranslated Blockly.Msg.MOTOR_TOOLTOP = "Represents a motor."; // untranslated Blockly.Msg.MOTOR_TURN = "turn"; // untranslated Blockly.Msg.NAO_ABSOLUTE = "absolute"; // untranslated Blockly.Msg.NAO_ACCELEROMETER = "accelerometer"; // untranslated Blockly.Msg.NAO_ACCELEROMETER_TOOLTIP = "Get the current reading from the accelerometer in the given direction"; // untranslated Blockly.Msg.NAO_ANIMATION_TOOLTIP = "Perform the selected animation. TaiChi is a complex and artistic set of moves. Blink will only make the robot blink by using its LEDs. The wink and wipe forehead animation can be performed while siting and standing."; // untranslated Blockly.Msg.NAO_ANSWER = "answer"; // untranslated Blockly.Msg.NAO_APPLYPOSTURE = "let NAO"; // untranslated Blockly.Msg.NAO_APPLYPOSTURE_TOOLTIP = "Robot will take the selected posture or position. Use the dropdown menu to choose one."; // untranslated Blockly.Msg.NAO_AUTONOMOUS = "turn autonomous behaviour"; // untranslated Blockly.Msg.NAO_AUTONOMOUS_TOOLTIP = "Turn the robots autonomous behaviour on or off. While 'on' the robot will react to sounds, move slightly from side to side and try to track faces. Turn it off if this behaviour interrupts your program."; // untranslated Blockly.Msg.NAO_BLINK = "blink"; // untranslated Blockly.Msg.NAO_CAMERA = "camera"; // untranslated Blockly.Msg.NAO_CAMERA_BOTTOM = "bottom"; // untranslated Blockly.Msg.NAO_CAMERA_TOP = "top"; // untranslated Blockly.Msg.NAO_FACE_GET_INFORMATION_TOOLTIP = "Returns additional information about the given detected in an array with following values: [XAngle, YAngle, XSize, YSize, Heading], please note that all values are given in camera angles."; // untranslated Blockly.Msg.NAO_FILENAME = "filename"; // untranslated Blockly.Msg.NAO_FORGETFACEOF = "forget face of"; // untranslated Blockly.Msg.NAO_FORGETFACE_TOOLTIP = "Delete a face previously saved under a given name from the vision recognition database on the robot. "; // untranslated Blockly.Msg.NAO_FRAME = "frame"; // untranslated Blockly.Msg.NAO_FRAME_TORSO = "torso"; // untranslated Blockly.Msg.NAO_FRAME_WORLD = "world"; // untranslated Blockly.Msg.NAO_FSR = "force sensitive resistor"; // untranslated Blockly.Msg.NAO_GETLANGUAGE_TOOLTIP = "Get the active language. This is the language the robot is currently using for Text to Speech and Voice recognition."; // untranslated Blockly.Msg.NAO_GETVOLUME_TOOLTIP = "Get current volume."; // untranslated Blockly.Msg.NAO_GYROMETER = "gyrometer"; // untranslated Blockly.Msg.NAO_GYROMETER_TOOLTIP = "Get the current reading from the gyrometer in the given direction."; // untranslated Blockly.Msg.NAO_HAND = "hand"; // untranslated Blockly.Msg.NAO_HAND_TOOLTIP = "Open or close a single hand (wrist) of the robot."; // untranslated Blockly.Msg.NAO_HEADSENSOR = "head sensor"; // untranslated Blockly.Msg.NAO_INTENSITY = "intensity"; // untranslated Blockly.Msg.NAO_JOINT_ANKLEPITCH = "ankle pitch"; // untranslated Blockly.Msg.NAO_JOINT_ANKLEROLL = "ankle roll"; // untranslated Blockly.Msg.NAO_JOINT_ELBOWROLL = "elbow roll"; // untranslated Blockly.Msg.NAO_JOINT_ELBOWYAW = "elbow yaw"; // untranslated Blockly.Msg.NAO_JOINT_HAND = "hand"; // untranslated Blockly.Msg.NAO_JOINT_HEADPITCH = "head pitch"; // untranslated Blockly.Msg.NAO_JOINT_HEADYAW = "head yaw"; // untranslated Blockly.Msg.NAO_JOINT_HIPPITCH = "hip pitch"; // untranslated Blockly.Msg.NAO_JOINT_HIPROLL = "hip roll"; // untranslated Blockly.Msg.NAO_JOINT_HIPYAWPITCH = "hip yaw pitch"; // untranslated Blockly.Msg.NAO_JOINT_KNEEPITCH = "knee pitch"; // untranslated Blockly.Msg.NAO_JOINT_SHOULDERPITCH = "shoulder pitch"; // untranslated Blockly.Msg.NAO_JOINT_SHOULDERROLL = "shoulder roll"; // untranslated Blockly.Msg.NAO_JOINT_WRISTYAW = "wrist yaw"; // untranslated Blockly.Msg.NAO_LEARNFACEOF = "learn face of"; // untranslated Blockly.Msg.NAO_LEARNFACE_TOOLTIP = "Learn and save a face under a given name in the vision recognition database on the robot."; // untranslated Blockly.Msg.NAO_LED = "LED"; // untranslated Blockly.Msg.NAO_LEDOFF_TOOLTIP = "Turn the selected LED(s) off."; // untranslated Blockly.Msg.NAO_LEDRESET_TOOLTIP = "Reset the selected LEDs to their original state regarding colour and intensity."; // untranslated Blockly.Msg.NAO_LED_ALL = "all"; // untranslated Blockly.Msg.NAO_LED_CHEST = "chest"; // untranslated Blockly.Msg.NAO_LED_EAR = "ear"; // untranslated Blockly.Msg.NAO_LED_EARS = "ears"; // untranslated Blockly.Msg.NAO_LED_EYE = "eye"; // untranslated Blockly.Msg.NAO_LED_EYES = "eyes"; // untranslated Blockly.Msg.NAO_LED_FOOT = "foot"; // untranslated Blockly.Msg.NAO_LED_HEAD = "head"; // untranslated Blockly.Msg.NAO_LED_TOOLTIP = "Set the color of selected LED(s). Eyes and feet LEDs are available."; // untranslated Blockly.Msg.NAO_LOOKAT = "look at"; // untranslated Blockly.Msg.NAO_MARK_GET_INFORMATION_TOOLTIP = "Returns additional information about the given NAO mark in an array with following values: [XAngle, YAngle, XSize, YSize, Heading], please note that all values are given in camera angles."; // untranslated Blockly.Msg.NAO_MOVE = "move"; // untranslated Blockly.Msg.NAO_MOVEJOINT_TOOLTIP = "Move a single joint of the robot. A relative movement means that the current position of the selected joint is used to calculate the new position. Be aware that every joint has different limits. Therefore the input range for the degerees varies."; // untranslated Blockly.Msg.NAO_PART_ARM = "arm"; // untranslated Blockly.Msg.NAO_PART_ARMS = "arms"; // untranslated Blockly.Msg.NAO_PART_BODY = "body"; // untranslated Blockly.Msg.NAO_PART_HEAD = "head"; // untranslated Blockly.Msg.NAO_PART_LEG = "leg"; // untranslated Blockly.Msg.NAO_PART_LEGS = "legs"; // untranslated Blockly.Msg.NAO_PERFORM = "perform"; // untranslated Blockly.Msg.NAO_PHRASE = "phrase"; // untranslated Blockly.Msg.NAO_PLAYFILE_TOOLTIP = "Plays a sound file from the robot. Enter the name of the file. The file needs to be transferred to the robot beforehand."; // untranslated Blockly.Msg.NAO_PLAY_FILE = "play file"; // untranslated Blockly.Msg.NAO_POINTAT = "point at"; // untranslated Blockly.Msg.NAO_POINTLOOKAT_TOOLTIP = "Robot points or looks at a given position. The robot will move one of its hands or the head. Select the frame that is the point of reference. The values are entered in centimeter. Refer to the wiki for more information about the coordinate systems."; // untranslated Blockly.Msg.NAO_POSTURE_CROUCH = "crouch"; // untranslated Blockly.Msg.NAO_POSTURE_LYINGBACK = "lie back"; // untranslated Blockly.Msg.NAO_POSTURE_LYINGBELLY = "lie belly"; // untranslated Blockly.Msg.NAO_POSTURE_REST = "rest"; // untranslated Blockly.Msg.NAO_POSTURE_SIT = "sit"; // untranslated Blockly.Msg.NAO_POSTURE_SITRELAX = "sit relaxed"; // untranslated Blockly.Msg.NAO_POSTURE_STAND = "stand"; // untranslated Blockly.Msg.NAO_POSTURE_STANDINIT = "stand init"; // untranslated Blockly.Msg.NAO_POSTURE_STANDZERO = "stand zero"; // untranslated Blockly.Msg.NAO_QQVGA = "160*120"; // untranslated Blockly.Msg.NAO_QVGA = "320*240"; // untranslated Blockly.Msg.NAO_RANDOMEYES = "random eyes"; // untranslated Blockly.Msg.NAO_RANDOMEYES_TOOLTIP = "The color of the eyes is changed randomly for a specified amount of time entered in milliseconds."; // untranslated Blockly.Msg.NAO_RASTA = "rasta"; // untranslated Blockly.Msg.NAO_RASTA_TOOLTIP = "The color of the eyes is changed between green, yellow and red for a specified amount of time entered in milliseconds."; // untranslated Blockly.Msg.NAO_RECOGNIZEWORD = "speech recognizer of"; // untranslated Blockly.Msg.NAO_RECOGNIZEWORD_TOOLTIP = "Returns a word from the given list when recognized by NAO"; // untranslated Blockly.Msg.NAO_RECORDVIDEO = "record video"; // untranslated Blockly.Msg.NAO_RECORDVIDEO_TOOLTIP = "Records a video and saves it on the robot. Access the robots file system to view the video."; // untranslated Blockly.Msg.NAO_RELATIVE = "relative"; // untranslated Blockly.Msg.NAO_RESOLUTION = "resolution"; // untranslated Blockly.Msg.NAO_SETINTENSITY_TOOLTIP = "Set the intensity of selected LED(s) in a range from 0 to 100. Ears, head and chest LEDs are available"; // untranslated Blockly.Msg.NAO_SETLANGUAGE_TOOLTIP = "Set the language. Be aware that it is necessary to download the language pack before you can use it. For more information refer to the manual of your robot."; // untranslated Blockly.Msg.NAO_SETVOLUME_TOOLTIP = "Set the volume in a range from 0 to 100."; // untranslated Blockly.Msg.NAO_STIFFNESS = "lock motors"; // untranslated Blockly.Msg.NAO_STIFFNESS_TOOLTIP = "The stiffness of the selected body part of the robot will be turned on or off. Be aware that releasing the leg motors while the robot is standing may result in robot collapsing."; // untranslated Blockly.Msg.NAO_STOP = "stop movement"; // untranslated Blockly.Msg.NAO_STOP_TOOLTIP = "The robot immediately stops all movement. Be aware that this can lead to situations where downfall is possible."; // untranslated Blockly.Msg.NAO_TAI_CHI = "tai chi"; // untranslated Blockly.Msg.NAO_TAKEPICTURE = "take picture"; // untranslated Blockly.Msg.NAO_TAKEPICTURE_TOOLTIP = "Takes a picture and saves it on the robot. Access the robots file system to view the picture."; // untranslated Blockly.Msg.NAO_TOUCHSENSOR_TOOLTIP = "Is true if the selected touchsensor on the robot was touched."; // untranslated Blockly.Msg.NAO_TURN_TOOLTIP = "Turns the robot for number of degrees. Only enter positive values and use the dropdown to select the direction. It is possible to enter values up to 360 degrees."; // untranslated Blockly.Msg.NAO_VGA = "640*480"; // untranslated Blockly.Msg.NAO_WALK = "walk"; // untranslated Blockly.Msg.NAO_WALKTO = "walk to"; // untranslated Blockly.Msg.NAO_WALKTO_TOOLTIP = "The robot walks to the given position. The values are entered in cm and radians and are based on the coordinate system in NAOs body. Please refer to the wiki for more information on the coordinate system and how to calculate the coordinates."; // untranslated Blockly.Msg.NAO_WALK_ASYNC_TOOLTIP = "Makes the robot walk infinitely"; // untranslated Blockly.Msg.NAO_WALK_TOOLTIP = "Makes the robot walk a distance entered in cm. Distances below 10cm might lead to no movement at all. Depending on your robot and the surface the robots is walking on the distance might not be exact."; // untranslated Blockly.Msg.NAO_WAVE = "wave"; // untranslated Blockly.Msg.NAO_WIPE_FOREHEAD = "wipe forehead"; // untranslated Blockly.Msg.NEW_VARIABLE = "Identifikatorë i ri..."; Blockly.Msg.NEW_VARIABLE_TITLE = "Emri i identifikatorit të ri:"; Blockly.Msg.NO = "no"; // untranslated Blockly.Msg.NXTBRICK_TOOLTIP = "Represents the NXT brick with connected actors and sensors. There are also inbuilt actors and sensors available, e.g. buttons, display ..."; // untranslated Blockly.Msg.OFF = "off"; // untranslated Blockly.Msg.OLDER_THEN_14 = "I am 16 or older than 16!"; // untranslated Blockly.Msg.ON = "on"; // untranslated Blockly.Msg.ORA_ACCESS_RIGHT_CHANGED = "The shared right for user »$« is updated!"; // untranslated Blockly.Msg.ORA_ACCESS_RIGHT_DELETED = "The shared right for user »$« is deleted!"; // untranslated Blockly.Msg.ORA_ACCOUNT_NOT_ACTIVATED_TO_SHARE = "Your are not allowed to share. Please activate your account! <br><a href='https://www.roberta-home.de/index.php?id=138&L=1' target='_blank'>Further information ...</a>"; // untranslated Blockly.Msg.ORA_COMPILERWORKFLOW_ERROR_CONFIGURATION_NOT_FOUND = "The robot configuration could not be found on the server."; // untranslated Blockly.Msg.ORA_COMPILERWORKFLOW_ERROR_CONFIGURATION_TRANSFORM_FAILED = "The robot configuration could not be transformed into the robots programming language."; // untranslated Blockly.Msg.ORA_COMPILERWORKFLOW_ERROR_PROGRAM_COMPILE_FAILED = "Your program has errors so it cannot be compiled. The compiler messages are: <span style='background-color:#ddd;font-family:courier;'>{MESSAGE}</span>"; // untranslated Blockly.Msg.ORA_COMPILERWORKFLOW_ERROR_PROGRAM_GENERATION_FAILED = "The program could not be generated."; // untranslated Blockly.Msg.ORA_COMPILERWORKFLOW_ERROR_PROGRAM_GENERATION_FAILED_WITH_PARAMETERS = "The program could not be generated. Pin {PIN} is incorrect in block {BLOCK}"; // untranslated Blockly.Msg.ORA_COMPILERWORKFLOW_ERROR_PROGRAM_NOT_FOUND = "The program could not be transformed into the robots programming language."; // untranslated Blockly.Msg.ORA_COMPILERWORKFLOW_ERROR_PROGRAM_STORE_FAILED = "The program could not be saved because of an internal error."; // untranslated Blockly.Msg.ORA_COMPILERWORKFLOW_ERROR_PROGRAM_TRANSFORM_FAILED = "The program could not be transformed into the robots programming language."; // untranslated Blockly.Msg.ORA_COMPILERWORKFLOW_SUCCESS = "The program build succeeded"; // untranslated Blockly.Msg.ORA_CONFIGURATION_DELETE_ERROR = "An error has occurred while deleting the robot configuration, please try it again!"; // untranslated Blockly.Msg.ORA_CONFIGURATION_DELETE_SUCCESS = "Configuration deleted"; // untranslated Blockly.Msg.ORA_CONFIGURATION_ERROR_ID_INVALID = "Configuration name is not a valid identifier."; // untranslated Blockly.Msg.ORA_CONFIGURATION_GET_ALL_SUCCESS = "Configuration loaded"; // untranslated Blockly.Msg.ORA_CONFIGURATION_GET_ONE_ERROR_NOT_FOUND = "The robot configuration could not be found in the database."; // untranslated Blockly.Msg.ORA_CONFIGURATION_GET_ONE_SUCCESS = "Configuration loaded"; // untranslated Blockly.Msg.ORA_CONFIGURATION_SAVE_ERROR = "An error has occurred while saving the robot configuration."; // untranslated Blockly.Msg.ORA_CONFIGURATION_SAVE_ERROR_NOT_SAVED_TO_DB = "An error error has occurred while saving the configuration in the database."; // untranslated Blockly.Msg.ORA_CONFIGURATION_SAVE_SUCCESS = "Configuration saved"; // untranslated Blockly.Msg.ORA_FIRMWARE_RESET_ERROR = "Loading the original program failed!"; // untranslated Blockly.Msg.ORA_FIRMWARE_RESET_SUCCESS = "Your original program will run in a moment!"; // untranslated Blockly.Msg.ORA_GALLERY_UPLOAD_ERROR = "Your program »$« couldn't be uploaded to the gallery, it seems as if it is already uploaded."; // untranslated Blockly.Msg.ORA_GALLERY_UPLOAD_SUCCESS = "Your program »$« is now in the gallery!"; // untranslated Blockly.Msg.ORA_GROUP_ADD_MEMBER_ERROR = "There was an error while adding new members the user group. Please reload the current form and try again. If this error should persist, please contact our support."; // untranslated Blockly.Msg.ORA_GROUP_ADD_MEMBER_ERROR_LIMIT_REACHED = "You can not have more than 99 members in one user group."; // untranslated Blockly.Msg.ORA_GROUP_ADD_MEMBER_ERROR_SMALLER_THAN_ONE = "To add automatically generated members, you must enter an integer that is bigger or equals to 1."; // untranslated Blockly.Msg.ORA_GROUP_CREATE_ERROR = "There was an error on creating the user group. Please try different inputs or try again later. If this error should persist, please contact our support."; // untranslated Blockly.Msg.ORA_GROUP_CREATE_ERROR_GROUP_ALREADY_EXISTS = "You already have a user group with the that name. Please enter another name."; // untranslated Blockly.Msg.ORA_GROUP_CREATE_ERROR_GROUP_LIMIT_REACHED = "You reached the limit of user groups. You can not have more than 100 user groups in total."; // untranslated Blockly.Msg.ORA_GROUP_CREATE_ERROR_NOT_SAVED_TO_DB = "This group already exists"; // untranslated Blockly.Msg.ORA_GROUP_DELETE_ERROR = "There was an error while deleting the user group. Please reload the user group list and try again. If this error should persist, please contact our support."; // untranslated Blockly.Msg.ORA_GROUP_DELETE_ERROR_GROUP_DOES_NOT_EXISTS = "Could not find a user group with the specified name. Please reload the list of your user groups and try again."; // untranslated Blockly.Msg.ORA_GROUP_DELETE_ERROR_GROUP_HAS_MEMBERS = "One or more members of the user group have logged in in the past and created programs. In order to delete the user group, delete its members first."; // untranslated Blockly.Msg.ORA_GROUP_ERROR_MISSING_RIGHTS_TO_BE_GROUP_OWNER = "You are not allowed to be a user group owner. Your account must have an validated email attached."; // untranslated Blockly.Msg.ORA_GROUP_ERROR_NAME_INVALID = "The name of the user group is invalid. Please do not use special characters and enter at least one character."; // untranslated Blockly.Msg.ORA_GROUP_GET_ALL_ERROR = "There was an error while aquiring the list of user groups. Please reload the menu and try again. If this error should persist, please contact our support."; // untranslated Blockly.Msg.ORA_GROUP_GET_ONE_ERROR = "There was an error while aquiring the user group. Please reload the menu and try again. If this error should persist, please contact our support."; // untranslated Blockly.Msg.ORA_GROUP_GET_ONE_ERROR_NOT_FOUND = "Could not find a user group with the specified name."; // untranslated Blockly.Msg.ORA_GROUP_MEMBER_ERROR_ALREADY_EXISTS = "A member with the given name already exists in the user group."; // untranslated Blockly.Msg.ORA_GROUP_MEMBER_SHARE_RESTRICTION_EXCEEDED = "You can only share programs with other members of your user group. The owner of your user group can automatically read your programs."; // untranslated Blockly.Msg.ORA_GROUP_RENAME_ERROR = "There was an error while changing the name of the user group. Please reload the current form and try again. If this error should persist, please contact our support."; // untranslated Blockly.Msg.ORA_GROUP_TO_SHARE_DOES_NOT_EXIST = "You do not own a user group with the name you entered. <br />Try again with a different name!"; // untranslated Blockly.Msg.ORA_GROUP_UPDATE_ERROR = "There was an error while updating the user group. Please reload the user group list and try again. If this error should persist, please contact our support."; // untranslated Blockly.Msg.ORA_GROUP_UPDATE_ERROR_NOT_FOUND = "Could not find a user group with the specified name. Please reload the current form and try again."; // untranslated Blockly.Msg.ORA_GROUP_UPDATE_ERROR_NOT_OWNER = "Could not update the user group. You are not the owner of that group."; // untranslated Blockly.Msg.ORA_LIKE_DELETE_SUCCESS = "You do not like program »$« anymore!"; // untranslated Blockly.Msg.ORA_LIKE_SAVE_ERROR_EXISTS = "You couldn't like program »$«. Maybe you have already liked it."; // untranslated Blockly.Msg.ORA_LIKE_SAVE_SUCCESS = "You like program »$« now!"; // untranslated Blockly.Msg.ORA_LIST_CREATE_WITH_ERROR = "Error: This block may be used only within a variable declaration."; // untranslated Blockly.Msg.ORA_OWNER_DOES_NOT_EXIST = "The owner does not exist."; // untranslated Blockly.Msg.ORA_PROGRAM_CONFIGURATION_NOT_COMPATIBLE = "Program is not compatible with the configuration"; // untranslated Blockly.Msg.ORA_PROGRAM_DELETE_ERROR = "An error error has occurred while deleting the configuration. Please try it again!"; // untranslated Blockly.Msg.ORA_PROGRAM_DELETE_SUCCESS = "Program deleted"; // untranslated Blockly.Msg.ORA_PROGRAM_ERROR_ID_INVALID = "The name of your program is already used by the system. Please choose another name and try it again!"; // untranslated Blockly.Msg.ORA_PROGRAM_GET_ALL_ERROR_USER_NOT_FOUND = "Can not load the programs of the specified user. Please reload the lab and try again."; // untranslated Blockly.Msg.ORA_PROGRAM_GET_ALL_SUCCESS = "Programs loaded"; // untranslated Blockly.Msg.ORA_PROGRAM_GET_ONE_ERROR_NOT_FOUND = "Program not found."; // untranslated Blockly.Msg.ORA_PROGRAM_GET_ONE_ERROR_NOT_LOGGED_IN = "You are not logged in, please log in with your username and password or create a new user."; // untranslated Blockly.Msg.ORA_PROGRAM_GET_ONE_SUCCESS = "Program loaded"; // untranslated Blockly.Msg.ORA_PROGRAM_IMPORT_ERROR = "»$.xml« is not a valid NEPO program and cannot be uploaded!"; // untranslated Blockly.Msg.ORA_PROGRAM_IMPORT_ERROR_WRONG_ROBOT_TYPE = "You tried to import a program suitable for »$«, which is different from your menu selection.<br> Please switch the robot type in the robot's menu and try to import again!"; // untranslated Blockly.Msg.ORA_PROGRAM_INVALID_STATEMETNS = "There are errors in your program or configuration. Please check the messages."; // untranslated Blockly.Msg.ORA_PROGRAM_SAVE_AS_ERROR_PROGRAM_EXISTS = "This program already exists."; // untranslated Blockly.Msg.ORA_PROGRAM_SAVE_ERROR_NO_WRITE_PERMISSION = "You don't have the permission to modify this program!"; // untranslated Blockly.Msg.ORA_PROGRAM_SAVE_ERROR_OPTIMISTIC_TIMESTAMP_LOCKING = "This program has been changed recently by someone else. You can save your changes in a new program, choose >save as< !"; // untranslated Blockly.Msg.ORA_PROGRAM_SAVE_ERROR_PROGRAM_TO_UPDATE_NOT_FOUND = "The program could not be found, so it is impossible to update it."; // untranslated Blockly.Msg.ORA_PROGRAM_SAVE_SUCCESS = "Program saved"; // untranslated Blockly.Msg.ORA_PROGRAM_TO_SHARE_DOES_NOT_EXIST = "The program that you would like to share does not exist."; // untranslated Blockly.Msg.ORA_ROBOT_DOES_NOT_EXIST = "It seems that we do not support the desired robot system!<br>Please choose another one."; // untranslated Blockly.Msg.ORA_ROBOT_FIRMWAREUPDATE_IMPOSSIBLE = "An error has occurred while updating the new firmware on your robot."; // untranslated Blockly.Msg.ORA_ROBOT_FIRMWAREUPDATE_POSSIBLE = "The firmware was updated"; // untranslated Blockly.Msg.ORA_ROBOT_NOT_CONNECTED = "There is no robot connected. Check if your robot is switched on, connect it to the server and type in the robot's password under robot - connect in the menu. <br /> If you have problems to do this, please have a look at our help pages."; // untranslated Blockly.Msg.ORA_ROBOT_NOT_WAITING = "The robot does not wait for a run command."; // untranslated Blockly.Msg.ORA_ROBOT_PUSH_RUN = "Robot waited and now the jar is pushed to the robot"; // untranslated Blockly.Msg.ORA_ROBOT_PUSH_RUN_CALLIOPE2016 = "Your program »$« is downloaded to Calliope, press the reset button to start it!"; // untranslated Blockly.Msg.ORA_ROBOT_PUSH_RUN_NXT = "Your program »$« is downloaded to the NXT, start it on the robot!"; // untranslated Blockly.Msg.ORA_ROBOT_SET_SUCCESS = "Switched to robot system »$«!"; // untranslated Blockly.Msg.ORA_SERVER_ERROR = "Server-Error"; // untranslated Blockly.Msg.ORA_TOKEN_SET_ERROR_NO_ROBOT_WAITING = "Check if your robot is switched on and connected to the server. <br />If you have problems to do this, please have a look at our help pages."; // untranslated Blockly.Msg.ORA_TOKEN_SET_ERROR_WRONG_ROBOTTYPE = "You are trying to connect a robot of a different type as selected in the menu. <br> Please switch the robot type in the robot's menu and try to connect again!"; // untranslated Blockly.Msg.ORA_TOKEN_SET_SUCCESS = "Token set"; // untranslated Blockly.Msg.ORA_TOOLBOX_DELETE_ERROR = "An error has occurred while deleting the toolbox, please try it again!"; // untranslated Blockly.Msg.ORA_TOOLBOX_DELETE_SUCCESS = "Toolbox deleted"; // untranslated Blockly.Msg.ORA_TOOLBOX_ERROR_ID_INVALID = "Toolbox name is not a valid identifier."; // untranslated Blockly.Msg.ORA_TOOLBOX_GET_ALL_SUCCESS = "Toolbox loaded"; // untranslated Blockly.Msg.ORA_TOOLBOX_GET_ONE_ERROR_NOT_FOUND = "The toolbox could not be found in the database."; // untranslated Blockly.Msg.ORA_TOOLBOX_GET_ONE_SUCCESS = "Toolbox loaded"; // untranslated Blockly.Msg.ORA_TOOLBOX_SAVE_ERROR = "An error has occurred while saving the toolbox."; // untranslated Blockly.Msg.ORA_TOOLBOX_SAVE_ERROR_NOT_SAVED_TO_DB = "An error error has occurred while saving the configuration in the database."; // untranslated Blockly.Msg.ORA_TOOLBOX_SAVE_SUCCESS = "Toolbox saved"; // untranslated Blockly.Msg.ORA_TOOLBOX_TRANSFORM_ERROR = "Transformation error?"; // untranslated Blockly.Msg.ORA_USER_ACTIVATION_INVALID_URL = "The link is not valid anymore. Please ask for resending your verification mail again"; // untranslated Blockly.Msg.ORA_USER_ACTIVATION_SENT_MAIL_FAIL = "Sorry, we cannot send a mail to you, please contact »support-o-r@iais.fraunhofer.de«"; // untranslated Blockly.Msg.ORA_USER_ACTIVATION_SENT_MAIL_SUCCESS = "We send a mail to you, please check your mailbox!"; // untranslated Blockly.Msg.ORA_USER_ACTIVATION_SUCCESS = "Your account is successfully verified! Please login!"; // untranslated Blockly.Msg.ORA_USER_CREATE_ERROR_ACCOUNT_LENGTH = "Your account name or your user name is to long. Please make sure that they are not longer then 25 digits. Your account couldn't be created."; // untranslated Blockly.Msg.ORA_USER_CREATE_ERROR_CONTAINS_SPECIAL_CHARACTERS = "You are using some one or more special characters in your account name! Please remove them. Your account couldn't be created."; // untranslated Blockly.Msg.ORA_USER_CREATE_ERROR_MISSING_REQ_FIELDS = "Please make sure you have filled in all required fields! Your account couldn't be created."; // untranslated Blockly.Msg.ORA_USER_CREATE_ERROR_NOT_SAVED_TO_DB = "The given user name already exists in the database, please choose another user name."; // untranslated Blockly.Msg.ORA_USER_CREATE_SUCCESS = "Your user account »$« was successfully created!"; // untranslated Blockly.Msg.ORA_USER_DEACTIVATION_SUCCESS = "Your account is currently not verified, please check your mailbox!"; // untranslated Blockly.Msg.ORA_USER_DELETE_ERROR_HAS_GROUPS = "You have user groups associated with your account. Please delete them first, before you delete your account."; // untranslated Blockly.Msg.ORA_USER_DELETE_ERROR_ID_NOT_FOUND = "Error while deleting user."; // untranslated Blockly.Msg.ORA_USER_DELETE_ERROR_NOT_DELETED_IN_DB = "Error while deleting user in database."; // untranslated Blockly.Msg.ORA_USER_DELETE_SUCCESS = "Your account »$« was successfully deleted. Hope to see you soon again!"; // untranslated Blockly.Msg.ORA_USER_EMAIL_ONE_ERROR_USER_NOT_EXISTS_WITH_THIS_EMAIL = "This email address is unknown, maybe you have spelled it wrong!"; // untranslated Blockly.Msg.ORA_USER_ERROR_EMAIL_USED = "There is already an account with this email address registered. Please enter another email address!"; // untranslated Blockly.Msg.ORA_USER_ERROR_NOT_LOGGED_IN = "You need to be logged in to a user account to use this function. If you are logged in, please log out and in again."; // untranslated Blockly.Msg.ORA_USER_GET_ALL_SUCCESS = "Users loaded"; // untranslated Blockly.Msg.ORA_USER_GET_ONE_ERROR_ID_OR_PASSWORD_WRONG = "You have entered wrong user name or password. Please try again!"; // untranslated Blockly.Msg.ORA_USER_GET_ONE_SUCCESS = "Login successful"; // untranslated Blockly.Msg.ORA_USER_GROUP_SAVE_AS_ERROR_USER_GROUP_EXISTS = "This user already belongs to the group"; // untranslated Blockly.Msg.ORA_USER_PASSWORD_RECOVERY_EXPIRED_URL = "The link is not valid anymore. Please ask for resetting your password again, if you still cannot remember it!"; // untranslated Blockly.Msg.ORA_USER_PASSWORD_RECOVERY_SENT_MAIL_FAIL = "Sorry, we cannot send a mail to you, please contact »support-o-r@iais.fraunhofer.de«"; // untranslated Blockly.Msg.ORA_USER_PASSWORD_RECOVERY_SENT_MAIL_SUCCESS = "We send a mail to you, please check your mailbox!"; // untranslated Blockly.Msg.ORA_USER_TO_ADD_NOT_FOUND = "User was not found"; // untranslated Blockly.Msg.ORA_USER_TO_SHARE_DOES_NOT_EXIST = "The user with which you would like to share the program does not exist. <br />Try it again!"; // untranslated Blockly.Msg.ORA_USER_TO_SHARE_SAME_AS_LOGIN_USER = "You cannot share any programs with yourself."; // untranslated Blockly.Msg.ORA_USER_UPDATE_ERROR_NOT_SAVED_TO_DB = "The password could not be saved to the database. Are you sure that you entered the old password correctly?"; // untranslated Blockly.Msg.ORA_USER_UPDATE_SUCCESS = "Your changes have been successfully saved!"; // untranslated Blockly.Msg.ORDINAL_NUMBER_SUFFIX = ""; // untranslated Blockly.Msg.OUTPUT = "output"; // untranslated Blockly.Msg.PARTICLE_TOOLTIP = "Represents SDS011 particle sensor."; // untranslated Blockly.Msg.PASSWORD = "Password"; // untranslated Blockly.Msg.PIN_ISTOUCHED_TOOLTIP = "Is the selected pin touched?"; // untranslated Blockly.Msg.PIN_PULL = "pull"; // untranslated Blockly.Msg.PIN_PULL_DOWN = "down"; // untranslated Blockly.Msg.PIN_PULL_NONE = "none"; // untranslated Blockly.Msg.PIN_PULL_UP = "up"; // untranslated Blockly.Msg.PIN_SET_PULL_TOOLTIP = "Sets the pull of the chosen pin"; // untranslated Blockly.Msg.PIN_WRITE = "write"; // untranslated Blockly.Msg.PITCH = "pitch"; // untranslated Blockly.Msg.PLAY = "play"; // untranslated Blockly.Msg.PLAY_DURATION = "duration ms"; // untranslated Blockly.Msg.PLAY_EIGHTH = "eighth note"; // untranslated Blockly.Msg.PLAY_FILE = "file"; // untranslated Blockly.Msg.PLAY_FILE_TOOLTIP = "Plays a sound file."; // untranslated Blockly.Msg.PLAY_FREQUENZ = "frequency Hz"; // untranslated Blockly.Msg.PLAY_GETVOLUME_TOOLTIP = "Gets current volume."; // untranslated Blockly.Msg.PLAY_HALF = "half note"; // untranslated Blockly.Msg.PLAY_NOTE = "note"; // untranslated Blockly.Msg.PLAY_NOTE_TOOLTIP = "Plays a music note"; // untranslated Blockly.Msg.PLAY_QUARTER = "quarter note"; // untranslated Blockly.Msg.PLAY_SETVOLUME_TOOLTIP = "Sets volume."; // untranslated Blockly.Msg.PLAY_SIXTEENTH = "sixteenth note"; // untranslated Blockly.Msg.PLAY_TONE = "tone"; // untranslated Blockly.Msg.PLAY_TONE_TOOLTIP = "Plays a tone. Use frequency and duration to determin the tone pitch and duration."; // untranslated Blockly.Msg.PLAY_TOOLTIP = "Represents a buzzer."; // untranslated Blockly.Msg.PLAY_VOLUME = "volume"; // untranslated Blockly.Msg.PLAY_WHOLE = "whole note"; // untranslated Blockly.Msg.POPUP_ABOUT_JOIN = "I want to help"; // untranslated Blockly.Msg.POPUP_ABOUT_TEXT = "The Open Roberta Lab is a cloud-based integrated programming environment that enables children and adolescents to program easily different robot/microcontroller systems. This platform is completely open source so taking part is desirable! Both the software and the open source developer tools are available via Fraunhofer servers."; // untranslated Blockly.Msg.POPUP_ABOUT_TEXT_DEV = "The Open Roberta Lab is an open-source programming platform developed by Fraunhofer IAIS within the initiative <a href='http://www.roberta-home.de/' target='_blank'>»Roberta – Learning with Robots«</a>"; // untranslated Blockly.Msg.POPUP_ABOUT_TEXT_GOOG = "Open Roberta was initiated in collaboration with Google Germany to reduce the hurdles for students, teachers and schools programming educational robots.</a>"; // untranslated Blockly.Msg.POPUP_AGE = "Age"; // untranslated Blockly.Msg.POPUP_ATTENTION = "Attention"; // untranslated Blockly.Msg.POPUP_BACKGROUND_STORAGE = "The Open Roberta Lab can automatically load your simulation background on your next visits. For this purpose, we will save data in the Local Storage on your computer. <a href='https://www.roberta-home.de/en/privacy-policy-open-roberta-lab/' target='_blank'>More information in our privacy policy.</a>"; // untranslated Blockly.Msg.POPUP_BEFOREUNLOAD = "You have unsaved changes in your program or configuration. Sign in and save your program or configuration."; // untranslated Blockly.Msg.POPUP_BEFOREUNLOAD_LOGGEDIN = "You have unsaved changes in your program or configuration."; // untranslated Blockly.Msg.POPUP_CANCEL = "Cancel"; // untranslated Blockly.Msg.POPUP_CHANGE_PASSWORD = "change password ..."; // untranslated Blockly.Msg.POPUP_CONFIRM_CONTINUE = "<br><br><i>Press »OK« to discard your work. Press »Cancel« to stay here and save your work first.</i>"; // untranslated Blockly.Msg.POPUP_CONFIRM_DELETE_CONFIGURATION = "Do you really want to delete the configuration ?"; // untranslated Blockly.Msg.POPUP_CONFIRM_DELETE_GROUP = "Do you really want to delete these groups?"; // untranslated Blockly.Msg.POPUP_CONFIRM_DELETE_PROGRAM = "Do you really want to delete the following program or programs?<br><br>If you delete a program you share with others, you delete it for everyone.<br><br>If you delete a program shared with you, you do not delete the program but the sharing.<br><br>If you delete a program with the owner »Gallery«, you remove your program from the gallery!"; // untranslated Blockly.Msg.POPUP_CONFIRM_DELETE_USER_GROUP = "Do you really want to remove these users below from the current group?"; // untranslated Blockly.Msg.POPUP_CONFIRM_UPDATE_FIRMWARE = "There is a new firmware version for your robot available. You can try to run programs with the old version, but best bet is to update your robot now! You just have to click »Update now«."; // untranslated Blockly.Msg.POPUP_CONTINUE = "continue anyway"; // untranslated Blockly.Msg.POPUP_CREATE_BOOKMARK = "Create a browser bookmark now to save your robot selection!"; // untranslated Blockly.Msg.POPUP_DISPLAY_HEADER = "output of your program"; // untranslated Blockly.Msg.POPUP_DOWNLOAD = "Download your program to »$«"; // untranslated Blockly.Msg.POPUP_DOWNLOAD_CHECK = "Okay, I've changed the download folder of my browser permanently. Don't show this popup again and download my programs directly."; // untranslated Blockly.Msg.POPUP_DOWNLOAD_STEP_1 = "Right click on your program link below and"; // untranslated Blockly.Msg.POPUP_DOWNLOAD_STEP_1_EDISON = "Connect your Edison via the EdComm cable and press the round button"; // untranslated Blockly.Msg.POPUP_DOWNLOAD_STEP_1_SENSEBOX = "Check that your device is in programming mode (LED dimming in a pattern), if not, double press the red button. Right click on you program link below and"; // untranslated Blockly.Msg.POPUP_DOWNLOAD_STEP_2 = "choose »Save link as ...«, then"; // untranslated Blockly.Msg.POPUP_DOWNLOAD_STEP_2_EDISON = "click on »Play« to play your program to Edison and"; // untranslated Blockly.Msg.POPUP_DOWNLOAD_STEP_3 = "click on your connected »$« in the left column,"; // untranslated Blockly.Msg.POPUP_DOWNLOAD_STEP_3_EDISON = "wait until Edison beeps, then unplug."; // untranslated Blockly.Msg.POPUP_DOWNLOAD_STEP_4 = "now click on the »Save« button on the bottom right.<br><span style='font-size: 14px;'>If your program doesn't start automatically press the reset button after a while.</span>"; // untranslated Blockly.Msg.POPUP_DOWNLOAD_STEP_4_EDISON = "Press the triangle button to start your program on your Edison<br><span style='font-size: 14px;'>Having trouble? Turn up the volume and check that all sound enhancements are turned off</span>"; // untranslated Blockly.Msg.POPUP_DOWNLOAD_STEP_4_SENSEBOX = "now click on the »Save« button on the bottom right."; // untranslated Blockly.Msg.POPUP_DO_UPDATE_FIRMWARE = "Update now"; // untranslated Blockly.Msg.POPUP_EMAIL = "E-Mail"; // untranslated Blockly.Msg.POPUP_EMAIL_SEND = "Send now"; // untranslated Blockly.Msg.POPUP_GET_LINK = "Here is the link to your actual program. Please don't change it, it probably won't work anymore. It's already copied to your clipboard!</br>$"; // untranslated Blockly.Msg.POPUP_MULTIPLE_ROBOTS = "Select multiple programs for the simulation"; // untranslated Blockly.Msg.POPUP_MULTROBOTS_NOPROGRAMS = "Please create and store at least two programs which then can be executed each by a simulated robot!"; // untranslated Blockly.Msg.POPUP_NAME = "Name"; // untranslated Blockly.Msg.POPUP_NEW_PASSWORD = "New Password"; // untranslated Blockly.Msg.POPUP_OLD_PASSWORD = "Old Password"; // untranslated Blockly.Msg.POPUP_PASSWORD = "Password"; // untranslated Blockly.Msg.POPUP_PASSWORD_RECOVERY = "reset password ..."; // untranslated Blockly.Msg.POPUP_PROGRAM_TERMINATED_UNEXPECTED = "The execution of the program on the robot has terminated unexpectedly!"; // untranslated Blockly.Msg.POPUP_REGISTER_USER = "Register now"; // untranslated Blockly.Msg.POPUP_REPEAT_PASSWORD = "Repeat password"; // untranslated Blockly.Msg.POPUP_ROBOT_BATTERY = "Voltage"; // untranslated Blockly.Msg.POPUP_ROBOT_NAME = "Name"; // untranslated Blockly.Msg.POPUP_ROBOT_NOT_CONNECTED = "You have to make a connection to your robot first."; // untranslated Blockly.Msg.POPUP_ROBOT_STATE = "State"; // untranslated Blockly.Msg.POPUP_ROBOT_STATE_BUSY = "busy"; // untranslated Blockly.Msg.POPUP_ROBOT_STATE_DISCONNECTED = "disconnected"; // untranslated Blockly.Msg.POPUP_ROBOT_STATE_WAIT = "wait"; // untranslated Blockly.Msg.POPUP_ROBOT_SYSTEM = "System"; // untranslated Blockly.Msg.POPUP_ROBOT_WAIT = "Waiting time"; // untranslated Blockly.Msg.POPUP_SCANNED_ROBOTS = "found robots"; // untranslated Blockly.Msg.POPUP_STARTUP_COOKIES = "We use cookies to personalise content and to analyse our traffic."; // untranslated Blockly.Msg.POPUP_STARTUP_HELP = "Do you need help?"; // untranslated Blockly.Msg.POPUP_STARTUP_HELP_TEXT = "In our detailed help, we will explain everything you need, from building instructions to frequently asked questions."; // untranslated Blockly.Msg.POPUP_STARTUP_HIDE = "Okay, don't show this window again and remember my choice with a bookmark."; // untranslated Blockly.Msg.POPUP_STARTUP_START = "Choose your system!"; // untranslated Blockly.Msg.POPUP_STARTUP_TOUR_TEXT = "Would you like to get started, but do not know exactly how? We will show you the first steps in an interactive tutorial."; // untranslated Blockly.Msg.POPUP_TOUR = "take a tour"; // untranslated Blockly.Msg.POPUP_USERNAME = "Username"; // untranslated Blockly.Msg.POPUP_USERNAME_LOGOFF = "You are not logged in."; // untranslated Blockly.Msg.POPUP_VALUE = "Value"; // untranslated Blockly.Msg.POPUP_WLAN_SECURITY_INFORMATION = "Please note that the data provided in this dialog window is private and will not be stored in the OpenRoberta lab; it will only be used for program creation and during the compilation process. Make sure that for each new session you enter these credentials again. Please keep in mind that exposing this information to public may pose security risks."; // untranslated Blockly.Msg.POPUP_WLAN_SSID = "SSID"; // untranslated Blockly.Msg.PORT_ANKLE = "ankle"; // untranslated Blockly.Msg.PORT_BUMPER = "bumper"; // untranslated Blockly.Msg.PORT_ELBOW = "elbow"; // untranslated Blockly.Msg.PORT_HAND = "hand"; // untranslated Blockly.Msg.PORT_HEAD = "head"; // untranslated Blockly.Msg.PORT_HIP = "hip"; // untranslated Blockly.Msg.PORT_INTERNAL = "Port internal"; // untranslated Blockly.Msg.PORT_KNEE = "knee"; // untranslated Blockly.Msg.PORT_SHOULDER = "shoulder"; // untranslated Blockly.Msg.PORT_WRIST = "wrist"; // untranslated Blockly.Msg.POTENTIOMETER_TOOLTIP = "Represents a potentiometer."; // untranslated Blockly.Msg.PROCEDURES_ALLOW_STATEMENTS = "allow statements"; // untranslated Blockly.Msg.PROCEDURES_BEFORE_PARAMS = "me:"; Blockly.Msg.PROCEDURES_CALLNORETURN_HELPURL = "http://en.wikipedia.org/wiki/Procedure_%28computer_science%29"; Blockly.Msg.PROCEDURES_CALLNORETURN_TOOLTIP = "Lësho funksionin e definuar nga përdoruesi '%1'."; Blockly.Msg.PROCEDURES_CALLRETURN_HELPURL = "http://en.wikipedia.org/wiki/Procedure_%28computer_science%29"; Blockly.Msg.PROCEDURES_CALLRETURN_TOOLTIP = "Lëho funksionin e definuar nga përdoruesi '%1' dhe përdor daljen e tij."; Blockly.Msg.PROCEDURES_CALL_BEFORE_PARAMS = "me:"; Blockly.Msg.PROCEDURES_CREATE_DO = "Krijo '%1'"; Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT = "Describe this function..."; // untranslated Blockly.Msg.PROCEDURES_DEFNORETURN_DO = ""; // untranslated Blockly.Msg.PROCEDURES_DEFNORETURN_HELPURL = "http://en.wikipedia.org/wiki/Procedure_%28computer_science%29"; Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE = "bëj diqka"; Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE = "te"; Blockly.Msg.PROCEDURES_DEFNORETURN_TOOLTIP = "Krijon një funksion pa dalje."; Blockly.Msg.PROCEDURES_DEFRETURN_HELPURL = "http://en.wikipedia.org/wiki/Procedure_%28computer_science%29"; Blockly.Msg.PROCEDURES_DEFRETURN_RETURN = "rikthe"; Blockly.Msg.PROCEDURES_DEFRETURN_TOOLTIP = "Krijon një funksion me një dalje."; Blockly.Msg.PROCEDURES_DEF_DUPLICATE_WARNING = "Paralajmërim: Ky funksion ka parametra të dyfishuar."; Blockly.Msg.PROCEDURES_HIGHLIGHT_DEF = "Thekso definicionin e funksionit"; Blockly.Msg.PROCEDURES_IFRETURN_HELPURL = "http://c2.com/cgi/wiki?GuardClause"; // untranslated Blockly.Msg.PROCEDURES_IFRETURN_TOOLTIP = "Nëse një vlerë është e saktë, atëherë kthe një vlerë të dytë."; Blockly.Msg.PROCEDURES_IFRETURN_WARNING = "Paralajmërim: Ky bllok mund të përdoret vetëm brenda definicionit të funksionit."; Blockly.Msg.PROCEDURES_MUTATORARG_TITLE = "Fut emrin:"; Blockly.Msg.PROCEDURES_MUTATORARG_TOOLTIP = "Add an input to the function."; // untranslated Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TITLE = "Informacioni i futur"; Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TOOLTIP = "Add, remove, or reorder inputs to this function."; // untranslated Blockly.Msg.PROCEDURES_TITLE = "« procedure"; // untranslated Blockly.Msg.PROCEDURES_VARIABLES_ERROR = "Error: This block may be used only within the »"; // untranslated Blockly.Msg.PROCEDURES_VARIABLES_LOOP_ERROR = "Error: This block may be used only within a loop which declares "; // untranslated Blockly.Msg.PROGLIST_DELETE_ALL_TOOLTIP = "Click here to delete all selected programs."; // untranslated Blockly.Msg.PROGLIST_DELETE_TOOLTIP = "Click here to delete your program."; // untranslated Blockly.Msg.PROGLIST_LOAD_TOOLTIP = "Click here to load your robot configuration in the configuration environment."; // untranslated Blockly.Msg.PROGLIST_SHARE_TOOLTIP = "Click here to share your program with a friend."; // untranslated Blockly.Msg.PROGLIST_SHARE_WITH_GALLERY = "Do you really want to share your program with everybody? If you are not sure please check the question and answers <a href='https://www.roberta-home.de/index.php?id=138&L=1' target='_blank'>here</a>."; // untranslated Blockly.Msg.PROGLIST_SHARE_WITH_GALLERY_TOOLTIP = "Click here to upload your program to the gallery hence share it with all other users."; // untranslated Blockly.Msg.PROGRAM_ERROR_EXPRBLOCK_PARSE = "This expression is syntactically incorrect."; // untranslated Blockly.Msg.PROGRAM_ERROR_EXPRBLOCK_TYPECHECK = "This expression is invalid. The type check failed."; // untranslated Blockly.Msg.PULSEHIGH = "pulse time HIGH"; // untranslated Blockly.Msg.PULSELOW = "pulse time LOW"; // untranslated Blockly.Msg.PULSETOOLTIP = "Represents a pulse sensor."; // untranslated Blockly.Msg.RADIO_GET_RSSI_TOOLTIP = "Gets the RSSI of the last package."; // untranslated Blockly.Msg.REDO = "Redo"; // untranslated Blockly.Msg.RELAY = "relay"; // untranslated Blockly.Msg.RELAY_ARDUINO = "relay SRD-05VDC-SL-C"; // untranslated Blockly.Msg.RELAY_TOOLTIP = "Represents a relay."; // untranslated Blockly.Msg.REMOVE_COMMENT = "Fshij komentin"; Blockly.Msg.RENAME_VARIABLE = "Ndrysho emrin variables..."; Blockly.Msg.RENAME_VARIABLE_TITLE = "Ndrysho emrin e te gjitha '%1' variablave ne :"; Blockly.Msg.RESEND_ACTIVATION = "resend verification email"; // untranslated Blockly.Msg.RETURN = "return"; // untranslated Blockly.Msg.RFID_TOOLTIP = "Represents an RFID reader."; // untranslated Blockly.Msg.RGBLED_TOOLTIP = "Represents an RGB LED."; // untranslated Blockly.Msg.RGB_LED_TOOLTIP = "Turns the LED on or off and changes the color."; // untranslated Blockly.Msg.RIGHT = "right"; // untranslated Blockly.Msg.RIGHT_FRONT_RGBLED = "RGB LED right front"; // untranslated Blockly.Msg.RIGHT_INFRARED_SENSOR = "infraredsensor right"; // untranslated Blockly.Msg.RIGHT_LED = "LED right"; // untranslated Blockly.Msg.RIGHT_MOTOR = "motor right"; // untranslated Blockly.Msg.RIGHT_REAR_RGBLED = "RGB LED right rear"; // untranslated Blockly.Msg.ROLL = "roll"; // untranslated Blockly.Msg.ROTATIONS_PER_MINUTE = "rpm"; // untranslated Blockly.Msg.SAY = "say"; // untranslated Blockly.Msg.SAY_PARAMETERS_TOOLTIP = "The robot says the given text. It is also possible to enter special charaters. The robot will use the selected language to try and speak the entered text. Modify the speed (range: 0-100) and the pitch of the voice (range: 0-100) with the input fields"; // untranslated Blockly.Msg.SAY_TOOLTIP = "The robot says the given text. It is also possible to enter special charaters. The robot will use the selected language to try and speak the entered text."; // untranslated Blockly.Msg.SDCARD_TOOLTIP = "Represents an SD card."; // untranslated Blockly.Msg.SEND_DATA = "data to send"; // untranslated Blockly.Msg.SEND_DATA_SENSEMAP = "openSenseMap"; // untranslated Blockly.Msg.SEND_DATA_TO = "send data to"; // untranslated Blockly.Msg.SEND_DATA_TO_OSM_TOOLTIP = "This block is used to send data from sensors to the openSenseMap. Please configure the IDs in the configuration prior to the usage of this block."; // untranslated Blockly.Msg.SENSEBOXBRICK_TOOLTIP = "Represents the senseBox. Please configure here the id's from the openSenseMap, if you want to use them."; // untranslated Blockly.Msg.SENSOR_ACCELEROMETER = "accelerometer"; // untranslated Blockly.Msg.SENSOR_ACCELEROMETER_X_GETSAMPLE_TOOLTIP_ARDUINO = "Returns the acceleration value on the X axis in g. Can be in range from -4 g to 4 g."; // untranslated Blockly.Msg.SENSOR_ACCELEROMETER_X_GETSAMPLE_TOOLTIP_SENSEBOX = "Returns the acceleration value on the X axis in g. Can be in range from -2 g to 2 g."; // untranslated Blockly.Msg.SENSOR_ACCELEROMETER_Y_GETSAMPLE_TOOLTIP_ARDUINO = "Returns the acceleration value on the Y axis in g. Can be in range from -4 g to 4 g."; // untranslated Blockly.Msg.SENSOR_ACCELEROMETER_Y_GETSAMPLE_TOOLTIP_SENSEBOX = "Returns the acceleration value on the Y axis in g. Can be in range from -2 g to 2 g."; // untranslated Blockly.Msg.SENSOR_ACCELEROMETER_Z_GETSAMPLE_TOOLTIP_ARDUINO = "Returns the acceleration value on the Z axis in g. Can be in range from -4 g to 4 g."; // untranslated Blockly.Msg.SENSOR_ACCELEROMETER_Z_GETSAMPLE_TOOLTIP_SENSEBOX = "Returns the acceleration value on the Z axis in g. Can be in range from -2 g to 2 g."; // untranslated Blockly.Msg.SENSOR_AMBIENTLIGHT = "ambientlight sensor"; // untranslated Blockly.Msg.SENSOR_ANALOGOUT = "sensor analog"; // untranslated Blockly.Msg.SENSOR_ANY = "anyplace"; // untranslated Blockly.Msg.SENSOR_APDS9960 = "APDS9960"; // untranslated Blockly.Msg.SENSOR_ARM_TOOLTIP = "Returns true, if the selected part of the arm is touched, otherwise false."; // untranslated Blockly.Msg.SENSOR_BATTERY = "battery charge"; // untranslated Blockly.Msg.SENSOR_BOTTOM = "bottom"; // untranslated Blockly.Msg.SENSOR_CALIBRATE = "calibrate"; // untranslated Blockly.Msg.SENSOR_CODE = "code pad"; // untranslated Blockly.Msg.SENSOR_COLOUR = "colour sensor"; // untranslated Blockly.Msg.SENSOR_COLOURTCS3472 = "colour sensor TCS3472"; // untranslated Blockly.Msg.SENSOR_COLOUR_EDISON = "line tracker"; // untranslated Blockly.Msg.SENSOR_COMPASS = "compass sensor"; // untranslated Blockly.Msg.SENSOR_COMPASS_EV3 = "HT compass sensor"; // untranslated Blockly.Msg.SENSOR_DATA_READY = "ready?"; // untranslated Blockly.Msg.SENSOR_DETECTFACE = "face detector"; // untranslated Blockly.Msg.SENSOR_DETECTFACE_GETSAMPLE_TOOLTIP = "Detect a face previously learned and saved."; // untranslated Blockly.Msg.SENSOR_DETECTMARK = "NAO Mark sensor"; // untranslated Blockly.Msg.SENSOR_DETECTMARK_GETSAMPLE_TOOLTIP = "Returns one or an array of IDs (number) of the last detected NAO Mark(s). If no marks are detected, -1 or an array consisting of 1 element with value -1 is returned. For a list of NAO marks with corresponding numbers refer to the wiki."; // untranslated Blockly.Msg.SENSOR_DIGITALOUT = "sensor digital"; // untranslated Blockly.Msg.SENSOR_DROP = "drop sensor"; // untranslated Blockly.Msg.SENSOR_DROP_GETSAMPLE_TOOLTIP = "Gets the current reading from the drop sensor in percent."; // untranslated Blockly.Msg.SENSOR_DROP_OFF = "drop-off sensor"; // untranslated Blockly.Msg.SENSOR_ELECTRICCURRENT = "current sensor"; // untranslated Blockly.Msg.SENSOR_ELECTRICCURRENT_GETSAMPLE_TOOLTIP = "Get the electric current from the motorboard in the selected joint."; // untranslated Blockly.Msg.SENSOR_ENCODER = "encoder"; // untranslated Blockly.Msg.SENSOR_ENVIRONMENTAL = "environmental sensor"; // untranslated Blockly.Msg.SENSOR_ENVIRONMENTAL_GETSAMPLE_TOOLTIP = "Returns values from the environmental sensor."; // untranslated Blockly.Msg.SENSOR_FLAME = "flame sensor"; // untranslated Blockly.Msg.SENSOR_FSR = "force-sensing resistor"; // untranslated Blockly.Msg.SENSOR_FSR_GETSAMPLE_TOOLTIP = "Get the current reading from the force sensitive resistor under the feet of the robot."; // untranslated Blockly.Msg.SENSOR_GESTURE = "gesture"; // untranslated Blockly.Msg.SENSOR_GESTURE_ACTIVE = "active?"; // untranslated Blockly.Msg.SENSOR_GESTURE_DOWN = "upside down"; // untranslated Blockly.Msg.SENSOR_GESTURE_DOWN_GETSAMPLE_TOOLTIP = "Returns »true« if the posture is down."; // untranslated Blockly.Msg.SENSOR_GESTURE_FACE_DOWN = "at the front side"; // untranslated Blockly.Msg.SENSOR_GESTURE_FACE_DOWN_GETSAMPLE_TOOLTIP = "Returns »true« if the posture is face down."; // untranslated Blockly.Msg.SENSOR_GESTURE_FACE_UP = "at the back"; // untranslated Blockly.Msg.SENSOR_GESTURE_FACE_UP_GETSAMPLE_TOOLTIP = "Returns »true« if the posture is face up."; // untranslated Blockly.Msg.SENSOR_GESTURE_FREEFALL = "freely falling"; // untranslated Blockly.Msg.SENSOR_GESTURE_FREEFALL_GETSAMPLE_TOOLTIP = "Returns »true« if it is free falling."; // untranslated Blockly.Msg.SENSOR_GESTURE_SHAKE = "shaking"; // untranslated Blockly.Msg.SENSOR_GESTURE_SHAKE_GETSAMPLE_TOOLTIP = "Returns »true« if it is shaken."; // untranslated Blockly.Msg.SENSOR_GESTURE_TOOLTIP = "Is the system in the selected state?"; // untranslated Blockly.Msg.SENSOR_GESTURE_UP = "upright"; // untranslated Blockly.Msg.SENSOR_GESTURE_UP_GETSAMPLE_TOOLTIP = "Returns »true« if the posture is upright."; // untranslated Blockly.Msg.SENSOR_GET = "get"; // untranslated Blockly.Msg.SENSOR_GET_SAMPLE = "get value"; // untranslated Blockly.Msg.SENSOR_GPS_ALTITUDE_GETSAMPLE_TOOLTIP_SENSEBOX = "Returns the altitude in meters."; // untranslated Blockly.Msg.SENSOR_GPS_DATE_GETSAMPLE_TOOLTIP_SENSEBOX = "Returns the current date."; // untranslated Blockly.Msg.SENSOR_GPS_LATITUDE_GETSAMPLE_TOOLTIP_SENSEBOX = "Returns the latitude in degree."; // untranslated Blockly.Msg.SENSOR_GPS_LONGITUDE_GETSAMPLE_TOOLTIP_SENSEBOX = "Returns the longitude in degree."; // untranslated Blockly.Msg.SENSOR_GPS_SENSEBOX = "GPS receiver"; // untranslated Blockly.Msg.SENSOR_GPS_SPEED_GETSAMPLE_TOOLTIP_SENSEBOX = "Returns the speed in km/h."; // untranslated Blockly.Msg.SENSOR_GPS_TIME_GETSAMPLE_TOOLTIP_SENSEBOX = "Returns the current time."; // untranslated Blockly.Msg.SENSOR_GROVE = "Grove"; // untranslated Blockly.Msg.SENSOR_GYRO = "gyroscope"; // untranslated Blockly.Msg.SENSOR_GYRO_TILTED_GETSAMPLE_TOOLTIP_WEDO = "Is the tilt sensors position the indicated manner?"; // untranslated Blockly.Msg.SENSOR_GYRO_WEDO = "tilt sensor"; // untranslated Blockly.Msg.SENSOR_GYRO_X_GETSAMPLE_TOOLTIP_ARDUINO = "Returns the gyroscope output on the X axis in degrees per second. Can be in range from -2000 °/s to 2000 °/s."; // untranslated Blockly.Msg.SENSOR_GYRO_Y_GETSAMPLE_TOOLTIP_ARDUINO = "Returns the gyroscope output on the Y axis in degrees per second. Can be in range from -2000 °/s to 2000 °/s."; // untranslated Blockly.Msg.SENSOR_GYRO_Z_GETSAMPLE_TOOLTIP_ARDUINO = "Returns the gyroscope output on the Z axis in degrees per second. Can be in range from -2000 °/s to 2000 °/s."; // untranslated Blockly.Msg.SENSOR_HTCOLOUR = "HT colour sensor"; // untranslated Blockly.Msg.SENSOR_HTS221 = "HTS221"; // untranslated Blockly.Msg.SENSOR_HUMIDITY = "humidity sensor"; // untranslated Blockly.Msg.SENSOR_HUMIDITY_ARDUINO = "humidity sensor DHT11"; // untranslated Blockly.Msg.SENSOR_HUMIDITY_GETSAMPLE_TOOLTIP = "Gets the current reading from the humidity sensor in percent."; // untranslated Blockly.Msg.SENSOR_HUMIDITY_SENSEBOX = "humidity/temperature sensor HDC1080"; // untranslated Blockly.Msg.SENSOR_INFRARED = "infrared sensor"; // untranslated Blockly.Msg.SENSOR_INFRARED_DISTANCE_GETSAMPLE_TOOLTIP_WEDO = "Gets the current relative distance from the infrared sensor. The values are between 1, close, and 10, further away."; // untranslated Blockly.Msg.SENSOR_IRSEEKER = "HT infrared sensor"; // untranslated Blockly.Msg.SENSOR_IRSEEKER_EDISON = "IR seeker"; // untranslated Blockly.Msg.SENSOR_IRSEEKER_GETSAMPLE_TOOLTIP = "Gets the position of an infrared beacon."; // untranslated Blockly.Msg.SENSOR_IRSEEKER_RCCODE_GETSAMPLE_TOOLTIP_EDISON = "Receives a message from a remote control."; // untranslated Blockly.Msg.SENSOR_IS_ARM = "is arm"; // untranslated Blockly.Msg.SENSOR_IS_PIN = "is"; // untranslated Blockly.Msg.SENSOR_IS_PRESSED = "pressed?"; // untranslated Blockly.Msg.SENSOR_IS_TILTED = "tilted?"; // untranslated Blockly.Msg.SENSOR_IS_TOUCHED = "touched?"; // untranslated Blockly.Msg.SENSOR_JOYSTICK = "joystick"; // untranslated Blockly.Msg.SENSOR_KEY = "button"; // untranslated Blockly.Msg.SENSOR_KEYPAD = "keypad"; // untranslated Blockly.Msg.SENSOR_KEY_ANY = "any"; // untranslated Blockly.Msg.SENSOR_KEY_DOWN = "down"; // untranslated Blockly.Msg.SENSOR_KEY_ENTER = "enter"; // untranslated Blockly.Msg.SENSOR_KEY_ESCAPE = "escape"; // untranslated Blockly.Msg.SENSOR_KEY_LEFT = "left"; // untranslated Blockly.Msg.SENSOR_KEY_PLAY = "play"; // untranslated Blockly.Msg.SENSOR_KEY_REC = "record"; // untranslated Blockly.Msg.SENSOR_KEY_RIGHT = "right"; // untranslated Blockly.Msg.SENSOR_KEY_STOP = "stop"; // untranslated Blockly.Msg.SENSOR_KEY_UP = "up"; // untranslated Blockly.Msg.SENSOR_LIGHT = "light sensor"; // untranslated Blockly.Msg.SENSOR_LIGHTVEML = "visible/UV light sensor"; // untranslated Blockly.Msg.SENSOR_LIGHTVEML_LIGHT_GETSAMPLE_TOOLTIP = "Reads the current value of the visible light sensor in lux. The value is between 0 to 220000 lux."; // untranslated Blockly.Msg.SENSOR_LIGHTVEML_UVLIGHT_GETSAMPLE_TOOLTIP = "Reads the current value of the UV light sensor in μW/cm². The value is between 0 and more than 1000."; // untranslated Blockly.Msg.SENSOR_LIGHT_LIGHT_GETSAMPLE_TOOLTIP_EDISON = "Gets the current reading of the light sensor"; // untranslated Blockly.Msg.SENSOR_LIGHT_LINETRACKER = "line tracker"; // untranslated Blockly.Msg.SENSOR_LPS22HB = "LPS22HB"; // untranslated Blockly.Msg.SENSOR_LSM9DS1 = "LSM9DS1"; // untranslated Blockly.Msg.SENSOR_MIC = "microphone"; // untranslated Blockly.Msg.SENSOR_MOISTURE = "moisture sensor"; // untranslated Blockly.Msg.SENSOR_MOISTURE_GETSAMPLE_TOOLTIP = "Gets the current reading from the moisture sensor in percent."; // untranslated Blockly.Msg.SENSOR_MOTION = "motion sensor"; // untranslated Blockly.Msg.SENSOR_MOTION_ARDUINO = "motion sensor HC-SR501"; // untranslated Blockly.Msg.SENSOR_MOTION_GETSAMPLE_TOOLTIP = "Gets the current reading from the motion sensor (true/false)."; // untranslated Blockly.Msg.SENSOR_MS_TIMER = "in ms"; // untranslated Blockly.Msg.SENSOR_OBSTACLEDETECTOR = "Obstacle detector"; // untranslated Blockly.Msg.SENSOR_OUT = "sensor"; // untranslated Blockly.Msg.SENSOR_OUT_ANALOG_GETSAMPLE_TOOLTIP = "Returns the value from the specified analog pin. The value is between 0 and 1024."; // untranslated Blockly.Msg.SENSOR_OUT_DIGITAL_GETSAMPLE_TOOLTIP = "Returns the value from the specified digital pin. The value is either HIGH »1« or LOW »0«."; // untranslated Blockly.Msg.SENSOR_PARTICLE = "SDS011 particle sensor"; // untranslated Blockly.Msg.SENSOR_PARTICLE_PM10_GETSAMPLE_TOOLTIP = "Reads the current value of PM10 from the particle sensor."; // untranslated Blockly.Msg.SENSOR_PARTICLE_PM25_GETSAMPLE_TOOLTIP = "Reads the current value of PM2.5 from the particle sensor."; // untranslated Blockly.Msg.SENSOR_PIN = "pin"; // untranslated Blockly.Msg.SENSOR_PINTOUCH = "pin"; // untranslated Blockly.Msg.SENSOR_PINTOUCH_BOB3 = "arm"; // untranslated Blockly.Msg.SENSOR_PIN_ANALOG_GETSAMPLE_TOOLTIP = "Returns the value from the specified analog pin. The value is between 0 and 1024."; // untranslated Blockly.Msg.SENSOR_PIN_DIGITAL_GETSAMPLE_TOOLTIP = "Returns the value from the specified digital pin. The value is either HIGH »1« or LOW »0«."; // untranslated Blockly.Msg.SENSOR_PIN_PULSEHIGH_GETSAMPLE_TOOLTIP = "Returns the pulse HIGH on a pin in microseconds or -1 if no complete pulse was received within the timeout."; // untranslated Blockly.Msg.SENSOR_PIN_PULSELOW_GETSAMPLE_TOOLTIP = "Returns the pulse LOW on a pin in microseconds or -1 if no complete pulse was received within the timeout."; // untranslated Blockly.Msg.SENSOR_POTENTIOMETER = "potentiometer"; // untranslated Blockly.Msg.SENSOR_POTENTIOMETER_GETSAMPLE_TOOLTIP = "Gets the current reading from the potentiometer in volts (0-5V)."; // untranslated Blockly.Msg.SENSOR_PULSE = "pulse sensor"; // untranslated Blockly.Msg.SENSOR_PULSE_GETSAMPLE_TOOLTIP = "Gets the current reading from the pulse sensor."; // untranslated Blockly.Msg.SENSOR_PULSE_GETSAMPLE_TOOLTIP_ARDUINO = "Gets the current reading from the pulse sensor. The value is between 0 and 1023."; // untranslated Blockly.Msg.SENSOR_RADIO_RSSI = "radio RSSI sensor"; // untranslated Blockly.Msg.SENSOR_RESET = "reset"; // untranslated Blockly.Msg.SENSOR_RESET_II = ""; // untranslated Blockly.Msg.SENSOR_RESET_TOOLTIP_EDISON = "Resets the sensors and clears the values."; // untranslated Blockly.Msg.SENSOR_RFID = "RFID reader"; // untranslated Blockly.Msg.SENSOR_RFID_ARDUINO = "RFID-RC522 reader"; // untranslated Blockly.Msg.SENSOR_RFID_GETSAMPLE_TOOLTIP = "Gets the current reading from the RFID reader."; // untranslated Blockly.Msg.SENSOR_RSSI = "signal strength"; // untranslated Blockly.Msg.SENSOR_RSSI_VALUE_GETSAMPLE_TOOLTIP = "Gets the signal strength from the last received message."; // untranslated Blockly.Msg.SENSOR_SONAR = "sonar"; // untranslated Blockly.Msg.SENSOR_SOUND = "sound sensor"; // untranslated Blockly.Msg.SENSOR_SOUND_CALLIOPE = "microphone"; // untranslated Blockly.Msg.SENSOR_SOUND_CLAP_GETSAMPLE_TOOLTIP_EDISON = "Is a clap detected?"; // untranslated Blockly.Msg.SENSOR_TEMPERATURE = "temperature sensor"; // untranslated Blockly.Msg.SENSOR_TEMPERATURE_ARDUINO = "temperature sensor TMP36"; // untranslated Blockly.Msg.SENSOR_TEMPERATURE_PRESSURE_GETSAMPLE_TOOLTIP = "Gets the current reading of the air pressure sensor in Pascal. Normal air pressure is 101325 Pascal."; // untranslated Blockly.Msg.SENSOR_TEMPERATURE_SENSEBOX = "temperature/pressure sensor BMP280"; // untranslated Blockly.Msg.SENSOR_TIME = "time"; // untranslated Blockly.Msg.SENSOR_TIMER = "timer"; // untranslated Blockly.Msg.SENSOR_TOP = "top"; // untranslated Blockly.Msg.SENSOR_TOUCH = "touch sensor"; // untranslated Blockly.Msg.SENSOR_ULTRASONIC = "ultrasonic sensor"; // untranslated Blockly.Msg.SENSOR_ULTRASONIC_ARDUINO = "ultrasonic sensor HC-SR04"; // untranslated Blockly.Msg.SENSOR_ULTRASONIC_DISTANCE_GETSAMPLE_TOOLTIP_ARDUINO = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to messure is 400 cm."; // untranslated Blockly.Msg.SENSOR_ULTRASONIC_DISTANCE_GETSAMPLE_TOOLTIP_MBOT = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to messure is 400 cm. Minimum distance tp measure is 3 cm."; // untranslated Blockly.Msg.SENSOR_UNIT_ACCEL = "m/s²"; // untranslated Blockly.Msg.SENSOR_UNIT_AMPERE = "A"; // untranslated Blockly.Msg.SENSOR_UNIT_CM = "cm"; // untranslated Blockly.Msg.SENSOR_UNIT_DEGREE = "°"; // untranslated Blockly.Msg.SENSOR_UNIT_DEGREE_PER_SECOND = "°/s"; // untranslated Blockly.Msg.SENSOR_UNIT_IRRADIANCE = "μW/cm²"; // untranslated Blockly.Msg.SENSOR_UNIT_LUX = "lx"; // untranslated Blockly.Msg.SENSOR_UNIT_METER = "m"; // untranslated Blockly.Msg.SENSOR_UNIT_MILLIG = "milli-g"; // untranslated Blockly.Msg.SENSOR_UNIT_MM = "mm"; // untranslated Blockly.Msg.SENSOR_UNIT_MS = "ms"; // untranslated Blockly.Msg.SENSOR_UNIT_NEWTON = "N"; // untranslated Blockly.Msg.SENSOR_UNIT_OMEGA = "ω"; // untranslated Blockly.Msg.SENSOR_UNIT_PASCAL = "Pascal"; // untranslated Blockly.Msg.SENSOR_UNIT_PERCENT = "%"; // untranslated Blockly.Msg.SENSOR_UNIT_PM = "μg/m³"; // untranslated Blockly.Msg.SENSOR_UNIT_SPEED = "km/h"; // untranslated Blockly.Msg.SENSOR_UNIT_VOLT = "V"; // untranslated Blockly.Msg.SENSOR_VALUE = "value"; // untranslated Blockly.Msg.SENSOR_WALL = "wall sensor"; // untranslated Blockly.Msg.SERVER_NOT_AVAILABLE = "The Open Roberta Lab is currently not available. </br>Your internet connection was interrupted. If you currently have an EV3 connected via the USB cable solve this with a click on the programming environment.<br>If this problem persists please check your internet connection and try to reload this website. If you have this problem again, please don't hesitate to contact us via mail:</br>support-o-r@iais.fraunhofer.de"; // untranslated Blockly.Msg.SERVO_MOTOR = "servo motor"; // untranslated Blockly.Msg.SERVO_MOTOR_ARDUINO = "servo motor SG90"; // untranslated Blockly.Msg.SERVO_S1 = "servo motor S1"; // untranslated Blockly.Msg.SERVO_S2 = "servo motor S2"; // untranslated Blockly.Msg.SERVO_TOOLTIP = "Represents a servo motor."; // untranslated Blockly.Msg.SET = "set"; // untranslated Blockly.Msg.SETLANGUAGE_TOOLTIP = "Set the language."; // untranslated Blockly.Msg.SET_LED = "turn LED"; // untranslated Blockly.Msg.SET_RELAY = "turn relay"; // untranslated Blockly.Msg.SET_RELAY_ARDUINO = "turn relay SRD-05VDC-SL-C"; // untranslated Blockly.Msg.SET_RELAY_TOOLTIP = "Turns the relay on or off"; // untranslated Blockly.Msg.SET_RGB_LED = "turn RGB LED"; // untranslated Blockly.Msg.SHARE_PROGRAMS_USERGROUP_HINT = "To share programs with a user group, open your program list and share a program with a user group."; // untranslated Blockly.Msg.SHARE_WITH_USER = "Share your program with another user ..."; // untranslated Blockly.Msg.SHARE_WITH_USERGROUP = "Share your program with the members of one of your user groups ..."; // untranslated Blockly.Msg.SIDE_BRUSH_OFF = "turn side brush off"; // untranslated Blockly.Msg.SIDE_BRUSH_OFF_TOOLTIP = "Turns the side brush off."; // untranslated Blockly.Msg.SIDE_BRUSH_STATUS = "turn side brush"; // untranslated Blockly.Msg.SIDE_BRUSH_TOOLTIP = "Turns the side brush on or off ."; // untranslated Blockly.Msg.SIM_BLOCK_NOT_SUPPORTED = "Unfortunately you can not use this block in the simulation!"; // untranslated Blockly.Msg.SIM_CONFIGURATION_WARNING_SENSOR_MISSING = "This sensor is not in the configuration! The behaviour of the program on the real robot will be different than expected!"; // untranslated Blockly.Msg.SIM_CONFIGURATION_WARNING_WRONG_INFRARED_SENSOR_PORT = "The infrared sensor is not connected in the configuration! The behaviour of the program on the real robot will be different than expected, please check the robot configuration!"; // untranslated Blockly.Msg.SIM_CONFIGURATION_WARNING_WRONG_SENSOR_PORT = "In this block you have used a wrong sensor port! The behaviour of the program on the real robot will be different than expected, please check the robot configuration!"; // untranslated Blockly.Msg.SINGLE_MOTOR_ON_TOOLTIP_CALLIOPE = "Turns the single motor on with a specific power. Power can be positiv or negativ for reverse direction."; // untranslated Blockly.Msg.SLEEP = "sleep"; // untranslated Blockly.Msg.SLOT_FRONT = "front"; // untranslated Blockly.Msg.SLOT_LEFT = "left"; // untranslated Blockly.Msg.SLOT_LEFT_PITCH = "left pitch"; // untranslated Blockly.Msg.SLOT_LEFT_ROLL = "left roll"; // untranslated Blockly.Msg.SLOT_LEFT_YAW = "left yaw"; // untranslated Blockly.Msg.SLOT_LEFT_YAW_PITCH = "left yaw pitch"; // untranslated Blockly.Msg.SLOT_MIDDLE = "middle"; // untranslated Blockly.Msg.SLOT_PITCH = "pitch"; // untranslated Blockly.Msg.SLOT_REAR = "rear"; // untranslated Blockly.Msg.SLOT_RIGHT = "right"; // untranslated Blockly.Msg.SLOT_RIGHT_PITCH = "right pitch"; // untranslated Blockly.Msg.SLOT_RIGHT_ROLL = "right roll"; // untranslated Blockly.Msg.SLOT_RIGHT_YAW = "right yaw"; // untranslated Blockly.Msg.SLOT_RIGHT_YAW_PITCH = "right yaw pitch"; // untranslated Blockly.Msg.SLOT_SIDE = "side"; // untranslated Blockly.Msg.SLOT_TILTED_ANY = "any"; // untranslated Blockly.Msg.SLOT_TILTED_BACK = "back"; // untranslated Blockly.Msg.SLOT_TILTED_DOWN = "down"; // untranslated Blockly.Msg.SLOT_TILTED_FRONT = "front"; // untranslated Blockly.Msg.SLOT_TILTED_NO = "not"; // untranslated Blockly.Msg.SLOT_TILTED_UP = "up"; // untranslated Blockly.Msg.SLOT_YAW = "yaw"; // untranslated Blockly.Msg.SOCKET = "socket"; // untranslated Blockly.Msg.SOUND_GETSAMPLE_TOOLTIP = "Gets the current reading from the sound sensor in the range 0 to 100. 0 is quiet and 100 is loud."; // untranslated Blockly.Msg.SOUND_TOOLTIP = "Represents a sound sensor."; // untranslated Blockly.Msg.SOURCE_CODE_EDITOR_BUILD_TOOLTIP = "Build the source code."; // untranslated Blockly.Msg.SOURCE_CODE_EDITOR_CLOSE_CONFIRMATION = "All your changes will be lost!"; // untranslated Blockly.Msg.SOURCE_CODE_EDITOR_IMPORT_TOOLTIP = "Import current NEPO program."; // untranslated Blockly.Msg.SOURCE_CODE_EDITOR_PLACEHOLDER = "Import current NEPO program or just start typing"; // untranslated Blockly.Msg.SOURCE_CODE_EDITOR_RUN_TOOLTIP = "Run on the robot."; // untranslated Blockly.Msg.SOURCE_CODE_EDITOR_UPLOAD_TOOLTIP = "Upload the source code."; // untranslated Blockly.Msg.SSID = "SSID"; // untranslated Blockly.Msg.START = "start"; // untranslated Blockly.Msg.START_ACTIVITY = "activity"; // untranslated Blockly.Msg.START_ACTIVITY_TOOLTIP = "Starts additional activity."; // untranslated Blockly.Msg.START_PROGRAM = "start"; // untranslated Blockly.Msg.START_PROGRAM_AUTOMOMOUSLIFE = "autonomous behaviour"; // untranslated Blockly.Msg.START_PROGRAM_DEBUG = "show sensor data"; // untranslated Blockly.Msg.START_TOOLTIP = "The starting point for the main program."; // untranslated Blockly.Msg.STEPMOTOR_TOOLTIP = "Represents a step motor."; // untranslated Blockly.Msg.STEPS_PER_REVOLUTION = "steps per revolution"; // untranslated Blockly.Msg.STEP_MOTOR = "step motor"; // untranslated Blockly.Msg.STEP_MOTOR_ARDUINO = "step motor 28BYJ-48"; // untranslated Blockly.Msg.STEP_MOTOR_ON_TOOLTIP = "Turns motor on with a provided speed in rpm and stops motor after execution of provided number of rotations."; // untranslated Blockly.Msg.STRENGTH = "strength"; // untranslated Blockly.Msg.SWITCH = "switch"; // untranslated Blockly.Msg.SWITCH_LED_MATRIX_TOOLTIP = "Enables/Disables the LED matrix to use the dual purpose pins."; // untranslated Blockly.Msg.TAB_CONFIGURATION = "Robot configuration"; // untranslated Blockly.Msg.TAB_PROGRAM = "Program"; // untranslated Blockly.Msg.TEMPERATURE_GETSAMPLE_TOOLTIP = "Gets the current reading from the temperature sensor in °C."; // untranslated Blockly.Msg.TEMPERATURE_TOOLTIP = "Represents a temperature sensor."; // untranslated Blockly.Msg.TEXT_APPEND_APPENDTEXT = "shto tekst"; Blockly.Msg.TEXT_APPEND_HELPURL = "https://github.com/google/blockly/wiki/Text#text-modification"; // untranslated Blockly.Msg.TEXT_APPEND_TO = "ne"; Blockly.Msg.TEXT_APPEND_TOOLTIP = "shto tekst tek varibla '%1'."; Blockly.Msg.TEXT_CAST_CHAR_TONUMBER = "cast %1 at index %2 to Number"; // untranslated Blockly.Msg.TEXT_CAST_CHAR_TONUMBER_TOOLTIP = "Convert the character at the given position in this string into the corresponding ASCII number. The first character in the string is at position 0!"; // untranslated Blockly.Msg.TEXT_CAST_STRING_TONUMBER = "cast %1 to Number"; // untranslated Blockly.Msg.TEXT_CAST_STRING_TONUMBER_TOOLTIP = "Convert this string into a number, if it contains a number."; // untranslated Blockly.Msg.TEXT_CHANGECASE_HELPURL = "https://github.com/google/blockly/wiki/Text#adjusting-text-case"; // untranslated Blockly.Msg.TEXT_CHANGECASE_OPERATOR_LOWERCASE = "me shkronja te vogla shtypi"; Blockly.Msg.TEXT_CHANGECASE_OPERATOR_TITLECASE = "Fillimi me shkronje te madhe shtypi"; Blockly.Msg.TEXT_CHANGECASE_OPERATOR_UPPERCASE = "me shkronja te medha shtypi"; Blockly.Msg.TEXT_CHANGECASE_TOOLTIP = "Kthe nje kopje te tekstit ne nje rast te ndryshem."; Blockly.Msg.TEXT_CHARAT_FIRST = "merr shkronjen e pare"; Blockly.Msg.TEXT_CHARAT_FROM_END = "merr shkronjen # nga fundi"; Blockly.Msg.TEXT_CHARAT_FROM_START = "merr shkronjen #"; Blockly.Msg.TEXT_CHARAT_HELPURL = "https://github.com/google/blockly/wiki/Text#extracting-text"; // untranslated Blockly.Msg.TEXT_CHARAT_INPUT_INTEXT = "ne tekst"; Blockly.Msg.TEXT_CHARAT_LAST = "merr shkronjen e fundit"; Blockly.Msg.TEXT_CHARAT_RANDOM = "merr nje shkronje te rastesishme"; Blockly.Msg.TEXT_CHARAT_TAIL = ""; // untranslated Blockly.Msg.TEXT_CHARAT_TOOLTIP = "Kthe nje shkronje nga nje pozicion i caktuar."; Blockly.Msg.TEXT_COMMENT_TOOLTIP = "Write a comment to your code here, to make it easier for you and others to read and understand your code. It will also generate an inline comment in the generated source code"; // untranslated Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TOOLTIP = "Shto nje gje ne tekst"; Blockly.Msg.TEXT_CREATE_JOIN_TITLE_JOIN = "bashkangjit"; Blockly.Msg.TEXT_CREATE_JOIN_TOOLTIP = "Shto, fshij, ose rirregullo sektoret për ta rikonfiguruar këtë bllok teksti."; Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_END = "ne shkronjen # nga fundi"; Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_START = "ne shkronjen #"; Blockly.Msg.TEXT_GET_SUBSTRING_END_LAST = "tek shkronja e fundit"; Blockly.Msg.TEXT_GET_SUBSTRING_HELPURL = "https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text"; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_INPUT_IN_TEXT = "ne tekst"; Blockly.Msg.TEXT_GET_SUBSTRING_START_FIRST = "merr vlerat qe vazhdojne me shkronjen e pare"; Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_END = "merr nenvargun nga shkronja # nga fundi"; Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_START = "Merr nenvargun nga shkronja #"; Blockly.Msg.TEXT_GET_SUBSTRING_TAIL = ""; // untranslated Blockly.Msg.TEXT_GET_SUBSTRING_TOOLTIP = "Pergjigjet me nje pjese te caktuar teksti."; Blockly.Msg.TEXT_INDEXOF_HELPURL = "https://github.com/google/blockly/wiki/Text#finding-text"; // untranslated Blockly.Msg.TEXT_INDEXOF_INPUT_INTEXT = "ne tekst"; Blockly.Msg.TEXT_INDEXOF_OPERATOR_FIRST = "gjej rastisjen e pare te tekstit"; Blockly.Msg.TEXT_INDEXOF_OPERATOR_LAST = "gjej rastisjen e fundit te tekstit"; Blockly.Msg.TEXT_INDEXOF_TAIL = ""; // untranslated Blockly.Msg.TEXT_INDEXOF_TOOLTIP = "Pergjigjet me indeksin e pare/fundit te rastisjes se tekstit te pare ne tekstin e dyte. Pergjigjet me 0 ne qofte se teksti nuk u gjet."; Blockly.Msg.TEXT_ISEMPTY_HELPURL = "https://github.com/google/blockly/wiki/Text#checking-for-empty-text"; // untranslated Blockly.Msg.TEXT_ISEMPTY_TITLE = "%1 eshte bosh"; Blockly.Msg.TEXT_ISEMPTY_TOOLTIP = "Kthehet e vertete neqoftese teksti i dhene eshte bosh."; Blockly.Msg.TEXT_JOIN_HELPURL = "https://github.com/google/blockly/wiki/Text#text-creation"; // untranslated Blockly.Msg.TEXT_JOIN_TITLE_CREATEWITH = "krijo tekst me"; Blockly.Msg.TEXT_JOIN_TOOLTIP = "Krijo nje pjese te tekstit duke bashkuar se bashku disa sende"; Blockly.Msg.TEXT_LENGTH_HELPURL = "https://github.com/google/blockly/wiki/Text#text-modification"; // untranslated Blockly.Msg.TEXT_LENGTH_TITLE = "gjatesi %1"; Blockly.Msg.TEXT_LENGTH_TOOLTIP = "Pergjigjet me nje numer shkronjash (duke perfshire hapesire) ne tekstin e dhene."; Blockly.Msg.TEXT_PRINT_HELPURL = "https://github.com/google/blockly/wiki/Text#printing-text"; // untranslated Blockly.Msg.TEXT_PRINT_TITLE = "printo %1"; Blockly.Msg.TEXT_PRINT_TOOLTIP = "Printo tekstin e caktuar, numer ose vlere tjeter."; Blockly.Msg.TEXT_PROMPT_HELPURL = "https://github.com/google/blockly/wiki/Text#getting-input-from-the-user"; // untranslated Blockly.Msg.TEXT_PROMPT_TOOLTIP_NUMBER = "Kerkoji perdoruesit nje numer."; Blockly.Msg.TEXT_PROMPT_TOOLTIP_TEXT = "Kerkoji perdoruesit ca tekst."; Blockly.Msg.TEXT_PROMPT_TYPE_NUMBER = "kerko nje numer me njoftim"; Blockly.Msg.TEXT_PROMPT_TYPE_TEXT = "kerko tekst me njoftim"; Blockly.Msg.TEXT_TEXT_HELPURL = "http://en.wikipedia.org/wiki/String_(computer_science)"; Blockly.Msg.TEXT_TEXT_TOOLTIP = "Nje shkronje, fjale, ose rresht teksti."; Blockly.Msg.TEXT_TRIM_HELPURL = "https://github.com/google/blockly/wiki/Text#trimming-removing-spaces"; // untranslated Blockly.Msg.TEXT_TRIM_OPERATOR_BOTH = "prit hapesirat nga te dyja anet"; Blockly.Msg.TEXT_TRIM_OPERATOR_LEFT = "prit hapesirat nga ana e majte"; Blockly.Msg.TEXT_TRIM_OPERATOR_RIGHT = "prit hapesirat nga ana e djathte"; Blockly.Msg.TEXT_TRIM_TOOLTIP = "Pergjigju me nje kopje te tekstit me hapesira te fshira nga njera ane ose te dyja anet."; Blockly.Msg.THETA = "theta"; // untranslated Blockly.Msg.TIMEOUT = "timeout"; // untranslated Blockly.Msg.TIMER_GETSAMPLE_TOOLTIP = "Gets the current reading from the timer."; // untranslated Blockly.Msg.TIMER_RESET_TOOLTIP = "Resets the timer."; // untranslated Blockly.Msg.TITLE = "title"; // untranslated Blockly.Msg.TO = "to"; // untranslated Blockly.Msg.TODAY = "Today"; // untranslated Blockly.Msg.TOOLBOX_ACTION = "Action"; // untranslated Blockly.Msg.TOOLBOX_ANIMATION = "Animation"; // untranslated Blockly.Msg.TOOLBOX_CLEANING = "Cleaning"; // untranslated Blockly.Msg.TOOLBOX_COLOUR = "Colours"; // untranslated Blockly.Msg.TOOLBOX_COMMUNICATION = "Messages"; // untranslated Blockly.Msg.TOOLBOX_CONTROL = "Control"; // untranslated Blockly.Msg.TOOLBOX_DECISION = "Decisions"; // untranslated Blockly.Msg.TOOLBOX_DISPLAY = "Display"; // untranslated Blockly.Msg.TOOLBOX_DRIVE = "Drive"; // untranslated Blockly.Msg.TOOLBOX_IMAGE = "Images"; // untranslated Blockly.Msg.TOOLBOX_INTEGRATED_SENSOR = "Integrated Sensors"; // untranslated Blockly.Msg.TOOLBOX_LIGHT = "Lights"; // untranslated Blockly.Msg.TOOLBOX_LIST = "Lists"; // untranslated Blockly.Msg.TOOLBOX_LOGIC = "Logic"; // untranslated Blockly.Msg.TOOLBOX_LOOP = "Loops"; // untranslated Blockly.Msg.TOOLBOX_MATH = "Math"; // untranslated Blockly.Msg.TOOLBOX_MOVE = "Move"; // untranslated Blockly.Msg.TOOLBOX_NEURAL_NETWORK = "Neural Network"; // untranslated Blockly.Msg.TOOLBOX_PIN = "Pin"; // untranslated Blockly.Msg.TOOLBOX_PROCEDURE = "Functions"; // untranslated Blockly.Msg.TOOLBOX_SENSOR = "Sensors"; // untranslated Blockly.Msg.TOOLBOX_SOUND = "Sounds"; // untranslated Blockly.Msg.TOOLBOX_TEXT = "Text"; // untranslated Blockly.Msg.TOOLBOX_VARIABLE = "Variables"; // untranslated Blockly.Msg.TOOLBOX_VISION = "Vision"; // untranslated Blockly.Msg.TOOLBOX_WAIT = "Wait"; // untranslated Blockly.Msg.TOOLBOX_WALK = "Walk"; // untranslated Blockly.Msg.TOUCH_ISPRESSED_TOOLTIP = "Is the touch sensor pressed?"; // untranslated Blockly.Msg.TOUCH_TOOLTIP = "Is the touch sensor pressed?"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION00 = "next"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION01 = "Welcome,<br>click on »next« and start a tour through the Open Roberta Lab.<br>I'll show you how you can program your robot with NEPO.<br>You can end this tour all the time with a click on »X« in the right upper corner."; // untranslated Blockly.Msg.TOUR1_DESCRIPTION02 = "The menu ;-)"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION03 = "Here you can find everything you need to program the robot!<br><span class='typcn typcn-document-text'></span> Save and load programs<br><span class='typcn typcn-ev3'></span> Connect your robot to the Open Roberta Lab or switch to another system<br><span class='typcn typcn-lightbulb'></span> Help for all kinds of problems<br><span class='typcn typcn-user'></span>Everything about user accounts, e.g. login or logoff<br><span class='typcn typcn-th-large-outline'></span> Look at the gallery and try great programs from other users!<br><span class='typcn typcn-world'></span> Click here to switch to another language"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION04 = "Click here and switch to the robot configuration"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION05 = "You can adapt the robot configuration later,<br>if you've constructed another robot.<br>If you don't have a robot and want to test your program in the simulation <br>this configuration is applied."; // untranslated Blockly.Msg.TOUR1_DESCRIPTION06 = "Click here and switch back to the programming area!"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION07 = "The toolbox.<br>Here you can find all programming blocks."; // untranslated Blockly.Msg.TOUR1_DESCRIPTION07a = "Once you are an experienced user you can switch here to the expert mode of the toolbox.<br>You will then find more blocks to program your robot.<br><span class='typcn typcn-media-stop-outline'></span> beginner mode<br><span class='typcn typcn-star-outline'></span> expert mode"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION08 = "Each program starts with the »program start« block.<br>Further programming blocks, which the robot should execute, should be attached to this block.<br>Just drag'n drop the desired block right under the start block."; // untranslated Blockly.Msg.TOUR1_DESCRIPTION09 = "Here you find some shortcuts!<br>From left to right:<br><span class='typcn typcn-media-play'></span> Click here to execute the program on the real robot<br><span class='typcn typcn-cloud-storage'></span> Save your program, but before that you need to sign in<br><span class='typcn typcn-zoom'></span> Click here and zoom in on the blocks, if you want to<br><span class='typcn typcn-archive'></span> The trashcan! Just move blocks into the trashcan and they will be deleted.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Attention: You cannot recover blocks once they are deleted!<br>"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION10 = "Click on »Action«"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION12 = "Now drag'n drop the new block just below the start-program-block so that they are connected"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION13 = "Now open the simulation ..."; // untranslated Blockly.Msg.TOUR1_DESCRIPTION13a = "and test your program in the simulation!"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION15 = "Perfect,<br>your robot is driving 20 cm forward,<br>this is what you have programmed!"; // untranslated Blockly.Msg.TOUR1_DESCRIPTION16 = "Bye and have fun trying out more!"; // untranslated Blockly.Msg.ULTRASONIC_GETSAMPLE_TOOLTIP = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to measure is 255 cm."; // untranslated Blockly.Msg.ULTRASONIC_TOOLTIP = "Represents an ultrasonic sensor."; // untranslated Blockly.Msg.UNDO = "Undo"; // untranslated Blockly.Msg.USERGROUP_ADD_MEMBERS = "Add members"; // untranslated Blockly.Msg.USERGROUP_CREATE = "Create new user group"; // untranslated Blockly.Msg.USERGROUP_CREATE_TOOLTIP = "Click here to create a new usergroup"; // untranslated Blockly.Msg.USERGROUP_DELETE_WITH_MEMBERS_WARNING = "Are your sure that you want to delete the usergroup including all members? No member did log in so far."; // untranslated Blockly.Msg.USERGROUP_GENERATED_MEMBERS = "Automatically generated members"; // untranslated Blockly.Msg.USERGROUP_GENERATED_MEMBERS_TOOLTIP = "Automatically genertated members are normal members of a user group. They are generated with a number as username, which you can change afterwards."; // untranslated Blockly.Msg.USERGROUP_LIST_DELETE_ALL_TOOLTIP = "Click here to delete all selected user groups."; // untranslated Blockly.Msg.USERGROUP_LIST_DELETE_TOOLTIP = "Click here to delete the user group."; // untranslated Blockly.Msg.USERGROUP_LOGIN_LOST_PASSWORD_HINT = "If you forgot your password, you can ask the owner of your user group to reset the password to the initial password for you. It will be the password you had to enter when you logged in first."; // untranslated Blockly.Msg.USERGROUP_MEMBER_CREATE_TOOLTIP = "Click here to add members to your usergroup."; // untranslated Blockly.Msg.USERGROUP_MEMBER_DEFAULT_PASSWORD_HINT = "The password for your account is not safe. Set your own password, so that only you can login to your account."; // untranslated Blockly.Msg.USERGROUP_MEMBER_LIST_DELETE_ALL_TOOLTIP = "Click here to delete all selected user group members."; // untranslated Blockly.Msg.USERGROUP_MEMBER_LIST_DELETE_TOOLTIP = "Click here to delete this user group member."; // untranslated Blockly.Msg.USERGROUP_MEMBER_LIST_RESET_ALL_PASSWORDS_TOOLTIP = "Click here to reset the password of all selected user group members to their corresponding default password."; // untranslated Blockly.Msg.USERGROUP_MEMBER_LIST_RESET_PASSWORD_TOOLTIP = "Click here to reset the password of this user group member to the default password."; // untranslated Blockly.Msg.USERGROUP_NAME_HINT = "The user group to which you want to log in has a name. Enter it here."; // untranslated Blockly.Msg.VACUUM_OFF = "turn vacuum off"; // untranslated Blockly.Msg.VACUUM_OFF_TOOLTIP = "Turns the vacuum off."; // untranslated Blockly.Msg.VACUUM_ON = "turn vacuum on %"; // untranslated Blockly.Msg.VACUUM_ON_TOOLTIP = "Turns on the vacuum speed in procent"; // untranslated Blockly.Msg.VALIDATION_CONTAINS_SPECIAL_CHARACTERS = "Valid special characters: »=+!?.,%#+&^@_-«"; // untranslated Blockly.Msg.VALIDATION_FIELD_REQUIRED = "This field cannot be empty!"; // untranslated Blockly.Msg.VALIDATION_MAX_LENGTH = "The max. lenght is 25 characters!"; // untranslated Blockly.Msg.VALIDATION_PASSWORD_MIN_LENGTH = "Password min. length is 6!"; // untranslated Blockly.Msg.VALIDATION_SECOND_PASSWORD_EQUAL = "The two passwords must be equal!"; // untranslated Blockly.Msg.VALIDATION_TOKEN_LENGTH = "Token length is 8 characters!"; // untranslated Blockly.Msg.VALIDATION_VALID_EMAIL_ADDRESS = "Please enter a valid email address!"; // untranslated Blockly.Msg.VALUE_TO = "value to"; // untranslated Blockly.Msg.VARIABLES_DEFAULT_NAME = "send"; Blockly.Msg.VARIABLES_GET_CREATE_SET = "Krijo 'vendos %1"; Blockly.Msg.VARIABLES_GET_HELPURL = "https://github.com/google/blockly/wiki/Variables#get"; // untranslated Blockly.Msg.VARIABLES_GET_TOOLTIP = "Pergjigjet me nje vlere te kesaj variable."; Blockly.Msg.VARIABLES_GLOBAL_DECLARE_TOOLTIP = "Declares a global variable."; // untranslated Blockly.Msg.VARIABLES_LOCAL_DECLARE_TOOLTIP = "Declares a local variable."; // untranslated Blockly.Msg.VARIABLES_SET = "vendos %1 ne %2"; Blockly.Msg.VARIABLES_SET_CREATE_GET = "Krijo 'merr %1"; Blockly.Msg.VARIABLES_SET_HELPURL = "https://github.com/google/blockly/wiki/Variables#set"; // untranslated Blockly.Msg.VARIABLES_SET_TOOLTIP = "Vendos kete variable te jete e barabarte me te dhenat ne hyrje."; Blockly.Msg.VARIABLES_TITLE = "variable"; // untranslated Blockly.Msg.VARIABLES_TYPE_ARRAY_BOOLEAN = "List Boolean"; // untranslated Blockly.Msg.VARIABLES_TYPE_ARRAY_COLOUR = "List Colour"; // untranslated Blockly.Msg.VARIABLES_TYPE_ARRAY_CONNECTION = "List Connection"; // untranslated Blockly.Msg.VARIABLES_TYPE_ARRAY_IMAGE = "List Image"; // untranslated Blockly.Msg.VARIABLES_TYPE_ARRAY_NUMBER = "List Number"; // untranslated Blockly.Msg.VARIABLES_TYPE_ARRAY_STRING = "List String"; // untranslated Blockly.Msg.VARIABLES_TYPE_BOOLEAN = "Boolean"; // untranslated Blockly.Msg.VARIABLES_TYPE_COLOUR = "Colour"; // untranslated Blockly.Msg.VARIABLES_TYPE_CONNECTION = "Connection"; // untranslated Blockly.Msg.VARIABLES_TYPE_IMAGE = "Image"; // untranslated Blockly.Msg.VARIABLES_TYPE_NUMBER = "Number"; // untranslated Blockly.Msg.VARIABLES_TYPE_STRING = "String"; // untranslated Blockly.Msg.VARIABLE_USED_BEFORE_DECLARATION = "The variable is used before declaration."; // untranslated Blockly.Msg.VOICE_PITCH = "voice pitch"; // untranslated Blockly.Msg.VOICE_SPEED = "voice speed"; // untranslated Blockly.Msg.WAIT = "wait ms"; // untranslated Blockly.Msg.WAIT_FOR_TOOLTIP = "Waits for sensor values."; // untranslated Blockly.Msg.WAIT_OR = "or wait for"; // untranslated Blockly.Msg.WAIT_TIME_TOOLTIP = "Waits for a certain time in milliseconds."; // untranslated Blockly.Msg.WAIT_TOOLTIP = "Waits for a condition becoming true."; // untranslated Blockly.Msg.WAIT_UNTIL = "wait until"; // untranslated Blockly.Msg.WIRELESS_TOOLTIP = "Represents a wireless connection."; // untranslated Blockly.Msg.WRITE_TO_PIN_TOOLTIP = "Sends the value to chosen pin."; // untranslated Blockly.Msg.X = "x"; // untranslated Blockly.Msg.XEND = "end of X axis"; // untranslated Blockly.Msg.XLABEL = "X axis label"; // untranslated Blockly.Msg.XSTART = "start of X axis"; // untranslated Blockly.Msg.XTICK = "distance between X ticks"; // untranslated Blockly.Msg.Y = "y"; // untranslated Blockly.Msg.YAW = "yaw"; // untranslated Blockly.Msg.YEND = "end of Y axis"; // untranslated Blockly.Msg.YES = "yes"; // untranslated Blockly.Msg.YLABEL = "Y axis label"; // untranslated Blockly.Msg.YOUNGER_THEN_14 = "I am younger than 16!"; // untranslated Blockly.Msg.YSTART = "start of Y axis"; // untranslated Blockly.Msg.YTICK = "distance between Y ticks"; // untranslated Blockly.Msg.Z = "z"; // untranslated Blockly.Msg.PROCEDURES_DEFRETURN_TITLE = Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE; Blockly.Msg.LISTS_GET_SUBLIST_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.ACTION_LEDBAR = Blockly.Msg.LEDBAR; Blockly.Msg.KEY_GETSAMPLE_TOOLTIP = Blockly.Msg.KEY_ISPRESSED_TOOLTIP; Blockly.Msg.SENSOR_INFRARED_GETSAMPLE_TOOLTIP = Blockly.Msg.INFRARED_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_PINTOUCH_PRESSED_GETSAMPLE_TOOLTIP = Blockly.Msg.PIN_ISTOUCHED_TOOLTIP; Blockly.Msg.SENSOR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_ACCELEROMETER_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_ACCELEROMETER_VALUE_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_HUMIDITY_TEMPERATURE_GETSAMPLE_TOOLTIP = Blockly.Msg.TEMPERATURE_GETSAMPLE_TOOLTIP; Blockly.Msg.MODE_DOWN = Blockly.Msg.SENSOR_GESTURE_DOWN; Blockly.Msg.SENSOR_COLOUR_RGB_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_RGB_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_ULTRASONIC_GETSAMPLE_TOOLTIP = Blockly.Msg.ULTRASONIC_GETSAMPLE_TOOLTIP; Blockly.Msg.MODE_UP = Blockly.Msg.SENSOR_GESTURE_UP; Blockly.Msg.LISTS_CREATE_WITH_ITEM_TITLE = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.SENSOR_HTCOLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_COLOUR_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_ENCODER_GETSAMPLE_TOOLTIP = Blockly.Msg.ENCODER_GETSAMPLE_TOOLTIP; Blockly.Msg.MODE_FACE_UP = Blockly.Msg.SENSOR_GESTURE_FACE_UP; Blockly.Msg.SENSOR_HTCOLOUR_LIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_LIGHT_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_COLOUR_LIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_LIGHT_GETSAMPLE_TOOLTIP; Blockly.Msg.MATH_CHANGE_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.TOUCH_GETSAMPLE_TOOLTIP = Blockly.Msg.TOUCH_ISPRESSED_TOOLTIP; Blockly.Msg.CONTROLS_FOR_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.MODE_FACE_DOWN = Blockly.Msg.SENSOR_GESTURE_FACE_DOWN; Blockly.Msg.CONTROLS_IF_ELSE_TITLE_ELSE = Blockly.Msg.CONTROLS_IF_MSG_ELSE; Blockly.Msg.SENSOR_COLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP; Blockly.Msg.HTCOLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_SOUND_GETSAMPLE_TOOLTIP_CALLIOPE = Blockly.Msg.MICROPHONE_GETSAMPLE_TOOLTIP; Blockly.Msg.MODE_FREEFALL = Blockly.Msg.SENSOR_GESTURE_FREEFALL; Blockly.Msg.PROCEDURES_DEFRETURN_DO = Blockly.Msg.PROCEDURES_DEFNORETURN_DO; Blockly.Msg.LISTS_GET_INDEX_HELPURL = Blockly.Msg.LISTS_INDEX_OF_HELPURL; Blockly.Msg.SENSOR_TIMER_GETSAMPLE_TOOLTIP = Blockly.Msg.TIMER_GETSAMPLE_TOOLTIP; Blockly.Msg.LISTS_INDEX_OF_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.SENSOR_ACCELEROMETER_VALUE_GETSAMPLE_TOOLTIP = Blockly.Msg.ACCELEROMETER_ROTATION_TOOLTIP; Blockly.Msg.ORA_ROBOT_PUSH_RUN = Blockly.Msg.MESSAGE_EDIT_START; Blockly.Msg.LISTS_SET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT = Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT; Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.SENSOR_HUMIDITY_HUMIDITY_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_HUMIDITY_GETSAMPLE_TOOLTIP; Blockly.Msg.MODE_SHAKE = Blockly.Msg.SENSOR_GESTURE_SHAKE; Blockly.Msg.SENSOR_TEMPERATURE_TEMPERATURE_GETSAMPLE_TOOLTIP = Blockly.Msg.TEMPERATURE_GETSAMPLE_TOOLTIP; Blockly.Msg.CONTROLS_IF_MSG_THEN = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.PROCEDURES_DEFRETURN_PROCEDURE = Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE; Blockly.Msg.SENSOR_GYRO_GETSAMPLE_TOOLTIP = Blockly.Msg.GYRO_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_BATTERY_GETSAMPLE_TOOLTIP = Blockly.Msg.BATTERY_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_LIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.LIGHT_GETSAMPLE_TOOLTIP; Blockly.Msg.HTCOLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP; Blockly.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF = Blockly.Msg.CONTROLS_IF_MSG_ELSEIF; Blockly.Msg.LISTS_GET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST; Blockly.Msg.CONTROLS_FOREACH_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.SENSOR_INFRARED_PRESENCE_GETSAMPLE_TOOLTIP = Blockly.Msg.INFRARED_PRESENCE_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_COMPASS_GETSAMPLE_TOOLTIP = Blockly.Msg.COMPASS_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_HTCOLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_GETSAMPLE_TOOLTIP; Blockly.Msg.CONTROLS_IF_IF_TITLE_IF = Blockly.Msg.CONTROLS_IF_MSG_IF; Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO; Blockly.Msg.SENSOR_SOUND_GETSAMPLE_TOOLTIP = Blockly.Msg.SOUND_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_FLAME_GETSAMPLE_TOOLTIP = Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP; Blockly.Msg.ACTION_FOURDIGITDISPLAY = Blockly.Msg.FOURDIGITDISPLAY; Blockly.Msg.SENSOR_COLOURTCS3472_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_HTCOLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP; Blockly.Msg.HTCOLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP; Blockly.Msg.HTCOLOUR_LIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_LIGHT_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_INFRARED_DISTANCE_GETSAMPLE_TOOLTIP = Blockly.Msg.INFRARED_DISTANCE_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_HTCOLOUR_RGB_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_RGB_GETSAMPLE_TOOLTIP; Blockly.Msg.TEXT_APPEND_VARIABLE = Blockly.Msg.VARIABLES_DEFAULT_NAME; Blockly.Msg.SENSOR_KEY_GETSAMPLE_TOOLTIP = Blockly.Msg.KEY_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_TEMPERATURE_GETSAMPLE_TOOLTIP = Blockly.Msg.TEMPERATURE_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_TOUCH_GETSAMPLE_TOOLTIP = Blockly.Msg.TOUCH_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_COLOURTCS3472_RGB_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_RGB_GETSAMPLE_TOOLTIP; Blockly.Msg.SENSOR_COLOURTCS3472_LIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_LIGHT_GETSAMPLE_TOOLTIP; Blockly.Msg.HTCOLOUR_RGB_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_RGB_GETSAMPLE_TOOLTIP;
Clazz.declarePackage ("JSV.source"); Clazz.load (["JSV.source.JDXHeader"], "JSV.source.JDXDataObject", ["java.lang.Character", "$.Double", "JU.DF", "$.PT", "JSV.common.Annotation", "$.Coordinate", "$.Integral", "JSV.exception.JSVException", "JU.Logger"], function () { c$ = Clazz.decorateAsClass (function () { this.filePath = null; this.filePathForwardSlash = null; this.isSimulation = false; this.sourceID = ""; this.blockID = 0; this.fileFirstX = 1.7976931348623157E308; this.fileLastX = 1.7976931348623157E308; this.nPointsFile = -1; this.xFactor = 1.7976931348623157E308; this.yFactor = 1.7976931348623157E308; this.varName = ""; this.xUnits = ""; this.yUnits = ""; this.xLabel = null; this.yLabel = null; this.nH = 0; this.observedNucl = ""; this.observedFreq = 1.7976931348623157E308; this.parent = null; this.offset = 1.7976931348623157E308; this.shiftRefType = -1; this.dataPointNum = -1; this.numDim = 1; this.nucleusX = null; this.nucleusY = "?"; this.freq2dX = NaN; this.freq2dY = NaN; this.y2D = NaN; this.y2DUnits = ""; this.$isHZtoPPM = false; this.xIncreases = true; this.continuous = false; this.xyCoords = null; this.minX = NaN; this.minY = NaN; this.maxX = NaN; this.maxY = NaN; this.deltaX = NaN; this.normalizationFactor = 1; Clazz.instantialize (this, arguments); }, JSV.source, "JDXDataObject", JSV.source.JDXHeader); Clazz.defineMethod (c$, "setFilePath", function (filePath) { if (filePath != null) this.filePathForwardSlash = (this.filePath = filePath.trim ()).$replace ('\\', '/'); }, "~S"); Clazz.defineMethod (c$, "getFilePath", function () { return this.filePath; }); Clazz.defineMethod (c$, "getFilePathForwardSlash", function () { return this.filePathForwardSlash; }); Clazz.defineMethod (c$, "setBlockID", function (id) { this.blockID = id; }, "~N"); Clazz.defineMethod (c$, "isImaginary", function () { return this.varName.contains ("IMAG"); }); Clazz.defineMethod (c$, "setXFactor", function (xFactor) { this.xFactor = xFactor; }, "~N"); Clazz.defineMethod (c$, "getXFactor", function () { return this.xFactor; }); Clazz.defineMethod (c$, "setYFactor", function (yFactor) { this.yFactor = yFactor; }, "~N"); Clazz.defineMethod (c$, "getYFactor", function () { return this.yFactor; }); Clazz.defineMethod (c$, "checkRequiredTokens", function () { var err = (this.fileFirstX == 1.7976931348623157E308 ? "##FIRSTX" : this.fileLastX == 1.7976931348623157E308 ? "##LASTX" : this.nPointsFile == -1 ? "##NPOINTS" : this.xFactor == 1.7976931348623157E308 ? "##XFACTOR" : this.yFactor == 1.7976931348623157E308 ? "##YFACTOR" : null); if (err != null) throw new JSV.exception.JSVException ("Error Reading Data Set: " + err + " not found"); }); Clazz.defineMethod (c$, "setXUnits", function (xUnits) { this.xUnits = xUnits; }, "~S"); Clazz.defineMethod (c$, "getXUnits", function () { return this.xUnits; }); Clazz.defineMethod (c$, "setYUnits", function (yUnits) { if (yUnits.equals ("PPM")) yUnits = "ARBITRARY UNITS"; this.yUnits = yUnits; }, "~S"); Clazz.defineMethod (c$, "getYUnits", function () { return this.yUnits; }); Clazz.defineMethod (c$, "setXLabel", function (value) { this.xLabel = value; }, "~S"); Clazz.defineMethod (c$, "setYLabel", function (value) { this.yLabel = value; }, "~S"); Clazz.defineMethod (c$, "setObservedNucleus", function (value) { this.observedNucl = value; if (this.numDim == 1) this.parent.nucleusX = this.nucleusX = this.fixNucleus (value); }, "~S"); Clazz.defineMethod (c$, "setObservedFreq", function (observedFreq) { this.observedFreq = observedFreq; }, "~N"); Clazz.defineMethod (c$, "getObservedFreq", function () { return this.observedFreq; }); Clazz.defineMethod (c$, "is1D", function () { return this.numDim == 1; }); Clazz.defineMethod (c$, "setY2D", function (d) { this.y2D = d; }, "~N"); Clazz.defineMethod (c$, "getY2D", function () { return this.y2D; }); Clazz.defineMethod (c$, "setY2DUnits", function (units) { this.y2DUnits = units; }, "~S"); Clazz.defineMethod (c$, "getY2DPPM", function () { var d = this.y2D; if (this.y2DUnits.equals ("HZ")) d /= this.freq2dY; return d; }); Clazz.defineMethod (c$, "setNucleusAndFreq", function (nuc, isX) { nuc = this.fixNucleus (nuc); if (isX) this.nucleusX = nuc; else this.nucleusY = nuc; var freq; if (this.observedNucl.indexOf (nuc) >= 0) { freq = this.observedFreq; } else { var g1 = JSV.source.JDXDataObject.getGyroMagneticRatio (this.observedNucl); var g2 = JSV.source.JDXDataObject.getGyroMagneticRatio (nuc); freq = this.observedFreq * g2 / g1; }if (isX) this.freq2dX = freq; else this.freq2dY = freq; JU.Logger.info ("Freq for " + nuc + " = " + freq); }, "~S,~B"); Clazz.defineMethod (c$, "fixNucleus", function (nuc) { return JU.PT.rep (JU.PT.trim (nuc, "[]^<>"), "NUC_", ""); }, "~S"); c$.getGyroMagneticRatio = Clazz.defineMethod (c$, "getGyroMagneticRatio", function (nuc) { var pt = 0; while (pt < nuc.length && !Character.isDigit (nuc.charAt (pt))) pt++; pt = JU.PT.parseInt (nuc.substring (pt)); var i = 0; for (; i < JSV.source.JDXDataObject.gyroData.length; i += 2) if (JSV.source.JDXDataObject.gyroData[i] >= pt) break; return (JSV.source.JDXDataObject.gyroData[i] == pt ? JSV.source.JDXDataObject.gyroData[i + 1] : NaN); }, "~S"); Clazz.defineMethod (c$, "isTransmittance", function () { var s = this.yUnits.toLowerCase (); return (s.equals ("transmittance") || s.contains ("trans") || s.equals ("t")); }); Clazz.defineMethod (c$, "isAbsorbance", function () { var s = this.yUnits.toLowerCase (); return (s.equals ("absorbance") || s.contains ("abs") || s.equals ("a")); }); Clazz.defineMethod (c$, "canSaveAsJDX", function () { return this.getDataClass ().equals ("XYDATA"); }); Clazz.defineMethod (c$, "canIntegrate", function () { return (this.continuous && (this.isHNMR () || this.isGC ()) && this.is1D ()); }); Clazz.defineMethod (c$, "isAutoOverlayFromJmolClick", function () { return (this.isGC ()); }); Clazz.defineMethod (c$, "isGC", function () { return this.dataType.startsWith ("GC") || this.dataType.startsWith ("GAS"); }); Clazz.defineMethod (c$, "isMS", function () { return this.dataType.startsWith ("MASS") || this.dataType.startsWith ("MS"); }); Clazz.defineMethod (c$, "isStackable", function () { return !this.isMS (); }); Clazz.defineMethod (c$, "isScalable", function () { return true; }); Clazz.defineMethod (c$, "getYRef", function () { return (!this.isTransmittance () ? 0.0 : JSV.common.Coordinate.getMaxY (this.xyCoords, 0, this.xyCoords.length) < 2 ? 1.0 : 100.0); }); Clazz.defineMethod (c$, "isInverted", function () { return this.isTransmittance (); }); Clazz.defineMethod (c$, "canConvertTransAbs", function () { return (this.continuous && (this.yUnits.toLowerCase ().contains ("abs")) || this.yUnits.toLowerCase ().contains ("trans")); }); Clazz.defineMethod (c$, "canShowSolutionColor", function () { return (this.isContinuous () && this.canConvertTransAbs () && (this.xUnits.toLowerCase ().contains ("nanometer") || this.xUnits.equalsIgnoreCase ("nm")) && this.getFirstX () < 401 && this.getLastX () > 699 && this.xyCoords.length >= 30); }); Clazz.defineMethod (c$, "isHZtoPPM", function () { return this.$isHZtoPPM; }); Clazz.defineMethod (c$, "setHZtoPPM", function (val) { this.$isHZtoPPM = val; }, "~B"); Clazz.defineMethod (c$, "setIncreasing", function (val) { this.xIncreases = val; }, "~B"); Clazz.defineMethod (c$, "isXIncreasing", function () { return this.xIncreases; }); Clazz.defineMethod (c$, "shouldDisplayXAxisIncreasing", function () { var dt = this.dataType.toUpperCase (); var xu = this.xUnits.toUpperCase (); if (dt.contains ("NMR") && !(dt.contains ("FID"))) { return false; } else if (dt.contains ("LINK") && xu.contains ("CM")) { return false; } else if (dt.startsWith ("IR") || dt.contains ("INFRA") && xu.contains ("CM")) { return false; } else if (dt.contains ("RAMAN") && xu.contains ("CM")) { return false; } else if (dt.contains ("VIS") && xu.contains ("NANOMETERS")) { return true; }return this.xIncreases; }); Clazz.defineMethod (c$, "setContinuous", function (val) { this.continuous = val; }, "~B"); Clazz.defineMethod (c$, "isContinuous", function () { return this.continuous; }); Clazz.defineMethod (c$, "getHeaderRowDataAsArray", function () { var n = 8; if (this.observedFreq != 1.7976931348623157E308) n++; if (this.observedNucl !== "") n++; var rowData = this.getHeaderRowDataAsArray (true, n); var i = rowData.length - n; if (this.observedFreq != 1.7976931348623157E308) rowData[i++] = Clazz.newArray (-1, ["##.OBSERVE FREQUENCY", "" + this.observedFreq]); if (this.observedNucl !== "") rowData[i++] = Clazz.newArray (-1, ["##.OBSERVE NUCLEUS", this.observedNucl]); rowData[i++] = Clazz.newArray (-1, ["##XUNITS", this.$isHZtoPPM ? "HZ" : this.xUnits]); rowData[i++] = Clazz.newArray (-1, ["##YUNITS", this.yUnits]); var x = (this.xIncreases ? this.getFirstX () : this.getLastX ()); rowData[i++] = Clazz.newArray (-1, ["##FIRSTX", String.valueOf (this.isHZtoPPM () ? x * this.observedFreq : x)]); x = (this.xIncreases ? this.getLastX () : this.getFirstX ()); rowData[i++] = Clazz.newArray (-1, ["##FIRSTY", String.valueOf (this.xIncreases ? this.getFirstY () : this.getLastY ())]); rowData[i++] = Clazz.newArray (-1, ["##LASTX", String.valueOf (this.isHZtoPPM () ? x * this.observedFreq : x)]); rowData[i++] = Clazz.newArray (-1, ["##XFACTOR", String.valueOf (this.getXFactor ())]); rowData[i++] = Clazz.newArray (-1, ["##YFACTOR", String.valueOf (this.getYFactor ())]); rowData[i++] = Clazz.newArray (-1, ["##NPOINTS", String.valueOf (this.xyCoords.length)]); return rowData; }); Clazz.defineMethod (c$, "getDefaultUnitPrecision", function () { return 2; }); Clazz.defineMethod (c$, "setMeasurementText", function (m) { var dx = m.getValue (); if (Double.isNaN (dx)) return ""; var precision = 1; var units = ""; if (this.isNMR ()) { if (this.numDim == 1) { var isIntegral = (Clazz.instanceOf (m, JSV.common.Integral)); if (this.isHNMR () || isIntegral) { if (!isIntegral) { dx *= this.observedFreq; units = " Hz"; }} else { units = " ppm"; precision = 2; }} else { return ""; }}return (dx < 0.1 ? "" : JU.DF.formatDecimalDbl (dx, precision) + units); }, "JSV.common.Measurement"); Clazz.defineMethod (c$, "isNMR", function () { return (this.dataType.toUpperCase ().indexOf ("NMR") >= 0); }); Clazz.defineMethod (c$, "isHNMR", function () { return (this.isNMR () && this.observedNucl.toUpperCase ().indexOf ("H") >= 0); }); Clazz.defineMethod (c$, "setXYCoords", function (coords) { this.xyCoords = coords; }, "~A"); Clazz.defineMethod (c$, "invertYAxis", function () { for (var i = this.xyCoords.length; --i >= 0; ) { this.xyCoords[i].setYVal (-this.xyCoords[i].getYVal ()); } var d = this.minY; this.minY = -this.maxY; this.maxY = -d; return this; }); Clazz.defineMethod (c$, "getFirstX", function () { return this.xyCoords[0].getXVal (); }); Clazz.defineMethod (c$, "getFirstY", function () { return this.xyCoords[0].getYVal (); }); Clazz.defineMethod (c$, "getLastX", function () { return this.xyCoords[this.xyCoords.length - 1].getXVal (); }); Clazz.defineMethod (c$, "getLastY", function () { return this.xyCoords[this.xyCoords.length - 1].getYVal (); }); Clazz.defineMethod (c$, "getMinX", function () { return (Double.isNaN (this.minX) ? (this.minX = JSV.common.Coordinate.getMinX (this.xyCoords, 0, this.xyCoords.length)) : this.minX); }); Clazz.defineMethod (c$, "getMinY", function () { return (Double.isNaN (this.minY) ? (this.minY = JSV.common.Coordinate.getMinY (this.xyCoords, 0, this.xyCoords.length)) : this.minY); }); Clazz.defineMethod (c$, "getMaxX", function () { return (Double.isNaN (this.maxX) ? (this.maxX = JSV.common.Coordinate.getMaxX (this.xyCoords, 0, this.xyCoords.length)) : this.maxX); }); Clazz.defineMethod (c$, "getMaxY", function () { return (Double.isNaN (this.maxY) ? (this.maxY = JSV.common.Coordinate.getMaxY (this.xyCoords, 0, this.xyCoords.length)) : this.maxY); }); Clazz.defineMethod (c$, "doNormalize", function (max) { if (!this.isNMR () || !this.is1D ()) return; this.normalizationFactor = max / this.getMaxY (); this.maxY = NaN; JSV.common.Coordinate.applyScale (this.xyCoords, 1, this.normalizationFactor); JU.Logger.info ("Y values have been scaled by a factor of " + this.normalizationFactor); }, "~N"); Clazz.defineMethod (c$, "getDeltaX", function () { return (Double.isNaN (this.deltaX) ? (this.deltaX = JSV.common.Coordinate.deltaX (this.getLastX (), this.getFirstX (), this.xyCoords.length)) : this.deltaX); }); Clazz.defineMethod (c$, "copyTo", function (newObj) { newObj.setTitle (this.title); newObj.setJcampdx (this.jcampdx); newObj.setOrigin (this.origin); newObj.setOwner (this.owner); newObj.setDataClass (this.dataClass); newObj.setDataType (this.dataType); newObj.setHeaderTable (this.headerTable); newObj.setXFactor (this.xFactor); newObj.setYFactor (this.yFactor); newObj.setXUnits (this.xUnits); newObj.setYUnits (this.yUnits); newObj.setXLabel (this.xLabel); newObj.setYLabel (this.yLabel); newObj.setXYCoords (this.xyCoords); newObj.setContinuous (this.continuous); newObj.setIncreasing (this.xIncreases); newObj.observedFreq = this.observedFreq; newObj.observedNucl = this.observedNucl; newObj.offset = this.offset; newObj.dataPointNum = this.dataPointNum; newObj.shiftRefType = this.shiftRefType; newObj.$isHZtoPPM = this.$isHZtoPPM; newObj.numDim = this.numDim; newObj.nucleusX = this.nucleusX; newObj.nucleusY = this.nucleusY; newObj.freq2dX = this.freq2dX; newObj.freq2dY = this.freq2dY; newObj.setFilePath (this.filePath); newObj.nH = this.nH; }, "JSV.source.JDXDataObject"); Clazz.defineMethod (c$, "getTypeLabel", function () { return (this.isNMR () ? this.nucleusX + "NMR" : this.dataType); }); Clazz.defineMethod (c$, "getDefaultAnnotationInfo", function (type) { var s1; var s2; var isNMR = this.isNMR (); switch (type) { case JSV.common.Annotation.AType.Integration: return Clazz.newArray (-1, [null, Clazz.newIntArray (-1, [1]), null]); case JSV.common.Annotation.AType.Measurements: s1 = (isNMR ? Clazz.newArray (-1, ["Hz", "ppm"]) : Clazz.newArray (-1, [""])); s2 = (this.isHNMR () ? Clazz.newIntArray (-1, [1, 4]) : Clazz.newIntArray (-1, [1, 3])); return Clazz.newArray (-1, [s1, s2, Integer.$valueOf (0)]); case JSV.common.Annotation.AType.PeakList: s1 = (isNMR ? Clazz.newArray (-1, ["Hz", "ppm"]) : Clazz.newArray (-1, [""])); s2 = (this.isHNMR () ? Clazz.newIntArray (-1, [1, 2]) : Clazz.newIntArray (-1, [1, 1])); return Clazz.newArray (-1, [s1, s2, Integer.$valueOf (isNMR ? 1 : 0)]); case JSV.common.Annotation.AType.NONE: case JSV.common.Annotation.AType.OverlayLegend: break; case JSV.common.Annotation.AType.Views: break; } return null; }, "JSV.common.Annotation.AType"); Clazz.defineMethod (c$, "getPeakListArray", function (m, last, maxY) { var x = m.getXVal (); var y = m.getYVal (); if (this.isNMR ()) y /= maxY; var dx = Math.abs (x - last[0]); last[0] = x; var ddx = dx + last[1]; last[1] = dx; var dddx = ddx + last[2]; last[2] = ddx; if (this.isNMR ()) { return Clazz.newDoubleArray (-1, [x, y, x * this.observedFreq, (dx * this.observedFreq > 20 ? 0 : dx * this.observedFreq), (ddx * this.observedFreq > 20 ? 0 : ddx * this.observedFreq), (dddx * this.observedFreq > 20 ? 0 : dddx * this.observedFreq)]); }return Clazz.newDoubleArray (-1, [x, y]); }, "JSV.common.Measurement,~A,~N"); Clazz.defineStatics (c$, "ERROR", 1.7976931348623157E308, "SCALE_NONE", 0, "SCALE_TOP", 1, "SCALE_BOTTOM", 2, "SCALE_TOP_BOTTOM", 3, "gyroData", Clazz.newDoubleArray (-1, [1, 42.5774806, 2, 6.53590131, 3, 45.4148, 3, 32.436, 6, 6.2661, 7, 16.5483, 9, 5.9842, 10, 4.5752, 11, 13.663, 13, 10.70839657, 14, 3.07770646, 15, 4.31726570, 17, 5.7742, 19, 40.07757016, 21, 3.3631, 23, 11.26952167, 25, 2.6083, 27, 11.1031, 29, 8.4655, 31, 17.25144090, 33, 3.2717, 35, 4.1765, 37, 3.4765, 37, 5.819, 39, 3.46, 39, 1.9893, 40, 2.4737, 41, 1.0919, 43, 2.8688, 45, 10.3591, 47, 2.4041, 49, 2.4048, 50, 4.2505, 51, 11.2133, 53, 2.4115, 55, 10.5763, 57, 1.3816, 59, 10.077, 61, 3.8114, 63, 11.2982, 65, 12.103, 67, 2.6694, 69, 10.2478, 71, 13.0208, 73, 1.4897, 75, 7.315, 77, 8.1571, 79, 10.7042, 81, 11.5384, 83, 1.6442, 85, 4.1254, 87, 13.9811, 87, 1.8525, 89, 2.0949, 91, 3.9748, 93, 10.4523, 95, 2.7874, 97, 2.8463, 99, 9.6294, 99, 1.9553, 101, 2.1916, 103, 1.3477, 105, 1.957, 107, 1.7331, 109, 1.9924, 111, 9.0692, 113, 9.4871, 113, 9.3655, 115, 9.3856, 115, 14.0077, 117, 15.261, 119, 15.966, 121, 10.2551, 123, 5.5532, 123, 11.2349, 125, 13.5454, 127, 8.5778, 129, 11.8604, 131, 3.5159, 133, 5.6234, 135, 4.2582, 137, 4.7634, 138, 5.6615, 139, 6.0612, 137, 4.88, 139, 5.39, 141, 2.37, 141, 13.0359, 143, 2.319, 145, 1.429, 143, 11.59, 147, 5.62, 147, 1.7748, 149, 14631, 151, 10.5856, 153, 4.6745, 155, 1.312, 157, 1.72, 159, 10.23, 161, 1.4654, 163, 2.0508, 165, 9.0883, 167, 1.2281, 169, 3.531, 171, 7.5261, 173, 2.073, 175, 4.8626, 176, 3.451, 177, 1.7282, 179, 1.0856, 180, 4.087, 181, 5.1627, 183, 1.7957, 185, 9.7176, 187, 9.817, 187, 0.9856, 189, 3.3536, 191, 0.7658, 191, 0.8319, 195, 9.2922, 197, 0.7406, 199, 7.7123, 201, 2.8469, 203, 24.7316, 205, 24.9749, 207, 9.034, 209, 6.963, 209, 11.7, 211, 9.16, 223, 5.95, 223, 1.3746, 225, 11.187, 227, 5.6, 229, 1.4, 231, 10.2, 235, 0.83, 237, 9.57, 239, 3.09, 243, 4.6, 1E100])); });
#!/usr/bin/env python3.7 # -*- coding: utf-8 -*- # # Copyright 2018 Costas Tyfoxylos # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # 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. # import logging from build import build from library import execute_command # This is the main prefix used for logging LOGGER_BASENAME = '''_CI.upload''' LOGGER = logging.getLogger(LOGGER_BASENAME) LOGGER.addHandler(logging.NullHandler()) def upload(): emojize = build() if not emojize: LOGGER.error('Errors caught on building the artifact, bailing out...') raise SystemExit(1) upload_command = ('twine upload dist/* ' '-u pypi-upload ' '--skip-existing ' '--repository-url https://upload.pypi.org/legacy/') LOGGER.info('Trying to upload built artifact...') exit_code = execute_command(upload_command) success = not exit_code if success: LOGGER.info('%s Successfully uploaded artifact! %s', emojize(':white_heavy_check_mark:'), emojize(':thumbs_up:')) else: LOGGER.error('%s Errors found in uploading artifact! %s', emojize(':cross_mark:'), emojize(':crying_face:')) raise SystemExit(exit_code) if __name__ == '__main__': upload()
import asyncio import socket clients = [] async def handle_client(client, address): data = f"Please welcome our new chat member from {address}" for _client in clients: await loop.sock_sendall(_client, data.encode('utf8')) while data != 'BYEBYE': data = (await loop.sock_recv(client, 1024)).decode('utf8') message = f'From {address}: ' + str(data) if data == 'BYEBYE': message = f'User {address} has left the chat' for _client in clients: if _client == client: continue await loop.sock_sendall(_client, message.encode('utf8')) clients.remove(client) print(f'Client: {address} disconnected') client.close() async def run_server(): while True: client, address = await loop.sock_accept(server) if client not in clients: clients.append(client) print(f'Client with address {address} connected to the chat!') loop.create_task(handle_client(client, address)) server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind(('localhost', 1337)) server.listen(8) server.setblocking(False) loop = asyncio.get_event_loop() loop.run_until_complete(run_server())
Package.describe({ summary: "Common code for browser-policy packages", version: "1.0.4-plugins.0" }); Package.onUse(function (api) { api.use('webapp', 'server'); api.addFiles('browser-policy-common.js', 'server'); api.export('BrowserPolicy', 'server'); });
!function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p="",__webpack_require__(0)}([function(module,exports,__webpack_require__){var Defaults,Framer,_;_=__webpack_require__(1)._,Framer={},Framer._=_,Framer.Utils=__webpack_require__(4),Framer.Color=__webpack_require__(11).Color,Framer.Gradient=__webpack_require__(14).Gradient,Framer.Layer=__webpack_require__(15).Layer,Framer._Layer=Framer.Layer,Framer.BackgroundLayer=__webpack_require__(42).BackgroundLayer,Framer.VideoLayer=__webpack_require__(43).VideoLayer,Framer.SVGLayer=__webpack_require__(44).SVGLayer,Framer.SVGPath=__webpack_require__(47).SVGPath,Framer.SVGGroup=__webpack_require__(45).SVGGroup,Framer.TextLayer=__webpack_require__(48).TextLayer,Framer.Events=__webpack_require__(17).Events,Framer.Gestures=__webpack_require__(18).Gestures,Framer.Animation=__webpack_require__(20).Animation,Framer.AnimationGroup=__webpack_require__(49).AnimationGroup,Framer.AnimationStateGroup=__webpack_require__(49).AnimationStateGroup,Framer.Screen=__webpack_require__(5).Screen,Framer.Align=__webpack_require__(50).Align,Framer.Blending=__webpack_require__(51).Blending,Framer.print=__webpack_require__(52).print,Framer.ScrollComponent=__webpack_require__(55).ScrollComponent,Framer.PageComponent=__webpack_require__(56).PageComponent,Framer.SliderComponent=__webpack_require__(57).SliderComponent,Framer.RangeSliderComponent=__webpack_require__(58).RangeSliderComponent,Framer.DeviceComponent=__webpack_require__(59).DeviceComponent,Framer.GridComponent=__webpack_require__(60).GridComponent,Framer.FlowComponent=__webpack_require__(61).FlowComponent,Framer.CircularProgressComponent=__webpack_require__(62).CircularProgressComponent,Framer.MIDIComponent=__webpack_require__(63).MIDIComponent,Framer.DeviceView=Framer.DeviceComponent,window&&_.extend(window,Framer),Framer.Context=__webpack_require__(53).Context,Framer.Config=__webpack_require__(16).Config,Framer.EventEmitter=__webpack_require__(7).EventEmitter,Framer.BaseClass=__webpack_require__(6).BaseClass,Framer.LayerStyle=__webpack_require__(29).LayerStyle,Framer.AnimationLoop=__webpack_require__(65).AnimationLoop,Framer.LinearAnimator=__webpack_require__(22).LinearAnimator,Framer.BezierCurveAnimator=__webpack_require__(25).BezierCurveAnimator,Framer.SpringDHOAnimator=__webpack_require__(66).SpringDHOAnimator,Framer.SpringRK4Animator=__webpack_require__(27).SpringRK4Animator,Framer.LayerDraggable=__webpack_require__(33).LayerDraggable,Framer.Curves=__webpack_require__(24),window.Bezier=Framer.Curves.Bezier,window.Spring=Framer.Curves.Spring,Framer.Importer=__webpack_require__(67).Importer,Framer.Extras=__webpack_require__(68),Framer.GestureInputRecognizer=new(__webpack_require__(75).GestureInputRecognizer),Framer.Version=__webpack_require__(76),Framer.Loop=new Framer.AnimationLoop,Framer.Info={},window&&(window.Framer=Framer),Defaults=__webpack_require__(19).Defaults,Defaults.setup(),Framer.resetDefaults=Defaults.reset,Framer.DefaultContext=new Framer.Context({name:"Default"}),Framer.DefaultContext.backgroundColor="white",Framer.CurrentContext=Framer.DefaultContext,window.Canvas=new(__webpack_require__(77).Canvas),Utils.isMobile()&&Framer.Extras.MobileScrollFix.enable(),Utils.isTouch()||Framer.Extras.TouchEmulator.enable(),Utils.isFramerStudio()||Framer.Extras.ErrorDisplay.enable(),Utils.isFramerStudio()||Framer.Extras.Preloader.enable(),Utils.isFramerStudio()||Framer.Extras.Hints.enable(),Utils.domComplete(Framer.Loop.start)},function(module,exports,__webpack_require__){exports._=__webpack_require__(2),_.pluck=_.map},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(global,module){(function(){function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayAggregator(array,setter,iteratee,accumulator){for(var index=-1,length=null==array?0:array.length;++index<length;){var value=array[index];setter(accumulator,value,iteratee(value),array)}return accumulator}function arrayEach(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&iteratee(array[index],index,array)!==!1;);return array}function arrayEachRight(array,iteratee){for(var length=null==array?0:array.length;length--&&iteratee(array[length],length,array)!==!1;);return array}function arrayEvery(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(!predicate(array[index],index,array))return!1;return!0}function arrayFilter(array,predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result}function arrayIncludes(array,value){var length=null==array?0:array.length;return!!length&&baseIndexOf(array,value,0)>-1}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index<length;)if(comparator(value,array[index]))return!0;return!1}function arrayMap(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}function arrayPush(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array}function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[++index]);++index<length;)accumulator=iteratee(accumulator,array[index],index,array);return accumulator}function arrayReduceRight(array,iteratee,accumulator,initAccum){var length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[--length]);length--;)accumulator=iteratee(accumulator,array[length],length,array);return accumulator}function arraySome(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;return!1}function asciiToArray(string){return string.split("")}function asciiWords(string){return string.match(reAsciiWord)||[]}function baseFindKey(collection,predicate,eachFunc){var result;return eachFunc(collection,function(value,key,collection){if(predicate(value,key,collection))return result=key,!1}),result}function baseFindIndex(array,predicate,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?1:-1);fromRight?index--:++index<length;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){return value===value?strictIndexOf(array,value,fromIndex):baseFindIndex(array,baseIsNaN,fromIndex)}function baseIndexOfWith(array,value,fromIndex,comparator){for(var index=fromIndex-1,length=array.length;++index<length;)if(comparator(array[index],value))return index;return-1}function baseIsNaN(value){return value!==value}function baseMean(array,iteratee){var length=null==array?0:array.length;return length?baseSum(array,iteratee)/length:NAN}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyOf(object){return function(key){return null==object?undefined:object[key]}}function baseReduce(collection,iteratee,accumulator,initAccum,eachFunc){return eachFunc(collection,function(value,index,collection){accumulator=initAccum?(initAccum=!1,value):iteratee(accumulator,value,index,collection)}),accumulator}function baseSortBy(array,comparer){var length=array.length;for(array.sort(comparer);length--;)array[length]=array[length].value;return array}function baseSum(array,iteratee){for(var result,index=-1,length=array.length;++index<length;){var current=iteratee(array[index]);current!==undefined&&(result=result===undefined?current:result+current)}return result}function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}function baseToPairs(object,props){return arrayMap(props,function(key){return[key,object[key]]})}function baseUnary(func){return function(value){return func(value)}}function baseValues(object,props){return arrayMap(props,function(key){return object[key]})}function cacheHas(cache,key){return cache.has(key)}function charsStartIndex(strSymbols,chrSymbols){for(var index=-1,length=strSymbols.length;++index<length&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1;);return index}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1;);return index}function countHolders(array,placeholder){for(var length=array.length,result=0;length--;)array[length]===placeholder&&++result;return result}function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function getValue(object,key){return null==object?undefined:object[key]}function hasUnicode(string){return reHasUnicode.test(string)}function hasUnicodeWord(string){return reHasUnicodeWord.test(string)}function iteratorToArray(iterator){for(var data,result=[];!(data=iterator.next()).done;)result.push(data.value);return result}function mapToArray(map){var index=-1,result=Array(map.size);return map.forEach(function(value,key){result[++index]=[key,value]}),result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=0,result=[];++index<length;){var value=array[index];value!==placeholder&&value!==PLACEHOLDER||(array[index]=PLACEHOLDER,result[resIndex++]=index)}return result}function safeGet(object,key){return"__proto__"==key?undefined:object[key]}function setToArray(set){var index=-1,result=Array(set.size);return set.forEach(function(value){result[++index]=value}),result}function setToPairs(set){var index=-1,result=Array(set.size);return set.forEach(function(value){result[++index]=[value,value]}),result}function strictIndexOf(array,value,fromIndex){for(var index=fromIndex-1,length=array.length;++index<length;)if(array[index]===value)return index;return-1}function strictLastIndexOf(array,value,fromIndex){for(var index=fromIndex+1;index--;)if(array[index]===value)return index;return index}function stringSize(string){return hasUnicode(string)?unicodeSize(string):asciiSize(string)}function stringToArray(string){return hasUnicode(string)?unicodeToArray(string):asciiToArray(string)}function unicodeSize(string){for(var result=reUnicode.lastIndex=0;reUnicode.test(string);)++result;return result}function unicodeToArray(string){return string.match(reUnicode)||[]}function unicodeWords(string){return string.match(reUnicodeWord)||[]}var undefined,VERSION="4.17.5",LARGE_ARRAY_SIZE=200,CORE_ERROR_TEXT="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",FUNC_ERROR_TEXT="Expected a function",HASH_UNDEFINED="__lodash_hash_undefined__",MAX_MEMOIZE_SIZE=500,PLACEHOLDER="__lodash_placeholder__",CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2,WRAP_BIND_FLAG=1,WRAP_BIND_KEY_FLAG=2,WRAP_CURRY_BOUND_FLAG=4,WRAP_CURRY_FLAG=8,WRAP_CURRY_RIGHT_FLAG=16,WRAP_PARTIAL_FLAG=32,WRAP_PARTIAL_RIGHT_FLAG=64,WRAP_ARY_FLAG=128,WRAP_REARG_FLAG=256,WRAP_FLIP_FLAG=512,DEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION="...",HOT_COUNT=800,HOT_SPAN=16,LAZY_FILTER_FLAG=1,LAZY_MAP_FLAG=2,LAZY_WHILE_FLAG=3,INFINITY=1/0,MAX_SAFE_INTEGER=9007199254740991,MAX_INTEGER=1.7976931348623157e308,NAN=NaN,MAX_ARRAY_LENGTH=4294967295,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,wrapFlags=[["ary",WRAP_ARY_FLAG],["bind",WRAP_BIND_FLAG],["bindKey",WRAP_BIND_KEY_FLAG],["curry",WRAP_CURRY_FLAG],["curryRight",WRAP_CURRY_RIGHT_FLAG],["flip",WRAP_FLIP_FLAG],["partial",WRAP_PARTIAL_FLAG],["partialRight",WRAP_PARTIAL_RIGHT_FLAG],["rearg",WRAP_REARG_FLAG]],argsTag="[object Arguments]",arrayTag="[object Array]",asyncTag="[object AsyncFunction]",boolTag="[object Boolean]",dateTag="[object Date]",domExcTag="[object DOMException]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",nullTag="[object Null]",objectTag="[object Object]",promiseTag="[object Promise]",proxyTag="[object Proxy]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",undefinedTag="[object Undefined]",weakMapTag="[object WeakMap]",weakSetTag="[object WeakSet]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source),reTrim=/^\s+|\s+$/g,reTrimStart=/^\s+/,reTrimEnd=/\s+$/,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos="['’]",rsAstral="["+rsAstralRange+"]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reApos=RegExp(rsApos,"g"),reComboMark=RegExp(rsCombo,"g"),reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g"),reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g"),reHasUnicode=RegExp("["+rsZWJ+rsAstralRange+rsComboRange+rsVarRange+"]"),reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,contextProps=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],templateCounter=-1,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},htmlUnescapes={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},freeParseFloat=parseFloat,freeParseInt=parseInt,freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=function(){try{return freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}(),nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,asciiSize=baseProperty("length"),deburrLetter=basePropertyOf(deburredLetters),escapeHtmlChar=basePropertyOf(htmlEscapes),unescapeHtmlChar=basePropertyOf(htmlUnescapes),runInContext=function runInContext(context){function lodash(value){if(isObjectLike(value)&&!isArray(value)&&!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper)return value;if(hasOwnProperty.call(value,"__wrapped__"))return wrapperClone(value)}return new LodashWrapper(value)}function baseLodash(){}function LodashWrapper(value,chainAll){this.__wrapped__=value,this.__actions__=[],this.__chain__=!!chainAll,this.__index__=0,this.__values__=undefined}function LazyWrapper(value){this.__wrapped__=value,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=MAX_ARRAY_LENGTH,this.__views__=[]}function lazyClone(){var result=new LazyWrapper(this.__wrapped__);return result.__actions__=copyArray(this.__actions__),result.__dir__=this.__dir__,result.__filtered__=this.__filtered__,result.__iteratees__=copyArray(this.__iteratees__),result.__takeCount__=this.__takeCount__,result.__views__=copyArray(this.__views__),result}function lazyReverse(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1,result.__filtered__=!0}else result=this.clone(),result.__dir__*=-1;return result}function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start=view.start,end=view.end,length=end-start,index=isRight?end:start-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length,this.__takeCount__);if(!isArr||!isRight&&arrLength==length&&takeCount==length)return baseWrapperValue(array,this.__actions__);var result=[];outer:for(;length--&&resIndex<takeCount;){index+=dir;for(var iterIndex=-1,value=array[index];++iterIndex<iterLength;){var data=iteratees[iterIndex],iteratee=data.iteratee,type=data.type,computed=iteratee(value);if(type==LAZY_MAP_FLAG)value=computed;else if(!computed){if(type==LAZY_FILTER_FLAG)continue outer;break outer}}result[resIndex++]=value}return result}function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];return this.size-=result?1:0,result}function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined:result}return hasOwnProperty.call(data,key)?data[key]:undefined}function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key)}function hashSet(key,value){var data=this.__data__;return this.size+=this.has(key)?0:1,data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value,this}function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function listCacheClear(){this.__data__=[],this.size=0}function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0)return!1;var lastIndex=data.length-1;return index==lastIndex?data.pop():splice.call(data,index,1),--this.size,!0}function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1]}function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1}function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}function MapCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}}function mapCacheDelete(key){var result=getMapData(this,key).delete(key);return this.size-=result?1:0,result}function mapCacheGet(key){return getMapData(this,key).get(key)}function mapCacheHas(key){return getMapData(this,key).has(key)}function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;return data.set(key,value),this.size+=data.size==size?0:1,this}function SetCache(values){var index=-1,length=null==values?0:values.length;for(this.__data__=new MapCache;++index<length;)this.add(values[index])}function setCacheAdd(value){return this.__data__.set(value,HASH_UNDEFINED),this}function setCacheHas(value){return this.__data__.has(value)}function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(key){var data=this.__data__,result=data.delete(key);return this.size=data.size,result}function stackGet(key){return this.__data__.get(key)}function stackHas(key){return this.__data__.has(key)}function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache(pairs)}return data.set(key,value),this.size=data.size,this}function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)!inherited&&!hasOwnProperty.call(value,key)||skipIndexes&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex(key,length))||result.push(key);return result}function arraySample(array){var length=array.length;return length?array[baseRandom(0,length-1)]:undefined}function arraySampleSize(array,n){return shuffleSelf(copyArray(array),baseClamp(n,0,array.length))}function arrayShuffle(array){return shuffleSelf(copyArray(array))}function assignMergeValue(object,key,value){(value===undefined||eq(object[key],value))&&(value!==undefined||key in object)||baseAssignValue(object,key,value)}function assignValue(object,key,value){var objValue=object[key];hasOwnProperty.call(object,key)&&eq(objValue,value)&&(value!==undefined||key in object)||baseAssignValue(object,key,value)}function assocIndexOf(array,key){for(var length=array.length;length--;)if(eq(array[length][0],key))return length;return-1}function baseAggregator(collection,setter,iteratee,accumulator){return baseEach(collection,function(value,key,collection){setter(accumulator,value,iteratee(value),collection)}),accumulator}function baseAssign(object,source){return object&&copyObject(source,keys(source),object)}function baseAssignIn(object,source){return object&&copyObject(source,keysIn(source),object)}function baseAssignValue(object,key,value){"__proto__"==key&&defineProperty?defineProperty(object,key,{configurable:!0,enumerable:!0,value:value,writable:!0}):object[key]=value}function baseAt(object,paths){for(var index=-1,length=paths.length,result=Array(length),skip=null==object;++index<length;)result[index]=skip?undefined:get(object,paths[index]);return result}function baseClamp(number,lower,upper){return number===number&&(upper!==undefined&&(number=number<=upper?number:upper),lower!==undefined&&(number=number>=lower?number:lower)),number}function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer&&(result=object?customizer(value,key,object,stack):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return copyArray(value,result)}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value))return cloneBuffer(value,isDeep);if(tag==objectTag||tag==argsTag||isFunc&&!object){if(result=isFlat||isFunc?{}:initCloneObject(value),!isDeep)return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value))}else{if(!cloneableTags[tag])return object?value:{};result=initCloneByTag(value,tag,isDeep)}}stack||(stack=new Stack);var stacked=stack.get(value);if(stacked)return stacked;if(stack.set(value,result),isSet(value))return value.forEach(function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack))}),result;if(isMap(value))return value.forEach(function(subValue,key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack))}),result;var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys,props=isArr?undefined:keysFunc(value);return arrayEach(props||value,function(subValue,key){props&&(key=subValue,subValue=value[key]),assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack))}),result}function baseConforms(source){var props=keys(source);return function(object){return baseConformsTo(object,source,props)}}function baseConformsTo(object,source,props){var length=props.length;if(null==object)return!length;for(object=Object(object);length--;){var key=props[length],predicate=source[key],value=object[key];if(value===undefined&&!(key in object)||!predicate(value))return!1}return!0}function baseDelay(func,wait,args){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return setTimeout(function(){func.apply(undefined,args)},wait)}function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,isCommon=!0,length=array.length,result=[],valuesLength=values.length;if(!length)return result;iteratee&&(values=arrayMap(values,baseUnary(iteratee))),comparator?(includes=arrayIncludesWith,isCommon=!1):values.length>=LARGE_ARRAY_SIZE&&(includes=cacheHas,isCommon=!1,values=new SetCache(values));outer:for(;++index<length;){var value=array[index],computed=null==iteratee?value:iteratee(value);if(value=comparator||0!==value?value:0,isCommon&&computed===computed){for(var valuesIndex=valuesLength;valuesIndex--;)if(values[valuesIndex]===computed)continue outer;result.push(value)}else includes(values,computed,comparator)||result.push(value)}return result}function baseEvery(collection,predicate){var result=!0;return baseEach(collection,function(value,index,collection){return result=!!predicate(value,index,collection)}),result}function baseExtremum(array,iteratee,comparator){for(var index=-1,length=array.length;++index<length;){ var value=array[index],current=iteratee(value);if(null!=current&&(computed===undefined?current===current&&!isSymbol(current):comparator(current,computed)))var computed=current,result=value}return result}function baseFill(array,value,start,end){var length=array.length;for(start=toInteger(start),start<0&&(start=-start>length?0:length+start),end=end===undefined||end>length?length:toInteger(end),end<0&&(end+=length),end=start>end?0:toLength(end);start<end;)array[start++]=value;return array}function baseFilter(collection,predicate){var result=[];return baseEach(collection,function(value,index,collection){predicate(value,index,collection)&&result.push(value)}),result}function baseFlatten(array,depth,predicate,isStrict,result){var index=-1,length=array.length;for(predicate||(predicate=isFlattenable),result||(result=[]);++index<length;){var value=array[index];depth>0&&predicate(value)?depth>1?baseFlatten(value,depth-1,predicate,isStrict,result):arrayPush(result,value):isStrict||(result[result.length]=value)}return result}function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys)}function baseForOwnRight(object,iteratee){return object&&baseForRight(object,iteratee,keys)}function baseFunctions(object,props){return arrayFilter(props,function(key){return isFunction(object[key])})}function baseGet(object,path){path=castPath(path,object);for(var index=0,length=path.length;null!=object&&index<length;)object=object[toKey(path[index++])];return index&&index==length?object:undefined}function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object))}function baseGetTag(value){return null==value?value===undefined?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)}function baseGt(value,other){return value>other}function baseHas(object,key){return null!=object&&hasOwnProperty.call(object,key)}function baseHasIn(object,key){return null!=object&&key in Object(object)}function baseInRange(number,start,end){return number>=nativeMin(start,end)&&number<nativeMax(start,end)}function baseIntersection(arrays,iteratee,comparator){for(var includes=comparator?arrayIncludesWith:arrayIncludes,length=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array(othLength),maxLength=1/0,result=[];othIndex--;){var array=arrays[othIndex];othIndex&&iteratee&&(array=arrayMap(array,baseUnary(iteratee))),maxLength=nativeMin(array.length,maxLength),caches[othIndex]=!comparator&&(iteratee||length>=120&&array.length>=120)?new SetCache(othIndex&&array):undefined}array=arrays[0];var index=-1,seen=caches[0];outer:for(;++index<length&&result.length<maxLength;){var value=array[index],computed=iteratee?iteratee(value):value;if(value=comparator||0!==value?value:0,!(seen?cacheHas(seen,computed):includes(result,computed,comparator))){for(othIndex=othLength;--othIndex;){var cache=caches[othIndex];if(!(cache?cacheHas(cache,computed):includes(arrays[othIndex],computed,comparator)))continue outer}seen&&seen.push(computed),result.push(value)}}return result}function baseInverter(object,setter,iteratee,accumulator){return baseForOwn(object,function(value,key,object){setter(accumulator,iteratee(value),key,object)}),accumulator}function baseInvoke(object,path,args){path=castPath(path,object),object=parent(object,path);var func=null==object?object:object[toKey(last(path))];return null==func?undefined:apply(func,object,args)}function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag}function baseIsArrayBuffer(value){return isObjectLike(value)&&baseGetTag(value)==arrayBufferTag}function baseIsDate(value){return isObjectLike(value)&&baseGetTag(value)==dateTag}function baseIsEqual(value,other,bitmask,customizer,stack){return value===other||(null==value||null==other||!isObjectLike(value)&&!isObjectLike(other)?value!==value&&other!==other:baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual,stack))}function baseIsEqualDeep(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=objIsArr?arrayTag:getTag(object),othTag=othIsArr?arrayTag:getTag(other);objTag=objTag==argsTag?objectTag:objTag,othTag=othTag==argsTag?objectTag:othTag;var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&isBuffer(object)){if(!isBuffer(other))return!1;objIsArr=!0,objIsObj=!1}if(isSameTag&&!objIsObj)return stack||(stack=new Stack),objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);if(!(bitmask&COMPARE_PARTIAL_FLAG)){var objIsWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;return stack||(stack=new Stack),equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack)}}return!!isSameTag&&(stack||(stack=new Stack),equalObjects(object,other,bitmask,customizer,equalFunc,stack))}function baseIsMap(value){return isObjectLike(value)&&getTag(value)==mapTag}function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(null==object)return!length;for(object=Object(object);index--;){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++index<length;){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined&&!(key in object))return!1}else{var stack=new Stack;if(customizer)var result=customizer(objValue,srcValue,key,object,source,stack);if(!(result===undefined?baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,customizer,stack):result))return!1}}return!0}function baseIsNative(value){if(!isObject(value)||isMasked(value))return!1;var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value))}function baseIsRegExp(value){return isObjectLike(value)&&baseGetTag(value)==regexpTag}function baseIsSet(value){return isObjectLike(value)&&getTag(value)==setTag}function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}function baseIteratee(value){return"function"==typeof value?value:null==value?identity:"object"==typeof value?isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value):property(value)}function baseKeys(object){if(!isPrototype(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty.call(object,key)&&"constructor"!=key&&result.push(key);return result}function baseKeysIn(object){if(!isObject(object))return nativeKeysIn(object);var isProto=isPrototype(object),result=[];for(var key in object)("constructor"!=key||!isProto&&hasOwnProperty.call(object,key))&&result.push(key);return result}function baseLt(value,other){return value<other}function baseMap(collection,iteratee){var index=-1,result=isArrayLike(collection)?Array(collection.length):[];return baseEach(collection,function(value,key,collection){result[++index]=iteratee(value,key,collection)}),result}function baseMatches(source){var matchData=getMatchData(source);return 1==matchData.length&&matchData[0][2]?matchesStrictComparable(matchData[0][0],matchData[0][1]):function(object){return object===source||baseIsMatch(object,source,matchData)}}function baseMatchesProperty(path,srcValue){return isKey(path)&&isStrictComparable(srcValue)?matchesStrictComparable(toKey(path),srcValue):function(object){var objValue=get(object,path);return objValue===undefined&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseMerge(object,source,srcIndex,customizer,stack){object!==source&&baseFor(source,function(srcValue,key){if(isObject(srcValue))stack||(stack=new Stack),baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);else{var newValue=customizer?customizer(safeGet(object,key),srcValue,key+"",object,source,stack):undefined;newValue===undefined&&(newValue=srcValue),assignMergeValue(object,key,newValue)}},keysIn)}function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked)return void assignMergeValue(object,key,stacked);var newValue=customizer?customizer(objValue,srcValue,key+"",object,source,stack):undefined,isCommon=newValue===undefined;if(isCommon){var isArr=isArray(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);newValue=srcValue,isArr||isBuff||isTyped?isArray(objValue)?newValue=objValue:isArrayLikeObject(objValue)?newValue=copyArray(objValue):isBuff?(isCommon=!1,newValue=cloneBuffer(srcValue,!0)):isTyped?(isCommon=!1,newValue=cloneTypedArray(srcValue,!0)):newValue=[]:isPlainObject(srcValue)||isArguments(srcValue)?(newValue=objValue,isArguments(objValue)?newValue=toPlainObject(objValue):(!isObject(objValue)||srcIndex&&isFunction(objValue))&&(newValue=initCloneObject(srcValue))):isCommon=!1}isCommon&&(stack.set(srcValue,newValue),mergeFunc(newValue,srcValue,srcIndex,customizer,stack),stack.delete(srcValue)),assignMergeValue(object,key,newValue)}function baseNth(array,n){var length=array.length;if(length)return n+=n<0?length:0,isIndex(n,length)?array[n]:undefined}function baseOrderBy(collection,iteratees,orders){var index=-1;iteratees=arrayMap(iteratees.length?iteratees:[identity],baseUnary(getIteratee()));var result=baseMap(collection,function(value,key,collection){var criteria=arrayMap(iteratees,function(iteratee){return iteratee(value)});return{criteria:criteria,index:++index,value:value}});return baseSortBy(result,function(object,other){return compareMultiple(object,other,orders)})}function basePick(object,paths){return basePickBy(object,paths,function(value,path){return hasIn(object,path)})}function basePickBy(object,paths,predicate){for(var index=-1,length=paths.length,result={};++index<length;){var path=paths[index],value=baseGet(object,path);predicate(value,path)&&baseSet(result,castPath(path,object),value)}return result}function basePropertyDeep(path){return function(object){return baseGet(object,path)}}function basePullAll(array,values,iteratee,comparator){var indexOf=comparator?baseIndexOfWith:baseIndexOf,index=-1,length=values.length,seen=array;for(array===values&&(values=copyArray(values)),iteratee&&(seen=arrayMap(array,baseUnary(iteratee)));++index<length;)for(var fromIndex=0,value=values[index],computed=iteratee?iteratee(value):value;(fromIndex=indexOf(seen,computed,fromIndex,comparator))>-1;)seen!==array&&splice.call(seen,fromIndex,1),splice.call(array,fromIndex,1);return array}function basePullAt(array,indexes){for(var length=array?indexes.length:0,lastIndex=length-1;length--;){var index=indexes[length];if(length==lastIndex||index!==previous){var previous=index;isIndex(index)?splice.call(array,index,1):baseUnset(array,index)}}return array}function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1))}function baseRange(start,end,step,fromRight){for(var index=-1,length=nativeMax(nativeCeil((end-start)/(step||1)),0),result=Array(length);length--;)result[fromRight?length:++index]=start,start+=step;return result}function baseRepeat(string,n){var result="";if(!string||n<1||n>MAX_SAFE_INTEGER)return result;do n%2&&(result+=string),n=nativeFloor(n/2),n&&(string+=string);while(n);return result}function baseRest(func,start){return setToString(overRest(func,start,identity),func+"")}function baseSample(collection){return arraySample(values(collection))}function baseSampleSize(collection,n){var array=values(collection);return shuffleSelf(array,baseClamp(n,0,array.length))}function baseSet(object,path,value,customizer){if(!isObject(object))return object;path=castPath(path,object);for(var index=-1,length=path.length,lastIndex=length-1,nested=object;null!=nested&&++index<length;){var key=toKey(path[index]),newValue=value;if(index!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined,newValue===undefined&&(newValue=isObject(objValue)?objValue:isIndex(path[index+1])?[]:{})}assignValue(nested,key,newValue),nested=nested[key]}return object}function baseShuffle(collection){return shuffleSelf(values(collection))}function baseSlice(array,start,end){var index=-1,length=array.length;start<0&&(start=-start>length?0:length+start),end=end>length?length:end,end<0&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);++index<length;)result[index]=array[index+start];return result}function baseSome(collection,predicate){var result;return baseEach(collection,function(value,index,collection){return result=predicate(value,index,collection),!result}),!!result}function baseSortedIndex(array,value,retHighest){var low=0,high=null==array?low:array.length;if("number"==typeof value&&value===value&&high<=HALF_MAX_ARRAY_LENGTH){for(;low<high;){var mid=low+high>>>1,computed=array[mid];null!==computed&&!isSymbol(computed)&&(retHighest?computed<=value:computed<value)?low=mid+1:high=mid}return high}return baseSortedIndexBy(array,value,identity,retHighest)}function baseSortedIndexBy(array,value,iteratee,retHighest){value=iteratee(value);for(var low=0,high=null==array?0:array.length,valIsNaN=value!==value,valIsNull=null===value,valIsSymbol=isSymbol(value),valIsUndefined=value===undefined;low<high;){var mid=nativeFloor((low+high)/2),computed=iteratee(array[mid]),othIsDefined=computed!==undefined,othIsNull=null===computed,othIsReflexive=computed===computed,othIsSymbol=isSymbol(computed);if(valIsNaN)var setLow=retHighest||othIsReflexive;else setLow=valIsUndefined?othIsReflexive&&(retHighest||othIsDefined):valIsNull?othIsReflexive&&othIsDefined&&(retHighest||!othIsNull):valIsSymbol?othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol):!othIsNull&&!othIsSymbol&&(retHighest?computed<=value:computed<value);setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function baseSortedUniq(array,iteratee){for(var index=-1,length=array.length,resIndex=0,result=[];++index<length;){var value=array[index],computed=iteratee?iteratee(value):value;if(!index||!eq(computed,seen)){var seen=computed;result[resIndex++]=0===value?0:value}}return result}function baseToNumber(value){return"number"==typeof value?value:isSymbol(value)?NAN:+value}function baseToString(value){if("string"==typeof value)return value;if(isArray(value))return arrayMap(value,baseToString)+"";if(isSymbol(value))return symbolToString?symbolToString.call(value):"";var result=value+"";return"0"==result&&1/value==-INFINITY?"-0":result}function baseUniq(array,iteratee,comparator){var index=-1,includes=arrayIncludes,length=array.length,isCommon=!0,result=[],seen=result;if(comparator)isCommon=!1,includes=arrayIncludesWith;else if(length>=LARGE_ARRAY_SIZE){var set=iteratee?null:createSet(array);if(set)return setToArray(set);isCommon=!1,includes=cacheHas,seen=new SetCache}else seen=iteratee?[]:result;outer:for(;++index<length;){var value=array[index],computed=iteratee?iteratee(value):value;if(value=comparator||0!==value?value:0,isCommon&&computed===computed){for(var seenIndex=seen.length;seenIndex--;)if(seen[seenIndex]===computed)continue outer;iteratee&&seen.push(computed),result.push(value)}else includes(seen,computed,comparator)||(seen!==result&&seen.push(computed),result.push(value))}return result}function baseUnset(object,path){return path=castPath(path,object),object=parent(object,path),null==object||delete object[toKey(last(path))]}function baseUpdate(object,path,updater,customizer){return baseSet(object,path,updater(baseGet(object,path)),customizer)}function baseWhile(array,predicate,isDrop,fromRight){for(var length=array.length,index=fromRight?length:-1;(fromRight?index--:++index<length)&&predicate(array[index],index,array););return isDrop?baseSlice(array,fromRight?0:index,fromRight?index+1:length):baseSlice(array,fromRight?index+1:0,fromRight?length:index)}function baseWrapperValue(value,actions){var result=value;return result instanceof LazyWrapper&&(result=result.value()),arrayReduce(actions,function(result,action){return action.func.apply(action.thisArg,arrayPush([result],action.args))},result)}function baseXor(arrays,iteratee,comparator){var length=arrays.length;if(length<2)return length?baseUniq(arrays[0]):[];for(var index=-1,result=Array(length);++index<length;)for(var array=arrays[index],othIndex=-1;++othIndex<length;)othIndex!=index&&(result[index]=baseDifference(result[index]||array,arrays[othIndex],iteratee,comparator));return baseUniq(baseFlatten(result,1),iteratee,comparator)}function baseZipObject(props,values,assignFunc){for(var index=-1,length=props.length,valsLength=values.length,result={};++index<length;){var value=index<valsLength?values[index]:undefined;assignFunc(result,props[index],value)}return result}function castArrayLikeObject(value){return isArrayLikeObject(value)?value:[]}function castFunction(value){return"function"==typeof value?value:identity}function castPath(value,object){return isArray(value)?value:isKey(value,object)?[value]:stringToPath(toString(value))}function castSlice(array,start,end){var length=array.length;return end=end===undefined?length:end,!start&&end>=length?array:baseSlice(array,start,end)}function cloneBuffer(buffer,isDeep){if(isDeep)return buffer.slice();var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);return buffer.copy(result),result}function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);return new Uint8Array(result).set(new Uint8Array(arrayBuffer)),result}function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength)}function cloneRegExp(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));return result.lastIndex=regexp.lastIndex,result}function cloneSymbol(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{}}function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length)}function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined,valIsNull=null===value,valIsReflexive=value===value,valIsSymbol=isSymbol(value),othIsDefined=other!==undefined,othIsNull=null===other,othIsReflexive=other===other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive)return 1;if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive)return-1}return 0}function compareMultiple(object,other,orders){for(var index=-1,objCriteria=object.criteria,othCriteria=other.criteria,length=objCriteria.length,ordersLength=orders.length;++index<length;){var result=compareAscending(objCriteria[index],othCriteria[index]);if(result){if(index>=ordersLength)return result;var order=orders[index];return result*("desc"==order?-1:1)}}return object.index-other.index}function composeArgs(args,partials,holders,isCurried){for(var argsIndex=-1,argsLength=args.length,holdersLength=holders.length,leftIndex=-1,leftLength=partials.length,rangeLength=nativeMax(argsLength-holdersLength,0),result=Array(leftLength+rangeLength),isUncurried=!isCurried;++leftIndex<leftLength;)result[leftIndex]=partials[leftIndex];for(;++argsIndex<holdersLength;)(isUncurried||argsIndex<argsLength)&&(result[holders[argsIndex]]=args[argsIndex]);for(;rangeLength--;)result[leftIndex++]=args[argsIndex++];return result}function composeArgsRight(args,partials,holders,isCurried){for(var argsIndex=-1,argsLength=args.length,holdersIndex=-1,holdersLength=holders.length,rightIndex=-1,rightLength=partials.length,rangeLength=nativeMax(argsLength-holdersLength,0),result=Array(rangeLength+rightLength),isUncurried=!isCurried;++argsIndex<rangeLength;)result[argsIndex]=args[argsIndex];for(var offset=argsIndex;++rightIndex<rightLength;)result[offset+rightIndex]=partials[rightIndex];for(;++holdersIndex<holdersLength;)(isUncurried||argsIndex<argsLength)&&(result[offset+holders[holdersIndex]]=args[argsIndex++]);return result}function copyArray(source,array){var index=-1,length=source.length;for(array||(array=Array(length));++index<length;)array[index]=source[index];return array}function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});for(var index=-1,length=props.length;++index<length;){var key=props[index],newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;newValue===undefined&&(newValue=source[key]),isNew?baseAssignValue(object,key,newValue):assignValue(object,key,newValue)}return object}function copySymbols(source,object){return copyObject(source,getSymbols(source),object)}function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object)}function createAggregator(setter,initializer){return function(collection,iteratee){var func=isArray(collection)?arrayAggregator:baseAggregator,accumulator=initializer?initializer():{};return func(collection,setter,getIteratee(iteratee,2),accumulator)}}function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;for(customizer=assigner.length>3&&"function"==typeof customizer?(length--,customizer):undefined,guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?undefined:customizer,length=1),object=Object(object);++index<length;){var source=sources[index];source&&assigner(object,source,index,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){if(null==collection)return collection;if(!isArrayLike(collection))return eachFunc(collection,iteratee);for(var length=collection.length,index=fromRight?length:-1,iterable=Object(collection);(fromRight?index--:++index<length)&&iteratee(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;length--;){var key=props[fromRight?length:++index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createBind(func,bitmask,thisArg){function wrapper(){var fn=this&&this!==root&&this instanceof wrapper?Ctor:func;return fn.apply(isBind?thisArg:this,arguments)}var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);return wrapper}function createCaseFirst(methodName){return function(string){string=toString(string);var strSymbols=hasUnicode(string)?stringToArray(string):undefined,chr=strSymbols?strSymbols[0]:string.charAt(0),trailing=strSymbols?castSlice(strSymbols,1).join(""):string.slice(1);return chr[methodName]()+trailing}}function createCompounder(callback){return function(string){return arrayReduce(words(deburr(string).replace(reApos,"")),callback,"")}}function createCtor(Ctor){return function(){var args=arguments;switch(args.length){case 0:return new Ctor;case 1:return new Ctor(args[0]);case 2:return new Ctor(args[0],args[1]);case 3:return new Ctor(args[0],args[1],args[2]);case 4:return new Ctor(args[0],args[1],args[2],args[3]);case 5:return new Ctor(args[0],args[1],args[2],args[3],args[4]);case 6:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5]);case 7:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5],args[6])}var thisBinding=baseCreate(Ctor.prototype),result=Ctor.apply(thisBinding,args);return isObject(result)?result:thisBinding}}function createCurry(func,bitmask,arity){function wrapper(){for(var length=arguments.length,args=Array(length),index=length,placeholder=getHolder(wrapper);index--;)args[index]=arguments[index];var holders=length<3&&args[0]!==placeholder&&args[length-1]!==placeholder?[]:replaceHolders(args,placeholder);if(length-=holders.length,length<arity)return createRecurry(func,bitmask,createHybrid,wrapper.placeholder,undefined,args,holders,undefined,undefined,arity-length);var fn=this&&this!==root&&this instanceof wrapper?Ctor:func;return apply(fn,this,args)}var Ctor=createCtor(func);return wrapper}function createFind(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object(collection);if(!isArrayLike(collection)){var iteratee=getIteratee(predicate,3);collection=keys(collection),predicate=function(key){return iteratee(iterable[key],key,iterable)}}var index=findIndexFunc(collection,predicate,fromIndex);return index>-1?iterable[iteratee?collection[index]:index]:undefined}}function createFlow(fromRight){return flatRest(function(funcs){var length=funcs.length,index=length,prereq=LodashWrapper.prototype.thru;for(fromRight&&funcs.reverse();index--;){var func=funcs[index];if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);if(prereq&&!wrapper&&"wrapper"==getFuncName(func))var wrapper=new LodashWrapper([],!0)}for(index=wrapper?index:length;++index<length;){func=funcs[index];var funcName=getFuncName(func),data="wrapper"==funcName?getData(func):undefined;wrapper=data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&1==data[9]?wrapper[getFuncName(data[0])].apply(wrapper,data[3]):1==func.length&&isLaziable(func)?wrapper[funcName]():wrapper.thru(func)}return function(){var args=arguments,value=args[0];if(wrapper&&1==args.length&&isArray(value))return wrapper.plant(value).value();for(var index=0,result=length?funcs[index].apply(this,args):value;++index<length;)result=funcs[index].call(this,result);return result}})}function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity){function wrapper(){for(var length=arguments.length,args=Array(length),index=length;index--;)args[index]=arguments[index];if(isCurried)var placeholder=getHolder(wrapper),holdersCount=countHolders(args,placeholder);if(partials&&(args=composeArgs(args,partials,holders,isCurried)),partialsRight&&(args=composeArgsRight(args,partialsRight,holdersRight,isCurried)),length-=holdersCount,isCurried&&length<arity){var newHolders=replaceHolders(args,placeholder);return createRecurry(func,bitmask,createHybrid,wrapper.placeholder,thisArg,args,newHolders,argPos,ary,arity-length)}var thisBinding=isBind?thisArg:this,fn=isBindKey?thisBinding[func]:func;return length=args.length,argPos?args=reorder(args,argPos):isFlip&&length>1&&args.reverse(),isAry&&ary<length&&(args.length=ary),this&&this!==root&&this instanceof wrapper&&(fn=Ctor||createCtor(fn)),fn.apply(thisBinding,args)}var isAry=bitmask&WRAP_ARY_FLAG,isBind=bitmask&WRAP_BIND_FLAG,isBindKey=bitmask&WRAP_BIND_KEY_FLAG,isCurried=bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG),isFlip=bitmask&WRAP_FLIP_FLAG,Ctor=isBindKey?undefined:createCtor(func);return wrapper}function createInverter(setter,toIteratee){return function(object,iteratee){return baseInverter(object,setter,toIteratee(iteratee),{})}}function createMathOperation(operator,defaultValue){return function(value,other){var result;if(value===undefined&&other===undefined)return defaultValue;if(value!==undefined&&(result=value),other!==undefined){if(result===undefined)return other;"string"==typeof value||"string"==typeof other?(value=baseToString(value),other=baseToString(other)):(value=baseToNumber(value),other=baseToNumber(other)),result=operator(value,other)}return result}}function createOver(arrayFunc){return flatRest(function(iteratees){return iteratees=arrayMap(iteratees,baseUnary(getIteratee())),baseRest(function(args){var thisArg=this;return arrayFunc(iteratees,function(iteratee){return apply(iteratee,thisArg,args)})})})}function createPadding(length,chars){chars=chars===undefined?" ":baseToString(chars);var charsLength=chars.length;if(charsLength<2)return charsLength?baseRepeat(chars,length):chars;var result=baseRepeat(chars,nativeCeil(length/stringSize(chars)));return hasUnicode(chars)?castSlice(stringToArray(result),0,length).join(""):result.slice(0,length)}function createPartial(func,bitmask,thisArg,partials){function wrapper(){for(var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=Array(leftLength+argsLength),fn=this&&this!==root&&this instanceof wrapper?Ctor:func;++leftIndex<leftLength;)args[leftIndex]=partials[leftIndex];for(;argsLength--;)args[leftIndex++]=arguments[++argsIndex];return apply(fn,isBind?thisArg:this,args)}var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);return wrapper}function createRange(fromRight){return function(start,end,step){return step&&"number"!=typeof step&&isIterateeCall(start,end,step)&&(end=step=undefined),start=toFinite(start),end===undefined?(end=start,start=0):end=toFinite(end),step=step===undefined?start<end?1:-1:toFinite(step),baseRange(start,end,step,fromRight)}}function createRelationalOperation(operator){return function(value,other){return"string"==typeof value&&"string"==typeof other||(value=toNumber(value),other=toNumber(other)),operator(value,other)}}function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,holders,argPos,ary,arity){var isCurry=bitmask&WRAP_CURRY_FLAG,newHolders=isCurry?holders:undefined,newHoldersRight=isCurry?undefined:holders,newPartials=isCurry?partials:undefined,newPartialsRight=isCurry?undefined:partials;bitmask|=isCurry?WRAP_PARTIAL_FLAG:WRAP_PARTIAL_RIGHT_FLAG,bitmask&=~(isCurry?WRAP_PARTIAL_RIGHT_FLAG:WRAP_PARTIAL_FLAG),bitmask&WRAP_CURRY_BOUND_FLAG||(bitmask&=~(WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG));var newData=[func,bitmask,thisArg,newPartials,newHolders,newPartialsRight,newHoldersRight,argPos,ary,arity],result=wrapFunc.apply(undefined,newData);return isLaziable(func)&&setData(result,newData),result.placeholder=placeholder,setWrapToString(result,func,bitmask)}function createRound(methodName){var func=Math[methodName];return function(number,precision){if(number=toNumber(number),precision=null==precision?0:nativeMin(toInteger(precision),292)){var pair=(toString(number)+"e").split("e"),value=func(pair[0]+"e"+(+pair[1]+precision));return pair=(toString(value)+"e").split("e"),+(pair[0]+"e"+(+pair[1]-precision))}return func(number)}}function createToPairs(keysFunc){return function(object){var tag=getTag(object);return tag==mapTag?mapToArray(object):tag==setTag?setToPairs(object):baseToPairs(object,keysFunc(object))}}function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&"function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);var length=partials?partials.length:0;if(length||(bitmask&=~(WRAP_PARTIAL_FLAG|WRAP_PARTIAL_RIGHT_FLAG),partials=holders=undefined),ary=ary===undefined?ary:nativeMax(toInteger(ary),0),arity=arity===undefined?arity:toInteger(arity),length-=holders?holders.length:0,bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined}var data=isBindKey?undefined:getData(func),newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity];if(data&&mergeData(newData,data),func=newData[0],bitmask=newData[1],thisArg=newData[2],partials=newData[3],holders=newData[4],arity=newData[9]=newData[9]===undefined?isBindKey?0:func.length:nativeMax(newData[9]-length,0),!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)&&(bitmask&=~(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)), bitmask&&bitmask!=WRAP_BIND_FLAG)result=bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG?createCurry(func,bitmask,arity):bitmask!=WRAP_PARTIAL_FLAG&&bitmask!=(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG)||holders.length?createHybrid.apply(undefined,newData):createPartial(func,bitmask,thisArg,partials);else var result=createBind(func,bitmask,thisArg);var setter=data?baseSetData:setData;return setWrapToString(setter(result,newData),func,bitmask)}function customDefaultsAssignIn(objValue,srcValue,key,object){return objValue===undefined||eq(objValue,objectProto[key])&&!hasOwnProperty.call(object,key)?srcValue:objValue}function customDefaultsMerge(objValue,srcValue,key,object,source,stack){return isObject(objValue)&&isObject(srcValue)&&(stack.set(srcValue,objValue),baseMerge(objValue,srcValue,undefined,customDefaultsMerge,stack),stack.delete(srcValue)),objValue}function customOmitClone(value){return isPlainObject(value)?undefined:value}function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength))return!1;var stacked=stack.get(array);if(stacked&&stack.get(other))return stacked==other;var index=-1,result=!0,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache:undefined;for(stack.set(array,other),stack.set(other,array);++index<arrLength;){var arrValue=array[index],othValue=other[index];if(customizer)var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);if(compared!==undefined){if(compared)continue;result=!1;break}if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack)))return seen.push(othIndex)})){result=!1;break}}else if(arrValue!==othValue&&!equalFunc(arrValue,othValue,bitmask,customizer,stack)){result=!1;break}}return stack.delete(array),stack.delete(other),result}function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset)return!1;object=object.buffer,other=other.buffer;case arrayBufferTag:return!(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),new Uint8Array(other)));case boolTag:case dateTag:case numberTag:return eq(+object,+other);case errorTag:return object.name==other.name&&object.message==other.message;case regexpTag:case stringTag:return object==other+"";case mapTag:var convert=mapToArray;case setTag:var isPartial=bitmask&COMPARE_PARTIAL_FLAG;if(convert||(convert=setToArray),object.size!=other.size&&!isPartial)return!1;var stacked=stack.get(object);if(stacked)return stacked==other;bitmask|=COMPARE_UNORDERED_FLAG,stack.set(object,other);var result=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);return stack.delete(object),result;case symbolTag:if(symbolValueOf)return symbolValueOf.call(object)==symbolValueOf.call(other)}return!1}function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,objProps=getAllKeys(object),objLength=objProps.length,othProps=getAllKeys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key)))return!1}var stacked=stack.get(object);if(stacked&&stack.get(other))return stacked==other;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index<objLength;){key=objProps[index];var objValue=object[key],othValue=other[key];if(customizer)var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);if(!(compared===undefined?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=!1;break}skipCtor||(skipCtor="constructor"==key)}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!("function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor)&&(result=!1)}return stack.delete(object),stack.delete(other),result}function flatRest(func){return setToString(overRest(func,undefined,flatten),func+"")}function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols)}function getAllKeysIn(object){return baseGetAllKeys(object,keysIn,getSymbolsIn)}function getFuncName(func){for(var result=func.name+"",array=realNames[result],length=hasOwnProperty.call(realNames,result)?array.length:0;length--;){var data=array[length],otherFunc=data.func;if(null==otherFunc||otherFunc==func)return data.name}return result}function getHolder(func){var object=hasOwnProperty.call(lodash,"placeholder")?lodash:func;return object.placeholder}function getIteratee(){var result=lodash.iteratee||iteratee;return result=result===iteratee?baseIteratee:result,arguments.length?result(arguments[0],arguments[1]):result}function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data["string"==typeof key?"string":"hash"]:data.map}function getMatchData(object){for(var result=keys(object),length=result.length;length--;){var key=result[length],value=object[key];result[length]=[key,value,isStrictComparable(value)]}return result}function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined}function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined;var unmasked=!0}catch(e){}var result=nativeObjectToString.call(value);return unmasked&&(isOwn?value[symToStringTag]=tag:delete value[symToStringTag]),result}function getView(start,end,transforms){for(var index=-1,length=transforms.length;++index<length;){var data=transforms[index],size=data.size;switch(data.type){case"drop":start+=size;break;case"dropRight":end-=size;break;case"take":end=nativeMin(end,start+size);break;case"takeRight":start=nativeMax(start,end-size)}}return{start:start,end:end}}function getWrapDetails(source){var match=source.match(reWrapDetails);return match?match[1].split(reSplitDetails):[]}function hasPath(object,path,hasFunc){path=castPath(path,object);for(var index=-1,length=path.length,result=!1;++index<length;){var key=toKey(path[index]);if(!(result=null!=object&&hasFunc(object,key)))break;object=object[key]}return result||++index!=length?result:(length=null==object?0:object.length,!!length&&isLength(length)&&isIndex(key,length)&&(isArray(object)||isArguments(object)))}function initCloneArray(array){var length=array.length,result=new array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){return"function"!=typeof object.constructor||isPrototype(object)?{}:baseCreate(getPrototype(object))}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneArrayBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case dataViewTag:return cloneDataView(object,isDeep);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return cloneTypedArray(object,isDeep);case mapTag:return new Ctor;case numberTag:case stringTag:return new Ctor(object);case regexpTag:return cloneRegExp(object);case setTag:return new Ctor;case symbolTag:return cloneSymbol(object)}}function insertWrapDetails(source,details){var length=details.length;if(!length)return source;var lastIndex=length-1;return details[lastIndex]=(length>1?"& ":"")+details[lastIndex],details=details.join(length>2?", ":" "),source.replace(reWrapComment,"{\n/* [wrapped with "+details+"] */\n")}function isFlattenable(value){return isArray(value)||isArguments(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol])}function isIndex(value,length){var type=typeof value;return length=null==length?MAX_SAFE_INTEGER:length,!!length&&("number"==type||"symbol"!=type&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;return!!("number"==type?isArrayLike(object)&&isIndex(index,object.length):"string"==type&&index in object)&&eq(object[index],value)}function isKey(value,object){if(isArray(value))return!1;var type=typeof value;return!("number"!=type&&"symbol"!=type&&"boolean"!=type&&null!=value&&!isSymbol(value))||(reIsPlainProp.test(value)||!reIsDeepProp.test(value)||null!=object&&value in Object(object))}function isKeyable(value){var type=typeof value;return"string"==type||"number"==type||"symbol"==type||"boolean"==type?"__proto__"!==value:null===value}function isLaziable(func){var funcName=getFuncName(func),other=lodash[funcName];if("function"!=typeof other||!(funcName in LazyWrapper.prototype))return!1;if(func===other)return!0;var data=getData(other);return!!data&&func===data[0]}function isMasked(func){return!!maskSrcKey&&maskSrcKey in func}function isPrototype(value){var Ctor=value&&value.constructor,proto="function"==typeof Ctor&&Ctor.prototype||objectProto;return value===proto}function isStrictComparable(value){return value===value&&!isObject(value)}function matchesStrictComparable(key,srcValue){return function(object){return null!=object&&(object[key]===srcValue&&(srcValue!==undefined||key in Object(object)))}}function memoizeCapped(func){var result=memoize(func,function(key){return cache.size===MAX_MEMOIZE_SIZE&&cache.clear(),key}),cache=result.cache;return result}function mergeData(data,source){var bitmask=data[1],srcBitmask=source[1],newBitmask=bitmask|srcBitmask,isCommon=newBitmask<(WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG|WRAP_ARY_FLAG),isCombo=srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_CURRY_FLAG||srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_REARG_FLAG&&data[7].length<=source[8]||srcBitmask==(WRAP_ARY_FLAG|WRAP_REARG_FLAG)&&source[7].length<=source[8]&&bitmask==WRAP_CURRY_FLAG;if(!isCommon&&!isCombo)return data;srcBitmask&WRAP_BIND_FLAG&&(data[2]=source[2],newBitmask|=bitmask&WRAP_BIND_FLAG?0:WRAP_CURRY_BOUND_FLAG);var value=source[3];if(value){var partials=data[3];data[3]=partials?composeArgs(partials,value,source[4]):value,data[4]=partials?replaceHolders(data[3],PLACEHOLDER):source[4]}return value=source[5],value&&(partials=data[5],data[5]=partials?composeArgsRight(partials,value,source[6]):value,data[6]=partials?replaceHolders(data[5],PLACEHOLDER):source[6]),value=source[7],value&&(data[7]=value),srcBitmask&WRAP_ARY_FLAG&&(data[8]=null==data[8]?source[8]:nativeMin(data[8],source[8])),null==data[9]&&(data[9]=source[9]),data[0]=source[0],data[1]=newBitmask,data}function nativeKeysIn(object){var result=[];if(null!=object)for(var key in Object(object))result.push(key);return result}function objectToString(value){return nativeObjectToString.call(value)}function overRest(func,start,transform){return start=nativeMax(start===undefined?func.length-1:start,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);++index<length;)array[index]=args[start+index];index=-1;for(var otherArgs=Array(start+1);++index<start;)otherArgs[index]=args[index];return otherArgs[start]=transform(array),apply(func,this,otherArgs)}}function parent(object,path){return path.length<2?object:baseGet(object,baseSlice(path,0,-1))}function reorder(array,indexes){for(var arrLength=array.length,length=nativeMin(indexes.length,arrLength),oldArray=copyArray(array);length--;){var index=indexes[length];array[length]=isIndex(index,arrLength)?oldArray[index]:undefined}return array}function setWrapToString(wrapper,reference,bitmask){var source=reference+"";return setToString(wrapper,insertWrapDetails(source,updateWrapDetails(getWrapDetails(source),bitmask)))}function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);if(lastCalled=stamp,remaining>0){if(++count>=HOT_COUNT)return arguments[0]}else count=0;return func.apply(undefined,arguments)}}function shuffleSelf(array,size){var index=-1,length=array.length,lastIndex=length-1;for(size=size===undefined?length:size;++index<size;){var rand=baseRandom(index,lastIndex),value=array[rand];array[rand]=array[index],array[index]=value}return array.length=size,array}function toKey(value){if("string"==typeof value||isSymbol(value))return value;var result=value+"";return"0"==result&&1/value==-INFINITY?"-0":result}function toSource(func){if(null!=func){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}function updateWrapDetails(details,bitmask){return arrayEach(wrapFlags,function(pair){var value="_."+pair[0];bitmask&pair[1]&&!arrayIncludes(details,value)&&details.push(value)}),details.sort()}function wrapperClone(wrapper){if(wrapper instanceof LazyWrapper)return wrapper.clone();var result=new LodashWrapper(wrapper.__wrapped__,wrapper.__chain__);return result.__actions__=copyArray(wrapper.__actions__),result.__index__=wrapper.__index__,result.__values__=wrapper.__values__,result}function chunk(array,size,guard){size=(guard?isIterateeCall(array,size,guard):size===undefined)?1:nativeMax(toInteger(size),0);var length=null==array?0:array.length;if(!length||size<1)return[];for(var index=0,resIndex=0,result=Array(nativeCeil(length/size));index<length;)result[resIndex++]=baseSlice(array,index,index+=size);return result}function compact(array){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];value&&(result[resIndex++]=value)}return result}function concat(){var length=arguments.length;if(!length)return[];for(var args=Array(length-1),array=arguments[0],index=length;index--;)args[index-1]=arguments[index];return arrayPush(isArray(array)?copyArray(array):[array],baseFlatten(args,1))}function drop(array,n,guard){var length=null==array?0:array.length;return length?(n=guard||n===undefined?1:toInteger(n),baseSlice(array,n<0?0:n,length)):[]}function dropRight(array,n,guard){var length=null==array?0:array.length;return length?(n=guard||n===undefined?1:toInteger(n),n=length-n,baseSlice(array,0,n<0?0:n)):[]}function dropRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!0,!0):[]}function dropWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!0):[]}function fill(array,value,start,end){var length=null==array?0:array.length;return length?(start&&"number"!=typeof start&&isIterateeCall(array,value,start)&&(start=0,end=length),baseFill(array,value,start,end)):[]}function findIndex(array,predicate,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=null==fromIndex?0:toInteger(fromIndex);return index<0&&(index=nativeMax(length+index,0)),baseFindIndex(array,getIteratee(predicate,3),index)}function findLastIndex(array,predicate,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=length-1;return fromIndex!==undefined&&(index=toInteger(fromIndex),index=fromIndex<0?nativeMax(length+index,0):nativeMin(index,length-1)),baseFindIndex(array,getIteratee(predicate,3),index,!0)}function flatten(array){var length=null==array?0:array.length;return length?baseFlatten(array,1):[]}function flattenDeep(array){var length=null==array?0:array.length;return length?baseFlatten(array,INFINITY):[]}function flattenDepth(array,depth){var length=null==array?0:array.length;return length?(depth=depth===undefined?1:toInteger(depth),baseFlatten(array,depth)):[]}function fromPairs(pairs){for(var index=-1,length=null==pairs?0:pairs.length,result={};++index<length;){var pair=pairs[index];result[pair[0]]=pair[1]}return result}function head(array){return array&&array.length?array[0]:undefined}function indexOf(array,value,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=null==fromIndex?0:toInteger(fromIndex);return index<0&&(index=nativeMax(length+index,0)),baseIndexOf(array,value,index)}function initial(array){var length=null==array?0:array.length;return length?baseSlice(array,0,-1):[]}function join(array,separator){return null==array?"":nativeJoin.call(array,separator)}function last(array){var length=null==array?0:array.length;return length?array[length-1]:undefined}function lastIndexOf(array,value,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=length;return fromIndex!==undefined&&(index=toInteger(fromIndex),index=index<0?nativeMax(length+index,0):nativeMin(index,length-1)),value===value?strictLastIndexOf(array,value,index):baseFindIndex(array,baseIsNaN,index,!0)}function nth(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined}function pullAll(array,values){return array&&array.length&&values&&values.length?basePullAll(array,values):array}function pullAllBy(array,values,iteratee){return array&&array.length&&values&&values.length?basePullAll(array,values,getIteratee(iteratee,2)):array}function pullAllWith(array,values,comparator){return array&&array.length&&values&&values.length?basePullAll(array,values,undefined,comparator):array}function remove(array,predicate){var result=[];if(!array||!array.length)return result;var index=-1,indexes=[],length=array.length;for(predicate=getIteratee(predicate,3);++index<length;){var value=array[index];predicate(value,index,array)&&(result.push(value),indexes.push(index))}return basePullAt(array,indexes),result}function reverse(array){return null==array?array:nativeReverse.call(array)}function slice(array,start,end){var length=null==array?0:array.length;return length?(end&&"number"!=typeof end&&isIterateeCall(array,start,end)?(start=0,end=length):(start=null==start?0:toInteger(start),end=end===undefined?length:toInteger(end)),baseSlice(array,start,end)):[]}function sortedIndex(array,value){return baseSortedIndex(array,value)}function sortedIndexBy(array,value,iteratee){return baseSortedIndexBy(array,value,getIteratee(iteratee,2))}function sortedIndexOf(array,value){var length=null==array?0:array.length;if(length){var index=baseSortedIndex(array,value);if(index<length&&eq(array[index],value))return index}return-1}function sortedLastIndex(array,value){return baseSortedIndex(array,value,!0)}function sortedLastIndexBy(array,value,iteratee){return baseSortedIndexBy(array,value,getIteratee(iteratee,2),!0)}function sortedLastIndexOf(array,value){var length=null==array?0:array.length;if(length){var index=baseSortedIndex(array,value,!0)-1;if(eq(array[index],value))return index}return-1}function sortedUniq(array){return array&&array.length?baseSortedUniq(array):[]}function sortedUniqBy(array,iteratee){return array&&array.length?baseSortedUniq(array,getIteratee(iteratee,2)):[]}function tail(array){var length=null==array?0:array.length;return length?baseSlice(array,1,length):[]}function take(array,n,guard){return array&&array.length?(n=guard||n===undefined?1:toInteger(n),baseSlice(array,0,n<0?0:n)):[]}function takeRight(array,n,guard){var length=null==array?0:array.length;return length?(n=guard||n===undefined?1:toInteger(n),n=length-n,baseSlice(array,n<0?0:n,length)):[]}function takeRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!1,!0):[]}function takeWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[]}function uniq(array){return array&&array.length?baseUniq(array):[]}function uniqBy(array,iteratee){return array&&array.length?baseUniq(array,getIteratee(iteratee,2)):[]}function uniqWith(array,comparator){return comparator="function"==typeof comparator?comparator:undefined,array&&array.length?baseUniq(array,undefined,comparator):[]}function unzip(array){if(!array||!array.length)return[];var length=0;return array=arrayFilter(array,function(group){if(isArrayLikeObject(group))return length=nativeMax(group.length,length),!0}),baseTimes(length,function(index){return arrayMap(array,baseProperty(index))})}function unzipWith(array,iteratee){if(!array||!array.length)return[];var result=unzip(array);return null==iteratee?result:arrayMap(result,function(group){return apply(iteratee,undefined,group)})}function zipObject(props,values){return baseZipObject(props||[],values||[],assignValue)}function zipObjectDeep(props,values){return baseZipObject(props||[],values||[],baseSet)}function chain(value){var result=lodash(value);return result.__chain__=!0,result}function tap(value,interceptor){return interceptor(value),value}function thru(value,interceptor){return interceptor(value)}function wrapperChain(){return chain(this)}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)}function wrapperNext(){this.__values__===undefined&&(this.__values__=toArray(this.value()));var done=this.__index__>=this.__values__.length,value=done?undefined:this.__values__[this.__index__++];return{done:done,value:value}}function wrapperToIterator(){return this}function wrapperPlant(value){for(var result,parent=this;parent instanceof baseLodash;){var clone=wrapperClone(parent);clone.__index__=0,clone.__values__=undefined,result?previous.__wrapped__=clone:result=clone;var previous=clone;parent=parent.__wrapped__}return previous.__wrapped__=value,result}function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;return this.__actions__.length&&(wrapped=new LazyWrapper(this)),wrapped=wrapped.reverse(),wrapped.__actions__.push({func:thru,args:[reverse],thisArg:undefined}),new LodashWrapper(wrapped,this.__chain__)}return this.thru(reverse)}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)}function every(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;return guard&&isIterateeCall(collection,predicate,guard)&&(predicate=undefined),func(collection,getIteratee(predicate,3))}function filter(collection,predicate){var func=isArray(collection)?arrayFilter:baseFilter;return func(collection,getIteratee(predicate,3))}function flatMap(collection,iteratee){return baseFlatten(map(collection,iteratee),1)}function flatMapDeep(collection,iteratee){return baseFlatten(map(collection,iteratee),INFINITY)}function flatMapDepth(collection,iteratee,depth){return depth=depth===undefined?1:toInteger(depth),baseFlatten(map(collection,iteratee),depth)}function forEach(collection,iteratee){var func=isArray(collection)?arrayEach:baseEach;return func(collection,getIteratee(iteratee,3))}function forEachRight(collection,iteratee){var func=isArray(collection)?arrayEachRight:baseEachRight;return func(collection,getIteratee(iteratee,3))}function includes(collection,value,fromIndex,guard){collection=isArrayLike(collection)?collection:values(collection),fromIndex=fromIndex&&!guard?toInteger(fromIndex):0;var length=collection.length;return fromIndex<0&&(fromIndex=nativeMax(length+fromIndex,0)),isString(collection)?fromIndex<=length&&collection.indexOf(value,fromIndex)>-1:!!length&&baseIndexOf(collection,value,fromIndex)>-1}function map(collection,iteratee){var func=isArray(collection)?arrayMap:baseMap;return func(collection,getIteratee(iteratee,3))}function orderBy(collection,iteratees,orders,guard){return null==collection?[]:(isArray(iteratees)||(iteratees=null==iteratees?[]:[iteratees]),orders=guard?undefined:orders,isArray(orders)||(orders=null==orders?[]:[orders]),baseOrderBy(collection,iteratees,orders))}function reduce(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEach)}function reduceRight(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduceRight:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEachRight)}function reject(collection,predicate){var func=isArray(collection)?arrayFilter:baseFilter;return func(collection,negate(getIteratee(predicate,3)))}function sample(collection){var func=isArray(collection)?arraySample:baseSample;return func(collection)}function sampleSize(collection,n,guard){n=(guard?isIterateeCall(collection,n,guard):n===undefined)?1:toInteger(n);var func=isArray(collection)?arraySampleSize:baseSampleSize;return func(collection,n)}function shuffle(collection){var func=isArray(collection)?arrayShuffle:baseShuffle;return func(collection)}function size(collection){if(null==collection)return 0;if(isArrayLike(collection))return isString(collection)?stringSize(collection):collection.length;var tag=getTag(collection);return tag==mapTag||tag==setTag?collection.size:baseKeys(collection).length}function some(collection,predicate,guard){var func=isArray(collection)?arraySome:baseSome;return guard&&isIterateeCall(collection,predicate,guard)&&(predicate=undefined),func(collection,getIteratee(predicate,3))}function after(n,func){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){if(--n<1)return func.apply(this,arguments)}}function ary(func,n,guard){return n=guard?undefined:n,n=func&&null==n?func.length:n,createWrap(func,WRAP_ARY_FLAG,undefined,undefined,undefined,undefined,n)}function before(n,func){var result;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){return--n>0&&(result=func.apply(this,arguments)),n<=1&&(func=undefined),result}}function curry(func,arity,guard){arity=guard?undefined:arity;var result=createWrap(func,WRAP_CURRY_FLAG,undefined,undefined,undefined,undefined,undefined,arity);return result.placeholder=curry.placeholder,result}function curryRight(func,arity,guard){arity=guard?undefined:arity;var result=createWrap(func,WRAP_CURRY_RIGHT_FLAG,undefined,undefined,undefined,undefined,undefined,arity);return result.placeholder=curryRight.placeholder,result}function debounce(func,wait,options){function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=undefined,lastInvokeTime=time,result=func.apply(thisArg,args)}function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?nativeMin(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;return lastCallTime===undefined||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait}function timerExpired(){var time=now();return shouldInvoke(time)?trailingEdge(time):void(timerId=setTimeout(timerExpired,remainingWait(time)))}function trailingEdge(time){return timerId=undefined,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=undefined,result)}function cancel(){timerId!==undefined&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=undefined}function flush(){return timerId===undefined?result:trailingEdge(now())}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(timerId===undefined)return leadingEdge(lastCallTime);if(maxing)return timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return timerId===undefined&&(timerId=setTimeout(timerExpired,wait)),result}var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxing="maxWait"in options,maxWait=maxing?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=cancel,debounced.flush=flush,debounced}function flip(func){return createWrap(func,WRAP_FLIP_FLAG)}function memoize(func,resolver){if("function"!=typeof func||null!=resolver&&"function"!=typeof resolver)throw new TypeError(FUNC_ERROR_TEXT);var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result)||cache,result};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(predicate){if("function"!=typeof predicate)throw new TypeError(FUNC_ERROR_TEXT);return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2])}return!predicate.apply(this,args)}}function once(func){return before(2,func)}function rest(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=start===undefined?start:toInteger(start),baseRest(func,start)}function spread(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=null==start?0:nativeMax(toInteger(start),0),baseRest(function(args){var array=args[start],otherArgs=castSlice(args,0,start);return array&&arrayPush(otherArgs,array),apply(func,this,otherArgs)})}function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})}function unary(func){return ary(func,1)}function wrap(value,wrapper){return partial(castFunction(wrapper),value)}function castArray(){if(!arguments.length)return[];var value=arguments[0];return isArray(value)?value:[value]}function clone(value){return baseClone(value,CLONE_SYMBOLS_FLAG)}function cloneWith(value,customizer){return customizer="function"==typeof customizer?customizer:undefined,baseClone(value,CLONE_SYMBOLS_FLAG,customizer)}function cloneDeep(value){return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}function cloneDeepWith(value,customizer){return customizer="function"==typeof customizer?customizer:undefined,baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG,customizer)}function conformsTo(object,source){return null==source||baseConformsTo(object,source,keys(source))}function eq(value,other){return value===other||value!==value&&other!==other}function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}function isBoolean(value){return value===!0||value===!1||isObjectLike(value)&&baseGetTag(value)==boolTag}function isElement(value){return isObjectLike(value)&&1===value.nodeType&&!isPlainObject(value)}function isEmpty(value){if(null==value)return!0;if(isArrayLike(value)&&(isArray(value)||"string"==typeof value||"function"==typeof value.splice||isBuffer(value)||isTypedArray(value)||isArguments(value)))return!value.length;var tag=getTag(value);if(tag==mapTag||tag==setTag)return!value.size;if(isPrototype(value))return!baseKeys(value).length;for(var key in value)if(hasOwnProperty.call(value,key))return!1;return!0}function isEqual(value,other){return baseIsEqual(value,other)}function isEqualWith(value,other,customizer){customizer="function"==typeof customizer?customizer:undefined;var result=customizer?customizer(value,other):undefined;return result===undefined?baseIsEqual(value,other,undefined,customizer):!!result}function isError(value){if(!isObjectLike(value))return!1;var tag=baseGetTag(value);return tag==errorTag||tag==domExcTag||"string"==typeof value.message&&"string"==typeof value.name&&!isPlainObject(value)}function isFinite(value){return"number"==typeof value&&nativeIsFinite(value); }function isFunction(value){if(!isObject(value))return!1;var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}function isInteger(value){return"number"==typeof value&&value==toInteger(value)}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}function isObjectLike(value){return null!=value&&"object"==typeof value}function isMatch(object,source){return object===source||baseIsMatch(object,source,getMatchData(source))}function isMatchWith(object,source,customizer){return customizer="function"==typeof customizer?customizer:undefined,baseIsMatch(object,source,getMatchData(source),customizer)}function isNaN(value){return isNumber(value)&&value!=+value}function isNative(value){if(isMaskable(value))throw new Error(CORE_ERROR_TEXT);return baseIsNative(value)}function isNull(value){return null===value}function isNil(value){return null==value}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&baseGetTag(value)==numberTag}function isPlainObject(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag)return!1;var proto=getPrototype(value);if(null===proto)return!0;var Ctor=hasOwnProperty.call(proto,"constructor")&&proto.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}function isSafeInteger(value){return isInteger(value)&&value>=-MAX_SAFE_INTEGER&&value<=MAX_SAFE_INTEGER}function isString(value){return"string"==typeof value||!isArray(value)&&isObjectLike(value)&&baseGetTag(value)==stringTag}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&baseGetTag(value)==symbolTag}function isUndefined(value){return value===undefined}function isWeakMap(value){return isObjectLike(value)&&getTag(value)==weakMapTag}function isWeakSet(value){return isObjectLike(value)&&baseGetTag(value)==weakSetTag}function toArray(value){if(!value)return[];if(isArrayLike(value))return isString(value)?stringToArray(value):copyArray(value);if(symIterator&&value[symIterator])return iteratorToArray(value[symIterator]());var tag=getTag(value),func=tag==mapTag?mapToArray:tag==setTag?setToArray:values;return func(value)}function toFinite(value){if(!value)return 0===value?value:0;if(value=toNumber(value),value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER}return value===value?value:0}function toInteger(value){var result=toFinite(value),remainder=result%1;return result===result?remainder?result-remainder:result:0}function toLength(value){return value?baseClamp(toInteger(value),0,MAX_ARRAY_LENGTH):0}function toNumber(value){if("number"==typeof value)return value;if(isSymbol(value))return NAN;if(isObject(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=value.replace(reTrim,"");var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}function toPlainObject(value){return copyObject(value,keysIn(value))}function toSafeInteger(value){return value?baseClamp(toInteger(value),-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER):0===value?value:0}function toString(value){return null==value?"":baseToString(value)}function create(prototype,properties){var result=baseCreate(prototype);return null==properties?result:baseAssign(result,properties)}function findKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn)}function findLastKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight)}function forIn(object,iteratee){return null==object?object:baseFor(object,getIteratee(iteratee,3),keysIn)}function forInRight(object,iteratee){return null==object?object:baseForRight(object,getIteratee(iteratee,3),keysIn)}function forOwn(object,iteratee){return object&&baseForOwn(object,getIteratee(iteratee,3))}function forOwnRight(object,iteratee){return object&&baseForOwnRight(object,getIteratee(iteratee,3))}function functions(object){return null==object?[]:baseFunctions(object,keys(object))}function functionsIn(object){return null==object?[]:baseFunctions(object,keysIn(object))}function get(object,path,defaultValue){var result=null==object?undefined:baseGet(object,path);return result===undefined?defaultValue:result}function has(object,path){return null!=object&&hasPath(object,path,baseHas)}function hasIn(object,path){return null!=object&&hasPath(object,path,baseHasIn)}function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,!0):baseKeysIn(object)}function mapKeys(object,iteratee){var result={};return iteratee=getIteratee(iteratee,3),baseForOwn(object,function(value,key,object){baseAssignValue(result,iteratee(value,key,object),value)}),result}function mapValues(object,iteratee){var result={};return iteratee=getIteratee(iteratee,3),baseForOwn(object,function(value,key,object){baseAssignValue(result,key,iteratee(value,key,object))}),result}function omitBy(object,predicate){return pickBy(object,negate(getIteratee(predicate)))}function pickBy(object,predicate){if(null==object)return{};var props=arrayMap(getAllKeysIn(object),function(prop){return[prop]});return predicate=getIteratee(predicate),basePickBy(object,props,function(value,path){return predicate(value,path[0])})}function result(object,path,defaultValue){path=castPath(path,object);var index=-1,length=path.length;for(length||(length=1,object=undefined);++index<length;){var value=null==object?undefined:object[toKey(path[index])];value===undefined&&(index=length,value=defaultValue),object=isFunction(value)?value.call(object):value}return object}function set(object,path,value){return null==object?object:baseSet(object,path,value)}function setWith(object,path,value,customizer){return customizer="function"==typeof customizer?customizer:undefined,null==object?object:baseSet(object,path,value,customizer)}function transform(object,iteratee,accumulator){var isArr=isArray(object),isArrLike=isArr||isBuffer(object)||isTypedArray(object);if(iteratee=getIteratee(iteratee,4),null==accumulator){var Ctor=object&&object.constructor;accumulator=isArrLike?isArr?new Ctor:[]:isObject(object)&&isFunction(Ctor)?baseCreate(getPrototype(object)):{}}return(isArrLike?arrayEach:baseForOwn)(object,function(value,index,object){return iteratee(accumulator,value,index,object)}),accumulator}function unset(object,path){return null==object||baseUnset(object,path)}function update(object,path,updater){return null==object?object:baseUpdate(object,path,castFunction(updater))}function updateWith(object,path,updater,customizer){return customizer="function"==typeof customizer?customizer:undefined,null==object?object:baseUpdate(object,path,castFunction(updater),customizer)}function values(object){return null==object?[]:baseValues(object,keys(object))}function valuesIn(object){return null==object?[]:baseValues(object,keysIn(object))}function clamp(number,lower,upper){return upper===undefined&&(upper=lower,lower=undefined),upper!==undefined&&(upper=toNumber(upper),upper=upper===upper?upper:0),lower!==undefined&&(lower=toNumber(lower),lower=lower===lower?lower:0),baseClamp(toNumber(number),lower,upper)}function inRange(number,start,end){return start=toFinite(start),end===undefined?(end=start,start=0):end=toFinite(end),number=toNumber(number),baseInRange(number,start,end)}function random(lower,upper,floating){if(floating&&"boolean"!=typeof floating&&isIterateeCall(lower,upper,floating)&&(upper=floating=undefined),floating===undefined&&("boolean"==typeof upper?(floating=upper,upper=undefined):"boolean"==typeof lower&&(floating=lower,lower=undefined)),lower===undefined&&upper===undefined?(lower=0,upper=1):(lower=toFinite(lower),upper===undefined?(upper=lower,lower=0):upper=toFinite(upper)),lower>upper){var temp=lower;lower=upper,upper=temp}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat("1e-"+((rand+"").length-1))),upper)}return baseRandom(lower,upper)}function capitalize(string){return upperFirst(toString(string).toLowerCase())}function deburr(string){return string=toString(string),string&&string.replace(reLatin,deburrLetter).replace(reComboMark,"")}function endsWith(string,target,position){string=toString(string),target=baseToString(target);var length=string.length;position=position===undefined?length:baseClamp(toInteger(position),0,length);var end=position;return position-=target.length,position>=0&&string.slice(position,end)==target}function escape(string){return string=toString(string),string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string}function escapeRegExp(string){return string=toString(string),string&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,"\\$&"):string}function pad(string,length,chars){string=toString(string),length=toInteger(length);var strLength=length?stringSize(string):0;if(!length||strLength>=length)return string;var mid=(length-strLength)/2;return createPadding(nativeFloor(mid),chars)+string+createPadding(nativeCeil(mid),chars)}function padEnd(string,length,chars){string=toString(string),length=toInteger(length);var strLength=length?stringSize(string):0;return length&&strLength<length?string+createPadding(length-strLength,chars):string}function padStart(string,length,chars){string=toString(string),length=toInteger(length);var strLength=length?stringSize(string):0;return length&&strLength<length?createPadding(length-strLength,chars)+string:string}function parseInt(string,radix,guard){return guard||null==radix?radix=0:radix&&(radix=+radix),nativeParseInt(toString(string).replace(reTrimStart,""),radix||0)}function repeat(string,n,guard){return n=(guard?isIterateeCall(string,n,guard):n===undefined)?1:toInteger(n),baseRepeat(toString(string),n)}function replace(){var args=arguments,string=toString(args[0]);return args.length<3?string:string.replace(args[1],args[2])}function split(string,separator,limit){return limit&&"number"!=typeof limit&&isIterateeCall(string,separator,limit)&&(separator=limit=undefined),(limit=limit===undefined?MAX_ARRAY_LENGTH:limit>>>0)?(string=toString(string),string&&("string"==typeof separator||null!=separator&&!isRegExp(separator))&&(separator=baseToString(separator),!separator&&hasUnicode(string))?castSlice(stringToArray(string),0,limit):string.split(separator,limit)):[]}function startsWith(string,target,position){return string=toString(string),position=null==position?0:baseClamp(toInteger(position),0,string.length),target=baseToString(target),string.slice(position,position+target.length)==target}function template(string,options,guard){var settings=lodash.templateSettings;guard&&isIterateeCall(string,options,guard)&&(options=undefined),string=toString(string),options=assignInWith({},options,settings,customDefaultsAssignIn);var isEscaping,isEvaluating,imports=assignInWith({},options.imports,settings.imports,customDefaultsAssignIn),importsKeys=keys(imports),importsValues=baseValues(imports,importsKeys),index=0,interpolate=options.interpolate||reNoMatch,source="__p += '",reDelimiters=RegExp((options.escape||reNoMatch).source+"|"+interpolate.source+"|"+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g"),sourceURL="//# sourceURL="+("sourceURL"in options?options.sourceURL:"lodash.templateSources["+ ++templateCounter+"]")+"\n";string.replace(reDelimiters,function(match,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset){return interpolateValue||(interpolateValue=esTemplateValue),source+=string.slice(index,offset).replace(reUnescapedString,escapeStringChar),escapeValue&&(isEscaping=!0,source+="' +\n__e("+escapeValue+") +\n'"),evaluateValue&&(isEvaluating=!0,source+="';\n"+evaluateValue+";\n__p += '"),interpolateValue&&(source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'"),index=offset+match.length,match}),source+="';\n";var variable=options.variable;variable||(source="with (obj) {\n"+source+"\n}\n"),source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;"),source="function("+(variable||"obj")+") {\n"+(variable?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(isEscaping?", __e = _.escape":"")+(isEvaluating?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var result=attempt(function(){return Function(importsKeys,sourceURL+"return "+source).apply(undefined,importsValues)});if(result.source=source,isError(result))throw result;return result}function toLower(value){return toString(value).toLowerCase()}function toUpper(value){return toString(value).toUpperCase()}function trim(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined))return string.replace(reTrim,"");if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars),start=charsStartIndex(strSymbols,chrSymbols),end=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start,end).join("")}function trimEnd(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined))return string.replace(reTrimEnd,"");if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),end=charsEndIndex(strSymbols,stringToArray(chars))+1;return castSlice(strSymbols,0,end).join("")}function trimStart(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined))return string.replace(reTrimStart,"");if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),start=charsStartIndex(strSymbols,stringToArray(chars));return castSlice(strSymbols,start).join("")}function truncate(string,options){var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?toInteger(options.length):length,omission="omission"in options?baseToString(options.omission):omission}string=toString(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length}if(length>=strLength)return string;var end=length-stringSize(omission);if(end<1)return omission;var result=strSymbols?castSlice(strSymbols,0,end).join(""):string.slice(0,end);if(separator===undefined)return result+omission;if(strSymbols&&(end+=result.length-end),isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result;for(separator.global||(separator=RegExp(separator.source,toString(reFlags.exec(separator))+"g")),separator.lastIndex=0;match=separator.exec(substring);)var newEnd=match.index;result=result.slice(0,newEnd===undefined?end:newEnd)}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result.lastIndexOf(separator);index>-1&&(result=result.slice(0,index))}return result+omission}function unescape(string){return string=toString(string),string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string}function words(string,pattern,guard){return string=toString(string),pattern=guard?undefined:pattern,pattern===undefined?hasUnicodeWord(string)?unicodeWords(string):asciiWords(string):string.match(pattern)||[]}function cond(pairs){var length=null==pairs?0:pairs.length,toIteratee=getIteratee();return pairs=length?arrayMap(pairs,function(pair){if("function"!=typeof pair[1])throw new TypeError(FUNC_ERROR_TEXT);return[toIteratee(pair[0]),pair[1]]}):[],baseRest(function(args){for(var index=-1;++index<length;){var pair=pairs[index];if(apply(pair[0],this,args))return apply(pair[1],this,args)}})}function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG))}function constant(value){return function(){return value}}function defaultTo(value,defaultValue){return null==value||value!==value?defaultValue:value}function identity(value){return value}function iteratee(func){return baseIteratee("function"==typeof func?func:baseClone(func,CLONE_DEEP_FLAG))}function matches(source){return baseMatches(baseClone(source,CLONE_DEEP_FLAG))}function matchesProperty(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,CLONE_DEEP_FLAG))}function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);null!=options||isObject(source)&&(methodNames.length||!props.length)||(options=source,source=object,object=this,methodNames=baseFunctions(source,keys(source)));var chain=!(isObject(options)&&"chain"in options&&!options.chain),isFunc=isFunction(object);return arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func,isFunc&&(object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain||chainAll){var result=object(this.__wrapped__),actions=result.__actions__=copyArray(this.__actions__);return actions.push({func:func,args:arguments,thisArg:object}),result.__chain__=chainAll,result}return func.apply(object,arrayPush([this.value()],arguments))})}),object}function noConflict(){return root._===this&&(root._=oldDash),this}function noop(){}function nthArg(n){return n=toInteger(n),baseRest(function(args){return baseNth(args,n)})}function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}function propertyOf(object){return function(path){return null==object?undefined:baseGet(object,path)}}function stubArray(){return[]}function stubFalse(){return!1}function stubObject(){return{}}function stubString(){return""}function stubTrue(){return!0}function times(n,iteratee){if(n=toInteger(n),n<1||n>MAX_SAFE_INTEGER)return[];var index=MAX_ARRAY_LENGTH,length=nativeMin(n,MAX_ARRAY_LENGTH);iteratee=getIteratee(iteratee),n-=MAX_ARRAY_LENGTH;for(var result=baseTimes(length,iteratee);++index<n;)iteratee(index);return result}function toPath(value){return isArray(value)?arrayMap(value,toKey):isSymbol(value)?[value]:copyArray(stringToPath(toString(value)))}function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id}function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined}function maxBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseGt):undefined}function mean(array){return baseMean(array,identity)}function meanBy(array,iteratee){return baseMean(array,getIteratee(iteratee,2))}function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined}function minBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseLt):undefined}function sum(array){return array&&array.length?baseSum(array,identity):0}function sumBy(array,iteratee){return array&&array.length?baseSum(array,getIteratee(iteratee,2)):0}context=null==context?root:_.defaults(root.Object(),context,_.pick(root,contextProps));var Array=context.Array,Date=context.Date,Error=context.Error,Function=context.Function,Math=context.Math,Object=context.Object,RegExp=context.RegExp,String=context.String,TypeError=context.TypeError,arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype,coreJsData=context["__core-js_shared__"],funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,idCounter=0,maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:""}(),nativeObjectToString=objectProto.toString,objectCtorString=funcToString.call(Object),oldDash=root._,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=moduleExports?context.Buffer:undefined,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined,symIterator=Symbol?Symbol.iterator:undefined,symToStringTag=Symbol?Symbol.toStringTag:undefined,defineProperty=function(){try{var func=getNative(Object,"defineProperty");return func({},"",{}),func}catch(e){}}(),ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout,nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse,DataView=getNative(context,"DataView"),Map=getNative(context,"Map"),Promise=getNative(context,"Promise"),Set=getNative(context,"Set"),WeakMap=getNative(context,"WeakMap"),nativeCreate=getNative(Object,"create"),metaMap=WeakMap&&new WeakMap,realNames={},dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),symbolProto=Symbol?Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined,symbolToString=symbolProto?symbolProto.toString:undefined,baseCreate=function(){function object(){}return function(proto){if(!isObject(proto))return{};if(objectCreate)return objectCreate(proto);object.prototype=proto;var result=new object;return object.prototype=undefined,result}}();lodash.templateSettings={escape:reEscape,evaluate:reEvaluate,interpolate:reInterpolate,variable:"",imports:{_:lodash}},lodash.prototype=baseLodash.prototype,lodash.prototype.constructor=lodash,LodashWrapper.prototype=baseCreate(baseLodash.prototype),LodashWrapper.prototype.constructor=LodashWrapper,LazyWrapper.prototype=baseCreate(baseLodash.prototype),LazyWrapper.prototype.constructor=LazyWrapper,Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet,ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet,MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet,SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas,Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var baseEach=createBaseEach(baseForOwn),baseEachRight=createBaseEach(baseForOwnRight,!0),baseFor=createBaseFor(),baseForRight=createBaseFor(!0),baseSetData=metaMap?function(func,data){return metaMap.set(func,data),func}:identity,baseSetToString=defineProperty?function(func,string){return defineProperty(func,"toString",{configurable:!0,enumerable:!1,value:constant(string),writable:!0})}:identity,castRest=baseRest,clearTimeout=ctxClearTimeout||function(id){return root.clearTimeout(id)},createSet=Set&&1/setToArray(new Set([,-0]))[1]==INFINITY?function(values){return new Set(values)}:noop,getData=metaMap?function(func){return metaMap.get(func)}:noop,getSymbols=nativeGetSymbols?function(object){return null==object?[]:(object=Object(object),arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable.call(object,symbol)}))}:stubArray,getSymbolsIn=nativeGetSymbols?function(object){for(var result=[];object;)arrayPush(result,getSymbols(object)),object=getPrototype(object);return result}:stubArray,getTag=baseGetTag;(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map)!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set)!=setTag||WeakMap&&getTag(new WeakMap)!=weakMapTag)&&(getTag=function(value){var result=baseGetTag(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):"";if(ctorString)switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return result});var isMaskable=coreJsData?isFunction:stubFalse,setData=shortOut(baseSetData),setTimeout=ctxSetTimeout||function(func,wait){return root.setTimeout(func,wait)},setToString=shortOut(baseSetToString),stringToPath=memoizeCapped(function(string){var result=[];return 46===string.charCodeAt(0)&&result.push(""),string.replace(rePropName,function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match)}),result}),difference=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,!0)):[]}),differenceBy=baseRest(function(array,values){var iteratee=last(values);return isArrayLikeObject(iteratee)&&(iteratee=undefined),isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,!0),getIteratee(iteratee,2)):[]}),differenceWith=baseRest(function(array,values){var comparator=last(values);return isArrayLikeObject(comparator)&&(comparator=undefined),isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,!0),undefined,comparator):[]}),intersection=baseRest(function(arrays){var mapped=arrayMap(arrays,castArrayLikeObject);return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped):[]}),intersectionBy=baseRest(function(arrays){var iteratee=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);return iteratee===last(mapped)?iteratee=undefined:mapped.pop(),mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee,2)):[]}),intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);return comparator="function"==typeof comparator?comparator:undefined,comparator&&mapped.pop(),mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined,comparator):[]}),pull=baseRest(pullAll),pullAt=flatRest(function(array,indexes){var length=null==array?0:array.length,result=baseAt(array,indexes);return basePullAt(array,arrayMap(indexes,function(index){return isIndex(index,length)?+index:index}).sort(compareAscending)),result}),union=baseRest(function(arrays){return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0))}),unionBy=baseRest(function(arrays){var iteratee=last(arrays);return isArrayLikeObject(iteratee)&&(iteratee=undefined),baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0),getIteratee(iteratee,2))}),unionWith=baseRest(function(arrays){var comparator=last(arrays);return comparator="function"==typeof comparator?comparator:undefined,baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0),undefined,comparator)}),without=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,values):[]}),xor=baseRest(function(arrays){return baseXor(arrayFilter(arrays,isArrayLikeObject))}),xorBy=baseRest(function(arrays){var iteratee=last(arrays);return isArrayLikeObject(iteratee)&&(iteratee=undefined),baseXor(arrayFilter(arrays,isArrayLikeObject),getIteratee(iteratee,2))}),xorWith=baseRest(function(arrays){var comparator=last(arrays);return comparator="function"==typeof comparator?comparator:undefined,baseXor(arrayFilter(arrays,isArrayLikeObject),undefined,comparator)}),zip=baseRest(unzip),zipWith=baseRest(function(arrays){var length=arrays.length,iteratee=length>1?arrays[length-1]:undefined;return iteratee="function"==typeof iteratee?(arrays.pop(),iteratee):undefined,unzipWith(arrays,iteratee)}),wrapperAt=flatRest(function(paths){var length=paths.length,start=length?paths[0]:0,value=this.__wrapped__,interceptor=function(object){return baseAt(object,paths)};return!(length>1||this.__actions__.length)&&value instanceof LazyWrapper&&isIndex(start)?(value=value.slice(start,+start+(length?1:0)),value.__actions__.push({func:thru,args:[interceptor],thisArg:undefined}),new LodashWrapper(value,this.__chain__).thru(function(array){return length&&!array.length&&array.push(undefined),array})):this.thru(interceptor)}),countBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?++result[key]:baseAssignValue(result,key,1)}),find=createFind(findIndex),findLast=createFind(findLastIndex),groupBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?result[key].push(value):baseAssignValue(result,key,[value])}),invokeMap=baseRest(function(collection,path,args){var index=-1,isFunc="function"==typeof path,result=isArrayLike(collection)?Array(collection.length):[];return baseEach(collection,function(value){result[++index]=isFunc?apply(path,value,args):baseInvoke(value,path,args)}),result}),keyBy=createAggregator(function(result,value,key){baseAssignValue(result,key,value)}),partition=createAggregator(function(result,value,key){result[key?0:1].push(value)},function(){return[[],[]]}),sortBy=baseRest(function(collection,iteratees){if(null==collection)return[];var length=iteratees.length;return length>1&&isIterateeCall(collection,iteratees[0],iteratees[1])?iteratees=[]:length>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])&&(iteratees=[iteratees[0]]),baseOrderBy(collection,baseFlatten(iteratees,1),[])}),now=ctxNow||function(){return root.Date.now()},bind=baseRest(function(func,thisArg,partials){var bitmask=WRAP_BIND_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=WRAP_PARTIAL_FLAG}return createWrap(func,bitmask,thisArg,partials,holders)}),bindKey=baseRest(function(object,key,partials){var bitmask=WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=WRAP_PARTIAL_FLAG}return createWrap(key,bitmask,object,partials,holders)}),defer=baseRest(function(func,args){return baseDelay(func,1,args)}),delay=baseRest(function(func,wait,args){return baseDelay(func,toNumber(wait)||0,args)});memoize.Cache=MapCache;var overArgs=castRest(function(func,transforms){transforms=1==transforms.length&&isArray(transforms[0])?arrayMap(transforms[0],baseUnary(getIteratee())):arrayMap(baseFlatten(transforms,1),baseUnary(getIteratee()));var funcsLength=transforms.length;return baseRest(function(args){for(var index=-1,length=nativeMin(args.length,funcsLength);++index<length;)args[index]=transforms[index].call(this,args[index]);return apply(func,this,args)})}),partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,WRAP_PARTIAL_FLAG,undefined,partials,holders)}),partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,WRAP_PARTIAL_RIGHT_FLAG,undefined,partials,holders)}),rearg=flatRest(function(func,indexes){return createWrap(func,WRAP_REARG_FLAG,undefined,undefined,undefined,indexes)}),gt=createRelationalOperation(baseGt),gte=createRelationalOperation(function(value,other){return value>=other}),isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")},isArray=Array.isArray,isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):baseIsArrayBuffer,isBuffer=nativeIsBuffer||stubFalse,isDate=nodeIsDate?baseUnary(nodeIsDate):baseIsDate,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):baseIsRegExp,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,lt=createRelationalOperation(baseLt),lte=createRelationalOperation(function(value,other){ return value<=other}),assign=createAssigner(function(object,source){if(isPrototype(source)||isArrayLike(source))return void copyObject(source,keys(source),object);for(var key in source)hasOwnProperty.call(source,key)&&assignValue(object,key,source[key])}),assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object)}),assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer)}),assignWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keys(source),object,customizer)}),at=flatRest(baseAt),defaults=baseRest(function(object,sources){object=Object(object);var index=-1,length=sources.length,guard=length>2?sources[2]:undefined;for(guard&&isIterateeCall(sources[0],sources[1],guard)&&(length=1);++index<length;)for(var source=sources[index],props=keysIn(source),propsIndex=-1,propsLength=props.length;++propsIndex<propsLength;){var key=props[propsIndex],value=object[key];(value===undefined||eq(value,objectProto[key])&&!hasOwnProperty.call(object,key))&&(object[key]=source[key])}return object}),defaultsDeep=baseRest(function(args){return args.push(undefined,customDefaultsMerge),apply(mergeWith,undefined,args)}),invert=createInverter(function(result,value,key){null!=value&&"function"!=typeof value.toString&&(value=nativeObjectToString.call(value)),result[value]=key},constant(identity)),invertBy=createInverter(function(result,value,key){null!=value&&"function"!=typeof value.toString&&(value=nativeObjectToString.call(value)),hasOwnProperty.call(result,value)?result[value].push(key):result[value]=[key]},getIteratee),invoke=baseRest(baseInvoke),merge=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex)}),mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer)}),omit=flatRest(function(object,paths){var result={};if(null==object)return result;var isDeep=!1;paths=arrayMap(paths,function(path){return path=castPath(path,object),isDeep||(isDeep=path.length>1),path}),copyObject(object,getAllKeysIn(object),result),isDeep&&(result=baseClone(result,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var length=paths.length;length--;)baseUnset(result,paths[length]);return result}),pick=flatRest(function(object,paths){return null==object?{}:basePick(object,paths)}),toPairs=createToPairs(keys),toPairsIn=createToPairs(keysIn),camelCase=createCompounder(function(result,word,index){return word=word.toLowerCase(),result+(index?capitalize(word):word)}),kebabCase=createCompounder(function(result,word,index){return result+(index?"-":"")+word.toLowerCase()}),lowerCase=createCompounder(function(result,word,index){return result+(index?" ":"")+word.toLowerCase()}),lowerFirst=createCaseFirst("toLowerCase"),snakeCase=createCompounder(function(result,word,index){return result+(index?"_":"")+word.toLowerCase()}),startCase=createCompounder(function(result,word,index){return result+(index?" ":"")+upperFirst(word)}),upperCase=createCompounder(function(result,word,index){return result+(index?" ":"")+word.toUpperCase()}),upperFirst=createCaseFirst("toUpperCase"),attempt=baseRest(function(func,args){try{return apply(func,undefined,args)}catch(e){return isError(e)?e:new Error(e)}}),bindAll=flatRest(function(object,methodNames){return arrayEach(methodNames,function(key){key=toKey(key),baseAssignValue(object,key,bind(object[key],object))}),object}),flow=createFlow(),flowRight=createFlow(!0),method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args)}}),methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args)}}),over=createOver(arrayMap),overEvery=createOver(arrayEvery),overSome=createOver(arraySome),range=createRange(),rangeRight=createRange(!0),add=createMathOperation(function(augend,addend){return augend+addend},0),ceil=createRound("ceil"),divide=createMathOperation(function(dividend,divisor){return dividend/divisor},1),floor=createRound("floor"),multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand},1),round=createRound("round"),subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend},0);return lodash.after=after,lodash.ary=ary,lodash.assign=assign,lodash.assignIn=assignIn,lodash.assignInWith=assignInWith,lodash.assignWith=assignWith,lodash.at=at,lodash.before=before,lodash.bind=bind,lodash.bindAll=bindAll,lodash.bindKey=bindKey,lodash.castArray=castArray,lodash.chain=chain,lodash.chunk=chunk,lodash.compact=compact,lodash.concat=concat,lodash.cond=cond,lodash.conforms=conforms,lodash.constant=constant,lodash.countBy=countBy,lodash.create=create,lodash.curry=curry,lodash.curryRight=curryRight,lodash.debounce=debounce,lodash.defaults=defaults,lodash.defaultsDeep=defaultsDeep,lodash.defer=defer,lodash.delay=delay,lodash.difference=difference,lodash.differenceBy=differenceBy,lodash.differenceWith=differenceWith,lodash.drop=drop,lodash.dropRight=dropRight,lodash.dropRightWhile=dropRightWhile,lodash.dropWhile=dropWhile,lodash.fill=fill,lodash.filter=filter,lodash.flatMap=flatMap,lodash.flatMapDeep=flatMapDeep,lodash.flatMapDepth=flatMapDepth,lodash.flatten=flatten,lodash.flattenDeep=flattenDeep,lodash.flattenDepth=flattenDepth,lodash.flip=flip,lodash.flow=flow,lodash.flowRight=flowRight,lodash.fromPairs=fromPairs,lodash.functions=functions,lodash.functionsIn=functionsIn,lodash.groupBy=groupBy,lodash.initial=initial,lodash.intersection=intersection,lodash.intersectionBy=intersectionBy,lodash.intersectionWith=intersectionWith,lodash.invert=invert,lodash.invertBy=invertBy,lodash.invokeMap=invokeMap,lodash.iteratee=iteratee,lodash.keyBy=keyBy,lodash.keys=keys,lodash.keysIn=keysIn,lodash.map=map,lodash.mapKeys=mapKeys,lodash.mapValues=mapValues,lodash.matches=matches,lodash.matchesProperty=matchesProperty,lodash.memoize=memoize,lodash.merge=merge,lodash.mergeWith=mergeWith,lodash.method=method,lodash.methodOf=methodOf,lodash.mixin=mixin,lodash.negate=negate,lodash.nthArg=nthArg,lodash.omit=omit,lodash.omitBy=omitBy,lodash.once=once,lodash.orderBy=orderBy,lodash.over=over,lodash.overArgs=overArgs,lodash.overEvery=overEvery,lodash.overSome=overSome,lodash.partial=partial,lodash.partialRight=partialRight,lodash.partition=partition,lodash.pick=pick,lodash.pickBy=pickBy,lodash.property=property,lodash.propertyOf=propertyOf,lodash.pull=pull,lodash.pullAll=pullAll,lodash.pullAllBy=pullAllBy,lodash.pullAllWith=pullAllWith,lodash.pullAt=pullAt,lodash.range=range,lodash.rangeRight=rangeRight,lodash.rearg=rearg,lodash.reject=reject,lodash.remove=remove,lodash.rest=rest,lodash.reverse=reverse,lodash.sampleSize=sampleSize,lodash.set=set,lodash.setWith=setWith,lodash.shuffle=shuffle,lodash.slice=slice,lodash.sortBy=sortBy,lodash.sortedUniq=sortedUniq,lodash.sortedUniqBy=sortedUniqBy,lodash.split=split,lodash.spread=spread,lodash.tail=tail,lodash.take=take,lodash.takeRight=takeRight,lodash.takeRightWhile=takeRightWhile,lodash.takeWhile=takeWhile,lodash.tap=tap,lodash.throttle=throttle,lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=toPairs,lodash.toPairsIn=toPairsIn,lodash.toPath=toPath,lodash.toPlainObject=toPlainObject,lodash.transform=transform,lodash.unary=unary,lodash.union=union,lodash.unionBy=unionBy,lodash.unionWith=unionWith,lodash.uniq=uniq,lodash.uniqBy=uniqBy,lodash.uniqWith=uniqWith,lodash.unset=unset,lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=update,lodash.updateWith=updateWith,lodash.values=values,lodash.valuesIn=valuesIn,lodash.without=without,lodash.words=words,lodash.wrap=wrap,lodash.xor=xor,lodash.xorBy=xorBy,lodash.xorWith=xorWith,lodash.zip=zip,lodash.zipObject=zipObject,lodash.zipObjectDeep=zipObjectDeep,lodash.zipWith=zipWith,lodash.entries=toPairs,lodash.entriesIn=toPairsIn,lodash.extend=assignIn,lodash.extendWith=assignInWith,mixin(lodash,lodash),lodash.add=add,lodash.attempt=attempt,lodash.camelCase=camelCase,lodash.capitalize=capitalize,lodash.ceil=ceil,lodash.clamp=clamp,lodash.clone=clone,lodash.cloneDeep=cloneDeep,lodash.cloneDeepWith=cloneDeepWith,lodash.cloneWith=cloneWith,lodash.conformsTo=conformsTo,lodash.deburr=deburr,lodash.defaultTo=defaultTo,lodash.divide=divide,lodash.endsWith=endsWith,lodash.eq=eq,lodash.escape=escape,lodash.escapeRegExp=escapeRegExp,lodash.every=every,lodash.find=find,lodash.findIndex=findIndex,lodash.findKey=findKey,lodash.findLast=findLast,lodash.findLastIndex=findLastIndex,lodash.findLastKey=findLastKey,lodash.floor=floor,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=forIn,lodash.forInRight=forInRight,lodash.forOwn=forOwn,lodash.forOwnRight=forOwnRight,lodash.get=get,lodash.gt=gt,lodash.gte=gte,lodash.has=has,lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.inRange=inRange,lodash.invoke=invoke,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isArrayBuffer=isArrayBuffer,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=isBoolean,lodash.isBuffer=isBuffer,lodash.isDate=isDate,lodash.isElement=isElement,lodash.isEmpty=isEmpty,lodash.isEqual=isEqual,lodash.isEqualWith=isEqualWith,lodash.isError=isError,lodash.isFinite=isFinite,lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=isMap,lodash.isMatch=isMatch,lodash.isMatchWith=isMatchWith,lodash.isNaN=isNaN,lodash.isNative=isNative,lodash.isNil=isNil,lodash.isNull=isNull,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=isRegExp,lodash.isSafeInteger=isSafeInteger,lodash.isSet=isSet,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=isTypedArray,lodash.isUndefined=isUndefined,lodash.isWeakMap=isWeakMap,lodash.isWeakSet=isWeakSet,lodash.join=join,lodash.kebabCase=kebabCase,lodash.last=last,lodash.lastIndexOf=lastIndexOf,lodash.lowerCase=lowerCase,lodash.lowerFirst=lowerFirst,lodash.lt=lt,lodash.lte=lte,lodash.max=max,lodash.maxBy=maxBy,lodash.mean=mean,lodash.meanBy=meanBy,lodash.min=min,lodash.minBy=minBy,lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=stubObject,lodash.stubString=stubString,lodash.stubTrue=stubTrue,lodash.multiply=multiply,lodash.nth=nth,lodash.noConflict=noConflict,lodash.noop=noop,lodash.now=now,lodash.pad=pad,lodash.padEnd=padEnd,lodash.padStart=padStart,lodash.parseInt=parseInt,lodash.random=random,lodash.reduce=reduce,lodash.reduceRight=reduceRight,lodash.repeat=repeat,lodash.replace=replace,lodash.result=result,lodash.round=round,lodash.runInContext=runInContext,lodash.sample=sample,lodash.size=size,lodash.snakeCase=snakeCase,lodash.some=some,lodash.sortedIndex=sortedIndex,lodash.sortedIndexBy=sortedIndexBy,lodash.sortedIndexOf=sortedIndexOf,lodash.sortedLastIndex=sortedLastIndex,lodash.sortedLastIndexBy=sortedLastIndexBy,lodash.sortedLastIndexOf=sortedLastIndexOf,lodash.startCase=startCase,lodash.startsWith=startsWith,lodash.subtract=subtract,lodash.sum=sum,lodash.sumBy=sumBy,lodash.template=template,lodash.times=times,lodash.toFinite=toFinite,lodash.toInteger=toInteger,lodash.toLength=toLength,lodash.toLower=toLower,lodash.toNumber=toNumber,lodash.toSafeInteger=toSafeInteger,lodash.toString=toString,lodash.toUpper=toUpper,lodash.trim=trim,lodash.trimEnd=trimEnd,lodash.trimStart=trimStart,lodash.truncate=truncate,lodash.unescape=unescape,lodash.uniqueId=uniqueId,lodash.upperCase=upperCase,lodash.upperFirst=upperFirst,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,function(){var source={};return baseForOwn(lodash,function(func,methodName){hasOwnProperty.call(lodash.prototype,methodName)||(source[methodName]=func)}),source}(),{chain:!1}),lodash.VERSION=VERSION,arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash[methodName].placeholder=lodash}),arrayEach(["drop","take"],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined?1:nativeMax(toInteger(n),0);var result=this.__filtered__&&!index?new LazyWrapper(this):this.clone();return result.__filtered__?result.__takeCount__=nativeMin(n,result.__takeCount__):result.__views__.push({size:nativeMin(n,MAX_ARRAY_LENGTH),type:methodName+(result.__dir__<0?"Right":"")}),result},LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse()}}),arrayEach(["filter","map","takeWhile"],function(methodName,index){var type=index+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee){var result=this.clone();return result.__iteratees__.push({iteratee:getIteratee(iteratee,3),type:type}),result.__filtered__=result.__filtered__||isFilter,result}}),arrayEach(["head","last"],function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0]}}),arrayEach(["initial","tail"],function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1)}}),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head()},LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate)},LazyWrapper.prototype.invokeMap=baseRest(function(path,args){return"function"==typeof path?new LazyWrapper(this):this.map(function(value){return baseInvoke(value,path,args)})}),LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)))},LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result=this;return result.__filtered__&&(start>0||end<0)?new LazyWrapper(result):(start<0?result=result.takeRight(-start):start&&(result=result.drop(start)),end!==undefined&&(end=toInteger(end),result=end<0?result.dropRight(-end):result.take(end-start)),result)},LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH)},baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?"take"+("last"==methodName?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);lodashFunc&&(lodash.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee=args[0],useLazy=isLazy||isArray(value),interceptor=function(value){var result=lodashFunc.apply(lodash,arrayPush([value],args));return isTaker&&chainAll?result[0]:result};useLazy&&checkIteratee&&"function"==typeof iteratee&&1!=iteratee.length&&(isLazy=useLazy=!1);var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result=func.apply(value,args);return result.__actions__.push({func:thru,args:[interceptor],thisArg:undefined}),new LodashWrapper(result,chainAll)}return isUnwrapped&&onlyLazy?func.apply(this,args):(result=this.thru(interceptor),isUnwrapped?isTaker?result.value()[0]:result.value():result)})}),arrayEach(["pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray(value)?value:[],args)}return this[chainName](function(value){return func.apply(isArray(value)?value:[],args)})}}),baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+"",names=realNames[key]||(realNames[key]=[]);names.push({name:methodName,func:lodashFunc})}}),realNames[createHybrid(undefined,WRAP_BIND_KEY_FLAG).name]=[{name:"wrapper",func:undefined}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash.prototype.at=wrapperAt,lodash.prototype.chain=wrapperChain,lodash.prototype.commit=wrapperCommit,lodash.prototype.next=wrapperNext,lodash.prototype.plant=wrapperPlant,lodash.prototype.reverse=wrapperReverse,lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue,lodash.prototype.first=lodash.prototype.head,symIterator&&(lodash.prototype[symIterator]=wrapperToIterator),lodash},_=runInContext();root._=_,__WEBPACK_AMD_DEFINE_RESULT__=function(){return _}.call(exports,__webpack_require__,exports,module),!(__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this)}).call(exports,function(){return this}(),__webpack_require__(3)(module))},function(module,exports){module.exports=function(module){return module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children=[],module.webpackPolyfill=1),module}},function(module,exports,__webpack_require__){var Matrix,Screen,Utils,WebFont,_,__domComplete,__domCompleteState,__domReady,_isFontLoadedResults,_textSizeNode,fontsFromConfig,getWidth,monoWidth,sansWidth,serifWidth,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1},slice=[].slice;_=__webpack_require__(1)._,Screen=__webpack_require__(5).Screen,Matrix=__webpack_require__(9).Matrix,WebFont=__webpack_require__(10),Utils={},Utils.reset=function(){return Framer.CurrentContext.reset()},Utils.getValue=function(value){return _.isFunction(value)?value():value},Utils.getValueForKeyPath=function(obj,key){var len,o,ref,ref1,result;if(result=obj,ref=!1,indexOf.call(key,ref)>=0)return obj[key];for(ref1=key.split("."),o=0,len=ref1.length;o<len;o++)key=ref1[o],result=result[key];return result},Utils.setValueForKeyPath=function(obj,path,val){var currentValue,field,fields,i,n,result;for(fields=path.split("."),result=obj,i=0,n=fields.length;i<n&&void 0!==result;)field=fields[i],i===n-1?(currentValue=result[field],_.isObject(currentValue)&&_.isObject(val)&&Object.getPrototypeOf(currentValue)===Object.prototype&&Object.getPrototypeOf(val)===Object.prototype?_.extend(currentValue,val):result[field]=val):("undefined"!=typeof result[field]&&_.isObject(result[field])||(result[field]={}),result=result[field]),i++},Utils.valueOrDefault=function(value,defaultValue){return void 0!==value&&null!==value||(value=defaultValue),value},Utils.arrayNext=function(arr,item){return arr[arr.indexOf(item)+1]||_.head(arr)},Utils.arrayPrev=function(arr,item){return arr[arr.indexOf(item)-1]||_.last(arr)},Utils.webkitPerspectiveForValue=function(value){return"none"===value||null===value||0===value?"none":_.isNumber(value)?value:null},Utils.sum=function(arr){return _.reduce(arr,function(a,b){return a+b})},Utils.average=function(arr){return Utils.sum(arr)/arr.length},Utils.mean=Utils.average,Utils.median=function(x){var sorted;return 0===x.length?null:(sorted=x.slice().sort(function(a,b){return a-b}),sorted.length%2===1?sorted[(sorted.length-1)/2]:(sorted[sorted.length/2-1]+sorted[sorted.length/2])/2)},Utils.nearestIncrement=function(x,increment){return increment?Math.round(x*(1/increment))/(1/increment):x},null==window.requestAnimationFrame&&(window.requestAnimationFrame=window.webkitRequestAnimationFrame),null==window.requestAnimationFrame&&(window.requestAnimationFrame=function(f){return Utils.delay(1/60,f)}),window.performance?Utils.getTime=function(){return window.performance.now()/1e3}:Utils.getTime=function(){return Date.now()/1e3},Utils.delay=function(time,f){var timer;return timer=setTimeout(f,1e3*time),Framer.CurrentContext.addTimer(timer),timer},Utils.interval=function(time,f){var timer;return timer=setInterval(f,1e3*time),Framer.CurrentContext.addInterval(timer),timer},Utils.debounce=function(threshold,fn,immediate){var timeout;return null==threshold&&(threshold=.1),timeout=null,threshold*=1e3,function(){var args,delayed,obj;return args=1<=arguments.length?slice.call(arguments,0):[],obj=this,delayed=function(){return immediate||fn.apply(obj,args),timeout=null},timeout?clearTimeout(timeout):immediate&&fn.apply(obj,args),timeout=setTimeout(delayed,threshold)}},Utils.throttle=function(delay,fn){var timer;return 0===delay?fn:(delay*=1e3,timer=!1,function(){if(!timer)return timer=!0,delay!==-1&&setTimeout(function(){return timer=!1},delay),fn.apply(null,arguments)})},Utils.memoize=function(fn){return function(){var args,currentArg,hash,i;for(args=Array.prototype.slice.call(arguments),hash="",i=args.length,currentArg=null;i--;)currentArg=args[i],hash+=currentArg===Object(currentArg)?JSON.stringify(currentArg):currentArg,fn.memoize||(fn.memoize={});return hash in fn.memoize?fn.memoize[hash]:fn.memoize[hash]=fn.apply(this,args)}},Utils.randomColor=function(alpha){return null==alpha&&(alpha=1),Color.random(alpha)},Utils.randomChoice=function(arr){return arr[Math.floor(Math.random()*arr.length)]},Utils.randomNumber=function(a,b){return null==a&&(a=0),null==b&&(b=1),Utils.mapRange(Math.random(),0,1,a,b)},Utils.randomImage=function(layer){var increment,photo,photos,size;return _.isNumber(layer)&&(layer={id:layer}),photos=["1417733403748-83bbc7c05140","1423841265803-dfac59ebf718","1433689056001-018e493576bc","1430812411929-de4cf1d1fe73","1457269449834-928af64c684d","1443616839562-036bb2afd9a2","1461535676131-2de1f7054d3f","1462393582935-1ac76b85dcf1","1414589530802-cb54ce0575d9","1422908132590-117a051fc5cd","1438522014717-d7ce32b9bab9","1462058164249-2dcdcda67ce7","1456757014009-0614a080ff7f","1434238255348-4fb0d9caa0a4","1448071792026-7064a01897e7","1458681842652-019f4eeda5e5","1460919920543-d8c45f4bd621","1447767961238-038617b84a2b","1449089299624-89ce41e8306c","1414777410116-81e404502b52","1433994349623-0a18966ee9c0","1452567772283-91d67178f409","1458245229726-a8ba04cb5969","1422246719650-cb30d19825e3","1417392639864-2c88dd07f460","1442328166075-47fe7153c128","1448467258552-6b3982373a13","1447023362548-250f3a7b80ed","1451486242265-24b0c0ef9a51","1414339372428-797ec111646d"],photo=Utils.randomChoice(photos),(null!=layer?layer.id:void 0)&&(photo=photos[layer.id%photos.length]),increment=100,size=1024,layer&&(size=Math.max(layer.width,layer.height),size=Math.ceil(size/increment)*increment,size<increment&&(size=increment),size=Utils.devicePixelRatio()*size,size=parseInt(size)),"https://images.unsplash.com/photo-"+photo+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w="+size+"&h="+size+"&fit=max"},Utils.defineEnum=function(names,offset,geometric){var Enum,i,j,len,name,o;for(null==names&&(names=[]),null==offset&&(offset=0),null==geometric&&(geometric=0),Enum={},i=o=0,len=names.length;o<len;i=++o)name=names[i],j=i,j=offset?j+offset:j,j=geometric?Math.pow(geometric,j):j,Enum[Enum[name]=j]=name;return Enum},Utils.labelLayer=function(layer,text,style){var fontSize;if(null==style&&(style={}),text&&""!==text&&"string"==typeof text)return fontSize=Math.max(Math.min(48,parseInt(layer.height/3.2)),14),style=_.extend({font:fontSize+"px/1em "+Utils.deviceFont(),lineHeight:layer.height+"px",textAlign:"center",color:"#fff"},style),layer.style=style,layer.html=text},Utils.stringify=function(obj){try{if(_.isObject(obj))return JSON.stringify(obj)}catch(error1){}return null===obj?"null":void 0===obj?"undefined":obj.toString?obj.toString():obj},Utils.inspectObjectType=function(item){var className,extract,ref,ref1,ref2,ref3;return null!=(null!=(ref=item.constructor)?ref.name:void 0)&&"Object"!==(null!=(ref1=item.constructor)?ref1.name:void 0)?item.constructor.name:(extract=function(str){var match,regex;return str?(regex=/\[object (\w+)\]/,match=regex.exec(str),match?match[1]:null):null},item.toString&&(className=extract(item.toString()))?className:(null!=(ref2=item.constructor)?ref2.toString:void 0)&&(className=extract(null!=(ref3=item.constructor)?ref3.toString():void 0))?className.replace("Constructor",""):"Object")},Utils.inspect=function(item,max,l){var code,limit,objectInfo,objectType;return null==max&&(max=5),null==l&&(l=0),null===item?"null":void 0===item?"undefined":_.isFunction(item.toInspect)?item.toInspect():_.isString(item)?'"'+item+'"':_.isNumber(item)?""+item:_.isFunction(item)?(code=item.toString().slice("function ".length).replace(/\n/g,"").replace(/\s+/g," "),limit=50,code.length>limit&&l>0&&(code=_.trimEnd(code.slice(0,+limit+1||9e9))+"… }"),"<Function "+code+">"):_.isArray(item)?l>max?"[...]":"["+_.map(item,function(i){return Utils.inspect(i,max,l+1)}).join(", ")+"]":_.isObject(item)?(objectType=Utils.inspectObjectType(item),/HTML\w+?Element/.test(objectType)?"<"+objectType+">":(objectInfo=l>max?"{...}":"{"+_.map(item,function(v,k){return k+":"+Utils.inspect(v,max,l+1)}).join(", ")+"}","Object"===objectType?objectInfo:"<"+objectType+" "+objectInfo+">")):""+item},Utils.uuid=function(){var chars,digit,o,output,r,random;for(chars="0123456789abcdefghijklmnopqrstuvwxyz".split(""),output=new Array(36),random=0,digit=o=1;o<=32;digit=++o)random<=2&&(random=33554432+16777216*Math.random()|0),r=15&random,random>>=4,output[digit]=chars[19===digit?3&r|8:r];return output.join("")},Utils.findLayer=function(layers,selector){return _.find(layers,function(layer){return Utils.layerMatchesSelector(layer,selector)})},Utils.filterLayers=function(layers,selector){return _.filter(layers,function(layer){return Utils.layerMatchesSelector(layer,selector)})},Utils.layerMatchesSelector=function(layer,selector){var getHierarchyString,hierarchy,hierarchyMatch;if(getHierarchyString=function(l){var nameArr;return nameArr=_.pluck(l.ancestors().reverse(),"name"),nameArr.join(">")+(">"+layer.name)},hierarchyMatch=function(hierarchy,string){var regExp,regexString;return string=string.replace(/\s*>\s*/g,">"),string=string.split("*").join("[^>]*"),string=string.split(" ").join("(?:.*)>"),string=string.split(",").join("$|"),regexString="(^|>)"+string+"$",regExp=new RegExp(regexString),regExp.test(hierarchy)},selector)return hierarchy=getHierarchyString(layer,selector),hierarchyMatch(hierarchy,selector)},Utils.arrayFromArguments=function(args){return _.isArray(args[0])?args[0]:Array.prototype.slice.call(args)},Utils.cycle=function(){var args,curr;return args=Utils.arrayFromArguments(arguments),curr=-1,function(){return curr++,curr>=args.length&&(curr=0),args[curr]}},Utils.toggle=Utils.cycle,Utils.callAfterCount=function(total,callback){var callAfterCount,count;return count=0,callAfterCount=function(){if(count+=1,count===total)return"function"==typeof callback?callback():void 0}},Utils.equal=function(a,b){return _.isFunction(null!=a?a.isEqual:void 0)?a.isEqual(b):_.isFunction(null!=b?b.isEqual:void 0)?b.isEqual(a):_.isEqual(a,b)},Utils.isWebKit=function(){return void 0!==window.WebKitCSSMatrix&&!Utils.isEdge()},Utils.webkitVersion=function(){var regexp,result,version;return version=-1,regexp=/AppleWebKit\/([\d.]+)/,result=regexp.exec(navigator.userAgent),result&&(version=parseFloat(result[1])),version},Utils.isChrome=function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)},Utils.isSafari=function(){return/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)},Utils.isFirefox=function(){return/^Mozilla.*Firefox\/\d+\.\d+$/.test(navigator.userAgent)},Utils.isEdge=function(){return/Edge/.test(navigator.userAgent)},Utils.isAndroid=function(){return/(android)/i.test(navigator.userAgent)},Utils.isIOS=function(){return/(iPhone|iPod|iPad)/i.test(navigator.platform)},Utils.isMacOS=function(){return/Mac/.test(navigator.platform)},Utils.isWindows=function(){return/Win/.test(navigator.platform)},Utils.isTouch=function(){return null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend},Utils.isDesktop=function(){return"desktop"===Utils.deviceType()},Utils.isPhone=function(){return"phone"===Utils.deviceType()},Utils.isTablet=function(){return"tablet"===Utils.deviceType()},Utils.isMobile=function(){return Utils.isPhone()||Utils.isTablet()},Utils.isFileUrl=function(url){return _.startsWith(url,"file://")},Utils.isDataUrl=function(url){return _.startsWith(url,"data:")},Utils.isRelativeUrl=function(url){return!/^([a-zA-Z]{1,8}:\/\/).*$/.test(url)},Utils.isLocalServerUrl=function(url){return/[a-zA-Z]{1,8}:\/\/127\.0\.0\.1/.test(url)||/[a-zA-Z]{1,8}:\/\/localhost/.test(url)},Utils.isLocalUrl=function(url){return!!Utils.isFileUrl(url)||!!Utils.isLocalServerUrl(url)},Utils.isLocalAssetUrl=function(url,baseUrl){return null==baseUrl&&(baseUrl=window.location.href),!Utils.isDataUrl(url)&&(!!Utils.isLocalUrl(url)||!(!Utils.isRelativeUrl(url)||!Utils.isLocalUrl(baseUrl)))},Utils.isFramerStudio=function(){return navigator.userAgent.indexOf("FramerStudio")!==-1},Utils.framerStudioVersion=function(){var isBeta,isFuture,isLocal,matches,version;if(Utils.isFramerStudio()){if(isBeta=navigator.userAgent.indexOf("FramerStudio/beta")>=0,isLocal=navigator.userAgent.indexOf("FramerStudio/local")>=0,isFuture=navigator.userAgent.indexOf("FramerStudio/future")>=0,isBeta||isLocal||isFuture)return Number.MAX_VALUE;if(matches=navigator.userAgent.match(/\d+$/),matches&&matches.length>0&&(version=parseInt(matches[0])),_.isNumber(version))return version}return Number.MAX_VALUE},Utils.devicePixelRatio=function(){return window.devicePixelRatio},Utils.isJP2Supported=function(){return!Utils.isFirefox()&&(Utils.isWebKit()&&!Utils.isChrome())},Utils.isWebPSupported=function(){return Utils.isChrome()},Utils.deviceType=function(){return/(tablet)|(iPad)|(Nexus 9)/i.test(navigator.userAgent)?"tablet":/(mobi)/i.test(navigator.userAgent)?"phone":"desktop"},Utils.pathJoin=function(){return Utils.arrayFromArguments(arguments).join("/")},Utils.deviceFont=function(os){var appleFont,googleFont,microsoftFont;switch(os||(Utils.isMacOS()&&(os="macOS"),Utils.isIOS()&&(os="iOS"),Utils.isAndroid()&&(os="Android"),Utils.isWindows()&&(os="Windows")),appleFont="-apple-system, BlinkMacSystemFont, SF UI Text, Helvetica Neue",googleFont="Roboto, Helvetica Neue",microsoftFont="Segoe UI, Helvetica Neue",os){case"Android":return googleFont;case"iOS":case"watchOS":case"macOS":return appleFont;case"Windows":return microsoftFont}return appleFont},_isFontLoadedResults={},getWidth=function(fontFamily){return Utils.textSize("BESbswy",{fontFamily:fontFamily,fontSize:300}).width},monoWidth=null,serifWidth=null,sansWidth=null,Utils.isFontAvailable=function(fonts){return _isFontLoadedResults[fonts]===!0||(null==monoWidth&&(monoWidth=getWidth("monospace")),null==serifWidth&&(serifWidth=getWidth("serif")),null==sansWidth&&(sansWidth=getWidth("sans-serif")),(monoWidth!==getWidth(fonts+",monospace")||serifWidth!==getWidth(fonts+",serif")||sansWidth!==getWidth(fonts+",sans-serif"))&&(_isFontLoadedResults[fonts]=!0,!0))},Utils.isFontFamilyLoaded=function(fonts,timeout){var unavailableFonts;return null==timeout&&(timeout=1e3),_.isArray(fonts)||(fonts=[fonts]),unavailableFonts=fonts.filter(function(font){return!Utils.isFontAvailable(font)}),0===unavailableFonts.length||Utils.loadWebFontConfig({custom:{families:unavailableFonts},timeout:timeout})},fontsFromConfig=function(config){var ref,ref1,ref2,ref3,result;return result=[],_.isArray(null!=config&&null!=(ref=config.custom)?ref.families:void 0)&&(result=result.concat(null!=config&&null!=(ref1=config.custom)?ref1.families:void 0)),_.isArray(null!=config&&null!=(ref2=config.google)?ref2.families:void 0)&&(result=result.concat(null!=config&&null!=(ref3=config.google)?ref3.families:void 0)),result},Utils.loadWebFontConfig=function(config){var allLoadedResult,currentFont,currentFontLoaded,customActive,customFontactive,customFontinactive,customInactive,fonts,len,o,promise;for(fonts=fontsFromConfig(config), allLoadedResult=null,o=0,len=fonts.length;o<len;o++){if(currentFont=fonts[o],currentFontLoaded=_isFontLoadedResults[currentFont],null==currentFontLoaded){allLoadedResult=null;break}null==allLoadedResult&&(allLoadedResult=currentFontLoaded),allLoadedResult=allLoadedResult&&currentFontLoaded}return null!=allLoadedResult?allLoadedResult:(customActive=config.active,customInactive=config.inactive,customFontactive=config.fontactive,customFontinactive=config.fontinactive,promise=new Promise(function(resolve,reject){return config.fontactive=function(font){if(_isFontLoadedResults[font]=!0,"function"==typeof customFontactive&&customFontactive(font),1===fonts.length)return resolve()},config.fontinactive=function(font){var error;if(console.warn("Tried to load unavailable font: '"+font+"'"),_isFontLoadedResults[font]=!1,"function"==typeof customFontinactive&&customFontinactive(font),1===fonts.length)return error=new Error(font+" failed to load"),reject(error)},config.active=function(){return"function"==typeof customActive&&customActive(),resolve()},config.inactive=function(){var error;return"function"==typeof customInactive&&customInactive(),error=new Error(fonts.join(", ")+" failed to load"),reject(error)},WebFont.load(config)}))},Utils.loadWebFont=function(font,weight,source){var config,fontToLoad;return null==source&&(source="google"),null!=_isFontLoadedResults[font]&&_isFontLoadedResults[font]!==!1||(delete _isFontLoadedResults[font],config={},"google"===source&&(fontToLoad=font,null!=weight&&(fontToLoad+=":"+weight),config.google={families:[fontToLoad]}),Utils.loadWebFontConfig(config)),{fontFamily:font,fontWeight:weight}},Utils.round=function(value,decimals,increment,min,max){var d;return null==decimals&&(decimals=0),null==increment&&(increment=null),null==min&&(min=null),null==max&&(max=null),d=Math.pow(10,decimals),increment&&(value=Math.round(value/increment)*increment),value=Math.round(value*d)/d,min&&value<min?min:max&&value>max?max:value},Utils.roundWhole=function(value,decimals){return null==decimals&&(decimals=1),parseInt(value)===value?parseInt(value):Utils.round(value,decimals)},Utils.clamp=function(value,a,b){var max,min;return min=Math.min(a,b),max=Math.max(a,b),value<min&&(value=min),value>max&&(value=max),value},Utils.mapRange=function(value,fromLow,fromHigh,toLow,toHigh){return toLow+(value-fromLow)/(fromHigh-fromLow)*(toHigh-toLow)},Utils.modulate=function(value,rangeA,rangeB,limit){var fromHigh,fromLow,result,toHigh,toLow;if(null==limit&&(limit=!1),fromLow=rangeA[0],fromHigh=rangeA[1],toLow=rangeB[0],toHigh=rangeB[1],result=toLow+(value-fromLow)/(fromHigh-fromLow)*(toHigh-toLow),limit===!0)if(toLow<toHigh){if(result<toLow)return toLow;if(result>toHigh)return toHigh}else{if(result>toLow)return toLow;if(result<toHigh)return toHigh}return result},Utils.parseFunction=function(str){var result;return result={name:"",args:[]},_.endsWith(str,")")?(result.name=str.split("(")[0],result.args=str.split("(")[1].split(",").map(function(a){return _.trim(_.trimEnd(a,")"))})):result.name=str,result},__domCompleteState="interactive",__domComplete=[],__domReady=!1,"undefined"!=typeof document&&null!==document&&(document.onreadystatechange=function(event){var f,results;if(document.readyState===__domCompleteState){for(__domReady=!0,results=[];__domComplete.length;)results.push(f=__domComplete.shift()());return results}}),Utils.domComplete=function(f){return __domReady?f():__domComplete.push(f)},Utils.domCompleteCancel=function(f){return __domComplete=_.without(__domComplete,f)},Utils.domValidEvent=function(element,eventName){if(eventName)return"touchstart"===eventName||"touchmove"===eventName||"touchend"===eventName||"undefined"!=typeof element["on"+eventName.toLowerCase()]},Utils.domLoadScript=function(url,callback){var head,script;return script=document.createElement("script"),script.type="text/javascript",script.src=url,script.onload=callback,head=document.getElementsByTagName("head")[0],head.appendChild(script),script},Utils.domLoadData=function(path,callback){var request;return request=new XMLHttpRequest,request.addEventListener("load",function(){return callback(null,request.responseText)},!1),request.addEventListener("error",function(){return callback(!0,null)},!1),request.open("GET",path,!0),request.send(null)},Utils.domLoadJSON=function(path,callback){return Utils.domLoadData(path,function(err,data){return callback(err,JSON.parse(data))})},Utils.domLoadDataSync=function(path){var e,handleError,ref,request;request=new XMLHttpRequest,request.open("GET",path,!1);try{request.send(null)}catch(error1){e=error1,console.debug("XMLHttpRequest.error",e)}return handleError=function(){throw Error("Utils.domLoadDataSync: "+path+" -> ["+request.status+" "+request.statusText+"]")},request.onerror=handleError,200!==(ref=request.status)&&0!==ref&&handleError(),request.responseText||handleError(),request.responseText},Utils.domLoadJSONSync=function(path){return JSON.parse(Utils.domLoadDataSync(path))},Utils.domLoadScriptSync=function(path){var scriptData;return scriptData=Utils.domLoadDataSync(path),eval(scriptData),scriptData},Utils.insertCSS=function(css){var styleElement;return styleElement=document.createElement("style"),styleElement.type="text/css",styleElement.innerHTML=css,Utils.domComplete(function(){return document.body.appendChild(styleElement)})},Utils.loadImage=function(url,callback,context){var element;return element=new Image,null==context&&(context=Framer.CurrentContext),context.domEventManager.wrap(element).addEventListener("load",function(event){return callback()}),context.domEventManager.wrap(element).addEventListener("error",function(event){return callback(!0)}),element.src=url},Utils.isInsideIframe=function(){return!Utils.isInsideFramerCloud()&&window!==window.top},Utils.isInsideFramerCloud=function(){return"1"===Utils.getQueryParameters().cloud},Utils.getQueryParameters=function(){return _.fromPairs(window.location.search.slice(1).split("&").map(function(val){return val.split("=")}))},Utils.point=function(input){var k,len,o,ref,result;if(_.isNumber(input))return Utils.pointZero(input);if(!input)return Utils.pointZero();for(result=Utils.pointZero(),ref=["x","y"],o=0,len=ref.length;o<len;o++)k=ref[o],_.isNumber(input[k])&&(result[k]=input[k]);return result},Utils.pointZero=function(n){return null==n&&(n=0),{x:n,y:n}},Utils.pointDivide=function(point,fraction){return point={x:point.x/fraction,y:point.y/fraction}},Utils.pointAdd=function(pointA,pointB){var point;return point={x:pointA.x+pointB.x,y:pointA.y+pointB.y}},Utils.pointSubtract=function(pointA,pointB){var point;return point={x:pointA.x-pointB.x,y:pointA.y-pointB.y}},Utils.pointMin=function(){var point,points;return points=Utils.arrayFromArguments(arguments),point={x:_.min(points.map(function(size){return size.x})),y:_.min(points.map(function(size){return size.y}))}},Utils.pointMax=function(){var point,points;return points=Utils.arrayFromArguments(arguments),point={x:_.max(points.map(function(size){return size.x})),y:_.max(points.map(function(size){return size.y}))}},Utils.pointDelta=function(pointA,pointB){var delta;return delta={x:pointB.x-pointA.x,y:pointB.y-pointA.y}},Utils.pointDistance=function(pointA,pointB){var a,b;return a=pointA.x-pointB.x,b=pointA.y-pointB.y,Math.sqrt(a*a+b*b)},Utils.pointInvert=function(point){return point={x:0-point.x,y:0-point.y}},Utils.pointTotal=function(point){return point.x+point.y},Utils.pointAbs=function(point){return point={x:Math.abs(point.x),y:Math.abs(point.y)}},Utils.pointInFrame=function(point,frame){return!(point.x<Utils.frameGetMinX(frame)||point.x>Utils.frameGetMaxX(frame))&&!(point.y<Utils.frameGetMinY(frame)||point.y>Utils.frameGetMaxY(frame))},Utils.pointCenter=function(pointA,pointB){var point;return point={x:(pointA.x+pointB.x)/2,y:(pointA.y+pointB.y)/2}},Utils.pointAngle=function(pointA,pointB){return 180*Math.atan2(pointB.y-pointA.y,pointB.x-pointA.x)/Math.PI},Utils.divideFrame=function(frame,scale){return frame.x/=scale,frame.y/=scale,frame.width/=scale,frame.height/=scale,frame},Utils.scaleFrames=function(layer,scale){if(layer instanceof Layer&&(layer.constraintValues=null,layer.children.map(function(l){return Utils.scaleFrames(l,scale)}),layer.frame=Utils.divideFrame(layer.frame,scale)),_.isArray(layer))return layer.map(function(l){return Utils.scaleFrames(l,scale)})},Utils.size=function(input){var k,len,o,ref,result;if(_.isNumber(input))return Utils.sizeZero(input);if(!input)return Utils.sizeZero();for(result=Utils.sizeZero(),ref=["width","height"],o=0,len=ref.length;o<len;o++)k=ref[o],_.isNumber(input[k])&&(result[k]=input[k]);return result},Utils.sizeZero=function(n){return null==n&&(n=0),{width:n,height:n}},Utils.sizeMin=function(){var size,sizes;return sizes=Utils.arrayFromArguments(arguments),size={width:_.min(sizes.map(function(size){return size.width})),height:_.min(sizes.map(function(size){return size.height}))}},Utils.sizeMax=function(){var size,sizes;return sizes=Utils.arrayFromArguments(arguments),size={width:_.max(sizes.map(function(size){return size.width})),height:_.max(sizes.map(function(size){return size.height}))}},Utils.rectZero=function(args){return null==args&&(args={}),_.defaults(args,{top:0,right:0,bottom:0,left:0})},Utils.parseRect=function(args){if(_.isArray(args)&&_.isNumber(args[0])){if(1===args.length)return Utils.parseRect({top:args[0]});if(2===args.length)return Utils.parseRect({top:args[0],right:args[1]});if(3===args.length)return Utils.parseRect({top:args[0],right:args[1],bottom:args[2]});if(4===args.length)return Utils.parseRect({top:args[0],right:args[1],bottom:args[2],left:args[3]})}return _.isArray(args)&&_.isObject(args[0])?args[0]:_.isObject(args)?args:_.isNumber(args)?{top:args,right:args,bottom:args,left:args}:{}},Utils.frameGetMinX=function(frame){return frame.x},Utils.frameSetMinX=function(frame,value){return frame.x=value},Utils.frameGetMidX=function(frame){return 0===frame.width?frame.x:frame.x+frame.width/2},Utils.frameSetMidX=function(frame,value){return frame.x=0===frame.width?value:value-frame.width/2},Utils.frameGetMaxX=function(frame){return 0===frame.width?0:frame.x+frame.width},Utils.frameSetMaxX=function(frame,value){return frame.x=0===frame.width?0:value-frame.width},Utils.frameGetMinY=function(frame){return frame.y},Utils.frameSetMinY=function(frame,value){return frame.y=value},Utils.frameGetMidY=function(frame){return 0===frame.height?frame.y:frame.y+frame.height/2},Utils.frameSetMidY=function(frame,value){return frame.y=0===frame.height?value:value-frame.height/2},Utils.frameGetMaxY=function(frame){return 0===frame.height?0:frame.y+frame.height},Utils.frameSetMaxY=function(frame,value){return frame.y=0===frame.height?0:value-frame.height},Utils.frame=function(input){var k,len,o,ref,result;if(_.isNumber(input))return Utils.frameZero(input);if(!input)return Utils.frameZero();for(result=Utils.frameZero(),ref=["x","y","width","height"],o=0,len=ref.length;o<len;o++)k=ref[o],_.isNumber(input[k])&&(result[k]=input[k]);return result},Utils.frameZero=function(n){return null==n&&(n=0),{x:n,y:n}},Utils.frameSize=function(frame){var size;return size={width:frame.width,height:frame.height}},Utils.framePoint=function(frame){var point;return point={x:frame.x,y:frame.y}},Utils.pointsFromFrame=function(frame){var corner1,corner2,corner3,corner4,maxX,maxY,minX,minY;return minX=Utils.frameGetMinX(frame),maxX=Utils.frameGetMaxX(frame),minY=Utils.frameGetMinY(frame),maxY=Utils.frameGetMaxY(frame),corner1={x:minX,y:minY},corner2={x:minX,y:maxY},corner3={x:maxX,y:maxY},corner4={x:maxX,y:minY},[corner1,corner2,corner3,corner4]},Utils.frameFromPoints=function(points){var frame,maxX,maxY,minX,minY,xValues,yValues;return xValues=_.map(points,"x"),yValues=_.map(points,"y"),minX=_.min(xValues),maxX=_.max(xValues),minY=_.min(yValues),maxY=_.max(yValues),frame={x:minX,y:minY,width:maxX-minX,height:maxY-minY}},Utils.pixelAlignedFrame=function(frame){var height,maxX,maxY,width,x,y;return x=Math.round(frame.x),y=Math.round(frame.y),maxX=Math.round(frame.x+frame.width),maxY=Math.round(frame.y+frame.height),width=Math.max(maxX-x,0),height=Math.max(maxY-y,0),{x:x,y:y,width:width,height:height}},Utils.calculateLayoutFrame=function(parentFrame,child){var constraintValues,height,ratio,width,x,y;return constraintValues=child.constraintValues,x=constraintValues.left||0,y=constraintValues.top||0,width=constraintValues.width,height=constraintValues.height,null===parentFrame?Utils.pixelAlignedFrame({x:x,y:y,width:width,height:height}):(ratio=width/height,null!==constraintValues.widthFactor&&(width=parentFrame.width*constraintValues.widthFactor,constraintValues.aspectRatioLocked&&(height=width/ratio)),null!==constraintValues.heightFactor&&(height=parentFrame.height*constraintValues.heightFactor,constraintValues.aspectRatioLocked&&(width=height*ratio)),null!==constraintValues.left&&null!==constraintValues.right&&(width=parentFrame.width-constraintValues.right-constraintValues.left,constraintValues.aspectRatioLocked&&(height=width/ratio)),null!==constraintValues.top&&null!==constraintValues.bottom&&(height=parentFrame.height-constraintValues.bottom-constraintValues.top,constraintValues.aspectRatioLocked&&(width=height*ratio)),x=Utils.calculateLayoutX(parentFrame,constraintValues,width),y=Utils.calculateLayoutY(parentFrame,constraintValues,height),Utils.pixelAlignedFrame({x:x,y:y,width:width,height:height}))},Utils.calculateLayoutX=function(parentFrame,constraintValues,width){var x;return x=constraintValues.left||0,x=null!==constraintValues.left?constraintValues.left:null!==constraintValues.right?parentFrame.width-constraintValues.right-width:constraintValues.centerAnchorX*parentFrame.width-width/2},Utils.calculateLayoutY=function(parentFrame,constraintValues,height){var y;return y=constraintValues.top||0,y=null!==constraintValues.top?constraintValues.top:null!==constraintValues.bottom?parentFrame.height-constraintValues.bottom-height:constraintValues.centerAnchorY*parentFrame.height-height/2},Utils.frameMerge=function(){var frame,frames;return frames=Utils.arrayFromArguments(arguments),frame={x:_.min(frames.map(Utils.frameGetMinX)),y:_.min(frames.map(Utils.frameGetMinY))},frame.width=_.max(frames.map(Utils.frameGetMaxX))-frame.x,frame.height=_.max(frames.map(Utils.frameGetMaxY))-frame.y,frame},Utils.frameInFrame=function(frameA,frameB){var len,o,point,ref;for(ref=Utils.pointsFromFrame(frameA),o=0,len=ref.length;o<len;o++)if(point=ref[o],!Utils.pointInFrame(point,frameB))return!1;return!0},Utils.framePointForOrigin=function(frame,originX,originY){return frame={x:frame.x+originX*frame.width,y:frame.y+originY*frame.height,width:frame.width,height:frame.height}},Utils.frameInset=function(frame,inset){return _.isNumber(inset)&&(inset={top:inset,right:inset,bottom:inset,left:inset}),frame=Utils.frame(frame),frame={x:frame.x+inset.left,y:frame.y+inset.top,width:frame.width-inset.left-inset.right,height:frame.height-inset.top-inset.bottom}},Utils.frameSortByAbsoluteDistance=function(point,frames,originX,originY){var distance;return null==originX&&(originX=0),null==originY&&(originY=0),distance=function(frame){var result;return result=Utils.pointDelta(point,Utils.framePointForOrigin(frame,originX,originY)),result=Utils.pointAbs(result),result=Utils.pointTotal(result)},frames.sort(function(a,b){return distance(a)-distance(b)})},Utils.pointInPolygon=function(point,vs){var i,inside,intersect,j,x,xi,xj,y,yi,yj;for(x=point[0],y=point[1],inside=!1,i=0,j=vs.length-1;i<vs.length;)xi=vs[i][0],yi=vs[i][1],xj=vs[j][0],yj=vs[j][1],intersect=yi>y&&y!==yj&&yj>y&&x<(xj-xi)*(y-yi)/(yj-yi)+xi,intersect&&(inside=!inside),j=i++;return inside},Utils.frameIntersection=function(rectA,rect){var x1,x2,y1,y2;return x1=rect.x,y1=rect.y,x2=x1+rect.width,y2=y1+rect.height,rectA.x>x1&&(x1=rectA.x),rectA.y>y1&&(y1=rectA.y),rectA.x+rectA.width<x2&&(x2=rectA.x+rectA.width),rectA.y+rectA.height<y2&&(y2=rectA.y+rectA.height),x2<=x1||y2<=y1?null:rect={x:x1,y:y1,width:x2-x1,height:y2-y1}},Utils.frameCenterPoint=function(frame){var point;return point={x:Utils.frameGetMidX(frame),y:Utils.frameGetMidY(frame)}},Utils.frameInFrame=function(frameA,frameB){var len,o,point,ref;for(ref=Utils.pointsFromFrame(frameA),o=0,len=ref.length;o<len;o++)if(point=ref[o],!Utils.pointInFrame(point,frameB))return!1;return!0},Utils.rotationNormalizer=function(){var lastValue;return lastValue=null,function(value){var diff,maxDiff,nTimes;return null==lastValue&&(lastValue=value),diff=lastValue-value,maxDiff=Math.abs(diff)+180,nTimes=Math.floor(maxDiff/360),diff<180&&(value-=360*nTimes),diff>180&&(value+=360*nTimes),lastValue=value,value}},Utils.convertPointToContext=function(point,layer,rootContext,includeLayer){var container,containers,len,o;for(null==point&&(point={}),null==rootContext&&(rootContext=!1),null==includeLayer&&(includeLayer=!0),point=_.defaults(point,{x:0,y:0,z:0}),containers=layer.containers(rootContext),includeLayer&&containers.unshift(layer),o=0,len=containers.length;o<len;o++)container=containers[o],(container.flat||container.clip)&&(point.z=0),null!=container.matrix3d?point=container.matrix3d.point(point):null!=container.scale&&(point={x:point.x*container.scale,y:point.y*container.scale}),container.parent||(point.z=0);return point},Utils.convertFrameToContext=function(frame,layer,rootContext,includeLayer){var convertedCorners,corners;return null==frame&&(frame={}),null==rootContext&&(rootContext=!1),null==includeLayer&&(includeLayer=!0),frame=_.defaults(frame,{x:0,y:0,width:Framer.Defaults.Layer.width,height:Framer.Defaults.Layer.height}),corners=Utils.pointsFromFrame(frame),convertedCorners=corners.map(function(point){return Utils.convertPointToContext(point,layer,rootContext,includeLayer)}),Utils.frameFromPoints(convertedCorners)},Utils.convertPointFromContext=function(point,layer,rootContext,includeLayer){var container,containers,context,len,node,o,parent,ref;if(null==point&&(point={}),null==rootContext&&(rootContext=!1),null==includeLayer&&(includeLayer=!0),point=_.defaults(point,{x:0,y:0,z:0}),rootContext&&"undefined"!=typeof webkitConvertPointFromPageToNode&&null!==webkitConvertPointFromPageToNode)return includeLayer?node=layer._element:(parent=layer.parent||layer.context,node=parent._element),point=Utils.point(webkitConvertPointFromPageToNode(node,new WebKitPoint(point.x,point.y))),context=null!=(ref=layer.context)?ref:layer,point={x:point.x/context.scale,y:point.y/context.scale};for(containers=layer.containers(rootContext),containers.reverse(),includeLayer&&containers.push(layer),o=0,len=containers.length;o<len;o++)container=containers[o],null!=container.matrix3d?point=container.matrix3d.inverse().point(point):null!=container.scale&&(point={x:point.x/container.scale,y:point.y/container.scale});return point},Utils.convertFrameFromContext=function(frame,layer,rootContext,includeLayer){var convertedCorners,corners;return null==frame&&(frame={}),null==rootContext&&(rootContext=!1),null==includeLayer&&(includeLayer=!0),frame=_.defaults(frame,{x:0,y:0,width:Framer.Defaults.Layer.width,height:Framer.Defaults.Layer.height}),corners=Utils.pointsFromFrame(frame),convertedCorners=corners.map(function(point){return Utils.convertPointFromContext(point,layer,rootContext,includeLayer)}),Utils.frameFromPoints(convertedCorners)},Utils.convertPoint=function(input,layerA,layerB,rootContext){var node,point;return null==rootContext&&(rootContext=!1),point=_.defaults(input,{x:0,y:0,z:0}),layerA&&(point=Utils.convertPointToContext(point,layerA,rootContext)),null!=layerB?Utils.convertPointFromContext(point,layerB,rootContext):null!=layerA&&rootContext&&"undefined"!=typeof webkitConvertPointFromPageToNode&&null!==webkitConvertPointFromPageToNode?(node=layerA.context._element,Utils.point(webkitConvertPointFromPageToNode(node,new WebKitPoint(point.x,point.y)))):point},Utils.boundingFrame=function(layer,rootContext){var boundingFrame,contextCornerPoints,cornerPoints,frame;return null==rootContext&&(rootContext=!0),frame={x:0,y:0,width:layer.width,height:layer.height},cornerPoints=Utils.pointsFromFrame(frame),contextCornerPoints=cornerPoints.map(function(point){return Utils.convertPointToContext(point,layer,rootContext)}),boundingFrame=Utils.frameFromPoints(contextCornerPoints),Utils.pixelAlignedFrame(boundingFrame)},Utils.perspectiveProjectionMatrix=function(element){var m,p;return p=element.perspective,m=new Matrix,null!=p&&0!==p&&(m.m34=-1/p),m},Utils.perspectiveMatrix=function(element){var ox,oy,ppm;return ox=element.perspectiveOriginX*element.width,oy=element.perspectiveOriginY*element.height,ppm=Utils.perspectiveProjectionMatrix(element),(new Matrix).translate(ox,oy).multiply(ppm).translate(-ox,-oy)},Utils.globalLayers=function(importedLayers){var layer,layerName;for(layerName in importedLayers)layer=importedLayers[layerName],layerName=layerName.replace(/\s/g,""),window.hasOwnProperty(layerName)&&!window.Framer._globalWarningGiven?print("Warning: Cannot make layer '"+layerName+"' a global, a variable with that name already exists"):window[layerName]=layer;return window.Framer._globalWarningGiven=!0},_textSizeNode=null,Utils.textSize=function(text,style,constraints){var frame,rect,shouldCreateNode;return null==style&&(style={}),null==constraints&&(constraints={}),shouldCreateNode=!_textSizeNode,shouldCreateNode&&(_textSizeNode=document.createElement("div"),_textSizeNode.id="_textSizeNode"),_textSizeNode.removeAttribute("style"),_textSizeNode.innerHTML=text,style=_.extend(_.clone(style),{position:"fixed",display:"inline",visibility:"hidden",top:"-10000px",left:"-10000px"}),delete style.width,delete style.height,delete style.bottom,delete style.right,constraints.max?(constraints.width&&(style.maxWidth=constraints.width+"px"),constraints.height&&(style.maxHeight=constraints.height+"px")):(constraints.width&&(style.width=constraints.width+"px"),constraints.height&&(style.height=constraints.height+"px")),_.extend(_textSizeNode.style,style),shouldCreateNode&&(window.document.body?window.document.body.appendChild(_textSizeNode):(document.write(_textSizeNode.outerHTML),_textSizeNode=document.getElementById("_textSizeNode"))),rect=_textSizeNode.getBoundingClientRect(),frame={width:rect.right-rect.left,height:rect.bottom-rect.top}},Utils.throwInStudioOrWarnInProduction=function(message){if(Utils.isFramerStudio())throw new Error(message);return console.warn(message),null},Utils.getIdAttributesFromString=function(string){var id,m,matches,regex;for(regex=/id=['"]([^'"]+)["']/g,matches=[];m=regex.exec(string);)id=m[1],null!=id&&matches.push(id);return matches},Utils.getUniqueId=function(prefix){var count,existingElement,id;for(null==prefix&&(prefix="id"),id=prefix,count=1,existingElement=document.querySelector("[id='"+id+"']");null!=existingElement;)id=""+prefix+count,existingElement=document.querySelector("[id='"+id+"']"),count++;return id},Utils.escapeForRegex=function(string){return string.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},_.extend(exports,Utils)},function(module,exports,__webpack_require__){var BaseClass,ScreenClass,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;BaseClass=__webpack_require__(6).BaseClass,ScreenClass=function(superClass){function ScreenClass(){return ScreenClass.__super__.constructor.apply(this,arguments)}return extend(ScreenClass,superClass),ScreenClass.define("width",{get:function(){return this.device?this.device.screenSize.width:Canvas.width}}),ScreenClass.define("height",{get:function(){return this.device?this.device.screenSize.height:Canvas.height}}),ScreenClass.define("canvasFrame",{get:function(){return this.device?this.device.context.canvasFrame:this.frame}}),ScreenClass.define("midX",{get:function(){return Utils.frameGetMidX(this.frame)}}),ScreenClass.define("midY",{get:function(){return Utils.frameGetMidY(this.frame)}}),ScreenClass.define("size",{get:function(){return Utils.size(this)}}),ScreenClass.define("frame",{get:function(){return Utils.frame(this)}}),ScreenClass.define("device",{get:function(){return Framer.CurrentContext.device}}),ScreenClass.define("backgroundColor",ScreenClass.proxyProperty("device.screen.backgroundColor")),ScreenClass.define("perspective",ScreenClass.proxyProperty("device.context.perspective")),ScreenClass.define("perspectiveOriginX",ScreenClass.proxyProperty("device.context.perspectiveOriginX")),ScreenClass.define("perspectiveOriginY",ScreenClass.proxyProperty("device.context.perspectiveOriginY")),ScreenClass.prototype.toInspect=function(){return"<Screen "+Utils.roundWhole(this.width)+"x"+Utils.roundWhole(this.height)+">"},ScreenClass.prototype.onResize=function(cb){return this.on("resize",cb)},ScreenClass.prototype.convertPointToLayer=function(point,layer){return Utils.convertPointFromContext(point,layer,!1,!0)},ScreenClass.prototype.convertPointToCanvas=function(point){var ctx;return ctx=Framer.Device.context,Utils.convertPointToContext(point,ctx,!0,!1)},ScreenClass.prototype.onEdgeSwipe=function(cb){return this.on(Events.EdgeSwipe,cb)},ScreenClass.prototype.onEdgeSwipeStart=function(cb){return this.on(Events.EdgeSwipeStart,cb)},ScreenClass.prototype.onEdgeSwipeEnd=function(cb){return this.on(Events.EdgeSwipeEnd,cb)},ScreenClass.prototype.onEdgeSwipeTop=function(cb){return this.on(Events.EdgeSwipeTop,cb)},ScreenClass.prototype.onEdgeSwipeTopStart=function(cb){return this.on(Events.EdgeSwipeTopStart,cb)},ScreenClass.prototype.onEdgeSwipeTopEnd=function(cb){return this.on(Events.EdgeSwipeTopEnd,cb)},ScreenClass.prototype.onEdgeSwipeRight=function(cb){return this.on(Events.EdgeSwipeRight,cb)},ScreenClass.prototype.onEdgeSwipeRightStart=function(cb){return this.on(Events.EdgeSwipeRightStart,cb)},ScreenClass.prototype.onEdgeSwipeRightEnd=function(cb){return this.on(Events.EdgeSwipeRightEnd,cb)},ScreenClass.prototype.onEdgeSwipeBottom=function(cb){return this.on(Events.EdgeSwipeBottom,cb)},ScreenClass.prototype.onEdgeSwipeBottomStart=function(cb){return this.on(Events.EdgeSwipeBottomStart,cb)},ScreenClass.prototype.onEdgeSwipeBottomEnd=function(cb){return this.on(Events.EdgeSwipeBottomEnd,cb)},ScreenClass.prototype.onEdgeSwipeLeft=function(cb){return this.on(Events.EdgeSwipeLeft,cb)},ScreenClass.prototype.onEdgeSwipeLeftStart=function(cb){return this.on(Events.EdgeSwipeLeftStart,cb)},ScreenClass.prototype.onEdgeSwipeLeftEnd=function(cb){return this.on(Events.EdgeSwipeLeftEnd,cb)},ScreenClass}(BaseClass),exports.Screen=new ScreenClass},function(module,exports,__webpack_require__){var CounterKey,DefaultPropertyOrder,DefinedPropertiesValuesKey,EventEmitter,ObjectDescriptors,ObjectDescriptorsChanged,Utils,_,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};_=__webpack_require__(1)._,Utils=__webpack_require__(4),EventEmitter=__webpack_require__(7).EventEmitter,CounterKey="_ObjectCounter",DefinedPropertiesValuesKey="_DefinedPropertiesValuesKey",ObjectDescriptors=[],ObjectDescriptorsChanged=!0,DefaultPropertyOrder=[],exports.BaseClass=function(superClass){function BaseClass(options){this.toInspect=bind(this.toInspect,this),this._getPropertyValue=bind(this._getPropertyValue,this),this._setPropertyValue=bind(this._setPropertyValue,this);var base;BaseClass.__super__.constructor.apply(this,arguments),this._context="undefined"!=typeof Framer&&null!==Framer?Framer.CurrentContext:void 0,this[DefinedPropertiesValuesKey]={},this._applyDefaults(options),null==(base=this.constructor)[CounterKey]&&(base[CounterKey]=0),this.constructor[CounterKey]+=1,this._id=this.constructor[CounterKey]}return extend(BaseClass,superClass),BaseClass.define=function(propertyName,descriptor){return this!==BaseClass&&this._addDescriptor(propertyName,descriptor),descriptor.readonly&&(descriptor.set=function(value){throw Error(this.constructor.name+"."+propertyName+" is readonly")}),Object.defineProperty(this.prototype,propertyName,descriptor)},BaseClass.undefine=function(propertyName){return _.isArray(propertyName)?propertyName.map(function(_this){return function(prop){return _this.undefine(prop)}}(this)):this.define(propertyName,this.simpleProperty(propertyName,void 0,{importable:!1,exportable:!1,enumerable:!1}))},BaseClass._addDescriptor=function(propertyName,descriptor){var depend,i,index,len,ref;if(descriptor.propertyName=propertyName,null==descriptor.enumerable&&(descriptor.enumerable=!0),null==descriptor.exportable&&(descriptor.exportable=!0),null==descriptor.importable&&(descriptor.importable=!0),null==descriptor.readonly&&(descriptor.readonly=null==descriptor.set),descriptor.importable=descriptor.importable&&!descriptor.readonly,descriptor.exportable=descriptor.exportable&&!descriptor.readonly,!_.startsWith(propertyName,"_")&&(ObjectDescriptors.push([this,propertyName,descriptor]),ObjectDescriptorsChanged=!0,descriptor.exportable||descriptor.importable)){if(descriptor.depends){for(ref=descriptor.depends,i=0,len=ref.length;i<len;i++)depend=ref[i],indexOf.call(DefaultPropertyOrder,depend)<0&&DefaultPropertyOrder.push(depend);index=DefaultPropertyOrder.indexOf(propertyName),index!==-1&&(DefaultPropertyOrder.splice(index,1),DefaultPropertyOrder.push(propertyName))}if(indexOf.call(DefaultPropertyOrder,propertyName)<0)return DefaultPropertyOrder.push(propertyName)}},BaseClass.simpleProperty=function(name,fallback,options){return null==options&&(options={}),_.extend(options,{default:fallback,get:function(){return this._getPropertyValue(name)},set:function(value){return this._setPropertyValue(name,value),null!=options&&"function"==typeof options.didSet?options.didSet(this,value):void 0}})},BaseClass.proxyProperty=function(keyPath,options){var descriptor,objectKey;return null==options&&(options={}),objectKey=keyPath.split(".")[0],descriptor=_.extend(options,{get:function(){if(_.isObject(this[objectKey]))return Utils.getValueForKeyPath(this,keyPath)},set:function(value){if(_.isObject(this[objectKey]))return Utils.setValueForKeyPath(this,keyPath,value),null!=options&&"function"==typeof options.didSet?options.didSet(this,value):void 0},proxy:!0})},BaseClass.prototype._setPropertyValue=function(k,v){return this[DefinedPropertiesValuesKey][k]=v},BaseClass.prototype._getPropertyValue=function(k){return Utils.valueOrDefault(this[DefinedPropertiesValuesKey][k],this._getPropertyDefaultValue(k))},BaseClass.prototype._getPropertyDefaultValue=function(k){var ref;return null!=(ref=this._propertyList()[k])?ref.default:void 0},BaseClass.prototype._propertyList=function(){return this._propertyListCache&&!ObjectDescriptorsChanged||(this._propertyListCache=this.__propertyList(),ObjectDescriptorsChanged=!1),this._propertyListCache},BaseClass.prototype.__propertyList=function(){var Class,descriptor,i,k,len,name,result;for(result={},i=0,len=ObjectDescriptors.length;i<len;i++)k=ObjectDescriptors[i],Class=k[0],name=k[1],descriptor=k[2],this instanceof Class&&(descriptor.exportable||descriptor.importable?result[name]=descriptor:delete result[name]);return result},BaseClass.prototype.keys=function(){return _.keys(this.props)},BaseClass.define("props",{importable:!1,exportable:!1,get:function(){var descriptor,key,keys,propertyList;keys=[],propertyList=this._propertyList();for(key in propertyList)descriptor=propertyList[key],descriptor.exportable&&keys.push(key);return _.pick(this,keys)},set:function(value){var k,propertyList,ref,results,v;propertyList=this._propertyList(),results=[];for(k in value)v=value[k],(null!=(ref=propertyList[k])?ref.importable:void 0)?results.push(this[k]=v):results.push(void 0);return results}}),BaseClass.define("id",{ get:function(){return this._id}}),BaseClass.prototype.toInspect=function(){return"<"+this.constructor.name+" id:"+(this.id||null)+">"},BaseClass.prototype.onChange=function(name,cb){return this.on("change:"+name,cb)},BaseClass.prototype._applyDefaults=function(options,proxy){var descriptor,i,k,len,propertyList,results;if(null==proxy&&(proxy=!1),options){for(propertyList=this._propertyList(),results=[],i=0,len=DefaultPropertyOrder.length;i<len;i++)if(k=DefaultPropertyOrder[i],descriptor=propertyList[k],null!=descriptor){if(proxy&&descriptor.proxy!==!0)continue;results.push(this._applyDefault(descriptor,k,options[k]))}else results.push(void 0);return results}},BaseClass.prototype._applyProxyDefaults=function(options){return this._applyDefaults(options,!0)},BaseClass.prototype._applyDefault=function(descriptor,key,optionValue){var value;if(!descriptor.readonly&&(descriptor.importable&&(value=optionValue),value=Utils.valueOrDefault(optionValue,this._getPropertyDefaultValue(key)),null!==value&&void 0!==value))return this[key]=value},BaseClass}(EventEmitter)},function(module,exports,__webpack_require__){var EventEmitter3,EventKey,_,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;_=__webpack_require__(1)._,EventEmitter3=__webpack_require__(8),EventKey="_events",exports.EventEmitter=function(superClass){function EventEmitter(){return EventEmitter.__super__.constructor.apply(this,arguments)}return extend(EventEmitter,superClass),EventEmitter.prototype.listenerEvents=function(){return _.keys(this[EventKey])},EventEmitter.prototype.removeAllListeners=function(eventName){var eventNames,i,len,listener,results;for(eventNames=eventName?[eventName]:this.listenerEvents(),results=[],i=0,len=eventNames.length;i<len;i++)eventName=eventNames[i],results.push(function(){var j,len1,ref,results1;for(ref=this.listeners(eventName),results1=[],j=0,len1=ref.length;j<len1;j++)listener=ref[j],results1.push(this.removeListener(eventName,listener));return results1}.call(this));return results},EventEmitter}(EventEmitter3)},function(module,exports,__webpack_require__){"use strict";function EE(fn,context,once){this.fn=fn,this.context=context,this.once=once||!1}function EventEmitter(){}var has=Object.prototype.hasOwnProperty,prefix="function"!=typeof Object.create&&"~";EventEmitter.prototype._events=void 0,EventEmitter.prototype.eventNames=function(){var name,events=this._events,names=[];if(!events)return names;for(name in events)has.call(events,name)&&names.push(prefix?name.slice(1):name);return Object.getOwnPropertySymbols?names.concat(Object.getOwnPropertySymbols(events)):names},EventEmitter.prototype.listeners=function(event,exists){var evt=prefix?prefix+event:event,available=this._events&&this._events[evt];if(exists)return!!available;if(!available)return[];if(available.fn)return[available.fn];for(var i=0,l=available.length,ee=new Array(l);i<l;i++)ee[i]=available[i].fn;return ee},EventEmitter.prototype.emit=function(event,a1,a2,a3,a4,a5){var evt=prefix?prefix+event:event;if(!this._events||!this._events[evt])return!1;var args,i,listeners=this._events[evt],len=arguments.length;if("function"==typeof listeners.fn){switch(listeners.once&&this.removeListener(event,listeners.fn,void 0,!0),len){case 1:return listeners.fn.call(listeners.context),!0;case 2:return listeners.fn.call(listeners.context,a1),!0;case 3:return listeners.fn.call(listeners.context,a1,a2),!0;case 4:return listeners.fn.call(listeners.context,a1,a2,a3),!0;case 5:return listeners.fn.call(listeners.context,a1,a2,a3,a4),!0;case 6:return listeners.fn.call(listeners.context,a1,a2,a3,a4,a5),!0}for(i=1,args=new Array(len-1);i<len;i++)args[i-1]=arguments[i];listeners.fn.apply(listeners.context,args)}else{var j,length=listeners.length;for(i=0;i<length;i++)switch(listeners[i].once&&this.removeListener(event,listeners[i].fn,void 0,!0),len){case 1:listeners[i].fn.call(listeners[i].context);break;case 2:listeners[i].fn.call(listeners[i].context,a1);break;case 3:listeners[i].fn.call(listeners[i].context,a1,a2);break;default:if(!args)for(j=1,args=new Array(len-1);j<len;j++)args[j-1]=arguments[j];listeners[i].fn.apply(listeners[i].context,args)}}return!0},EventEmitter.prototype.on=function(event,fn,context){var listener=new EE(fn,context||this),evt=prefix?prefix+event:event;return this._events||(this._events=prefix?{}:Object.create(null)),this._events[evt]?this._events[evt].fn?this._events[evt]=[this._events[evt],listener]:this._events[evt].push(listener):this._events[evt]=listener,this},EventEmitter.prototype.once=function(event,fn,context){var listener=new EE(fn,context||this,!0),evt=prefix?prefix+event:event;return this._events||(this._events=prefix?{}:Object.create(null)),this._events[evt]?this._events[evt].fn?this._events[evt]=[this._events[evt],listener]:this._events[evt].push(listener):this._events[evt]=listener,this},EventEmitter.prototype.removeListener=function(event,fn,context,once){var evt=prefix?prefix+event:event;if(!this._events||!this._events[evt])return this;var listeners=this._events[evt],events=[];if(fn)if(listeners.fn)(listeners.fn!==fn||once&&!listeners.once||context&&listeners.context!==context)&&events.push(listeners);else for(var i=0,length=listeners.length;i<length;i++)(listeners[i].fn!==fn||once&&!listeners[i].once||context&&listeners[i].context!==context)&&events.push(listeners[i]);return events.length?this._events[evt]=1===events.length?events[0]:events:delete this._events[evt],this},EventEmitter.prototype.removeAllListeners=function(event){return this._events?(event?delete this._events[prefix?prefix+event:event]:this._events=prefix?{}:Object.create(null),this):this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.addListener=EventEmitter.prototype.on,EventEmitter.prototype.setMaxListeners=function(){return this},EventEmitter.prefixed=prefix,module.exports=EventEmitter},function(module,exports){WebKitCSSMatrix.prototype.skew=function(skew){var m,rad,value;return skew?(rad=skew*Math.PI/180,value=Math.tan(rad),m=new WebKitCSSMatrix,m.m12=value,m.m21=value,this.multiply(m)):this},WebKitCSSMatrix.prototype.point=function(point){var ref,w,x,y,z;return null==point&&(point={}),ref=_.defaults(point,{x:0,y:0,z:0}),x=ref.x,y=ref.y,z=ref.z,w=this.m14*x+this.m24*y+this.m34*z+this.m44,w=w||1,point={x:(this.m11*x+this.m21*y+this.m31*z+this.m41)/w,y:(this.m12*x+this.m22*y+this.m32*z+this.m42)/w,z:(this.m13*x+this.m23*y+this.m33*z+this.m43)/w}},exports.Matrix=WebKitCSSMatrix},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(){function aa(a,b,c){return a.call.apply(a.bind,arguments)}function ba(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(c,d),a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function p(a,b,c){return p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba,p.apply(null,arguments)}function ca(a,b){this.a=a,this.o=b||a,this.c=this.o.document}function t(a,b,c,d){if(b=a.c.createElement(b),c)for(var e in c)c.hasOwnProperty(e)&&("style"==e?b.style.cssText=c[e]:b.setAttribute(e,c[e]));return d&&b.appendChild(a.c.createTextNode(d)),b}function u(a,b,c){a=a.c.getElementsByTagName(b)[0],a||(a=document.documentElement),a.insertBefore(c,a.lastChild)}function v(a){a.parentNode&&a.parentNode.removeChild(a)}function w(a,b,c){b=b||[],c=c||[];for(var d=a.className.split(/\s+/),e=0;e<b.length;e+=1){for(var f=!1,g=0;g<d.length;g+=1)if(b[e]===d[g]){f=!0;break}f||d.push(b[e])}for(b=[],e=0;e<d.length;e+=1){for(f=!1,g=0;g<c.length;g+=1)if(d[e]===c[g]){f=!0;break}f||b.push(d[e])}a.className=b.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function y(a,b){for(var c=a.className.split(/\s+/),d=0,e=c.length;d<e;d++)if(c[d]==b)return!0;return!1}function ea(a){return a.o.location.hostname||a.a.location.hostname}function z(a,b,c){function d(){m&&e&&f&&(m(g),m=null)}b=t(a,"link",{rel:"stylesheet",href:b,media:"all"});var e=!1,f=!0,g=null,m=c||null;da?(b.onload=function(){e=!0,d()},b.onerror=function(){e=!0,g=Error("Stylesheet failed to load"),d()}):setTimeout(function(){e=!0,d()},0),u(a,"head",b)}function A(a,b,c,d){var e=a.c.getElementsByTagName("head")[0];if(e){var f=t(a,"script",{src:b}),g=!1;return f.onload=f.onreadystatechange=function(){g||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(g=!0,c&&c(null),f.onload=f.onreadystatechange=null,"HEAD"==f.parentNode.tagName&&e.removeChild(f))},e.appendChild(f),setTimeout(function(){g||(g=!0,c&&c(Error("Script load timeout")))},d||5e3),f}return null}function B(){this.a=0,this.c=null}function C(a){return a.a++,function(){a.a--,D(a)}}function E(a,b){a.c=b,D(a)}function D(a){0==a.a&&a.c&&(a.c(),a.c=null)}function F(a){this.a=a||"-"}function G(a,b){this.c=a,this.f=4,this.a="n";var c=(b||"n4").match(/^([nio])([1-9])$/i);c&&(this.a=c[1],this.f=parseInt(c[2],10))}function fa(a){return H(a)+" "+(a.f+"00")+" 300px "+I(a.c)}function I(a){var b=[];a=a.split(/,\s*/);for(var c=0;c<a.length;c++){var d=a[c].replace(/['"]/g,"");-1!=d.indexOf(" ")||/^\d/.test(d)?b.push("'"+d+"'"):b.push(d)}return b.join(",")}function J(a){return a.a+a.f}function H(a){var b="normal";return"o"===a.a?b="oblique":"i"===a.a&&(b="italic"),b}function ga(a){var b=4,c="n",d=null;return a&&((d=a.match(/(normal|oblique|italic)/i))&&d[1]&&(c=d[1].substr(0,1).toLowerCase()),(d=a.match(/([1-9]00|normal|bold)/i))&&d[1]&&(/bold/i.test(d[1])?b=7:/[1-9]00/.test(d[1])&&(b=parseInt(d[1].substr(0,1),10)))),c+b}function ha(a,b){this.c=a,this.f=a.o.document.documentElement,this.h=b,this.a=new F("-"),this.j=!1!==b.events,this.g=!1!==b.classes}function ia(a){a.g&&w(a.f,[a.a.c("wf","loading")]),K(a,"loading")}function L(a){if(a.g){var b=y(a.f,a.a.c("wf","active")),c=[],d=[a.a.c("wf","loading")];b||c.push(a.a.c("wf","inactive")),w(a.f,c,d)}K(a,"inactive")}function K(a,b,c){a.j&&a.h[b]&&(c?a.h[b](c.c,J(c)):a.h[b]())}function ja(){this.c={}}function ka(a,b,c){var e,d=[];for(e in b)if(b.hasOwnProperty(e)){var f=a.c[e];f&&d.push(f(b[e],c))}return d}function M(a,b){this.c=a,this.f=b,this.a=t(this.c,"span",{"aria-hidden":"true"},this.f)}function N(a){u(a.c,"body",a.a)}function O(a){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+I(a.c)+";"+("font-style:"+H(a)+";font-weight:"+(a.f+"00")+";")}function P(a,b,c,d,e,f){this.g=a,this.j=b,this.a=d,this.c=c,this.f=e||3e3,this.h=f||void 0}function Q(a,b,c,d,e,f,g){this.v=a,this.B=b,this.c=c,this.a=d,this.s=g||"BESbswy",this.f={},this.w=e||3e3,this.u=f||null,this.m=this.j=this.h=this.g=null,this.g=new M(this.c,this.s),this.h=new M(this.c,this.s),this.j=new M(this.c,this.s),this.m=new M(this.c,this.s),a=new G(this.a.c+",serif",J(this.a)),a=O(a),this.g.a.style.cssText=a,a=new G(this.a.c+",sans-serif",J(this.a)),a=O(a),this.h.a.style.cssText=a,a=new G("serif",J(this.a)),a=O(a),this.j.a.style.cssText=a,a=new G("sans-serif",J(this.a)),a=O(a),this.m.a.style.cssText=a,N(this.g),N(this.h),N(this.j),N(this.m)}function T(){if(null===S){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);S=!!a&&(536>parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return S}function la(a,b,c){for(var d in R)if(R.hasOwnProperty(d)&&b===a.f[R[d]]&&c===a.f[R[d]])return!0;return!1}function U(a){var d,b=a.g.a.offsetWidth,c=a.h.a.offsetWidth;(d=b===a.f.serif&&c===a.f["sans-serif"])||(d=T()&&la(a,b,c)),d?q()-a.A>=a.w?T()&&la(a,b,c)&&(null===a.u||a.u.hasOwnProperty(a.a.c))?V(a,a.v):V(a,a.B):ma(a):V(a,a.v)}function ma(a){setTimeout(p(function(){U(this)},a),50)}function V(a,b){setTimeout(p(function(){v(this.g.a),v(this.h.a),v(this.j.a),v(this.m.a),b(this.a)},a),0)}function W(a,b,c){this.c=a,this.a=b,this.f=0,this.m=this.j=!1,this.s=c}function na(a){0==--a.f&&a.j&&(a.m?(a=a.a,a.g&&w(a.f,[a.a.c("wf","active")],[a.a.c("wf","loading"),a.a.c("wf","inactive")]),K(a,"active")):L(a.a))}function oa(a){this.j=a,this.a=new ja,this.h=0,this.f=this.g=!0}function qa(a,b,c,d,e){var f=0==--a.h;(a.f||a.g)&&setTimeout(function(){var a=e||null,m=d||null||{};if(0===c.length&&f)L(b.a);else{b.f+=c.length,f&&(b.j=f);var h,l=[];for(h=0;h<c.length;h++){var k=c[h],n=m[k.c],r=b.a,x=k;if(r.g&&w(r.f,[r.a.c("wf",x.c,J(x).toString(),"loading")]),K(r,"fontloading",x),r=null,null===X)if(window.FontFace){var x=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),xa=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);X=x?42<parseInt(x[1],10):!xa}else X=!1;r=X?new P(p(b.g,b),p(b.h,b),b.c,k,b.s,n):new Q(p(b.g,b),p(b.h,b),b.c,k,b.s,a,n),l.push(r)}for(h=0;h<l.length;h++)l[h].start()}},0)}function pa(a,b,c){var d=[],e=c.timeout;ia(b);var d=ka(a.a,c,a.c),f=new W(a.c,b,e);for(a.h=d.length,b=0,c=d.length;b<c;b++)d[b].load(function(b,d,c){qa(a,f,b,d,c)})}function ra(a,b){this.c=a,this.a=b}function sa(a,b){this.c=a,this.a=b}function ta(a,b){a?this.c=a:this.c=ua,this.a=[],this.f=[],this.g=b||""}function va(a,b){for(var c=b.length,d=0;d<c;d++){var e=b[d].split(":");3==e.length&&a.f.push(e.pop());var f="";2==e.length&&""!=e[1]&&(f=":"),a.a.push(e.join(f))}}function wa(a){if(0==a.a.length)throw Error("No fonts to load!");if(-1!=a.c.indexOf("kit="))return a.c;for(var b=a.a.length,c=[],d=0;d<b;d++)c.push(a.a[d].replace(/ /g,"+"));return b=a.c+"?family="+c.join("%7C"),0<a.f.length&&(b+="&subset="+a.f.join(",")),0<a.g.length&&(b+="&text="+encodeURIComponent(a.g)),b}function ya(a){this.f=a,this.a=[],this.c={}}function Da(a){for(var b=a.f.length,c=0;c<b;c++){var d=a.f[c].split(":"),e=d[0].replace(/\+/g," "),f=["n4"];if(2<=d.length){var g,m=d[1];if(g=[],m)for(var m=m.split(","),h=m.length,l=0;l<h;l++){var k;if(k=m[l],k.match(/^[\w-]+$/)){var n=Ca.exec(k.toLowerCase());if(null==n)k="";else{if(k=n[2],k=null==k||""==k?"n":Ba[k],n=n[1],null==n||""==n)n="4";else var r=Aa[n],n=r?r:isNaN(n)?"4":n.substr(0,1);k=[k,n].join("")}}else k="";k&&g.push(k)}0<g.length&&(f=g),3==d.length&&(d=d[2],g=[],d=d?d.split(","):g,0<d.length&&(d=za[d[0]])&&(a.c[e]=d))}for(a.c[e]||(d=za[e])&&(a.c[e]=d),d=0;d<f.length;d+=1)a.a.push(new G(e,f[d]))}}function Ea(a,b){this.c=a,this.a=b}function Ga(a,b){this.c=a,this.a=b}function Ha(a,b){this.c=a,this.f=b,this.a=[]}var q=Date.now||function(){return+new Date},da=!!window.FontFace;F.prototype.c=function(a){for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c].replace(/[\W_]+/g,"").toLowerCase());return b.join(this.a)},P.prototype.start=function(){var a=this.c.o.document,b=this,c=q(),d=new Promise(function(d,e){function f(){q()-c>=b.f?e():a.fonts.load(fa(b.a),b.h).then(function(a){1<=a.length?d():setTimeout(f,25)},function(){e()})}f()}),e=null,f=new Promise(function(a,d){e=setTimeout(d,b.f)});Promise.race([f,d]).then(function(){e&&(clearTimeout(e),e=null),b.g(b.a)},function(){b.j(b.a)})};var R={D:"serif",C:"sans-serif"},S=null;Q.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=q(),U(this)};var X=null;W.prototype.g=function(a){var b=this.a;b.g&&w(b.f,[b.a.c("wf",a.c,J(a).toString(),"active")],[b.a.c("wf",a.c,J(a).toString(),"loading"),b.a.c("wf",a.c,J(a).toString(),"inactive")]),K(b,"fontactive",a),this.m=!0,na(this)},W.prototype.h=function(a){var b=this.a;if(b.g){var c=y(b.f,b.a.c("wf",a.c,J(a).toString(),"active")),d=[],e=[b.a.c("wf",a.c,J(a).toString(),"loading")];c||d.push(b.a.c("wf",a.c,J(a).toString(),"inactive")),w(b.f,d,e)}K(b,"fontinactive",a),na(this)},oa.prototype.load=function(a){this.c=new ca(this.j,a.context||this.j),this.g=!1!==a.events,this.f=!1!==a.classes,pa(this,new ha(this.c,a),a)},ra.prototype.load=function(a){function b(){if(f["__mti_fntLst"+d]){var h,c=f["__mti_fntLst"+d](),e=[];if(c)for(var l=0;l<c.length;l++){var k=c[l].fontfamily;void 0!=c[l].fontStyle&&void 0!=c[l].fontWeight?(h=c[l].fontStyle+c[l].fontWeight,e.push(new G(k,h))):e.push(new G(k))}a(e)}else setTimeout(function(){b()},50)}var c=this,d=c.a.projectId,e=c.a.version;if(d){var f=c.c.o;A(this.c,(c.a.api||"https://fast.fonts.net/jsapi")+"/"+d+".js"+(e?"?v="+e:""),function(e){e?a([]):(f["__MonotypeConfiguration__"+d]=function(){return c.a},b())}).id="__MonotypeAPIScript__"+d}else a([])},sa.prototype.load=function(a){var b,c,d=this.a.urls||[],e=this.a.families||[],f=this.a.testStrings||{},g=new B;for(b=0,c=d.length;b<c;b++)z(this.c,d[b],C(g));var m=[];for(b=0,c=e.length;b<c;b++)if(d=e[b].split(":"),d[1])for(var h=d[1].split(","),l=0;l<h.length;l+=1)m.push(new G(d[0],h[l]));else m.push(new G(d[0]));E(g,function(){a(m,f)})};var ua="https://fonts.googleapis.com/css",za={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Aa={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Ba={i:"i",italic:"i",n:"n",normal:"n"},Ca=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/,Fa={Arimo:!0,Cousine:!0,Tinos:!0};Ea.prototype.load=function(a){var b=new B,c=this.c,d=new ta(this.a.api,this.a.text),e=this.a.families;va(d,e);var f=new ya(e);Da(f),z(c,wa(d),C(b)),E(b,function(){a(f.a,f.c,Fa)})},Ga.prototype.load=function(a){var b=this.a.id,c=this.c.o;b?A(this.c,(this.a.api||"https://use.typekit.net")+"/"+b+".js",function(b){if(b)a([]);else if(c.Typekit&&c.Typekit.config&&c.Typekit.config.fn){b=c.Typekit.config.fn;for(var e=[],f=0;f<b.length;f+=2)for(var g=b[f],m=b[f+1],h=0;h<m.length;h++)e.push(new G(g,m[h]));try{c.Typekit.load({events:!1,classes:!1,async:!0})}catch(l){}a(e)}},2e3):a([])},Ha.prototype.load=function(a){var b=this.f.id,c=this.c.o,d=this;b?(c.__webfontfontdeckmodule__||(c.__webfontfontdeckmodule__={}),c.__webfontfontdeckmodule__[b]=function(b,c){for(var g=0,m=c.fonts.length;g<m;++g){var h=c.fonts[g];d.a.push(new G(h.name,ga("font-weight:"+h.weight+";font-style:"+h.style)))}a(d.a)},A(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+ea(this.c)+"/"+b+".js",function(b){b&&a([])})):a([])};var Y=new oa(window);Y.a.c.custom=function(a,b){return new sa(b,a)},Y.a.c.fontdeck=function(a,b){return new Ha(b,a)},Y.a.c.monotype=function(a,b){return new ra(b,a)},Y.a.c.typekit=function(a,b){return new Ga(b,a)},Y.a.c.google=function(a,b){return new Ea(b,a)};var Z={load:p(Y.load,Y)};__WEBPACK_AMD_DEFINE_RESULT__=function(){return Z}.call(exports,__webpack_require__,exports,module),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}()},function(module,exports,__webpack_require__){var BaseClass,ColorModel,ColorType,_,bound01,convertToPercentage,correctAlpha,cssNames,hslToRgb,inputData,isNumeric,isOnePointZero,isPercentage,libhusl,matchers,numberFromString,pad2,percentToFraction,rgbToHex,rgbToHsl,rgbToRgb,rgbaFromHusl,stringToObject,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,slice=[].slice;_=__webpack_require__(1)._,BaseClass=__webpack_require__(6).BaseClass,libhusl=__webpack_require__(12),ColorType={RGB:"rgb",HSL:"hsl",HEX:"hex",NAME:"name"},exports.Color=function(superClass){function Color(color1,r,g,b){var color,input;return this.color=color1,this.toInspect=bind(this.toInspect,this),""===this.color&&(this.color=null),color=this.color,Color.isColorObject(color)?color:(input=inputData(color,r,g,b),this._type=input.type,this._r=input.r,this._g=input.g,this._b=input.b,this._a=input.a,this._h=input.h,this._s=input.s,this._l=input.l,void(this._roundA=Math.round(100*this._a)/100))}return extend(Color,superClass),Color.define("r",{get:function(){return this._r}}),Color.define("g",{get:function(){return this._g}}),Color.define("b",{get:function(){return this._b}}),Color.define("a",{get:function(){return this._a}}),Color.define("h",{get:function(){return this._h}}),Color.define("s",{get:function(){return this._s}}),Color.define("l",{get:function(){return this._l}}),Color.prototype.toHex=function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char)},Color.prototype.toHexString=function(allow3Char){return"#"+this.toHex(allow3Char)},Color.prototype.toRgb=function(){return void 0===this._rgb&&(this._rgb={r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}),_.clone(this._rgb)},Color.prototype.toRgbString=function(){return 1===this._a?"rgb("+Utils.round(this._r,0)+", "+Utils.round(this._g,0)+", "+Utils.round(this._b,0)+")":"rgba("+Utils.round(this._r,0)+", "+Utils.round(this._g,0)+", "+Utils.round(this._b,0)+", "+this._roundA+")"},Color.prototype.toHsl=function(){return void 0===this._hsl&&(this._hsl={h:this.h,s:this.s,l:this.l,a:this.a}),_.clone(this._hsl)},Color.prototype.toHusl=function(){var c,husl;return void 0===this._husl&&(c=libhusl._conv,husl=c.lch.husl(c.luv.lch(c.xyz.luv(c.rgb.xyz([this.r/255,this.g/255,this.b/255])))),this._husl={h:husl[0],s:husl[1],l:husl[2]}),_.clone(this._husl)},Color.prototype.toHslString=function(){var h,hsl,l,s;return void 0===this._hslString&&(hsl=this.toHsl(),h=Math.round(hsl.h),s=Math.round(100*hsl.s),l=Math.round(100*hsl.l),1===this._a?this._hslString="hsl("+h+", "+s+"%, "+l+"%)":this._hslString="hsla("+h+", "+s+"%, "+l+"%, "+this._roundA+")"),this._hslString},Color.prototype.toName=function(){var hex,i,key,len,ref,value;if(0===this._a)return"transparent";if(this._a<1)return!1;for(hex=rgbToHex(this._r,this._g,this._b,!0),ref=_.keys(cssNames),i=0,len=ref.length;i<len;i++)if(key=ref[i],value=cssNames[key],value===hex)return key;return!1},Color.prototype.lighten=function(amount){var hsl;return null==amount&&(amount=10),hsl=this.toHsl(),hsl.l+=amount/100,hsl.l=Math.min(1,Math.max(0,hsl.l)),new Color(hsl)},Color.prototype.brighten=function(amount){var rgb;return null==amount&&(amount=10),rgb=this.toRgb(),rgb.r=Math.max(0,Math.min(255,rgb.r-Math.round(255*-(amount/100)))),rgb.g=Math.max(0,Math.min(255,rgb.g-Math.round(255*-(amount/100)))),rgb.b=Math.max(0,Math.min(255,rgb.b-Math.round(255*-(amount/100)))),new Color(rgb)},Color.prototype.darken=function(amount){var hsl;return null==amount&&(amount=10),hsl=this.toHsl(),hsl.l-=amount/100,hsl.l=Math.min(1,Math.max(0,hsl.l)),new Color(hsl)},Color.prototype.desaturate=function(amount){var hsl;return null==amount&&(amount=10),hsl=this.toHsl(),hsl.s-=amount/100,hsl.s=Math.min(1,Math.max(0,hsl.s)),new Color(hsl)},Color.prototype.saturate=function(amount){var hsl;return null==amount&&(amount=10),hsl=this.toHsl(),hsl.s+=amount/100,hsl.s=Math.min(1,Math.max(0,hsl.s)),new Color(hsl)},Color.prototype.grayscale=function(){var hsl;return hsl=this.toHsl(),new Color(hsl).desaturate(100)},Color.prototype.toString=function(){return this.toRgbString()},Color.prototype.alpha=function(alpha){var result;return null==alpha&&(alpha=1),result=new Color({r:this.r,g:this.g,b:this.b,a:alpha})},Color.prototype.multiplyAlpha=function(alpha){return this.alpha(this.a*alpha)},Color.prototype.transparent=function(){return this.alpha(0)},Color.prototype.mix=function(colorB,fraction,limit,model){return null==limit&&(limit=!1),Color.mix(this,colorB,fraction,limit,model)},Color.prototype.copy=function(){return new Color(this)},Color.prototype.isEqual=function(colorB){return Color.equal(this,colorB)},Color.prototype.toInspect=function(){return this._type===ColorType.HSL?"<"+this.constructor.name+" h:"+this.h+" s:"+this.s+" l:"+this.l+" a:"+this.a+">":this._type===ColorType.HEX||this._type===ColorType.NAME?"<"+this.constructor.name+' "'+this.color+'">':"<"+this.constructor.name+" r:"+this.r+" g:"+this.g+" b:"+this.b+" a:"+this.a+">"},Color.mix=function(colorA,colorB,fraction,limit,model){var deltaH,fromH,hslA,hslB,result,toH,tween;return null==fraction&&(fraction=.5),null==limit&&(limit=!1),result=null,"string"==typeof colorA&&this.isColorString(colorA)&&(colorA=new Color(colorA)),"string"==typeof colorB&&this.isColorString(colorB)&&(colorB=new Color(colorB)),!(colorA instanceof Color)&&colorB instanceof Color?colorA=colorB.transparent():colorA instanceof Color&&0===colorA._a&&colorB instanceof Color&&0!==colorB._a?colorA=colorB.transparent():!(colorB instanceof Color)&&colorA instanceof Color?colorB=colorA.transparent():colorB instanceof Color&&0===colorB._a&&colorA instanceof Color&&0!==colorA._a&&(colorB=colorA.transparent()),colorB instanceof Color&&(ColorModel.isRGB(model)?result=new Color({r:Utils.modulate(fraction,[0,1],[colorA._r,colorB._r],limit),g:Utils.modulate(fraction,[0,1],[colorA._g,colorB._g],limit),b:Utils.modulate(fraction,[0,1],[colorA._b,colorB._b],limit),a:Utils.modulate(fraction,[0,1],[colorA._a,colorB._a],limit)}):(ColorModel.isHSL(model)?(hslA=colorA.toHsl(),hslB=colorB.toHsl()):(hslA=colorA.toHusl(),hslB=colorB.toHusl()),0===hslA.s?hslA.h=hslB.h:0===hslB.s&&(hslB.h=hslA.h),fromH=hslA.h,toH=hslB.h,deltaH=toH-fromH,deltaH>180?deltaH=toH-360-fromH:deltaH<-180&&(deltaH=toH+360-fromH),tween={h:Utils.modulate(fraction,[0,1],[fromH,fromH+deltaH],limit),s:Utils.modulate(fraction,[0,1],[hslA.s,hslB.s],limit),l:Utils.modulate(fraction,[0,1],[hslA.l,hslB.l],limit),a:Utils.modulate(fraction,[0,1],[colorA.a,colorB.a],limit)},result=new Color(ColorModel.isHSL(model)?tween:rgbaFromHusl(tween)))),result},Color.random=function(alpha){var c;return null==alpha&&(alpha=1),c=function(){return parseInt(255*Math.random())},new Color("rgba("+c()+", "+c()+", "+c()+", "+alpha+")")},Color.grey=function(g,alpha){return null==g&&(g=.5),null==alpha&&(alpha=1),g=parseInt(255*g),new Color("rgba("+g+", "+g+", "+g+", "+alpha+")")},Color.gray=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this.grey.apply(this,args)},Color.toColor=function(color){return new Color(color)},Color.validColorValue=function(color){return color instanceof Color||null===color},Color.isColor=function(color){return _.isString(color)?Color.isColorString(color):Color.isColorObject(color)},Color.isColorObject=function(color){return color instanceof Color},Color.isColorString=function(colorString){return!!_.isString(colorString)&&stringToObject(colorString)!==!1},Color.isValidColorProperty=function(name,value){var isColorKey;return isColorKey=_.endsWith(name.toLowerCase(),"color")||"fill"===name||"stroke"===name,!!(isColorKey&&_.isString(value)&&Color.isColorString(value))},Color.equal=function(colorA,colorB){var tolerance;return!(!this.validColorValue(colorA)&&!Color.isColorString(colorA))&&(!(!this.validColorValue(colorB)&&!Color.isColorString(colorB))&&(colorA=new Color(colorA),colorB=new Color(colorB),tolerance=.01,!(Math.abs(colorA.r-colorB.r)>=tolerance)&&(!(Math.abs(colorA.g-colorB.g)>=tolerance)&&(!(Math.abs(colorA.b-colorB.b)>=tolerance)&&!(Math.abs(colorA.a-colorB.a)>=tolerance)))))},Color.rgbToHsl=function(a,b,c){return rgbToHsl(a,b,c)},Color}(BaseClass),ColorModel={RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla"},ColorModel.isRGB=function(colorModel){var ref;return!!_.isString(colorModel)&&((ref=colorModel.toLowerCase())===ColorModel.RGB||ref===ColorModel.RGBA)},ColorModel.isHSL=function(colorModel){var ref;return!!_.isString(colorModel)&&((ref=colorModel.toLowerCase())===ColorModel.HSL||ref===ColorModel.HSLA)},rgbaFromHusl=function(husl){var c,rgb,rgba;return c=libhusl._conv,rgb=c.xyz.rgb(c.luv.xyz(c.lch.luv(c.husl.lch([husl.h,husl.s,husl.l])))),rgba={r:255*rgb[0],g:255*rgb[1],b:255*rgb[2],a:husl.a}},inputData=function(color,g,b,alpha){var a,h,hsl,l,ok,rgb,s,type;return rgb={r:0,g:0,b:0},hsl={h:0,s:0,l:0},a=1,ok=!1,type=ColorType.RGB,null===color?a=0:_.isNumber(color)?(rgb.r=color,_.isNumber(g)&&(rgb.g=g),_.isNumber(b)&&(rgb.b=b),_.isNumber(alpha)&&(a=alpha)):("string"==typeof color&&(color=stringToObject(color),color||(color={r:0,g:0,b:0,a:0}),color.hasOwnProperty("type")&&(type=color.type)),"object"==typeof color&&(color.hasOwnProperty("r")||color.hasOwnProperty("g")||color.hasOwnProperty("b")?rgb=rgbToRgb(color.r,color.g,color.b):(color.hasOwnProperty("h")||color.hasOwnProperty("s")||color.hasOwnProperty("l"))&&(h=isNumeric(color.h)?parseFloat(color.h):0,h=(h+360)%360,s=isNumeric(color.s)?color.s:1,_.isString(color.s)&&(s=numberFromString(color.s)),l=isNumeric(color.l)?color.l:.5,_.isString(color.l)&&(l=numberFromString(color.l)),rgb=hslToRgb(h,s,l),type=ColorType.HSL,hsl={h:h,s:s,l:l}),color.hasOwnProperty("a")&&(a=color.a))),a=correctAlpha(a),type!==ColorType.HSL&&(hsl=rgbToHsl(rgb.r,rgb.g,rgb.b)),{type:type,r:Math.min(255,Math.max(rgb.r,0)),g:Math.min(255,Math.max(rgb.g,0)),b:Math.min(255,Math.max(rgb.b,0)),h:Utils.clamp(hsl.h,0,360),s:Utils.clamp(hsl.s,0,1),l:Utils.clamp(hsl.l,0,1),a:a}},numberFromString=function(string){return string.match(/\d+/)[0]},rgbToRgb=function(r,g,b){return{r:isNumeric(r)?255*bound01(r,255):0,g:isNumeric(g)?255*bound01(g,255):0,b:isNumeric(b)?255*bound01(b,255):0}},rgbToHex=function(r,g,b,allow3Char){var hex;return hex=[pad2(Math.round(r).toString(16)),pad2(Math.round(g).toString(16)),pad2(Math.round(b).toString(16))],allow3Char&&hex[0].charAt(0)===hex[0].charAt(1)&&hex[1].charAt(0)===hex[1].charAt(1)&&hex[2].charAt(0)===hex[2].charAt(1)?hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0):hex.join("")},rgbToHsl=function(r,g,b){var d,h,l,max,min,s;if(r=bound01(r,255),g=bound01(g,255),b=bound01(b,255),max=Math.max(r,g,b),min=Math.min(r,g,b),h=s=l=(max+min)/2,max===min)h=s=0;else{switch(d=max-min,s=l>.5?d/(2-max-min):d/(max+min),max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4}h/=6}return{h:360*h,s:s,l:l}},hslToRgb=function(h,s,l){var b,g,hue2rgb,p,q,r;return r=void 0,g=void 0,b=void 0,h=bound01(h,360),s=bound01(100*s,100),l=bound01(100*l,100),hue2rgb=function(p,q,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?p+6*(q-p)*t:t<.5?q:t<2/3?p+(q-p)*(2/3-t)*6:p},0===s?r=g=b=l:(q=l<.5?l*(1+s):l+s-l*s,p=2*l-q,r=hue2rgb(p,q,h+1/3),g=hue2rgb(p,q,h),b=hue2rgb(p,q,h-1/3)),{r:255*r,g:255*g,b:255*b}},convertToPercentage=function(n){return n<=1&&(n=100*n+"%"),n},correctAlpha=function(a){return a=parseFloat(a),a<0&&(a=0),(isNaN(a)||a>1)&&(a=1),a},bound01=function(n,max){var processPercent;return isOnePointZero(n)&&(n="100%"),processPercent=isPercentage(n),n=Math.min(max,Math.max(0,parseFloat(n))),processPercent&&(n=parseInt(n*max,10)/100),Math.abs(n-max)<1e-6?1:n%max/parseFloat(max)},isOnePointZero=function(n){return"string"==typeof n&&n.indexOf(".")!==-1&&1===parseFloat(n)},isPercentage=function(n){return"string"==typeof n&&n.indexOf("%")!==-1},pad2=function(char){return 1===char.length?"0"+char:""+char},matchers=function(){var css_integer,css_number,css_unit,permissive_match3,permissive_match4;return css_integer="[-\\+]?\\d+%?",css_number="[-\\+]?\\d*\\.\\d+%?",css_unit="(?:"+css_number+")|(?:"+css_integer+")",permissive_match3="[\\s|\\(]+("+css_unit+")[,|\\s]+("+css_unit+")[,|\\s]+("+css_unit+")\\s*\\)?",permissive_match4="[\\s|\\(]+("+css_unit+")[,|\\s]+("+css_unit+")[,|\\s]+("+css_unit+")[,|\\s]+("+css_unit+")\\s*\\)?",{rgb:new RegExp("rgb"+permissive_match3),rgba:new RegExp("rgba"+permissive_match4),hsl:new RegExp("hsl"+permissive_match3),hsla:new RegExp("hsla"+permissive_match4),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}(),isNumeric=function(value){return!isNaN(value)&&isFinite(value)},percentToFraction=function(percentage){return numberFromString(percentage)/100},stringToObject=function(color){ var match,named,trimLeft,trimRight;if(trimLeft=/^[\s,#]+/,trimRight=/\s+$/,color=color.replace(trimLeft,"").replace(trimRight,"").toLowerCase(),named=!1,cssNames[color])color=cssNames[color],named=!0,{type:ColorType.NAME};else if("transparent"===color)return{r:0,g:0,b:0,a:0,type:ColorType.NAME};return match=void 0,(match=matchers.rgb.exec(color))?{r:match[1],g:match[2],b:match[3]}:(match=matchers.rgba.exec(color))?{r:match[1],g:match[2],b:match[3],a:match[4]}:(match=matchers.hsl.exec(color))?{h:match[1],s:percentToFraction(match[2]),l:percentToFraction(match[3])}:(match=matchers.hsla.exec(color))?{h:match[1],s:percentToFraction(match[2]),l:percentToFraction(match[3]),a:match[4]}:(match=matchers.hex6.exec(color)||(match=matchers.hex6.exec(cssNames[color])))?{r:parseInt(match[1],16),g:parseInt(match[2],16),b:parseInt(match[3],16),a:1,type:ColorType.HEX}:!!(match=matchers.hex3.exec(color)||(match=matchers.hex3.exec(cssNames[color])))&&{r:parseInt(match[1]+""+match[1],16),g:parseInt(match[2]+""+match[2],16),b:parseInt(match[3]+""+match[3],16),type:ColorType.HEX}},cssNames={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(module){(function(){var L_to_Y,Y_to_L,conv,distanceFromPole,dotProduct,epsilon,fromLinear,getBounds,intersectLineLine,kappa,lengthOfRayUntilIntersect,m,m_inv,maxChromaForLH,maxSafeChromaForL,refU,refV,root,toLinear;m={R:[3.2409699419045213,-1.5373831775700935,-.4986107602930033],G:[-.9692436362808798,1.8759675015077206,.04155505740717561],B:[.05563007969699361,-.20397695888897657,1.0569715142428786]},m_inv={X:[.4123907992659595,.35758433938387796,.1804807884018343],Y:[.21263900587151036,.7151686787677559,.07219231536073371],Z:[.01933081871559185,.11919477979462599,.9505321522496606]},refU=.19783000664283681,refV=.468319994938791,kappa=903.2962962962963,epsilon=.008856451679035631,getBounds=function(L){var bottom,channel,j,k,len1,len2,m1,m2,m3,ref,ref1,ref2,ret,sub1,sub2,t,top1,top2;for(sub1=Math.pow(L+16,3)/1560896,sub2=sub1>epsilon?sub1:L/kappa,ret=[],ref=["R","G","B"],j=0,len1=ref.length;j<len1;j++)for(channel=ref[j],ref1=m[channel],m1=ref1[0],m2=ref1[1],m3=ref1[2],ref2=[0,1],k=0,len2=ref2.length;k<len2;k++)t=ref2[k],top1=(284517*m1-94839*m3)*sub2,top2=(838422*m3+769860*m2+731718*m1)*L*sub2-769860*t*L,bottom=(632260*m3-126452*m2)*sub2+126452*t,ret.push([top1/bottom,top2/bottom]);return ret},intersectLineLine=function(line1,line2){return(line1[1]-line2[1])/(line2[0]-line1[0])},distanceFromPole=function(point){return Math.sqrt(Math.pow(point[0],2)+Math.pow(point[1],2))},lengthOfRayUntilIntersect=function(theta,line){var b1,len,m1;return m1=line[0],b1=line[1],len=b1/(Math.sin(theta)-m1*Math.cos(theta)),len<0?null:len},maxSafeChromaForL=function(L){var b1,j,len1,lengths,m1,ref,ref1,x;for(lengths=[],ref=getBounds(L),j=0,len1=ref.length;j<len1;j++)ref1=ref[j],m1=ref1[0],b1=ref1[1],x=intersectLineLine([m1,b1],[-1/m1,0]),lengths.push(distanceFromPole([x,b1+x*m1]));return Math.min.apply(Math,lengths)},maxChromaForLH=function(L,H){var hrad,j,l,len1,lengths,line,ref;for(hrad=H/360*Math.PI*2,lengths=[],ref=getBounds(L),j=0,len1=ref.length;j<len1;j++)line=ref[j],l=lengthOfRayUntilIntersect(hrad,line),null!==l&&lengths.push(l);return Math.min.apply(Math,lengths)},dotProduct=function(a,b){var i,j,ref,ret;for(ret=0,i=j=0,ref=a.length-1;0<=ref?j<=ref:j>=ref;i=0<=ref?++j:--j)ret+=a[i]*b[i];return ret},fromLinear=function(c){return c<=.0031308?12.92*c:1.055*Math.pow(c,1/2.4)-.055},toLinear=function(c){var a;return a=.055,c>.04045?Math.pow((c+a)/(1+a),2.4):c/12.92},conv={xyz:{},luv:{},lch:{},husl:{},huslp:{},rgb:{},hex:{}},conv.xyz.rgb=function(tuple){var B,G,R;return R=fromLinear(dotProduct(m.R,tuple)),G=fromLinear(dotProduct(m.G,tuple)),B=fromLinear(dotProduct(m.B,tuple)),[R,G,B]},conv.rgb.xyz=function(tuple){var B,G,R,X,Y,Z,rgbl;return R=tuple[0],G=tuple[1],B=tuple[2],rgbl=[toLinear(R),toLinear(G),toLinear(B)],X=dotProduct(m_inv.X,rgbl),Y=dotProduct(m_inv.Y,rgbl),Z=dotProduct(m_inv.Z,rgbl),[X,Y,Z]},Y_to_L=function(Y){return Y<=epsilon?Y*kappa:116*Math.pow(Y,1/3)-16},L_to_Y=function(L){return L<=8?L/kappa:Math.pow((L+16)/116,3)},conv.xyz.luv=function(tuple){var L,U,V,X,Y,Z,varU,varV;return X=tuple[0],Y=tuple[1],Z=tuple[2],0===Y?[0,0,0]:(L=Y_to_L(Y),varU=4*X/(X+15*Y+3*Z),varV=9*Y/(X+15*Y+3*Z),U=13*L*(varU-refU),V=13*L*(varV-refV),[L,U,V])},conv.luv.xyz=function(tuple){var L,U,V,X,Y,Z,varU,varV;return L=tuple[0],U=tuple[1],V=tuple[2],0===L?[0,0,0]:(varU=U/(13*L)+refU,varV=V/(13*L)+refV,Y=L_to_Y(L),X=0-9*Y*varU/((varU-4)*varV-varU*varV),Z=(9*Y-15*varV*Y-varV*X)/(3*varV),[X,Y,Z])},conv.luv.lch=function(tuple){var C,H,Hrad,L,U,V;return L=tuple[0],U=tuple[1],V=tuple[2],C=Math.sqrt(Math.pow(U,2)+Math.pow(V,2)),C<1e-8?H=0:(Hrad=Math.atan2(V,U),H=360*Hrad/2/Math.PI,H<0&&(H=360+H)),[L,C,H]},conv.lch.luv=function(tuple){var C,H,Hrad,L,U,V;return L=tuple[0],C=tuple[1],H=tuple[2],Hrad=H/360*2*Math.PI,U=Math.cos(Hrad)*C,V=Math.sin(Hrad)*C,[L,U,V]},conv.husl.lch=function(tuple){var C,H,L,S,max;return H=tuple[0],S=tuple[1],L=tuple[2],L>99.9999999||L<1e-8?C=0:(max=maxChromaForLH(L,H),C=max/100*S),[L,C,H]},conv.lch.husl=function(tuple){var C,H,L,S,max;return L=tuple[0],C=tuple[1],H=tuple[2],L>99.9999999||L<1e-8?S=0:(max=maxChromaForLH(L,H),S=C/max*100),[H,S,L]},conv.huslp.lch=function(tuple){var C,H,L,S,max;return H=tuple[0],S=tuple[1],L=tuple[2],L>99.9999999||L<1e-8?C=0:(max=maxSafeChromaForL(L),C=max/100*S),[L,C,H]},conv.lch.huslp=function(tuple){var C,H,L,S,max;return L=tuple[0],C=tuple[1],H=tuple[2],L>99.9999999||L<1e-8?S=0:(max=maxSafeChromaForL(L),S=C/max*100),[H,S,L]},conv.rgb.hex=function(tuple){var ch,hex,j,len1;for(hex="#",j=0,len1=tuple.length;j<len1;j++){if(ch=tuple[j],ch=Math.round(1e6*ch)/1e6,ch<0||ch>1)throw new Error("Illegal rgb value: "+ch);ch=Math.round(255*ch).toString(16),1===ch.length&&(ch="0"+ch),hex+=ch}return hex},conv.hex.rgb=function(hex){var b,g,j,len1,n,r,ref,results;for("#"===hex.charAt(0)&&(hex=hex.substring(1,7)),r=hex.substring(0,2),g=hex.substring(2,4),b=hex.substring(4,6),ref=[r,g,b],results=[],j=0,len1=ref.length;j<len1;j++)n=ref[j],results.push(parseInt(n,16)/255);return results},conv.lch.rgb=function(tuple){return conv.xyz.rgb(conv.luv.xyz(conv.lch.luv(tuple)))},conv.rgb.lch=function(tuple){return conv.luv.lch(conv.xyz.luv(conv.rgb.xyz(tuple)))},conv.husl.rgb=function(tuple){return conv.lch.rgb(conv.husl.lch(tuple))},conv.rgb.husl=function(tuple){return conv.lch.husl(conv.rgb.lch(tuple))},conv.huslp.rgb=function(tuple){return conv.lch.rgb(conv.huslp.lch(tuple))},conv.rgb.huslp=function(tuple){return conv.lch.huslp(conv.rgb.lch(tuple))},root={},root.fromRGB=function(R,G,B){return conv.rgb.husl([R,G,B])},root.fromHex=function(hex){return conv.rgb.husl(conv.hex.rgb(hex))},root.toRGB=function(H,S,L){return conv.husl.rgb([H,S,L])},root.toHex=function(H,S,L){return conv.rgb.hex(conv.husl.rgb([H,S,L]))},root.p={},root.p.toRGB=function(H,S,L){return conv.xyz.rgb(conv.luv.xyz(conv.lch.luv(conv.huslp.lch([H,S,L]))))},root.p.toHex=function(H,S,L){return conv.rgb.hex(conv.xyz.rgb(conv.luv.xyz(conv.lch.luv(conv.huslp.lch([H,S,L])))))},root.p.fromRGB=function(R,G,B){return conv.lch.huslp(conv.luv.lch(conv.xyz.luv(conv.rgb.xyz([R,G,B]))))},root.p.fromHex=function(hex){return conv.lch.huslp(conv.luv.lch(conv.xyz.luv(conv.rgb.xyz(conv.hex.rgb(hex)))))},root._conv=conv,root._getBounds=getBounds,root._maxChromaForLH=maxChromaForLH,root._maxSafeChromaForL=maxSafeChromaForL,"undefined"!=typeof module&&null!==module||"undefined"!=typeof jQuery&&null!==jQuery||"undefined"!=typeof requirejs&&null!==requirejs||(this.HUSL=root),"undefined"!=typeof module&&null!==module&&(module.exports=root),"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.husl=root),"undefined"!=typeof requirejs&&null!==requirejs&&null!==__webpack_require__(13)&&(__WEBPACK_AMD_DEFINE_FACTORY__=root,__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__,!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}).call(this)}).call(exports,__webpack_require__(3)(module))},function(module,exports){module.exports=function(){throw new Error("define cannot be used indirect")}},function(module,exports,__webpack_require__){var BaseClass,Color,_,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;_=__webpack_require__(1)._,BaseClass=__webpack_require__(6).BaseClass,Color=__webpack_require__(11).Color,exports.Gradient=function(superClass){function Gradient(options){null==options&&(options={}),null==options.start&&(options.start="black"),null==options.end&&(options.end="white"),null==options.angle&&(options.angle=0),Gradient.__super__.constructor.call(this,options)}return extend(Gradient,superClass),Gradient.define("start",{get:function(){return this._start},set:function(value){return this._start=new Color(value)}}),Gradient.define("end",{get:function(){return this._end},set:function(value){return this._end=new Color(value)}}),Gradient.define("angle",{get:function(){return this._angle},set:function(value){if(_.isNumber(value))return this._angle=value}}),Gradient.prototype.toCSS=function(){return"linear-gradient("+this.angle+"deg, "+this.start+", "+this.end+")"},Gradient.prototype.mix=function(gradientB,fraction,model){return Gradient.mix(this,gradientB,fraction,model)},Gradient.prototype.isEqual=function(gradientB){return Gradient.equal(this,gradientB)},Gradient.prototype.toInspect=function(){return"<"+this.constructor.name+" start:"+this.start+" end:"+this.end+" angle:"+this.angle+">"},Gradient.mix=function(gradientA,gradientB,fraction,model){var angle,end,endAngle,start,startAngle;return null==fraction&&(fraction=.5),fraction=Utils.clamp(fraction,0,1),start=Color.mix(gradientA.start,gradientB.start,fraction,!1,model),end=Color.mix(gradientA.end,gradientB.end,fraction,!1,model),startAngle=gradientA.angle,endAngle=gradientB.angle,angle=startAngle+(endAngle-startAngle)*fraction,new Gradient({start:start,end:end,angle:angle})},Gradient.random=function(){var colorA,colorB,hue;return hue=360*Math.random(),colorA=new Color({h:hue}),colorB=new Color({h:hue+40}),new Gradient({start:colorA,end:colorB,angle:Math.round(360*Math.random())})},Gradient.isGradient=function(gradient){return!_.isEmpty(this._asPlainObject(gradient))},Gradient.isGradientObject=function(gradient){return gradient instanceof Gradient},Gradient.equal=function(gradientA,gradientB){var equalAngle,equalEnd,equalStart;return!!Gradient.isGradient(gradientA)&&(!!Gradient.isGradient(gradientB)&&(equalAngle=Math.abs(gradientA.angle-gradientB.angle)%360===0,equalStart=Color.equal(gradientA.start,gradientB.start),equalEnd=Color.equal(gradientA.end,gradientB.end),equalAngle&&equalStart&&equalEnd))},Gradient.multiplyAlpha=function(gradient,alpha){return this.isGradientObject(gradient)||(gradient=new Gradient(gradient)),new Gradient({start:gradient.start.multiplyAlpha(alpha),end:gradient.end.multiplyAlpha(alpha),angle:gradient.angle})},Gradient._asPlainObject=function(gradient){return _.pick(gradient,["start","end","angle"])},Gradient}(BaseClass)},function(module,exports,__webpack_require__){var Animation,BaseClass,Color,Config,Defaults,EventEmitter,Events,Gestures,Gradient,LayerDraggable,LayerPinchable,LayerPropertyProxy,LayerStates,LayerStyle,Matrix,NoCacheDateKey,Utils,_,asBorderRadius,asBorderWidth,delayedStyles,layerProperty,layerPropertyIgnore,layerPropertyPointTransformer,layerProxiedValue,layerValueTypeError,parentOrContext,proxiedShadowValue,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1},bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,slice=[].slice;_=__webpack_require__(1)._,Utils=__webpack_require__(4),Config=__webpack_require__(16).Config,Events=__webpack_require__(17).Events,Defaults=__webpack_require__(19).Defaults,BaseClass=__webpack_require__(6).BaseClass,EventEmitter=__webpack_require__(7).EventEmitter,Color=__webpack_require__(11).Color,Gradient=__webpack_require__(14).Gradient,Matrix=__webpack_require__(9).Matrix,Animation=__webpack_require__(20).Animation,LayerStyle=__webpack_require__(29).LayerStyle,LayerStates=__webpack_require__(30).LayerStates,LayerDraggable=__webpack_require__(33).LayerDraggable,LayerPinchable=__webpack_require__(40).LayerPinchable,Gestures=__webpack_require__(18).Gestures,LayerPropertyProxy=__webpack_require__(41).LayerPropertyProxy,NoCacheDateKey=Date.now(),delayedStyles=["webkitTransform","webkitFilter","webkitPerspectiveOrigin","webkitTransformOrigin","webkitBackdropFilter"],layerValueTypeError=function(name,value){throw new Error("Layer."+name+": value '"+value+"' of type '"+typeof value+"' is not valid")},layerProperty=function(obj,name,cssProperty,fallback,validator,transformer,options,set,targetElement,includeMainElement,useSubpropertyProxy){var result;return null==options&&(options={}),result={default:fallback,get:function(){var value;return this._properties.hasOwnProperty(name)&&(value=this._properties[name]),null==value&&(value=fallback),useSubpropertyProxy?layerProxiedValue(value,this,name):value},set:function(value){var elementContainer,mainElement,oldValue,style,subElement;if(transformer&&(value=transformer(value,this,name)),oldValue=this._properties[name],value!==oldValue&&(value&&validator&&!validator(value)&&layerValueTypeError(name,value),this._properties[name]=value,null!==cssProperty&&(elementContainer=this,indexOf.call(this._stylesAppliedToParent,cssProperty)>=0&&(elementContainer=this._parent,this._parent._properties[name]=fallback),!includeMainElement&&targetElement||(mainElement=elementContainer._element),null!=targetElement&&(subElement=elementContainer[targetElement]),name===cssProperty&&null==LayerStyle[cssProperty]?(null!=mainElement&&(mainElement.style[cssProperty]=this._properties[name]),null!=subElement&&(subElement.style[cssProperty]=this._properties[name])):(!this.__applyingDefaults||indexOf.call(delayedStyles,cssProperty)<0)&&(style=LayerStyle[cssProperty](this),null!=mainElement&&(mainElement.style[cssProperty]=style),null!=subElement&&(subElement.style[cssProperty]=style))),"function"==typeof set&&set(this,value),!this.__constructor))return this.emit("change:"+name,value,oldValue),"x"!==name&&"y"!==name||this.emit("change:point",value),"width"!==name&&"height"!==name||this.emit("change:size",value),"x"!==name&&"y"!==name&&"width"!==name&&"height"!==name||this.emit("change:frame",value),"rotationZ"===name?this.emit("change:rotation",value):void 0}},result=_.extend(result,options)},exports.layerProperty=layerProperty,layerProxiedValue=function(value,layer,property){return _.isObject(value)?new LayerPropertyProxy(value,function(proxiedValue,subProperty,subValue){return proxiedValue[subProperty]=subValue,layer[property]=proxiedValue}):value},exports.layerProxiedValue=layerProxiedValue,layerPropertyPointTransformer=function(value,layer,property){return _.isFunction(value)&&(value=value(layer,property)),value},layerPropertyIgnore=function(options,propertyName,properties){var j,len,p;if(!options.hasOwnProperty(propertyName))return options;for(j=0,len=properties.length;j<len;j++)if(p=properties[j],options.hasOwnProperty(p))return delete options[propertyName],options;return options},asBorderRadius=function(value){var isValidObject,j,key,len,ref,ref1,result;if(_.isNumber(value))return value;if(_.isString(value))return _.endsWith(value,"%")||console.error("Layer.borderRadius only correctly supports percentages in strings"),value;if(!_.isObject(value))return 0;for(result={},isValidObject=!1,ref=["topLeft","topRight","bottomRight","bottomLeft"],j=0,len=ref.length;j<len;j++)key=ref[j],isValidObject||(isValidObject=_.has(value,key)),result[key]=null!=(ref1=value[key])?ref1:0;return isValidObject?result:0},asBorderWidth=function(value){var isValidObject,j,key,len,ref,ref1,result;if(_.isNumber(value))return value;if(!_.isObject(value))return 0;for(result={},isValidObject=!1,ref=["left","right","bottom","top"],j=0,len=ref.length;j<len;j++)key=ref[j],isValidObject||(isValidObject=_.has(value,key)),result[key]=null!=(ref1=value[key])?ref1:0;return isValidObject?result:0},parentOrContext=function(layerOrContext){return null!=layerOrContext.parent?layerOrContext.parent:layerOrContext.context},proxiedShadowValue=function(layer,value,index){var v;return null==index&&(index=0),v=_.defaults(_.clone(value),Framer.Defaults.Shadow),null!==v.color&&null!=v&&(v.color=new Color(v.color)),layerProxiedValue(v,layer,"shadow"+(index+1))},exports.Layer=function(superClass){function Layer(options){var cssProperty,element,j,len,len1,m,p,ref;if(null==options&&(options={}),this.addListener=bind(this.addListener,this),this.once=bind(this.once,this),this.updateForSizeChange=bind(this.updateForSizeChange,this),this.updateForDevicePixelRatioChange=bind(this.updateForDevicePixelRatioChange,this),this.convertPointToLayer=bind(this.convertPointToLayer,this),this.convertPointToCanvas=bind(this.convertPointToCanvas,this),this.convertPointToScreen=bind(this.convertPointToScreen,this),this.layout=bind(this.layout,this),this._layoutY=bind(this._layoutY,this),this._layoutX=bind(this._layoutX,this),this.parentChanged=bind(this.parentChanged,this),this.__constructorCalled)throw Error("Layer.constructor "+this.toInspect()+" called twice");for(this.__constructorCalled=!0,this.__constructor=!0,this._properties={},this._style={},this._children=[],null==this._stylesAppliedToParent&&(this._stylesAppliedToParent=[]),this._prefer2d=!1,this._alwaysUseImageCache=!1,this._cancelClickEventInDragSession=!0,this._createElement(),options.createHTMLElement&&this._createHTMLElementIfNeeded(),this._createBorderElement(),layerPropertyIgnore(options,"point",["x","y"]),layerPropertyIgnore(options,"midPoint",["midX","midY"]),layerPropertyIgnore(options,"size",["width","height"]),layerPropertyIgnore(options,"frame",["x","y","width","height"]),!options.hasOwnProperty("parent")&&options.hasOwnProperty("superLayer")&&(options.parent=options.superLayer,delete options.superLayer),this.__applyingDefaults=!0,Layer.__super__.constructor.call(this,Defaults.getDefaults("Layer",options)),delete this.__applyingDefaults,j=0,len=delayedStyles.length;j<len;j++)cssProperty=delayedStyles[j],element=this._element,indexOf.call(this._stylesAppliedToParent,cssProperty)>=0&&(element=this._parent._element),element.style[cssProperty]=LayerStyle[cssProperty](this);for(this._context.addLayer(this),this._id=this._context.layerCounter,options.parent?this.parent=options.parent:options.shadow||this._insertElement(),options.hasOwnProperty("index")&&(this.index=options.index),ref=["x","y","width","height"],m=0,len1=ref.length;m<len1;m++)p=ref[m],options.hasOwnProperty(p)&&(this[p]=options[p]);this._context.emit("layer:create",this),this.label=this.label,delete this.__constructor,this.updateShadowStyle(),this.onChange("size",this.updateForSizeChange)}var fn,fn1,i,j,len,m,ref,shadowProp;for(extend(Layer,superClass),Layer.ExistingIdMessage=function(type,id){return"Can not set "+type+": There's already an element with id '"+id+"' in this document'"},Layer.define("context",{get:function(){return this._context}}),Layer.define("label",{get:function(){return this._label},set:function(value){if(value!==this._label)return this._label=value,Utils.labelLayer(this,this._label)}}),Layer.define("custom",Layer.simpleProperty("custom",void 0)),Layer.define("animationOptions",Layer.simpleProperty("animationOptions",{})),Layer.define("ignoreEvents",layerProperty(Layer,"ignoreEvents","pointerEvents",!0,_.isBoolean)),Layer.define("width",layerProperty(Layer,"width","width",100,_.isNumber,null,{},function(layer,value){if(null!=layer.constraintValues&&!layer.isLayouting)return layer.constraintValues.width=value,layer.constraintValues.aspectRatioLocked=!1,layer.constraintValues.widthFactor=null,layer._layoutX()})),Layer.define("height",layerProperty(Layer,"height","height",100,_.isNumber,null,{},function(layer,value){if(null!=layer.constraintValues&&!layer.isLayouting)return layer.constraintValues.height=value,layer.constraintValues.aspectRatioLocked=!1,layer.constraintValues.heightFactor=null,layer._layoutY()})),Layer.define("visible",layerProperty(Layer,"visible","display",!0,_.isBoolean)),Layer.define("opacity",layerProperty(Layer,"opacity","opacity",1,_.isNumber,parseFloat)),Layer.define("index",layerProperty(Layer,"index","zIndex",0,_.isNumber,null,{importable:!1,exportable:!1})),Layer.define("clip",layerProperty(Layer,"clip","overflow",!1,_.isBoolean,null,{},null,"_elementHTML",!0)),Layer.define("scrollHorizontal",layerProperty(Layer,"scrollHorizontal","overflowX",!1,_.isBoolean,null,{},function(layer,value){if(value===!0)return layer.ignoreEvents=!1})),Layer.define("scrollVertical",layerProperty(Layer,"scrollVertical","overflowY",!1,_.isBoolean,null,{},function(layer,value){if(value===!0)return layer.ignoreEvents=!1})),Layer.define("scroll",{get:function(){return this.scrollHorizontal===!0||this.scrollVertical===!0},set:function(value){return this.scrollHorizontal=this.scrollVertical=value}}),Layer.define("x",layerProperty(Layer,"x","webkitTransform",0,_.isNumber,layerPropertyPointTransformer,{depends:["width","height"]},function(layer){if(!layer.isLayouting)return layer.constraintValues=null})),Layer.define("y",layerProperty(Layer,"y","webkitTransform",0,_.isNumber,layerPropertyPointTransformer,{depends:["width","height"]},function(layer){if(!layer.isLayouting)return layer.constraintValues=null})),Layer.define("z",layerProperty(Layer,"z","webkitTransform",0,_.isNumber)),Layer.define("scaleX",layerProperty(Layer,"scaleX","webkitTransform",1,_.isNumber)),Layer.define("scaleY",layerProperty(Layer,"scaleY","webkitTransform",1,_.isNumber)),Layer.define("scaleZ",layerProperty(Layer,"scaleZ","webkitTransform",1,_.isNumber)),Layer.define("scale",layerProperty(Layer,"scale","webkitTransform",1,_.isNumber)),Layer.define("skewX",layerProperty(Layer,"skewX","webkitTransform",0,_.isNumber)),Layer.define("skewY",layerProperty(Layer,"skewY","webkitTransform",0,_.isNumber)),Layer.define("skew",layerProperty(Layer,"skew","webkitTransform",0,_.isNumber)),Layer.define("originX",layerProperty(Layer,"originX","webkitTransformOrigin",.5,_.isNumber)),Layer.define("originY",layerProperty(Layer,"originY","webkitTransformOrigin",.5,_.isNumber)),Layer.define("originZ",layerProperty(Layer,"originZ",null,0,_.isNumber)),Layer.define("perspective",layerProperty(Layer,"perspective","webkitPerspective",0,function(v){return null!==Utils.webkitPerspectiveForValue(v)})),Layer.define("perspectiveOriginX",layerProperty(Layer,"perspectiveOriginX","webkitPerspectiveOrigin",.5,_.isNumber)),Layer.define("perspectiveOriginY",layerProperty(Layer,"perspectiveOriginY","webkitPerspectiveOrigin",.5,_.isNumber)),Layer.define("rotationX",layerProperty(Layer,"rotationX","webkitTransform",0,_.isNumber)),Layer.define("rotationY",layerProperty(Layer,"rotationY","webkitTransform",0,_.isNumber)),Layer.define("rotationZ",layerProperty(Layer,"rotationZ","webkitTransform",0,_.isNumber)),Layer.define("rotation",{get:function(){return this.rotationZ},set:function(value){return this.rotationZ=value}}),Layer.define("blur",layerProperty(Layer,"blur","webkitFilter",0,_.isNumber)),Layer.define("brightness",layerProperty(Layer,"brightness","webkitFilter",100,_.isNumber)),Layer.define("saturate",layerProperty(Layer,"saturate","webkitFilter",100,_.isNumber)),Layer.define("hueRotate",layerProperty(Layer,"hueRotate","webkitFilter",0,_.isNumber)),Layer.define("contrast",layerProperty(Layer,"contrast","webkitFilter",100,_.isNumber)),Layer.define("invert",layerProperty(Layer,"invert","webkitFilter",0,_.isNumber)),Layer.define("grayscale",layerProperty(Layer,"grayscale","webkitFilter",0,_.isNumber)),Layer.define("sepia",layerProperty(Layer,"sepia","webkitFilter",0,_.isNumber)),Layer.define("blending",layerProperty(Layer,"blending","mixBlendMode",null,_.isString)),Layer.define("backgroundBlur",layerProperty(Layer,"backgroundBlur","webkitBackdropFilter",0,_.isNumber)),Layer.define("backgroundBrightness",layerProperty(Layer,"backgroundBrightness","webkitBackdropFilter",100,_.isNumber)),Layer.define("backgroundSaturate",layerProperty(Layer,"backgroundSaturate","webkitBackdropFilter",100,_.isNumber)),Layer.define("backgroundHueRotate",layerProperty(Layer,"backgroundHueRotate","webkitBackdropFilter",0,_.isNumber)),Layer.define("backgroundContrast",layerProperty(Layer,"backgroundContrast","webkitBackdropFilter",100,_.isNumber)),Layer.define("backgroundInvert",layerProperty(Layer,"backgroundInvert","webkitBackdropFilter",0,_.isNumber)),Layer.define("backgroundGrayscale",layerProperty(Layer,"backgroundGrayscale","webkitBackdropFilter",0,_.isNumber)),Layer.define("backgroundSepia",layerProperty(Layer,"backgroundSepia","webkitBackdropFilter",0,_.isNumber)),fn=function(i){return Layer.define("shadow"+(i+1),{exportable:!1,depends:["shadowX","shadowY","shadowBlur","shadowSpread","shadowColor","shadowType"],get:function(){var base;return null==this.shadows&&(this.shadows=[]),null==(base=this.shadows)[i]&&(base[i]=proxiedShadowValue(this,{},i)),this.shadows[i]},set:function(value){return null==this.shadows&&(this.shadows=[]),this.shadows[i]=proxiedShadowValue(this,value,i),this.updateShadowStyle()}})},i=j=0;j<=8;i=++j)fn(i);for(Layer.prototype.updateShadowsProperty=function(prop,value){var len,m,ref,shadow;for(null==this.shadows&&(this.shadows=[]),0===this.shadows.filter(function(s){return null!==s}).length&&(this.shadows[0]=proxiedShadowValue(this,Framer.Defaults.Shadow)),ref=this.shadows,m=0,len=ref.length;m<len;m++)shadow=ref[m],null!=shadow&&(shadow[prop]=value);return this.updateShadowStyle()},ref=["X","Y","Blur","Spread","Color","Type"],fn1=function(shadowProp){return Layer.define("shadow"+shadowProp,{get:function(){return null==this.shadows||0===this.shadows.length?null:this.shadows[0][shadowProp.toLowerCase()]},set:function(value){return this.updateShadowsProperty(shadowProp.toLowerCase(),value)}})},m=0,len=ref.length;m<len;m++)shadowProp=ref[m],fn1(shadowProp);return Layer.define("shadows",{default:null,get:function(){return this._getPropertyValue("shadows")},set:function(value){var index,len1,n,shadow,shadows;for(null==value&&(value=[]),shadows=[],index=n=0,len1=value.length;n<len1;index=++n)shadow=value[index],null===shadow?shadows.push(null):shadows.push(proxiedShadowValue(this,shadow,index));return this._setPropertyValue("shadows",shadows),this.updateShadowStyle()}}),Layer.prototype.updateShadowStyle=function(){if(!this.__constructor)return this._element.style.boxShadow=LayerStyle.boxShadow(this),this._element.style.textShadow=LayerStyle.textShadow(this),this._element.style.webkitFilter=LayerStyle.webkitFilter(this)},Layer.define("backgroundColor",layerProperty(Layer,"backgroundColor","backgroundColor",null,Color.validColorValue,Color.toColor)),Layer.define("color",layerProperty(Layer,"color","color",null,Color.validColorValue,Color.toColor,null,null,"_elementHTML",!0)),Layer.define("borderRadius",layerProperty(Layer,"borderRadius","borderRadius",0,null,asBorderRadius,null,null,"_elementBorder",!0,!0)),Layer.define("borderColor",layerProperty(Layer,"borderColor","borderColor",null,Color.validColorValue,Color.toColor,null,null,"_elementBorder")),Layer.define("borderWidth",layerProperty(Layer,"borderWidth","borderWidth",0,null,asBorderWidth,null,null,"_elementBorder",!1,!0)),Layer.define("borderStyle",layerProperty(Layer,"borderStyle","borderStyle","solid",_.isString,null,null,null,"_elementBorder")),Layer.define("force2d",layerProperty(Layer,"force2d","webkitTransform",!1,_.isBoolean)),Layer.define("flat",layerProperty(Layer,"flat","webkitTransformStyle",!1,_.isBoolean)),Layer.define("backfaceVisible",layerProperty(Layer,"backfaceVisible","webkitBackfaceVisibility",!0,_.isBoolean)),Layer.define("name",{default:"",get:function(){var name;return name=this._getPropertyValue("name"),null!=name?""+name:""},set:function(value){return this._setPropertyValue("name",value),this._element.setAttribute("name",value)}}),Layer.define("matrix",{get:function(){return this.force2d?this._matrix2d:(new Matrix).translate(this.x,this.y,this.z).scale(this.scale).scale(this.scaleX,this.scaleY,this.scaleZ).skew(this.skew).skewX(this.skewX).skewY(this.skewY).translate(0,0,this.originZ).rotate(this.rotationX,0,0).rotate(0,this.rotationY,0).rotate(0,0,this.rotationZ).translate(0,0,-this.originZ)}}),Layer.define("_matrix2d",{get:function(){return(new Matrix).translate(this.x,this.y).scale(this.scale).scale(this.scaleX,this.scaleY).skewX(this.skew).skewY(this.skew).rotate(0,0,this.rotationZ); }}),Layer.define("transformMatrix",{get:function(){return(new Matrix).translate(this.originX*this.width,this.originY*this.height).multiply(this.matrix).translate(-this.originX*this.width,-this.originY*this.height)}}),Layer.define("matrix3d",{get:function(){var parent,ppm;return parent=this.parent||this.context,ppm=Utils.perspectiveMatrix(parent),(new Matrix).multiply(ppm).multiply(this.transformMatrix)}}),Layer.define("cornerRadius",{importable:!1,exportable:!1,get:function(){return this.borderRadius},set:function(value){return this.borderRadius=value}}),Layer.prototype._setGeometryValues=function(input,keys){var k,len1,len2,n,o,results,results1;if(_.isNumber(input)){for(results=[],n=0,len1=keys.length;n<len1;n++)k=keys[n],this[k]!==input?results.push(this[k]=input):results.push(void 0);return results}if(input){for(results1=[],o=0,len2=keys.length;o<len2;o++)k=keys[o],_.isNumber(input[k])&&this[k]!==input[k]?results1.push(this[k]=input[k]):results1.push(void 0);return results1}},Layer.define("point",{importable:!0,exportable:!1,depends:["width","height","size","parent"],get:function(){return Utils.point(this)},set:function(input){return input=layerPropertyPointTransformer(input,this,"point"),this._setGeometryValues(input,["x","y"])}}),Layer.define("midPoint",{importable:!0,exportable:!1,depends:["width","height","size","parent","point"],get:function(){return{x:this.midX,y:this.midY}},set:function(input){return input=layerPropertyPointTransformer(input,this,"midPoint"),_.isNumber(input)||(input=_.pick(input,["x","y","midX","midY"]),null!=input.x&&null==input.midX&&(input.midX=input.x,delete input.x),null!=input.y&&null==input.midY&&(input.midY=input.y,delete input.y)),this._setGeometryValues(input,["midX","midY"])}}),Layer.define("size",{importable:!0,exportable:!1,get:function(){return Utils.size(this)},set:function(input){return this._setGeometryValues(input,["width","height"])}}),Layer.define("frame",{importable:!0,exportable:!1,get:function(){return Utils.frame(this)},set:function(input){return this._setGeometryValues(input,["x","y","width","height"])}}),Layer.define("minX",{importable:!0,exportable:!1,get:function(){return this.x},set:function(value){return this.x=value}}),Layer.define("midX",{importable:!0,exportable:!1,get:function(){return Utils.frameGetMidX(this)},set:function(value){return Utils.frameSetMidX(this,value)}}),Layer.define("maxX",{importable:!0,exportable:!1,get:function(){return Utils.frameGetMaxX(this)},set:function(value){return Utils.frameSetMaxX(this,value)}}),Layer.define("minY",{importable:!0,exportable:!1,get:function(){return this.y},set:function(value){return this.y=value}}),Layer.define("midY",{importable:!0,exportable:!1,get:function(){return Utils.frameGetMidY(this)},set:function(value){return Utils.frameSetMidY(this,value)}}),Layer.define("maxY",{importable:!0,exportable:!1,get:function(){return Utils.frameGetMaxY(this)},set:function(value){return Utils.frameSetMaxY(this,value)}}),Layer.define("constraintValues",{importable:!0,exportable:!1,default:null,get:function(){return this._getPropertyValue("constraintValues")},set:function(value){var newValue,ref1,ref2,ref3,ref4;return null===value?(newValue=null,this.off("change:parent",this.parentChanged),Screen.off("resize",this.layout)):(newValue=_.defaults(_.clone(value),{left:0,right:null,top:0,bottom:null,centerAnchorX:0,centerAnchorY:0,widthFactor:null,heightFactor:null,aspectRatioLocked:!1,width:this.width,height:this.height}),null!=this.parent?(ref1=this.layout,indexOf.call(this.parent.listeners("change:width"),ref1)>=0||this.parent.on("change:width",this.layout),ref2=this.layout,indexOf.call(this.parent.listeners("change:height"),ref2)>=0||this.parent.on("change:height",this.layout)):(ref3=this.layout,indexOf.call(Screen.listeners("resize"),ref3)>=0||Screen.on("resize",this.layout)),ref4=this.parentChanged,indexOf.call(this.listeners("change:parent"),ref4)>=0||this.on("change:parent",this.parentChanged)),this._setPropertyValue("constraintValues",newValue)}}),Layer.define("htmlIntrinsicSize",{importable:!0,exportable:!0,default:null,get:function(){return this._getPropertyValue("htmlIntrinsicSize")},set:function(value){if(null===value)return this._setPropertyValue("htmlIntrinsicSize",value);if(_.isFinite(value.width)&&_.isFinite(value.height))return this._setPropertyValue("htmlIntrinsicSize",{width:value.width,height:value.height})}}),Layer.prototype.parentChanged=function(newParent,oldParent){return null!=oldParent?(oldParent.off("change:width",this.layout),oldParent.off("change:height",this.layout)):Screen.off("resize",this.layout),this.constraintValues=null},Layer.prototype.setParentPreservingConstraintValues=function(parent){var tmp;return tmp=this.constraintValues,this.parent=parent,this.constraintValues=tmp,this.layout()},Layer.prototype._layoutX=function(){var parentFrame,ref1,ref2;if(null!=this.constraintValues&&(null!=this.parent||this.context.autoLayout))return parentFrame=null!=(ref1=null!=(ref2=this.parent)?ref2.frame:void 0)?ref1:this.context.innerFrame,this.isLayouting=!0,this.x=Utils.calculateLayoutX(parentFrame,this.constraintValues,this.width),this.isLayouting=!1},Layer.prototype._layoutY=function(){var parentFrame,ref1,ref2;if(null!=this.constraintValues&&(null!=this.parent||this.context.autoLayout))return parentFrame=null!=(ref1=null!=(ref2=this.parent)?ref2.frame:void 0)?ref1:this.context.innerFrame,this.isLayouting=!0,this.y=Utils.calculateLayoutY(parentFrame,this.constraintValues,this.height),this.isLayouting=!1},Layer.prototype.layout=function(){var parentFrame,ref1,ref2;if(null!=this.constraintValues&&(null!=this.parent||this.context.autoLayout))return parentFrame=null!=(ref1=null!=(ref2=this.parent)?ref2.frame:void 0)?ref1:this.context.innerFrame,this.isLayouting=!0,this.frame=Utils.calculateLayoutFrame(parentFrame,this),this.isLayouting=!1},Layer.prototype.convertPointToScreen=function(point){return Utils.convertPointToContext(point,this,!1)},Layer.prototype.convertPointToCanvas=function(point){return Utils.convertPointToContext(point,this,!0)},Layer.prototype.convertPointToLayer=function(point,layer,rootContext){return null==rootContext&&(rootContext=!0),Utils.convertPoint(point,this,layer,rootContext)},Layer.define("canvasFrame",{importable:!0,exportable:!1,get:function(){return Utils.boundingFrame(this)},set:function(frame){return this.frame=Utils.convertFrameFromContext(frame,this,!0,!1)}}),Layer.define("screenFrame",{importable:!0,exportable:!1,get:function(){return Utils.boundingFrame(this,!1)},set:function(frame){return this.frame=Utils.convertFrameFromContext(frame,this,!1,!1)}}),Layer.prototype.contentFrame=function(){return this._children.length?Utils.frameMerge(_.map(this._children,"frame")):{x:0,y:0,width:0,height:0}},Layer.prototype.totalFrame=function(){return Utils.frameMerge(this.frame,this.contentFrame())},Layer.prototype.centerFrame=function(){var frame;return this.parent?(frame=this.frame,Utils.frameSetMidX(frame,parseInt(this.parent.width/2-this.parent.borderWidth)),Utils.frameSetMidY(frame,parseInt(this.parent.height/2-this.parent.borderWidth)),frame):(frame=this.frame,Utils.frameSetMidX(frame,parseInt(this._context.innerWidth/2)),Utils.frameSetMidY(frame,parseInt(this._context.innerHeight/2)),frame)},Layer.prototype.center=function(){return null!=this.constraintValues?(this.constraintValues.left=null,this.constraintValues.right=null,this.constraintValues.top=null,this.constraintValues.bottom=null,this.constraintValues.centerAnchorX=.5,this.constraintValues.centerAnchorY=.5,this._layoutX(),this._layoutY()):this.frame=this.centerFrame(),this},Layer.prototype.centerX=function(offset){return null==offset&&(offset=0),null!=this.constraintValues?(this.constraintValues.left=null,this.constraintValues.right=null,this.constraintValues.centerAnchorX=.5,this._layoutX()):this.x=this.centerFrame().x+offset,this},Layer.prototype.centerY=function(offset){return null==offset&&(offset=0),null!=this.constraintValues?(this.constraintValues.top=null,this.constraintValues.bottom=null,this.constraintValues.centerAnchorY=.5,this._layoutY()):this.y=this.centerFrame().y+offset,this},Layer.prototype.pixelAlign=function(){return this.x=parseInt(this.x),this.y=parseInt(this.y)},Layer.prototype.updateForDevicePixelRatioChange=function(){var cssProperty,len1,n,ref1,results;for(ref1=["width","height","webkitTransform","boxShadow","textShadow","webkitFilter","borderRadius","borderWidth","fontSize","letterSpacing","wordSpacing","textIndent"],results=[],n=0,len1=ref1.length;n<len1;n++)cssProperty=ref1[n],results.push(this._element.style[cssProperty]=LayerStyle[cssProperty](this));return results},Layer.prototype.updateForSizeChange=function(){return this._elementBorder.style.borderWidth=LayerStyle.borderWidth(this)},Layer.prototype.canvasScaleX=function(self){var len1,n,parent,ref1,scale;for(null==self&&(self=!0),scale=1,self&&(scale=this.scale*this.scaleX),ref1=this.containers(!0),n=0,len1=ref1.length;n<len1;n++)parent=ref1[n],scale*=parent.scale,null!=parent.scaleX&&(scale*=parent.scaleX);return scale},Layer.prototype.canvasScaleY=function(self){var len1,n,parent,ref1,scale;for(null==self&&(self=!0),scale=1,self&&(scale=this.scale*this.scaleY),ref1=this.containers(!0),n=0,len1=ref1.length;n<len1;n++)parent=ref1[n],scale*=parent.scale,null!=parent.scaleY&&(scale*=parent.scaleY);return scale},Layer.prototype.screenScaleX=function(self){var len1,n,parent,ref1,scale;for(null==self&&(self=!0),scale=1,self&&(scale=this.scale*this.scaleX),ref1=this.containers(!1),n=0,len1=ref1.length;n<len1;n++)parent=ref1[n],scale*=parent.scale*parent.scaleX;return scale},Layer.prototype.screenScaleY=function(self){var len1,n,parent,ref1,scale;for(null==self&&(self=!0),scale=1,self&&(scale=this.scale*this.scaleY),ref1=this.containers(!1),n=0,len1=ref1.length;n<len1;n++)parent=ref1[n],scale*=parent.scale*parent.scaleY;return scale},Layer.prototype.screenScaledFrame=function(){var factorX,factorY,frame,layerScaledFrame,layers,len1,n,p,parent,ref1,ref2,ref3;for(frame={x:0,y:0,width:this.width*this.screenScaleX(),height:this.height*this.screenScaleY()},layers=this.containers(!0),layers.push(this),layers.reverse(),n=0,len1=layers.length;n<len1;n++)parent=layers[n],p=parentOrContext(parent),factorX=null!=(ref1=null!=p&&"function"==typeof p.screenScaleX?p.screenScaleX():void 0)?ref1:1,factorY=null!=(ref2=null!=p&&"function"==typeof p.screenScaleY?p.screenScaleY():void 0)?ref2:1,layerScaledFrame=null!=(ref3="function"==typeof parent.scaledFrame?parent.scaledFrame():void 0)?ref3:{x:0,y:0},frame.x+=layerScaledFrame.x*factorX,frame.y+=layerScaledFrame.y*factorY;return frame},Layer.prototype.scaledFrame=function(){var frame,scaleX,scaleY;return frame=this.frame,scaleX=this.scale*this.scaleX,scaleY=this.scale*this.scaleY,frame.width*=scaleX,frame.height*=scaleY,frame.x+=(1-scaleX)*this.originX*this.width,frame.y+=(1-scaleY)*this.originY*this.height,frame},Layer.define("style",{importable:!0,exportable:!1,get:function(){return this._element.style},set:function(value){return _.extend(this._element.style,value),this.emit("change:style")}}),Layer.prototype.computedStyle=function(){var getComputedStyle;return getComputedStyle=document.defaultView.getComputedStyle,null==getComputedStyle&&(getComputedStyle=window.getComputedStyle),getComputedStyle(this._element)},Layer.define("classList",{importable:!0,exportable:!1,get:function(){return this._element.classList}}),Layer.prototype._createElement=function(){if(null==this._element)return this._element=document.createElement("div"),this._element.classList.add("framerLayer")},Layer.prototype._createBorderElement=function(){if(null==this._elementBorder)return this._elementBorder=document.createElement("div"),this._elementBorder.style.position="absolute",this._elementBorder.style.top="0",this._elementBorder.style.bottom="0",this._elementBorder.style.left="0",this._elementBorder.style.right="0",this._elementBorder.style.boxSizing="border-box",this._elementBorder.style.zIndex="1000",this._elementBorder.style.pointerEvents="none",this._element.appendChild(this._elementBorder)},Layer.prototype._insertElement=function(){return this.bringToFront(),this._context.element.appendChild(this._element)},Layer.prototype.elementInsertedIntoDocument=function(){},Layer.prototype._createHTMLElementIfNeeded=function(){if(!this._elementHTML)return this._elementHTML=document.createElement("div"),this._element.insertBefore(this._elementHTML,this._elementBorder)},Layer.define("html",{get:function(){var ref1;return(null!=(ref1=this._elementHTML)?ref1.innerHTML:void 0)||""},set:function(value){var existingElement,id,ids,len1,n;for(this._createHTMLElementIfNeeded(),ids=Utils.getIdAttributesFromString(value),n=0,len1=ids.length;n<len1;n++)if(id=ids[n],existingElement=document.querySelector("[id='"+id+"']"),null!=existingElement)return void Utils.throwInStudioOrWarnInProduction(Layer.ExistingIdMessage("html",id));return this._elementHTML.innerHTML=value,this._updateHTMLScale(),this.emit("change:html")}}),Layer.prototype._updateHTMLScale=function(){if(null!=this._elementHTML)return null==this.htmlIntrinsicSize?this._elementHTML.style.zoom=this.context.scale:(this._elementHTML.style.transformOrigin="0 0",this._elementHTML.style.transform="scale("+this.context.scale*this.width/this.htmlIntrinsicSize.width+", "+this.context.scale*this.height/this.htmlIntrinsicSize.height+")",this._elementHTML.style.width=this.htmlIntrinsicSize.width+"px",this._elementHTML.style.height=this.htmlIntrinsicSize.height+"px")},Layer.prototype.querySelector=function(query){return this._element.querySelector(query)},Layer.prototype.querySelectorAll=function(query){return this._element.querySelectorAll(query)},Layer.prototype.selectChild=function(selector){return Utils.findLayer(this.descendants,selector)},Layer.prototype.selectAllChildren=function(selector){return Utils.filterLayers(this.descendants,selector)},Layer.select=function(selector){return Framer.CurrentContext.selectLayer(selector)},Layer.selectAll=function(selector){return Framer.CurrentContext.selectAllLayers(selector)},Layer.prototype.destroy=function(){var ref1;return this.parent&&(this.parent._children=_.without(this.parent._children,this)),null!=(ref1=this._element.parentNode)&&ref1.removeChild(this._element),this.removeAllListeners(),this._context.removeLayer(this),this._context.emit("layer:destroy",this),this._context.domEventManager.remove(this._element)},Layer.prototype.copy=function(){var child,copiedChild,layer,len1,n,ref1;for(layer=this.copySingle(),ref1=this._children,n=0,len1=ref1.length;n<len1;n++)child=ref1[n],copiedChild=child.copy(),null!==copiedChild&&(copiedChild.parent=layer);return layer},Layer.prototype.copySingle=function(){var copy;return copy=new this.constructor(this.props),copy.style=this.style,copy},Layer.prototype._cleanupImageLoader=function(){var ref1;return null!=(ref1=this._imageEventManager)&&ref1.removeAllListeners(),this._imageEventManager=null,this._imageLoader=null},Layer.define("image",{default:"",get:function(){return this._getPropertyValue("image")},set:function(value){var currentValue,defaults,imageUrl,isBackgroundColorDefault,ref1;return currentValue=this._getPropertyValue("image"),defaults=Defaults.getDefaults("Layer",{}),isBackgroundColorDefault=null!=(ref1=this.backgroundColor)?ref1.isEqual(defaults.backgroundColor):void 0,Gradient.isGradientObject(value)?(this.emit("change:gradient",value,currentValue),this.emit("change:image",value,currentValue),this._setPropertyValue("image",value),this.style["background-image"]=value.toCSS(),void(isBackgroundColorDefault&&(this.backgroundColor=null))):(_.isString(value)||null===value||layerValueTypeError("image",value),currentValue===value?this.emit("load"):(isBackgroundColorDefault&&(this.backgroundColor=null),this._setPropertyValue("image",value),null===value||""===value?(null!=this._imageLoader&&(this._imageEventManager.removeAllListeners(),this._imageLoader.src=null),this.style["background-image"]=null,void(null!=this._imageLoader&&(this.emit(Events.ImageLoadCancelled,this._imageLoader),this._cleanupImageLoader()))):!_.endsWith("function"==typeof value.toLowerCase?value.toLowerCase():void 0,".pdf")||Utils.isWebKit()&&!Utils.isChrome()?(imageUrl=value,this._alwaysUseImageCache===!1&&Utils.isLocalAssetUrl(imageUrl)&&(imageUrl+=/\?/.test(imageUrl)?"&":"?",imageUrl+="nocache="+NoCacheDateKey),this.listeners(Events.ImageLoaded,!0)||this.listeners(Events.ImageLoadError,!0)||this.listeners(Events.ImageLoadCancelled,!0)?(this._imageLoader=new Image,this._imageLoader.name=imageUrl,this._imageLoader.src=imageUrl,this._imageEventManager=this._context.domEventManager.wrap(this._imageLoader),this._imageEventManager.addEventListener("load",function(_this){return function(){return _this.style["background-image"]="url('"+imageUrl+"')",_this.emit(Events.ImageLoaded,_this._imageLoader),_this._cleanupImageLoader()}}(this)),this._imageEventManager.addEventListener("error",function(_this){return function(){return _this.emit(Events.ImageLoadError,_this._imageLoader),_this._cleanupImageLoader()}}(this))):this.style["background-image"]="url('"+imageUrl+"')"):void(this.style["background-image"]="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAVlJREFUaAXtlwEOwiAMRdF4Cr3/0fQaSre9ZFSYLCrQpSSG/FLW9v92agghXJdP3KZlCp/J2up+WiUuzMt6zNukzPDYvALCsKme1/maV8BnQHqw9/IZ6KmAz0BP9ontMwATPXafgR6s65g+A5qRlrhmBu6FhG6LXf9/+JU/YclROkVWEs/8r9FLrChb2apSqVqWZgKmtRKz9/f+CdPxoVl8CAWylcWKUQZGwfhjB3OOHcw5djDn2MH6fBNLC42yaEnyoTXB2V36+lPlz+zN9x6HKfxrZwZ/HUbf5/lJviMpoBPWBWWxFJCtLNqplItIWuvPffx5Dphz7GB9vonNv4X2zICWuMTM3p7Gv/b5iVLmFaiZgb3M/Ns/Ud68AvIGkJ6ir8xh8wrQrzAve9Jjo2PzCsC8z4Aw0WP5DPRgXcf07wHNSEvsM9CS7VIsn4ESMy3sPgMtWN6K8QKfubDo2UqVogAAAABJRU5ErkJggg==')")))}}),Layer.define("gradient",{get:function(){return Gradient.isGradientObject(this.image)?layerProxiedValue(this.image,this,"gradient"):null},set:function(value){return Gradient.isGradient(value)?this.image=new Gradient(value):!value&&Gradient.isGradientObject(this.image)?this.image=null:void 0}}),Layer.define("parent",{enumerable:!1,exportable:!1,importable:!0,get:function(){return this._parent||null},set:function(layer){var oldParent;if(layer!==this._parent){if(layer===this)throw Error("Layer.parent: a layer cannot be it's own parent.");if(!layer instanceof Layer)throw Error("Layer.parent needs to be a Layer object");return Utils.domCompleteCancel(this.__insertElement),this._parent&&(this._parent._children=_.pull(this._parent._children,this),this._parent._element.removeChild(this._element),this._parent.emit("change:children",{added:[],removed:[this]}),this._parent.emit("change:subLayers",{added:[],removed:[this]})),layer?(layer._element.appendChild(this._element),layer._children.push(this),layer.emit("change:children",{added:[this],removed:[]}),layer.emit("change:subLayers",{added:[this],removed:[]})):this._insertElement(),oldParent=this._parent,this._parent=layer,this.bringToFront(),this.emit("change:parent",this._parent,oldParent),this.emit("change:superLayer",this._parent,oldParent)}}}),Layer.define("children",{enumerable:!1,exportable:!1,importable:!1,get:function(){return this._children.map(function(c){return c instanceof SVGLayer&&1===c.children.length&&_.startsWith(c.name,".")?c.children[0]:c})}}),Layer.define("siblings",{enumerable:!1,exportable:!1,importable:!1,get:function(){return null===this.parent?_.filter(this._context.layers,function(_this){return function(layer){return layer!==_this&&null===layer.parent}}(this)):_.without(this.parent.children,this)}}),Layer.define("descendants",{enumerable:!1,exportable:!1,importable:!1,get:function(){var f,result;return result=[],f=function(layer){return result.push(layer),layer.children.map(f)},this.children.map(f),result}}),Layer.prototype.addChild=function(layer){return layer.parent=this},Layer.prototype.removeChild=function(layer){if(!(indexOf.call(this._children,layer)<0))return layer.parent=null},Layer.prototype.childrenWithName=function(name){return _.filter(this.children,function(layer){return layer.name===name})},Layer.prototype.siblingsWithName=function(name){return _.filter(this.siblingLayers,function(layer){return layer.name===name})},Layer.prototype.containers=function(toRoot,result){return null==toRoot&&(toRoot=!1),null==result&&(result=[]),null!=this.parent?(result.push(this.parent),this.parent.containers(toRoot,result)):toRoot?(result.push(this.context),this.context.containers(!0,result)):result},Layer.prototype.ancestors=function(){return this.containers()},Layer.prototype.root=function(){return null===this.parent?this:_.last(this.ancestors())},Layer.prototype.childrenAbove=function(point,originX,originY){return null==originX&&(originX=0),null==originY&&(originY=0),_.filter(this.children,function(layer){return Utils.framePointForOrigin(layer.frame,originX,originY).y<point.y})},Layer.prototype.childrenBelow=function(point,originX,originY){return null==originX&&(originX=0),null==originY&&(originY=0),_.filter(this.children,function(layer){return Utils.framePointForOrigin(layer.frame,originX,originY).y>point.y})},Layer.prototype.childrenLeft=function(point,originX,originY){return null==originX&&(originX=0),null==originY&&(originY=0),_.filter(this.children,function(layer){return Utils.framePointForOrigin(layer.frame,originX,originY).x<point.x})},Layer.prototype.childrenRight=function(point,originX,originY){return null==originX&&(originX=0),null==originY&&(originY=0),_.filter(this.children,function(layer){return Utils.framePointForOrigin(layer.frame,originX,originY).x>point.x})},Layer.prototype._parentOrContext=function(){return this.parent?this.parent:this._context._parent?this._context._parent:void 0},Layer.define("superLayer",{enumerable:!1,exportable:!1,importable:!1,get:function(){return this.parent},set:function(value){return this.parent=value}}),Layer.define("subLayers",{enumerable:!1,exportable:!1,importable:!1,get:function(){return this.children}}),Layer.define("siblingLayers",{enumerable:!1,exportable:!1,importable:!1,get:function(){return this.siblings}}),Layer.prototype.addSubLayer=function(layer){return this.addChild(layer)},Layer.prototype.removeSubLayer=function(layer){return this.removeChild(layer)},Layer.prototype.subLayersByName=function(name){return this.childrenWithName(name)},Layer.prototype.siblingLayersByName=function(name){return this.siblingsWithName(name)},Layer.prototype.subLayersAbove=function(point,originX,originY){return null==originX&&(originX=0),null==originY&&(originY=0),this.childrenAbove(point,originX,originY)},Layer.prototype.subLayersBelow=function(point,originX,originY){return null==originX&&(originX=0),null==originY&&(originY=0),this.childrenBelow(point,originX,originY)},Layer.prototype.subLayersLeft=function(point,originX,originY){return null==originX&&(originX=0),null==originY&&(originY=0),this.childrenLeft(point,originX,originY)},Layer.prototype.subLayersRight=function(point,originX,originY){return null==originX&&(originX=0),null==originY&&(originY=0),this.childrenRight(point,originX,originY)},Layer.prototype.animate=function(properties,options){var animation,stateName;return null==options&&(options={}),_.isString(properties)?(stateName=properties,null!=options.options&&(options=options.options),this.states.machine.switchTo(stateName,options)):(properties=_.clone(properties),null!=properties.properties&&(options=properties,properties=options.properties,delete options.properties),null!=properties.options&&(options=_.defaults({},options,properties.options),delete properties.options),options=_.defaults({},options,this.animationOptions),null==options.start&&(options.start=!0),animation=new Animation(this,properties,options),options.start&&animation.start(),animation)},Layer.prototype.stateCycle=function(){var args,options,states;return args=1<=arguments.length?slice.call(arguments,0):[],states=_.flatten(args),_.isObject(_.last(states))&&(options=states.pop()),this.animate(this.states.machine.next(states),options)},Layer.prototype.stateSwitch=function(stateName,options){if(null==options&&(options={}),null==stateName)throw new Error("Missing required argument 'stateName' in stateSwitch()");return options.animate===!0?this.animate(stateName,options):this.animate(stateName,_.defaults({},options,{instant:!0}))},Layer.prototype.animations=function(includePending){return null==includePending&&(includePending=!1),_.filter(this._context.animations,function(_this){return function(animation){return animation.layer===_this&&(includePending||!animation.isPending)}}(this))},Layer.prototype.animatingProperties=function(){var animation,len1,len2,n,o,properties,propertyName,ref1,ref2;for(properties={},ref1=this.animations(),n=0,len1=ref1.length;n<len1;n++)for(animation=ref1[n],ref2=animation.animatingProperties(),o=0,len2=ref2.length;o<len2;o++)propertyName=ref2[o],properties[propertyName]=animation;return properties},Layer.define("isAnimating",{enumerable:!1,exportable:!1,get:function(){return 0!==this.animations().length}}),Layer.prototype.animateStop=function(){var ref1;return _.invokeMap(this.animations(),"stop"),null!=(ref1=this._draggable)?ref1.animateStop():void 0},Layer.prototype.bringToFront=function(){var layer,len1,maxIndex,n,ref1,ref2,siblings;if(maxIndex=null,siblings=null!=(ref1=null!=(ref2=this.parent)?ref2._children:void 0)?ref1:this.context._layers,!(siblings.count<=1)){for(n=0,len1=siblings.length;n<len1;n++)layer=siblings[n],layer!==this&&(null==maxIndex&&(maxIndex=layer.index),layer.index>maxIndex&&(maxIndex=layer.index));return null!=maxIndex?this.index=maxIndex+1:void 0}},Layer.prototype.sendToBack=function(){var layer,len1,minIndex,n,ref1,ref2,siblings;if(minIndex=null,siblings=null!=(ref1=null!=(ref2=this.parent)?ref2._children:void 0)?ref1:this.context._layers,!(siblings.count<=1)){for(n=0,len1=siblings.length;n<len1;n++)layer=siblings[n],layer!==this&&(null==minIndex&&(minIndex=layer.index),layer.index<minIndex&&(minIndex=layer.index));return null!=minIndex?this.index=minIndex-1:void 0}},Layer.prototype.placeBefore=function(layer){var l,len1,n,ref1;if(!(indexOf.call(this.siblingLayers,layer)<0)){for(ref1=this.siblingLayers,n=0,len1=ref1.length;n<len1;n++)l=ref1[n],l.index<=layer.index&&(l.index-=1);return this.index=layer.index+1}},Layer.prototype.placeBehind=function(layer){var l,len1,n,ref1;if(!(indexOf.call(this.siblingLayers,layer)<0)){for(ref1=this.siblingLayers,n=0,len1=ref1.length;n<len1;n++)l=ref1[n],l.index>=layer.index&&(l.index+=1);return this.index=layer.index-1}},Layer.define("states",{enumerable:!1,exportable:!1,importable:!1,get:function(){return null==this._states&&(this._states=new LayerStates(this)),this._states},set:function(states){return this.states.machine.reset(),_.extend(this.states,states)}}),Layer.define("stateNames",{enumerable:!1,exportable:!1,importable:!1,get:function(){return this.states.machine.stateNames}}),Layer.define("draggable",{importable:!1,exportable:!1,get:function(){return null!=this._draggable?this._draggable:this._draggable=new LayerDraggable(this)},set:function(value){if(_.isBoolean(value))return this.draggable.enabled=value}}),Layer.define("pinchable",{importable:!1,exportable:!1,get:function(){return null!=this._pinchable?this._pinchable:this._pinchable=new LayerPinchable(this)},set:function(value){if(_.isBoolean(value))return this.pinchable.enabled=value}}),Layer.define("scrollFrame",{importable:!1,get:function(){var frame;return frame={x:this.scrollX,y:this.scrollY,width:this.width,height:this.height}},set:function(frame){return this.scrollX=frame.x,this.scrollY=frame.y}}),Layer.define("scrollX",{get:function(){return this._element.scrollLeft},set:function(value){return _.isNumber(value)||layerValueTypeError("scrollX",value),this._element.scrollLeft=value}}),Layer.define("scrollY",{get:function(){return this._element.scrollTop},set:function(value){return _.isNumber(value)||layerValueTypeError("scrollY",value),this._element.scrollTop=value}}),Layer.define("_domEventManager",{get:function(){return this._context.domEventManager.wrap(this._element)}}),Layer.prototype.emit=function(){var args,event,eventName,len1,n,point,ref1,ref2,ref3,touch;if(eventName=arguments[0],args=2<=arguments.length?slice.call(arguments,1):[],!this._cancelClickEventInDragSession||this._draggable||eventName!==Events.Click&&eventName!==Events.Tap&&eventName!==Events.TapStart&&eventName!==Events.TapEnd&&eventName!==Events.LongPress&&eventName!==Events.LongPressStart&&eventName!==Events.LongPressEnd||LayerDraggable._globalDidDrag!==!0){if((null!=(null!=(ref1=args[0])?ref1.clientX:void 0)||null!=(null!=(ref2=args[0])?ref2.clientY:void 0))&&(event=args[0],point={x:event.clientX,y:event.clientY},event.point=Utils.convertPointFromContext(point,this,!0),event.contextPoint=Utils.convertPointFromContext(point,this.context,!0),null!=event.touches))for(ref3=event.touches,n=0,len1=ref3.length;n<len1;n++)touch=ref3[n],point={x:touch.clientX,y:touch.clientY},touch.point=Utils.convertPointFromContext(point,this,!0),touch.contextPoint=Utils.convertPointFromContext(point,this.context,!0);return Layer.__super__.emit.apply(this,[eventName].concat(slice.call(args),[this]))}},Layer.prototype.once=function(eventName,listener){return Layer.__super__.once.call(this,eventName,listener),this._addListener(eventName,listener)},Layer.prototype.addListener=function(eventName,listener){if(!eventName)throw Error("Layer.on needs a valid event name");if(!listener)throw Error("Layer.on needs an event listener");return Layer.__super__.addListener.call(this,eventName,listener),this._addListener(eventName,listener)},Layer.prototype.removeListener=function(eventName,listener){if(!eventName)throw Error("Layer.off needs a valid event name");return Layer.__super__.removeListener.call(this,eventName,listener),this._removeListener(eventName,listener)},Layer.prototype._addListener=function(eventName,listener){if(_.startsWith(eventName,"change:")||(this.ignoreEvents=!1),(Utils.domValidEvent(this._element,eventName)||indexOf.call(_.values(Gestures),eventName)>=0)&&!this._domEventManager.listeners(eventName).length)return this._domEventManager.addEventListener(eventName,function(_this){return function(event){return _this.emit(eventName,event)}}(this))},Layer.prototype._removeListener=function(eventName,listener){if(!this.listeners(eventName).length)return this._domEventManager.removeAllListeners(eventName)},Layer.prototype._parentDraggableLayer=function(){var layer,len1,n,ref1,ref2;for(ref1=this.ancestors(),n=0,len1=ref1.length;n<len1;n++)if(layer=ref1[n],null!=(ref2=layer._draggable)?ref2.enabled:void 0)return layer;return null},Layer.prototype.on=Layer.prototype.addListener,Layer.prototype.off=Layer.prototype.removeListener,Layer.prototype.onClick=function(cb){return this.on(Events.Click,cb)},Layer.prototype.onDoubleClick=function(cb){return this.on(Events.DoubleClick,cb)},Layer.prototype.onScrollStart=function(cb){return this.on(Events.ScrollStart,cb)},Layer.prototype.onScroll=function(cb){return this.on(Events.Scroll,cb)},Layer.prototype.onScrollEnd=function(cb){return this.on(Events.ScrollEnd,cb)},Layer.prototype.onScrollAnimationDidStart=function(cb){return this.on(Events.ScrollAnimationDidStart,cb)},Layer.prototype.onScrollAnimationDidEnd=function(cb){return this.on(Events.ScrollAnimationDidEnd,cb)},Layer.prototype.onTouchStart=function(cb){return this.on(Events.TouchStart,cb)},Layer.prototype.onTouchEnd=function(cb){return this.on(Events.TouchEnd,cb)},Layer.prototype.onTouchMove=function(cb){return this.on(Events.TouchMove,cb)},Layer.prototype.onMouseUp=function(cb){return this.on(Events.MouseUp,cb)},Layer.prototype.onMouseDown=function(cb){return this.on(Events.MouseDown,cb)},Layer.prototype.onMouseOver=function(cb){return this.on(Events.MouseOver,cb)},Layer.prototype.onMouseOut=function(cb){return this.on(Events.MouseOut,cb)},Layer.prototype.onMouseEnter=function(cb){return this.on(Events.MouseEnter,cb)},Layer.prototype.onMouseLeave=function(cb){return this.on(Events.MouseLeave,cb); },Layer.prototype.onMouseMove=function(cb){return this.on(Events.MouseMove,cb)},Layer.prototype.onMouseWheel=function(cb){return this.on(Events.MouseWheel,cb)},Layer.prototype.onAnimationStart=function(cb){return this.on(Events.AnimationStart,cb)},Layer.prototype.onAnimationStop=function(cb){return this.on(Events.AnimationStop,cb)},Layer.prototype.onAnimationEnd=function(cb){return this.on(Events.AnimationEnd,cb)},Layer.prototype.onAnimationDidStart=function(cb){return this.on(Events.AnimationDidStart,cb)},Layer.prototype.onAnimationDidStop=function(cb){return this.on(Events.AnimationDidStop,cb)},Layer.prototype.onAnimationDidEnd=function(cb){return this.on(Events.AnimationDidEnd,cb)},Layer.prototype.onImageLoaded=function(cb){return this.on(Events.ImageLoaded,cb)},Layer.prototype.onImageLoadError=function(cb){return this.on(Events.ImageLoadError,cb)},Layer.prototype.onImageLoadCancelled=function(cb){return this.on(Events.ImageLoadCancelled,cb)},Layer.prototype.onMove=function(cb){return this.on(Events.Move,cb)},Layer.prototype.onDragStart=function(cb){return this.on(Events.DragStart,cb)},Layer.prototype.onDragWillMove=function(cb){return this.on(Events.DragWillMove,cb)},Layer.prototype.onDragMove=function(cb){return this.on(Events.DragMove,cb)},Layer.prototype.onDragDidMove=function(cb){return this.on(Events.DragDidMove,cb)},Layer.prototype.onDrag=function(cb){return this.on(Events.Drag,cb)},Layer.prototype.onDragEnd=function(cb){return this.on(Events.DragEnd,cb)},Layer.prototype.onDragAnimationStart=function(cb){return this.on(Events.DragAnimationStart,cb)},Layer.prototype.onDragAnimationEnd=function(cb){return this.on(Events.DragAnimationEnd,cb)},Layer.prototype.onDirectionLockStart=function(cb){return this.on(Events.DirectionLockStart,cb)},Layer.prototype.onStateSwitchStart=function(cb){return this.on(Events.StateSwitchStart,cb)},Layer.prototype.onStateSwitchStop=function(cb){return this.on(Events.StateSwitchStop,cb)},Layer.prototype.onStateSwitchEnd=function(cb){return this.on(Events.StateSwitchEnd,cb)},Layer.prototype.onStateWillSwitch=function(cb){return this.on(Events.StateSwitchStart,cb)},Layer.prototype.onStateDidSwitch=function(cb){return this.on(Events.StateSwitchEnd,cb)},Layer.prototype.onTap=function(cb){return this.on(Events.Tap,cb)},Layer.prototype.onTapStart=function(cb){return this.on(Events.TapStart,cb)},Layer.prototype.onTapEnd=function(cb){return this.on(Events.TapEnd,cb)},Layer.prototype.onDoubleTap=function(cb){return this.on(Events.DoubleTap,cb)},Layer.prototype.onForceTap=function(cb){return this.on(Events.ForceTap,cb)},Layer.prototype.onForceTapChange=function(cb){return this.on(Events.ForceTapChange,cb)},Layer.prototype.onForceTapStart=function(cb){return this.on(Events.ForceTapStart,cb)},Layer.prototype.onForceTapEnd=function(cb){return this.on(Events.ForceTapEnd,cb)},Layer.prototype.onLongPress=function(cb){return this.on(Events.LongPress,cb)},Layer.prototype.onLongPressStart=function(cb){return this.on(Events.LongPressStart,cb)},Layer.prototype.onLongPressEnd=function(cb){return this.on(Events.LongPressEnd,cb)},Layer.prototype.onSwipe=function(cb){return this.on(Events.Swipe,cb)},Layer.prototype.onSwipeStart=function(cb){return this.on(Events.SwipeStart,cb)},Layer.prototype.onSwipeEnd=function(cb){return this.on(Events.SwipeEnd,cb)},Layer.prototype.onSwipeUp=function(cb){return this.on(Events.SwipeUp,cb)},Layer.prototype.onSwipeUpStart=function(cb){return this.on(Events.SwipeUpStart,cb)},Layer.prototype.onSwipeUpEnd=function(cb){return this.on(Events.SwipeUpEnd,cb)},Layer.prototype.onSwipeDown=function(cb){return this.on(Events.SwipeDown,cb)},Layer.prototype.onSwipeDownStart=function(cb){return this.on(Events.SwipeDownStart,cb)},Layer.prototype.onSwipeDownEnd=function(cb){return this.on(Events.SwipeDownEnd,cb)},Layer.prototype.onSwipeLeft=function(cb){return this.on(Events.SwipeLeft,cb)},Layer.prototype.onSwipeLeftStart=function(cb){return this.on(Events.SwipeLeftStart,cb)},Layer.prototype.onSwipeLeftEnd=function(cb){return this.on(Events.SwipeLeftEnd,cb)},Layer.prototype.onSwipeRight=function(cb){return this.on(Events.SwipeRight,cb)},Layer.prototype.onSwipeRightStart=function(cb){return this.on(Events.SwipeRightStart,cb)},Layer.prototype.onSwipeRightEnd=function(cb){return this.on(Events.SwipeRightEnd,cb)},Layer.prototype.onPan=function(cb){return this.on(Events.Pan,cb)},Layer.prototype.onPanStart=function(cb){return this.on(Events.PanStart,cb)},Layer.prototype.onPanEnd=function(cb){return this.on(Events.PanEnd,cb)},Layer.prototype.onPanLeft=function(cb){return this.on(Events.PanLeft,cb)},Layer.prototype.onPanRight=function(cb){return this.on(Events.PanRight,cb)},Layer.prototype.onPanUp=function(cb){return this.on(Events.PanUp,cb)},Layer.prototype.onPanDown=function(cb){return this.on(Events.PanDown,cb)},Layer.prototype.onPinch=function(cb){return this.on(Events.Pinch,cb)},Layer.prototype.onPinchStart=function(cb){return this.on(Events.PinchStart,cb)},Layer.prototype.onPinchEnd=function(cb){return this.on(Events.PinchEnd,cb)},Layer.prototype.onScale=function(cb){return this.on(Events.Scale,cb)},Layer.prototype.onScaleStart=function(cb){return this.on(Events.ScaleStart,cb)},Layer.prototype.onScaleEnd=function(cb){return this.on(Events.ScaleEnd,cb)},Layer.prototype.onRotate=function(cb){return this.on(Events.Rotate,cb)},Layer.prototype.onRotateStart=function(cb){return this.on(Events.RotateStart,cb)},Layer.prototype.onRotateEnd=function(cb){return this.on(Events.RotateEnd,cb)},Layer.prototype._showHint=function(targetLayer){var frame,layer,len1,len2,n,o,parent,ref1,ref2;if(this.visible&&0!==this.opacity){if(!this.shouldShowHint(targetLayer)){for(ref1=this.children,n=0,len1=ref1.length;n<len1;n++)layer=ref1[n],layer._showHint(targetLayer);return null}for(frame=this.canvasFrame,ref2=this.ancestors(),o=0,len2=ref2.length;o<len2;o++)if(parent=ref2[o],parent.clip&&(frame=Utils.frameIntersection(frame,parent.canvasFrame)),!frame)return;return this.showHint(frame),_.invokeMap(this.children,"_showHint")}},Layer.prototype.willSeemToDoSomething=function(){return!this.ignoreEvents&&(!this._draggable||this._draggable.isDragging!==!1||this._draggable.isMoving!==!1)},Layer.prototype.shouldShowHint=function(){var eventName,len1,len2,n,o,parent,ref1,ref2;if(this.ignoreEvents===!0)return!1;if(this.isAnimating)return!1;for(ref1=this.ancestors(),n=0,len1=ref1.length;n<len1;n++)if(parent=ref1[n],parent.isAnimating)return!1;if(this._draggable&&this._draggable.horizontal===!1&&this._draggable.vertical===!1)return!1;if(0===this.opacity)return!1;for(ref2=this.listenerEvents(),o=0,len2=ref2.length;o<len2;o++)if(eventName=ref2[o],Events.isInteractive(eventName))return!0;return!1},Layer.prototype.showHint=function(highlightFrame){var animation,layer;return layer=new Layer({frame:Utils.frameInset(highlightFrame,-1),backgroundColor:null,borderColor:Framer.Defaults.Hints.color,borderRadius:this.borderRadius*Utils.average([this.canvasScaleX(),this.canvasScaleY()]),borderWidth:3}),this._draggable&&(layer.backgroundColor=null),Utils.frameInFrame(this.context.canvasFrame,highlightFrame)&&(layer.backgroundColor=null),animation=layer.animate({properties:{opacity:0},curve:"ease-out",time:.5}),animation.onAnimationEnd(function(){return layer.destroy()})},Layer.prototype.toName=function(){var ref1;return this.name?name:(null!=(ref1=this.__framerInstanceInfo)?ref1.name:void 0)||""},Layer.prototype.toInspect=function(constructor){var name;return null==constructor&&(constructor=this.constructor.name),name=this.name?"name:"+this.name+" ":"","<"+constructor+" "+this.toName()+" id:"+this.id+" "+name+" ("+Utils.roundWhole(this.x)+", "+Utils.roundWhole(this.y)+") "+Utils.roundWhole(this.width)+"x"+Utils.roundWhole(this.height)+">"},Layer}(BaseClass)},function(module,exports,__webpack_require__){var FramerCSS,Utils;Utils=__webpack_require__(4),FramerCSS="body {\n\tmargin: 0;\n}\n\n.framerContext {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tpointer-events: none;\n}\n\n.framerLayer {\n\tdisplay: block;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\tbackground-repeat: no-repeat;\n\tbackground-position: center;\n\tbackground-size: cover;\n\t-webkit-overflow-scrolling: touch;\n\t-webkit-box-sizing: border-box;\n\t-webkit-user-select: none;\n}\n\n.framerLayer input,\n.framerLayer textarea,\n.framerLayer select,\n.framerLayer option,\n.framerLayer div[contenteditable=true]\n{\n\tpointer-events: auto;\n\t-webkit-user-select: auto;\n}\n\n.framerLayer svg {\n\toverflow: visible;\n\tdisplay: block;\n\t-webkit-font-smoothing: antialiased;\n}\n\n.framerDebug {\n\tpadding: 6px;\n\tcolor: #fff;\n\tfont: 10px/1em Monaco;\n}\n",Utils.domComplete(function(){return Utils.insertCSS(FramerCSS)})},function(module,exports,__webpack_require__){var Events,Gestures,Utils,_,interactiveEvents,supportsPointerEvents,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};Utils=__webpack_require__(4),_=__webpack_require__(1)._,Gestures=__webpack_require__(18).Gestures,Events={},Events.MouseUp="mouseup",Events.MouseDown="mousedown",Events.MouseOver="mouseover",Events.MouseOut="mouseout",Events.MouseEnter="mouseenter",Events.MouseLeave="mouseleave",Events.MouseMove="mousemove",Events.MouseWheel="mousewheel",Events.DoubleClick="dblclick",Events.MouseDoubleClick="dblclick",supportsPointerEvents=null===window.onpointerdown&&null===window.onpointermove&&null===window.onpointerup,Events.PointerUp="pointerup",Events.PointerDown="pointerdown",Events.PointerOver="pointerover",Events.PointerOut="pointerout",Events.PointerMove="pointermove",Events.enableEmulatedTouchEvents=function(enable){if(null==enable&&(enable=!0),!supportsPointerEvents)return enable?(Events.TouchStart=Events.MouseDown,Events.TouchEnd=Events.MouseUp,Events.TouchMove=Events.MouseMove,Events.Click="touchend"):(Events.TouchStart="touchstart",Events.TouchEnd="touchend",Events.TouchMove="touchmove",Events.Click=Utils.isTouch()?"touchend":"mouseup")},Events.enableEmulatedTouchEvents(!Utils.isTouch()),supportsPointerEvents&&(Events.MouseUp=Events.PointerUp,Events.MouseDown=Events.PointerDown,Events.MouseOver=Events.PointerOver,Events.MouseOut=Events.PointerOut,Events.MouseMove=Events.PointerMove,Events.TouchStart=Events.PointerDown,Events.TouchEnd=Events.PointerUp,Events.TouchMove=Events.PointerMove,Events.Click=Events.PointerUp),Events.AnimationStart="start",Events.AnimationHalt="halt",Events.AnimationStop="stop",Events.AnimationEnd="end",Events.AnimationDidStart=Events.AnimationStart,Events.AnimationDidStop=Events.AnimationStop,Events.AnimationDidEnd=Events.AnimationEnd,Events.StateSwitchStart="stateswitchstart",Events.StateSwitchStop="stateswitchstop",Events.StateSwitchEnd="stateswitchend",Events.StateWillSwitch=Events.StateSwitchStart,Events.StateDidSwitch=Events.StateSwitchEnd,Events.Scroll="scroll",Events.ImageLoaded="imageload",Events.ImageLoadError="imageerror",Events.ImageLoadCancelled="imagecancelled",Events.DeviceOrientation="deviceorientation",Events.DeviceMotion="devicemotion",_.extend(Events,Gestures),Events.touchEvent=function(event){var ref,ref1,touchEvent;return touchEvent=null!=(ref=event.touches)?ref[0]:void 0,null==touchEvent&&(touchEvent=null!=(ref1=event.changedTouches)?ref1[0]:void 0),null==touchEvent&&(touchEvent=event),touchEvent},Events.wrap=function(element){return Framer.CurrentContext.domEventManager.wrap(element)},Events.isGesture=function(eventName){return indexOf.call(Gestures,eventName)>=0},interactiveEvents=_.values(Gestures).concat([Events.TouchStart,Events.TouchEnd,Events.MouseUp,Events.MouseDown,Events.MouseWheel,Events.DoubleClick]),Events.isInteractive=function(eventName){return indexOf.call(interactiveEvents,eventName)>=0},exports.Events=Events},function(module,exports){var Gestures;Gestures={},Gestures.Tap="tap",Gestures.TapStart="tapstart",Gestures.TapEnd="tapend",Gestures.DoubleTap="doubletap",Gestures.ForceTap="forcetap",Gestures.ForceTapChange="forcetapchange",Gestures.ForceTapStart="forcetapstart",Gestures.ForceTapEnd="forcetapend",Gestures.LongPress="longpress",Gestures.LongPressStart="longpressstart",Gestures.LongPressEnd="longpressend",Gestures.Swipe="swipe",Gestures.SwipeStart="swipestart",Gestures.SwipeEnd="swipeend",Gestures.SwipeUp="swipeup",Gestures.SwipeUpStart="swipeupstart",Gestures.SwipeUpEnd="swipeupend",Gestures.SwipeDown="swipedown",Gestures.SwipeDownStart="swipedownstart",Gestures.SwipeDownEnd="swipedownend",Gestures.SwipeLeft="swipeleft",Gestures.SwipeLeftStart="swipeleftstart",Gestures.SwipeLeftEnd="swipeleftend",Gestures.SwipeRight="swiperight",Gestures.SwipeRightStart="swiperightstart",Gestures.SwipeRightEnd="swiperightend",Gestures.EdgeSwipe="edgeswipe",Gestures.EdgeSwipeStart="edgeswipestart",Gestures.EdgeSwipeEnd="edgeswipeend",Gestures.EdgeSwipeTop="edgeswipetop",Gestures.EdgeSwipeTopStart="edgeswipetopstart",Gestures.EdgeSwipeTopEnd="edgeswipetopend",Gestures.EdgeSwipeRight="edgeswiperight",Gestures.EdgeSwipeRightStart="edgeswiperightstart",Gestures.EdgeSwipeRightEnd="edgeswiperightend",Gestures.EdgeSwipeBottom="edgeswipebottom",Gestures.EdgeSwipeBottomStart="edgeswipebottomstart",Gestures.EdgeSwipeBottomEnd="edgeswipebottomend",Gestures.EdgeSwipeLeft="edgeswipeleft",Gestures.EdgeSwipeLeftStart="edgeswipeleftstart",Gestures.EdgeSwipeLeftEnd="edgeswipeleftend",Gestures.Pan="pan",Gestures.PanStart="panstart",Gestures.PanEnd="panend",Gestures.PanLeft="panleft",Gestures.PanRight="panright",Gestures.PanUp="panup",Gestures.PanDown="pandown",Gestures.Pinch="pinch",Gestures.PinchStart="pinchstart",Gestures.PinchEnd="pinchend",Gestures.Scale="scale",Gestures.ScaleStart="scalestart",Gestures.ScaleEnd="scaleend",Gestures.Rotate="rotate",Gestures.RotateStart="rotatestart",Gestures.RotateEnd="rotateend",exports.Gestures=Gestures},function(module,exports,__webpack_require__){var Originals,Utils,_;_=__webpack_require__(1)._,Utils=__webpack_require__(4),Originals={Layer:{backgroundColor:"rgba(123, 123, 123, 0.5)",color:"white",borderColor:"rgba(123, 123, 123, 0.5)",width:200,height:200},Animation:{curve:"ease",time:1,repeat:0,delay:0,debug:!1,colorModel:"husl",animate:!0,looping:!1},Context:{perspective:0,perspectiveOriginX:.5,perspectiveOriginY:.5,parent:null,name:null},DeviceComponent:{fullScreen:!1,padding:50,deviceType:"apple-iphone-8-silver",deviceZoom:"fit",contentZoom:1,orientation:"portrait",keyboard:!1,animationOptions:{time:.3,curve:"ease-in-out"}},LayerDraggable:{momentum:!0,momentumOptions:{friction:2.1,tolerance:1},bounce:!0,bounceOptions:{friction:40,tension:200,tolerance:1},directionLock:!1,directionLockThreshold:{x:10,y:10},overdrag:!0,overdragScale:.5,pixelAlign:!0,velocityTimeout:100,velocityScale:890},FrictionSimulator:{friction:2,tolerance:.1},Spring:{dampingRatio:.5,mass:1,velocity:0},SpringSimulator:{tension:500,friction:10,tolerance:1e-4},MomentumBounceSimulator:{momentum:{friction:2,tolerance:10},bounce:{tension:500,friction:10,tolerance:1}},GridComponent:{rows:3,columns:3,spacing:0,backgroundColor:"transparent"},ScrollComponent:{clip:!0,mouseWheelEnabled:!1,backgroundColor:null},Hints:{color:"rgba(144, 19, 254, 0.8)"},Shadow:{x:0,y:0,color:"rgba(123, 123, 123, 0.5)",type:"box",blur:0,spread:0}},exports.Defaults={getDefaults:function(className,options){var defaults,k,ref,v;if(!Originals.hasOwnProperty(className))return{};if(!Framer.Defaults.hasOwnProperty(className))return{};options=_.clone(options),defaults=_.cloneDeep(Originals[className]),ref=Framer.Defaults[className];for(k in ref)v=ref[k],!_.isFunction(v)||"Animation"===className&&"curve"===k?defaults[k]=v:defaults[k]=v();for(k in defaults)v=defaults[k],options.hasOwnProperty(k)||(options[k]=v);return options},setup:function(){var className,classValues,k,ref,v;if(window.FramerDefaults){ref=window.FramerDefaults;for(className in ref){classValues=ref[className];for(k in classValues)v=classValues[k],Originals[className][k]=v}}return exports.Defaults.reset()},reset:function(){return window.Framer.Defaults=_.cloneDeep(Originals)}}},function(module,exports,__webpack_require__){var Animator,BaseClass,Config,Curves,Defaults,LinearAnimator,SVG,Utils,_,evaluateRelativeProperty,isRelativeProperty,numberRE,relativePropertyRE,slice=[].slice,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};_=__webpack_require__(1)._,Utils=__webpack_require__(4),Config=__webpack_require__(16).Config,Defaults=__webpack_require__(19).Defaults,BaseClass=__webpack_require__(6).BaseClass,Animator=__webpack_require__(21).Animator,LinearAnimator=__webpack_require__(22).LinearAnimator,SVG=__webpack_require__(23).SVG,Curves=__webpack_require__(24),numberRE=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/,relativePropertyRE=new RegExp("^(?:([+-])=|)("+numberRE.source+")([a-z%]*)$","i"),isRelativeProperty=function(v){return _.isString(v)&&relativePropertyRE.test(v)},evaluateRelativeProperty=function(target,k,v){var match,number,ref,rest,sign,unit;return ref=relativePropertyRE.exec(v),match=ref[0],sign=ref[1],number=ref[2],unit=ref[3],rest=5<=ref.length?slice.call(ref,4):[],sign?target[k]+(sign+1)*number:+number},exports.Animation=function(superClass){function Animation(){var args,layer,options,properties;if(args=1<=arguments.length?slice.call(arguments,0):[],this._updateTemplateValue=bind(this._updateTemplateValue,this),this._updateShadows=bind(this._updateShadows,this),this._updateGradientValue=bind(this._updateGradientValue,this),this._updateColorValue=bind(this._updateColorValue,this),this._updateNumericObjectValue=bind(this._updateNumericObjectValue,this),this._calculateNumericObjectValue=bind(this._calculateNumericObjectValue,this),this._updateNumberValue=bind(this._updateNumberValue,this),this._updateValues=bind(this._updateValues,this),this._prepareUpdateValues=bind(this._prepareUpdateValues,this),this._update=bind(this._update,this),this.finish=bind(this.finish,this),this._start=bind(this._start,this),this._noop=bind(this._noop,this),this._instant=bind(this._instant,this),this.start=bind(this.start,this),layer=null,properties={},options={},3===arguments.length&&(layer=args[0],properties=args[1],options={},null!=properties.options&&(options=_.clone(properties.options)),args[2]&&(options=_.extend({},options,args[2]))),2===arguments.length&&(layer=args[0],properties=null!=args[1].properties?args[1].properties:args[1],null!=args[1].options&&(options=args[1].options)),1===arguments.length&&(layer=args[0].layer,properties=args[0].properties,options=null!=args[0].options?args[0].options:args[0]),delete options.layer,delete options.properties,delete options.options,this.options=_.cloneDeep(Defaults.getDefaults("Animation",options)),Animation.__super__.constructor.apply(this,arguments),this._layer=layer,!(layer instanceof _Layer))throw Error("Animation: missing layer");this.properties=Animation.filterAnimatableProperties(properties,layer),properties.origin&&console.warn("Animation.origin: please use layer.originX and layer.originY"),_.isString(this.options.curve)&&(this.options.curve=Curves.fromString(this.options.curve)),this.options.curve!==Curves.Spring&&this.options.curve!==Curves.Bezier||(this.options.curve=this.options.curve.call()),this._originalState=this._currentState(),this._repeatCounter=this.options.repeat}return extend(Animation,superClass),Animation.define("layer",{get:function(){return this._layer}}),Animation.define("isPending",{get:function(){return null!=this._delayTimer}}),Animation.define("isAnimating",{get:function(){return indexOf.call(this.layer.animations(),this)>=0}}),Animation.define("looping",{get:function(){return this.options.looping},set:function(value){var ref,ref1;if(null!=(ref=this.options)&&(ref.looping=value),(null!=(ref1=this.options)?ref1.looping:void 0)&&null!=this.layer&&!this.isAnimating)return this.restart()}}),Animation.define("isNoop",Animation.simpleProperty("isNoop",!1)),Animation.prototype.start=function(){var animation,k,property,ref,ref1,ref2,start,v;this._animator=this.options.curve(this.options),this._target=this.layer,this._stateA=this._currentState(),this._stateB={},ref=this.properties;for(k in ref)v=ref[k],this._stateA[k]!==v&&(_.isFunction(v)?v=v(this.layer,k):isRelativeProperty(v)&&(v=evaluateRelativeProperty(this._target,k,v)),this._stateA[k]!==v&&(this._stateB[k]=v));if(0===_.keys(this._stateA).length)return console.warn("Animation: nothing to animate, no animatable properties"),this._noop();if(_.isEqual(this._stateA,this._stateB))return console.warn("Animation: nothing to animate, all properties are equal to what it is now"),this._noop();if(0===_.keys(this._stateB).length)return this._noop();ref1=this._target.animatingProperties();for(property in ref1)animation=ref1[property],this._stateA.hasOwnProperty(property)&&animation.stop(),"x"===property&&(this._stateA.hasOwnProperty("minX")||this._stateA.hasOwnProperty("midX")||this._stateA.hasOwnProperty("maxX"))&&animation.stop(),"y"===property&&(this._stateA.hasOwnProperty("minY")||this._stateA.hasOwnProperty("midY")||this._stateA.hasOwnProperty("maxY"))&&animation.stop();if(this.options.debug){console.log("Animation.start"),ref2=this._stateB;for(k in ref2)v=ref2[k],console.log("\t"+k+": "+this._stateA[k]+" -> "+this._stateB[k])}return _.isFunction(this.options.onStart)&&this.on(Events.AnimationStart,this.options.onStart),_.isFunction(this.options.onHalt)&&this.on(Events.AnimationHalt,this.options.onHalt),_.isFunction(this.options.onStop)&&this.on(Events.AnimationStop,this.options.onStop),_.isFunction(this.options.onEnd)&&this.on(Events.AnimationEnd,this.options.onEnd),this.once("end",function(_this){return function(){if((_this._repeatCounter>0||_this.looping)&&(_this.restart(),!_this.looping))return _this._repeatCounter--}}(this)),this._prepareUpdateValues(),start=this.options.animate===!1||this.options.instant===!0?this._instant:this._start,this.layer.context.addAnimation(this),this.options.delay?this._delayTimer=Utils.delay(this.options.delay,start):start(),!0},Animation.prototype.stop=function(emit){return null==emit&&(emit=!0),null!=this._delayTimer&&(Framer.CurrentContext.removeTimer(this._delayTimer),this._delayTimer=null),this.layer.context.removeAnimation(this),emit&&this.emit(Events.AnimationHalt),emit&&this.emit(Events.AnimationStop),Framer.Loop.off("update",this._update)},Animation.prototype.reverse=function(){var key,options,properties,ref,value;properties=_.clone(this._originalState),ref=this.properties;for(key in ref)value=ref[key],SVG.isPath(value)&&(value.reversed=!value.reversed,properties[key]=value);return options=_.clone(this.options),new Animation(this.layer,properties,options)},Animation.prototype.reset=function(){var k,ref,results,v;ref=this._stateA,results=[];for(k in ref)v=ref[k],results.push(this._target[k]=v);return results},Animation.prototype.restart=function(){return this.reset(),this.start()},Animation.prototype.copy=function(){var options,properties;return properties=_.clone(this.properties),options=_.clone(this.options),new Animation(this.layer,properties,options)},Animation.prototype.revert=function(){return this.reverse()},Animation.prototype.inverse=function(){return this.reverse()},Animation.prototype.invert=function(){return this.reverse()},Animation.prototype.emit=function(event){return Animation.__super__.emit.apply(this,arguments),this.layer.emit(event,this)},Animation.prototype.animatingProperties=function(){return _.keys(this._stateA)},Animation.prototype._instant=function(){return this.emit(Events.AnimationStart),this._updateValues(1),this.emit(Events.AnimationStop),this.emit(Events.AnimationEnd)},Animation.prototype._noop=function(){return this.isNoop=!0,!this.isNoop},Animation.prototype._start=function(){return this._delayTimer=null,this.emit(Events.AnimationStart),this._previousValue=0,Framer.Loop.on("update",this._update)},Animation.prototype.finish=function(){return this.stop(),this._updateValues(1)},Animation.prototype._update=function(delta){var emit;return this._animator.finished()?(this._updateValues(1),this.stop(emit=!1),this.emit(Events.AnimationStop),this.emit(Events.AnimationEnd)):this._updateValues(this._animator.next(delta))},Animation.prototype._prepareUpdateValues=function(){var base,direction,end,k,path,ref,results,start,v;this._valueUpdaters={},ref=this._stateB,results=[];for(k in ref)if(v=ref[k],SVG.isPath(v)){switch(path=v,direction=null,start=null,end=null,k){case"x":case"minX":case"midX":case"maxX":case"width":direction="horizontal";break;case"y":case"minY":case"midY":case"maxY":case"height":direction="vertical";break;case"rotation":case"rotationZ":case"rotationX":case"rotationY":direction="angle"}results.push(this._valueUpdaters[k]=path.valueUpdater(direction,this._target,this._target[k]))}else Color.isColorObject(v)||Color.isColorObject(this._stateA[k])?results.push(this._valueUpdaters[k]=this._updateColorValue):Gradient.isGradient(v)||Gradient.isGradient(this._stateA[k])?(this._valueUpdaters[k]=this._updateGradientValue,results.push(null!=(base=this._stateA)[k]?base[k]:base[k]=Gradient.multiplyAlpha(v,0))):"borderWidth"===k?results.push(this._valueUpdaters[k]=this._updateNumericObjectValue.bind(this,["top","left","bottom","right"])):"borderRadius"===k?results.push(this._valueUpdaters[k]=this._updateNumericObjectValue.bind(this,["topLeft","topRight","bottomRight","bottomLeft"])):"template"===k?results.push(this._valueUpdaters[k]=this._updateTemplateValue):"shadows"===k?results.push(this._valueUpdaters[k]=this._updateShadows):results.push(this._valueUpdaters[k]=this._updateNumberValue);return results},Animation.prototype._updateValues=function(value){var delta,k,ref,v;delta=value-this._previousValue,this._previousValue=value,ref=this._stateB;for(k in ref)v=ref[k],this._valueUpdaters[k](k,value,delta);return null},Animation.prototype._updateNumberValue=function(key,value){return this._target[key]=Utils.mapRange(value,0,1,this._stateA[key],this._stateB[key])},Animation.prototype._interpolateNumericObjectValues=function(propKeys,valueA,valueB,value,flatten){var i,keyValueA,keyValueB,len,propKey,result;for(null==flatten&&(flatten=!0),result={},i=0,len=propKeys.length;i<len;i++)propKey=propKeys[i],keyValueA=_.isNumber(valueA)?valueA:null!=valueA?valueA[propKey]:void 0,keyValueB=_.isNumber(valueB)?valueB:null!=valueB?valueB[propKey]:void 0,null==keyValueA&&(keyValueA=keyValueB),null==keyValueB&&(keyValueB=keyValueA),result[propKey]=Utils.mapRange(value,0,1,keyValueA,keyValueB);return flatten&&1===_.uniq(_.values(result)).length&&(result=result[propKeys[0]]),result},Animation.prototype._calculateNumericObjectValue=function(propKeys,key,value,flatten){var valueA,valueB;return null==flatten&&(flatten=!0),valueA=this._stateA[key],valueB=this._stateB[key],this._interpolateNumericObjectValues(propKeys,valueA,valueB,value,flatten)},Animation.prototype._updateNumericObjectValue=function(propKeys,key,value,flatten){var result;return null==flatten&&(flatten=!0),result=this._calculateNumericObjectValue(propKeys,key,value,flatten),this._target[key]=result},Animation.prototype._updateColorValue=function(key,value){return this._target[key]=Color.mix(this._stateA[key],this._stateB[key],value,!1,this.options.colorModel)},Animation.prototype._updateGradientValue=function(key,value){var gradientA,gradientB,ref;return this._stateB[key]||1!==value?(gradientA=Gradient._asPlainObject(this._stateA[key]),gradientB=Gradient._asPlainObject(null!=(ref=this._stateB[key])?ref:Gradient.multiplyAlpha(gradientA,0)),this._target[key]=Gradient.mix(_.defaults(gradientA,gradientB),_.defaults(gradientB,gradientA),value,this.options.colorModel)):void(this._target[key]=this._stateB[key])},Animation.prototype._updateShadows=function(key,value){var fromShadow,i,index,numShadows,ref,ref1,ref2,ref3,ref4,ref5,ref6,ref7,ref8,result,toShadow,type;if(1===value)return void(this._target[key]=this._stateB[key]);for(result=[],numShadows=Math.max(null!=(ref=null!=(ref1=this._stateA[key])?ref1.length:void 0)?ref:0,null!=(ref2=null!=(ref3=this._stateB[key])?ref3.length:void 0)?ref2:0),index=i=0,ref4=numShadows;0<=ref4?i<ref4:i>ref4;index=0<=ref4?++i:--i)fromShadow=null!=(ref5=this._stateA[key])?ref5[index]:void 0,toShadow=null!=(ref6=this._stateB[key])?ref6[index]:void 0,null==toShadow&&null==fromShadow||(type=null!=(ref7=null!=(ref8=null!=toShadow?toShadow.type:void 0)?ref8:null!=fromShadow?fromShadow.type:void 0)?ref7:Framer.Defaults.Shadow.type,null==fromShadow&&(fromShadow=_.defaults({color:null,type:type},Framer.Defaults.Shadow)),null==toShadow&&(toShadow=_.defaults({color:null,type:type},Framer.Defaults.Shadow)),_.defaults(fromShadow,Framer.Defaults.Shadow),_.defaults(toShadow,Framer.Defaults.Shadow),result[index]=this._interpolateNumericObjectValues(["x","y","blur","spread"],fromShadow,toShadow,value,!1),result[index].color=Color.mix(fromShadow.color,toShadow.color,value,!1,this.options.colorModel),result[index].type=type);return this._target[key]=result},Animation.prototype._updateTemplateValue=function(key,value){var fromData,k,ref,targetData,toData,valueA,valueB;if(fromData=this._stateA[key],toData=this._stateB[key],targetData={},!_.isObject(toData)){if(k=null!=(ref=this._target._styledText)?ref.buildTemplate():void 0,!k)return;return valueB=toData,_.isNumber(valueB)&&(valueA=_.isObject(fromData)?fromData[k]:fromData,_.isNumber(valueA)||(valueA=0),valueB=Utils.mapRange(value,0,1,valueA,valueB)),targetData[k]=valueB,void(this._target.template=targetData)}for(k in toData)valueB=toData[k],_.isNumber(valueB)&&(valueA=_.isObject(fromData)?fromData[k]:fromData,_.isNumber(valueA)||(valueA=0),valueB=Utils.mapRange(value,0,1,valueA,valueB)),targetData[k]=valueB;return this._target.template=targetData},Animation.prototype._currentState=function(){return _.pick(this.layer,_.keys(this.properties))},Animation.isAnimatable=function(v){return _.isNumber(v)||_.isFunction(v)||isRelativeProperty(v)||Color.isColorObject(v)||Gradient.isGradientObject(v)||SVG.isPath(v)},Animation.isAnimatableKey=function(k){return"gradient"===k||"borderWidth"===k||"borderRadius"===k||"template"===k||"shadows"===k},Animation.filterAnimatableProperties=function(properties,layer){var animatableProperties,derivedKey,derivedKeys,i,j,k,len,len1,matches,ref,shadowIndex,v;animatableProperties={};for(k in properties)if(v=properties[k],"frame"===k||"size"===k||"point"===k||"midPoint"===k||"path"===k){switch(k){case"frame":derivedKeys=["x","y","width","height"];break;case"size":derivedKeys=["width","height"];break;case"point":derivedKeys=["x","y"];break;case"midPoint":derivedKeys=["midX","midY"];break;case"path":derivedKeys=["x","y","rotation"];break;default:derivedKeys=[]}if(SVG.isPath(v))for("path"===k&&(layer.midPoint=v.start),i=0,len=derivedKeys.length;i<len;i++)derivedKey=derivedKeys[i],animatableProperties[derivedKey]=v;else if(_.isObject(v))_.defaults(animatableProperties,_.pick(v,derivedKeys));else if(_.isNumber(v))for(j=0,len1=derivedKeys.length;j<len1;j++)derivedKey=derivedKeys[j],animatableProperties[derivedKey]=v}else this.isAnimatable(v)?animatableProperties[k]=v:Color.isValidColorProperty(k,v)?animatableProperties[k]=new Color(v):this.isAnimatableKey(k)?animatableProperties[k]=v:(matches=k.match(/^shadow([1-9])$/))&&(null==animatableProperties.shadows&&(animatableProperties.shadows=null!=(ref=_.clone(layer.shadows))?ref:[]),shadowIndex=parseInt(matches[1])-1,null!=animatableProperties.shadows[shadowIndex]&&_.defaults(v,animatableProperties.shadows[shadowIndex]),animatableProperties.shadows[shadowIndex]=v);return animatableProperties},Animation.prototype.toInspect=function(){var ref;return"<"+this.constructor.name+" id:"+this.id+" layer:"+(null!=(ref=this.layer)?ref.toName():void 0)+" ["+_.keys(this.properties).join(", ")+"] isAnimating:"+this.isAnimating+">"; },Animation.prototype.onAnimationStart=function(cb){return this.on(Events.AnimationStart,cb)},Animation.prototype.onAnimationHalt=function(cb){return this.on(Events.AnimationHalt,cb)},Animation.prototype.onAnimationStop=function(cb){return this.on(Events.AnimationStop,cb)},Animation.prototype.onAnimationEnd=function(cb){return this.on(Events.AnimationEnd,cb)},Animation.prototype.onAnimationDidStart=function(cb){return this.on(Events.AnimationDidStart,cb)},Animation.prototype.onAnimationDidStop=function(cb){return this.on(Events.AnimationDidStop,cb)},Animation.prototype.onAnimationDidEnd=function(cb){return this.on(Events.AnimationDidEnd,cb)},Animation}(BaseClass)},function(module,exports){exports.Animator=function(){function Animator(options){null==options&&(options={}),this.setup(options)}return Animator.prototype.setup=function(options){throw Error("Not implemented")},Animator.prototype.next=function(delta){throw Error("Not implemented")},Animator.prototype.finished=function(){throw Error("Not implemented")},Animator.prototype.values=function(delta,limit){var i,j,ref,values;for(null==delta&&(delta=1/60),null==limit&&(limit=100),values=[],i=j=0,ref=limit;(0<=ref?j<=ref:j>=ref)&&(values.push(this.next(delta)),!this.finished());i=0<=ref?++j:--j);return values},Animator}()},function(module,exports,__webpack_require__){var Animator,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Animator=__webpack_require__(21).Animator,exports.LinearAnimator=function(superClass){function LinearAnimator(){return LinearAnimator.__super__.constructor.apply(this,arguments)}return extend(LinearAnimator,superClass),LinearAnimator.prototype.setup=function(options){return this.options=_.defaults(options,{time:1,precision:.001}),this._time=0},LinearAnimator.prototype.next=function(delta){return this._time+=delta,this.finished()?1:this._time/this.options.time},LinearAnimator.prototype.finished=function(){return this._time>=this.options.time-this.options.precision},LinearAnimator}(Animator)},function(module,exports,__webpack_require__){var Color,_;_=__webpack_require__(1)._,Color=__webpack_require__(11).Color,exports.SVG=function(){function SVG(){}return SVG.validFill=function(value){return Color.validColorValue(value)||_.startsWith(value,"url(")},SVG.toFill=function(value){return _.startsWith(value,"url(")?value:Color.toColor(value)},SVG.updateGradientSVG=function(svgLayer){var id,ref;if(!svgLayer.__constructor)return Gradient.isGradient(svgLayer.gradient)?(svgLayer._elementGradientSVG||(svgLayer._elementGradientSVG=document.createElementNS("http://www.w3.org/2000/svg","svg"),svgLayer._element.appendChild(svgLayer._elementGradientSVG)),id=svgLayer.id+"-gradient",svgLayer._elementGradientSVG.innerHTML="<linearGradient id='"+id+"' gradientTransform='rotate("+(svgLayer.gradient.angle-90)+", 0.5, 0.5)' >\n\t<stop offset=\"0\" stop-color='#"+svgLayer.gradient.start.toHex()+"' stop-opacity='"+svgLayer.gradient.start.a+"' />\n\t<stop offset=\"1\" stop-color='#"+svgLayer.gradient.end.toHex()+"' stop-opacity='"+svgLayer.gradient.end.a+"' />\n</linearGradient>",svgLayer.fill="url(#"+id+")"):void(null!=(ref=svgLayer._elementGradientSVG)&&(ref.innerHTML=""))},SVG.constructSVGElements=function(root,elements,PathClass,GroupClass){var children,defsResult,element,group,i,id,len,name,options,path,targets;if(targets={},children=[],null!=elements)for(i=0,len=elements.length;i<len;i++)if(element=elements[i],element instanceof SVGElement)if(name=element.getAttribute("name"),null!=name)options={},options.name=name,options.parent=root,element instanceof SVGGElement?(group=new GroupClass(element,options),children.push(group),_.extend(targets,group.elements),null!=element.id&&""!==element.id&&(targets[element.id]=group)):(element instanceof SVGPathElement||element instanceof SVGUseElement)&&(path=new PathClass(element,options),children.push(path),null!=path._path.id&&""!==path._path.id&&(id=path._path.id,targets[id]=path));else if(element instanceof SVGGElement){defsResult=this.constructSVGElements(root,element.childNodes,PathClass,GroupClass),_.extend(targets,defsResult.targets),children=children.concat(defsResult.children);continue}return{targets:targets,children:children}},SVG.isPath=function(path){return path instanceof Framer.SVGPath},SVG}()},function(module,exports,__webpack_require__){var Bezier,BezierCurveAnimator,BezierDefaults,Defaults,Spring,SpringRK4Animator,computeDampingRatio,computeDerivedCurveOptions,computeDuration,fromDefinition,parseFunction,ref,slice=[].slice;BezierCurveAnimator=__webpack_require__(25).BezierCurveAnimator,ref=__webpack_require__(26),computeDerivedCurveOptions=ref.computeDerivedCurveOptions,computeDuration=ref.computeDuration,computeDampingRatio=ref.computeDampingRatio,SpringRK4Animator=__webpack_require__(27).SpringRK4Animator,Defaults=__webpack_require__(19).Defaults,Bezier=function(){var values;return values=1<=arguments.length?slice.call(arguments,0):[],function(options){return null==options&&(options={}),values.length>0&&(options.values=values),new BezierCurveAnimator(options)}},BezierDefaults={linear:function(options){return null==options&&(options={}),Bezier(0,0,1,1)(options)},ease:function(options){return null==options&&(options={}),Bezier(.25,.1,.25,1)(options)},easeIn:function(options){return null==options&&(options={}),Bezier(.42,0,1,1)(options)},easeOut:function(options){return null==options&&(options={}),Bezier(0,0,.58,1)(options)},easeInOut:function(options){return null==options&&(options={}),Bezier(.42,0,.58,1)(options)}},Spring=function(dampingRatio,mass,velocity){var curveOptions;return curveOptions={},null!=dampingRatio&&_.isFinite(dampingRatio)&&(curveOptions.dampingRatio=dampingRatio),null!=mass&&(curveOptions.mass=mass),null!=velocity&&(curveOptions.velocity=velocity),_.isFinite(dampingRatio)||"object"!=typeof dampingRatio||(curveOptions=dampingRatio,null!=curveOptions.damping&&null==curveOptions.dampingRatio&&(curveOptions.dampingRatio=curveOptions.damping)),null==curveOptions.tension&&null==curveOptions.friction&&(curveOptions=Defaults.getDefaults("Spring",curveOptions)),function(options){var animator,derivedOptions,duration,ref1;return null!=curveOptions.dampingRatio?(duration=null!=(ref1=null!=options?options.time:void 0)?ref1:1,derivedOptions=computeDerivedCurveOptions(curveOptions.dampingRatio,duration,curveOptions.velocity,curveOptions.mass),curveOptions=_.defaults(derivedOptions,curveOptions)):null!=options&&delete options.time,options=_.defaults(curveOptions,options),animator=new SpringRK4Animator(options),null!=duration&&(animator.time=duration),animator}},_.assign(Bezier,BezierDefaults),Spring.computeDerivedCurveOptions=computeDerivedCurveOptions,Spring.computeDuration=computeDuration,Spring.computeDampingRatio=computeDampingRatio,exports.Spring=Spring,exports.Bezier=Bezier,parseFunction=function(string){var args,argumentObject,argumentsRegex,match,matches,numbers,numbersRegex,prop,property,regex,result,type,value;if(!_.isString(string))return null;if(regex=/.*(Spring|Bezier)(?:\(\s*{?([\w:\s,.]*)}?\s*\)|\.(\w+))?/,matches=regex.exec(string),null==matches)return null;if(match=matches[0],type=matches[1],args=matches[2],prop=matches[3],result={name:type,property:null,arguments:null},null!=prop)return result.property=prop,result;if(null==args)return result;for(0===args.length&&(result.arguments=[]),argumentsRegex=/\s*([\w]+)\s*:\s*([\d.]+)\s*,?/g,argumentObject={};matches=argumentsRegex.exec(args);)match=matches[0],property=matches[1],value=matches[2],value=parseFloat(value),isNaN(value)||(argumentObject[property]=value);if(_.size(argumentObject)>0)return result.arguments=argumentObject,result;for(numbersRegex=/\s*([.\d]+)\s*/g,numbers=[];matches=numbersRegex.exec(args);)match=matches[0],value=matches[1],value=parseFloat(value),numbers.push(value);return result.arguments=numbers,result},fromDefinition=function(definition){var curve;return null==definition?null:(curve=Framer.Curves[definition.name],null==curve?null:null!=definition.property?curve[definition.property]:null==definition.arguments?curve:_.isArray(definition.arguments)?curve.apply(null,definition.arguments):curve(definition.arguments))},exports.parseFunction=parseFunction,exports.fromDefinition=fromDefinition,exports.fromString=function(string){var args,func,object,pairs;if(!_.isString(string))return null;if(func=fromDefinition(parseFunction(string)),null!=func)return func;switch(func=Utils.parseFunction(string),args=func.args.map(parseFloat),func.name){case"linear":return Bezier.linear;case"ease":return Bezier.ease;case"ease-in":return Bezier.easeIn;case"ease-out":return Bezier.easeOut;case"ease-in-out":return Bezier.easeInOut;case"bezier-curve":case"cubic-bezier":return Bezier.apply(null,args);case"spring":case"spring-rk4":case"spring-dho":return pairs=_.zipWith(["tension","friction","velocity","tolerance"],args,[250,25,0,.01],function(key,value,defaults){return[key,null!=value?value:defaults]}),object=_.fromPairs(pairs),Spring(object);default:return Bezier.linear}}},function(module,exports,__webpack_require__){var Animator,BezierCurveDefaults,UnitBezier,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Animator=__webpack_require__(21).Animator,BezierCurveDefaults={linear:[0,0,1,1],ease:[.25,.1,.25,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},exports.BezierCurveAnimator=function(superClass){function BezierCurveAnimator(){return BezierCurveAnimator.__super__.constructor.apply(this,arguments)}return extend(BezierCurveAnimator,superClass),BezierCurveAnimator.prototype.setup=function(options){return _.isString(options)&&BezierCurveDefaults.hasOwnProperty(options.toLowerCase())&&(options={values:BezierCurveDefaults[options.toLowerCase()]}),options.values&&_.isString(options.values)&&BezierCurveDefaults.hasOwnProperty(options.values.toLowerCase())&&(options={values:BezierCurveDefaults[options.values.toLowerCase()],time:options.time}),_.isArray(options)&&4===options.length&&(options={values:options}),this.options=_.defaults(options,{values:BezierCurveDefaults.ease,time:1,precision:.001}),this._unitBezier=new UnitBezier(this.options.values[0],this.options.values[1],this.options.values[2],this.options.values[3],this._time=0)},BezierCurveAnimator.prototype.next=function(delta){return this._time+=delta,this.finished()?1:this._unitBezier.solve(this._time/this.options.time)},BezierCurveAnimator.prototype.finished=function(){return this._time>=this.options.time-this.options.precision},BezierCurveAnimator}(Animator),UnitBezier=function(){function UnitBezier(p1x,p1y,p2x,p2y){this.cx=3*p1x,this.bx=3*(p2x-p1x)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*p1y,this.by=3*(p2y-p1y)-this.cy,this.ay=1-this.cy-this.by}return UnitBezier.prototype.epsilon=1e-6,UnitBezier.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},UnitBezier.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},UnitBezier.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},UnitBezier.prototype.solveCurveX=function(x){var d2,i,t0,t1,t2,x2;for(t2=x,i=0;i<8;){if(x2=this.sampleCurveX(t2)-x,Math.abs(x2)<this.epsilon)return t2;if(d2=this.sampleCurveDerivativeX(t2),Math.abs(d2)<this.epsilon)break;t2-=x2/d2,i++}if(t0=0,t1=1,t2=x,t2<t0)return t0;if(t2>t1)return t1;for(;t0<t1;){if(x2=this.sampleCurveX(t2),Math.abs(x2-x)<this.epsilon)return t2;x>x2?t0=t2:t1=t2,t2=.5*(t1-t0)+t0}return t2},UnitBezier.prototype.solve=function(x){return this.sampleCurveY(this.solveCurveX(x))},UnitBezier}()},function(module,exports){var angularFrequency,approximateRoot,computeDampingRatio,epsilon,maxDamping,maxDuration,minDamping,minDuration;epsilon=.001,minDuration=.01,maxDuration=10,minDamping=Number.MIN_VALUE,maxDamping=1,approximateRoot=function(func,derivative,initialGuess,times){var i,j,ref,result;for(null==times&&(times=12),result=initialGuess,i=j=1,ref=times;1<=ref?j<ref:j>ref;i=1<=ref?++j:--j)result-=func(result)/derivative(result);return result},angularFrequency=function(undampedFrequency,dampingRatio){return undampedFrequency*Math.sqrt(1-Math.pow(dampingRatio,2))},exports.computeDampingRatio=computeDampingRatio=function(tension,friction,mass){return null==mass&&(mass=1),friction/(2*Math.sqrt(mass*tension))},exports.computeDuration=function(tension,friction,velocity,mass){var a,b,c,d,dampingRatio,duration,undampedFrequency;return null==velocity&&(velocity=0),null==mass&&(mass=1),dampingRatio=computeDampingRatio(tension,friction),undampedFrequency=Math.sqrt(tension/mass),dampingRatio<1?(a=Math.sqrt(1-Math.pow(dampingRatio,2)),b=velocity/(a*undampedFrequency),c=dampingRatio/a,d=-((b-c)/epsilon),d<=0?null:duration=Math.log(d)/(dampingRatio*undampedFrequency)):null},exports.computeDerivedCurveOptions=function(dampingRatio,duration,velocity,mass){var derivative,envelope,initialGuess,result,undampedFrequency;return null==velocity&&(velocity=0),null==mass&&(mass=1),dampingRatio=Math.max(Math.min(dampingRatio,maxDamping),minDamping),duration=Math.max(Math.min(duration,maxDuration),minDuration),dampingRatio<1?(envelope=function(undampedFrequency){var a,b,c,currentDisplacement,exponentialDecay;return exponentialDecay=undampedFrequency*dampingRatio,currentDisplacement=exponentialDecay*duration,a=exponentialDecay-velocity,b=angularFrequency(undampedFrequency,dampingRatio),c=Math.exp(-currentDisplacement),epsilon-a/b*c},derivative=function(undampedFrequency){var currentDisplacement,d,e,exponentialDecay,f,factor,g;return exponentialDecay=undampedFrequency*dampingRatio,currentDisplacement=exponentialDecay*duration,d=currentDisplacement*velocity+velocity,e=Math.pow(dampingRatio,2)*Math.pow(undampedFrequency,2)*duration,f=Math.exp(-currentDisplacement),g=angularFrequency(Math.pow(undampedFrequency,2),dampingRatio),factor=-envelope(undampedFrequency)+epsilon>0?-1:1,factor*((d-e)*f)/g}):(envelope=function(undampedFrequency){var a,b;return a=Math.exp(-undampedFrequency*duration),b=(undampedFrequency-velocity)*duration+1,-epsilon+a*b},derivative=function(undampedFrequency){var a,b;return a=Math.exp(-undampedFrequency*duration),b=(velocity-undampedFrequency)*Math.pow(duration,2),a*b}),result={tension:100,friction:10,velocity:velocity},initialGuess=5/duration,undampedFrequency=approximateRoot(envelope,derivative,initialGuess),isNaN(undampedFrequency)||(result.tension=Math.pow(undampedFrequency,2)*mass,result.friction=2*dampingRatio*Math.sqrt(mass*result.tension)),result}},function(module,exports,__webpack_require__){var Animator,Integrator,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Animator=__webpack_require__(21).Animator,Integrator=__webpack_require__(28).Integrator,exports.SpringRK4Animator=function(superClass){function SpringRK4Animator(){return this.finished=bind(this.finished,this),SpringRK4Animator.__super__.constructor.apply(this,arguments)}return extend(SpringRK4Animator,superClass),SpringRK4Animator.prototype.setup=function(options){return this.options=_.defaults(options,{tension:250,friction:25,velocity:0,tolerance:.001}),this._time=0,this._value=0,this._velocity=this.options.velocity,this._stopSpring=!1,this._integrator=new Integrator(function(_this){return function(state){return-_this.options.tension*state.x-_this.options.friction*state.v}}(this))},SpringRK4Animator.prototype.next=function(delta){var finalVelocity,net1DVelocity,netFloat,netValueIsLow,netVelocityIsLow,stateAfter,stateBefore;return this.finished()?1:(this._time+=delta,stateBefore={},stateAfter={},stateBefore.x=this._value-1,stateBefore.v=this._velocity,stateAfter=this._integrator.integrateState(stateBefore,delta),this._value=1+stateAfter.x,finalVelocity=stateAfter.v,netFloat=stateAfter.x,net1DVelocity=stateAfter.v,netValueIsLow=Math.abs(netFloat)<this.options.tolerance,netVelocityIsLow=Math.abs(net1DVelocity)<this.options.tolerance,this._stopSpring=netValueIsLow&&netVelocityIsLow,this._velocity=finalVelocity,this._value)},SpringRK4Animator.prototype.finished=function(){return this._stopSpring},SpringRK4Animator}(Animator)},function(module,exports){exports.Integrator=function(){function Integrator(_accelerationForState){this._accelerationForState=_accelerationForState,_.isFunction(this._accelerationForState)||(console.warn("Integrator: an integrator must be constructed with an acceleration function"),this._accelerationForState=function(){return 0})}return Integrator.prototype.integrateState=function(state,dt){var a,b,c,d,dvdt,dxdt;return a=this._evaluateState(state),b=this._evaluateStateWithDerivative(state,.5*dt,a),c=this._evaluateStateWithDerivative(state,.5*dt,b),d=this._evaluateStateWithDerivative(state,dt,c),dxdt=1/6*(a.dx+2*(b.dx+c.dx)+d.dx),dvdt=1/6*(a.dv+2*(b.dv+c.dv)+d.dv),state.x=state.x+dxdt*dt,state.v=state.v+dvdt*dt,state},Integrator.prototype._evaluateState=function(initialState){var output;return output={},output.dx=initialState.v,output.dv=this._accelerationForState(initialState),output},Integrator.prototype._evaluateStateWithDerivative=function(initialState,dt,derivative){var output,state;return state={},state.x=initialState.x+derivative.dx*dt,state.v=initialState.v+derivative.dv*dt,output={},output.dx=state.v,output.dv=this._accelerationForState(state),output},Integrator}()},function(module,exports){var _BackdropProperties,_Force2DProperties,_WebkitProperties,filterFormat,getShadowStrings,roundToZero,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};filterFormat=function(name,value,unit,pixelMultiplier){return"px"===unit&&(value*=pixelMultiplier),name+"("+Utils.round(value,2)+unit+")"},roundToZero=function(num){return-1e-6<num&&num<1e-6?0:num},_WebkitProperties=[["blur","blur",0,"px"],["brightness","brightness",100,"%"],["saturate","saturate",100,"%"],["hue-rotate","hueRotate",0,"deg"],["contrast","contrast",100,"%"],["invert","invert",0,"%"],["grayscale","grayscale",0,"%"],["sepia","sepia",0,"%"]],_BackdropProperties=[["blur","backgroundBlur",0,"px"],["brightness","backgroundBrightness",100,"%"],["saturate","backgroundSaturate",100,"%"],["hue-rotate","backgroundHueRotate",0,"deg"],["contrast","backgroundContrast",100,"%"],["invert","backgroundInvert",0,"%"],["grayscale","backgroundGrayscale",0,"%"],["sepia","backgroundSepia",0,"%"]],_Force2DProperties={z:0,scaleZ:1,skewX:0,skewY:0,rotationX:0,rotationY:0},getShadowStrings=function(layer,types,createString){var dpr,i,len,ref,ref1,ref2,result,shadow,shadowString;if(_.isArray(types)||(types=[types]),result=[],null!=layer.shadows)for(ref=layer.shadows,i=0,len=ref.length;i<len;i++)shadow=ref[i],null!==shadow&&(shadow=_.defaults(_.clone(shadow),Framer.Defaults.Shadow),"inner"===shadow.type?shadow.type="inset":"outer"===shadow.type&&(null!=layer.image&&""!==layer.image?shadow.type="drop":shadow.type="box"),ref1=shadow.type,indexOf.call(types,ref1)>=0&&(0!==shadow.x||0!==shadow.y||0!==shadow.blur||0!==shadow.spread)&&(null===shadow.color&&(shadow.color=new Color(null)),dpr=null!=(ref2=layer._pixelMultiplierOverride)?ref2:layer.context.pixelMultiplier,shadowString=createString(shadow,dpr),result.push(shadowString)));return result},exports.LayerStyle={width:function(layer){var dpr,ref;return layer._updateHTMLScale(),dpr=null!=(ref=layer._pixelMultiplierOverride)?ref:layer.context.pixelMultiplier,layer._properties.width*dpr+"px"},height:function(layer){var dpr,ref;return layer._updateHTMLScale(),dpr=null!=(ref=layer._pixelMultiplierOverride)?ref:layer.context.pixelMultiplier,layer._properties.height*dpr+"px"},display:function(layer){return layer._properties.visible===!0?"block":"none"},opacity:function(layer){return layer._properties.opacity},webkitTransformStyle:function(layer){return layer._properties.flat?"flat":"preserve-3d"},webkitBackfaceVisibility:function(layer){return layer._properties.backfaceVisible?"visible":"hidden"},overflow:function(layer){return layer._properties.scrollHorizontal===!0||layer._properties.scrollVertical===!0?"auto":layer._properties.clip===!0?"hidden":"visible"},overflowX:function(layer){return layer._properties.scrollHorizontal===!0?"scroll":layer._properties.clip===!0?"hidden":"visible"},overflowY:function(layer){return layer._properties.scrollVertical===!0?"scroll":layer._properties.clip===!0?"hidden":"visible"},zIndex:function(layer){return layer._properties.index},webkitFilter:function(layer){var css,cssName,dpr,fallback,filter,i,layerPropertyName,len,ref,ref1,shadowStrings,unit;for(css=[],dpr=null!=(ref=layer._pixelMultiplierOverride)?ref:layer.context.pixelMultiplier,i=0,len=_WebkitProperties.length;i<len;i++)ref1=_WebkitProperties[i],cssName=ref1[0],layerPropertyName=ref1[1],fallback=ref1[2],unit=ref1[3],layer._properties.hasOwnProperty(layerPropertyName)&&layer[layerPropertyName]!==fallback&&(filter=filterFormat(cssName,layer[layerPropertyName],unit,dpr),css.push(filter));return shadowStrings=getShadowStrings(layer,"drop",function(shadow,pixelMultiplier){return"drop-shadow("+shadow.x*pixelMultiplier+"px "+shadow.y*pixelMultiplier+"px "+shadow.blur*pixelMultiplier+"px "+shadow.color+")"}),css=css.concat(shadowStrings),css.join(" ")},webkitBackdropFilter:function(layer){var css,cssName,dpr,fallback,filter,i,layerPropertyName,len,ref,ref1,unit;for(css=[],dpr=null!=(ref=layer._pixelMultiplierOverride)?ref:layer.context.pixelMultiplier,i=0,len=_BackdropProperties.length;i<len;i++)ref1=_BackdropProperties[i],cssName=ref1[0],layerPropertyName=ref1[1],fallback=ref1[2],unit=ref1[3],layer._properties.hasOwnProperty(layerPropertyName)&&layer[layerPropertyName]!==fallback&&(filter=filterFormat(cssName,layer[layerPropertyName],unit,dpr),css.push(filter));return css.join(" ")},webkitTransform:function(layer){var dpr,ref;return layer._prefer2d||layer._properties.force2d?exports.LayerStyle.webkitTransformForce2d(layer):(dpr=null!=(ref=layer._pixelMultiplierOverride)?ref:layer.context.pixelMultiplier,"translate3d( "+roundToZero(layer._properties.x*dpr)+"px, "+roundToZero(layer._properties.y*dpr)+"px, "+roundToZero(layer._properties.z*dpr)+"px) scale3d( "+roundToZero(layer._properties.scaleX*layer._properties.scale)+", "+roundToZero(layer._properties.scaleY*layer._properties.scale)+", "+roundToZero(layer._properties.scaleZ)+") skew("+roundToZero(layer._properties.skew)+"deg,"+roundToZero(layer._properties.skew)+"deg) skewX("+roundToZero(layer._properties.skewX)+"deg) skewY("+roundToZero(layer._properties.skewY)+"deg) translateZ("+roundToZero(layer._properties.originZ*dpr)+"px) rotateX("+roundToZero(layer._properties.rotationX)+"deg) rotateY("+roundToZero(layer._properties.rotationY)+"deg) rotateZ("+roundToZero(layer._properties.rotationZ)+"deg) translateZ("+roundToZero(-layer._properties.originZ*dpr)+"px)")},webkitTransformForce2d:function(layer){var css,dpr,p,ref,v;css=[];for(p in _Force2DProperties)v=_Force2DProperties[p],layer._properties[p]!==v&&console.warn("Layer property '"+p+"'' will be ignored with force2d enabled");return dpr=null!=(ref=layer._pixelMultiplierOverride)?ref:layer.context.pixelMultiplier,css.push("translate("+roundToZero(layer._properties.x*dpr)+"px,"+roundToZero(layer._properties.y*dpr)+"px)"),css.push("scale("+roundToZero(layer._properties.scaleX*layer._properties.scale)+",\t"+roundToZero(layer._properties.scaleY*layer._properties.scale)+")"),css.push("skew("+roundToZero(layer._properties.skew)+"deg,"+roundToZero(layer._properties.skew)+"deg)"),css.push("rotate("+roundToZero(layer._properties.rotationZ)+"deg)"),css.join(" ")},webkitTransformOrigin:function(layer){return 100*layer._properties.originX+"% "+100*layer._properties.originY+"%"},webkitPerspective:function(layer){var dpr,ref,ref1,value;return value=null!=(ref=Utils.webkitPerspectiveForValue(layer._properties.perspective))?ref:"",_.isNumber(value)?(dpr=null!=(ref1=layer._pixelMultiplierOverride)?ref1:layer.context.pixelMultiplier,""+value*dpr):value},webkitPerspectiveOrigin:function(layer){return 100*layer._properties.perspectiveOriginX+"% "+100*layer._properties.perspectiveOriginY+"%"},mixBlendMode:function(layer){var ref;return ref=layer._properties.blending,indexOf.call(_.values(Blending),ref)>=0?layer._properties.blending:""},pointerEvents:function(layer){return layer._properties.ignoreEvents?"none":"auto"},boxShadow:function(layer){var shadowStrings;return shadowStrings=getShadowStrings(layer,["box","inset"],function(shadow,pixelMultiplier){var insetString;return insetString="inset"===shadow.type?"inset ":"",""+insetString+shadow.x*pixelMultiplier+"px "+shadow.y*pixelMultiplier+"px "+shadow.blur*pixelMultiplier+"px "+shadow.spread*pixelMultiplier+"px "+shadow.color}),shadowStrings.join(", ")},textShadow:function(layer){var shadowStrings;return shadowStrings=getShadowStrings(layer,"text",function(shadow,pixelMultiplier){return shadow.x*pixelMultiplier+"px "+shadow.y*pixelMultiplier+"px "+shadow.blur*pixelMultiplier+"px "+shadow.color}),shadowStrings.join(", ")},backgroundColor:function(layer){return layer._properties.backgroundColor},fill:function(layer){return layer._properties.fill},strokeWidth:function(layer){var factor,ref;return factor=null!=(ref=layer.strokeWidthMultiplier)?ref:1,layer._properties.strokeWidth*factor},strokeDasharray:function(layer){return layer._properties.strokeDasharray.join(",")},color:function(layer){return layer._properties.color},borderRadius:function(layer){var dpr,radius,ref,ref1,ref2,ref3,ref4;return radius=layer._properties.borderRadius,dpr=null!=(ref=layer._pixelMultiplierOverride)?ref:layer.context.pixelMultiplier,_.isNumber(radius)?radius*dpr+"px":_.isObject(layer._properties.borderRadius)?(null!=(ref1=radius.topLeft)?ref1:0)*dpr+"px "+(null!=(ref2=radius.topRight)?ref2:0)*dpr+"px "+(null!=(ref3=radius.bottomRight)?ref3:0)*dpr+"px "+(null!=(ref4=radius.bottomLeft)?ref4:0)*dpr+"px":layer._properties.borderRadius},borderWidth:function(layer){var borderBottom,borderLeft,borderRight,borderRightLeft,borderTop,borderTopBottom,borderWidth,dpr,leftRatio,ref,ref1,ref2,ref3,ref4,ref5,ref6,topRatio;return borderWidth=layer._properties.borderWidth,dpr=null!=(ref=layer._pixelMultiplierOverride)?ref:layer.context.pixelMultiplier,_.isNumber(borderWidth)?(borderTopBottom=(null!=(ref1=Math.min(borderWidth,layer.height/2))?ref1:0)*dpr,borderRightLeft=(null!=(ref2=Math.min(borderWidth,layer.width/2))?ref2:0)*dpr,borderTopBottom+"px "+borderRightLeft+"px "+borderTopBottom+"px "+borderRightLeft+"px"):_.isObject(borderWidth)?(borderTop=null!=(ref3=borderWidth.top)?ref3:0,borderBottom=null!=(ref4=borderWidth.bottom)?ref4:0,borderLeft=null!=(ref5=borderWidth.left)?ref5:0,borderRight=null!=(ref6=borderWidth.right)?ref6:0,borderTop+borderBottom>layer.height&&(topRatio=borderTop/(borderTop+borderBottom),borderTop=Math.round(topRatio*layer.height),borderBottom=layer.height-borderTop),borderLeft+borderRight>layer.width&&(leftRatio=borderLeft/(borderLeft+borderRight),borderLeft=Math.round(leftRatio*layer.width),borderRight=layer.width-borderLeft),borderTop*dpr+"px "+borderRight*dpr+"px "+borderBottom*dpr+"px "+borderLeft*dpr+"px"):borderWidth},fontSize:function(layer){return layer._properties.fontSize+"px"},letterSpacing:function(layer){return layer._properties.letterSpacing+"px"},wordSpacing:function(layer){return layer._properties.wordSpacing+"px"},textIndent:function(layer){return layer._properties.textIndent+"px"},textAlign:function(layer){var value;return value=layer._properties.textAlign,value===Align.left?"left":value===Align.center?"center":value===Align.right?"right":value},direction:function(layer){var value;switch(value=layer._properties.direction){case"right-to-left":return"rtl";case"left-to-right":return"ltr";default:return value}},padding:function(layer){var dpr,padding,ref;return padding=Utils.rectZero(Utils.parseRect(layer.padding)),dpr=null!=(ref=layer._pixelMultiplierOverride)?ref:layer.context.pixelMultiplier,padding.top*dpr+"px "+padding.right*dpr+"px "+padding.bottom*dpr+"px "+padding.left*dpr+"px"}}},function(module,exports,__webpack_require__){var BaseClass,Defaults,Events,LayerStateMachine,LayerStates,LayerStatesIgnoredKeys,StyledText,_,deprecatedWarning,namedState,reservedStateError,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1},slice=[].slice;_=__webpack_require__(1)._,Events=__webpack_require__(17).Events,BaseClass=__webpack_require__(6).BaseClass,Defaults=__webpack_require__(19).Defaults,LayerStateMachine=__webpack_require__(31).LayerStateMachine,StyledText=__webpack_require__(32).StyledText,LayerStatesIgnoredKeys=["ignoreEvents","name","id"],reservedStateError=function(name){throw Error("The state '"+name+"' is a reserved name.")},deprecatedWarning=function(name,suggestion){var message;return message="layer.states."+name+" is deprecated",null!=suggestion&&(message+=", use '"+suggestion+"' instead."),console.warn(message)},namedState=function(state,name){return _.extend({},{name:name},state)},LayerStates=function(){function LayerStates(layer){var _machine;_machine=new LayerStateMachine(layer,this),Object.defineProperty(this,"machine",{enumerable:!1,configurable:!1,get:function(){return _machine},set:function(){return reservedStateError("machine")}}),this.capture("default")}var capture,methods;return LayerStates.defineReserved=function(propertyName,descriptor){return descriptor.configurable=!0,null==descriptor.enumerable&&(descriptor.enumerable=!1),null==descriptor.set&&(descriptor.set=function(){return reservedStateError(propertyName)}),Object.defineProperty(this.prototype,propertyName,descriptor)},LayerStates.defineReserved("previous",{get:function(){return namedState(this[this.machine.previousName],this.machine.previousName)}}),LayerStates.defineReserved("current",{get:function(){return namedState(this[this.machine.currentName],this.machine.currentName)}}),capture=function(name){return this[name]=LayerStates.filterStateProperties(this.machine.layer.props)},LayerStates.defineReserved("capture",{get:function(){return capture}}),LayerStates.filterStateProperties=function(properties){var k,stateProperties,v;stateProperties={};for(k in properties)v=properties[k],indexOf.call(LayerStatesIgnoredKeys,k)>=0||(Color.isValidColorProperty(k,v)?stateProperties[k]=new Color(v):Gradient.isGradient(v)?stateProperties[k]=v:this._isValidProperty(k,v)&&(stateProperties[k]=v));return stateProperties},LayerStates._isValidProperty=function(k,v){var ref;return!!_.isNumber(v)||(!!_.isFunction(v)||(!!_.isBoolean(v)||(!!_.isString(v)||(!!Color.isColorObject(v)||(!!Gradient.isGradient(v)||(null===v||("Layer"===(null!=v&&null!=(ref=v.constructor)?ref.name:void 0)||("template"===k||"shadows"===k))))))))},methods={add:function(states,object){return null==object&&(object={}),deprecatedWarning("add","layer.states = "),_.isString(states)?this[states]=object:this.machine.layer.states=states},remove:function(stateName){return deprecatedWarning("remove","delete layer.states.a"),delete this[stateName]},switch:function(stateName,options){return deprecatedWarning("switch",'layer.animate("state")'),this.machine.switchTo(stateName,options)},switchInstant:function(stateName){return deprecatedWarning("switchInstant",'layer.animate("state", {instant: true})'),this.machine.switchTo(stateName,{instant:!0})},next:function(){var options;return options=1<=arguments.length?slice.call(arguments,0):[], deprecatedWarning("next","layer.stateCycle()"),options=_.flatten(options),this.machine.layer.stateCycle(options)}},LayerStates.defineReserved("add",{get:function(){return methods.add}}),LayerStates.defineReserved("remove",{get:function(){return methods.remove}}),LayerStates.defineReserved("switch",{get:function(){return methods.switch}}),LayerStates.defineReserved("switchInstant",{get:function(){return methods.switchInstant}}),LayerStates.defineReserved("next",{get:function(){return methods.next}}),LayerStates.defineReserved("animationOptions",{get:function(){return this.machine.layer.animationOptions},set:function(options){return this.machine.layer.animationOptions=options}}),LayerStates}(),exports.LayerStates=LayerStates},function(module,exports,__webpack_require__){var BaseClass,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,slice=[].slice;BaseClass=__webpack_require__(6).BaseClass,exports.LayerStateMachine=function(superClass){function LayerStateMachine(_layer,_states){this._layer=_layer,this._states=_states,LayerStateMachine.__super__.constructor.apply(this,arguments),this.reset()}return extend(LayerStateMachine,superClass),LayerStateMachine.define("layer",{get:function(){return this._layer}}),LayerStateMachine.define("current",{get:function(){return this.currentName}}),LayerStateMachine.define("previous",{get:function(){return this.previousName}}),LayerStateMachine.define("currentName",{get:function(){return this._currentName}}),LayerStateMachine.define("previousName",{get:function(){return _.last(this._previousNames)||"default"}}),LayerStateMachine.define("stateNames",{get:function(){return Object.keys(this.states)}}),LayerStateMachine.define("states",{get:function(){return this._states}}),LayerStateMachine.prototype.switchInstant=function(stateName){return this.switchTo(stateName,{instant:!0})},LayerStateMachine.prototype.switchTo=function(stateName,options){var animation,onEnd,onStart,onStop,properties,ref,startAnimation,started,stateNameA,stateNameB,stateSwitched,switchState;if(null==options&&(options={}),!this.states[stateName])throw Error("No such state: '"+stateName+"'");return"previous"===stateName&&(stateName=this.previousName),properties=_.clone(this.states[stateName]),options=_.clone(options),properties.animationOptions&&(options=_.defaults({},options,properties.animationOptions)),delete properties.animationOptions,stateNameA=this.currentName,stateNameB=stateName,startAnimation=null==(ref=options.start)||ref,options.start=!1,animation=this.layer.animate(properties,options),stateSwitched=!1,switchState=function(_this){return function(){if(!stateSwitched)return stateSwitched=!0,_this._previousNames.push(stateNameA),_this._currentName=stateNameB}}(this),onStart=function(_this){return function(){return _this.emit(Events.StateSwitchStart,stateNameA,stateNameB,_this),switchState()}}(this),onStop=function(_this){return function(){return _this.emit(Events.StateSwitchStop,stateNameA,stateNameB,_this)}}(this),onEnd=function(_this){return function(){var i,instantProperties,k,len;for(instantProperties=_.difference(_.keys(properties),_.keys(animation.properties)),i=0,len=instantProperties.length;i<len;i++)k=instantProperties[i],_this.layer[k]=properties[k];return _this.emit(Events.StateSwitchEnd,stateNameA,stateNameB,_this)}}(this),animation.on(Events.AnimationStart,onStart),animation.on(Events.AnimationStop,onStop),animation.on(Events.AnimationEnd,onEnd),startAnimation&&(started=animation.start(),started||(onStart(),onStop(),onEnd())),switchState(),animation},LayerStateMachine.prototype.next=function(states){return states.length||(states=this.stateNames),Utils.arrayNext(states,this.currentName)},LayerStateMachine.prototype.emit=function(){var args,ref;return args=1<=arguments.length?slice.call(arguments,0):[],LayerStateMachine.__super__.emit.apply(this,arguments),(ref=this._layer).emit.apply(ref,args)},LayerStateMachine.prototype.reset=function(){var i,k,len,ref;for(ref=_.keys(this.states),i=0,len=ref.length;i<len;i++)k=ref[i],"default"!==k&&delete this.states[k];return this._previousNames=[],this._currentName="default"},LayerStateMachine.prototype.toInspect=function(constructor){return"<"+this.constructor.name+" id:"+this.id+" layer:"+this.layer.id+" current:'"+this.currentName+"'>"},LayerStateMachine}(BaseClass)},function(module,exports){var InlineStyle,StyledTextBlock,_measureElement,getMeasureElement;_measureElement=null,getMeasureElement=function(constraints){var shouldCreateElement;for(null==constraints&&(constraints={}),shouldCreateElement=!_measureElement,shouldCreateElement&&(_measureElement=document.createElement("div"),_measureElement.id="_measureElement",_measureElement.style.position="fixed",_measureElement.style.visibility="hidden",_measureElement.style.top="-10000px",_measureElement.style.left="-10000px",window.document.body?window.document.body.appendChild(_measureElement):(document.write(_measureElement.outerHTML),_measureElement=document.getElementById("_measureElement")));_measureElement.hasChildNodes();)_measureElement.removeChild(_measureElement.lastChild);return _measureElement.style.width="10000px",constraints.max?(constraints.width&&(_measureElement.style.maxWidth=constraints.width+"px"),constraints.height&&(_measureElement.style.maxHeight=constraints.height+"px")):(constraints.width&&(_measureElement.style.width=constraints.width+"px"),constraints.height&&(_measureElement.style.height=constraints.height+"px")),_measureElement},InlineStyle=function(){function InlineStyle(configuration,text){_.isString(configuration)?(this.text=configuration,this.startIndex=0,this.endIndex=this.text.length,this.css=text):(this.startIndex=configuration.startIndex,this.endIndex=configuration.endIndex,this.css=configuration.css,this.text=text.substring(this.startIndex,this.endIndex))}return InlineStyle.prototype.startIndex=0,InlineStyle.prototype.endIndex=0,InlineStyle.prototype.css=null,InlineStyle.prototype.text="",InlineStyle.prototype.element=null,InlineStyle.prototype.copy=function(){var c;return c=new InlineStyle(this.text,this.css),c.startIndex=this.startIndex,c.endIndex=this.endIndex,c},InlineStyle.prototype.getOptions=function(){return{startIndex:this.startIndex,endIndex:this.endIndex,css:_.clone(this.css)}},InlineStyle.prototype.createElement=function(maybeLineBreak){var prop,ref,span,value;span=document.createElement("span"),ref=this.css;for(prop in ref)value=ref[prop],span.style[prop]=value;return""===this.text&&maybeLineBreak?span.innerHTML="<br/>":span.textContent=this.text,span},InlineStyle.prototype.setText=function(text){return this.text=text,this.endIndex=this.startIndex+text.length},InlineStyle.prototype.resetStyle=function(style){if(delete this.css[style],"color"===style)return delete this.css.WebkitTextFillColor},InlineStyle.prototype.setStyle=function(style,value){var ref;return this.css[style]=value,null!=(ref=this.element)?ref.style[style]=value:void 0},InlineStyle.prototype.getStyle=function(style){var ref;return"color"===style?null!=(ref=this.css.color)?ref:this.css.WebkitTextFillColor:this.css[style]},InlineStyle.prototype.measure=function(){var rect,size;return rect=this.element.getBoundingClientRect(),size={width:rect.right-rect.left,height:rect.bottom-rect.top}},InlineStyle.prototype.replaceText=function(search,replace){var regex;if(regex=null,_.isString(search)?regex=new RegExp(Utils.escapeForRegex(search),"g"):search instanceof RegExp&&(regex=search),null!=regex)return this.text=this.text.replace(regex,replace),this.endIndex=this.startIndex+this.text.length},InlineStyle.prototype.addRangesFrom=function(regex,block,inline,templateRanges){var m,name,text;for(text=this.text,regex.lastIndex=0;;){if(m=regex.exec(text),!m)return;if(name=m[1],!name)return;templateRanges[name]||(templateRanges[name]={block:block,inline:inline,start:m.index,length:m[0].length,name:name})}},InlineStyle.prototype.replaceRange=function(start,length,text){return this.text=this.text.slice(0,start)+text+this.text.slice(start+length),this.endIndex=this.startIndex+this.text.length},InlineStyle.prototype.validate=function(){return this.startIndex!==this.endIndex&&this.endIndex===this.startIndex+this.text.length},InlineStyle}(),StyledTextBlock=function(){function StyledTextBlock(configuration){var inlineStyle,text;if(text=configuration.text,this.text=text,null!=configuration.inlineStyles)this.inlineStyles=configuration.inlineStyles.map(function(i){return new InlineStyle(i,text)});else{if(null==configuration.css)throw new Error("Should specify inlineStyles or css");inlineStyle=new InlineStyle(this.text,configuration.css),this.inlineStyles=[inlineStyle]}}return StyledTextBlock.prototype.text="",StyledTextBlock.prototype.inlineStyles=[],StyledTextBlock.prototype.element=null,StyledTextBlock.prototype.copy=function(){var c;return c=new StyledTextBlock({text:this.text,inlineStyles:[]}),c.inlineStyles=this.inlineStyles.map(function(inline){return inline.copy()}),c},StyledTextBlock.prototype.getOptions=function(){return{text:this.text,inlineStyles:this.inlineStyles.map(function(i){return i.getOptions()})}},StyledTextBlock.prototype.createElement=function(){var div,j,len,maybeLineBreak,ref,span,style;for(div=document.createElement("div"),div.style.fontSize="1px",div.style.webkitFontSmoothing="antialiased",maybeLineBreak=1===this.inlineStyles.length,ref=this.inlineStyles,j=0,len=ref.length;j<len;j++)style=ref[j],span=style.createElement(maybeLineBreak),style.element=span,div.appendChild(span);return div},StyledTextBlock.prototype.measure=function(){var j,len,rect,ref,size,style,totalWidth;for(totalWidth=0,ref=this.inlineStyles,j=0,len=ref.length;j<len;j++)style=ref[j],totalWidth+=style.measure().width;return rect=this.element.getBoundingClientRect(),size={width:totalWidth,height:rect.bottom-rect.top}},StyledTextBlock.prototype.clone=function(){return new StyledTextBlock({text:"",css:_.clone(_.first(this.inlineStyles).css)})},StyledTextBlock.prototype.setText=function(text){var firstStyle;return this.text=text,firstStyle=_.first(this.inlineStyles),firstStyle.setText(text),this.inlineStyles=[firstStyle]},StyledTextBlock.prototype.setTextOverflow=function(textOverflow,maxLines){var multiLineOverflow;return null==maxLines&&(maxLines=1),"ellipsis"===textOverflow||"clip"===textOverflow?(this.setStyle("overflow","hidden"),multiLineOverflow="ellipsis"===textOverflow,multiLineOverflow?(this.setStyle("WebkitLineClamp",maxLines),this.setStyle("WebkitBoxOrient","vertical"),this.setStyle("display","-webkit-box")):(this.resetStyle("WebkitLineClamp"),this.resetStyle("WebkitBoxOrient"),this.setStyle("display","block"),this.setStyle("whiteSpace","nowrap"),this.setStyle("textOverflow",textOverflow))):(this.resetStyle("whiteSpace"),this.resetStyle("textOverflow"),this.resetStyle("display"),this.resetStyle("overflow"),this.resetStyle("WebkitLineClamp"),this.resetStyle("WebkitBoxOrient"))},StyledTextBlock.prototype.resetStyle=function(style){return this.inlineStyles.map(function(inlineStyle){return inlineStyle.resetStyle(style)})},StyledTextBlock.prototype.setStyle=function(style,value){return this.inlineStyles.map(function(inlineStyle){return inlineStyle.setStyle(style,value)})},StyledTextBlock.prototype.getStyle=function(style){return _.first(this.inlineStyles).getStyle(style)},StyledTextBlock.prototype.getFonts=function(){var font,fonts,j,len,ref,style;for(fonts=[],ref=this.inlineStyles,j=0,len=ref.length;j<len;j++)style=ref[j],font=style.getStyle("fontFamily"),null!=font&&fonts.push(font);return fonts},StyledTextBlock.prototype.replaceText=function(search,replace){var currentIndex,j,len,newText,ref,style;for(currentIndex=0,ref=this.inlineStyles,j=0,len=ref.length;j<len;j++)style=ref[j],style.startIndex=currentIndex,style.replaceText(search,replace),currentIndex=style.endIndex;return newText=this.inlineStyles.map(function(i){return i.text}).join(""),this.text=newText,newText!==this.text},StyledTextBlock.prototype.addRangesFrom=function(regex,block,templateRanges){return this.inlineStyles.forEach(function(inline,index){return inline.addRangesFrom(regex,block,index,templateRanges)})},StyledTextBlock.prototype.replaceRange=function(inline,start,length,text){var currentIndex,index,j,len,newText,ref,style;for(currentIndex=0,ref=this.inlineStyles,index=j=0,len=ref.length;j<len;index=++j)style=ref[index],style.startIndex=currentIndex,index===inline&&style.replaceRange(start,length,text),currentIndex+=style.text.length,style.endIndex=currentIndex;return newText=this.inlineStyles.map(function(i){return i.text}).join(""),this.text=newText},StyledTextBlock.prototype.validate=function(){var combinedText,currentIndex,j,len,ref,style;for(combinedText="",currentIndex=0,ref=this.inlineStyles,j=0,len=ref.length;j<len;j++){if(style=ref[j],currentIndex!==style.startIndex)return!1;if(!style.validate())return!1;currentIndex=style.endIndex,combinedText+=style.text}return this.text===combinedText},StyledTextBlock}(),exports.StyledText=function(){function StyledText(configuration){var ref;this.textAlign=null!=(ref=null!=configuration?configuration.alignment:void 0)?ref:"left",null!=(null!=configuration?configuration.blocks:void 0)?this.blocks=configuration.blocks.map(function(b){return new StyledTextBlock(b)}):this.blocks=[]}return StyledText.prototype.blocks=null,StyledText.prototype.textAlign=null,StyledText.prototype.element=null,StyledText.prototype.autoWidth=!1,StyledText.prototype.autoHeight=!1,StyledText.prototype.textOverflow=null,StyledText.defaultStyles={fontStyle:"normal",fontVariantCaps:"normal",fontWeight:"normal",fontSize:"16px",lineHeight:"normal",fontFamily:"-apple-system, BlinkMacSystemFont",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},StyledText.prototype.getOptions=function(){return{blocks:this.blocks.map(function(b){return b.getOptions()}),alignment:this.textAlign}},StyledText.isStyledText=function(styledText){return null!=(null!=styledText?styledText.blocks:void 0)&&null!=(null!=styledText?styledText.alignment:void 0)&&_.isArray(styledText.blocks)&&_.isString(styledText.alignment)},StyledText.prototype.setElement=function(element){var ref,style,value;if(null!=element){this.element=element,ref=StyledText.defaultStyles;for(style in ref)value=ref[style],this.element.style[style]||(this.element.style[style]=value);return null==this.textAlign||this.element.style.textAlign?void 0:this.element.style.textAlign=this.textAlign}},StyledText.prototype.render=function(){var block,blockDiv,j,len,ref,results;if(null!=this.element){for(;this.element.hasChildNodes();)this.element.removeChild(this.element.lastChild);for(ref=this.blocks,results=[],j=0,len=ref.length;j<len;j++)block=ref[j],blockDiv=block.createElement(),block.element=blockDiv,results.push(this.element.appendChild(blockDiv));return results}},StyledText.prototype.addBlock=function(text,css){var block;return null==css&&(css=null),null!=css?block=new StyledTextBlock({text:text,css:css}):this.blocks.length>0?(block=_.last(this.blocks).clone(),block.setText(text)):block=new StyledTextBlock({text:text,css:{}}),this.blocks.push(block)},StyledText.prototype.getText=function(){return this.blocks.map(function(b){return b.text}).join("\n")},StyledText.prototype.setText=function(text){var block,index,j,len,results,value,values;for(values=text.split("\n"),this.blocks=this.blocks.slice(0,values.length),results=[],index=j=0,len=values.length;j<len;index=++j)value=values[index],null!=this.blocks[index]?(block=this.blocks[index],results.push(block.setText(value))):results.push(this.addBlock(value));return results},StyledText.prototype.setTextOverflow=function(textOverflow){return this.textOverflow=textOverflow},StyledText.prototype.setStyle=function(style,value){return this.blocks.map(function(block){return block.setStyle(style,value)})},StyledText.prototype.resetStyle=function(style){return this.blocks.map(function(block){return block.resetStyle(style)})},StyledText.prototype.getStyle=function(style,block){var ref,ref1,ref2;return null==block&&(block=null),null!=(ref=null!=(ref1=null!=block?block:_.first(this.blocks))?ref1.getStyle(style):void 0)?ref:null!=(ref2=this.element)?ref2.style[style]:void 0},StyledText.prototype.getFonts=function(){var block,elementFont,fonts,j,len,ref,ref1;for(fonts=[],elementFont=null!=(ref=this.element)?ref.style.fontFamily:void 0,null!=elementFont&&fonts.push(elementFont),ref1=this.blocks,j=0,len=ref1.length;j<len;j++)block=ref1[j],fonts=fonts.concat(block.getFonts());return _.uniq(fonts)},StyledText.prototype.measure=function(currentSize){var availableHeight,block,constrainedHeight,constraints,fontSize,j,len,lineHeight,m,measuredHeight,measuredWidth,parent,ref,ref1,result,size,visibleLines;for(constraints={},constraints.width=currentSize.width*currentSize.multiplier,constraints.height=currentSize.height*currentSize.multiplier,m=getMeasureElement(constraints),measuredWidth=0,measuredHeight=0,parent=this.element.parentNode,m.appendChild(this.element),ref=this.blocks,j=0,len=ref.length;j<len;j++)block=ref[j],size=block.measure(),measuredWidth=Math.max(measuredWidth,size.width),constrainedHeight=null!=constraints.height?constraints.height/currentSize.multiplier:null,!this.autoWidth&&null!=this.textOverflow&&("clip"===(ref1=this.textOverflow)||"ellipsis"===ref1)&&null!=constrainedHeight&&measuredHeight+size.height>constrainedHeight?(fontSize=parseFloat(this.getStyle("fontSize",block)),lineHeight=parseFloat(this.getStyle("lineHeight",block)),availableHeight=constrainedHeight-measuredHeight,availableHeight>0?(visibleLines=Math.max(1,Math.floor(availableHeight/(fontSize*lineHeight))),block.setTextOverflow(this.textOverflow,visibleLines)):block.setStyle("visibility","hidden"),size.height=availableHeight):block.setTextOverflow(null),measuredHeight+=size.height;return m.removeChild(this.element),null!=parent&&parent.appendChild(this.element),result={},this.autoWidth&&(result.width=Math.ceil(measuredWidth)),this.autoHeight&&(result.height=Math.ceil(measuredHeight)),result},StyledText.prototype.textReplace=function(search,replace){return this.blocks.map(function(b){return b.replaceText(search,replace)})},StyledText.prototype.buildTemplate=function(){var firstRange,regex,templateRanges;return this._templateRanges?this._firstTemplateName:(regex=/\{\s*(\w+)\s*\}/g,templateRanges={},this.blocks.forEach(function(b,index){return b.addRangesFrom(regex,index,templateRanges)}),this._templateRanges=Object.keys(templateRanges).map(function(k){return templateRanges[k]}).sort(function(l,r){var b,i;return b=r.block-l.block,0!==b?b:(i=r.inline-l.inline,0!==i?i:r.start-l.start)}),firstRange=this._templateRanges[this._templateRanges.length-1],this._firstTemplateName=firstRange?firstRange.name:null,this._templateBlocks=this.blocks.map(function(b){return b.copy()}),this._firstTemplateName)},StyledText.prototype.template=function(data){var block,j,len,range,ref,results,text;for(this.blocks=this._templateBlocks.map(function(b){return b.copy()}),ref=this._templateRanges,results=[],j=0,len=ref.length;j<len;j++)range=ref[j],text=data[range.name],null!=text&&(_.isFunction(range.formatter)&&(text=range.formatter.call(this,text)),block=this.blocks[range.block],results.push(block.replaceRange(range.inline,range.start,range.length,text)));return results},StyledText.prototype.templateFormatter=function(data){var formatter,j,len,range,ref,results;for(ref=this._templateRanges,results=[],j=0,len=ref.length;j<len;j++)range=ref[j],formatter=data[range.name],null!=formatter&&results.push(range.formatter=formatter);return results},StyledText.prototype.validate=function(){var block,j,len,ref;for(ref=this.blocks,j=0,len=ref.length;j<len;j++)if(block=ref[j],!block.validate())return!1;return!0},StyledText}()},function(module,exports,__webpack_require__){var BaseClass,Defaults,EventBuffer,Events,Gestures,Simulation,Utils,_,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;_=__webpack_require__(1)._,Utils=__webpack_require__(4),BaseClass=__webpack_require__(6).BaseClass,Events=__webpack_require__(17).Events,Simulation=__webpack_require__(34).Simulation,Defaults=__webpack_require__(19).Defaults,EventBuffer=__webpack_require__(39).EventBuffer,Gestures=__webpack_require__(18).Gestures,Events.Move="move",Events.DragStart="dragstart",Events.DragWillMove="dragwillmove",Events.DragMove="dragmove",Events.DragDidMove="dragmove",Events.Drag="dragmove",Events.DragEnd="dragend",Events.DragAnimationStart="draganimationstart",Events.DragAnimationEnd="draganimationend",Events.DirectionLockStart="directionlockstart",Events.DragSessionStart="dragsessionstart",Events.DragSessionMove="dragsessionmove",Events.DragSessionEnd="dragsessionend",Events.DragAnimationDidStart=Events.DragAnimationStart,Events.DragAnimationDidEnd=Events.DragAnimationEnd,Events.DirectionLockDidStart=Events.DirectionLockStart,exports.LayerDraggable=function(superClass){function LayerDraggable(layer){var options;this.layer=layer,this._stopSimulation=bind(this._stopSimulation,this),this._onSimulationStop=bind(this._onSimulationStop,this),this._onSimulationStep=bind(this._onSimulationStep,this),this._panEnd=bind(this._panEnd,this),this._tapEnd=bind(this._tapEnd,this),this._panMove=bind(this._panMove,this),this._panStart=bind(this._panStart,this),this._updateLayerPosition=bind(this._updateLayerPosition,this),this.tapStart=bind(this.tapStart,this),this.touchStart=bind(this.touchStart,this),this.panStart=bind(this.panStart,this),options=Defaults.getDefaults("LayerDraggable",{}),LayerDraggable.__super__.constructor.call(this,options),_.extend(this,options),this.enabled=!0,this._eventBuffer=new EventBuffer,this._constraints=null,this._ignoreUpdateLayerPosition=!0,this.attach()}return extend(LayerDraggable,superClass),LayerDraggable._globalDidDrag=!1,LayerDraggable.define("speedX",LayerDraggable.simpleProperty("speedX",1)),LayerDraggable.define("speedY",LayerDraggable.simpleProperty("speedY",1)),LayerDraggable.define("horizontal",LayerDraggable.simpleProperty("horizontal",!0)),LayerDraggable.define("vertical",LayerDraggable.simpleProperty("vertical",!0)),LayerDraggable.define("momentumVelocityMultiplier",LayerDraggable.simpleProperty("momentumVelocityMultiplier",800)),LayerDraggable.define("directionLock",LayerDraggable.simpleProperty("directionLock",!0)),LayerDraggable.define("directionLockThreshold",LayerDraggable.simpleProperty("directionLockThreshold",{x:10,y:10})),LayerDraggable.define("propagateEvents",LayerDraggable.simpleProperty("propagateEvents",!0)),LayerDraggable.define("constraints",{get:function(){return this._constraints},set:function(value){if(value&&_.isObject(value)?(value=_.pick(value,["x","y","width","height"]),value=_.defaults(value,{x:0,y:0,width:0,height:0}),this._constraints=value):this._constraints={x:0,y:0,width:0,height:0},this._constraints)return this._updateSimulationConstraints(this._constraints)}}),LayerDraggable.define("isDragging",{get:function(){return this._isDragging||!1}}),LayerDraggable.define("isAnimating",{get:function(){return this._isAnimating||!1}}),LayerDraggable.define("isMoving",{get:function(){return this._isMoving||!1}}),LayerDraggable.define("layerStartPoint",{get:function(){return this._layerStartPoint||this.layer.point}}),LayerDraggable.define("cursorStartPoint",{get:function(){return this._cursorStartPoint||{x:0,y:0}}}),LayerDraggable.define("layerCursorOffset",{get:function(){return this._layerCursorOffset||{x:0,y:0}}}),LayerDraggable.define("offset",{get:function(){var offset;return this._correctedLayerStartPoint?offset={x:this.layer.x-this._correctedLayerStartPoint.x,y:this.layer.y-this._correctedLayerStartPoint.y}:{x:0,y:0}}}),LayerDraggable.prototype.attach=function(){return this.layer.on(Gestures.TapStart,this.tapStart),this.layer.on(Gestures.PanStart,this.panStart),this.layer.on("change:x",this._updateLayerPosition),this.layer.on("change:y",this._updateLayerPosition)},LayerDraggable.prototype.remove=function(){return this.layer.off(Gestures.TapStart,this.tapStart),this.layer.off(Gestures.PanStart,this.panStart),this.layer.off(Gestures.Pan,this._panMove),this.layer.off(Gestures.TapEnd,this._tapEnd)},LayerDraggable.prototype.updatePosition=function(point){return point},LayerDraggable.prototype.panStart=function(event){return this.touchStart(event)},LayerDraggable.prototype.touchStart=function(event){return this._panStart(event)},LayerDraggable.prototype.tapStart=function(event){var ref,ref1;if(this._isAnimating)return null!=(ref=Framer.GestureInputRecognizer)&&null!=(ref1=ref.session)&&(ref1.cancelTap=!0),this._panStart(event)},LayerDraggable.prototype._updateLayerPosition=function(){if(this._ignoreUpdateLayerPosition!==!0)return this._point=this.layer.point},LayerDraggable.prototype._panStart=function(event){var animation,i,len,properties,ref,touchEvent;for(LayerDraggable._globalDidDrag=!1,Events.wrap(document).addEventListener(Gestures.Pan,this._panMove),Events.wrap(document).addEventListener(Gestures.TapEnd,this._tapEnd),this._isMoving=this._isAnimating,ref=this.layer.animations(),i=0,len=ref.length;i<len;i++)animation=ref[i],properties=animation.properties,(properties.hasOwnProperty("x")||properties.hasOwnProperty("y"))&&animation.stop();return this._stopSimulation(),this._resetdirectionLock(),event.preventDefault(),this.propagateEvents===!1&&event.stopPropagation(),touchEvent=Events.touchEvent(event),this._eventBuffer.push({x:touchEvent.clientX,y:touchEvent.clientY,t:Date.now()}),this._layerStartPoint=this.layer.point,this._correctedLayerStartPoint=this.layer.point,this.constraints&&this.bounce&&(this._correctedLayerStartPoint=this._constrainPosition(this._correctedLayerStartPoint,this.constraints,1/this.overdragScale)),this._cursorStartPoint={x:touchEvent.clientX,y:touchEvent.clientY},this._layerCursorOffset={x:touchEvent.clientX-this._correctedLayerStartPoint.x,y:touchEvent.clientY-this._correctedLayerStartPoint.y},this._point=this._correctedLayerStartPoint,this._ignoreUpdateLayerPosition=!1,this.emit(Events.DragSessionStart,event)},LayerDraggable.prototype._panMove=function(event){var offset,point,touchEvent;if(this.enabled){if(this._point||this.touchStart(event),event.preventDefault(),this.propagateEvents===!1&&event.stopPropagation(),touchEvent=Events.touchEvent(event),this._lastEvent=touchEvent,this._eventBuffer.push({x:touchEvent.clientX,y:touchEvent.clientY,t:Date.now()}),point=_.clone(this._point),this.horizontal&&(point.x=this._point.x+event.delta.x*this.speedX*(1/this.layer.screenScaleX(!1))),this.vertical&&(point.y=this._point.y+event.delta.y*this.speedY*(1/this.layer.screenScaleY(!1))),this._point=_.clone(point),this._constraints&&(point=this._constrainPosition(point,this._constraints,this.overdragScale)),this.directionLock){if(!this._directionLockEnabledX&&!this._directionLockEnabledY)return offset=event.offset,offset.x=offset.x*this.speedX*(1/this.layer.canvasScaleX())*this.layer.scaleX*this.layer.scale,offset.y=offset.y*this.speedY*(1/this.layer.canvasScaleY())*this.layer.scaleY*this.layer.scale,void this._updatedirectionLock(offset);this._directionLockEnabledX&&(point.x=this._layerStartPoint.x),this._directionLockEnabledY&&(point.y=this._layerStartPoint.y)}return point.x===this._layerStartPoint.x&&point.y===this._layerStartPoint.y||(LayerDraggable._globalDidDrag=!0,this._isDragging||(this._isDragging=!0,this._isMoving=!0,this.emit(Events.DragStart,event))),this.isDragging&&this.emit(Events.DragWillMove,event),this.pixelAlign&&(this.horizontal&&(point.x=Math.round(point.x)),this.vertical&&(point.y=Math.round(point.y))),this._ignoreUpdateLayerPosition=!0,this.layer.point=this.updatePosition(point),this._ignoreUpdateLayerPosition=!1,this.isDragging&&(this.emit(Events.Move,this.layer.point),this.emit(Events.DragDidMove,event)),this.emit(Events.DragSessionMove,event)}},LayerDraggable.prototype._tapEnd=function(event){return this._panEnd(event)},LayerDraggable.prototype._panEnd=function(event){return LayerDraggable._globalDidDrag=!1,Events.wrap(document).removeEventListener(Gestures.Pan,this._panMove),Events.wrap(document).removeEventListener(Gestures.TapEnd,this._tapEnd),event.stopPropagation(),this.propagateEvents===!1&&event.stopPropagation(),this._startSimulation(),this.emit(Events.DragSessionEnd,event),this._isDragging&&this.emit(Events.DragEnd,event),this._isDragging=!1,this._isMoving=this._isAnimating,this._ignoreUpdateLayerPosition=!0,this._lastEvent=null,this._eventBuffer.reset()},LayerDraggable.define("constraintsOffset",{get:function(){var constrainedPoint,maxX,maxY,minX,minY,offset,point,ref;return this.constraints?(ref=this._calculateConstraints(this.constraints),minX=ref.minX,maxX=ref.maxX,minY=ref.minY,maxY=ref.maxY,point=this.layer.point,constrainedPoint={x:Utils.clamp(point.x,minX,maxX),y:Utils.clamp(point.y,minY,maxY)},offset={x:point.x-constrainedPoint.x,y:point.y-constrainedPoint.y}):{x:0,y:0}}}),LayerDraggable.define("isBeyondConstraints",{get:function(){var constraintsOffset;return constraintsOffset=this.constraintsOffset,0!==constraintsOffset.x||0!==constraintsOffset.y}}),LayerDraggable.prototype._clampAndScale=function(value,min,max,scale){return value<min&&(value=min+(value-min)*scale),value>max&&(value=max+(value-max)*scale),value},LayerDraggable.prototype._calculateConstraints=function(bounds){var constraints;return bounds?(bounds.width<this.layer.width&&(bounds.width=this.layer.width),bounds.height<this.layer.height&&(bounds.height=this.layer.height),constraints={minX:Utils.frameGetMinX(bounds),maxX:Utils.frameGetMaxX(bounds),minY:Utils.frameGetMinY(bounds),maxY:Utils.frameGetMaxY(bounds)},constraints.maxX-=this.layer.width,constraints.maxY-=this.layer.height,constraints):constraints={minX:Infinity,maxX:Infinity,minY:Infinity,maxY:Infinity}},LayerDraggable.prototype._constrainPosition=function(proposedPoint,bounds,scale){var maxX,maxY,minX,minY,point,ref;return ref=this._calculateConstraints(this._constraints),minX=ref.minX,maxX=ref.maxX,minY=ref.minY,maxY=ref.maxY,point=this.overdrag?{x:this._clampAndScale(proposedPoint.x,minX,maxX,scale),y:this._clampAndScale(proposedPoint.y,minY,maxY,scale)}:{x:Utils.clamp(proposedPoint.x,minX,maxX),y:Utils.clamp(proposedPoint.y,minY,maxY)},0!==this.speedX&&this.horizontal!==!1||(point.x=proposedPoint.x),0!==this.speedY&&this.vertical!==!1||(point.y=proposedPoint.y),point},LayerDraggable.define("velocity",{get:function(){return this.isAnimating?this._calculateSimulationVelocity():this._eventBuffer.velocity}}),LayerDraggable.define("angle",{get:function(){return this._eventBuffer.angle}}),LayerDraggable.define("direction",{get:function(){var delta,ref,velocity;return velocity=this.velocity,0===velocity.x&&0===velocity.y?(delta=null!=(ref=this._lastEvent)?ref.delta:void 0,delta?Math.abs(delta.x)>Math.abs(delta.y)?delta.x>0?"right":"left":delta.y>0?"down":"up":null):Math.abs(velocity.x)>Math.abs(velocity.y)?velocity.x>0?"right":"left":velocity.y>0?"down":"up"}}),LayerDraggable.prototype.calculateVelocity=function(){return this.velocity},LayerDraggable.prototype._calculateSimulationVelocity=function(){var velocity,xFinished,yFinished;return xFinished=this._simulation.x.finished(),yFinished=this._simulation.y.finished(),velocity={x:0,y:0},xFinished||(velocity.x=this._simulation.x.simulator.state.v/this.momentumVelocityMultiplier),yFinished||(velocity.y=this._simulation.y.simulator.state.v/this.momentumVelocityMultiplier),velocity},LayerDraggable.prototype.emit=function(eventName,event){return this.layer.emit(eventName,event),LayerDraggable.__super__.emit.call(this,eventName,event)},LayerDraggable.prototype._updatedirectionLock=function(correctedDelta){ if(this._directionLockEnabledX=Math.abs(correctedDelta.y)>this.directionLockThreshold.y,this._directionLockEnabledY=Math.abs(correctedDelta.x)>this.directionLockThreshold.x,this._directionLockEnabledX||this._directionLockEnabledY)return this.emit(Events.DirectionLockStart,{x:this._directionLockEnabledX,y:this._directionLockEnabledY})},LayerDraggable.prototype._resetdirectionLock=function(){return this._directionLockEnabledX=!1,this._directionLockEnabledY=!1},LayerDraggable.prototype._setupSimulation=function(){if(!this._simulation)return this._simulation={x:this._setupSimulationForAxis("x"),y:this._setupSimulationForAxis("y")},this._updateSimulationConstraints(this.constraints)},LayerDraggable.prototype._setupSimulationForAxis=function(axis){var properties,simulation;return properties={},properties[axis]=!0,simulation=new Simulation({layer:this.layer,properties:properties,model:"inertial-scroll",modelOptions:{momentum:this.momentumOptions,bounce:this.bounceOptions}}),simulation.on(Events.SimulationStep,function(_this){return function(state){return _this._onSimulationStep(axis,state)}}(this)),simulation.on(Events.SimulationStop,function(_this){return function(state){return _this._onSimulationStop(axis,state)}}(this)),simulation},LayerDraggable.prototype._updateSimulationConstraints=function(constraints){var maxX,maxY,minX,minY,ref;if(this._simulation)return constraints?(ref=this._calculateConstraints(this._constraints),minX=ref.minX,maxX=ref.maxX,minY=ref.minY,maxY=ref.maxY,this._simulation.x.simulator.options={min:minX,max:maxX},this._simulation.y.simulator.options={min:minY,max:maxY}):(this._simulation.x.simulator.options={min:-Infinity,max:Infinity},this._simulation.y.simulator.options={min:-Infinity,max:Infinity})},LayerDraggable.prototype._onSimulationStep=function(axis,state){var delta,maxX,maxY,minX,minY,ref,updatePoint;if(!("x"===axis&&this.horizontal===!1||"y"===axis&&this.vertical===!1))return this.constraints?this.bounce?delta=state.x-this.layer[axis]:(ref=this._calculateConstraints(this._constraints),minX=ref.minX,maxX=ref.maxX,minY=ref.minY,maxY=ref.maxY,"x"===axis&&(delta=Utils.clamp(state.x,minX,maxX)-this.layer[axis]),"y"===axis&&(delta=Utils.clamp(state.x,minY,maxY)-this.layer[axis])):delta=state.x-this.layer[axis],updatePoint=this.layer.point,"x"===axis&&(updatePoint[axis]=updatePoint[axis]+delta),"y"===axis&&(updatePoint[axis]=updatePoint[axis]+delta),this.updatePosition(updatePoint),this.layer[axis]=this.updatePosition(updatePoint)[axis],this.emit(Events.Move,this.layer.point)},LayerDraggable.prototype._onSimulationStop=function(axis,state){if(("x"!==axis||this.horizontal!==!1)&&("y"!==axis||this.vertical!==!1)&&this._simulation)return this.pixelAlign&&(this.layer[axis]=Math.round(this.layer[axis])),this._simulation.x.finished()&&this._simulation.y.finished()?this._stopSimulation():void 0},LayerDraggable.prototype._startSimulation=function(){var maxX,maxY,minX,minY,ref,startSimulationX,startSimulationY,velocity,velocityX,velocityY;if((this.momentum||this.bounce)&&!(this.isBeyondConstraints===!1&&this.momentum===!1||this.isBeyondConstraints===!1&&this.isDragging===!1||(ref=this._calculateConstraints(this._constraints),minX=ref.minX,maxX=ref.maxX,minY=ref.minY,maxY=ref.maxY,startSimulationX=this.overdrag===!0||this.layer.x>minX&&this.layer.x<maxX,startSimulationY=this.overdrag===!0||this.layer.y>minY&&this.layer.y<maxY,startSimulationX===startSimulationY&&startSimulationY===!1)))return velocity=this.velocity,velocityX=velocity.x*this.momentumVelocityMultiplier*this.speedX*(1/this.layer.canvasScaleX())*this.layer.scaleX*this.layer.scale,velocityY=velocity.y*this.momentumVelocityMultiplier*this.speedY*(1/this.layer.canvasScaleY())*this.layer.scaleY*this.layer.scale,this._setupSimulation(),this._isAnimating=!0,this._isMoving=!0,this._simulation.x.simulator.setState({x:this.layer.x,v:velocityX}),startSimulationX&&this._simulation.x.start(),this._simulation.y.simulator.setState({x:this.layer.y,v:velocityY}),startSimulationY&&this._simulation.y.start(),this.emit(Events.DragAnimationStart)},LayerDraggable.prototype._stopSimulation=function(){var ref,ref1;if(this._isMoving&&this.emit(Events.Move,this.layer.point),this._isAnimating=!1,this._isMoving=!1,this._simulation)return null!=(ref=this._simulation)&&ref.x.stop(),null!=(ref1=this._simulation)&&ref1.y.stop(),this._simulation=null,this.emit(Events.DragAnimationEnd)},LayerDraggable.prototype.animateStop=function(){return this._stopSimulation()},LayerDraggable.prototype.onMove=function(cb){return this.on(Events.Move,cb)},LayerDraggable.prototype.onDragStart=function(cb){return this.on(Events.DragStart,cb)},LayerDraggable.prototype.onDragWillMove=function(cb){return this.on(Events.DragWillMove,cb)},LayerDraggable.prototype.onDragMove=function(cb){return this.on(Events.DragMove,cb)},LayerDraggable.prototype.onDragDidMove=function(cb){return this.on(Events.DragDidMove,cb)},LayerDraggable.prototype.onDrag=function(cb){return this.on(Events.Drag,cb)},LayerDraggable.prototype.onDragEnd=function(cb){return this.on(Events.DragEnd,cb)},LayerDraggable.prototype.onDragAnimationStart=function(cb){return this.on(Events.DragAnimationStart,cb)},LayerDraggable.prototype.onDragAnimationEnd=function(cb){return this.on(Events.DragAnimationEnd,cb)},LayerDraggable.prototype.onDirectionLockStart=function(cb){return this.on(Events.DirectionLockStart,cb)},LayerDraggable}(BaseClass)},function(module,exports,__webpack_require__){var BaseClass,Config,Defaults,Events,FrictionSimulator,MomentumBounceSimulator,SimulatorClasses,SpringSimulator,Utils,_,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};_=__webpack_require__(1)._,Utils=__webpack_require__(4),Config=__webpack_require__(16).Config,Defaults=__webpack_require__(19).Defaults,BaseClass=__webpack_require__(6).BaseClass,Events=__webpack_require__(17).Events,SpringSimulator=__webpack_require__(35).SpringSimulator,FrictionSimulator=__webpack_require__(37).FrictionSimulator,MomentumBounceSimulator=__webpack_require__(38).MomentumBounceSimulator,Events.SimulationStart="simulationStart",Events.SimulationStep="simulationStep",Events.SimulationStop="simulationStop",SimulatorClasses={spring:SpringSimulator,friction:FrictionSimulator,"inertial-scroll":MomentumBounceSimulator},exports.Simulation=function(superClass){function Simulation(options){var SimulatorClass;null==options&&(options={}),this._update=bind(this._update,this),this._start=bind(this._start,this),this.start=bind(this.start,this),Simulation.__super__.constructor.call(this,options),this.options=_.defaults(options,{layer:null,properties:{},model:"spring",modelOptions:{},delay:0,debug:!1}),this.layer=this.options.layer,this.properties=this.options.properties,this._running=!1,SimulatorClass=SimulatorClasses[this.options.model]||SpringSimulator,this._simulator=new SimulatorClass(this.options.modelOptions)}return extend(Simulation,superClass),Simulation.prototype.animatingProperties=function(){return _.keys(this.properties)},Simulation.prototype.start=function(){var animatingProperties,animation,property,ref;null===this.layer&&console.error("Simulation: missing layer"),this.options.debug&&console.log("Simulation.start "+this._simulator.constructor.name,this.options.modelOptions),animatingProperties=this.animatingProperties(),ref=this.layer.animatingProperties();for(property in ref)animation=ref[property],indexOf.call(animatingProperties,property)>=0&&animation.stop();return this.options.delay?Utils.delay(this.options.delay,this._start):this._start(),!0},Simulation.prototype.stop=function(emit){if(null==emit&&(emit=!0),this._running)return this._running=!1,this.layer.context.removeAnimation(this),emit&&this.emit(Events.SimulationStop),Framer.Loop.off("update",this._update)},Simulation.prototype.emit=function(event){return Simulation.__super__.emit.apply(this,arguments),this.layer.emit(event,this)},Simulation.prototype._start=function(){if(!this._running)return this._running=!0,this.layer.context.addAnimation(this),this.emit(Events.SimulationStart),Framer.Loop.on("update",this._update)},Simulation.prototype._update=function(delta){var emit,result;return this._simulator.finished()?(this.stop(emit=!1),this.emit("end"),this.emit(Events.SimulationStop)):(result=this._simulator.next(delta),this.emit(Events.SimulationStep,result,delta))},Simulation.define("simulator",{get:function(){return this._simulator}}),Simulation.prototype.finished=function(){return this._simulator.finished()},Simulation}(BaseClass)},function(module,exports,__webpack_require__){var Defaults,Integrator,Simulator,Utils,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Utils=__webpack_require__(4),Defaults=__webpack_require__(19).Defaults,Simulator=__webpack_require__(36).Simulator,Integrator=__webpack_require__(28).Integrator,exports.SpringSimulator=function(superClass){function SpringSimulator(){return this.finished=bind(this.finished,this),SpringSimulator.__super__.constructor.apply(this,arguments)}return extend(SpringSimulator,superClass),SpringSimulator.prototype.setup=function(options){return this.options=Defaults.getDefaults("SpringSimulator",options),this.options=_.defaults(options,{velocity:0,position:0,offset:0}),this._state={x:this.options.position,v:this.options.velocity},this._integrator=new Integrator(function(_this){return function(state){return-_this.options.tension*state.x-_this.options.friction*state.v}}(this))},SpringSimulator.prototype.next=function(delta){return this._state=this._integrator.integrateState(this._state,delta),this.getState()},SpringSimulator.prototype.finished=function(){var positionNearZero,velocityNearZero;return positionNearZero=Math.abs(this._state.x)<this.options.tolerance,velocityNearZero=Math.abs(this._state.v)<this.options.tolerance,positionNearZero&&velocityNearZero},SpringSimulator.prototype.setState=function(state){return this._state={x:state.x-this.options.offset,v:state.v}},SpringSimulator.prototype.getState=function(){var state;return state={x:this._state.x+this.options.offset,v:this._state.v}},SpringSimulator}(Simulator)},function(module,exports,__webpack_require__){var BaseClass,Config,Utils,_,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Utils=__webpack_require__(4),_=__webpack_require__(1)._,Config=__webpack_require__(16).Config,BaseClass=__webpack_require__(6).BaseClass,exports.Simulator=function(superClass){function Simulator(options){null==options&&(options={}),this._state={x:0,v:0},this.options=null,this.setup(options)}return extend(Simulator,superClass),Simulator.define("state",{get:function(){return _.clone(this._state)},set:function(state){return this._state=_.clone(state)}}),Simulator.prototype.setup=function(options){throw Error("Not implemented")},Simulator.prototype.next=function(delta){throw Error("Not implemented")},Simulator.prototype.finished=function(){throw Error("Not implemented")},Simulator.prototype.setState=function(state){return this._state=state},Simulator}(BaseClass)},function(module,exports,__webpack_require__){var Defaults,Integrator,Simulator,Utils,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Utils=__webpack_require__(4),Defaults=__webpack_require__(19).Defaults,Simulator=__webpack_require__(36).Simulator,Integrator=__webpack_require__(28).Integrator,exports.FrictionSimulator=function(superClass){function FrictionSimulator(){return this.finished=bind(this.finished,this),FrictionSimulator.__super__.constructor.apply(this,arguments)}return extend(FrictionSimulator,superClass),FrictionSimulator.prototype.setup=function(options){return this.options=Defaults.getDefaults("FrictionSimulator",options),this.options=_.defaults(options,{velocity:0,position:0}),this._state={x:this.options.position,v:this.options.velocity},this._integrator=new Integrator(function(_this){return function(state){return-(_this.options.friction*state.v)}}(this))},FrictionSimulator.prototype.next=function(delta){return this._state=this._integrator.integrateState(this._state,delta),this._state},FrictionSimulator.prototype.finished=function(){return Math.abs(this._state.v)<this.options.tolerance},FrictionSimulator}(Simulator)},function(module,exports,__webpack_require__){var Defaults,FrictionSimulator,Simulator,SpringSimulator,Utils,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Utils=__webpack_require__(4),Defaults=__webpack_require__(19).Defaults,Simulator=__webpack_require__(36).Simulator,SpringSimulator=__webpack_require__(35).SpringSimulator,FrictionSimulator=__webpack_require__(37).FrictionSimulator,exports.MomentumBounceSimulator=function(superClass){function MomentumBounceSimulator(){return this.finished=bind(this.finished,this),MomentumBounceSimulator.__super__.constructor.apply(this,arguments)}return extend(MomentumBounceSimulator,superClass),MomentumBounceSimulator.prototype.setup=function(options){return this.options=Defaults.getDefaults("MomentumBounceSimulator",options),this.options=_.defaults(options,{velocity:0,position:0,min:0,max:0}),this._frictionSimulator=new FrictionSimulator({friction:this.options.momentum.friction,tolerance:this.options.momentum.tolerance,velocity:this.options.velocity,position:this.options.position}),this._springSimulator=new SpringSimulator({tension:this.options.bounce.tension,friction:this.options.bounce.friction,tolerance:this.options.bounce.tolerance,velocity:this.options.velocity,position:this.options.position}),this._state={x:this.options.position,v:this.options.velocity},this._useSpring=!1},MomentumBounceSimulator.prototype.next=function(delta){return this._useSpring?this._state=this._springSimulator.next(delta):(this._state=this._frictionSimulator.next(delta),this._tryTransitionToSpring(this._state)),this._state},MomentumBounceSimulator.prototype.finished=function(){return this._useSpring?this._springSimulator.finished():this._frictionSimulator.finished()},MomentumBounceSimulator.prototype.setState=function(state){var bound;return this._state={x:state.x,v:state.v},this._frictionSimulator.setState(this._state),this._isValidState()?this._tryTransitionToSpring():(this._state.x<=this.options.min&&(bound=this.options.min),this._state.x>=this.options.max&&(bound=this.options.max),this._transitionToSpring(bound))},MomentumBounceSimulator.prototype._tryTransitionToSpring=function(force){var aboveMaxWithVelocity,belowMinWithVelocity,bound;return belowMinWithVelocity=this._state.x<this.options.min&&this._state.v<=0,aboveMaxWithVelocity=this._state.x>this.options.max&&this._state.v>=0,belowMinWithVelocity||aboveMaxWithVelocity?(belowMinWithVelocity&&(bound=this.options.min),aboveMaxWithVelocity&&(bound=this.options.max),this._transitionToSpring(bound)):this._useSpring=!1},MomentumBounceSimulator.prototype._transitionToSpring=function(bound){return this._useSpring=!0,this._springSimulator.options.offset=bound,this._springSimulator.setState(this._state)},MomentumBounceSimulator.prototype._isValidState=function(){var aboveMaxTravelingBack,belowMinTravelingBack,bound,check,friction,solution;return belowMinTravelingBack=this._state.x<this.options.min&&this._state.v>0,aboveMaxTravelingBack=this._state.x>this.options.max&&this._state.v<0,check=!1,belowMinTravelingBack?(bound=this.options.min,check=!0):aboveMaxTravelingBack&&(bound=this.options.max,check=!0),!check||(friction=this._frictionSimulator.options.friction,solution=1-friction*(bound-this._state.x)/this._state.v,solution>0)},MomentumBounceSimulator}(Simulator)},function(module,exports,__webpack_require__){var BaseClass,Events,Utils,_,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;_=__webpack_require__(1)._,Utils=__webpack_require__(4),BaseClass=__webpack_require__(6).BaseClass,Events=__webpack_require__(17).Events,Events.EventBufferReset="eventbufferreset",Events.EventBufferUpdated="eventbufferupdated",exports.EventBuffer=function(superClass){function EventBuffer(options){null==options&&(options={}),this.options=_.defaults(options,{velocityTimeout:100}),this._events=[]}return extend(EventBuffer,superClass),EventBuffer.prototype.push=function(event){return this._events.push(event),this.emit(Events.EventBufferUpdated,event)},EventBuffer.prototype.reset=function(){return this._events.length=0,this.emit(Events.EventBufferReset)},EventBuffer.define("length",{get:function(){return this._events.length}}),EventBuffer.define("first",{get:function(){return this._events[0]}}),EventBuffer.define("offset",{get:function(){var current,first,offset;return events.length<2?{x:0,y:0}:(current=events[events.length-1],first=events[0],offset={x:current.x-first.x,y:current.y-first.y})}}),EventBuffer.define("events",{get:function(){var timeout;return timeout=Date.now()-this.options.velocityTimeout,_.filter(this._events,function(event){return event.t>timeout})}}),EventBuffer.define("angle",{get:function(){var events,p1,p2;return events=this.events,events.length<2?0:(p1=events[0],p2=events[1],180*Math.atan2(p2.y-p1.y,p2.x-p1.x)/Math.PI)}}),EventBuffer.define("velocity",{get:function(){var current,events,first,time,velocity;return events=this.events,events.length<2?{x:0,y:0}:(current=events[events.length-1],first=events[0],time=current.t-first.t,velocity={x:(current.x-first.x)/time,y:(current.y-first.y)/time},Infinity===velocity.x&&(velocity.x=0),Infinity===velocity.y&&(velocity.y=0),velocity)}}),EventBuffer}(BaseClass)},function(module,exports,__webpack_require__){var BaseClass,Events,Gestures,Utils,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Utils=__webpack_require__(4),BaseClass=__webpack_require__(6).BaseClass,Events=__webpack_require__(17).Events,Gestures=__webpack_require__(18).Gestures,Events.PinchStart="pinchstart",Events.Pinch="pinch",Events.PinchEnd="pinchend",Events.RotateStart="rotatestart",Events.Rotate="rotate",Events.RotateEnd="rotateend",Events.ScaleStart="scalestart",Events.Scale="scale",Events.ScaleEnd="scaleend",exports.LayerPinchable=function(superClass){function LayerPinchable(layer){this.layer=layer,this._pinchEnd=bind(this._pinchEnd,this),this._pinch=bind(this._pinch,this),this._pinchStart=bind(this._pinchStart,this),this._centerOrigin=bind(this._centerOrigin,this),LayerPinchable.__super__.constructor.apply(this,arguments),this._attach()}return extend(LayerPinchable,superClass),LayerPinchable.define("enabled",LayerPinchable.simpleProperty("enabled",!0)),LayerPinchable.define("threshold",LayerPinchable.simpleProperty("threshold",0)),LayerPinchable.define("centerOrigin",LayerPinchable.simpleProperty("centerOrigin",!0)),LayerPinchable.define("scale",LayerPinchable.simpleProperty("scale",!0)),LayerPinchable.define("scaleIncrements",LayerPinchable.simpleProperty("scaleIncrements",0)),LayerPinchable.define("minScale",LayerPinchable.simpleProperty("minScale",0)),LayerPinchable.define("maxScale",LayerPinchable.simpleProperty("maxScale",Number.MAX_VALUE)),LayerPinchable.define("scaleFactor",LayerPinchable.simpleProperty("scaleFactor",1)),LayerPinchable.define("rotate",LayerPinchable.simpleProperty("rotate",!0)),LayerPinchable.define("rotateIncrements",LayerPinchable.simpleProperty("rotateIncrements",0)),LayerPinchable.define("rotateMin",LayerPinchable.simpleProperty("rotateMin",0)),LayerPinchable.define("rotateMax",LayerPinchable.simpleProperty("rotateMax",0)),LayerPinchable.define("rotateFactor",LayerPinchable.simpleProperty("rotateFactor",1)),LayerPinchable.prototype._attach=function(){return this.layer.on(Gestures.PinchStart,this._pinchStart),this.layer.on(Gestures.Pinch,this._pinch),this.layer.on(Gestures.PinchEnd,this._pinchEnd),this.layer.on(Gestures.TapStart,this._tapStart)},LayerPinchable.prototype._reset=function(){return this._scaleStart=null,this._rotationStart=null,this._rotationOffset=null},LayerPinchable.prototype._tapStart=function(event){},LayerPinchable.prototype._centerOrigin=function(event){var originDelta,pinchLocation,topInSuperAfter,topInSuperBefore;return topInSuperBefore=Utils.convertPoint({},this.layer,this.layer.superLayer),pinchLocation=Utils.convertPointFromContext(event.touchCenter,this.layer,!0,!0),this.layer.originX=pinchLocation.x/this.layer.width,this.layer.originY=pinchLocation.y/this.layer.height,topInSuperAfter=Utils.convertPoint({},this.layer,this.layer.superLayer),originDelta={x:topInSuperAfter.x-topInSuperBefore.x,y:topInSuperAfter.y-topInSuperBefore.y},this.layer.x-=originDelta.x,this.layer.y-=originDelta.y},LayerPinchable.prototype._pinchStart=function(event){return this._reset(),this.centerOrigin&&this._centerOrigin(event),this.normalizeRotation=Utils.rotationNormalizer()},LayerPinchable.prototype._pinch=function(event){var rotation,scale;if(2===event.fingers&&this.enabled&&event.touchDistance>this.threshold)return this.scale&&(null==this._scaleStart&&(this._scaleStart=this.layer.scale),scale=((event.scale-1)*this.scaleFactor+1)*this._scaleStart,this.minScale&&this.maxScale?scale=Utils.clamp(scale,this.minScale,this.maxScale):this.minScale?scale=Utils.clamp(scale,this.minScale,1e6):this.maxScale&&(scale=Utils.clamp(scale,1e-5,this.maxScale)),this.scaleIncrements&&(scale=Utils.nearestIncrement(scale,this.scaleIncrements)),this.layer.scale=scale,this.emit(Events.Scale,event)),this.rotate?(null==this._rotationStart&&(this._rotationStart=this.layer.rotation),null==this._rotationOffset&&(this._rotationOffset=event.rotation),rotation=event.rotation-this._rotationOffset+this._rotationStart,rotation*=this.rotateFactor,rotation=this.normalizeRotation(rotation),this.rotateMin&&this.rotateMax&&(rotation=Utils.clamp(rotation,this.rotateMin,this.rotateMax)),this.rotateIncrements&&(rotation=Utils.nearestIncrement(rotation,this.rotateIncrements)),this.layer.rotation=rotation):void 0},LayerPinchable.prototype._pinchEnd=function(event){return this._reset()},LayerPinchable}(BaseClass)},function(module,exports){exports.LayerPropertyProxy=function(){function LayerPropertyProxy(target,callback){var desc,getter,i,len,prop,proxy,ref,setter,targetDesc;for(proxy=this,getter=function(prop){return this[prop]},setter=function(prop,value){return callback(this,prop,value,proxy)},ref=Object.getOwnPropertyNames(target),i=0,len=ref.length;i<len;i++)prop=ref[i],targetDesc=Object.getOwnPropertyDescriptor(target,prop),desc={enumerable:targetDesc.enumerable,get:getter.bind(target,prop),set:setter.bind(target,prop)},Object.defineProperty(proxy,prop,desc);proxy.__proto__=target.__proto__}return LayerPropertyProxy}()},function(module,exports,__webpack_require__){var Layer,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Layer=__webpack_require__(15).Layer,exports.BackgroundLayer=function(superClass){function BackgroundLayer(options){var ref;null==options&&(options={}),this.layout=bind(this.layout,this),null==options.backgroundColor&&(options.backgroundColor="#fff"),console.warn('BackgroundLayer is deprecated, please use\n\nScreen.backgroundColor = "'+options.backgroundColor+'"\n\ninstead.'),BackgroundLayer.__super__.constructor.call(this,options),this.sendToBack(),this.layout(),this._context.domEventManager.wrap(window).addEventListener("resize",this.layout),null!=(ref=Framer.Device)&&ref.on("change:orientation",this.layout)}return extend(BackgroundLayer,superClass),BackgroundLayer.prototype.layout=function(){return this.parent?this.frame=this.parent.frame:this.frame=this._context.frame},BackgroundLayer}(Layer)},function(module,exports,__webpack_require__){var Layer,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Layer=__webpack_require__(15).Layer,exports.VideoLayer=function(superClass){function VideoLayer(options){null==options&&(options={}),this.player=document.createElement("video"),this.player.setAttribute("webkit-playsinline","true"),this.player.setAttribute("playsinline",""),this.player.style.width="100%",this.player.style.height="100%",VideoLayer.__super__.constructor.call(this,options),this.player.on=this._context.domEventManager.wrap(this.player).addEventListener,this.player.off=this._context.domEventManager.wrap(this.player).removeEventListener,this.video=options.video,this._element.appendChild(this.player)}return extend(VideoLayer,superClass),VideoLayer.define("video",{get:function(){return this.player.src},set:function(video){return this.player.src=video}}),VideoLayer}(Layer)},function(module,exports,__webpack_require__){var Color,Layer,SVG,SVGGroup,SVGPath,Utils,_,layerProperty,layerProxiedValue,ref,updateIdsToBeUnique,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;_=__webpack_require__(1)._,Color=__webpack_require__(11).Color,ref=__webpack_require__(15),Layer=ref.Layer,layerProperty=ref.layerProperty,layerProxiedValue=ref.layerProxiedValue,SVG=__webpack_require__(23).SVG,SVGGroup=__webpack_require__(45).SVGGroup,SVGPath=__webpack_require__(47).SVGPath,Utils=__webpack_require__(4),updateIdsToBeUnique=function(htmlString){var i,id,ids,len,uniqueId;for(ids=Utils.getIdAttributesFromString(htmlString),i=0,len=ids.length;i<len;i++)id=ids[i],uniqueId=Utils.getUniqueId(id),id!==uniqueId&&(id=Utils.escapeForRegex(id),htmlString=htmlString.replace(RegExp("((id|xlink:href)=[\"'']\\#?)"+id+"([\"'])","g"),"$1"+uniqueId+"$3"),htmlString=htmlString.replace(RegExp("([\"'']url\\(\\#)"+id+"(\\)[\"'])","g"),"$1"+uniqueId+"$2"));return htmlString},exports.SVGLayer=function(superClass){function SVGLayer(options){var children,ref1,svg,targets;null==options&&(options={}),null!=options.htmlIntrinsicSize&&null!=options.backgroundColor&&(null==options.color&&(options.color=options.backgroundColor),options.backgroundColor=null),null==options.clip&&(options.clip=!1),null==options.svg&&null==options.html||null==options.backgroundColor&&(options.backgroundColor=null),SVGLayer.__super__.constructor.call(this,options),svg=this.svg,null!=svg?(ref1=SVG.constructSVGElements(this,svg.childNodes,SVGPath,SVGGroup),targets=ref1.targets,children=ref1.children,this.elements=targets,this._children=children):this.elements=[],SVG.updateGradientSVG(this)}return extend(SVGLayer,superClass),SVGLayer.define("elements",SVGLayer.simpleProperty("elements",{})),SVGLayer.define("fill",layerProperty(SVGLayer,"fill","fill",null,SVG.validFill,SVG.toFill)),SVGLayer.define("stroke",layerProperty(SVGLayer,"stroke","stroke",null,SVG.validFill,SVG.toFill)),SVGLayer.define("strokeWidthMultiplier",layerProperty(SVGLayer,"strokeWidthMultiplier",null,null,_.isNumber)),SVGLayer.define("strokeWidth",layerProperty(SVGLayer,"strokeWidth","strokeWidth",null,_.isNumber,null,{depends:["strokeWidthMultiplier"]})),SVGLayer.define("color",layerProperty(SVGLayer,"color","color",null,Color.validColorValue,Color.toColor,null,function(layer,value){return layer.fill=value},"_elementHTML",!0)),SVGLayer.define("gradient",{get:function(){return Gradient.isGradientObject(this._gradient)?layerProxiedValue(this._gradient,this,"gradient"):null},set:function(value){return Gradient.isGradient(value)?this._gradient=new Gradient(value):!value&&Gradient.isGradientObject(this._gradient)&&(this._gradient=null),SVG.updateGradientSVG(this)}}),SVGLayer.define("svg",{get:function(){var ref1,svgNode;return svgNode=_.first(null!=(ref1=this._elementHTML)?ref1.children:void 0),svgNode instanceof SVGElement?svgNode:null},set:function(value){var element,existingElement,i,idElements,len;if("string"==typeof value)return this.html=updateIdsToBeUnique(value);if(value instanceof SVGElement){for(idElements=value.querySelectorAll("[id]"),i=0,len=idElements.length;i<len;i++)if(element=idElements[i],existingElement=document.querySelector("[id='"+element.id+"']"),null!=existingElement)return void Utils.throwInStudioOrWarnInProduction(Layer.ExistingIdMessage("svg",element.id));for(this._createHTMLElementIfNeeded();this._elementHTML.firstChild;)this._elementHTML.removeChild(this._elementHTML.firstChild);return null!=value.parentNode&&(value=value.cloneNode(!0)),this._elementHTML.appendChild(value)}}}),SVGLayer.prototype.copy=function(){var layer;return layer=this.copySingle()},SVGLayer.prototype.copySingle=function(){var copy,props;return props=this.props,null!=props.html&&null!=props.svg&&delete props.svg,props.html=updateIdsToBeUnique(props.html),copy=new this.constructor(props),copy.style=this.style,copy},SVGLayer}(Layer)},function(module,exports,__webpack_require__){var Color,Layer,SVG,SVGBaseLayer,SVGGroup,SVGPath,layerProperty,ref,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;ref=__webpack_require__(15),Layer=ref.Layer,layerProperty=ref.layerProperty,Color=__webpack_require__(11).Color,SVG=__webpack_require__(23).SVG,SVGBaseLayer=__webpack_require__(46).SVGBaseLayer,SVGPath=__webpack_require__(47).SVGPath,SVGGroup=function(superClass){function SVGGroup(group,options){var children,ref1,targets;options.element=group,SVGGroup.__super__.constructor.call(this,options),ref1=SVG.constructSVGElements(this,this._element.childNodes,SVGPath,SVGGroup),children=ref1.children,targets=ref1.targets,this._children=children,this.elements=targets,SVG.updateGradientSVG(this)}return extend(SVGGroup,superClass),SVGGroup.defineGroupProxyProp=function(propertyName,validator,transformer){var privateProp;return null==validator&&(validator=SVG.validFill),null==transformer&&(transformer=SVG.toFill),privateProp="_"+propertyName,this.define(propertyName,{ get:function(){var child,childPropertyValue,i,len,ref1,ref2,value;if(null!=this[privateProp])return this[privateProp];for(value=null,ref1=this._children,i=0,len=ref1.length;i<len;i++)if(child=ref1[i],childPropertyValue=child[propertyName],null===value)value=childPropertyValue;else if(!Utils.equal(childPropertyValue,value))return null!=(ref2=this[privateProp])?ref2:null;return value},set:function(value){var child,i,len,persistedValue,ref1,results;for(validator(value)||(value=transformer(value)),validator(value)?this[privateProp]=value:this[privateProp]=null,persistedValue=this[privateProp],ref1=this._children,results=[],i=0,len=ref1.length;i<len;i++)child=ref1[i],results.push(child[propertyName]=persistedValue);return results}})},SVGGroup.defineGroupProxyProp("fill"),SVGGroup.defineGroupProxyProp("stroke"),SVGGroup.defineGroupProxyProp("strokeWidth",_.isNumber,parseInt),SVGGroup.defineGroupProxyProp("strokeWidthMultiplier",_.isNumber,parseInt),SVGGroup.defineGroupProxyProp("ignoreEvents",_.isBoolean,function(value){return!!value}),SVGGroup}(SVGBaseLayer),exports.SVGGroup=SVGGroup},function(module,exports,__webpack_require__){var Color,Layer,LayerStyle,Utils,_svgMeasureElement,denyCopy,getSVGMeasureElement,layerProperty,originTransform,ref,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;LayerStyle=__webpack_require__(29).LayerStyle,ref=__webpack_require__(15),Layer=ref.Layer,layerProperty=ref.layerProperty,Color=__webpack_require__(11).Color,Utils=__webpack_require__(4),_svgMeasureElement=null,denyCopy=function(){return Utils.throwInStudioOrWarnInProduction("SVGGroup and SVGPath do not support the `copy` method")},getSVGMeasureElement=function(constraints){for(null==constraints&&(constraints={}),null==_svgMeasureElement&&(_svgMeasureElement=document.createElementNS("http://www.w3.org/2000/svg","svg"),_svgMeasureElement.id="_svgMeasure",_svgMeasureElement.style.position="fixed",_svgMeasureElement.style.visibility="hidden",_svgMeasureElement.style.top="-10000px",_svgMeasureElement.style.left="-10000px",window.document.body?window.document.body.appendChild(_svgMeasureElement):(document.write(_svgMeasureElement.outerHTML),_svgMeasureElement=document.getElementById("_svgMeasure")));_svgMeasureElement.hasChildNodes();)_svgMeasureElement.removeChild(_svgMeasureElement.lastChild);return _svgMeasureElement},originTransform=function(value,layer,name){var layerSize,sizeProp,svgSize;switch(sizeProp=void 0,name){case"originX":sizeProp="width";break;case"originY":sizeProp="height"}return null==sizeProp?value:(layerSize=layer[sizeProp],svgSize=layer._svgSize[sizeProp],layerSize>=0&&svgSize>0?layerSize/svgSize*value:value)},exports.SVGBaseLayer=function(superClass){function SVGBaseLayer(options){this.resetViewbox=bind(this.resetViewbox,this),this.updateForDevicePixelRatioChange=bind(this.updateForDevicePixelRatioChange,this);var element,index,indicesToRemove,k,l,len,len1,len2,m,matrix,n,pathProperties,prop,ref1,ref2,ref3,ref4,svgLayer,transform;if(element=options.element,this._element=element,this._elementBorder=element,this._elementHTML=element,this._parent=options.parent,delete options.parent,delete options.element,this._parent instanceof SVGLayer)for(this._stylesAppliedToParent=["webkitTransform","webkitTransformOrigin"],ref1=["x","y","z","scaleX","scaleY","scaleZ","scale","skewX","skewY","skew","rotationX","rotationY","rotationZ","force2d","originX","originY"],k=0,len=ref1.length;k<len;k++)prop=ref1[k],null==options[prop]&&(options[prop]=this._parent[prop]);else this._pixelMultiplierOverride=1;for(svgLayer=this._parent;null!=svgLayer&&!(svgLayer instanceof SVGLayer);)svgLayer=svgLayer._parent;if(this._svgLayer=svgLayer,this._svg=this._svgLayer.svg,this._svgSize=svgLayer.size,pathProperties=["fill","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-dasharray","stroke-dashoffset","name","opacity"],_.defaults(options,this.constructor.attributesFromElement(pathProperties,element)),this._element.transform.baseVal.numberOfItems>0){for(null==options.x&&(options.x=0),null==options.y&&(options.y=0),null==options.rotationZ&&(options.rotationZ=0),indicesToRemove=[],i=l=0,ref2=this._element.transform.baseVal.numberOfItems;0<=ref2?l<ref2:l>ref2;i=0<=ref2?++l:--l)switch(transform=this._element.transform.baseVal.getItem(i),matrix=transform.matrix,transform.type){case 2:options.x+=matrix.e,options.y+=matrix.f,indicesToRemove.push(i);break;case 4:options.rotationZ+=180*-(Math.atan2(matrix.c,matrix.d)/Math.PI),indicesToRemove.push(i)}for(ref3=indicesToRemove.reverse(),m=0,len1=ref3.length;m<len1;m++)index=ref3[m],this._element.transform.baseVal.removeItem(index)}for(this.calculateSize(),SVGBaseLayer.__super__.constructor.call(this,options),this.resetViewbox(),ref4=["frame","stroke","strokeWidth","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeDasharray","strokeDashoffset","rotation","scale"],n=0,len2=ref4.length;n<len2;n++)prop=ref4[n],this.on("change:"+prop,this.resetViewbox)}var fn,i,j;for(extend(SVGBaseLayer,superClass),SVGBaseLayer.define("parent",{enumerable:!1,exportable:!1,importable:!1,get:function(){return this._parent instanceof SVGLayer?this._parent.parent:this._parent||null}}),SVGBaseLayer.define("html",{get:function(){return this._element.outerHTML||""}}),SVGBaseLayer.define("width",{get:function(){return this._width}}),SVGBaseLayer.define("height",{get:function(){return this._height}}),SVGBaseLayer.define("originX",layerProperty(SVGBaseLayer,"originX","webkitTransformOrigin",.5,_.isNumber,originTransform)),SVGBaseLayer.define("originY",layerProperty(SVGBaseLayer,"originY","webkitTransformOrigin",.5,_.isNumber,originTransform)),SVGBaseLayer.undefine(["label","blending","image"]),SVGBaseLayer.undefine(["blur","brightness","saturate","hueRotate","contrast","invert","grayscale","sepia"]),SVGBaseLayer.undefine(["backgroundBlur","backgroundBrightness","backgroundSaturate","backgroundHueRotate","backgroundContrast","backgroundInvert","backgroundGrayscale","backgroundSepia"]),fn=function(i){return SVGBaseLayer.undefine("shadow"+(i+1))},i=j=0;j<=8;i=++j)fn(i);return SVGBaseLayer.undefine("shadows"),SVGBaseLayer.undefine(["borderRadius","cornerRadius","borderStyle"]),SVGBaseLayer.undefine(["constraintValues","htmlIntrinsicSize"]),SVGBaseLayer.undefine("gradient"),SVGBaseLayer.alias=function(propertyName,proxiedName){return this.define(propertyName,{get:function(){return this[proxiedName]},set:function(value){if(!this.__applyingDefaults)return this[proxiedName]=value}})},SVGBaseLayer.alias("borderColor","stroke"),SVGBaseLayer.alias("strokeColor","stroke"),SVGBaseLayer.alias("borderWidth","strokeWidth"),SVGBaseLayer.alias("backgroundColor","fill"),SVGBaseLayer.alias("color","fill"),SVGBaseLayer.prototype._insertElement=function(){},SVGBaseLayer.prototype.updateForSizeChange=function(){},SVGBaseLayer.prototype.updateForDevicePixelRatioChange=function(){var cssProperty,k,len,ref1,results;for(ref1=["width","height","webkitTransform"],results=[],k=0,len=ref1.length;k<len;k++)cssProperty=ref1[k],results.push(this._element.style[cssProperty]=LayerStyle[cssProperty](this));return results},SVGBaseLayer.prototype.addChild=void 0,SVGBaseLayer.prototype.removeChild=void 0,SVGBaseLayer.prototype.addSubLayer=void 0,SVGBaseLayer.prototype.removeSubLayer=void 0,SVGBaseLayer.prototype.bringToFront=void 0,SVGBaseLayer.prototype.sendToBack=void 0,SVGBaseLayer.prototype.placeBefore=void 0,SVGBaseLayer.prototype.placeBehind=void 0,SVGBaseLayer.attributesFromElement=function(attributes,element){var attribute,k,key,len,options;for(options={},k=0,len=attributes.length;k<len;k++)attribute=attributes[k],key=_.camelCase(attribute),options[key]=element.getAttribute(attribute);return options},SVGBaseLayer.prototype.calculateSize=function(){var element,measuredElement,parent,rect,reference,scaleX,scaleY,svgMeasure;if(element=this._element,measuredElement=null,scaleX=1,scaleY=1,("undefined"!=typeof Framer&&null!==Framer?Framer.CurrentContext.elementInDOM:void 0)?(scaleX=this._parent.canvasScaleX(),scaleY=this._parent.canvasScaleY()):(parent=this._element.parentElement,reference=this._element.nextSibling,svgMeasure=getSVGMeasureElement(),svgMeasure.appendChild(this._element),measuredElement=svgMeasure.firstChild,element=measuredElement),rect=element.getBoundingClientRect(),this._width=rect.width/scaleX,this._height=rect.height/scaleY,null!=measuredElement)return null!=reference?parent.insertBefore(measuredElement,reference):parent.appendChild(measuredElement)},SVGBaseLayer.prototype.resetViewbox=function(){return this._svg.setAttribute("viewBox","0,0,"+this.width+","+this.height),this._svg.removeAttribute("viewBox")},SVGBaseLayer.prototype.copy=function(){return denyCopy()},SVGBaseLayer.prototype.copySingle=function(){return denyCopy()},SVGBaseLayer}(Layer)},function(module,exports,__webpack_require__){var Color,Layer,SVG,SVGBaseLayer,dasharrayTransform,dashoffsetTransform,layerProperty,ref,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;ref=__webpack_require__(15),Layer=ref.Layer,layerProperty=ref.layerProperty,Color=__webpack_require__(11).Color,SVGBaseLayer=__webpack_require__(46).SVGBaseLayer,SVG=__webpack_require__(23).SVG,dasharrayTransform=function(value){var values;return _.isString(value)?(values=[],values=value.indexOf(",")!==-1?value.split(","):value.split(" "),values=values.map(function(v){return v.trim()}).filter(function(v){return v.length>0}).map(function(v){return parseFloat(v)})):value},dashoffsetTransform=function(value){var v;return v=parseFloat(value),isNaN(v)?null:v},exports.SVGPath=function(superClass){function SVGPath(path,options){this.valueUpdater=bind(this.valueUpdater,this),this.end=bind(this.end,this),this.start=bind(this.start,this);var link;path instanceof SVGPath&&(path=path.element),options.element=path,SVGPath.__super__.constructor.call(this,options),path instanceof SVGPathElement?this._path=path:path instanceof SVGUseElement&&(link=path.getAttribute("xlink:href"),this._path=this._svg.querySelector(link)),this._length=this._path.getTotalLength()}return extend(SVGPath,superClass),SVGPath.prototype.updateStroke=function(){var dasharray,endLength,gap,length,ref1,ref2,remaining,startLength;return startLength=null!=(ref1=this.strokeStart)?ref1:0,endLength=null!=(ref2=this.strokeEnd)?ref2:this.length,dasharray=[],endLength===startLength?(0!==startLength&&(dasharray.push(0),dasharray.push(startLength)),remaining=this.length-endLength,0!==remaining&&(dasharray.push(0),dasharray.push(remaining))):endLength<startLength?(gap=startLength-endLength,remaining=this.length-startLength,dasharray.push(endLength),dasharray.push(gap),0!==remaining&&(dasharray.push(remaining),dasharray.push(0))):(length=endLength-startLength,remaining=this.length-endLength,0!==startLength&&(dasharray.push(0),dasharray.push(startLength)),length===this.length||0===length&&0!==startLength||(dasharray.push(length),length!==remaining&&0!==remaining&&dasharray.push(remaining))),this.reversed&&(dasharray.length%2===0&&dasharray.push(0),dasharray.reverse()),this.strokeDasharray=dasharray},SVGPath.define("fill",layerProperty(SVGPath,"fill","fill",null,SVG.validFill,SVG.toFill)),SVGPath.define("stroke",layerProperty(SVGPath,"stroke","stroke",null,SVG.validFill,SVG.toFill)),SVGPath.define("strokeWidth",layerProperty(SVGPath,"strokeWidth","strokeWidth",null,_.isNumber,parseFloat)),SVGPath.define("strokeLinecap",layerProperty(SVGPath,"strokeLinecap","strokeLinecap",null,_.isString)),SVGPath.define("strokeLinejoin",layerProperty(SVGPath,"strokeLinejoin","strokeLinejoin",null,_.isString)),SVGPath.define("strokeMiterlimit",layerProperty(SVGPath,"strokeMiterlimit","strokeMiterlimit",null,_.isNumber,parseFloat)),SVGPath.define("strokeOpacity",layerProperty(SVGPath,"strokeOpacity","strokeOpacity",null,_.isNumber,parseFloat)),SVGPath.define("strokeDasharray",layerProperty(SVGPath,"strokeDasharray","strokeDasharray",[],_.isArray,dasharrayTransform)),SVGPath.define("strokeDashoffset",layerProperty(SVGPath,"strokeDashoffset","strokeDashoffset",null,_.isNumber,dashoffsetTransform)),SVGPath.define("strokeLength",layerProperty(SVGPath,"strokeLength",null,void 0,_.isNumber,function(value,path){return Math.max(0,Math.min(value,path.length))},{},function(path,value){var ref1,strokeEnd,strokeStart;return strokeStart=null!=(ref1=path.strokeStart)?ref1:0,strokeEnd=strokeStart+value,strokeEnd>path.length&&(strokeEnd-=path.length),path._properties.strokeStart=strokeStart,path._properties.strokeEnd=strokeEnd,path._properties.strokeFraction=value/path.length,path.updateStroke()})),SVGPath.define("strokeFraction",layerProperty(SVGPath,"strokeFraction",null,void 0,_.isNumber,function(value,path){return Math.max(0,Math.min(value,1))},{},function(path,value){return path.strokeLength=path.length*value})),SVGPath.define("strokeStart",layerProperty(SVGPath,"strokeStart",null,void 0,_.isNumber,function(value,path){return Math.max(0,Math.min(value,path.length))},{},function(path,value){var ref1,ref2,strokeEnd,strokeStart;return strokeStart=value,strokeEnd=null!=(ref1=null!=(ref2=path.strokeEnd)?ref2:path.strokeLength)?ref1:path.length,strokeEnd>=strokeStart?path.strokeLength=strokeEnd-strokeStart:path.strokeLength=path.length-strokeStart+strokeEnd})),SVGPath.define("strokeEnd",layerProperty(SVGPath,"strokeEnd",null,void 0,_.isNumber,function(value,path){return Math.max(0,Math.min(value,path.length))},{},function(path,value){var ref1,strokeEnd,strokeStart;return strokeStart=null!=(ref1=path.strokeStart)?ref1:0,strokeEnd=value,strokeEnd>=strokeStart?path.strokeLength=strokeEnd-strokeStart:path.strokeLength=path.length-strokeStart+strokeEnd})),SVGPath.define("length",{get:function(){return this._length}}),SVGPath.define("reversed",SVGPath.simpleProperty("reversed",!1)),SVGPath.prototype.pointAtFraction=function(fraction){return this.reversed&&(fraction=1-fraction),this._path.getPointAtLength(this.length*fraction)},SVGPath.prototype.rotationAtFraction=function(fraction,delta){var angle,fromPoint,toPoint;return null==delta&&(delta=.01),this.reversed&&(fraction=1-fraction),delta<=0&&(delta=.01),fromPoint=this.pointAtFraction(Math.max(fraction-delta,0)),toPoint=this.pointAtFraction(Math.min(fraction+delta,1)),angle=180*Math.atan2(fromPoint.y-toPoint.y,fromPoint.x-toPoint.x)/Math.PI-90,this.reversed&&(angle=360-angle),angle},SVGPath.prototype.start=function(relativeToLayer){var point;return null==relativeToLayer&&(relativeToLayer=null),point=this.pointAtFraction(0),point=this.convertPointToLayer(point,null!=relativeToLayer?relativeToLayer.parent:void 0,!1),point.rotation=this.rotationAtFraction(0),point},SVGPath.prototype.end=function(relativeToLayer){var point;return null==relativeToLayer&&(relativeToLayer=null),point=this.pointAtFraction(0),point=this.convertPointToLayer(point,null!=relativeToLayer?relativeToLayer.parent:void 0,!1),point.rotation=this.rotationAtFraction(1),point},SVGPath.prototype.valueUpdater=function(axis,target,offset){switch(axis){case"horizontal":return offset-=this.pointAtFraction(0).x,function(_this){return function(key,value){return target[key]=offset+_this.pointAtFraction(value).x}}(this);case"vertical":return offset-=this.pointAtFraction(0).y,function(_this){return function(key,value){return target[key]=offset+_this.pointAtFraction(value).y}}(this);case"angle":return offset-=this.rotationAtFraction(0),function(_this){return function(key,value,delta){if(null==delta&&(delta=0),0!==delta)return target[key]=offset+_this.rotationAtFraction(value,delta)}}(this)}},SVGPath}(SVGBaseLayer)},function(module,exports,__webpack_require__){var Layer,LayerStyle,StyledText,asPadding,fontFamilyFromObject,layerProperty,ref,textProperty,validateFont,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;ref=__webpack_require__(15),Layer=ref.Layer,layerProperty=ref.layerProperty,LayerStyle=__webpack_require__(29).LayerStyle,StyledText=__webpack_require__(32).StyledText,validateFont=function(arg){return _.isString(arg)||_.isObject(arg)},fontFamilyFromObject=function(font){return _.isObject(font)?font.fontFamily:font},textProperty=function(obj,name,fallback,validator,transformer,set){return layerProperty(obj,name,name,fallback,validator,transformer,{},set,"_elementHTML")},asPadding=function(value){var i,isValidObject,key,len,ref1,ref2,result;if(_.isNumber(value))return value;if(!_.isObject(value))return 0;for(result={},isValidObject=!1,null!=value.horizontal&&(null==value.left&&(value.left=value.horizontal),null==value.right&&(value.right=value.horizontal)),null!=value.vertical&&(null==value.top&&(value.top=value.vertical),null==value.bottom&&(value.bottom=value.vertical)),ref1=["left","right","bottom","top"],i=0,len=ref1.length;i<len;i++)key=ref1[i],isValidObject||(isValidObject=_.has(value,key)),result[key]=null!=(ref2=value[key])?ref2:0;return isValidObject?result:0},exports.TextLayer=function(superClass){function TextLayer(options){var constraintValues,explicitHeight,explicitWidth,fn,fontWeight,heightFactor,i,key,len,lineHeight,property,ref1,ref2,ref3,ref4,ref5,text,topAndBottom,value;null==options&&(options={}),this.renderText=bind(this.renderText,this),this.updateAutoHeight=bind(this.updateAutoHeight,this),this.updateAutoWidth=bind(this.updateAutoWidth,this),_.defaults(options,{shadowType:"text",clip:!1,createHTMLElement:!0}),null!=options.styledText?(this.styledTextOptions=options.styledText,null==options.color&&(options.color=this._styledText.getStyle("color")),null==options.fontSize&&(options.fontSize=parseFloat(this._styledText.getStyle("fontSize"))),null==options.fontFamily&&(options.fontFamily=this._styledText.getStyle("fontFamily")),null==options.letterSpacing&&(options.letterSpacing=parseFloat(this._styledText.getStyle("letterSpacing"))),null==options.textAlign&&(options.textAlign=this._styledText.textAlign),fontWeight=this._styledText.getStyle("fontWeight"),null!=fontWeight&&(options.fontWeight=parseFloat(fontWeight)),lineHeight=this._styledText.getStyle("lineHeight"),lineHeight=null==lineHeight||"normal"===lineHeight?1.25:parseFloat(lineHeight),null==options.lineHeight&&(options.lineHeight=lineHeight)):(_.defaults(options,{backgroundColor:"transparent",text:"Hello World",color:"#888",fontSize:40,fontWeight:400,lineHeight:1.25,padding:0}),null==options.font&&null==options.fontFamily&&(options.fontFamily=this.defaultFont()),text=options.text,_.isString(text)||(text=String(text)),this._styledText.addBlock(text,{fontSize:options.fontSize+"px"})),TextLayer.__super__.constructor.call(this,options),this.__constructor=!0,options.autoSize?(this.autoWidth=!0,this.autoHeight=!0):options.autoSize===!1||options.truncate||(null==options.autoWidth&&(explicitWidth=null!=options.width||_.isNumber(options.size)||null!=(null!=(ref1=options.size)?ref1.width:void 0)||null!=(null!=(ref2=options.frame)?ref2.width:void 0),this.autoWidth=!explicitWidth),null==options.autoHeight&&(explicitHeight=null!=options.height||_.isNumber(options.size)||null!=(null!=(ref3=options.size)?ref3.height:void 0)||null!=(null!=(ref4=options.frame)?ref4.height:void 0),this.autoHeight=!explicitHeight)),constraintValues=options.constraintValues,constraintValues&&(topAndBottom=_.isNumber(constraintValues.top)&&_.isNumber(constraintValues.bottom),heightFactor=_.isNumber(constraintValues.heightFactor),this.autoHeight=!(heightFactor||topAndBottom)),null==options.styledText&&null==this.font&&(this.font=this.fontFamily),this._styledText.setElement(this._elementHTML),delete this.__constructor,this.renderText();for(key in options)value=options[key],_.isFunction(value)&&null!=this[key]&&(this[key]=value);for(ref5=TextLayer._textStyleProperties,fn=function(_this){return function(property){return _this.on("change:"+property,function(value){if(null!==value)return"fontSize"!==property&&"font"!==property&&_this._styledText.resetStyle(property),_this.renderText()})}}(this),i=0,len=ref5.length;i<len;i++)property=ref5[i],fn(property);this.on("change:width",this.updateAutoWidth),this.on("change:height",this.updateAutoHeight),this.on("change:parent",this.renderText)}return extend(TextLayer,superClass),TextLayer._textProperties=["text","fontFamily","fontSize","fontWeight","fontStyle","lineHeight","letterSpacing","wordSpacing","textAlign","textTransform","textIndent","textDecoration","textOverflow","whiteSpace","direction","font","borderWidth","padding"],TextLayer._textStyleProperties=_.pull(_.clone(TextLayer._textProperties),"text").concat(["color","shadowX","shadowY","shadowBlur","shadowColor"]),TextLayer.prototype.updateAutoWidth=function(value){if(!this.disableAutosizeUpdating)return this.autoWidth=!1},TextLayer.prototype.updateAutoHeight=function(value){if(!this.disableAutosizeUpdating)return this.autoHeight=!1},TextLayer.prototype.copySingle=function(){var copy,props;return props=this.props,this.autoWidth&&delete props.width,this.autoHeight&&delete props.height,copy=new this.constructor(props),copy.style=this.style,copy},TextLayer.define("_styledText",{get:function(){return null==this.__styledText&&(this.__styledText=new StyledText),this.__styledText},set:function(value){if(value instanceof StyledText)return this.__styledText=value}}),TextLayer.define("styledTextOptions",{get:function(){var ref1;return null!=(ref1=this._styledText)?ref1.getOptions():void 0},set:function(value){var fonts,promise;if(this._styledText=new StyledText(value),this._styledText.setElement(this._elementHTML),fonts=this._styledText.getFonts(),promise=Utils.isFontFamilyLoaded(fonts),_.isObject(promise))return promise.then(function(_this){return function(){return _this.renderText()}}(this))}}),TextLayer.define("autoWidth",TextLayer.proxyProperty("_styledText.autoWidth",{didSet:function(layer,value){return layer.renderText()}})),TextLayer.define("autoHeight",TextLayer.proxyProperty("_styledText.autoHeight",{didSet:function(layer,value){return layer.renderText()}})),TextLayer.define("autoSize",{get:function(){return this.autoWidth&&this.autoHeight},set:function(value){return this.autoWidth=value,this.autoHeight=value,this.renderText()}}),TextLayer.define("fontFamily",textProperty(TextLayer,"fontFamily",null,_.isString,fontFamilyFromObject,function(layer,value){var promise;if(null!==value)return layer.font=value,promise=Utils.isFontFamilyLoaded(value),_.isObject(promise)?promise.then(function(){return setTimeout(layer.renderText,0)}):void 0})),TextLayer.define("fontWeight",textProperty(TextLayer,"fontWeight",null)),TextLayer.define("fontStyle",textProperty(TextLayer,"fontStyle","normal",_.isString)),TextLayer.define("textDecoration",textProperty(TextLayer,"textDecoration",null,_.isString)),TextLayer.define("fontSize",textProperty(TextLayer,"fontSize",null,_.isNumber,null,function(layer,value){var style;if(null!==value&&!layer.__constructor)return style=LayerStyle.fontSize(layer),layer._styledText.setStyle("fontSize",style)})),TextLayer.define("textAlign",textProperty(TextLayer,"textAlign",null)),TextLayer.define("letterSpacing",textProperty(TextLayer,"letterSpacing",null,_.isNumber)),TextLayer.define("lineHeight",textProperty(TextLayer,"lineHeight",null,_.isNumber)),TextLayer.define("wordSpacing",textProperty(TextLayer,"wordSpacing",null,_.isNumber)),TextLayer.define("textTransform",textProperty(TextLayer,"textTransform","none",_.isString)),TextLayer.define("textIndent",textProperty(TextLayer,"textIndent",null,_.isNumber)),TextLayer.define("wordWrap",textProperty(TextLayer,"wordWrap",null,_.isString)),TextLayer.define("textOverflow",{get:function(){return this._styledText.textOverflow},set:function(value){return this.clip=_.isString(value),this._styledText.setTextOverflow(value),this.renderText(!0)}}),TextLayer.define("truncate",{get:function(){return"ellipsis"===this.textOverflow},set:function(truncate){return truncate?(this.autoSize=!1,this.textOverflow="ellipsis"):this.textOverflow=null}}),TextLayer.define("whiteSpace",textProperty(TextLayer,"whiteSpace",null,_.isString)),TextLayer.define("direction",textProperty(TextLayer,"direction",null,_.isString)),TextLayer.define("html",{get:function(){var ref1;return(null!=(ref1=this._elementHTML)?ref1.innerHTML:void 0)||""}}),TextLayer.define("font",layerProperty(TextLayer,"font",null,null,validateFont,null,{},function(layer,value){if(null!==value)return _.isObject(value)?(layer.fontFamily=value.fontFamily,void(layer.fontWeight=value.fontWeight)):/\d/.test(value)?layer._styledText.setStyle("font",value):layer.fontFamily=value},"_elementHTML")),TextLayer.define("textDirection",{get:function(){return this.direction},set:function(value){return this.direction=value}}),TextLayer.define("padding",layerProperty(TextLayer,"padding","padding",0,null,asPadding)),TextLayer.define("text",{get:function(){return this._styledText.getText()},set:function(value){return _.isString(value)||(value=String(value)),this._styledText.setText(value),this.renderText(),this.emit("change:text",value)}}),TextLayer.prototype.renderText=function(forceRender){var calculatedSize,constrainedHeight,constrainedWidth,constraints,padding;if(null==forceRender&&(forceRender=!1),!this.__constructor&&(this._styledText.render(),this._updateHTMLScale(),this.autoSize||(this.width<this._elementHTML.clientWidth||this.height<this._elementHTML.clientHeight)&&(this.clip=!0),forceRender||this.autoHeight||this.autoWidth||null!==this.textOverflow))return padding=Utils.rectZero(Utils.parseRect(this.padding)),constrainedWidth=this.autoWidth?null:this.size.width-(padding.left+padding.right),constrainedHeight=this.autoHeight?null:this.size.height-(padding.top+padding.bottom),constraints={width:constrainedWidth,height:constrainedHeight,multiplier:this.context.pixelMultiplier},calculatedSize=this._styledText.measure(constraints),this.disableAutosizeUpdating=!0,null!=calculatedSize.width&&(this.width=calculatedSize.width+padding.left+padding.right),null!=calculatedSize.height&&(this.height=calculatedSize.height+padding.top+padding.bottom),this.disableAutosizeUpdating=!1},TextLayer.prototype.defaultFont=function(){return Utils.deviceFont(Framer.Device.platform())},TextLayer.prototype.textReplace=function(search,replace){var oldText;if(oldText=this.text,this._styledText.textReplace(search,replace),this.text!==oldText)return this.renderText(),this.emit("change:text",this.text)},TextLayer.define("template",{get:function(){return _.clone(this._templateData)},set:function(data){var firstName,oldText;if(this._templateData||(this._templateData={}),firstName=this._styledText.buildTemplate(),_.isObject(data))_.assign(this._templateData,data);else{if(!firstName)return;this._templateData[firstName]=data}if(oldText=this.text,this._styledText.template(this._templateData),this.text!==oldText)return this.renderText(),this.emit("change:text",this.text)}}),TextLayer.define("templateFormatter",{get:function(){return this._templateFormatter},set:function(data){var firstName,tmp;if(firstName=this._styledText.buildTemplate(),_.isFunction(data)||!_.isObject(data)){if(!firstName)return;tmp={},tmp[firstName]=data,data=tmp}return this._styledText.templateFormatter(data)}}),TextLayer}(Layer)},function(module,exports,__webpack_require__){var AnimationGroup,AnimationStateGroup,BaseClass,_,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,slice=[].slice,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};_=__webpack_require__(1)._,BaseClass=__webpack_require__(6).BaseClass,AnimationGroup=function(superClass){function AnimationGroup(){var args;args=1<=arguments.length?slice.call(arguments,0):[],AnimationGroup.__super__.constructor.apply(this,arguments),this._animations=_.flatten(args),this.stopAnimations=!0,this.stop()}return extend(AnimationGroup,superClass),AnimationGroup.prototype.start=function(){return this._start(this._animations)},AnimationGroup.prototype.stop=function(){return this._stop(),this._started=[],this._halted=[],this._stopped=[],this._ended=[]},AnimationGroup.prototype._start=function(animations){return this.stop(),this._onStart(),animations.map(function(_this){return function(animation){return _this._started.push(animation),animation.onAnimationHalt(function(){if(_this._halted.push(animation),!(_this._halted.length>1))return _this._stop(),_this._onHalt()}),animation.onAnimationStop(function(){if(_this._stopped.push(animation),_this._stopped.length===_this._started.length)return _this._onStop()}),animation.onAnimationEnd(function(){if(_this._ended.push(animation),_this._ended.length===_this._started.length)return _this._onEnd()}),animation.start()}}(this))},AnimationGroup.prototype._stop=function(){if(this._started&&this.stopAnimations===!0)return this._started.map(function(a){if(a.isAnimating)return a.stop()})},AnimationGroup.prototype._onStart=function(){return this.emit(Events.AnimationStart)},AnimationGroup.prototype._onHalt=function(){return this.emit(Events.AnimationHalt)},AnimationGroup.prototype._onStop=function(){return this.emit(Events.AnimationStop)},AnimationGroup.prototype._onEnd=function(){return this.emit(Events.AnimationEnd)},AnimationGroup.prototype.onAnimationStart=function(cb){return this.on(Events.AnimationStart,cb)},AnimationGroup.prototype.onAnimationHalt=function(cb){return this.on(Events.AnimationHalt,cb)},AnimationGroup.prototype.onAnimationStop=function(cb){return this.on(Events.AnimationStop,cb)},AnimationGroup.prototype.onAnimationEnd=function(cb){return this.on(Events.AnimationEnd,cb)},AnimationGroup.prototype.onStart=function(cb){return this.onAnimationStart(cb)},AnimationGroup.prototype.onHalt=function(cb){return this.onAnimationHalt(cb)},AnimationGroup.prototype.onStop=function(cb){return this.onAnimationStop(cb)},AnimationGroup.prototype.onEnd=function(cb){return this.onAnimationEnd(cb)},AnimationGroup}(BaseClass),AnimationStateGroup=function(superClass){function AnimationStateGroup(){var layers;layers=1<=arguments.length?slice.call(arguments,0):[],AnimationStateGroup.__super__.constructor.apply(this,arguments),this._layers=_.flatten(layers),this._state="default"}return extend(AnimationStateGroup,superClass),AnimationStateGroup.prototype.animate=function(state){var animations,i,layer,len,ref;for(animations=[],ref=this._layers,i=0,len=ref.length;i<len;i++)layer=ref[i],layer.states[state]&&animations.push(layer.animate(state,{start:!1}));if(animations)return this._start(animations),this._state=state},AnimationStateGroup.define("state",{get:function(){return this._state}}),AnimationStateGroup.define("states",{get:function(){var i,j,layer,len,len1,ref,ref1,state,states;for(states=[],ref=this._layers,i=0,len=ref.length;i<len;i++)for(layer=ref[i],ref1=_.keys(layer.states),j=0,len1=ref1.length;j<len1;j++)state=ref1[j],indexOf.call(states,state)<0&&states.push(state);return states}}),AnimationStateGroup.prototype.stateCycle=function(){var args,states;return args=1<=arguments.length?slice.call(arguments,0):[],states=_.flatten(args),states.length||(states=this.states), this.animate(Utils.arrayNext(states,this.state))},AnimationStateGroup}(AnimationGroup),exports.AnimationGroup=AnimationGroup,exports.AnimationStateGroup=AnimationStateGroup},function(module,exports){var bottom,center,left,pixelRound,right,top,wrapper;pixelRound=parseInt,center=function(layer,property,offset){var borderWidth,parent,x,y;return null==offset&&(offset=0),parent=Screen,layer.parent&&(parent=layer.parent),borderWidth=parent.borderWidth,null==borderWidth&&(borderWidth=0),x=pixelRound(parent.width/2-layer.width/2-borderWidth+offset),y=pixelRound(parent.height/2-layer.height/2-borderWidth+offset),"x"===property?x:"y"===property?y:"point"===property?{x:x,y:y}:0},left=function(layer,property,offset){var parent;if(null==offset&&(offset=0),"x"!==property)throw Error("Align.left only works for x");return parent=Screen,layer.parent&&(parent=layer.parent),pixelRound(0+offset)},right=function(layer,property,offset){var borderWidth,parent;if(null==offset&&(offset=0),"x"!==property)throw Error("Align.right only works for x");return parent=Screen,layer.parent&&(parent=layer.parent),borderWidth=parent.borderWidth,null==borderWidth&&(borderWidth=0),pixelRound(parent.width-2*borderWidth-layer.width+offset)},top=function(layer,property,offset){var parent;if(null==offset&&(offset=0),"y"!==property)throw Error("Align.top only works for y");return parent=Screen,layer.parent&&(parent=layer.parent),pixelRound(0+offset)},bottom=function(layer,property,offset){var borderWidth,parent;if(null==offset&&(offset=0),"y"!==property)throw Error("Align.bottom only works for y");return parent=Screen,layer.parent&&(parent=layer.parent),borderWidth=parent.borderWidth,null==borderWidth&&(borderWidth=0),pixelRound(parent.height-2*borderWidth-layer.height+offset)},wrapper=function(f,name){var align;return align=function(a,b){return null==a||_.isNumber(a)?function(l,p){return f(l,p,a)}:f(a,b,0)},align.toInspect=function(){return"Align."+name},align},exports.Align={center:wrapper(center,"center"),left:wrapper(left,"left"),right:wrapper(right,"right"),top:wrapper(top,"top"),bottom:wrapper(bottom,"bottom")}},function(module,exports){exports.Blending={normal:"normal",multiply:"multiply",screen:"screen",overlay:"overlay",darken:"darken",lighten:"lighten",colorDodge:"color-dodge",colorBurn:"color-burn",hardLight:"hard-light",softLight:"soft-light",difference:"difference",exclusion:"exclusion",hue:"hue",saturation:"saturation",color:"color",luminosity:"luminosity"}},function(module,exports,__webpack_require__){var Context,Printer,Utils,_printer,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},slice=[].slice;Utils=__webpack_require__(4),Context=__webpack_require__(53).Context,Printer=function(){function Printer(){this.scrollToBottom=bind(this.scrollToBottom,this),this.print=bind(this.print,this),this.resize=bind(this.resize,this),this.createLayer=bind(this.createLayer,this),this._context=new Context({name:"PrintConsole"}),this._context.run(function(_this){return function(){return Events.wrap(window).addEventListener("resize",_this.resize)}}(this))}return Printer.prototype.createLayer=function(){return this._printLayer?this._printLayer:(this._context.run(function(_this){return function(){return _this._container=new Layer({backgroundColor:null}),_this._container.style.zIndex=999,_this._printLayer=new Layer({parent:_this._container}),_this._printLayer.scrollVertical=!0,_this._printLayer.ignoreEvents=!1,_this._printLayer.html="",_this._printLayer.style={font:"12px/1.35em Menlo, Consolas, monospace",color:"rgba(0, 0, 0, .7)",padding:"8px","padding-bottom":"30px","border-top":"1px solid #d9d9d9"},_this._printLayer.opacity=.9,_this._printLayer.visible=!0,_this._printLayer.backgroundColor="white",_this._closeButton=new Layer({parent:_this._container,html:'<svg><g stroke="#B8B8B8"><path d="M1,1 L8,8"></path><path d="M1,8 L8,1"></path></g></svg>',y:9,width:9,height:9,backgroundColor:null}),_this._closeButton.style.cursor="auto",_this._closeButton.onClick(function(){return _this.hide()})}}(this)),this.resize(),this._printLayer)},Printer.prototype.resize=function(){if(this._printLayer)return this._container.width=window.innerWidth,this._container.height=160,this._container.maxY=window.innerHeight,this._printLayer.size=this._container.size,this._closeButton.maxX=this._container.maxX-this._closeButton.y+1},Printer.prototype.hide=function(){return this._context.visible=!1},Printer.prototype.print=function(){var args,printNode,printPrefix;return args=1<=arguments.length?slice.call(arguments,0):[],this.createLayer(),this._context.visible=!0,printPrefix="» ",printNode=document.createElement("div"),printNode.style["-webkit-user-select"]="text",printNode.style.cursor="auto",printNode.innerHTML=_.escape(printPrefix+args.map(function(obj){return Utils.inspect(obj)}).join(", "))+"<br>",this._printLayer._element.appendChild(printNode),this.scrollToBottom(),Utils.delay(0,this.scrollToBottom)},Printer.prototype.scrollToBottom=function(){if(this._printLayer)return this._printLayer._element.scrollTop=this._printLayer._element.scrollHeight},Printer}(),_printer=null,exports.print=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],null==_printer&&(_printer=new Printer),_printer.print.apply(_printer,args)}},function(module,exports,__webpack_require__){var BaseClass,Config,Contexts,DOMEventManager,Defaults,Utils,_,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};_=__webpack_require__(1)._,Utils=__webpack_require__(4),Config=__webpack_require__(16).Config,Defaults=__webpack_require__(19).Defaults,BaseClass=__webpack_require__(6).BaseClass,DOMEventManager=__webpack_require__(54).DOMEventManager,Contexts=[],exports.Context=function(superClass){function Context(options){if(null==options&&(options={}),this.layout=bind(this.layout,this),options=Defaults.getDefaults("Context",options),Context.__super__.constructor.apply(this,arguments),!options.name)throw Error("Contexts need a name");this._parent=options.parent,this._name=options.name,this.perspective=options.perspective,this.perspectiveOriginX=options.perspectiveOriginX,this.perspectiveOriginY=options.perspectiveOriginY,this.elementInDOM=!1,this.reset(),options.hasOwnProperty("index")?this.index=options.index:this.index=this.id,Contexts.push(this)}return extend(Context,superClass),Context.all=function(){return _.clone(Contexts)},Context.define("parent",{get:function(){return this._parent}}),Context.define("element",{get:function(){return this._element}}),Context.define("devicePixelRatio",{get:function(){var ref;return null!=(ref=this._devicePixelRatio)?ref:1},set:function(value){var i,l,len,ref,results;if(value!==this._devicePixelRatio){for(this._devicePixelRatio=value,ref=this._layers,results=[],i=0,len=ref.length;i<len;i++)l=ref[i],results.push(l.updateForDevicePixelRatioChange());return results}}}),Context.define("renderUsingNativePixelRatio",Context.simpleProperty("renderUsingNativePixelRatio",!1)),Context.define("autoLayout",Context.simpleProperty("autoLayout",!0)),Context.define("pixelMultiplier",{get:function(){return this.renderUsingNativePixelRatio?1:this.devicePixelRatio}}),Context.define("scale",{get:function(){return this.pixelMultiplier}}),Context.prototype.reset=function(){return this._createDOMEventManager(),this._createRootElement(),this.resetFrozenEvents(),this.resetLayers(),this.resetAnimations(),this.resetTimers(),this.resetIntervals(),this.emit("reset",this)},Context.prototype.destroy=function(){return this.reset(),this._destroyRootElement(),_.remove(Contexts,this)},Context.define("layers",{get:function(){return _.clone(this._layers)}}),Context.define("layerCounter",{get:function(){return this._layerCounter}}),Context.define("rootLayers",{get:function(){return _.filter(this._layers,function(layer){return null===layer.parent})}}),Context.define("visible",{get:function(){return this._visible||!0},set:function(value){var ref;if(value!==this._visible)return null!=(ref=this._element)&&(ref.style.visibility=value?"visible":"hidden"),this._visible=value}}),Context.prototype.addLayer=function(layer){if(!(indexOf.call(this._layers,layer)>=0))return this._layerCounter++,this._layers.push(layer)},Context.prototype.removeLayer=function(layer){return this._layers=_.without(this._layers,layer)},Context.prototype.resetLayers=function(){return this.resetGestures(),this._layers=[],this._layerCounter=0},Context.prototype.layerForId=function(layerId){var i,layer,len,ref;for(ref=this._layers,i=0,len=ref.length;i<len;i++)if(layer=ref[i],layer.id===layerId)return layer;return null},Context.prototype._layerForElement=function(element){var i,layer,len,ref;for(ref=this._layers,i=0,len=ref.length;i<len;i++)if(layer=ref[i],layer._element===element)return layer;return null},Context.prototype.layerForElement=function(element){var layer;return element?(layer=this._layerForElement(element),layer?layer:this.layerForElement(element.parentNode)):null},Context.prototype.selectLayer=function(selector){return Utils.findLayer(this._layers,selector)},Context.prototype.selectAllLayers=function(selector){return Utils.filterLayers(this._layers,selector)},Context.prototype.layout=function(){return this.rootLayers.map(function(l){return l.layout()})},Context.define("animations",{get:function(){return _.clone(this._animations)}}),Context.prototype.addAnimation=function(animation){if(!(indexOf.call(this._animations,animation)>=0))return this._animations.push(animation)},Context.prototype.removeAnimation=function(animation){return this._animations=_.without(this._animations,animation)},Context.prototype.resetAnimations=function(){return this.stopAnimations(),this._animations=[]},Context.prototype.stopAnimations=function(){if(this._animations)return this._animations.map(function(animation){return animation.stop(!0)})},Context.prototype.resetFrozenEvents=function(){return delete this._frozenEvents},Context.define("timers",{get:function(){return _.clone(this._timers)}}),Context.prototype.addTimer=function(timer){if(!(indexOf.call(this._timers,timer)>=0))return this._timers.push(timer)},Context.prototype.removeTimer=function(timer){return window.clearTimeout(timer),this._timers=_.without(this._timers,timer)},Context.prototype.resetTimers=function(){return this._timers&&this._timers.map(window.clearTimeout),this._timers=[]},Context.define("intervals",{get:function(){return _.clone(this._intervals)}}),Context.prototype.addInterval=function(interval){if(!(indexOf.call(this._intervals,interval)>=0))return this._intervals.push(interval)},Context.prototype.removeInterval=function(interval){return this._intervals=_.without(this._intervals,interval)},Context.prototype.resetIntervals=function(){return this._intervals&&this._intervals.map(window.clearInterval),this._intervals=[]},Context.prototype.resetGestures=function(){var i,layer,len,ref;if(this._layers)for(ref=this._layers,i=0,len=ref.length;i<len;i++)layer=ref[i],layer._gestures&&layer._gestures.destroy()},Context.prototype.run=function(fn){var previousContext;return previousContext=Framer.CurrentContext,Framer.CurrentContext=this,fn(),Framer.CurrentContext=previousContext},Context.prototype.freeze=function(){var eventName,i,j,layer,layerId,layerListeners,len,len1,ref,ref1;if(null!=this._frozenEvents)throw new Error("Context is already frozen");for(this._frozenEvents={},ref=this._layers,i=0,len=ref.length;i<len;i++){for(layer=ref[i],layerListeners={},ref1=layer.listenerEvents(),j=0,len1=ref1.length;j<len1;j++)eventName=ref1[j],layerListeners[eventName]=layer.listeners(eventName);layer.removeAllListeners(),layerId=this._layers.indexOf(layer),this._frozenEvents[layerId]=layerListeners}return this.stopAnimations(),this.resetTimers(),this.resetIntervals()},Context.prototype.resume=function(){var eventName,events,i,layer,layerId,len,listener,listeners,ref;if(null==this._frozenEvents)throw new Error("Context is not frozen, cannot resume");ref=this._frozenEvents;for(layerId in ref){events=ref[layerId],layer=this._layers[layerId];for(eventName in events)for(listeners=events[eventName],i=0,len=listeners.length;i<len;i++)listener=listeners[i],layer.on(eventName,listener)}return this.resetFrozenEvents()},Context.prototype._createDOMEventManager=function(){var ref;return null!=(ref=this.domEventManager)&&ref.reset(),this.domEventManager=new DOMEventManager},Context.prototype._createRootElement=function(){var webkitPerspective;return this._destroyRootElement(),this._element=document.createElement("div"),this._element.id="FramerContextRoot-"+this._name,this._element.classList.add("framerContext"),webkitPerspective=Utils.webkitPerspectiveForValue(this.perspective),null!=webkitPerspective&&(this._element.style.webkitPerspective=webkitPerspective),this._element.style.backgroundColor=this.backgroundColor,this.__pendingElementAppend=function(_this){return function(){var parentElement,ref,ref1;return parentElement=null!=(ref=_this._parent)?ref._element:void 0,null==parentElement&&(parentElement=document.body),parentElement.appendChild(_this._element),_this.elementInDOM=!0,null!=(ref1=_this._layers)?ref1.map(function(l){return l.elementInsertedIntoDocument()}):void 0}}(this),Utils.domComplete(this.__pendingElementAppend)},Context.prototype._destroyRootElement=function(){var ref;return(null!=(ref=this._element)?ref.parentNode:void 0)&&(this._element.parentNode.removeChild(this._element),this.elementInDOM=!1),this.__pendingElementAppend&&(Utils.domCompleteCancel(this.__pendingElementAppend),this.__pendingElementAppend=null),this._element=null},Context.define("width",{get:function(){return null!=this.parent?this.parent.width:window.innerWidth}}),Context.define("height",{get:function(){return null!=this.parent?this.parent.height:window.innerHeight}}),Context.define("innerWidth",{get:function(){return null!=this.parent?this.parent.width/this.devicePixelRatio:window.innerWidth}}),Context.define("innerHeight",{get:function(){return null!=this.parent?this.parent.height/this.devicePixelRatio:window.innerHeight}}),Context.define("frame",{get:function(){return{x:0,y:0,width:this.width,height:this.height}}}),Context.define("innerFrame",{get:function(){return{x:0,y:0,width:this.innerWidth,height:this.innerHeight}}}),Context.define("size",{get:function(){return _.pick(this.frame,["width","height"])}}),Context.define("point",{get:function(){return _.pick(this.frame,["x","y"])}}),Context.define("canvasFrame",{get:function(){return null==this.parent?this.frame:this.parent.canvasFrame}}),Context.define("backgroundColor",{get:function(){return Color.isColor(this._backgroundColor)?this._backgroundColor:"transparent"},set:function(value){var ref;if(Color.isColor(value))return this._backgroundColor=value,null!=(ref=this._element)?ref.style.backgroundColor=new Color(value.toString()):void 0}}),Context.define("perspective",{get:function(){return this._perspective},set:function(value){var ref,webkitPerspective;if(webkitPerspective=Utils.webkitPerspectiveForValue(value),null!=webkitPerspective)return this._perspective=value,null!=(ref=this._element)?ref.style.webkitPerspective=webkitPerspective:void 0}}),Context.prototype._updatePerspective=function(){var ref;return null!=(ref=this._element)?ref.style.webkitPerspectiveOrigin=100*this.perspectiveOriginX+"% "+100*this.perspectiveOriginY+"%":void 0},Context.define("perspectiveOriginX",{get:function(){return _.isNumber(this._perspectiveOriginX)?this._perspectiveOriginX:.5},set:function(value){if(_.isNumber(value))return this._perspectiveOriginX=value,this._updatePerspective()}}),Context.define("perspectiveOriginY",{get:function(){return _.isNumber(this._perspectiveOriginY)?this._perspectiveOriginY:.5},set:function(value){if(_.isNumber(value))return this._perspectiveOriginY=value,this._updatePerspective()}}),Context.define("index",{get:function(){var ref;return(null!=(ref=this._element)?ref.style["z-index"]:void 0)||0||0},set:function(value){if(this._element)return this._element.style["z-index"]=value}}),Context.prototype.containers=function(ignoredArgument,result){var ref;return null==ignoredArgument&&(ignoredArgument=!0),null==result&&(result=[]),null!=this._parent?(result.push(this._parent),null!=(ref=this._parent)?ref.containers(!0,result):void 0):result},Context.prototype.toInspect=function(){var round;return round=function(value){return parseInt(value)===value?parseInt(value):Utils.round(value,1)},"<"+this.constructor.name+" id:"+this.id+" name:"+this._name+" "+round(this.width)+"x"+round(this.height)+">"},Context}(BaseClass)},function(module,exports,__webpack_require__){var DOMEventManagerElement,EventEmitter,EventManagerIdCounter,Utils,_,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,bind=function(fn,me){return function(){return fn.apply(me,arguments)}};_=__webpack_require__(1)._,EventEmitter=__webpack_require__(7).EventEmitter,Utils=__webpack_require__(4),EventManagerIdCounter=1,DOMEventManagerElement=function(superClass){function DOMEventManagerElement(element1){this.element=element1}return extend(DOMEventManagerElement,superClass),DOMEventManagerElement.prototype.addListener=function(eventName,listener,capture){return null==capture&&(capture=!1),listener.capture=capture,DOMEventManagerElement.__super__.addListener.call(this,eventName,listener),this.element.addEventListener(eventName,listener,capture)},DOMEventManagerElement.prototype.removeListener=function(eventName,listener,capture){return null==capture&&(capture=!1),DOMEventManagerElement.__super__.removeListener.call(this,eventName,listener),this.element.removeEventListener(eventName,listener,listener.capture)},DOMEventManagerElement.prototype.addEventListener=DOMEventManagerElement.prototype.addListener,DOMEventManagerElement.prototype.removeEventListener=DOMEventManagerElement.prototype.removeListener,DOMEventManagerElement.prototype.on=DOMEventManagerElement.prototype.addListener,DOMEventManagerElement.prototype.off=DOMEventManagerElement.prototype.removeListener,DOMEventManagerElement}(EventEmitter),exports.DOMEventManager=function(){function DOMEventManager(element){this.remove=bind(this.remove,this),this.wrap=bind(this.wrap,this),this._elements={}}return DOMEventManager.prototype.wrap=function(element){return element._eventManagerId||(element._eventManagerId=EventManagerIdCounter++),this._elements[element._eventManagerId]||(this._elements[element._eventManagerId]=new DOMEventManagerElement(element)),this._elements[element._eventManagerId]},DOMEventManager.prototype.remove=function(element){if(element._eventManagerId)return delete this._elements[element._eventManagerId],element._eventManagerId=0},DOMEventManager.prototype.reset=function(){var element,elementEventManager,ref,results;ref=this._elements,results=[];for(element in ref)elementEventManager=ref[element],results.push(elementEventManager.removeAllListeners());return results},DOMEventManager}()},function(module,exports,__webpack_require__){var Defaults,EventMappers,Events,Layer,Utils,_,wrapComponent,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,slice=[].slice,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};_=__webpack_require__(1)._,Utils=__webpack_require__(4),Layer=__webpack_require__(15).Layer,Events=__webpack_require__(17).Events,Defaults=__webpack_require__(19).Defaults,Events.ScrollStart="scrollstart",Events.Scroll="scroll",Events.ScrollMove=Events.Scroll,Events.ScrollEnd="scrollend",Events.ScrollAnimationDidStart="scrollanimationdidstart",Events.ScrollAnimationDidEnd="scrollanimationdidend",EventMappers={},EventMappers[Events.Move]=Events.Move,EventMappers[Events.ScrollStart]=Events.DragStart,EventMappers[Events.ScrollMove]=Events.DragMove,EventMappers[Events.ScrollEnd]=Events.DragEnd,EventMappers[Events.ScrollAnimationDidStart]=Events.DragAnimationStart,EventMappers[Events.ScrollAnimationDidEnd]=Events.DragAnimationEnd,EventMappers[Events.DirectionLockStart]=Events.DirectionLockStart,exports.ScrollComponent=function(superClass){function ScrollComponent(options){null==options&&(options={}),this._onMouseWheel=bind(this._onMouseWheel,this),this._onAnimationStop=bind(this._onAnimationStop,this),this._onAnimationStep=bind(this._onAnimationStep,this),this._onAnimationStart=bind(this._onAnimationStart,this),this.updateContent=bind(this.updateContent,this),ScrollComponent.__super__.constructor.call(this,Defaults.getDefaults("ScrollComponent",options)),this._contentInset=options.contentInset||Utils.rectZero(),this.setContentLayer(new Layer),this._applyProxyDefaults(options),this._enableMouseWheelHandling(options.mouseWheelEnabled),options.hasOwnProperty("wrap")&&wrapComponent(this,options.wrap)}return extend(ScrollComponent,superClass),ScrollComponent.define("velocity",ScrollComponent.proxyProperty("content.draggable.velocity",{importable:!1,exportable:!1})),ScrollComponent.define("scrollHorizontal",ScrollComponent.proxyProperty("content.draggable.horizontal")),ScrollComponent.define("scrollVertical",ScrollComponent.proxyProperty("content.draggable.vertical")),ScrollComponent.define("speedX",ScrollComponent.proxyProperty("content.draggable.speedX")),ScrollComponent.define("speedY",ScrollComponent.proxyProperty("content.draggable.speedY")),ScrollComponent.define("isDragging",ScrollComponent.proxyProperty("content.draggable.isDragging",{importable:!1,exportable:!1})),ScrollComponent.define("isMoving",ScrollComponent.proxyProperty("content.draggable.isMoving",{importable:!1,exportable:!1})),ScrollComponent.define("isAnimating",ScrollComponent.proxyProperty("content.draggable.isAnimating",{importable:!1,exportable:!1})),ScrollComponent.define("propagateEvents",ScrollComponent.proxyProperty("content.draggable.propagateEvents")),ScrollComponent.define("directionLock",ScrollComponent.proxyProperty("content.draggable.directionLock")),ScrollComponent.define("directionLockThreshold",ScrollComponent.proxyProperty("content.draggable.directionLockThreshold")),ScrollComponent.define("content",{importable:!1,exportable:!1,get:function(){return this._content}}),ScrollComponent.define("mouseWheelSpeedMultiplier",ScrollComponent.simpleProperty("mouseWheelSpeedMultiplier",1)),ScrollComponent.prototype.calculateContentFrame=function(){var contentFrame,size;return this.content?(contentFrame=this.content.contentFrame(),size={x:0,y:0,width:Math.max(this.width,contentFrame.x+contentFrame.width),height:Math.max(this.height,contentFrame.y+contentFrame.height)}):Utils.rectZero()},ScrollComponent.prototype.setContentLayer=function(layer){return this.content&&(this._onAnimationStop(),this.content.off(Events.AnimationStart,this._onAnimationStart),this.content.off(Events.AnimationStop,this._onAnimationStop),this._content.destroy()),this._content=layer,this._content.parent=this,this._content.name="content",this._content.clip=!0,this._content.draggable.enabled=!0,this._content.draggable.momentum=!0,this._content.on("change:children",this.updateContent),this.on("change:width",this.updateContent),this.on("change:height",this.updateContent),this.updateContent(),this.scrollPoint={x:0,y:0},this.content.on(Events.AnimationStart,this._onAnimationStart),this.content.on(Events.AnimationStop,this._onAnimationStop),this._content},ScrollComponent.prototype.updateContent=function(){var constraintsFrame,contentFrame,ref;if(this.content)return contentFrame=this.calculateContentFrame(),this.content.width=contentFrame.width,this.content.height=contentFrame.height,constraintsFrame=this.calculateContentFrame(),constraintsFrame={x:-constraintsFrame.width+this.width-this._contentInset.right,y:-constraintsFrame.height+this.height-this._contentInset.bottom,width:constraintsFrame.width+constraintsFrame.width-this.width+this._contentInset.left+this._contentInset.right,height:constraintsFrame.height+constraintsFrame.height-this.height+this._contentInset.top+this._contentInset.bottom},this.content.draggable.constraints=constraintsFrame,this.scrollPoint=this.scrollPoint,this.content.children.length&&(null!=(ref=this.content.backgroundColor)?ref.isEqual(Framer.Defaults.Layer.backgroundColor):void 0)?this.content.backgroundColor=null:void 0},ScrollComponent.define("scroll",{exportable:!1,get:function(){return this.scrollHorizontal===!0||this.scrollVertical===!0},set:function(value){if(this.content)return value===!1&&this.content.animateStop(),this.scrollHorizontal=this.scrollVertical=value}}),ScrollComponent.prototype._calculateContentPoint=function(scrollPoint){var point;return scrollPoint=_.defaults(scrollPoint,{x:0,y:0}),scrollPoint.x-=this.contentInset.left,scrollPoint.y-=this.contentInset.top,point=this._pointInConstraints(scrollPoint),Utils.pointInvert(point)},ScrollComponent.define("scrollX",{get:function(){return this.content?0-this.content.x+this.contentInset.left:0},set:function(value){if(this.content)return this.content.draggable.animateStop(),this.content.x=this._calculateContentPoint({x:value,y:0}).x}}),ScrollComponent.define("scrollY",{get:function(){return this.content?0-this.content.y+this.contentInset.top:0},set:function(value){if(this.content)return this.content.draggable.animateStop(),this.content.y=this._calculateContentPoint({x:0,y:value}).y}}),ScrollComponent.define("scrollPoint",{importable:!0,exportable:!1,get:function(){var point;return point={x:this.scrollX,y:this.scrollY}},set:function(point){if(this.content)return this.scrollX=point.x,this.scrollY=point.y}}),ScrollComponent.define("scrollFrame",{importable:!0,exportable:!1,get:function(){var rect;return rect=this.scrollPoint,rect.width=this.width,rect.height=this.height,rect},set:function(value){return this.scrollPoint=value}}),ScrollComponent.define("contentInset",{get:function(){return _.clone(this._contentInset)},set:function(contentInset){var contentFrame;if(this._contentInset=Utils.rectZero(Utils.parseRect(contentInset)),this.content)return contentFrame=this.calculateContentFrame(),contentFrame.x=contentFrame.x+this._contentInset.left,contentFrame.y=contentFrame.y+this._contentInset.top,this.content.frame=contentFrame,this.updateContent()}}),ScrollComponent.define("direction",{importable:!1,exportable:!1,get:function(){var direction;return direction=this.content.draggable.direction,"down"===direction?"up":"up"===direction?"down":"right"===direction?"left":"left"===direction?"right":direction}}),ScrollComponent.define("angle",{importable:!1,exportable:!1,get:function(){return this.content?-this.content.draggable.angle:0}}),ScrollComponent.prototype.scrollToPoint=function(point,animate,animationOptions){var contentPoint;return null==animate&&(animate=!0),null==animationOptions&&(animationOptions={curve:"spring(500, 50, 0)"}),contentPoint=this._calculateContentPoint(point),this.content.draggable.animateStop(),animate?(point={},contentPoint.hasOwnProperty("x")&&(point.x=contentPoint.x),contentPoint.hasOwnProperty("y")&&(point.y=contentPoint.y),this.content.animateStop(),this.content.animate(point,animationOptions)):this.content.point=contentPoint},ScrollComponent.prototype.scrollToTop=function(animate,animationOptions){return null==animate&&(animate=!0),null==animationOptions&&(animationOptions={curve:"spring(500, 50, 0)"}),this.scrollToPoint({x:0,y:0},animate,animationOptions)},ScrollComponent.prototype.scrollToLayer=function(contentLayer,originX,originY,animate,animationOptions){var scrollPoint;if(null==originX&&(originX=0),null==originY&&(originY=0),null==animate&&(animate=!0),null==animationOptions&&(animationOptions={curve:"spring(500, 50, 0)"}),contentLayer&&contentLayer.parent!==this.content)throw Error("Can't scroll to this layer because it's not in the ScrollComponent. Add it to the content like layer.parent = scroll.content.");return contentLayer&&0!==this.content.children.length?(scrollPoint=this._scrollPointForLayer(contentLayer,originX,originY),scrollPoint.x-=this.width*originX,scrollPoint.y-=this.height*originY):scrollPoint={x:0,y:0},this.scrollToPoint(scrollPoint,animate,animationOptions),contentLayer},ScrollComponent.prototype.scrollToClosestLayer=function(originX,originY,animate,animationOptions){var closestLayer;return null==originX&&(originX=0),null==originY&&(originY=0),null==animate&&(animate=!0),null==animationOptions&&(animationOptions={curve:"spring(500, 50, 0)"}),closestLayer=this.closestContentLayer(originX,originY,animate,animationOptions),closestLayer?(this.scrollToLayer(closestLayer,originX,originY),closestLayer):(closestLayer||this.scrollToPoint({x:0,y:0}),null)},ScrollComponent.prototype.closestContentLayer=function(originX,originY){var scrollPoint;return null==originX&&(originX=0),null==originY&&(originY=0),scrollPoint=Utils.framePointForOrigin(this.scrollFrame,originX,originY),this.closestContentLayerForScrollPoint(scrollPoint,originX,originY)},ScrollComponent.prototype.closestContentLayerForScrollPoint=function(scrollPoint,originX,originY){return null==originX&&(originX=0),null==originY&&(originY=0),_.head(this._contentLayersSortedByDistanceForScrollPoint(scrollPoint,originX,originY))},ScrollComponent.prototype._onAnimationStart=function(event){return this.content.on("change:frame",this._onAnimationStep)},ScrollComponent.prototype._onAnimationStep=function(event){return this.content.emit(Events.Move,this.content.point),this.emit(Events.Scroll,event)},ScrollComponent.prototype._onAnimationStop=function(){return this.content.off("change:frame",this._onAnimationStep)},ScrollComponent.prototype._scrollPointForLayer=function(layer,originX,originY,clamp){return null==originX&&(originX=0),null==originY&&(originY=0),null==clamp&&(clamp=!0),Utils.framePointForOrigin(layer,originX,originY)},ScrollComponent.prototype._contentLayersSortedByDistanceForScrollPoint=function(scrollPoint,originX,originY){return null==originX&&(originX=0),null==originY&&(originY=0),Utils.frameSortByAbsoluteDistance(scrollPoint,this.content.children,originX,originY)},ScrollComponent.prototype._pointInConstraints=function(point){var maxX,maxY,minX,minY,ref;return ref=this.content.draggable._calculateConstraints(this.content.draggable.constraints),minX=ref.minX,maxX=ref.maxX,minY=ref.minY,maxY=ref.maxY,point={x:-Utils.clamp(-point.x,minX,maxX),y:-Utils.clamp(-point.y,minY,maxY)}},ScrollComponent.prototype.addListener=function(){var eventName,eventNames,i,j,len,listener,results;for(eventNames=2<=arguments.length?slice.call(arguments,0,i=arguments.length-1):(i=0,[]),listener=arguments[i++],ScrollComponent.__super__.addListener.apply(this,arguments),results=[],j=0,len=eventNames.length;j<len;j++)eventName=eventNames[j],indexOf.call(_.keys(EventMappers),eventName)>=0?results.push(this.content.on(EventMappers[eventName],listener)):results.push(void 0);return results},ScrollComponent.prototype.removeListener=function(){var eventName,eventNames,i,j,len,listener,results;for(eventNames=2<=arguments.length?slice.call(arguments,0,i=arguments.length-1):(i=0,[]),listener=arguments[i++],ScrollComponent.__super__.removeListener.apply(this,arguments),results=[],j=0,len=eventNames.length;j<len;j++)eventName=eventNames[j],indexOf.call(_.keys(EventMappers),eventName)>=0?results.push(this.content.off(EventMappers[eventName],listener)):results.push(void 0); return results},ScrollComponent.prototype.on=ScrollComponent.prototype.addListener,ScrollComponent.prototype.off=ScrollComponent.prototype.removeListener,ScrollComponent.define("mouseWheelEnabled",{get:function(){return this._mouseWheelEnabled},set:function(value){return this._mouseWheelEnabled=value,this._enableMouseWheelHandling(value)}}),ScrollComponent.prototype._enableMouseWheelHandling=function(enable){return enable?this.on(Events.MouseWheel,this._onMouseWheel):this.off(Events.MouseWheel,this._onMouseWheel)},ScrollComponent.prototype._onMouseWheel=function(event){var deltaX,deltaY,maxX,maxY,minX,minY,point,ref;if(deltaX=0,deltaY=0,this.scrollHorizontal&&(deltaX=event.wheelDeltaX),this.scrollVertical&&(deltaY=event.wheelDeltaY),0!==deltaX||0!==deltaY)return this._mouseWheelScrolling||(this._mouseWheelScrolling=!0,this.emit(Events.ScrollStart,event)),this.content.animateStop(),ref=this.content.draggable._calculateConstraints(this.content.draggable.constraints),minX=ref.minX,maxX=ref.maxX,minY=ref.minY,maxY=ref.maxY,point={x:Utils.clamp(this.content.x+deltaX*this.mouseWheelSpeedMultiplier,minX,maxX),y:Utils.clamp(this.content.y+deltaY*this.mouseWheelSpeedMultiplier,minY,maxY)},this.content.point=point,this.content.emit(Events.Move,point),this.emit(Events.Scroll,event),this._onMouseWheelEnd(event)},ScrollComponent.prototype._onMouseWheelEnd=Utils.debounce(.3,function(event){return this.emit(Events.ScrollEnd,event),this._mouseWheelScrolling=!1}),ScrollComponent.prototype.copy=function(){var contentLayer,copy;return copy=ScrollComponent.__super__.copy.apply(this,arguments),contentLayer=_.head(_.without(copy.children,copy.content)),copy.setContentLayer(contentLayer),copy.props=this.props,copy},ScrollComponent.wrap=function(layer,options){return wrapComponent(new this(options),layer,options)},ScrollComponent}(Layer),wrapComponent=function(instance,layer,options){var isPageComponent,ref,screenFrame,scroll,wrapper;if(null==options&&(options={correct:!0}),!(layer instanceof Layer))throw new Error("ScrollComponent.wrap expects a layer, not "+layer+". Are you sure the layer exists?");return scroll=instance,isPageComponent="PageComponent"===instance.constructor.name,options.correct===!0&&(0!==layer.children.length||isPageComponent||(wrapper=new Layer,wrapper.frame=layer.frame,layer.parent=wrapper,layer.x=layer.y=0,layer=wrapper)),scroll.frame=layer.frame,scroll.parent=layer.parent,scroll.index=layer.index,null==layer.name||isPageComponent||(scroll.name=layer.name),null==scroll.__framerInstanceInfo&&(scroll.__framerInstanceInfo={}),null!=(ref=scroll.__framerInstanceInfo)&&(ref.name=instance.constructor.name),layer.image&&!isPageComponent&&(scroll.image=layer.image,layer.image=null),isPageComponent?scroll.addPage(layer):scroll.setContentLayer(layer),options.correct===!0&&(screenFrame=scroll.screenFrame,screenFrame.x<Screen.width&&screenFrame.x+screenFrame.width>Screen.width&&(scroll.width=Screen.width-screenFrame.x),screenFrame.y<Screen.height&&screenFrame.y+screenFrame.height>Screen.height&&(scroll.height=Screen.height-screenFrame.y)),scroll}},function(module,exports,__webpack_require__){var Events,ScrollComponent,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};Events=__webpack_require__(17).Events,ScrollComponent=__webpack_require__(55).ScrollComponent,exports.PageComponent=function(superClass){function PageComponent(options){this._resetHistory=bind(this._resetHistory,this),this._scrollEnd=bind(this._scrollEnd,this),this._scrollMove=bind(this._scrollMove,this),this._scrollStart=bind(this._scrollStart,this),PageComponent.__super__.constructor.call(this,_.defaults(options,{animationOptions:{curve:"spring(500, 50, 0)"}})),this.content.draggable.momentum=!1,this.content.draggable.bounce=!1,this.content.on(Events.DragSessionStart,this._scrollStart),this.content.on(Events.DragSessionEnd,this._scrollEnd),this.content.on("change:frame",_.debounce(this._scrollMove,16)),this.content.on("change:children",this._resetHistory),this._resetHistory()}return extend(PageComponent,superClass),PageComponent.define("originX",PageComponent.simpleProperty("originX",.5)),PageComponent.define("originY",PageComponent.simpleProperty("originY",.5)),PageComponent.define("velocityThreshold",PageComponent.simpleProperty("velocityThreshold",.1)),PageComponent.define("closestPage",{get:function(){return this.closestContentLayerForScrollPoint(this._originScrollPoint(),this.originX,this.originY)}}),PageComponent.define("currentPage",{get:function(){return _.last(this._previousPages)}}),PageComponent.define("previousPage",{get:function(){return this._previousPages[this._previousPages.length-2]}}),PageComponent.prototype.nextPage=function(direction,currentPage,withoutCurrentPage){var layers,point;return null==direction&&(direction="right"),null==currentPage&&(currentPage=null),null==withoutCurrentPage&&(withoutCurrentPage=!0),null==currentPage&&(currentPage=this.currentPage),point={x:0,y:0},currentPage&&(point=Utils.framePointForOrigin(currentPage,this.originX,this.originY)),withoutCurrentPage||(point={x:this.scrollX+this.originX*this.width,y:this.scrollY+this.originY*this.height}),"up"!==direction&&"top"!==direction&&"north"!==direction||(layers=this.content.childrenAbove(point,this.originX,this.originY)),"down"!==direction&&"bottom"!==direction&&"south"!==direction||(layers=this.content.childrenBelow(point,this.originX,this.originY)),"left"!==direction&&"west"!==direction||(layers=this.content.childrenLeft(point,this.originX,this.originY)),"right"!==direction&&"east"!==direction||(layers=this.content.childrenRight(point,this.originX,this.originY)),withoutCurrentPage&&(layers=_.without(layers,currentPage)),layers=Utils.frameSortByAbsoluteDistance(point,layers,this.originX,this.originY),_.head(layers)},PageComponent.prototype.snapToPage=function(page,animate,animationOptions){if(null==animate&&(animate=!0),null==animationOptions&&(animationOptions=null),this.scrollToLayer(page,this.originX,this.originY,animate,animationOptions),this.currentPage!==page)return this._previousPages.push(page),this.emit("change:previousPage",this.previousPage),this.emit("change:currentPage",this.currentPage)},PageComponent.prototype.snapToNextPage=function(direction,animate,animationOptions){var nextPage;return null==direction&&(direction="right"),null==animate&&(animate=!0),null==animationOptions&&(animationOptions=null),null==animationOptions&&(animationOptions=this.animationOptions),nextPage=this.nextPage(direction),null==nextPage&&(nextPage=this.closestPage),this.snapToPage(nextPage,animate,animationOptions)},PageComponent.prototype.snapToPreviousPage=function(animate,animationOptions){if(null==animate&&(animate=!0),null==animationOptions&&(animationOptions=null),this.previousPage)return null==animationOptions&&(animationOptions=this.animationOptions),this.snapToPage(this.previousPage,animate,animationOptions),this._previousPages=this._previousPages.slice(0,+(this._previousPages.length-3)+1||9e9)},PageComponent.prototype.addPage=function(page,direction){var directions,point,ref;if(null==direction&&(direction="right"),directions=["down","bottom","south"]+["right","east"],ref=!direction,indexOf.call(directions,ref)>=0)throw direction="right",new Error(direction+" should be in "+directions);return point={x:0,y:0},this.content.children.length&&("right"!==direction&&"east"!==direction||(point.x=Utils.frameGetMaxX(this.content.contentFrame())),"down"!==direction&&"bottom"!==direction&&"south"!==direction||(point.y=Utils.frameGetMaxY(this.content.contentFrame()))),page.point=point,page.parent!==this.content?page.parent=this.content:this.updateContent()},PageComponent.prototype.horizontalPageIndex=function(page){return _.sortBy(this.content.children,function(l){return l.x}).indexOf(page)},PageComponent.prototype.verticalPageIndex=function(page){return _.sortBy(this.content.children,function(l){return l.y}).indexOf(page)},PageComponent.prototype._scrollStart=function(){return this._currentPage=this.currentPage},PageComponent.prototype._scrollMove=function(){var currentPage;if(currentPage=this.currentPage,currentPage!==_.last(this._previousPages)&&void 0!==currentPage)return this._previousPages.push(currentPage),this.emit("change:currentPage",{old:this.previousPage,new:currentPage})},PageComponent.prototype._scrollEnd=function(){var maximumVelocity,nextPage,velocity,xDisabled,xLock,yDisabled,yLock;if(!this.content.isAnimating)return velocity=this.content.draggable.velocity,xDisabled=!this.scrollHorizontal&&("right"===this.direction||"left"===this.direction),yDisabled=!this.scrollVertical&&("down"===this.direction||"up"===this.direction),xLock=this.content.draggable._directionLockEnabledX&&("right"===this.direction||"left"===this.direction),yLock=this.content.draggable._directionLockEnabledY&&("down"===this.direction||"up"===this.direction),maximumVelocity=Math.max(Math.abs(velocity.x),Math.abs(velocity.y)),maximumVelocity<this.velocityThreshold||xLock||yLock||xDisabled||yDisabled?this.snapToPage(this.closestPage,!0,this.animationOptions):(nextPage=this.nextPage(this.direction,this._currentPage,!1),null==nextPage&&(nextPage=this.closestPage),this.snapToPage(nextPage,!0,this.animationOptions))},PageComponent.prototype._originScrollPoint=function(){var scrollPoint;return scrollPoint=this.scrollPoint,scrollPoint.x+=this.width*this.originX,scrollPoint.y+=this.height*this.originY,scrollPoint},PageComponent.prototype._resetHistory=function(){return this._currentPage=this.closestPage,this._previousPages=[this._currentPage]},PageComponent}(ScrollComponent)},function(module,exports,__webpack_require__){var Events,Knob,Layer,Utils,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,bind=function(fn,me){return function(){return fn.apply(me,arguments)}};Utils=__webpack_require__(4),Layer=__webpack_require__(15).Layer,Events=__webpack_require__(17).Events,Events.SliderValueChange="sliderValueChange",Knob=function(superClass){function Knob(options){Knob.__super__.constructor.call(this,options)}return extend(Knob,superClass),Knob}(Layer),exports.SliderComponent=function(superClass){function SliderComponent(options){null==options&&(options={}),this._updateValue=bind(this._updateValue,this),this._knobDidMove=bind(this._knobDidMove,this),this._setRadius=bind(this._setRadius,this),this._updateFrame=bind(this._updateFrame,this),this._updateKnob=bind(this._updateKnob,this),this._updateFill=bind(this._updateFill,this),this._tapEnd=bind(this._tapEnd,this),this._tapStart=bind(this._tapStart,this),_.defaults(options,{backgroundColor:"#ccc",borderRadius:50,clip:!1,width:300,height:10,value:0,knobSize:30}),null==options.hitArea&&(options.hitArea=options.knobSize),this.knob=new Knob({backgroundColor:"#fff",shadowY:2,shadowBlur:4,shadowColor:"rgba(0, 0, 0, 0.3)",name:"knob"}),this.fill=new Layer({backgroundColor:"#333",width:0,force2d:!0,name:"fill"}),this.sliderOverlay=new Layer({backgroundColor:null,name:"sliderOverlay"}),SliderComponent.__super__.constructor.call(this,options),this.knobSize=options.knobSize,this.knob.parent=this.fill.parent=this.sliderOverlay.parent=this,this.width>this.height?this.fill.height=this.height:this.fill.width=this.width,this.fill.borderRadius=this.sliderOverlay.borderRadius=this.borderRadius,this.knob.draggable.enabled=!0,this.knob.draggable.overdrag=!1,this.knob.draggable.momentum=!0,this.knob.draggable.momentumOptions={friction:5,tolerance:.25},this.knob.draggable.bounce=!1,this.knob.borderRadius=this.knobSize/2,this._updateFrame(),this._updateKnob(),this._updateFill(),this.on("change:frame",this._updateFrame),this.on("change:borderRadius",this._setRadius),this.knob.on("change:size",this._updateKnob),this.knob.on("change:frame",this._updateFill),this.knob.on("change:frame",this._knobDidMove),this.sliderOverlay.on(Events.TapStart,this._tapStart),this.sliderOverlay.on(Events.TapEnd,this._tapEnd)}return extend(SliderComponent,superClass),SliderComponent.prototype._tapStart=function(event){var scaleX,scaleY,touchX,touchY;return event.preventDefault(),this.width>this.height?(touchX=Events.touchEvent(event).clientX-Screen.canvasFrame.x,scaleX=this.canvasScaleX(),this.value=this.valueForPoint(touchX/scaleX-this.screenFrame.x)):(touchY=Events.touchEvent(event).clientY-Screen.canvasFrame.y,scaleY=this.canvasScaleY(),this.value=this.valueForPoint(touchY/scaleY-this.screenFrame.y)),this.knob.draggable._panStart(event),this._updateValue()},SliderComponent.prototype._tapEnd=function(event){return this._updateValue()},SliderComponent.prototype._updateFill=function(){return this.width>this.height?this.fill.width=this.knob.midX:this.fill.height=this.knob.midY},SliderComponent.prototype._updateKnob=function(){return this.width>this.height?(this.knob.midX=this.fill.width,this.knob.centerY()):(this.knob.midY=this.fill.height,this.knob.centerX())},SliderComponent.prototype._updateFrame=function(){return this.knob.draggable.constraints={x:-this.knob.width/2,y:-this.knob.height/2,width:this.width+this.knob.width,height:this.height+this.knob.height},this.constrained&&(this.knob.draggable.constraints={x:0,y:0,width:this.width,height:this.height}),this.hitArea=this.hitArea,this.width>this.height?(this.fill.height=this.height,this.knob.midX=this.pointForValue(this.value),this.knob.centerY()):(this.fill.width=this.width,this.knob.midY=this.pointForValue(this.value),this.knob.centerX()),this.width>this.height?(this.knob.draggable.speedY=0,this.knob.draggable.speedX=1):(this.knob.draggable.speedX=0,this.knob.draggable.speedY=1),this.sliderOverlay.center()},SliderComponent.prototype._setRadius=function(){var radius;return radius=this.borderRadius,this.fill.borderRadius={topLeft:radius,bottomLeft:radius}},SliderComponent.define("constrained",SliderComponent.simpleProperty("constrained",!1)),SliderComponent.define("knobSize",{get:function(){return this._knobSize},set:function(value){var isRound;return isRound=2*this.knob.borderRadius===this._knobSize,this._knobSize=value,this.knob.width=this._knobSize,this.knob.height=this._knobSize,isRound&&(this.knob.borderRadius=this._knobSize/2),this._updateFrame()}}),SliderComponent.define("hitArea",{get:function(){return this._hitArea},set:function(value){return this._hitArea=value,this.width>this.height?(this.sliderOverlay.width=this.width+this.hitArea,this.sliderOverlay.height=this.hitArea):(this.sliderOverlay.width=this.hitArea,this.sliderOverlay.height=this.height+this.hitArea)}}),SliderComponent.define("min",{get:function(){return this._min||0},set:function(value){if(_.isFinite(value))return this._min=value}}),SliderComponent.define("max",{get:function(){return this._max||1},set:function(value){if(_.isFinite(value))return this._max=value}}),SliderComponent.define("value",{get:function(){return this._value},set:function(value){if(_.isFinite(value))return this._value=Utils.clamp(value,this.min,this.max),this.width>this.height?this.knob.midX=this.pointForValue(value):this.knob.midY=this.pointForValue(value),this._updateFill(),this._updateValue()}}),SliderComponent.prototype._knobDidMove=function(){return this.width>this.height?this.value=this.valueForPoint(this.knob.midX):this.value=this.valueForPoint(this.knob.midY)},SliderComponent.prototype._updateValue=function(){if(this._lastUpdatedValue!==this.value)return this._lastUpdatedValue=this.value,this.emit("change:value",this.value),this.emit(Events.SliderValueChange,this.value)},SliderComponent.prototype.pointForValue=function(value){return this.width>this.height?this.constrained?Utils.modulate(value,[this.min,this.max],[0+this.knob.width/2,this.width-this.knob.width/2],!0):Utils.modulate(value,[this.min,this.max],[0,this.width],!0):this.constrained?Utils.modulate(value,[this.min,this.max],[0+this.knob.height/2,this.height-this.knob.height/2],!0):Utils.modulate(value,[this.min,this.max],[0,this.height],!0)},SliderComponent.prototype.valueForPoint=function(value){return this.width>this.height?this.constrained?Utils.modulate(value,[0+this.knob.width/2,this.width-this.knob.width/2],[this.min,this.max],!0):Utils.modulate(value,[0,this.width],[this.min,this.max],!0):this.constrained?Utils.modulate(value,[0+this.knob.height/2,this.height-this.knob.height/2],[this.min,this.max],!0):Utils.modulate(value,[0,this.height],[this.min,this.max],!0)},SliderComponent.prototype.animateToValue=function(value,animationOptions){if(null==animationOptions&&(animationOptions={curve:"spring(300, 25, 0)"}),_.isFinite(value))return this.width>this.height?animationOptions.properties={x:this.pointForValue(value)-this.knob.width/2}:animationOptions.properties={y:this.pointForValue(value)-this.knob.height/2},this.knob.animate(animationOptions)},SliderComponent.prototype.onValueChange=function(cb){return this.on(Events.SliderValueChange,cb)},SliderComponent}(Layer)},function(module,exports,__webpack_require__){var Events,Knob,Layer,Utils,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,bind=function(fn,me){return function(){return fn.apply(me,arguments)}};Utils=__webpack_require__(4),Layer=__webpack_require__(15).Layer,Events=__webpack_require__(17).Events,Events.SliderValueChange="sliderValueChange",Events.SliderMinValueChange="sliderMinValueChange",Events.SliderMaxValueChange="sliderMaxValueChange",Knob=function(superClass){function Knob(options){null==options&&(options={}),_.defaults(options,{backgroundColor:"#fff",shadowY:2,shadowBlur:4,shadowColor:"rgba(0, 0, 0, 0.3)"}),Knob.__super__.constructor.call(this,options)}return extend(Knob,superClass),Knob}(Layer),exports.RangeSliderComponent=function(superClass){function RangeSliderComponent(options){var i,knob,len,ref;for(null==options&&(options={}),this._updateValue=bind(this._updateValue,this),this._knobDidMove=bind(this._knobDidMove,this),this._setRadius=bind(this._setRadius,this),this._updateFrame=bind(this._updateFrame,this),this._updateKnob=bind(this._updateKnob,this),this._updateFill=bind(this._updateFill,this),this._styleKnob=bind(this._styleKnob,this),this._tapEnd=bind(this._tapEnd,this),this._tapStart=bind(this._tapStart,this),_.defaults(options,{backgroundColor:"#ccc",borderRadius:50,clip:!1,width:300,height:10,value:0,knobSize:30}),null==options.hitArea&&(options.hitArea=options.knobSize),this.minKnob=new Knob({name:"minKnob",size:this.knobSize||30}),this.maxKnob=new Knob({name:"maxKnob",size:this.knobSize||30}),this.fill=new Layer({backgroundColor:"#333",width:0,force2d:!0,name:"fill"}),this.sliderOverlay=new Layer({backgroundColor:null,name:"sliderOverlay"}),RangeSliderComponent.__super__.constructor.call(this,options),this.width>this.height?this.fill.height=this.height:this.fill.width=this.width,this.fill.borderRadius=this.sliderOverlay.borderRadius=this.borderRadius,this.knobSize=options.knobSize,this._styleKnob(this.minKnob),this._styleKnob(this.maxKnob),this._updateFrame(),this._updateFill(),this._updateKnob(),this.on("change:frame",this._updateFrame),this.on("change:borderRadius",this._setRadius),ref=[this.minKnob,this.maxKnob],i=0,len=ref.length;i<len;i++)knob=ref[i],knob.on("change:size",this._updateKnob),knob.on("change:frame",this._updateFill),knob.on("change:frame",this._knobDidMove),knob.on("change:frame",this._updateFrame);this.sliderOverlay.on(Events.TapStart,this._tapStart),this.sliderOverlay.on(Events.TapEnd,this._tapEnd)}return extend(RangeSliderComponent,superClass),RangeSliderComponent.prototype._tapStart=function(event){var clickedValue,scaleX,scaleY,touchX,touchY;return event.preventDefault(),this.width>this.height?(touchX=Events.touchEvent(event).clientX-Screen.canvasFrame.x,scaleX=this.canvasScaleX(),clickedValue=this.valueForPoint(touchX/scaleX-this.x),clickedValue>this.maxValue&&(this.maxValue=clickedValue,this.maxKnob.draggable._panStart(event),this.emit(Events.SliderMaxValueChange,this.maxValue)),clickedValue<this.minValue&&(this.minValue=clickedValue,this.minKnob.draggable._panStart(event),this.emit(Events.SliderMinValueChange,this.minValue))):(touchY=Events.touchEvent(event).clientY-Screen.canvasFrame.y,scaleY=this.canvasScaleY(),clickedValue=this.valueForPoint(touchY/scaleY-this.y),clickedValue>this.maxValue&&(this.maxValue=clickedValue,this.maxKnob.draggable._panStart(event),this.emit(Events.SliderMaxValueChange,this.maxValue)),clickedValue<this.minValue&&(this.minValue=clickedValue,this.minKnob.draggable._panStart(event),this.emit(Events.SliderMinValueChange,this.minValue))),this._updateValue()},RangeSliderComponent.prototype._tapEnd=function(event){return this._updateValue()},RangeSliderComponent.prototype._styleKnob=function(knob){return knob.parent=this.fill.parent=this.sliderOverlay.parent=this,knob.borderRadius=this.knobSize/2,_.extend(knob.draggable,{enabled:!0,overdrag:!1,momentum:!0,bounce:!1,momentumOptions:{friction:5,tolerance:.25}})},RangeSliderComponent.prototype._updateFill=function(){return this.width>this.height?(this.fill.x=this.minKnob.midX,this.fill.width=this.maxKnob.midX-this.minKnob.midX):(this.fill.y=this.minKnob.midY,this.fill.height=this.maxKnob.midY-this.minKnob.midY)},RangeSliderComponent.prototype._updateKnob=function(){return this.width>this.height?(this.minKnob.midX=this.fill.x,this.minKnob.centerY(),this.maxKnob.midX=this.fill.x+this.fill.width,this.maxKnob.centerY()):(this.minKnob.midY=this.fill.y,this.minKnob.centerX(),this.maxKnob.midY=this.fill.y+this.fill.height,this.maxKnob.centerX())},RangeSliderComponent.prototype._updateFrame=function(){var i,j,knob,len,len1,ref,ref1;if(this.minKnob.draggable.constraints={x:-this.minKnob.width/2,y:-this.minKnob.height/2,width:this.maxKnob.midX,height:this.maxKnob.midY},this.maxKnob.draggable.constraints={x:this.minKnob.maxX,y:this.minKnob.maxY,width:this.width+this.maxKnob.width,height:this.height+this.maxKnob.height},this.hitArea=this.hitArea,this.width>this.height?(this.fill.height=this.height,this.minKnob.midX=this.pointForValue(this.minValue),this.maxKnob.midX=this.pointForValue(this.maxValue),this.minKnob.centerY()):(this.fill.width=this.width,this.minKnob.midY=this.pointForValue(this.minValue),this.maxKnob.midY=this.pointForValue(this.maxValue),this.minKnob.centerX()),this.width>this.height)for(ref=[this.minKnob,this.maxKnob],i=0,len=ref.length;i<len;i++)knob=ref[i],knob.draggable.speedY=0,knob.draggable.speedX=1;else for(ref1=[this.minKnob,this.maxKnob],j=0,len1=ref1.length;j<len1;j++)knob=ref1[j],knob.draggable.speedX=0,knob.draggable.speedY=1;return this.sliderOverlay.center()},RangeSliderComponent.prototype._setRadius=function(){var radius;return radius=this.borderRadius,this.fill.borderRadius={topLeft:radius,bottomLeft:radius}},RangeSliderComponent.define("constrained",RangeSliderComponent.simpleProperty("constrained",!1)),RangeSliderComponent.define("knobSize",{get:function(){return this._knobSize},set:function(value){var i,isRound,knob,len,ref;for(ref=[this.minKnob,this.maxKnob],i=0,len=ref.length;i<len;i++)knob=ref[i],isRound=2*knob.borderRadius===this._knobSize,this._knobSize=value,knob.size=this._knobSize,isRound&&(knob.borderRadius=this._knobSize/2);return this._updateFrame()}}),RangeSliderComponent.define("hitArea",{get:function(){return this._hitArea},set:function(value){return this._hitArea=value,this.width>this.height?(this.sliderOverlay.width=this.width+this.hitArea,this.sliderOverlay.height=this.hitArea):(this.sliderOverlay.width=this.hitArea,this.sliderOverlay.height=this.height+this.hitArea)}}),RangeSliderComponent.define("min",{get:function(){return this._min||0},set:function(value){if(_.isFinite(value))return this._min=value}}),RangeSliderComponent.define("max",{get:function(){return this._max||1},set:function(value){if(_.isFinite(value))return this._max=value}}),RangeSliderComponent.define("minValue",{get:function(){return this._minValue||0},set:function(value){if(_.isFinite(value))return this._minValue=value,this.width>this.height?this.minKnob.midX=this.pointForValue(value):this.minKnob.midY=this.pointForValue(value),this._updateFill(),this._updateValue()}}),RangeSliderComponent.define("maxValue",{get:function(){return this._maxValue||.5},set:function(value){if(_.isFinite(value))return this._maxValue=value,this.width>this.height?this.maxKnob.midX=this.pointForValue(value):this.maxKnob.midY=this.pointForValue(value),this._updateFill(),this._updateValue()}}),RangeSliderComponent.prototype._knobDidMove=function(){return this.width>this.height?(this.minValue=this.valueForPoint(this.minKnob.midX),this.maxValue=this.valueForPoint(this.maxKnob.midX)):(this.minValue=this.valueForPoint(this.minKnob.midY),this.maxValue=this.valueForPoint(this.maxKnob.midY))},RangeSliderComponent.prototype._updateValue=function(){if(this.emit(Events.SliderValueChange),this.minKnob.draggable.isMoving&&this.emit(Events.SliderMinValueChange,this.minValue),this.maxKnob.draggable.isMoving)return this.emit(Events.SliderMaxValueChange,this.maxValue)},RangeSliderComponent.prototype.pointForValue=function(value){var i,knob,len,ref;for(ref=[this.minKnob,this.maxKnob],i=0,len=ref.length;i<len;i++)return knob=ref[i],this.width>this.height?this.constrained?Utils.modulate(value,[this.min,this.max],[0+knob.width/2,this.width-knob.width/2],!0):Utils.modulate(value,[this.min,this.max],[0,this.width],!0):this.constrained?Utils.modulate(value,[this.min,this.max],[0+knob.height/2,this.height-knob.height/2],!0):Utils.modulate(value,[this.min,this.max],[0,this.height],!0)},RangeSliderComponent.prototype.valueForPoint=function(value){var i,knob,len,ref;for(ref=[this.minKnob,this.maxKnob],i=0,len=ref.length;i<len;i++)return knob=ref[i],this.width>this.height?this.constrained?Utils.modulate(value,[0+knob.width/2,this.width-knob.width/2],[this.min,this.max],!0):Utils.modulate(value,[0,this.width],[this.min,this.max],!0):this.constrained?Utils.modulate(value,[0+knob.height/2,this.height-knob.height/2],[this.min,this.max],!0):Utils.modulate(value,[0,this.height],[this.min,this.max],!0)},RangeSliderComponent.prototype.animateToMinValue=function(value,animationOptions){if(null==animationOptions&&(animationOptions={curve:"spring(250, 25, 0)"}),_.isFinite(value))return this.width>this.height?animationOptions.properties={x:this.pointForValue(value)-this.minKnob.width/2}:animationOptions.properties={y:this.pointForValue(value)-this.minKnob.height/2},this.minKnob.animate(animationOptions)},RangeSliderComponent.prototype.animateToMaxValue=function(value,animationOptions){if(null==animationOptions&&(animationOptions={curve:"spring(250, 25, 0)"}),_.isFinite(value))return this.width>this.height?animationOptions.properties={x:this.pointForValue(value)-this.maxKnob.width/2}:animationOptions.properties={y:this.pointForValue(value)-this.maxKnob.height/2},this.maxKnob.animate(animationOptions)},RangeSliderComponent.prototype.onValueChange=function(cb){return this.on(Events.SliderValueChange,cb)},RangeSliderComponent.prototype.onMinValueChange=function(cb){return this.on(Events.SliderMinValueChange,cb)},RangeSliderComponent.prototype.onMaxValueChange=function(cb){return this.on(Events.SliderMaxValueChange,cb)},RangeSliderComponent}(Layer)},function(module,exports,__webpack_require__){var AppleIMac,AppleMacBook,AppleMacBookAir,AppleMacBookPro,AppleThunderboltDisplay,AppleWatch38BlackLeatherDevice,AppleWatch38Device,AppleWatch42Device,AppleWatchSeries238Device,AppleWatchSeries242Device,BaseClass,BuiltInDevices,Defaults,DellXPS,Devices,Events,HTCa9BaseDevice,HTCm8BaseDevice,Layer,MSFTLumia950BaseDevice,MicrosoftSurfaceBook,MicrosoftSurfacePro3,MicrosoftSurfacePro4,Nexus4BaseDevice,Nexus5BaseDevice,Nexus6BaseDevice,Nexus9BaseDevice,Pixel2BaseDevice,Pixel2XLBaseDevice,PixelBaseDevice,SamsungGalaxyNote5BaseDevice,SamsungGalaxyS8BaseDevice,SonySmartwatch3Base,SonyW85OC,Utils,_,centerLayer,desktopReleaseVersion,googlePixelReleaseVersion,iPadAir2BaseDevice,iPadMini4BaseDevice,iPadProBaseDevice,iPhone5BaseDevice,iPhone5CBaseDevice,iPhone6BaseDevice,iPhone6PlusBaseDevice,iPhone7BaseDevice,iPhone7PlusBaseDevice,iPhone8BaseDevice,iPhone8PlusBaseDevice,iPhoneSEBaseDevice,iPhoneXBaseDevice,iPhoneXReleaseVersion,newDeviceMinVersion,oldDeviceMaxVersion,old_AppleWatch38Device,old_AppleWatch42Device,old_Nexus5BaseDevice,old_Nexus5BaseDeviceHand,old_Nexus9BaseDevice,old_iPadAirBaseDevice,old_iPadAirBaseDeviceHand,old_iPadMiniBaseDevice,old_iPadMiniBaseDeviceHand,old_iPhone5BaseDevice,old_iPhone5BaseDeviceHand,old_iPhone5CBaseDevice,old_iPhone5CBaseDeviceHand,old_iPhone6BaseDevice,old_iPhone6BaseDeviceHand,old_iPhone6PlusBaseDevice,old_iPhone6PlusBaseDeviceHand,redesignMaxVersion,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};Utils=__webpack_require__(4),_=__webpack_require__(1)._,BaseClass=__webpack_require__(6).BaseClass,Layer=__webpack_require__(15).Layer,Defaults=__webpack_require__(19).Defaults,Events=__webpack_require__(17).Events,centerLayer=function(layer,snapToPixels){var frame;return null==snapToPixels&&(snapToPixels=!1),frame=layer.frame,layer.parent?(Utils.frameSetMidX(frame,layer.parent.width/2-layer.parent.borderWidth),Utils.frameSetMidY(frame,layer.parent.height/2-layer.parent.borderWidth)):(Utils.frameSetMidX(frame,layer._context.innerWidth/2),Utils.frameSetMidY(frame,layer._context.innerHeight/2)),snapToPixels&&(frame.x=Math.round(frame.x),frame.y=Math.round(frame.y)),layer.frame=frame},exports.DeviceComponent=function(superClass){function DeviceComponent(options){var defaults;null==options&&(options={}),this._orientationChange=bind(this._orientationChange,this),this._viewportOrientationOffset=bind(this._viewportOrientationOffset,this),this._updateMaskImage=bind(this._updateMaskImage,this),this._updateDeviceImage=bind(this._updateDeviceImage,this),this.customize=bind(this.customize,this),this._update=bind(this._update,this),defaults=Defaults.getDefaults("DeviceComponent",options),Framer.Defaults.hasOwnProperty("DeviceView")&&(defaults=_.extend(defaults,Framer.Defaults.DeviceView)),this._setup(),this.animationOptions=defaults.animationOptions,this.deviceType=defaults.deviceType,_.extend(this,_.defaults(options,defaults)),this.Type={Tablet:"tablet",Phone:"phone",Computer:"computer"}}return extend(DeviceComponent,superClass),DeviceComponent.define("context",{get:function(){return this._context}}),DeviceComponent.prototype._setup=function(){var i,layer,len,ref;if(!this._setupDone){for(this._setupDone=!0,this.background=new Layer,this.background.clip=!0,this.background.backgroundColor="transparent",this.background.classList.add("DeviceBackground"),this.hands=new Layer({name:"hands"}),this.handsImageLayer=new Layer({parent:this.hands,name:"handsImage"}),this.phone=new Layer({parent:this.hands,name:"phone"}),this.screenBackground=new Layer({parent:this.hands,name:"screenBackground",backgroundColor:"black"}),this.screen=new Layer({parent:this.hands,name:"phone"}),this.viewport=new Layer({parent:this.screen,name:"screen"}),this.content=new Layer({parent:this.viewport, name:"viewport"}),this.screenMask=new Layer({parent:this.screen,name:"mask",backgroundColor:null}),this.content.classList.add("DeviceContent"),this.hands.backgroundColor="transparent",this.hands._alwaysUseImageCache=!0,this.handsImageLayer.backgroundColor="transparent",this.hands.classList.add("DeviceHands"),this.phone.backgroundColor="transparent",this.phone.classList.add("DevicePhone"),this.screen.classList.add("DeviceScreen"),this.screen.clip=!0,this.viewport.backgroundColor="transparent",this.viewport.classList.add("DeviceComponentPort"),this.content.backgroundColor="transparent",this.content.classList.add("DeviceContent"),this.content.originX=0,this.content.originY=0,Utils.isMobile()||Framer.CurrentContext.domEventManager.wrap(window).addEventListener("resize",this._update),Utils.isMobile()&&Framer.CurrentContext.domEventManager.wrap(window).addEventListener("resize",this._orientationChange),ref=[this.background,this.phone,this.viewport,this.content,this.screen,this.screenMask],i=0,len=ref.length;i<len;i++)layer=ref[i],layer.on("touchmove",function(event){return event.preventDefault()});return this.screenMask.ignoreEvents=!0,this.phone.ignoreEvents=!0,this._context=new Framer.Context({parent:this.content,name:"DeviceScreen"}),this._context.perspective=1200,this._context.device=this,this.on("change:orientation",function(){if(Screen.size!==Screen.height)return Screen.emit("resize")})}},DeviceComponent.prototype._update=function(){var backgroundOverlap,contentScaleFactor,height,i,layer,len,pixelRatio,ref,ref1,ref2,screenSizeChanged,width;if(contentScaleFactor=this.contentScale,contentScaleFactor>1&&(contentScaleFactor=1),screenSizeChanged=!1,this._shouldRenderFullScreen()){for(width=document.documentElement.clientWidth/contentScaleFactor,height=document.documentElement.clientHeight/contentScaleFactor,screenSizeChanged=this.content.width!==width||this.content.height!==height,ref=[this.background,this.hands,this.phone,this.viewport,this.content,this.screen,this.screenMask],i=0,len=ref.length;i<len;i++)layer=ref[i],layer.x=layer.y=0,layer.width=width,layer.height=height,layer.scale=1;this.content.scale=contentScaleFactor,("fullscreen"!==this.deviceType||Utils.isMobile())&&(screenSizeChanged=screenSizeChanged||this._context.devicePixelRatio!==window.devicePixelRatio,this._context.devicePixelRatio=window.devicePixelRatio),this.screenBackground.visible="fullscreen"!==this.deviceType,Utils.isMobile()?this.screenMask.visible=!1:this._updateMaskImage()}else{if(backgroundOverlap=100,this.background.x=0-backgroundOverlap,this.background.y=0-backgroundOverlap,this.background.width=window.innerWidth+2*backgroundOverlap,this.background.height=window.innerHeight+2*backgroundOverlap,this.disableSizeUpdates)return;this._updateDeviceImage(),this._updateMaskImage(),this.screenMask.visible=this.hideBezel,this.hands.scale=this._calculatePhoneScale(),centerLayer(this.hands,!0),centerLayer(this.phone),ref1=this._getOrientationDimensions(this._device.screenWidth/contentScaleFactor,this._device.screenHeight/contentScaleFactor),width=ref1[0],height=ref1[1],this.screenMask.width=this.screen.width=this.viewport.width=this._device.screenWidth,this.screenMask.height=this.screen.height=this.viewport.height=this._device.screenHeight,screenSizeChanged=this.content.width!==width||this.content.height!==height,this.content.width=width,this.content.height=height,this.screenBackground.width=this.screen.width+40,this.screenBackground.height=this.screen.height+40,this.selectedHand&&0===this._orientation&&this.setHand(this.selectedHand),centerLayer(this.screenBackground,!0),centerLayer(this.screen,!0),centerLayer(this.screenMask,!0),pixelRatio=null!=(ref2=this._device.devicePixelRatio)?ref2:1,screenSizeChanged=screenSizeChanged||this._context.devicePixelRatio!==pixelRatio,this._context.devicePixelRatio=pixelRatio,window.devicePixelRatio===pixelRatio&&Utils.isDesktop()?(this._context.renderUsingNativePixelRatio=!0,this.content.scale=pixelRatio):(this._context.renderUsingNativePixelRatio=!1,this.content.scale=1)}if(screenSizeChanged)return Screen.emit("resize")},DeviceComponent.prototype._shouldRenderFullScreen=function(){return!this._device||(this.fullScreen===!0||("fullscreen"===this.deviceType||!Utils.isInsideIframe()&&("phone"===Utils.deviceType()&&Utils.deviceType()===this._device.deviceType||("tablet"===Utils.deviceType()&&Utils.deviceType()===this._device.deviceType||"phone"===Utils.deviceType()&&"tablet"===this._device.deviceType))))},DeviceComponent.prototype.setupContext=function(){return Framer.CurrentContext=this._context},DeviceComponent.prototype.platform=function(){return/google|nexus|htc|samsung|sony-smartwatch/.test(this.deviceType)?"Android":/iphone|ipad/.test(this.deviceType)?"iOS":/apple-watch|applewatch/.test(this.deviceType)?"watchOS":/apple|safari/.test(this.deviceType)?"macOS":/microsoft|dell/.test(this.deviceType)?"Windows":null},DeviceComponent.define("fullScreen",{get:function(){return this._fullScreen},set:function(fullScreen){return this._setFullScreen(fullScreen)}}),DeviceComponent.prototype._setFullScreen=function(fullScreen){if("fullscreen"!==this._deviceType&&_.isBoolean(fullScreen)&&fullScreen!==this._fullScreen)return this._fullScreen=fullScreen,fullScreen===!0?(this.phone.image="",this.hands.image=""):this._updateDeviceImage(),this._updateMaskImage(),this._update(),this.emit("change:fullScreen")},DeviceComponent.define("screenSize",{get:function(){var size;return size=this._shouldRenderFullScreen()?Canvas.size:this.isLandscape?{width:this._device.screenHeight,height:this._device.screenWidth}:{width:this._device.screenWidth,height:this._device.screenHeight},size.width/=this._context.devicePixelRatio,size.height/=this._context.devicePixelRatio,size}}),DeviceComponent.prototype.customize=function(deviceProps){return Devices.custom=_.defaults(deviceProps,Devices.custom),this.deviceType="custom",this._update()},DeviceComponent.define("deviceType",{get:function(){return this._deviceType},set:function(deviceType){var device,i,key,lDevicetype,lKey,len,ref,shouldZoomToFit;if(deviceType!==this._deviceType||"custom"===deviceType){if(device=null,_.isString(deviceType))for(lDevicetype=deviceType.toLowerCase(),ref=_.keys(Devices),i=0,len=ref.length;i<len;i++)key=ref[i],lKey=key.toLowerCase(),lDevicetype===lKey&&(device=Devices[key]);if(!device)throw Error("No device named "+deviceType+". Options are: "+_.keys(Devices));if(this._device!==device)return shouldZoomToFit="fullscreen"===this._deviceType,this.screen.backgroundColor="black",null!=device.backgroundColor&&(this.screen.backgroundColor=device.backgroundColor),"computer"===device.deviceType&&Utils.domComplete(function(){return document.body.style.cursor="auto"}),this._device=_.clone(device),this._deviceType=deviceType,this.fullscreen=!1,this._updateDeviceImage(),this._updateMaskImage(),this._update(),this.emit("change:deviceType"),this.viewport.point=this._viewportOrientationOffset(),shouldZoomToFit?this.deviceScale="fit":void 0}}}),DeviceComponent.prototype._updateDeviceImage=function(){if(!/PhantomJS/.test(navigator.userAgent))return this._shouldRenderFullScreen()||this.hideBezel?(this.phone.image="",this.hands.image=""):this._deviceImageUrl(this._deviceImageName())?(this.phone._alwaysUseImageCache=!0,this.phone.image=this._deviceImageUrl(this._deviceImageName()),this.phone.width=this._device.deviceImageWidth,this.phone.height=this._device.deviceImageHeight,this.hands.width=this.phone.width,this.hands.height=this.phone.height):this.phone.image=""},DeviceComponent.prototype._updateMaskImage=function(){return this._device.screenMask?(this.phone.bringToFront(),this.screenMask.image=this._deviceImageUrl(this._device.screenMask),this.screenMask.visible=!0):(this.screenMask.image=null,this.screenMask.visible=!1,this.phone.placeBehind(this.screen))},DeviceComponent.prototype._deviceImageName=function(){return this._device.hasOwnProperty("deviceImage")?this._device.deviceImage:this._deviceType+".png"},DeviceComponent.prototype._deviceImageUrl=function(name){var ref,resourceUrl;if(!name)return null;if(_.startsWith(name,"http://")||_.startsWith(name,"https://"))return name;if(ref=this._deviceType,indexOf.call(BuiltInDevices,ref)<0||"custom"===this._deviceType)return name;if(resourceUrl="//resources.framerjs.com/static/DeviceResources",Utils.isFileUrl(window.location.href)&&(resourceUrl="http:"+resourceUrl),Utils.isFramerStudio()&&window.FramerStudioInfo&&(this._device.minStudioVersion&&Utils.framerStudioVersion()>=this._device.minStudioVersion||!this._device.minStudioVersion)&&(this._device.maxStudioVersion&&Utils.framerStudioVersion()<=this._device.maxStudioVersion||!this._device.maxStudioVersion))return resourceUrl=window.FramerStudioInfo.deviceImagesUrl,resourceUrl+"/"+name.replace(".png",".jp2");if(this._device.deviceImageCompression===!0){if(Utils.isWebPSupported())return resourceUrl+"/"+name.replace(".png",".webp");if(Utils.isJP2Supported())return resourceUrl+"/"+name.replace(".png",".jp2")}return resourceUrl+"/"+name},DeviceComponent.define("hideBezel",{get:function(){var ref;return!!Utils.isFramerStudio()&&(null!=(ref=this._hideBezel)&&ref)},set:function(hideBezel){if(Utils.isFramerStudio())return this._hideBezel=hideBezel,this._update()}}),DeviceComponent.define("deviceScale",{get:function(){return this._shouldRenderFullScreen()?1:this._deviceScale||1},set:function(deviceScale){return this.setDeviceScale(deviceScale,!1)}}),DeviceComponent.prototype.setDeviceScale=function(deviceScale,animate){var phoneScale;if(null==animate&&(animate=!1),deviceScale="fit"===deviceScale||deviceScale<0?"fit":parseFloat(deviceScale),deviceScale!==this._deviceScale&&(this._deviceScale=deviceScale,!this._shouldRenderFullScreen()))return phoneScale="fit"===deviceScale?this._calculatePhoneScale():deviceScale,this.hands.animateStop(),animate?this.hands.animate(_.extend(this.animationOptions,{properties:{scale:phoneScale}})):(this.hands.scale=phoneScale,centerLayer(this.hands,!0)),this.emit("change:deviceScale")},DeviceComponent.prototype._calculatePhoneScale=function(windowWidth,windowHeight){var dimension,height,padding,paddingOffset,phoneScale,ref,ref1,width;return dimension=this.hideBezel?this.screen:this.phone,ref=this._getOrientationDimensions(dimension.width,dimension.height),width=ref[0],height=ref[1],this.hideBezel?padding=0:(paddingOffset=(null!=(ref1=this._device)?ref1.paddingOffset:void 0)||0,padding=2*(this.padding+paddingOffset)),null==windowWidth&&(windowWidth=window.innerWidth),null==windowHeight&&(windowHeight=window.innerHeight),phoneScale=_.min([(windowWidth-padding)/width,(windowHeight-padding)/height]),phoneScale=Math.floor(1024*phoneScale)/1024,phoneScale<1/64&&(phoneScale=1/64),Utils.isFramerStudio()&&this.hideBezel||(30/64<phoneScale&&phoneScale<35/64?phoneScale=.5:15/64<phoneScale&&phoneScale<18/64&&(phoneScale=.25)),phoneScale>1&&!this.hideBezel&&(phoneScale=1),this.emit("change:phoneScale",phoneScale),this._deviceScale&&"fit"!==this._deviceScale?this._deviceScale:phoneScale},DeviceComponent.define("contentScale",{get:function(){return this._contentScale||1},set:function(contentScale){return this.setContentScale(contentScale,!1)}}),DeviceComponent.prototype.setContentScale=function(contentScale,animate){if(null==animate&&(animate=!1),contentScale=parseFloat(contentScale),!(contentScale<=0)&&contentScale!==this._contentScale)return this._contentScale=contentScale,animate?this.content.animate(_.extend(this.animationOptions,{properties:{scale:this._contentScale}})):this.content.scale=this._contentScale,this._update(),this.emit("change:contentScale")},DeviceComponent.define("orientation",{get:function(){return Utils.isMobile()?window.orientation:this._orientation||0},set:function(orientation){return this.setOrientation(orientation,!1)}}),DeviceComponent.prototype.setOrientation=function(orientation,animate,suggestedSize){var animation,contentProperties,handsProperties,options,previousBackgroundColor,previousScreenBackgroundVisiblity,scale;if(null==animate&&(animate=!1),null==suggestedSize&&(suggestedSize=null),Utils.framerStudioVersion()===oldDeviceMaxVersion&&(orientation*=-1),"portrait"===orientation&&(orientation=0),"landscape"===orientation&&(orientation=90),!this._shouldRenderFullScreen()&&(orientation=parseInt(orientation),(0===orientation||90===orientation||orientation===-90)&&orientation!==this._orientation))return this._orientation=orientation,handsProperties={rotationZ:-this._orientation},options=_.clone(this.animationOptions),null!=suggestedSize?(scale=this._calculatePhoneScale(suggestedSize.width,suggestedSize.height),handsProperties.x=suggestedSize.width/2-this.hands.width/2,handsProperties.y=suggestedSize.height/2-this.hands.height/2,options.time=null,options.curve=Spring({tension:342.10059,friction:28.97662})):scale=this._calculatePhoneScale(),handsProperties.scale=scale,contentProperties=this._viewportOrientationOffset(),this.hands.animateStop(),this.viewport.animateStop(),animate?(previousBackgroundColor=this.background.backgroundColor,previousScreenBackgroundVisiblity=this.screenBackground.visible,this.hideBezel&&(this.screenBackground.visible=!1,this.background.backgroundColor=this.screen.backgroundColor,this.disableSizeUpdates=!0),animation=this.hands.animate(_.extend(options,{properties:handsProperties})),this.viewport.animate(_.extend(options,{properties:contentProperties})),animation.on(Events.AnimationEnd,function(_this){return function(){return _this._update()}}(this)),animation.on(Events.AnimationStop,function(_this){return function(){return _this.disableSizeUpdates=!1,_this.background.backgroundColor=previousBackgroundColor,_this.screenBackground.visible=previousScreenBackgroundVisiblity}}(this))):(this.hands.props=handsProperties,this.viewport.props=contentProperties,this._update()),0!==this._orientation&&(this.handsImageLayer.image=""),this.emit("change:orientation",this._orientation)},DeviceComponent.prototype._viewportOrientationOffset=function(){var contentProperties,height,offset,ref,ref1,width,x,y;return ref=this._getOrientationDimensions(this._device.screenWidth,this._device.screenHeight),width=ref[0],height=ref[1],this.content.width=width,this.content.height=height,offset=(this.screen.width-width)/2,this._orientation===-90&&(offset*=-1),ref1=[0,0],x=ref1[0],y=ref1[1],this.isLandscape&&(x=offset,y=offset),contentProperties={rotationZ:this._orientation,x:x,y:y}},DeviceComponent.prototype._orientationChange=function(){return this._orientation=window.orientation,this._update(),this.emit("change:orientation",window.orientation)},DeviceComponent.define("isPortrait",{get:function(){return Math.abs(this.orientation)%180===0}}),DeviceComponent.define("isLandscape",{get:function(){return!this.isPortrait}}),DeviceComponent.define("orientationName",{get:function(){return this.isPortrait?"portrait":this.isLandscape?"landscape":void 0},set:function(orientationName){return this.setOrientation(orientationName,!1)}}),DeviceComponent.prototype.rotateLeft=function(animate){if(null==animate&&(animate=!0),90!==this.orientation)return this.setOrientation(this.orientation+90,animate)},DeviceComponent.prototype.rotateRight=function(animate){if(null==animate&&(animate=!0),this.orientation!==-90)return this.setOrientation(this.orientation-90,animate)},DeviceComponent.prototype._getOrientationDimensions=function(width,height){return this.isLandscape?[height,width]:[width,height]},DeviceComponent.prototype.handSwitchingSupported=function(){return void 0!==this._device.hands&&!this.hideBezel},DeviceComponent.prototype.nextHand=function(){var hand,hands,nextHand,nextHandIndex;if(0===this.hands.rotationZ)return!!(this.handSwitchingSupported()&&(hands=_.keys(this._device.hands),hands.length>0))&&(nextHandIndex=hands.indexOf(this.selectedHand)+1,nextHand="",nextHandIndex<hands.length&&(nextHand=hands[nextHandIndex]),hand=this.setHand(nextHand),this._update(),hand)},DeviceComponent.prototype.setHand=function(hand){var handData;return this.selectedHand=hand,hand&&this.handSwitchingSupported()?(handData=this._device.hands[hand],handData?(this.hands.width=handData.width,this.hands.height=handData.height,centerLayer(this.hands,!0),centerLayer(this.phone),this.handsImageLayer.size=this.hands.size,this.handsImageLayer.y=0,handData.offset&&(this.handsImageLayer.y=handData.offset),this.handsImageLayer.image=this.handImageUrl(hand),hand):void 0):this.handsImageLayer.image=""},DeviceComponent.prototype.handImageUrl=function(hand){var resourceUrl;return resourceUrl="//resources.framerjs.com/static/DeviceResources",Utils.isFileUrl(window.location.href)&&(resourceUrl="http://"+resourceUrl),Utils.isFramerStudio()&&window.FramerStudioInfo&&Utils.framerStudioVersion()>=newDeviceMinVersion?(resourceUrl=window.FramerStudioInfo.deviceImagesUrl,resourceUrl+"/"+hand+".png"):Utils.isWebPSupported()?resourceUrl+"/"+hand+".webp":Utils.isJP2Supported()?resourceUrl+"/"+hand+".jp2":resourceUrl+"/"+hand+".png"},DeviceComponent.prototype.toInspect=function(){return"<Device '"+this.deviceType+"' "+this.screenSize.width+"x"+this.screenSize.height+">"},DeviceComponent.prototype.prepareForSnapshot=function(){return this.hideBezel=!0,this.setDeviceScale(-1,!0),this.screenMask.visible=!1,this.screenBackground.visible=!1,this.background.backgroundColor=null},DeviceComponent}(BaseClass),iPhoneXReleaseVersion=105,googlePixelReleaseVersion=75,desktopReleaseVersion=70,newDeviceMinVersion=53,oldDeviceMaxVersion=52,redesignMaxVersion=92,iPadAir2BaseDevice={deviceImageWidth:1856,deviceImageHeight:2608,deviceImageCompression:!0,screenWidth:1536,screenHeight:2048,devicePixelRatio:2,deviceType:"tablet",minStudioVersion:newDeviceMinVersion},iPadMini4BaseDevice={deviceImageWidth:1936,deviceImageHeight:2688,deviceImageCompression:!0,screenWidth:1536,screenHeight:2048,devicePixelRatio:2,deviceType:"tablet",minStudioVersion:newDeviceMinVersion},iPadProBaseDevice={deviceImageWidth:2448,deviceImageHeight:3432,deviceImageCompression:!0,screenWidth:2048,screenHeight:2732,devicePixelRatio:2,deviceType:"tablet",minStudioVersion:newDeviceMinVersion},iPhoneXBaseDevice={deviceImageWidth:1405,deviceImageHeight:2796,deviceImageCompression:!0,screenWidth:1125,screenHeight:2436,devicePixelRatio:3,deviceType:"phone",minStudioVersion:iPhoneXReleaseVersion,screenMask:"apple-iphone-x-mask.svg",hands:{"iphone-hands-2":{width:3567,height:5558,offset:-15},"iphone-hands-1":{width:3567,height:5558,offset:-15}}},iPhone8BaseDevice={deviceImageWidth:871,deviceImageHeight:1776,deviceImageCompression:!0,screenWidth:750,screenHeight:1334,devicePixelRatio:2,deviceType:"phone",minStudioVersion:iPhoneXReleaseVersion,hands:{"iphone-hands-2":{width:2399,height:3738},"iphone-hands-1":{width:2399,height:3738}}},iPhone8PlusBaseDevice={deviceImageWidth:1436,deviceImageHeight:2876,deviceImageCompression:!0,screenWidth:1242,screenHeight:2208,devicePixelRatio:3,deviceType:"phone",minStudioVersion:iPhoneXReleaseVersion,hands:{"iphone-hands-2":{width:3949,height:6154,offset:-15},"iphone-hands-1":{width:3949,height:6154,offset:-15}}},iPhone7BaseDevice={deviceImageWidth:874,deviceImageHeight:1792,deviceImageCompression:!0,screenWidth:750,screenHeight:1334,devicePixelRatio:2,deviceType:"phone",minStudioVersion:71,maxStudioVersion:iPhoneXReleaseVersion-1,hands:{"iphone-hands-2":{width:2400,height:3740},"iphone-hands-1":{width:2400,height:3740}}},iPhone7PlusBaseDevice={deviceImageWidth:1452,deviceImageHeight:2968,deviceImageCompression:!0,screenWidth:1242,screenHeight:2208,devicePixelRatio:3,deviceType:"phone",minStudioVersion:71,maxStudioVersion:iPhoneXReleaseVersion-1,hands:{"iphone-hands-2":{width:3987,height:6212},"iphone-hands-1":{width:3987,height:6212}}},iPhone6BaseDevice={deviceImageWidth:874,deviceImageHeight:1792,deviceImageCompression:!0,screenWidth:750,screenHeight:1334,devicePixelRatio:2,deviceType:"phone",minStudioVersion:newDeviceMinVersion,maxStudioVersion:redesignMaxVersion,hands:{"iphone-hands-2":{width:2400,height:3740},"iphone-hands-1":{width:2400,height:3740}}},iPhone6PlusBaseDevice={deviceImageWidth:1452,deviceImageHeight:2968,deviceImageCompression:!0,screenWidth:1242,screenHeight:2208,devicePixelRatio:3,deviceType:"phone",minStudioVersion:newDeviceMinVersion,maxStudioVersion:redesignMaxVersion,hands:{"iphone-hands-2":{width:3987,height:6212},"iphone-hands-1":{width:3987,height:6212}}},iPhoneSEBaseDevice={deviceImageWidth:768,deviceImageHeight:1610,deviceImageCompression:!0,screenWidth:640,screenHeight:1136,devicePixelRatio:2,deviceType:"phone",minStudioVersion:iPhoneXReleaseVersion,hands:{"iphone-hands-2":{width:2098,height:3269,offset:19},"iphone-hands-1":{width:2098,height:3269,offset:19}}},iPhone5BaseDevice={deviceImageWidth:768,deviceImageHeight:1612,deviceImageCompression:!0,screenWidth:640,screenHeight:1136,devicePixelRatio:2,deviceType:"phone",minStudioVersion:newDeviceMinVersion,hands:{"iphone-hands-2":{width:2098,height:3269,offset:19},"iphone-hands-1":{width:2098,height:3269,offset:19}}},iPhone5CBaseDevice={deviceImageWidth:776,deviceImageHeight:1620,deviceImageCompression:!0,screenWidth:640,screenHeight:1136,devicePixelRatio:2,deviceType:"phone",minStudioVersion:newDeviceMinVersion,hands:{"iphone-hands-2":{width:2098,height:3269,offset:28},"iphone-hands-1":{width:2098,height:3269,offset:28}}},Nexus4BaseDevice={deviceImageWidth:860,deviceImageHeight:1668,deviceImageCompression:!0,screenWidth:768,screenHeight:1280,devicePixelRatio:2,deviceType:"phone",minStudioVersion:newDeviceMinVersion,maxStudioVersion:iPhoneXReleaseVersion-1,hands:{"iphone-hands-2":{width:2362,height:3681,offset:-52},"iphone-hands-1":{width:2362,height:3681,offset:-52}}},Nexus5BaseDevice={deviceImageWidth:1204,deviceImageHeight:2432,deviceImageCompression:!0,screenWidth:1080,screenHeight:1920,devicePixelRatio:3,deviceType:"phone",minStudioVersion:newDeviceMinVersion,hands:{"iphone-hands-2":{width:3292,height:5130,offset:8},"iphone-hands-1":{width:3292,height:5130,offset:8}}},Nexus6BaseDevice={deviceImageWidth:1576,deviceImageHeight:3220,deviceImageCompression:!0,screenWidth:1440,screenHeight:2560,devicePixelRatio:3.5,deviceType:"phone",minStudioVersion:newDeviceMinVersion,hands:{"iphone-hands-2":{width:4304,height:6707,offset:8},"iphone-hands-1":{width:4304,height:6707,offset:8}}},PixelBaseDevice={deviceImageWidth:1224,deviceImageHeight:2492,deviceImageCompression:!0,screenWidth:1080,screenHeight:1920,devicePixelRatio:2.627,deviceType:"phone",minStudioVersion:googlePixelReleaseVersion,maxStudioVersion:iPhoneXReleaseVersion-1,hands:{"iphone-hands-2":{width:3344,height:5211,offset:23},"iphone-hands-1":{width:3344,height:5211,offset:23}}},Pixel2BaseDevice={deviceImageWidth:1210,deviceImageHeight:2513,deviceImageCompression:!0,screenWidth:1080,screenHeight:1920,devicePixelRatio:2.627,deviceType:"phone",minStudioVersion:iPhoneXReleaseVersion,hands:{"iphone-hands-2":{width:3316,height:5167},"iphone-hands-1":{width:3316,height:5167}}},Pixel2XLBaseDevice={deviceImageWidth:1650,deviceImageHeight:3364,deviceImageCompression:!0,screenWidth:1440,screenHeight:2880,devicePixelRatio:4,deviceType:"phone",minStudioVersion:iPhoneXReleaseVersion,screenMask:"google-pixel-2-xl-mask.svg",hands:{"iphone-hands-2":{width:4530,height:7059},"iphone-hands-1":{width:4521,height:7045}}},Nexus9BaseDevice={deviceImageWidth:1896,deviceImageHeight:2648,deviceImageCompression:!0,screenWidth:1536,screenHeight:2048,devicePixelRatio:2,deviceType:"tablet",minStudioVersion:newDeviceMinVersion},HTCa9BaseDevice={deviceImageWidth:1252,deviceImageHeight:2592,deviceImageCompression:!0,screenWidth:1080,screenHeight:1920,devicePixelRatio:3,deviceType:"phone",minStudioVersion:newDeviceMinVersion,hands:{"iphone-hands-2":{width:3436,height:5354,offset:36},"iphone-hands-1":{width:3436,height:5354,offset:36}}},HTCm8BaseDevice={deviceImageWidth:1232,deviceImageHeight:2572,deviceImageCompression:!0,screenWidth:1080,screenHeight:1920,devicePixelRatio:3,deviceType:"phone",minStudioVersion:newDeviceMinVersion,hands:{"iphone-hands-2":{width:3436,height:5354,offset:12},"iphone-hands-1":{width:3436,height:5354,offset:12}}},MSFTLumia950BaseDevice={deviceImageWidth:1660,deviceImageHeight:3292,deviceImageCompression:!0,screenWidth:1440,screenHeight:2560,devicePixelRatio:4,deviceType:"phone",minStudioVersion:newDeviceMinVersion,hands:{"iphone-hands-2":{width:4494,height:7003,offset:-84},"iphone-hands-1":{width:4494,height:7003,offset:-84}}},SamsungGalaxyNote5BaseDevice={deviceImageWidth:1572,deviceImageHeight:3140,deviceImageCompression:!0,screenWidth:1440,screenHeight:2560,devicePixelRatio:4,deviceType:"phone",minStudioVersion:newDeviceMinVersion,hands:{"iphone-hands-2":{width:4279,height:6668,offset:-24},"iphone-hands-1":{width:4279,height:6668,offset:-84}}},SamsungGalaxyS8BaseDevice={deviceImageWidth:1536,deviceImageHeight:3334,deviceImageCompression:!0,screenWidth:1440,screenHeight:2960,devicePixelRatio:4,deviceType:"phone",minStudioVersion:iPhoneXReleaseVersion,screenMask:"samsung-galaxy-s8-mask.svg",hands:{"iphone-hands-2":{width:4210,height:6560},"iphone-hands-1":{width:4210,height:6560}}},AppleWatchSeries242Device={deviceImageWidth:512,deviceImageHeight:990,deviceImageCompression:!0,screenWidth:312,screenHeight:390,devicePixelRatio:2,minStudioVersion:71},AppleWatchSeries238Device={deviceImageWidth:472,deviceImageHeight:772,deviceImageCompression:!0,screenWidth:272,screenHeight:340,devicePixelRatio:2,minStudioVersion:71},AppleWatch42Device={deviceImageWidth:512,deviceImageHeight:990,deviceImageCompression:!0,screenWidth:312,screenHeight:390,devicePixelRatio:2,minStudioVersion:newDeviceMinVersion,maxStudioVersion:redesignMaxVersion},AppleWatch38Device={deviceImageWidth:472,deviceImageHeight:772,deviceImageCompression:!0,screenWidth:272,screenHeight:340,devicePixelRatio:2,minStudioVersion:newDeviceMinVersion,maxStudioVersion:redesignMaxVersion},AppleWatch38BlackLeatherDevice={deviceImageWidth:472,deviceImageHeight:796,deviceImageCompression:!0,screenWidth:272,screenHeight:340,devicePixelRatio:2,minStudioVersion:newDeviceMinVersion,maxStudioVersion:redesignMaxVersion},SonySmartwatch3Base={deviceImageWidth:444,deviceImageHeight:780,deviceImageCompression:!0,screenWidth:320,screenHeight:320,devicePixelRatio:1.5,minStudioVersion:iPhoneXReleaseVersion},AppleMacBook={deviceImageWidth:3084,deviceImageHeight:1860,deviceImageCompression:!0,screenWidth:2304,screenHeight:1440,devicePixelRatio:2,deviceType:"computer",minStudioVersion:desktopReleaseVersion},AppleMacBookAir={deviceImageWidth:2e3,deviceImageHeight:1220,deviceImageCompression:!0,screenWidth:1440,screenHeight:900,devicePixelRatio:1,deviceType:"computer",minStudioVersion:desktopReleaseVersion},AppleMacBookPro={deviceImageWidth:3820,deviceImageHeight:2320,deviceImageCompression:!0,screenWidth:2880,screenHeight:1800,devicePixelRatio:2,deviceType:"computer",minStudioVersion:desktopReleaseVersion},AppleIMac={deviceImageWidth:5600,deviceImageHeight:5880,deviceImageCompression:!0,screenWidth:5120,screenHeight:2880,devicePixelRatio:2,deviceType:"computer",minStudioVersion:desktopReleaseVersion},AppleThunderboltDisplay={deviceImageWidth:2788,deviceImageHeight:2580,deviceImageCompression:!0,screenWidth:2560,screenHeight:1440,devicePixelRatio:1,deviceType:"computer",minStudioVersion:iPhoneXReleaseVersion},DellXPS={deviceImageWidth:5200,deviceImageHeight:3040,deviceImageCompression:!0,screenWidth:3840,screenHeight:2160,devicePixelRatio:2,deviceType:"computer",minStudioVersion:desktopReleaseVersion},SonyW85OC={deviceImageWidth:1320,deviceImageHeight:860,deviceImageCompression:!0,screenWidth:1280,screenHeight:720,devicePixelRatio:1,minStudioVersion:desktopReleaseVersion},MicrosoftSurfaceBook={deviceImageWidth:4102,deviceImageHeight:2474,deviceImageCompression:!0,screenWidth:3e3,screenHeight:2e3,devicePixelRatio:2,deviceType:"computer",minStudioVersion:iPhoneXReleaseVersion},MicrosoftSurfacePro3={deviceImageWidth:2472,deviceImageHeight:1704,deviceImageCompression:!0,screenWidth:2160,screenHeight:1440,devicePixelRatio:1.5,deviceType:"tablet",minStudioVersion:iPhoneXReleaseVersion},MicrosoftSurfacePro4={deviceImageWidth:3064,deviceImageHeight:2120,deviceImageCompression:!0,screenWidth:2736,screenHeight:1824,devicePixelRatio:2,deviceType:"tablet",minStudioVersion:iPhoneXReleaseVersion},old_iPhone6BaseDevice={deviceImageWidth:870,deviceImageHeight:1738,deviceImageCompression:!0,screenWidth:750,screenHeight:1334,devicePixelRatio:2,deviceType:"phone",maxStudioVersion:oldDeviceMaxVersion},old_iPhone6BaseDeviceHand=_.extend({},old_iPhone6BaseDevice,{deviceImageWidth:1988,deviceImageHeight:2368,deviceImageCompression:!0,paddingOffset:-150,maxStudioVersion:oldDeviceMaxVersion}),old_iPhone6PlusBaseDevice={deviceImageWidth:1460,deviceImageHeight:2900,deviceImageCompression:!0,screenWidth:1242,screenHeight:2208,devicePixelRatio:3,deviceType:"phone",maxStudioVersion:oldDeviceMaxVersion},old_iPhone6PlusBaseDeviceHand=_.extend({},old_iPhone6PlusBaseDevice,{deviceImageWidth:3128,deviceImageHeight:3487,deviceImageCompression:!0,paddingOffset:-150,maxStudioVersion:oldDeviceMaxVersion}),old_iPhone5BaseDevice={deviceImageWidth:780,deviceImageHeight:1608,deviceImageCompression:!0,screenWidth:640,screenHeight:1136,devicePixelRatio:2,deviceType:"phone",maxStudioVersion:oldDeviceMaxVersion},old_iPhone5BaseDeviceHand=_.extend({},old_iPhone5BaseDevice,{deviceImageWidth:1884,deviceImageHeight:2234,deviceImageCompression:!0,paddingOffset:-200,maxStudioVersion:oldDeviceMaxVersion}),old_iPhone5CBaseDevice={deviceImageWidth:776,deviceImageHeight:1612,deviceImageCompression:!0,screenWidth:640,screenHeight:1136,devicePixelRatio:2,deviceType:"phone",maxStudioVersion:oldDeviceMaxVersion},old_iPhone5CBaseDeviceHand=_.extend({},old_iPhone5CBaseDevice,{deviceImageWidth:1894,deviceImageHeight:2244,deviceImageCompression:!0,paddingOffset:-200,maxStudioVersion:oldDeviceMaxVersion}),old_iPadMiniBaseDevice={deviceImageWidth:872,deviceImageHeight:1292,deviceImageCompression:!0,screenWidth:768,screenHeight:1024,devicePixelRatio:1,deviceType:"tablet",maxStudioVersion:oldDeviceMaxVersion},old_iPadMiniBaseDeviceHand=_.extend({},old_iPadMiniBaseDevice,{deviceImageWidth:1380,deviceImageHeight:2072,deviceImageCompression:!0,paddingOffset:-120,maxStudioVersion:oldDeviceMaxVersion}),old_iPadAirBaseDevice={deviceImageWidth:1769,deviceImageHeight:2509,deviceImageCompression:!0,screenWidth:1536,screenHeight:2048,devicePixelRatio:2,deviceType:"tablet",maxStudioVersion:oldDeviceMaxVersion},old_iPadAirBaseDeviceHand=_.extend({},old_iPadAirBaseDevice,{deviceImageWidth:4744,deviceImageHeight:4101,deviceImageCompression:!0,paddingOffset:-120,maxStudioVersion:oldDeviceMaxVersion}),old_Nexus5BaseDevice={deviceImageWidth:1208,deviceImageHeight:2440,deviceImageCompression:!0,screenWidth:1080,screenHeight:1920,devicePixelRatio:3,deviceType:"phone",maxStudioVersion:oldDeviceMaxVersion},old_Nexus5BaseDeviceHand=_.extend({},old_Nexus5BaseDevice,{deviceImageWidth:2692,deviceImageHeight:2996,deviceImageCompression:!0,paddingOffset:-120,maxStudioVersion:oldDeviceMaxVersion}),old_Nexus9BaseDevice={deviceImageWidth:1733,deviceImageHeight:2575,deviceImageCompression:!0,screenWidth:1536,screenHeight:2048,devicePixelRatio:2,deviceType:"tablet",maxStudioVersion:oldDeviceMaxVersion},old_AppleWatch42Device={deviceImageWidth:552,deviceImageHeight:938,deviceImageCompression:!0,screenWidth:312,screenHeight:390,devicePixelRatio:2,maxStudioVersion:oldDeviceMaxVersion},old_AppleWatch38Device={deviceImageWidth:508,deviceImageHeight:900,deviceImageCompression:!0,screenWidth:272,screenHeight:340,devicePixelRatio:2,maxStudioVersion:oldDeviceMaxVersion},Devices={fullscreen:{name:"Fullscreen",deviceType:"desktop",backgroundColor:"transparent"},custom:{name:"Custom",deviceImageWidth:874,deviceImageHeight:1792,screenWidth:750,screenHeight:1334,devicePixelRatio:2,deviceType:"phone"},"apple-ipad-air-2-silver":_.clone(iPadAir2BaseDevice),"apple-ipad-air-2-gold":_.clone(iPadAir2BaseDevice),"apple-ipad-air-2-space-gray":_.clone(iPadAir2BaseDevice),"apple-ipad-mini-4-silver":_.clone(iPadMini4BaseDevice), "apple-ipad-mini-4-gold":_.clone(iPadMini4BaseDevice),"apple-ipad-mini-4-space-gray":_.clone(iPadMini4BaseDevice),"apple-ipad-pro-silver":_.clone(iPadProBaseDevice),"apple-ipad-pro-gold":_.clone(iPadProBaseDevice),"apple-ipad-pro-space-gray":_.clone(iPadProBaseDevice),"apple-iphone-x-silver":_.clone(iPhoneXBaseDevice),"apple-iphone-x-space-gray":_.clone(iPhoneXBaseDevice),"apple-iphone-8-silver":_.clone(iPhone8BaseDevice),"apple-iphone-8-gold":_.clone(iPhone8BaseDevice),"apple-iphone-8-space-gray":_.clone(iPhone8BaseDevice),"apple-iphone-8-plus-silver":_.clone(iPhone8PlusBaseDevice),"apple-iphone-8-plus-gold":_.clone(iPhone8PlusBaseDevice),"apple-iphone-8-plus-space-gray":_.clone(iPhone8PlusBaseDevice),"apple-iphone-7-gold":_.clone(iPhone7BaseDevice),"apple-iphone-7-rose-gold":_.clone(iPhone7BaseDevice),"apple-iphone-7-silver":_.clone(iPhone7BaseDevice),"apple-iphone-7-black":_.clone(iPhone7BaseDevice),"apple-iphone-7-jet-black":_.clone(iPhone7BaseDevice),"apple-iphone-7-plus-gold":_.clone(iPhone7PlusBaseDevice),"apple-iphone-7-plus-rose-gold":_.clone(iPhone7PlusBaseDevice),"apple-iphone-7-plus-silver":_.clone(iPhone7PlusBaseDevice),"apple-iphone-7-plus-black":_.clone(iPhone7PlusBaseDevice),"apple-iphone-7-plus-jet-black":_.clone(iPhone7PlusBaseDevice),"apple-iphone-6s-gold":_.clone(iPhone6BaseDevice),"apple-iphone-6s-rose-gold":_.clone(iPhone6BaseDevice),"apple-iphone-6s-silver":_.clone(iPhone6BaseDevice),"apple-iphone-6s-space-gray":_.clone(iPhone6BaseDevice),"apple-iphone-6s-plus-gold":_.clone(iPhone6PlusBaseDevice),"apple-iphone-6s-plus-rose-gold":_.clone(iPhone6PlusBaseDevice),"apple-iphone-6s-plus-silver":_.clone(iPhone6PlusBaseDevice),"apple-iphone-6s-plus-space-gray":_.clone(iPhone6PlusBaseDevice),"apple-iphone-se-gold":_.clone(iPhoneSEBaseDevice),"apple-iphone-se-silver":_.clone(iPhoneSEBaseDevice),"apple-iphone-se-space-gray":_.clone(iPhoneSEBaseDevice),"apple-iphone-se-rose-gold":_.clone(iPhoneSEBaseDevice),"apple-iphone-5s-gold":_.clone(iPhone5BaseDevice),"apple-iphone-5s-silver":_.clone(iPhone5BaseDevice),"apple-iphone-5s-space-gray":_.clone(iPhone5BaseDevice),"apple-iphone-5c-blue":_.clone(iPhone5CBaseDevice),"apple-iphone-5c-green":_.clone(iPhone5CBaseDevice),"apple-iphone-5c-red":_.clone(iPhone5CBaseDevice),"apple-iphone-5c-white":_.clone(iPhone5CBaseDevice),"apple-iphone-5c-yellow":_.clone(iPhone5CBaseDevice),"apple-watch-series-2-38mm-black-steel-black":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-edition":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-rose-gold-aluminum-midnight-blue":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-silver-aluminum-cocoa":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-silver-aluminum-concrete":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-silver-aluminum-ocean-blue":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-silver-aluminum-red":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-silver-aluminum-turquoise":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-silver-aluminum-white":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-silver-aluminum-yellow":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-space-gray-aluminum-black":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-sport-aluminum-walnut":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-38mm-steel-white":_.clone(AppleWatchSeries238Device),"apple-watch-series-2-42mm-edition":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-gold-aluminum-cocoa":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-rose-gold-aluminum-midnight-blue":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-silver-aluminum-concrete":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-silver-aluminum-green":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-silver-aluminum-light-pink":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-silver-aluminum-ocean-blue":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-silver-aluminum-pink-sand":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-silver-aluminum-red":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-silver-aluminum-turquoise":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-silver-aluminum-white":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-silver-aluminum-yellow":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-space-black-steel-black":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-space-gray-aluminum-black":_.clone(AppleWatchSeries242Device),"apple-watch-series-2-42mm-steel-white":_.clone(AppleWatchSeries242Device),"apple-watch-nike-plus-38mm-silver-aluminum-flat-silver-volt":_.clone(AppleWatchSeries238Device),"apple-watch-nike-plus-38mm-silver-aluminum-flat-silver-white":_.clone(AppleWatchSeries238Device),"apple-watch-nike-plus-38mm-space-gray-aluminum-black-cool-gray":_.clone(AppleWatchSeries238Device),"apple-watch-nike-plus-38mm-space-gray-aluminum-black-volt":_.clone(AppleWatchSeries238Device),"apple-watch-nike-plus-42mm-silver-aluminum-flat-silver-volt":_.clone(AppleWatchSeries242Device),"apple-watch-nike-plus-42mm-silver-aluminum-flat-silver-white":_.clone(AppleWatchSeries242Device),"apple-watch-nike-plus-42mm-space-gray-aluminum-black-cool-gray":_.clone(AppleWatchSeries242Device),"apple-watch-nike-plus-42mm-space-gray-aluminum-black-volt":_.clone(AppleWatchSeries242Device),"apple-watch-38mm-gold-black-leather-closed":_.clone(AppleWatch38BlackLeatherDevice),"apple-watch-38mm-rose-gold-black-leather-closed":_.clone(AppleWatch38BlackLeatherDevice),"apple-watch-38mm-stainless-steel-black-leather-closed":_.clone(AppleWatch38BlackLeatherDevice),"apple-watch-38mm-black-steel-black-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-gold-midnight-blue-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-rose-gold-lavender-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-sport-aluminum-blue-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-sport-aluminum-fog-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-sport-aluminum-green-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-sport-aluminum-red-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-sport-aluminum-walnut-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-sport-aluminum-white-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-sport-aluminum-gold-antique-white-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-sport-aluminum-rose-gold-stone-closed":_.clone(AppleWatch38Device),"apple-watch-38mm-sport-space-gray-black-closed":_.clone(AppleWatch38Device),"apple-watch-42mm-black-steel-black-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-gold-black-leather-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-gold-midnight-blue-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-rose-gold-black-leather-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-rose-gold-lavender-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-sport-aluminum-blue-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-sport-aluminum-fog-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-sport-aluminum-green-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-sport-aluminum-red-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-sport-aluminum-walnut-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-sport-aluminum-white-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-sport-aluminum-gold-antique-white-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-sport-aluminum-rose-gold-stone-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-sport-space-gray-black-closed":_.clone(AppleWatch42Device),"apple-watch-42mm-stainless-steel-black-leather-closed":_.clone(AppleWatch42Device),"sony-smartwatch-3-black":_.clone(SonySmartwatch3Base),"sony-smartwatch-3-white":_.clone(SonySmartwatch3Base),"google-nexus-4":_.clone(Nexus4BaseDevice),"google-nexus-5x":_.clone(Nexus5BaseDevice),"google-nexus-6p":_.clone(Nexus6BaseDevice),"google-nexus-9":_.clone(Nexus9BaseDevice),"google-pixel-quite-black":_.clone(PixelBaseDevice),"google-pixel-really-blue":_.clone(PixelBaseDevice),"google-pixel-very-silver":_.clone(PixelBaseDevice),"google-pixel-2-clearly-white":_.clone(Pixel2BaseDevice),"google-pixel-2-just-black":_.clone(Pixel2BaseDevice),"google-pixel-2-kinda-blue":_.clone(Pixel2BaseDevice),"google-pixel-2-xl-black-and-white":_.clone(Pixel2XLBaseDevice),"google-pixel-2-xl-just-black":_.clone(Pixel2XLBaseDevice),"htc-one-a9-black":_.clone(HTCa9BaseDevice),"htc-one-a9-white":_.clone(HTCa9BaseDevice),"htc-one-m8-black":_.clone(HTCm8BaseDevice),"htc-one-m8-gold":_.clone(HTCm8BaseDevice),"htc-one-m8-silver":_.clone(HTCm8BaseDevice),"microsoft-lumia-950-black":_.clone(MSFTLumia950BaseDevice),"microsoft-lumia-950-white":_.clone(MSFTLumia950BaseDevice),"samsung-galaxy-note-5-black":_.clone(SamsungGalaxyNote5BaseDevice),"samsung-galaxy-note-5-gold":_.clone(SamsungGalaxyNote5BaseDevice),"samsung-galaxy-note-5-pink":_.clone(SamsungGalaxyNote5BaseDevice),"samsung-galaxy-note-5-silver-titanium":_.clone(SamsungGalaxyNote5BaseDevice),"samsung-galaxy-note-5-white":_.clone(SamsungGalaxyNote5BaseDevice),"samsung-galaxy-s8-orchid-gray":_.clone(SamsungGalaxyS8BaseDevice),"samsung-galaxy-s8-midnight-black":_.clone(SamsungGalaxyS8BaseDevice),"samsung-galaxy-s8-maple-gold":_.clone(SamsungGalaxyS8BaseDevice),"samsung-galaxy-s8-coral-blue":_.clone(SamsungGalaxyS8BaseDevice),"samsung-galaxy-s8-arctic-silver":_.clone(SamsungGalaxyS8BaseDevice),"apple-macbook":_.clone(AppleMacBook),"apple-macbook-air":_.clone(AppleMacBookAir),"apple-macbook-pro":_.clone(AppleMacBookPro),"dell-xps":_.clone(DellXPS),"apple-imac":_.clone(AppleIMac),"apple-thunderbolt-display":_.clone(AppleThunderboltDisplay),"microsoft-surface-book":_.clone(MicrosoftSurfaceBook),"microsoft-surface-pro-3":_.clone(MicrosoftSurfacePro3),"microsoft-surface-pro-4":_.clone(MicrosoftSurfacePro4),"sony-w85Oc":_.clone(SonyW85OC),"desktop-safari-1024-600":{deviceType:"browser",name:"Desktop Safari 1024 x 600",screenWidth:1024,screenHeight:600,devicePixelRatio:1,deviceImageWidth:1136,deviceImageHeight:760,deviceImageCompression:!0,backgroundColor:"white"},"desktop-safari-1280-800":{deviceType:"browser",name:"Desktop Safari 1280 x 800",screenWidth:1280,screenHeight:800,devicePixelRatio:1,deviceImageWidth:1392,deviceImageHeight:960,deviceImageCompression:!0,backgroundColor:"white"},"desktop-safari-1440-900":{deviceType:"browser",name:"Desktop Safari 1440 x 900",screenWidth:1440,screenHeight:900,devicePixelRatio:1,deviceImageWidth:1552,deviceImageHeight:1060,deviceImageCompression:!0,backgroundColor:"white"},"iphone-6-spacegray":_.clone(old_iPhone6BaseDevice),"iphone-6-spacegray-hand":_.clone(old_iPhone6BaseDeviceHand),"iphone-6-silver":_.clone(old_iPhone6BaseDevice),"iphone-6-silver-hand":_.clone(old_iPhone6BaseDeviceHand),"iphone-6-gold":_.clone(old_iPhone6BaseDevice),"iphone-6-gold-hand":_.clone(old_iPhone6BaseDeviceHand),"iphone-6plus-spacegray":_.clone(old_iPhone6PlusBaseDevice),"iphone-6plus-spacegray-hand":_.clone(old_iPhone6PlusBaseDeviceHand),"iphone-6plus-silver":_.clone(old_iPhone6PlusBaseDevice),"iphone-6plus-silver-hand":_.clone(old_iPhone6PlusBaseDeviceHand),"iphone-6plus-gold":_.clone(old_iPhone6PlusBaseDevice),"iphone-6plus-gold-hand":_.clone(old_iPhone6PlusBaseDeviceHand),"iphone-5s-spacegray":_.clone(old_iPhone5BaseDevice),"iphone-5s-spacegray-hand":_.clone(old_iPhone5BaseDeviceHand),"iphone-5s-silver":_.clone(old_iPhone5BaseDevice),"iphone-5s-silver-hand":_.clone(old_iPhone5BaseDeviceHand),"iphone-5s-gold":_.clone(old_iPhone5BaseDevice),"iphone-5s-gold-hand":_.clone(old_iPhone5BaseDeviceHand),"iphone-5c-green":_.clone(old_iPhone5CBaseDevice),"iphone-5c-green-hand":_.clone(old_iPhone5CBaseDeviceHand),"iphone-5c-blue":_.clone(old_iPhone5CBaseDevice),"iphone-5c-blue-hand":_.clone(old_iPhone5CBaseDeviceHand),"iphone-5c-pink":_.clone(old_iPhone5CBaseDevice),"iphone-5c-pink-hand":_.clone(old_iPhone5CBaseDeviceHand),"iphone-5c-white":_.clone(old_iPhone5CBaseDevice),"iphone-5c-white-hand":_.clone(old_iPhone5CBaseDeviceHand),"iphone-5c-yellow":_.clone(old_iPhone5CBaseDevice),"iphone-5c-yellow-hand":_.clone(old_iPhone5CBaseDeviceHand),"ipad-mini-spacegray":_.clone(old_iPadMiniBaseDevice),"ipad-mini-spacegray-hand":_.clone(old_iPadMiniBaseDeviceHand),"ipad-mini-silver":_.clone(old_iPadMiniBaseDevice),"ipad-mini-silver-hand":_.clone(old_iPadMiniBaseDeviceHand),"ipad-air-spacegray":_.clone(old_iPadAirBaseDevice),"ipad-air-spacegray-hand":_.clone(old_iPadAirBaseDeviceHand),"ipad-air-silver":_.clone(old_iPadAirBaseDevice),"ipad-air-silver-hand":_.clone(old_iPadAirBaseDeviceHand),"nexus-5-black":_.clone(old_Nexus5BaseDevice),"nexus-5-black-hand":_.clone(old_Nexus5BaseDeviceHand),"nexus-9":_.clone(old_Nexus9BaseDevice),"applewatchsport-38-aluminum-sportband-black":_.clone(old_AppleWatch38Device),"applewatchsport-38-aluminum-sportband-blue":_.clone(old_AppleWatch38Device),"applewatchsport-38-aluminum-sportband-green":_.clone(old_AppleWatch38Device),"applewatchsport-38-aluminum-sportband-pink":_.clone(old_AppleWatch38Device),"applewatchsport-38-aluminum-sportband-white":_.clone(old_AppleWatch38Device),"applewatch-38-black-bracelet":_.clone(old_AppleWatch38Device),"applewatch-38-steel-bracelet":_.clone(old_AppleWatch38Device),"applewatchedition-38-gold-buckle-blue":_.clone(old_AppleWatch38Device),"applewatchedition-38-gold-buckle-gray":_.clone(old_AppleWatch38Device),"applewatchedition-38-gold-buckle-red":_.clone(old_AppleWatch38Device),"applewatchedition-38-gold-sportband-black":_.clone(old_AppleWatch38Device),"applewatchedition-38-gold-sportband-white":_.clone(old_AppleWatch38Device),"applewatchsport-42-aluminum-sportband-black":_.clone(old_AppleWatch42Device),"applewatchsport-42-aluminum-sportband-blue":_.clone(old_AppleWatch42Device),"applewatchsport-42-aluminum-sportband-green":_.clone(old_AppleWatch42Device),"applewatchsport-42-aluminum-sportband-pink":_.clone(old_AppleWatch42Device),"applewatchsport-42-aluminum-sportband-white":_.clone(old_AppleWatch42Device),"applewatch-42-black-bracelet":_.clone(old_AppleWatch42Device),"applewatch-42-steel-bracelet":_.clone(old_AppleWatch42Device),"applewatchedition-42-gold-buckle-blue":_.clone(old_AppleWatch42Device),"applewatchedition-42-gold-buckle-gray":_.clone(old_AppleWatch42Device),"applewatchedition-42-gold-buckle-red":_.clone(old_AppleWatch42Device),"applewatchedition-42-gold-sportband-black":_.clone(old_AppleWatch42Device),"applewatchedition-42-gold-sportband-white":_.clone(old_AppleWatch42Device)},exports.DeviceComponent.Devices=Devices,BuiltInDevices=_.keys(Devices)},function(module,exports,__webpack_require__){var Defaults,Layer,Utils,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Utils=__webpack_require__(4),Defaults=__webpack_require__(19).Defaults,Layer=__webpack_require__(15).Layer,exports.GridComponent=function(superClass){function GridComponent(options){null==options&&(options={}),GridComponent.__super__.constructor.call(this,Defaults.getDefaults("GridComponent",options))}return extend(GridComponent,superClass),GridComponent.define("rows",{get:function(){return this._rows},set:function(value){return this._rows=value,this._render()}}),GridComponent.define("columns",{get:function(){return this._columns},set:function(value){return this._columns=value,this._render()}}),GridComponent.define("spacing",{get:function(){return this._spacing||{horizontal:0,vertical:0}},set:function(value){return _.isNumber(value)&&(value={horizontal:value,vertical:value}),this._spacing=value,this._render()}}),GridComponent.define("renderCell",{get:function(){return this._renderCell||this._defaultRenderCell},set:function(f){if(f!==this._renderCell){if(!_.isFunction(f))throw Error("GridComponent.renderCell should be a function, not "+typeof f);return this._renderCell=f,this.render()}}}),GridComponent.define("cellWidth",{get:function(){return(this.width-this.spacing.horizontal*(this.columns-1))/this.columns}}),GridComponent.define("cellHeight",{get:function(){return(this.height-this.spacing.vertical*(this.rows-1))/this.rows}}),GridComponent.define("cells",{get:function(){return _.values(this._cells)}}),GridComponent.prototype.cellX=function(row){return row*(this.cellWidth+this.spacing.horizontal)},GridComponent.prototype.cellY=function(column){return column*(this.cellHeight+this.spacing.vertical)},GridComponent.prototype.cellFrame=function(column,row){var frame;return frame={x:this.cellX(column),y:this.cellY(row),width:this.cellWidth,height:this.cellHeight}},GridComponent.prototype.cell=function(column,row){return this._cells[column+":"+row]},GridComponent.prototype.render=function(){return this._render()},GridComponent.prototype._render=function(){var cell,column,frame,i,ref,results,row;for(this._reset(),results=[],row=i=ref=this.rows-1;ref<=0?i<=0:i>=0;row=ref<=0?++i:--i)results.push(function(){var j,ref1,results1;for(results1=[],column=j=ref1=this.columns-1;ref1<=0?j<=0:j>=0;column=ref1<=0?++j:--j)frame=this.cellFrame(column,row),cell=new Layer({parent:this,frame:frame,name:"Cell "+column+":"+row}),this.renderCell(cell,row,column),results1.push(this._cells[column+":"+row]=cell);return results1}.call(this));return results},GridComponent.prototype._defaultRenderCell=function(cell,column,row){var fraction;return fraction=column/this.columns+row/this.rows/2,cell.backgroundColor="#28affa",cell.hueRotate=20*column+row%this.columns*(20/(this.columns+1)),Utils.labelLayer(cell,row+":"+column),cell.style.fontSize="30px"},GridComponent.prototype._reset=function(){return _.invokeMap(this.cells,"destroy"),this._cells={}},GridComponent}(Layer)},function(module,exports,__webpack_require__){var AnimationGroup,Events,FlowComponentLayerScrollKey,Layer,LayerStateMachine,LayerStates,Transitions,Utils,findBody,findFooter,findHeader,findPossibleFooter,findPossibleHeader,guessBodyFrame,layoutPage,layoutScroll,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1},slice=[].slice;Utils=__webpack_require__(4),Layer=__webpack_require__(15).Layer,Events=__webpack_require__(17).Events,LayerStates=__webpack_require__(30).LayerStates,LayerStateMachine=__webpack_require__(31).LayerStateMachine,AnimationGroup=__webpack_require__(49).AnimationGroup,FlowComponentLayerScrollKey="_flowComponentWrapped",Events.TransitionStart="transitionstart",Events.TransitionHalt="transitionhalt",Events.TransitionStop="transitionstop",Events.TransitionEnd="transitionend",exports.FlowComponent=function(superClass){function FlowComponent(layerOrOptions,options){var layer;null==layerOrOptions&&(layerOrOptions={}),null==options&&(options={}),this._runTransition=bind(this._runTransition,this),this._forwardScrollEvents=bind(this._forwardScrollEvents,this),this._handleOverlayTap=bind(this._handleOverlayTap,this),this.showPrevious=bind(this.showPrevious,this),layer=null,layerOrOptions instanceof Layer?(layer=layerOrOptions,options=options):options=layerOrOptions,options=_.defaults({},options,{backgroundColor:"black"}),options.size||(null==options.width&&(options.width=Screen.width),null==options.height&&(options.height=Screen.height)),null==options.clip&&(options.clip=!0),FlowComponent.__super__.constructor.call(this,options),this.reset(),this.overlay=new Layer({name:"overlay",parent:this,size:0,backgroundColor:"black",visible:!1}),this.overlay.onTap(this._handleOverlayTap),layer?this.showNext(layer):this._tempScroll=new ScrollComponent({name:"scrollComponent",parent:this,width:this.width,height:this.height})}return extend(FlowComponent,superClass),FlowComponent.prototype.reset=function(){var i,item,len,ref;if(this._stack)for(ref=this._stack,i=0,len=ref.length;i<len;i++)item=ref[i],item.layer!==this._initial&&(item.layer.visible=!1);if(this._stack=[],this._seen=[],this._current=null,this._isModal=!1,this._initial)return this.showNext(this._initial,{animate:!1})},FlowComponent.define("isModal",{get:function(){return this._isModal}}),FlowComponent.define("stack",{get:function(){return this._stack.map(function(item){return item.layer})}}),FlowComponent.define("current",{get:function(){var ref;return null!=(ref=this._stack[this._stack.length-1])?ref.layer:void 0}}),FlowComponent.define("previous",{get:function(){var ref;return null!=(ref=this._stack[this._stack.length-2])?ref.layer:void 0}}),FlowComponent.define("scroll",{get:function(){var ref;return null!=(ref=this.current)?ref._flowScroll:void 0}}),FlowComponent.define("header",{get:function(){return this._header},set:function(layer){if(layer instanceof Layer)return this._header=layer,this._header.name="header",this._header.width=this.width,this._header.setParentPreservingConstraintValues(this),null==this._header.constraintValues&&(this._header.x=Align.center,this._header.y=Align.top),this.current?this._wrapLayer(this.current):void 0}}),FlowComponent.define("footer",{get:function(){return this._footer},set:function(layer){if(layer instanceof Layer)return this._footer=layer,this._footer.name="footer",this._footer.width=this.width,this._footer.setParentPreservingConstraintValues(this),null==this._footer.constraintValues&&(this._footer.x=Align.center,this._footer.y=Align.bottom),this.current?this._wrapLayer(this.current):void 0}}),FlowComponent.prototype.transition=function(layer,transitionFunction,options){var layerA,layerB,overlay,ref,template,transition,wrappedLayer;if(null==options&&(options={}),!(layer instanceof Layer))throw new Error("FlowComponent.transition expects a layer");if(!transitionFunction)throw new Error("FlowComponent.transition expects transitionFunction");if(layer!==this.current)return null!=(ref=this._tempScroll)&&ref.destroy(),options=_.defaults({},options,{animate:this._firstTransition===!0,scroll:!0,wrap:!0,modal:!1}),this._isModal=options.modal,layer.visible=!0,layer.opacity=1,layer.ignoreEvents=!1,wrappedLayer=layer,options.scroll&&options.wrap&&(wrappedLayer=this._wrapLayer(layer)),wrappedLayer.parent=this,wrappedLayer.visible=!options.animate,layerA=this.current,layerB=wrappedLayer,overlay=this.overlay,template=transitionFunction(this,layerA,layerB,overlay),transition=this._buildTransition(template,layerA,layerB,overlay),this._runTransition(transition,"forward",options.animate,this.current,layer),this._stack.push({layer:layer,transition:transition})},FlowComponent.prototype.showNext=function(layer,options){return null==options&&(options={}),null==this._initial&&(this._initial=layer),this.transition(layer,Transitions.show,options)},FlowComponent.prototype.showPrevious=function(options){var count,i,n,previous,ref;if(null==options&&(options={}),this.previous&&!this.isTransitioning){if(options instanceof Framer._Layer&&(options={}),options=_.defaults({},options,{count:1,animate:!0}),options.count>1)for(count=options.count,n=i=2,ref=count;2<=ref?i<=ref:i>=ref;n=2<=ref?++i:--i)this.showPrevious({animate:!1,count:1});return previous=this._stack.pop(),this._runTransition(null!=previous?previous.transition:void 0,"back",options.animate,this.current,previous.layer)}},FlowComponent.prototype.showOverlayCenter=function(layer,options){return null==options&&(options={}),this._showOverlay(layer,Transitions.overlayCenter,options)},FlowComponent.prototype.showOverlayTop=function(layer,options){return null==options&&(options={}),this._showOverlay(layer,Transitions.overlayTop,options)},FlowComponent.prototype.showOverlayRight=function(layer,options){return null==options&&(options={}),this._showOverlay(layer,Transitions.overlayRight,options)},FlowComponent.prototype.showOverlayBottom=function(layer,options){return null==options&&(options={}),this._showOverlay(layer,Transitions.overlayBottom,options)},FlowComponent.prototype.showOverlayLeft=function(layer,options){return null==options&&(options={}),this._showOverlay(layer,Transitions.overlayLeft,options)},FlowComponent.prototype._showOverlay=function(layer,transition,options){return null==options&&(options={}),this.transition(layer,transition,_.defaults({},options,{animate:!0,scroll:!1,modal:!1}))},FlowComponent.prototype._handleOverlayTap=function(){if(!this.isModal)return this.showPrevious()},FlowComponent.prototype._wrapLayer=function(flowLayer){var content,i,inset,layer,len,previousWrappingContent,previousWrappingScroll,ref,ref1,ref2,scroll,size;if(flowLayer._flowLayer=flowLayer,flowLayer instanceof ScrollComponent)return flowLayer;if(flowLayer._flowWrapped)return flowLayer;for(flowLayer.width=Math.max(flowLayer.width,this.width),flowLayer.height=Math.max(flowLayer.height,this.height),size=this.size,indexOf.call(flowLayer.ancestors(),this)>=0&&(content=null!=flowLayer?flowLayer.parent:void 0,scroll=null!=content?content.parent:void 0,scroll instanceof ScrollComponent&&(previousWrappingScroll=scroll,previousWrappingContent=content)),layer=layoutPage(flowLayer,size),layer=layoutScroll(layer,size),flowLayer!==layer&&0===(null!=previousWrappingContent?previousWrappingContent.children.length:void 0)&&1===(null!=previousWrappingScroll?previousWrappingScroll.children.length:void 0)&&(null!=previousWrappingScroll?previousWrappingScroll.children[0]:void 0)===previousWrappingContent&&previousWrappingScroll.destroy(),layer._flowLayer=flowLayer,ref=[layer].concat(slice.call(layer.children)),i=0,len=ref.length;i<len;i++)scroll=ref[i],this._forwardScrollEvents(scroll),scroll instanceof ScrollComponent&&(inset={},0===scroll.y&&(inset.top=(null!=(ref1=this.header)?ref1.height:void 0)||0),scroll.maxY===this.height&&(inset.bottom=(null!=(ref2=this.footer)?ref2.height:void 0)||0),scroll.contentInset=inset,flowLayer._flowScroll=scroll);return layer instanceof ScrollComponent&&(layer.backgroundColor=this.backgroundColor),layer},FlowComponent.prototype._forwardScrollEvents=function(scroll){var event,fn,i,len,ref;if(scroll instanceof ScrollComponent&&scroll._flowForward!==!0){for(ref=[Events.Move,Events.ScrollStart,Events.ScrollMove,Events.ScrollEnd,Events.ScrollAnimationDidStart,Events.ScrollAnimationDidEnd],fn=function(_this){return function(event){return scroll.on(event,function(){return _this.emit(event,scroll)})}}(this),i=0,len=ref.length;i<len;i++)event=ref[i],fn(event);return scroll._flowForward=!0}},FlowComponent.prototype._runTransition=function(transition,direction,animate,from,to){var a,b;return"forward"===direction?(a=from,b=to):(a=to,b=from),this.emit(Events.TransitionStart,a,b,direction),Utils.delay(0,function(_this){return function(){return _this._firstTransition=!0,transition[direction](animate)}}(this))},FlowComponent.prototype._buildTransition=function(template,layerA,layerB,overlay){var transition;return transition={},transition.forward=function(_this){return function(animate,callback){var animations,forwardEvents,group,options;return null==animate&&(animate=!0),forwardEvents=function(group,direction){return group.once(Events.AnimationHalt,function(){return _this.emit(Events.TransitionHalt,layerA,layerB,direction)}),group.once(Events.AnimationStop,function(){return _this.emit(Events.TransitionStop,layerA,layerB,direction)}),group.once(Events.AnimationEnd,function(){return _this.emit(Events.TransitionEnd,layerA,layerB,direction)})},animations=[],options={instant:!animate},layerA&&template.layerA&&(layerA.visible=!0,animations.push(new Animation(layerA,template.layerA.hide,options))),layerB&&template.layerB&&(layerB.props=template.layerB.hide,layerB.bringToFront(),layerB.visible=!0,animations.push(new Animation(layerB,template.layerB.show,options))),overlay&&template.overlay&&(overlay.visible=!0,overlay.ignoreEvents=!1,overlay.placeBehind(layerB),overlay.props=template.overlay.hide,animations.push(new Animation(overlay,template.overlay.show,options))),overlay&&template.overlay?(_this.header&&_this.header.placeBehind(overlay),_this.footer&&_this.footer.placeBehind(overlay)):(_this.header&&_this.header.bringToFront(),_this.footer&&_this.footer.bringToFront()),group=new AnimationGroup(animations),forwardEvents(group,"forward"),group.once(Events.AnimationEnd,function(){if(layerA&&template.layerA&&(!overlay||!template.overlay))return layerA.visible=!1}),group.start()}}(this),transition.back=function(_this){return function(animate,callback){var animations,forwardEvents,group,options;return null==animate&&(animate=!0),forwardEvents=function(group,direction){return group.once(Events.AnimationHalt,function(){return _this.emit(Events.TransitionHalt,layerB,layerA,direction)}),group.once(Events.AnimationStop,function(){return _this.emit(Events.TransitionStop,layerB,layerA,direction)}),group.once(Events.AnimationEnd,function(){return _this.emit(Events.TransitionEnd,layerB,layerA,direction)})},animations=[],options={instant:!animate},overlay&&template.overlay&&(overlay.visible=!0,overlay.ignoreEvents=!0,animations.push(new Animation(overlay,template.overlay.hide,options))),layerA&&template.layerA&&(layerA.visible=!0,animations.push(new Animation(layerA,template.layerA.show,options))),layerB&&template.layerB&&(layerB.visible=!0,animations.push(new Animation(layerB,template.layerB.hide,options))),group=new AnimationGroup(animations),group.stopAnimations=!1,forwardEvents(group,"back"),group.once(Events.AnimationEnd,function(){if(layerB&&template.layerB)return layerB.visible=!1}),group.start()}}(this),transition},FlowComponent.prototype.onTransitionStart=function(cb){return this.on(Events.TransitionStart,cb)},FlowComponent.prototype.onTransitionHalt=function(cb){return this.on(Events.TransitionHalt,cb)},FlowComponent.prototype.onTransitionStop=function(cb){return this.on(Events.TransitionStop,cb)},FlowComponent.prototype.onTransitionEnd=function(cb){return this.on(Events.TransitionEnd,cb)},FlowComponent.prototype.onStart=function(cb){return this.onTransitionStart(cb)},FlowComponent.prototype.onHalt=function(cb){return this.onTransitionHalt(cb)},FlowComponent.prototype.onStop=function(cb){return this.onTransitionStop(cb)},FlowComponent.prototype.onEnd=function(cb){return this.onTransitionEnd(cb)},FlowComponent}(Layer),findPossibleHeader=function(layer){var attachedLeft,attachedTop,atttachedRight,candidate,child,i,j,len,len1,ref,ref1,ref2,ref3,ref4;for(candidate=null,ref=layer.children,i=0,len=ref.length;i<len;i++)if(child=ref[i],attachedLeft=0===child.x||0===(null!=(ref1=child.constraintValues)?ref1.left:void 0),atttachedRight=child.width===layer.width||0===(null!=(ref2=child.constraintValues)?ref2.right:void 0),attachedTop=0===child.y||0===(null!=(ref3=child.constraintValues)?ref3.top:void 0),attachedLeft&&atttachedRight&&attachedTop){if(candidate)return;candidate=child}if(candidate){for(ref4=layer.children,j=0,len1=ref4.length;j<len1;j++)if(child=ref4[j],candidate!==child&&child.minY<candidate.maxY)return;return candidate}},findPossibleFooter=function(layer){var attachedBottom,attachedLeft,atttachedRight,candidate,child,i,j,len,len1,ref,ref1,ref2,ref3,ref4;for(candidate=null,ref=layer.children,i=0,len=ref.length;i<len;i++)if(child=ref[i],attachedLeft=0===child.x||0===(null!=(ref1=child.constraintValues)?ref1.left:void 0),atttachedRight=child.width===layer.width||0===(null!=(ref2=child.constraintValues)?ref2.right:void 0),attachedBottom=child.maxY===layer.height||0===(null!=(ref3=child.constraintValues)?ref3.bottom:void 0),attachedLeft&&atttachedRight&&attachedBottom){if(candidate)return;candidate=child}if(candidate){for(ref4=layer.children,j=0,len1=ref4.length;j<len1;j++)if(child=ref4[j], candidate!==child&&child.maxY>candidate.minY)return;return candidate}},findHeader=function(layer){var footer,header;if(header=findPossibleHeader(layer),footer=findPossibleFooter(layer),!(header&&footer&&header.maxY===footer.minY&&header.height>=footer.height))return header},findFooter=function(layer){var footer,header;if(header=findPossibleHeader(layer),footer=findPossibleFooter(layer),!(header&&footer&&header.maxY===footer.minY&&footer.height>=header.height))return footer},findBody=function(layer,header,footer){var child,i,len,ref;if(header||footer)for(ref=layer.children,i=0,len=ref.length;i<len;i++)if(child=ref[i],child!==header&&child!==footer&&0===child.x&&child.width===layer.width){if(header&&footer&&child.minY===header.maxY&&child.maxY===footer.minY)return child;if(header&&child.minY===header.maxY&&child.maxY===layer.height)return child;if(footer&&0===child.minY&&child.maxY===footer.minY)return child}},guessBodyFrame=function(layer,header,footer){var frame;if((header||footer)&&(null!=header?header.maxY:void 0)!==(null!=footer?footer.minY:void 0)){if(header&&footer)frame={x:0,y:header.height,width:layer.width,height:layer.height-header.height-footer.height};else if(header)frame={x:0,y:header.height,width:layer.width,height:layer.height-header.height};else{if(!footer)return;frame={x:0,y:0,width:layer.width,height:layer.height-footer.height}}if(!(((null!=header?header.height:void 0)||0)>frame.height||((null!=footer?footer.height:void 0)||0)>frame.height))return frame}},layoutPage=function(layer,size){var body,bodyFrame,child,footer,header,headerHeight,i,len,ref,ref1,ref2,scroll;if(header=findHeader(layer),footer=findFooter(layer),!header&&!footer)return layer;if(body=findBody(layer,header,footer),!body&&(bodyFrame=guessBodyFrame(layer,header,footer)))for(body=new Layer({frame:bodyFrame,backgroundColor:null}),ref=layer.children,i=0,len=ref.length;i<len;i++)child=ref[i],child!==header&&child!==footer&&(child.setParentPreservingConstraintValues(body),headerHeight=(null!=header?header.height:void 0)||0,null!=child.constraintValues?null!=(null!=(ref1=child.constraintValues)?ref1.top:void 0)&&(null!=(ref2=child.constraintValues)&&(ref2.top-=headerHeight),child.layout()):child.y-=headerHeight);return body?(bodyFrame=body.frame,bodyFrame.width=size.width,bodyFrame.height=size.height-((null!=header?header.height:void 0)||0)-((null!=footer?footer.height:void 0)||0),body.point=0,body.width=size.width,scroll=layoutScroll(body,bodyFrame),scroll.parent=layer,scroll.frame=bodyFrame,layer.size=size,(null!=footer?footer.maxY:void 0)>size.height&&(footer.maxY=size.height),null!=header&&header.bringToFront(),null!=footer&&footer.bringToFront(),layer):layer},layoutScroll=function(layer,size){var constraints,height,scroll;return layer.width<=size.width&&layer.height<=size.height?layer:(scroll=new ScrollComponent({size:size,name:"scroll"}),height=layer.height,scroll.propagateEvents=!1,constraints=layer.constraintValues,layer.point=0,layer.parent=scroll.content,layer.constraintValues=constraints,scroll.scrollHorizontal=layer.maxX>size.width,scroll.scrollVertical=layer.maxY>size.height,scroll)},Transitions={},Transitions.show=function(nav,layerA,layerB,overlay){var options,transition;return options={curve:"spring(300, 35, 0)"},transition={layerA:{show:{options:options,x:0,y:0},hide:{options:options,x:0-(null!=layerA?layerA.width:void 0)/2,y:0}},layerB:{show:{options:options,x:0,y:0},hide:{options:options,x:layerB.width,y:0}}}},Transitions.overlayCenter=function(nav,layerA,layerB,overlay){var transition;return transition={layerB:{show:{options:{curve:"spring(500, 35, 0)"},x:Align.center,y:Align.center,scale:1,opacity:1},hide:{options:{curve:"spring(500, 35, 0)"},x:Align.center,y:Align.center,scale:.5,opacity:0}},overlay:{show:{options:{time:.1},opacity:.5,x:0,y:0,size:nav.size},hide:{options:{time:.1},opacity:0,x:0,y:0,size:nav.size}}}},Transitions.overlayLeft=function(nav,layerA,layerB,overlay){var transition;return transition={layerB:{show:{options:{curve:"spring(300, 35, 0)"},y:0,x:0},hide:{options:{curve:"spring(300, 35, 0)"},y:0,x:0-(null!=layerB?layerB.width:void 0)}},overlay:{show:{options:{time:.1},opacity:.5,x:0,y:0,size:nav.size},hide:{options:{time:.1},opacity:0,x:0,y:0,size:nav.size}}}},Transitions.overlayRight=function(nav,layerA,layerB,overlay){var transition;return transition={layerB:{show:{options:{curve:"spring(300, 35, 0)"},y:0,x:(null!=nav?nav.width:void 0)-(null!=layerB?layerB.width:void 0)},hide:{options:{curve:"spring(300, 35, 0)"},y:0,x:null!=nav?nav.width:void 0}},overlay:{show:{options:{time:.1},opacity:.5,x:0,y:0,size:nav.size},hide:{options:{time:.1},opacity:0,x:0,y:0,size:nav.size}}}},Transitions.overlayTop=function(nav,layerA,layerB,overlay){var transition;return transition={layerB:{show:{options:{curve:"spring(300, 35, 0)"},x:Align.center,y:0},hide:{options:{curve:"spring(300, 35, 0)"},x:Align.center,maxY:0}},overlay:{show:{options:{time:.1},opacity:.5,x:0,y:0,size:nav.size},hide:{options:{time:.1},opacity:0,x:0,y:0,size:nav.size}}}},Transitions.overlayBottom=function(nav,layerA,layerB,overlay){var transition;return transition={layerB:{show:{options:{curve:"spring(300, 35, 0)"},x:Align.center,y:(null!=nav?nav.height:void 0)-(null!=layerB?layerB.height:void 0)},hide:{options:{curve:"spring(300, 35, 0)"},x:Align.center,y:null!=nav?nav.height:void 0}},overlay:{show:{options:{time:.1},opacity:.5,x:0,y:0,size:nav.size},hide:{options:{time:.1},opacity:0,x:0,y:0,size:nav.size}}}}},function(module,exports,__webpack_require__){var Layer,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Layer=__webpack_require__(15).Layer,exports.CircularProgressComponent=function(superClass){function CircularProgressComponent(options){null==options&&(options={}),CircularProgressComponent.__super__.constructor.apply(this,arguments),this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.setAttribute("width","100%"),this.svg.setAttribute("height","100%"),this.svg.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.backgroundColor=null,this.rotation=-90,this.rails=this.addShape("circle"),this.rails.setAttribute("fill","transparent"),this.circle=this.addShape("circle"),this.circle.setAttribute("fill","transparent"),this.strokeWidth=1,this.progress=0,this.railsColor=Color.grey(.2),this.progressColor=Color.grey(1),this._element.appendChild(this.svg)}return extend(CircularProgressComponent,superClass),CircularProgressComponent.prototype.addShape=function(type){var shape;return shape=document.createElementNS("http://www.w3.org/2000/svg","circle"),this.svg.appendChild(shape),shape},CircularProgressComponent.define("radius",{get:function(){return this.width/2-this.strokeWidth/2}}),CircularProgressComponent.define("strokeWidth",{get:function(){return this._strokeWidth||1},set:function(value){return this._strokeWidth=value,this.rails.cx.baseVal.value=this.width/2,this.rails.cy.baseVal.value=this.width/2,this.rails.r.baseVal.value=this.radius,this.rails.setAttribute("stroke-width",value),this.circle.cx.baseVal.value=this.width/2,this.circle.cy.baseVal.value=this.width/2,this.circle.r.baseVal.value=this.radius,this.circle.setAttribute("stroke-width",value)}}),CircularProgressComponent.define("progressColor",{get:function(){return this._progressColor||Color.grey(1)},set:function(value){return this.circle.setAttribute("stroke",value)}}),CircularProgressComponent.define("railsColor",{get:function(){return this._progressColor||Color.grey(.1)},set:function(value){return this.rails.setAttribute("stroke",value)}}),CircularProgressComponent.define("progress",{get:function(){return this._progress||0},set:function(value){var strokeDashArray,strokeDashOffset;return this._progress=Utils.clamp(value,0,1),strokeDashArray=this.radius*Math.PI*2,strokeDashOffset=(1-this.progress)*strokeDashArray,this.circle.setAttribute("stroke-dasharray",strokeDashArray),this.circle.setAttribute("stroke-dashoffset",strokeDashOffset)}}),CircularProgressComponent.prototype.setProgress=function(value,animated,animationOptions){var animationProperties,dynamicTime;return null==animated&&(animated=!0),null==animationOptions&&(animationOptions={}),animated?(dynamicTime=.3*Math.abs(this.progress-value),animationOptions=_.defaults(animationOptions,{curve:"linear",time:dynamicTime}),animationProperties={progress:Utils.clamp(value,0,1)},this.animate(animationProperties,animationOptions)):this.progress=value},CircularProgressComponent}(Layer)},function(module,exports,__webpack_require__){var BaseClass,Events,MIDIComponent,MIDIInput,_,extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;_=__webpack_require__(1)._,BaseClass=__webpack_require__(6).BaseClass,Events=__webpack_require__(17).Events,MIDIInput=__webpack_require__(64).MIDIInput,Events.MIDIComponentValueChange="MIDIComponentValueChange",MIDIComponent=function(superClass){function MIDIComponent(options){null==options&&(options={}),MIDIComponent.__super__.constructor.call(this,options),MIDIInput.enabled=!0,MIDIInput.onCommand(function(_this){return function(source,timeStamp,data){var b1,b2,b3,channel,command,data1,data2,info;if(b1=data[0],b2=data[1],b3=data[2],command=240&b1,channel=(15&b1)+1,data1=127&b2,data2=127&b3,!(176!==command&&144!==command&&128!==command||null!=_this.source&&_this.source!==source||null!=_this.channel&&_this.channel!==channel||null!=_this.control&&_this.control!==data1))return info={source:source,channel:channel,control:data1},144!==command&&128!==command||(info=_.defaults(info,{type:"note"})),_this.emit(Events.MIDIComponentValueChange,_this._modulate(data2),info)}}(this))}return extend(MIDIComponent,superClass),MIDIComponent.define("min",MIDIComponent.simpleProperty("min",0)),MIDIComponent.define("max",MIDIComponent.simpleProperty("max",127)),MIDIComponent.define("control",MIDIComponent.simpleProperty("control",null)),MIDIComponent.define("channel",MIDIComponent.simpleProperty("channel",null)),MIDIComponent.define("source",MIDIComponent.simpleProperty("source",null)),MIDIComponent.prototype._modulate=function(value){return Utils.modulate(value,[0,127],[this.min,this.max])},MIDIComponent.prototype.onValueChange=function(cb){return this.on(Events.MIDIComponentValueChange,cb)},MIDIComponent}(BaseClass),exports.MIDIComponent=MIDIComponent},function(module,exports,__webpack_require__){var BaseClass,Events,MIDIInput,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;BaseClass=__webpack_require__(6).BaseClass,Events=__webpack_require__(17).Events,Events.MIDICommand="midiCommand",MIDIInput=function(superClass){function MIDIInput(){return this._onmidimessage=bind(this._onmidimessage,this),this._requestResolved=bind(this._requestResolved,this),MIDIInput.__super__.constructor.apply(this,arguments)}return extend(MIDIInput,superClass),MIDIInput.define("enabled",{get:function(){var ref;return(null!=(ref=this._inputs)?ref.length:void 0)||this._request},set:function(value){var ref;if(value!==this.enabled)return window.parent.navigator.requestMIDIAccess?value?this._request=window.parent.navigator.requestMIDIAccess().then(this._requestResolved,this._requestRejected):(null!=(ref=this._inputs)&&ref.map(close),this._request=null,this._inputs=[]):this._requestRejected()}}),MIDIInput.prototype._requestResolved=function(access){return null==this._inputs&&(this._inputs=[]),access.inputs.forEach(function(_this){return function(input){return _this._inputs.push(input),input.onmidimessage=_this._onmidimessage(input.id)}}(this))},MIDIInput.prototype._requestRejected=function(error){throw Error("Requesting MIDI access failed: "+(null!=error?error:"not supported by browser"))},MIDIInput.prototype._onmidimessage=function(sourceID){return function(_this){return function(message){return _this.emit(Events.MIDICommand,sourceID,message.timeStamp,message.data)}}(this)},MIDIInput.prototype.onCommand=function(cb){return this.on(Events.MIDICommand,cb)},MIDIInput}(BaseClass),exports.MIDIInput=new MIDIInput},function(module,exports,__webpack_require__){var Config,EventEmitter,Utils,_,getTime,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;_=__webpack_require__(1)._,Utils=__webpack_require__(4),Config=__webpack_require__(16).Config,EventEmitter=__webpack_require__(7).EventEmitter,getTime=function(){return 1e3*Utils.getTime()},exports.AnimationLoop=function(superClass){function AnimationLoop(){this.start=bind(this.start,this),this.delta=1/60,this.raf=!0,Utils.webkitVersion()>600&&Utils.webkitVersion()<601&&(Utils.isFramerStudio()||Utils.isDesktop())&&(this.raf=!1),this.maximumListeners=Infinity}return extend(AnimationLoop,superClass),AnimationLoop.prototype.start=function(){var _timestamp,animationLoop,tick,update;return animationLoop=this,_timestamp=getTime(),update=function(){var delta,timestamp;return animationLoop.delta?delta=animationLoop.delta:(timestamp=getTime(),delta=(timestamp-_timestamp)/1e3,_timestamp=timestamp),animationLoop.emit("update",delta),animationLoop.emit("render",delta)},(tick=function(timestamp){return animationLoop.raf?(window.requestAnimationFrame(tick),update()):window.setTimeout(function(){return window.requestAnimationFrame(tick),update()},0)})()},AnimationLoop}(EventEmitter)},function(module,exports,__webpack_require__){var Animator,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Animator=__webpack_require__(21).Animator,exports.SpringDHOAnimator=function(superClass){function SpringDHOAnimator(){return this.finished=bind(this.finished,this),SpringDHOAnimator.__super__.constructor.apply(this,arguments)}return extend(SpringDHOAnimator,superClass),SpringDHOAnimator.prototype.setup=function(options){return this.options=_.defaults(options,{velocity:0,tolerance:1e-4,stiffness:50,damping:2,mass:.2,time:null}),this._time=0,this._value=0,this._velocity=this.options.velocity},SpringDHOAnimator.prototype.next=function(delta){var F_damper,F_spring,b,k;return this.finished()?1:(this._time+=delta,k=0-this.options.stiffness,b=0-this.options.damping,F_spring=k*(this._value-1),F_damper=b*this._velocity,this._velocity+=(F_spring+F_damper)/this.options.mass*delta,this._value+=this._velocity*delta,this._value)},SpringDHOAnimator.prototype.finished=function(){return this._time>0&&Math.abs(this._velocity)<this.options.tolerance},SpringDHOAnimator}(Animator)},function(module,exports,__webpack_require__){var ChromeAlert,Utils,_,resizeFrame,sanitizeLayerName,startsWithNumber;_=__webpack_require__(1)._,Utils=__webpack_require__(4),ChromeAlert="Importing layers is currently only supported on Safari. If you really want it to work with Chrome quit it, open a terminal and run:\nopen -a Google Chrome -–allow-file-access-from-files",resizeFrame=function(scale,frame){var i,key,len,ref,result;if(1===scale)return frame;for(result={},ref=["x","y","width","height"],i=0,len=ref.length;i<len;i++)key=ref[i],frame.hasOwnProperty(key)&&(result[key]=frame[key]*scale);return result},startsWithNumber=function(str){return new RegExp("^[0-9]").test(str)},sanitizeLayerName=function(name){var i,len,ref,suffix;for(ref=["*","-",".png",".jpg",".pdf"],i=0,len=ref.length;i<len;i++)suffix=ref[i],_.endsWith(name.toLowerCase(),suffix)&&(name=name.slice(0,+(name.length-suffix.length-1)+1||9e9));return name},exports.Importer=function(){function Importer(path1,options,extraLayerProperties){var ref;this.path=path1,this.options=null!=options?options:{},this.extraLayerProperties=null!=extraLayerProperties?extraLayerProperties:{},this.paths={layerInfo:Utils.pathJoin(this.path,"layers.json"),images:Utils.pathJoin(this.path,"images"),documentName:decodeURIComponent(this.path.split("/").pop())},this._createdLayers=[],this._createdLayersByName={},this.scale=null!=(ref=this.options.scale)?ref:1}return Importer.prototype.load=function(){var i,j,layer,layerInfo,layersByName,len,len1,ref,ref1;if(layersByName={},layerInfo=this._loadlayerInfo(),0===layerInfo.length)throw new Error("Importer: no layers. Do you have at least one layer group?");for(layerInfo.map(function(_this){return function(layerItemInfo){return _this._createLayer(layerItemInfo)}}(this)),ref=this._createdLayers,i=0,len=ref.length;i<len;i++)layer=ref[i],this._correctLayer(layer);for(this._correctArtboards(this._createdLayers),ref1=this._createdLayers,j=0,len1=ref1.length;j<len1;j++)layer=ref1[j],layer.parent||(layer.parent=null);return this._createdLayersByName},Importer.prototype._loadlayerInfo=function(){var importedKey,ref;return importedKey=this.paths.documentName+"/layers.json.js",(null!=(ref=window.__imported__)?ref.hasOwnProperty(importedKey):void 0)?_.cloneDeep(window.__imported__[importedKey]):Framer.Utils.domLoadJSONSync(this.paths.layerInfo)},Importer.prototype._createLayer=function(info,parent){var LayerClass,layer,layerInfo,ref,ref1;if(info.layerFrame&&(info.layerFrame=resizeFrame(this.scale,info.layerFrame)),info.maskFrame&&(info.maskFrame=resizeFrame(this.scale,info.maskFrame)),null!=(null!=(ref=info.image)?ref.frame:void 0)&&(info.image.frame=resizeFrame(this.scale,info.image.frame)),info.children||(info.children=[]),LayerClass=Layer,layerInfo={shadow:!0,name:sanitizeLayerName(info.name),frame:info.layerFrame,clip:!1,backgroundColor:null,visible:null==(ref1=info.visible)||ref1},_.extend(layerInfo,this.extraLayerProperties),info.image&&(layerInfo.frame=info.image.frame,layerInfo.image=Utils.pathJoin(this.path,info.image.path)),info.maskFrame&&(layerInfo.clip=!0),"artboard"===info.kind&&(layerInfo.backgroundColor=info.backgroundColor),(null!=parent?parent.contentLayer:void 0)?layerInfo.parent=parent.contentLayer:parent&&(layerInfo.parent=parent),startsWithNumber(layerInfo.name))throw new Error("Layer or Artboard names can not start with a number: '"+layerInfo.name+"'");return layer=new LayerClass(layerInfo),layer.name=layerInfo.name,layer.__framerImportedFromPath=this.path,layerInfo.name.toLowerCase().indexOf("scroll")!==-1&&(layer.scroll=!0),layerInfo.name.toLowerCase().indexOf("draggable")!==-1&&(layer.draggable.enabled=!0),layer.image||info.children.length||info.maskFrame||(layer.frame=Utils.frameZero()),_.clone(info.children).reverse().map(function(_this){return function(info){return _this._createLayer(info,layer)}}(this)),"artboard"===info.kind?layer.point={x:0,y:0}:layer.image||info.maskFrame||(layer.frame=layer.contentFrame()),layer._info=info,this._createdLayers.push(layer),this._createdLayersByName[layer.name]=layer},Importer.prototype._correctArtboards=function(layers){var i,j,layer,leftMostLayer,len,len1,pointOffset,results;for(leftMostLayer=null,i=0,len=layers.length;i<len;i++)layer=layers[i],"artboard"===layer._info.kind&&(layer.point=layer._info.layerFrame,layer.visible=!0,(null===leftMostLayer||layer.x<leftMostLayer.x)&&(leftMostLayer=layer));if(leftMostLayer){for(pointOffset=leftMostLayer.point,results=[],j=0,len1=layers.length;j<len1;j++)layer=layers[j],"artboard"===layer._info.kind?(layer.x-=pointOffset.x,results.push(layer.y-=pointOffset.y)):results.push(void 0);return results}},Importer.prototype._correctLayer=function(layer){var traverse;if(traverse=function(layer){var child,i,len,ref,results;for(layer.parent&&(layer.frame=Utils.convertPoint(layer.frame,null,layer.parent)),ref=layer.children,results=[],i=0,len=ref.length;i<len;i++)child=ref[i],results.push(traverse(child));return results},!layer.parent)return traverse(layer)},Importer}(),exports.Importer.load=function(path,scale){var importer;return null==scale&&(scale=1),importer=new exports.Importer(path,scale),importer.load()}},function(module,exports,__webpack_require__){exports.TouchEmulator=__webpack_require__(69),exports.MobileScrollFix=__webpack_require__(70),exports.ErrorDisplay=__webpack_require__(71),exports.OmitNew=__webpack_require__(72),exports.Hints=__webpack_require__(73),exports.Preloader=__webpack_require__(74)},function(module,exports,__webpack_require__){var BaseClass,TouchEmulator,Utils,cancelEvent,createTouch,dispatchTouchEvent,touchEmulator,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Utils=__webpack_require__(4),BaseClass=__webpack_require__(6).BaseClass,createTouch=function(event,identifier,offset){var touch;return null==offset&&(offset={x:0,y:0}),touch={identifier:identifier,target:event.target,pageX:event.pageX-offset.x,pageY:event.pageY-offset.y,clientX:event.clientX-offset.x,clientY:event.clientY-offset.y,screenX:event.screenX-offset.x,screenY:event.screenY-offset.y},touch.point={x:touch.pageX,y:touch.pageY},touch},dispatchTouchEvent=function(type,target,event,offset){var touchEvent,touches;return null==target&&(target=event.target),touchEvent=document.createEvent("MouseEvent"),touchEvent.initMouseEvent(type,!0,!0,window,event.detail,event.screenX,event.screenY,event.clientX,event.clientY,event.ctrlKey,event.shiftKey,event.altKey,event.metaKey,event.button,event.relatedTarget),touches=[],touches.push(createTouch(event,1)),offset&&touches.push(createTouch(event,2,offset)),touchEvent.touches=touchEvent.changedTouches=touchEvent.targetTouches=touches,target.dispatchEvent(touchEvent)},cancelEvent=function(event){return event.preventDefault(),event.stopPropagation()},TouchEmulator=function(superClass){function TouchEmulator(){this.mousemovePosition=bind(this.mousemovePosition,this),this.mouseout=bind(this.mouseout,this),this.mouseup=bind(this.mouseup,this),this.mousemove=bind(this.mousemove,this),this.mousedown=bind(this.mousedown,this),this.keyup=bind(this.keyup,this),this.keydown=bind(this.keydown,this);var touchPointerInitialOffset;this.touchPointerImage="url('framer/images/cursor@2x.png')",this.touchPointerImageActive="url('framer/images/cursor-active@2x.png')",this.touchPointerImageSize=64,this.touchPointerInitialOffset={x:0,y:0},this.keyPinchCode=18,this.keyPanCode=91,this.context=new Framer.Context({name:"TouchEmulator"}),this.context._element.style.zIndex=1e4,this.wrap=this.context.domEventManager.wrap,this.wrap(document).addEventListener("mousedown",this.mousedown,!0),this.wrap(document).addEventListener("mousemove",this.mousemove,!0),this.wrap(document).addEventListener("mouseup",this.mouseup,!0),this.wrap(document).addEventListener("keydown",this.keydown,!0),this.wrap(document).addEventListener("keyup",this.keyup,!0),this.wrap(document).addEventListener("mouseout",this.mouseout,!0),this.isMouseDown=!1,this.isPinchKeyDown=!1,this.isPanKeyDown=!1,touchPointerInitialOffset=this.touchPointerInitialOffset,this.context.run(function(_this){return function(){return _this.touchPointLayer=new Layer({width:_this.touchPointerImageSize,height:_this.touchPointerImageSize,backgroundColor:null,opacity:0}),_this.touchPointLayer.style.backgroundImage=_this.touchPointerImage}}(this))}return extend(TouchEmulator,superClass),TouchEmulator.prototype.destroy=function(){return this.context.reset(),this.context=null},TouchEmulator.prototype.keydown=function(event){if(event.keyCode===this.keyPinchCode&&(this.isPinchKeyDown=!0,this.startPoint=this.centerPoint=null,this.showTouchCursor(),this.touchPointLayer.midX=this.point.x,this.touchPointLayer.midY=this.point.y),event.keyCode===this.keyPanCode)return this.isPanKeyDown=!0,cancelEvent(event)},TouchEmulator.prototype.keyup=function(event){if(event.keyCode===this.keyPinchCode&&(cancelEvent(event),this.isPinchKeyDown=!1,this.hideTouchCursor()),event.keyCode===this.keyPanCode&&(cancelEvent(event),this.touchPoint&&this.point))return this.centerPoint=Utils.pointCenter(this.touchPoint,this.point),this.isPanKeyDown=!1},TouchEmulator.prototype.mousedown=function(event){return this.isMouseDown=!0,this.target=event.target,this.isPinchKeyDown?dispatchTouchEvent("touchstart",this.target,event,this.touchPointDelta):dispatchTouchEvent("touchstart",this.target,event),this.touchPointLayer.style.backgroundImage=this.touchPointerImageActive},TouchEmulator.prototype.mousemove=function(event){if(this.point={x:event.pageX,y:event.pageY},null==this.startPoint&&(this.startPoint=this.point),null==this.centerPoint&&(this.centerPoint=this.point),this.isPinchKeyDown&&!this.isPanKeyDown&&this.touchPointerInitialOffset&&this.centerPoint&&(this.touchPoint=Utils.pointAdd(this.touchPointerInitialOffset,this.pinchPoint(this.point,this.centerPoint)),this.touchPointDelta=Utils.pointSubtract(this.point,this.touchPoint)),this.isPinchKeyDown&&this.isPanKeyDown&&this.touchPoint&&this.touchPointDelta&&(this.touchPoint=this.panPoint(this.point,this.touchPointDelta)),(this.isPinchKeyDown||this.isPanKeyDown)&&this.touchPoint&&(this.touchPointLayer.visible=!0,this.touchPointLayer.midX=this.touchPoint.x,this.touchPointLayer.midY=this.touchPoint.y),this.isMouseDown)return(this.isPinchKeyDown||this.isPanKeyDown)&&this.touchPointDelta?dispatchTouchEvent("touchmove",this.target,event,this.touchPointDelta):dispatchTouchEvent("touchmove",this.target,event)},TouchEmulator.prototype.mouseup=function(event){return this.isPinchKeyDown||this.isPanKeyDown?dispatchTouchEvent("touchend",this.target,event,this.touchPointDelta):dispatchTouchEvent("touchend",this.target,event),this.endMultiTouch()},TouchEmulator.prototype.mouseout=function(event){var fromElement;if(!this.isMouseDown)return fromElement=event.relatedTarget||event.toElement,fromElement&&"HTML"!==fromElement.nodeName?void 0:this.endMultiTouch()},TouchEmulator.prototype.showTouchCursor=function(){return this.point||(this.point={x:event.pageX,y:event.pageY}),this.touchPointLayer.animateStop(),this.touchPointLayer.midX=this.point.x,this.touchPointLayer.midY=this.point.y,this.touchPointLayer.scale=1.8,this.touchPointLayer.animate({opacity:1,scale:1,options:{time:.1,curve:"ease-out"}})},TouchEmulator.prototype.hideTouchCursor=function(){if(this.touchPointLayer.opacity>0)return this.touchPointLayer.animateStop(),this.touchPointLayer.animate({opacity:0,scale:1.2,options:{time:.08}})},TouchEmulator.prototype.mousemovePosition=function(event){return this.point={x:event.pageX,y:event.pageY}},TouchEmulator.prototype.endMultiTouch=function(){return this.isMouseDown=!1,this.touchPointLayer.style.backgroundImage=this.touchPointerImage,this.hideTouchCursor()},TouchEmulator.prototype.pinchPoint=function(point,centerPoint){return Utils.pointSubtract(centerPoint,Utils.pointSubtract(point,centerPoint))},TouchEmulator.prototype.panPoint=function(point,offsetPoint){return Utils.pointSubtract(point,offsetPoint)},TouchEmulator}(BaseClass),touchEmulator=null,exports.enable=function(){if(!Utils.isTouch())return null==touchEmulator&&(touchEmulator=new TouchEmulator),Events.enableEmulatedTouchEvents(!0)},exports.disable=function(){if(touchEmulator)return touchEmulator.destroy(),touchEmulator=null,Events.enableEmulatedTouchEvents(!1)},exports.reset=function(){if(touchEmulator)return touchEmulator.endMultiTouch()}},function(module,exports,__webpack_require__){var Utils,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Utils=__webpack_require__(4),exports.enable=function(){var MobileScrollFixLayer,handleScrollingLayerTouchMove,handleScrollingLayerTouchStart;return document.ontouchmove=function(event){if(event.target===document.body)return event.preventDefault()},handleScrollingLayerTouchMove=function(event){return event.stopPropagation()},handleScrollingLayerTouchStart=function(event){var element,startTopScroll;if(element=this._element,startTopScroll=element.scrollTop,startTopScroll<=0&&(element.scrollTop=1),startTopScroll+element.offsetHeight>=element.scrollHeight)return element.scrollTop=element.scrollHeight-element.offsetHeight-1},MobileScrollFixLayer=function(superClass){function MobileScrollFixLayer(options){this._updateScrollListeners=bind(this._updateScrollListeners,this),MobileScrollFixLayer.__super__.constructor.call(this,options),"Layer"===this.constructor.name&&(this.on("change:scrollVertical",this._updateScrollListeners),this._updateScrollListeners())}return extend(MobileScrollFixLayer,superClass),MobileScrollFixLayer.prototype._updateScrollListeners=function(){return this.scrollVertical===!0?(this.on("touchmove",handleScrollingLayerTouchMove),this.on("touchstart",handleScrollingLayerTouchStart)):(this.off("touchmove",handleScrollingLayerTouchMove),this.off("touchstart",handleScrollingLayerTouchStart))},MobileScrollFixLayer.prototype.toInspect=function(){return"MobileScrollFixLayer"===this.constructor.name?MobileScrollFixLayer.__super__.toInspect.call(this,"Layer"):MobileScrollFixLayer.__super__.toInspect.apply(this,arguments)},MobileScrollFixLayer}(Framer.Layer),window.Layer=window.Framer.Layer=MobileScrollFixLayer}},function(module,exports,__webpack_require__){var BaseClass,Config,Context,ErrorDisplay,Layer,Utils,_context,_error,_errorDisplay,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;Utils=__webpack_require__(4),BaseClass=__webpack_require__(6).BaseClass,Context=__webpack_require__(53).Context,Layer=__webpack_require__(15).Layer,_error=null,_context=null,Config={},Utils.isMobile()?(Config.height=100,Config.textInset=20,Config.fontSize=32):(Config.height=40,Config.textInset=12,Config.fontSize=14),ErrorDisplay=function(superClass){function ErrorDisplay(){this.resize=bind(this.resize,this),null==this._context&&(this._context=new Context({name:"ErrorDisplay"})),this._context.index=1e3,this._context.run(function(_this){return function(){return Events.wrap(window).addEventListener("error",function(e){return _this.showError(e.message)}),Events.wrap(window).addEventListener("resize",function(e){return _this.resize()})}}(this))}return extend(ErrorDisplay,superClass),ErrorDisplay.prototype.createLayer=function(){return this._errorLayer?this._errorLayer:(this._context.run(function(_this){return function(){var error;return error=new Layer({name:"error",y:Align.bottom,width:Canvas.width,height:Config.height,backgroundColor:"rgba(255, 0, 0, 1)"}),error.text=new Layer({name:"text",parent:error,size:Utils.frameInset(error,Config.textInset),point:Align.center,backgroundColor:null,clip:!0}),error.text.style={font:Config.fontSize+"px/1em "+Utils.deviceFont(), lineHeight:parseInt(error.text.height-2)+"px",textAlign:"center",wordWrap:"break-word",textOverflow:"ellipsis"},error.onTap(function(){var ref;return null!=(ref=_this._errorLayer)&&ref.destroy(),_this._errorLayer=null}),_this._errorLayer=error,_this.resize()}}(this)),this._errorLayer)},ErrorDisplay.prototype.resize=function(){if(this._errorLayer)return this._errorLayer.width=Canvas.width,this._errorLayer.y=Canvas.height-this._errorLayer.height,this._errorLayer.text.size=Utils.frameInset(this._errorLayer,Config.textInset),this._errorLayer.text.point=Align.center},ErrorDisplay.prototype.showError=function(message){var animation,error;return error=this.createLayer(),error.scale=1.1,error.text.html=message,animation=error.animate({scale:1,options:{curve:"spring(800, 55, 10)"}})},ErrorDisplay.prototype.destroy=function(){var ref;return null!=(ref=this._context)?ref.destroy():void 0},ErrorDisplay}(BaseClass),_errorDisplay=null,exports.enable=function(){if(!_errorDisplay)return _errorDisplay=new ErrorDisplay},exports.disable=function(){if(_errorDisplay)return _errorDisplay.destroy(),_errorDisplay=null}},function(module,exports){var slice=[].slice;exports.enable=function(module){var ClassWrapper;return null==module&&(module=window),ClassWrapper=function(Klass){return function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this.prototype=function(func,args,ctor){ctor.prototype=func.prototype;var child=new ctor,result=func.apply(child,args);return Object(result)===result?result:child}(Klass,args,function(){})}},module.Frame=ClassWrapper(Framer.Frame),module.Layer=ClassWrapper(Framer.Layer),module.BackgroundLayer=ClassWrapper(Framer.BackgroundLayer),module.VideoLayer=ClassWrapper(Framer.VideoLayer),module.Animation=ClassWrapper(Framer.Animation)}},function(module,exports,__webpack_require__){var Context,Hints,hints,bind=function(fn,me){return function(){return fn.apply(me,arguments)}};Context=__webpack_require__(53).Context,Hints=function(){function Hints(){this._handleUp=bind(this._handleUp,this),this._handleDown=bind(this._handleDown,this),this._context=new Framer.Context({name:"Hints"}),this._context.index=1e4,this._context.run(function(_this){return function(){var capture;return Events.wrap(document).addEventListener(Events.TouchStart,_this._handleDown,capture=!0),Events.wrap(document).addEventListener(Events.TouchEnd,_this._handleUp,capture=!0)}}(this))}return Hints.prototype._handleDown=function(event){if(!this._isPreloading())return this._target=event.target},Hints.prototype._handleUp=function(event){var context,i,layer,len,ref;if(!this._isPreloading()){if(layer=Framer.CurrentContext.layerForElement(this._target),!layer)for(ref=Context.all(),i=0,len=ref.length;i<len;i++)if(context=ref[i],context!==Framer.DefaultContext&&context!==Framer.CurrentContext&&context.layerForElement(this._target))return;if(!layer||!layer.willSeemToDoSomething())return this.showHints()}},Hints.prototype._isPreloading=function(){var ref;return(null!=(ref=Framer.Preloader)?ref.isLoading:void 0)===!0},Hints.prototype.showHints=function(){var context;return context=Framer.CurrentContext,this._context.run(function(){return _.invokeMap(context.rootLayers,"_showHint")})},Hints.prototype.destroy=function(){return this._context.destroy()},Hints}(),hints=null,exports.enable=function(){return null!=hints?hints:hints=new Hints(Framer.CurrentContext)},exports.disable=function(){if(hints)return hints.destroy(),hints=null},exports.showHints=function(){if(hints)return Utils.delay(.5,function(){return hints.showHints()})}},function(module,exports,__webpack_require__){var BaseClass,Context,Preloader,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};BaseClass=__webpack_require__(6).BaseClass,Context=__webpack_require__(53).Context,Preloader=function(superClass){function Preloader(options){null==options&&(options={}),this._setupContext=bind(this._setupContext,this),this._handleTimeout=bind(this._handleTimeout,this),this._handleProgress=bind(this._handleProgress,this),this._end=bind(this._end,this),this.end=bind(this.end,this),this._start=bind(this._start,this),this.start=bind(this.start,this),this.addPlayer=bind(this.addPlayer,this),this.addImage=bind(this.addImage,this),this.setLogo=bind(this.setLogo,this),this._media=[],this._mediaLoaded=[],this._isLoading=!1,this.timeout=30,this.start()}return extend(Preloader,superClass),Preloader.prototype.setupContext=function(){return this.context=new Context({name:"Preloader"}),this.context.run(this._setupContext)},Preloader.define("progress",{get:function(){return this._mediaLoaded.length/this._media.length||0}}),Preloader.define("time",{get:function(){return(Date.now()-this._startTime)/1e3}}),Preloader.define("isLoading",{get:function(){return this._isLoading}}),Preloader.define("isReady",{get:function(){return!!this.isLoading&&this._mediaLoaded.length===this._media.length}}),Preloader.prototype.setLogo=function(url){if(this._logo=url,this.brand)return this.brand.style["background-image"]="url('"+url+"')"},Preloader.prototype.addImagesFromContext=function(context){return _.map(context.layers,"image").map(this.addImage)},Preloader.prototype.addPlayersFromContext=function(context){return _.map(context.layers,"player").map(this.addPlayer)},Preloader.prototype.addImage=function(image){if(!(image instanceof Gradient))return image&&indexOf.call(this._media,image)<0?(this._media.push(image),Utils.loadImage(image,function(_this){return function(error){return _this._mediaLoaded.push(image),_this._handleProgress()}}(this))):void 0},Preloader.prototype.addPlayer=function(player){if(player&&indexOf.call(this._media,player)<0&&null!=player.src&&"undefined"!==player.getAttribute("src")&&null!=player.readyState&&player.readyState<3)return this._media.push(player),Events.wrap(player).addEventListener("canplaythrough",function(_this){return function(){return _this._mediaLoaded.push(player),_this._handleProgress()}}(this))},Preloader.prototype.start=function(){if(!this.isLoading)return this._isLoading=!0,this._startTime=Date.now(),this.emit("start"),this.setupContext(),Utils.delay(.2,this._start)},Preloader.prototype._start=function(){return Utils.delay(.2,function(_this){return function(){return _this.progressIndicator.visible=!0,_this.brand.visible=!0}}(this)),this.addImagesFromContext(Framer.DefaultContext),this.addImagesFromContext(Framer.CurrentContext),this.addPlayersFromContext(Framer.DefaultContext),this.addPlayersFromContext(Framer.CurrentContext),this._media.length?Utils.delay(this.timeout,this._handleTimeout):this.end()},Preloader.prototype.end=function(){if(this.isLoading)return this._end()},Preloader.prototype._end=function(animated){var finalize,ref,ref1;return null==animated&&(animated=!0),Framer.DefaultContext.visible=!0,finalize=function(_this){return function(){var ref;return _this.emit("end"),_this._isLoading=!1,null!=(ref=_this.context)?ref.destroy():void 0}}(this),(null!=(ref=this.progressIndicator)?ref.visible:void 0)&&animated?(null!=(ref1=this.cover)&&ref1.animate({properties:{opacity:0},time:.13}),this.cover.onAnimationDidEnd(finalize)):finalize()},Preloader.prototype._handleProgress=function(){var ref;if(this.emit("progress",this.progress),null!=(ref=this.progressIndicator)&&ref.setProgress(this.progress),this.isReady)return this._handleLoaded()},Preloader.prototype._handleLoaded=function(){return this.time>.5?Utils.delay(.2,this.end):this.end()},Preloader.prototype._handleTimeout=function(){if(this.isLoading)return console.warn("Preloader timeout, ending"),this.end()},Preloader.prototype._setupContext=function(){var layout,logoUrl;return this.cover=new Layer({frame:Canvas,backgroundColor:"white"}),this.progressIndicator=new CircularProgressComponent({size:160,point:Align.center,parent:this.cover,visible:!1}),this.progressIndicator.railsColor=Color.grey(0,.1),this.progressIndicator.progressColor="rgb(75, 169, 248)",this.progressIndicator.setProgress(this.progress),this.brand=new Layer({size:96,parent:this.cover,backgroundColor:null,visible:!1,style:{backgroundSize:"50%"}}),Utils.isMobile()&&(this.progressIndicator.scale=1.25,this.brand.scale=1.25),this._logo?this.setLogo(this._logo):(logoUrl="//resources.framerjs.com/static/images/preloader/framer-logo.png",_.startsWith(window.location.href,"file://")&&(logoUrl="http:"+logoUrl),this.setLogo(logoUrl)),(layout=function(_this){return function(){return _this.cover.frame=Canvas,_this.progressIndicator.point=Align.center,_this.brand.x=Align.center,_this.brand.y=Align.center(2)}}(this))(),Canvas.onResize(layout)},Preloader}(BaseClass),exports.enable=function(){return null!=Framer.Preloader?Framer.Preloader:Framer.Preloader=new Preloader},exports.disable=function(){if(Framer.Preloader)return Framer.Preloader._end(!1),Framer.Preloader=null},exports.addImage=function(url){var ref;return null!=(ref=Framer.Preloader)?ref.addImage(url):void 0},exports.setLogo=function(url){var ref;return null!=(ref=Framer.Preloader)?ref.setLogo(url):void 0}},function(module,exports,__webpack_require__){var DOMEventManager,GestureInputDoubleTapTime,GestureInputEdgeSwipeDistance,GestureInputForceTapDesktop,GestureInputForceTapMobile,GestureInputForceTapMobilePollTime,GestureInputLongPressTime,GestureInputMinimumFingerDistance,GestureInputSwipeThreshold,GestureInputVelocityTime,Utils,bind=function(fn,me){return function(){return fn.apply(me,arguments)}};Utils=__webpack_require__(4),GestureInputLongPressTime=.5,GestureInputDoubleTapTime=.25,GestureInputSwipeThreshold=30,GestureInputEdgeSwipeDistance=30,GestureInputVelocityTime=.1,GestureInputForceTapDesktop=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN,GestureInputForceTapMobile=.7,GestureInputForceTapMobilePollTime=1/30,GestureInputMinimumFingerDistance=30,DOMEventManager=__webpack_require__(54).DOMEventManager,exports.GestureInputRecognizer=function(){function GestureInputRecognizer(){this._process=bind(this._process,this),this.edgeswipedirectionend=bind(this.edgeswipedirectionend,this),this.edgeswipedirectionstart=bind(this.edgeswipedirectionstart,this),this.edgeswipedirection=bind(this.edgeswipedirection,this),this.swipedirectionend=bind(this.swipedirectionend,this),this.swipedirection=bind(this.swipedirection,this),this.swipedirectionstart=bind(this.swipedirectionstart,this),this.swipeend=bind(this.swipeend,this),this.swipe=bind(this.swipe,this),this.swipestart=bind(this.swipestart,this),this.rotateend=bind(this.rotateend,this),this.rotate=bind(this.rotate,this),this.rotatestart=bind(this.rotatestart,this),this.scaleend=bind(this.scaleend,this),this.scale=bind(this.scale,this),this.scalestart=bind(this.scalestart,this),this.pinchend=bind(this.pinchend,this),this.pinch=bind(this.pinch,this),this.pinchstart=bind(this.pinchstart,this),this.panright=bind(this.panright,this),this.panleft=bind(this.panleft,this),this.pandown=bind(this.pandown,this),this.panup=bind(this.panup,this),this.panend=bind(this.panend,this),this.pan=bind(this.pan,this),this.panstart=bind(this.panstart,this),this.forcetapend=bind(this.forcetapend,this),this.forcetapstart=bind(this.forcetapstart,this),this.forcetapchange=bind(this.forcetapchange,this),this._updateMacForce=bind(this._updateMacForce,this),this._updateTouchForce=bind(this._updateTouchForce,this),this.longpressend=bind(this.longpressend,this),this.longpressstart=bind(this.longpressstart,this),this.doubletap=bind(this.doubletap,this),this.tapend=bind(this.tapend,this),this.tapstart=bind(this.tapstart,this),this.tap=bind(this.tap,this),this.reset=bind(this.reset,this),this.touchend=bind(this.touchend,this),this.touchmove=bind(this.touchmove,this),this.touchstart=bind(this.touchstart,this),this.startTouch=bind(this.startTouch,this),this.startMouse=bind(this.startMouse,this),this.em=new DOMEventManager,this.em.wrap(window).addEventListener("mousedown",this.startMouse),this.em.wrap(window).addEventListener("touchstart",this.startTouch),this.session=null}return GestureInputRecognizer.prototype.destroy=function(){return this.em.removeAllListeners()},GestureInputRecognizer.prototype.cancel=function(){return window.clearTimeout(this.session.pressTimer),this.session=null},GestureInputRecognizer.prototype.startMouse=function(event){if(!this.session)return this.em.wrap(window).addEventListener("mousemove",this.touchmove),this.em.wrap(window).addEventListener("mouseup",this.touchend),this.touchstart(event)},GestureInputRecognizer.prototype.startTouch=function(event){if(!this.session)return this.em.wrap(window).addEventListener("touchmove",this.touchmove),this.em.wrap(window).addEventListener("touchend",this.touchend),this.touchstart(event)},GestureInputRecognizer.prototype.touchstart=function(event){if(!this.session)return this.em.wrap(window).addEventListener("webkitmouseforcechanged",this._updateMacForce),this.session={startEvent:this._getGestureEvent(event),lastEvent:null,startMultiEvent:null,startTime:Date.now(),pressTimer:window.setTimeout(this.longpressstart,1e3*GestureInputLongPressTime),started:{},events:[],eventCount:0,cancelTap:!1},event=this._getGestureEvent(event),this.tapstart(event),Date.now()-this.doubleTapTime<1e3*GestureInputDoubleTapTime?this.doubletap(event):this.doubleTapTime=Date.now(),this._process(event),Utils.isTouch()?this._updateTouchForce():void 0},GestureInputRecognizer.prototype.touchmove=function(event){return this._process(this._getGestureEvent(event))},GestureInputRecognizer.prototype.touchend=function(event){var eventName,ref,value;if(null!=event.touches)if(Utils.isTouch()){if(0!==event.touches.length)return}else if(event.touches.length!==event.changedTouches.length)return;this.em.wrap(window).removeEventListener("mousemove",this.touchmove),this.em.wrap(window).removeEventListener("mouseup",this.touchend),this.em.wrap(window).removeEventListener("touchmove",this.touchmove),this.em.wrap(window).removeEventListener("touchend",this.touchend),this.em.wrap(window).removeEventListener("webkitmouseforcechanged",this._updateMacForce),event=this._getGestureEvent(event),ref=this.session.started;for(eventName in ref)value=ref[eventName],value&&this[eventName+"end"](event);return this.shouldFireTapEvent(event)&&this.tap(event),this.tapend(event),this.cancel()},GestureInputRecognizer.prototype.reset=function(){if(this.session)return this.touchend(this.session.lastEvent)},GestureInputRecognizer.prototype.shouldFireTapEvent=function(event){var isSameTarget,isShortDistance,isShortSession,ref,startEvent;return startEvent=null!=(ref=this.session)?ref.startEvent:void 0,null==startEvent||(isSameTarget=startEvent.target===event.target,isShortSession=event.time-this.session.startTime<750,isShortDistance=Utils.pointDistance(startEvent.touchCenter,event.touchCenter)<45,isSameTarget&&isShortSession&&isShortDistance&&!this.session.cancelTap)},GestureInputRecognizer.prototype.tap=function(event){return this._dispatchEvent("tap",event)},GestureInputRecognizer.prototype.tapstart=function(event){return this._dispatchEvent("tapstart",event)},GestureInputRecognizer.prototype.tapend=function(event){return this._dispatchEvent("tapend",event)},GestureInputRecognizer.prototype.doubletap=function(event){return this._dispatchEvent("doubletap",event)},GestureInputRecognizer.prototype.longpressstart=function(){var event;if(this.session&&!this.session.started.longpress)return event=this._getGestureEvent(this.session.startEvent),this.session.started.longpress=event,this._dispatchEvent("longpressstart",event),this._dispatchEvent("longpress",event)},GestureInputRecognizer.prototype.longpressend=function(event){return this._dispatchEvent("longpressend",event)},GestureInputRecognizer.prototype._updateTouchForce=function(){var event,ref,ref1,ref2;if(null!=(ref=this.session)&&null!=(ref1=ref.lastEvent)&&null!=(ref2=ref1.touches)?ref2.length:void 0)return this.session.force=this.session.lastEvent.touches[0].force||0,event=this._getGestureEvent(this.session.lastEvent),this.forcetapchange(event),this.session.force>=GestureInputForceTapMobile?this.forcetapstart(event):this.forcetapend(event),setTimeout(this._updateTouchForce,GestureInputForceTapMobilePollTime)},GestureInputRecognizer.prototype._updateMacForce=function(event){if(this.session)return this.session.force=Utils.modulate(event.webkitForce,[0,3],[0,1]),this.forcetapchange(this._getGestureEvent(event)),event.webkitForce>=GestureInputForceTapDesktop?this.forcetapstart(event):this.forcetapend(event)},GestureInputRecognizer.prototype.forcetapchange=function(event){return this._dispatchEvent("forcetapchange",event)},GestureInputRecognizer.prototype.forcetapstart=function(event){if(this.session&&!this.session.started.forcetap)return this.session.started.forcetap=event,this._dispatchEvent("forcetapstart",event),this._dispatchEvent("forcetap",event)},GestureInputRecognizer.prototype.forcetapend=function(event){if(this.session&&this.session.started.forcetap)return this.session.started.forcetap=null,this._dispatchEvent("forcetapend",event)},GestureInputRecognizer.prototype.panstart=function(event){return this.session.started.pan=event,this._dispatchEvent("panstart",event,this.session.started.pan.target)},GestureInputRecognizer.prototype.pan=function(event){var direction;if(this._dispatchEvent("pan",event,this.session.started.pan.target),direction=this._getDirection(event.delta))return this["pan"+direction](event)},GestureInputRecognizer.prototype.panend=function(event){return this._dispatchEvent("panend",event,this.session.started.pan.target),this.session.started.pan=null},GestureInputRecognizer.prototype.panup=function(event){return this._dispatchEvent("panup",event,this.session.started.pan.target)},GestureInputRecognizer.prototype.pandown=function(event){return this._dispatchEvent("pandown",event,this.session.started.pan.target)},GestureInputRecognizer.prototype.panleft=function(event){return this._dispatchEvent("panleft",event,this.session.started.pan.target)},GestureInputRecognizer.prototype.panright=function(event){return this._dispatchEvent("panright",event,this.session.started.pan.target)},GestureInputRecognizer.prototype.pinchstart=function(event){return this.session.started.pinch=event,this.scalestart(event,this.session.started.pinch.target),this.rotatestart(event,this.session.started.pinch.target),this._dispatchEvent("pinchstart",event)},GestureInputRecognizer.prototype.pinch=function(event){return this._dispatchEvent("pinch",event),this.scale(event,this.session.started.pinch.target),this.rotate(event,this.session.started.pinch.target)},GestureInputRecognizer.prototype.pinchend=function(event){return this._dispatchEvent("pinchend",event),this.scaleend(event,this.session.started.pinch.target),this.rotateend(event,this.session.started.pinch.target),this.session.started.pinch=null},GestureInputRecognizer.prototype.scalestart=function(event){return this._dispatchEvent("scalestart",event)},GestureInputRecognizer.prototype.scale=function(event){return this._dispatchEvent("scale",event)},GestureInputRecognizer.prototype.scaleend=function(event){return this._dispatchEvent("scaleend",event)},GestureInputRecognizer.prototype.rotatestart=function(event){return this._dispatchEvent("rotatestart",event)},GestureInputRecognizer.prototype.rotate=function(event){return this._dispatchEvent("rotate",event)},GestureInputRecognizer.prototype.rotateend=function(event){return this._dispatchEvent("rotateend",event)},GestureInputRecognizer.prototype.swipestart=function(event){return this._dispatchEvent("swipestart",event),this.session.started.swipe=event,this.swipedirectionstart(event)},GestureInputRecognizer.prototype.swipe=function(event){return this._dispatchEvent("swipe",event),this.swipedirection(event)},GestureInputRecognizer.prototype.swipeend=function(event){return this._dispatchEvent("swipeend",event)},GestureInputRecognizer.prototype.swipedirectionstart=function(event){var direction,ref,ref1,ref2,ref3,swipeEdge;if(event.offsetDirection&&!this.session.started.swipedirection)return this.session.started.swipedirection=event,direction=this.session.started.swipedirection.offsetDirection,this._dispatchEvent("swipe"+direction+"start",event),swipeEdge=this._edgeForSwipeDirection(direction),"top"===swipeEdge&&0<(ref=event.start.y)&&ref<GestureInputEdgeSwipeDistance&&this.edgeswipedirectionstart(event),"right"===swipeEdge&&Screen.width-GestureInputEdgeSwipeDistance<(ref1=event.start.x)&&ref1<Screen.width&&this.edgeswipedirectionstart(event),"bottom"===swipeEdge&&Screen.height-GestureInputEdgeSwipeDistance<(ref2=event.start.y)&&ref2<Screen.height&&this.edgeswipedirectionstart(event),"left"===swipeEdge&&0<(ref3=event.start.x)&&ref3<GestureInputEdgeSwipeDistance?this.edgeswipedirectionstart(event):void 0},GestureInputRecognizer.prototype.swipedirection=function(event){var direction;if(this.session.started.swipedirection)return direction=this.session.started.swipedirection.offsetDirection,this._dispatchEvent("swipe"+direction,event),this.session.started.edgeswipedirection?this.edgeswipedirection(event):void 0},GestureInputRecognizer.prototype.swipedirectionend=function(event){var direction;if(this.session.started.swipedirection)return direction=this.session.started.swipedirection.offsetDirection,this._dispatchEvent("swipe"+direction+"end",event)},GestureInputRecognizer.prototype.edgeswipedirection=function(event){var swipeEdge;return swipeEdge=this._edgeForSwipeDirection(this.session.started.edgeswipedirection.offsetDirection),Screen.emit("edgeswipe",this._createEvent("edgeswipe",event)),Screen.emit("edgeswipe"+swipeEdge,this._createEvent("edgeswipe"+swipeEdge,event))},GestureInputRecognizer.prototype.edgeswipedirectionstart=function(event){var swipeEdge;if(!this.session.started.edgeswipedirection)return this.session.started.edgeswipedirection=event,swipeEdge=this._edgeForSwipeDirection(this.session.started.edgeswipedirection.offsetDirection),Screen.emit("edgeswipestart",this._createEvent("edgeswipestart",event)),Screen.emit("edgeswipe"+swipeEdge+"start",this._createEvent("edgeswipe"+swipeEdge+"start",event))},GestureInputRecognizer.prototype.edgeswipedirectionend=function(event){var swipeEdge;return swipeEdge=this._edgeForSwipeDirection(this.session.started.edgeswipedirection.offsetDirection),Screen.emit("edgeswipeend",this._createEvent("edgeswipeend",event)),Screen.emit("edgeswipe"+swipeEdge+"end",this._createEvent("edgeswipe"+swipeEdge+"end",event))},GestureInputRecognizer.prototype._process=function(event){if(this.session)return this.session.events.push(event),event.eventCount=this.session.eventCount++,(Math.abs(event.delta.x)>0||Math.abs(event.delta.y)>0)&&(this.session.started.pan?this.pan(event):this.panstart(event)),this.session.started.pinch&&1===event.fingers?this.pinchend(event):this.session.started.pinch||2!==event.fingers?this.session.started.pinch&&this.pinch(event):this.pinchstart(event),!this.session.started.swipe&&(Math.abs(event.offset.x)>GestureInputSwipeThreshold||Math.abs(event.offset.y)>GestureInputSwipeThreshold)?this.swipestart(event):this.session.started.swipe&&this.swipe(event),this.session.lastEvent=event},GestureInputRecognizer.prototype._getEventPoint=function(event){var ref;return(null!=(ref=event.touches)?ref.length:void 0)?this._getTouchPoint(event,0):{x:event.pageX,y:event.pageY}},GestureInputRecognizer.prototype._getGestureEvent=function(event){var eventPoint,events,i,len,pointKey,ref,ref1,ref2,ref3,ref4,ref5,ref6,ref7,ref8,ref9,touchPointA,touchPointB;for(eventPoint=Utils.convertPointFromContext(this._getEventPoint(event),Framer.CurrentContext,!0,!0),_.extend(event,{time:Date.now(),point:eventPoint,start:eventPoint,previous:eventPoint,offset:{x:0,y:0},offsetTime:0,offsetAngle:0,offsetDirection:null,delta:{x:0,y:0},deltaTime:0,deltaAngle:0,deltaDirection:null,force:0,velocity:{x:0,y:0},fingers:(null!=(ref=event.touches)?ref.length:void 0)||0,touchCenter:eventPoint,touchOffset:{x:0,y:0},touchDistance:0,scale:1,scaleDirection:null,rotation:0}),(null!=(ref1=this.session)?ref1.startEvent:void 0)&&(event.start=this.session.startEvent.point,event.offset=Utils.pointSubtract(event.point,event.start),event.offsetTime=event.time-this.session.startEvent.time,event.offsetAngle=Utils.pointAngle(this.session.startEvent.point,event.point),event.offsetDirection=this._getDirection(event.offset),event.touchCenterStart=this.session.startEvent.touchCenter),(null!=(ref2=this.session)?ref2.lastEvent:void 0)&&(event.previous=this.session.lastEvent.point,event.deltaTime=event.time-this.session.lastEvent.time,event.delta=Utils.pointSubtract(event.point,this.session.lastEvent.point),event.deltaAngle=Utils.pointAngle(event.point,this.session.lastEvent.point),event.deltaDirection=this._getDirection(event.delta)),event.fingers>1&&(touchPointA=this._getTouchPoint(event,0),touchPointB=this._getTouchPoint(event,1),event.touchCenter=Utils.pointCenter(touchPointB,touchPointA),event.touchOffset=Utils.pointSubtract(touchPointB,touchPointA),event.touchDistance=_.max([GestureInputMinimumFingerDistance,Utils.pointDistance(touchPointA,touchPointB)]),event.rotation=Utils.pointAngle(touchPointA,touchPointB)),(null!=(ref3=this.session)?ref3.events:void 0)&&(events=_.filter(this.session.events,function(e){return 0!==e.eventCount&&e.time>event.time-1e3*GestureInputVelocityTime}),event.velocity=this._getVelocity(events)),(null!=(ref4=this.session)?ref4.started.pinch:void 0)&&(event.scale=event.touchDistance/this.session.started.pinch.touchDistance,event.scaleDirection=this._getScaleDirection(event.scale-this.session.lastEvent.scale),!event.scaleDirection&&(null!=(ref5=this.session)?ref5.lastEvent:void 0)&&(event.scaleDirection=this.session.lastEvent.scaleDirection)),(null!=(ref6=this.session)?ref6.lastEvent:void 0)&&(event.fingers!==(ref7=this.session.lastEvent.fingers)&&2===ref7&&(event.delta={x:0,y:0}),2===event.fingers&&2===this.session.lastEvent.fingers&&(event.delta=Utils.pointSubtract(event.touchCenter,this.session.lastEvent.touchCenter))),(null!=(ref8=this.session)?ref8.lastEvent:void 0)&&this.session.force&&(event.force=this.session.force),ref9=["point","start","previous","offset","delta","velocity","touchCenter","touchOffset"],i=0,len=ref9.length;i<len;i++)pointKey=ref9[i],event[pointKey+"X"]=event[pointKey].x,event[pointKey+"Y"]=event[pointKey].y;return event},GestureInputRecognizer.prototype._getTouchPoint=function(event,index){var point;return point={x:event.touches[index].pageX,y:event.touches[index].pageY}},GestureInputRecognizer.prototype._getDirection=function(offset){if(Math.abs(offset.x)>Math.abs(offset.y)){if(offset.x>0)return"right";if(offset.x<0)return"left"}if(Math.abs(offset.x)<Math.abs(offset.y)){if(offset.y<0)return"up";if(offset.y>0)return"down"}return null},GestureInputRecognizer.prototype._edgeForSwipeDirection=function(direction){return"down"===direction?"top":"left"===direction?"right":"up"===direction?"bottom":"right"===direction?"left":null},GestureInputRecognizer.prototype._getScaleDirection=function(offset){return offset>0?"up":offset<0?"down":null},GestureInputRecognizer.prototype._createEvent=function(type,event){var k,touchEvent,v;touchEvent=document.createEvent("MouseEvent"),touchEvent.initMouseEvent(type,!0,!0,window,event.detail,event.screenX,event.screenY,event.clientX,event.clientY,event.ctrlKey,event.shiftKey,event.altKey,event.metaKey,event.button,event.relatedTarget),touchEvent.touches=event.touches,touchEvent.changedTouches=event.touches,touchEvent.targetTouches=event.touches;for(k in event)v=event[k],touchEvent[k]=v;return touchEvent},GestureInputRecognizer.prototype._dispatchEvent=function(type,event,target){var ref,ref1,touchEvent;return touchEvent=this._createEvent(type,event),null==target&&(target=null!=(ref=this.session)&&null!=(ref1=ref.startEvent)?ref1.target:void 0),null==target&&(target=event.target),target.dispatchEvent(touchEvent)},GestureInputRecognizer.prototype._getVelocity=function(events){var current,first,time,velocity;return events.length<2?{x:0,y:0}:(current=events[events.length-1],first=events[0],time=current.time-first.time,velocity={x:(current.point.x-first.point.x)/time,y:(current.point.y-first.point.y)/time},Infinity===velocity.x&&(velocity.x=0),Infinity===velocity.y&&(velocity.y=0),velocity)},GestureInputRecognizer}()},function(module,exports){exports.date=1519128445,exports.branch="master",exports.hash="f32dd1f",exports.build=3269,exports.version=exports.branch+"/"+exports.hash},function(module,exports,__webpack_require__){var BaseClass,Canvas,Events,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;BaseClass=__webpack_require__(6).BaseClass,Events=__webpack_require__(17).Events,Canvas=function(superClass){function Canvas(options){null==options&&(options={}),this._handleResize=bind(this._handleResize,this),Canvas.__super__.constructor.call(this,options),Events.wrap(window).addEventListener("resize",this._handleResize)}return extend(Canvas,superClass),Canvas.define("width",{get:function(){return window.innerWidth}}),Canvas.define("height",{get:function(){return window.innerHeight}}),Canvas.define("size",{get:function(){return Utils.size(this)}}),Canvas.define("frame",{get:function(){return Utils.frame(this)}}),Canvas.define("backgroundColor",{importable:!1,exportable:!1,get:function(){return Framer.Device.background.backgroundColor},set:function(value){return Framer.Device.background.backgroundColor=value}}),Canvas.define("image",{importable:!1,exportable:!1,get:function(){return Framer.Device.background.image},set:function(value){return Framer.Device.background.image=value}}),Canvas.prototype.onResize=function(cb){return this.on("resize",cb)},Canvas.prototype._handleResize=function(event){return null==Screen.device&&Screen.emit("resize"),this.emit("resize"),this.emit("change:width"),this.emit("change:height"),this.emit("change:size"),this.emit("change:frame")},Canvas.prototype.toInspect=function(){return"<"+this.constructor.name+" "+this.width+"x"+this.height+">"},Canvas.prototype.convertPointToLayer=function(point,layer){return Utils.convertPointFromContext(point,layer,!0,!0)},Canvas.prototype.convertPointToScreen=function(point){var ctx;return ctx=Framer.Device.context,Utils.convertPointFromContext(point,ctx,!0,!0)},Canvas}(BaseClass),exports.Canvas=Canvas}]); //# sourceMappingURL=framer.js.map
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: It is a Syntax Error if IsLabelledFunction(Statement) is true. negative: phase: parse type: SyntaxError esid: sec-semantics-static-semantics-early-errors es6id: 13.7.1.1 info: | Although Annex B describes an extension which permits labelled function declarations outside of strict mode, this early error is applied regardless of the language mode. ---*/ $DONOTEVALUATE(); for (let x in {}) label1: label2: function f() {}
import curry from "./curry.js"; export default curry(function lte(a, b) { return a <= b; });
/////////////////////////////////////////////////////////////////////////// // Copyright © Esri. All Rights Reserved. // // Licensed under the Apache License Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /////////////////////////////////////////////////////////////////////////// define([ 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/_base/array', 'dojo/_base/html', 'dojo/aspect', 'dojo/query', 'dojo/on', 'dojo/keys', 'dojo/Deferred', 'dijit/Tooltip', 'dojo/mouse', 'dojo/topic', 'dojo/dom-construct', 'dojo/dom-geometry', 'jimu/BaseWidget', 'jimu/PoolControllerMixin', 'jimu/tokenUtils', 'jimu/portalUtils', 'jimu/portalUrlUtils', 'jimu/utils', 'jimu/dijit/Message', './PopupTileNodes', 'dijit/registry', 'dojo/NodeList-manipulate' ], function (declare, lang, array, html, aspect, query, on, keys, Deferred, Tooltip, mouse, topic, domConstruct, domGeometry, BaseWidget, PoolControllerMixin, tokenUtils, portalUtils, portalUrlUtils, utils, Message, PopupTileNodes, registry) { /* global jimuConfig */ /* jshint scripturl:true */ var clazz = declare([BaseWidget, PoolControllerMixin], { baseClass: 'jimu-widget-header-controller jimu-main-background', maxIconCount: -1, //whether need to create more icon createMoreIcon: false, //title, links are switchable depends the browser width switchableElements: {}, //the default height of the widget height: 40, //the opened group/widget's id openedId: '', moveTopOnActive: false, postMixInProperties: function () { this.inherited(arguments); }, postCreate: function () { this.inherited(arguments); html.setAttr(this.domNode, 'aria-label', this.nls._widgetLabel); this._processGroupSetting(); this.switchableElements.title = this.titleNode; if (this.position && this.position.height) { this.height = this.position.height; } html.setStyle(this.signInSectionNode, 'display', 'none'); if (this.appConfig && this.appConfig.logo) { this.logoNode.src = this.appConfig.logo; html.removeClass(this.logoNode, 'hide-logo'); } else { this.logoNode.src = ""; html.addClass(this.logoNode, 'hide-logo'); } // If app title is not null then sanitize the title text if (this.appConfig.title) { this.appConfig.title = utils.sanitizeHTML(this.appConfig.title); } // If app title is not null then sanitize the subtitle text if (this.appConfig.subtitle) { this.appConfig.subtitle = utils.sanitizeHTML(this.appConfig.subtitle); } this.switchableElements.title.innerHTML = this.appConfig.title ? this.appConfig .title : ''; this.switchableElements.title.title = this.appConfig.title ? this.appConfig .title : ''; //If subtitle is valid them only add it to switchable elements and set its innerHTML //else empty the subtitle and don't add it in switchable elements if (this.appConfig.subtitle && lang.trim(this.appConfig.subtitle) !== "") { this.switchableElements.subtitle = this.subtitleNode; this.switchableElements.subtitle.innerHTML = this.appConfig.subtitle; } else { this.subtitleNode.innerHTML = ''; html.setStyle(this.subtitleNode, 'display', 'none'); } //creates links according to configuration this._createDynamicLinks(this.appConfig.links); this._setElementsSize(); /* New Changes For showing panel below header in mobile devices */ this.own(on(this.domNode, mouse.enter, lang.hitch(this, function () { var title = ''; var portalUrl = this.appConfig && this.appConfig.portalUrl || ''; var server = portalUrlUtils.getServerByUrl(portalUrl); if (portalUrlUtils.isArcGIScom(server)) { server = 'ArcGIS.com'; } if (server) { title = this.nls.signInTo + ' ' + server; } this.signinLinkNode.title = title; }))); this._handleLogoLink(this.appConfig); }, startup: function () { this.inherited(arguments); this.resize(); }, onAction: function (action, data) { /*jshint unused: false*/ if (action === 'highLight' && data) { var node = query('div[settingid="' + data.widgetId + '"]', this.domNode)[0]; this._highLight(node); } if (action === 'removeHighLight') { this._removeHighLight(); } }, onSignIn: function (credential) { this.inherited(arguments); html.setStyle(this.signinLinkNode, 'display', 'none'); html.setStyle(this.userNameLinkNode, 'display', ''); html.setStyle(this.signoutLinkNode, 'display', ''); this.userNameLinkNode.innerHTML = credential.userId; html.setAttr(this.userNameLinkNode, 'href', this.appConfig.portalUrl + 'home/user.html'); //popup if (this.popupLinkNode) { html.setStyle(this.popupSigninNode, 'display', 'none'); html.setStyle(this.popupUserNameNode, 'display', ''); html.setStyle(this.popupSignoutNode, 'display', ''); query('a', this.popupUserNameNode).html(credential.userId) .attr('href', this.appConfig.portalUrl + 'home/user.html'); } this.resize(); }, onSignOut: function () { this.inherited(arguments); this._onSignOut(this.nls.signin); var portal = portalUtils.getPortal(this.appConfig.portalUrl); portal.loadSelfInfo().then(lang.hitch(this, function (selfInfo) { var name = selfInfo.name; var signInTip = this.nls.signInTo + ' ' + name; this._onSignOut(signInTip); }), lang.hitch(this, function (err) { console.error(err); })); }, _onSignOut: function (signInTip) { html.setStyle(this.signinLinkNode, 'display', ''); html.setAttr(this.signinLinkNode, 'innerHTML', signInTip); html.setStyle(this.userNameLinkNode, 'display', 'none'); html.setStyle(this.signoutLinkNode, 'display', 'none'); this.userNameLinkNode.innerHTML = ''; //popup if (this.popupLinkNode) { html.setStyle(this.popupSigninNode, 'display', ''); html.setAttr(this.popupSigninNode, 'innerHTML', signInTip); html.setStyle(this.popupUserNameNode, 'display', 'none'); html.setStyle(this.popupSignoutNode, 'display', 'none'); query('a', this.popupUserNameNode).html(''); } this.resize(); }, resize: function () { var attributeTableHeight = 0; var headerNodeFloat = html.getStyle(this.headerNode, 'float'); var logoNodeFloat = html.getStyle(this.logoNode, 'float'); var titlesNodeFloat = html.getStyle(this.titlesNode, 'float'); var linksNodeFloat = html.getStyle(this.linksNode, 'float'); var allHasFloatStyle = (headerNodeFloat && headerNodeFloat !== 'none') && (logoNodeFloat && logoNodeFloat !== 'none') && (titlesNodeFloat && titlesNodeFloat !== 'none') && (linksNodeFloat && linksNodeFloat !== 'none'); if (allHasFloatStyle) { this._resize(); } else { setTimeout(lang.hitch(this, this.resize), 200); } if (query(".jimu-widget-attributetable")[0]) { attributeTableHeight = query(".jimu-widget-attributetable")[0].clientHeight; } if (attributeTableHeight) { topic.publish('changeMapPosition', { bottom: attributeTableHeight }); } else { topic.publish('changeMapPosition', { bottom: "0px" }); } }, _resize: function () { var box = html.getContentBox(this.domNode); //by default, we show all elements this._showSwitchableElements(['title', 'links', 'subtitle']); //as after showing all the elements title width may changed so update its width to fit other elements this._updateTitleNodeWidth(); this._getTitleContainerWidth(box); this._createIconNodes(box); //again after changing/creating icon nodes title width may change so update its width to fit other elements this._updateTitleNodeWidth(); if (this.morePane) { this.morePane.resize(); } if (this.popupLinkNode) { html.setStyle(jimuConfig.layoutId, { left: html.getContentBox(this.popupLinkNode).w + 'px' }); } }, //Calculates and sets the Title Node Width _updateTitleNodeWidth: function () { var box, maxWidth, spaceLeft, containerWidth; box = html.getContentBox(this.domNode); //get complete header container width containerWidth = this._getHeaderContainerWidth(box); //calculate the available left space spaceLeft = containerWidth - this._getLogoWidth() - this._getTitlesWidth() - this._getSubtitleWidth() - this._getLinkWidth(); //set the max width of the title by adding left space also extra 40px considering margins maxWidth = this._getTitlesWidth() + spaceLeft + 40; //if subtitle is not available increase the title's width by 20 if (html.getStyle(this.subtitleNode, 'display') === "none") { maxWidth += 20; //if links are not available increase the title's width by 20 if (html.getStyle(this.linksNode, 'display') === "none") { maxWidth += 20; } } //if calculated maxWidth is less tha 150 set max width as 15 else set the calculated max width if (maxWidth < 150) { html.setStyle(this.titleNode, 'max-width', '150px'); } else { html.setStyle(this.titleNode, 'max-width', maxWidth + 'px'); } }, destroy: function () { if (this.timeoutHandle) { clearTimeout(this.timeoutHandle); this.timeoutHandle = null; } if (this.morePane) { this.morePane.destroy(); } if (this.moreIconPaneCoverNode) { html.destroy(this.moreIconPaneCoverNode); this.moreIconPaneCoverNode = null; } if (this.popupLinkNode && this.popupLinksVisible) { this._hidePopupLink(); } html.destroy(this.popupLinkNode); this.inherited(arguments); }, onAppConfigChanged: function (appConfig, reason, changedData) { switch (reason) { case 'attributeChange': this._onAttributeChange(appConfig, changedData); break; default: return; } this.appConfig = appConfig; this.resize(); }, getOpenedIds: function () { this.inherited(arguments); if (this.openedId === '') { return []; } return [this.openedId]; }, setOpenedIds: function (ids) { if (ids.length === 0) { return; } var config = this.getConfigById(ids[0]); if (!config) { return; } if (this.openedId) { this._switchNodeToClose(this.openedId); } this.openedId = ids[0]; if (config.widgets && config.openType === 'openAll') { this._switchNodeToOpen(config.id); } else if (!config.widgets) { if (this._getIconNodeById(config.id)) { this._switchNodeToOpen(config.id); } else { this._showIconContent(config); } } }, _onLogoLoad: function () { this.resize(); }, _highLight: function (node) { if (this.hlDiv) { this._removeHighLight(); } if (!node) { return; } var position = domGeometry.getMarginBox(node); var hlStyle = { position: 'absolute', left: (position.l) + 'px', top: (position.t) + 'px', width: (position.w) + 'px', height: (position.h) + 'px' }; this.hlDiv = domConstruct.create('div', { "style": hlStyle, "class": 'icon-highlight' }, node, 'before'); }, _removeHighLight: function () { if (this.hlDiv) { domConstruct.destroy(this.hlDiv); this.hlDiv = null; } }, _onAttributeChange: function (appConfig, changedData) { /*jshint unused: false*/ var appTitle; if ('title' in changedData && changedData.title !== this.appConfig.title) { appTitle = utils.sanitizeHTML(changedData.title); this.titleNode.innerHTML = appTitle; this.titleNode.title = appTitle; } if ('subtitle' in changedData && changedData.subtitle !== this.appConfig.subtitle) { this.subtitleNode.innerHTML = utils.sanitizeHTML(changedData.subtitle); } if ('logo' in changedData && changedData.logo !== this.appConfig.logo) { if (changedData.logo) { html.setAttr(this.logoNode, 'src', changedData.logo); html.removeClass(this.logoNode, 'hide-logo'); } else { html.removeAttr(this.logoNode, 'src'); html.addClass(this.logoNode, 'hide-logo'); } } if ('links' in changedData) { this._createDynamicLinks(changedData.links); } this._handleLogoLink(appConfig); }, _handleLogoLink: function (appConfig) { if (appConfig.logoLink) { html.setAttr(this.logoLinkNode, 'href', appConfig.logoLink); html.setStyle(this.logoNode, 'cursor', 'pointer'); html.setAttr(this.logoLinkNode, 'tabIndex', this.tabIndex); html.setAttr(this.logoNode, 'alt', appConfig.logoLink); } else { html.setAttr(this.logoLinkNode, 'href', 'javascript:void(0)'); html.setStyle(this.logoNode, 'cursor', 'default'); html.setAttr(this.logoLinkNode, 'tabIndex', "-1"); html.setAttr(this.logoNode, 'role', "presentation"); } }, _setElementsSize: function () { html.setStyle(this.logoNode, { height: '30px', marginTop: ((this.height - 30) / 2) + 'px' }); html.setStyle(this.titleNode, { lineHeight: this.height + 'px' }); html.setStyle(this.subtitleNode, { lineHeight: this.height + 'px' }); query('.jimu-link', this.domNode).style({ lineHeight: this.height + 'px' }); }, _processGroupSetting: function () { // Sets the map canvas area according to area // remained after opening and closing of widget panel this._setMapCanvasAreaToDefault(); function getOpenType(gLabel) { if (this.config.groupSetting) { for (var i = 0; i < this.config.groupSetting.length; i++) { if (this.config.groupSetting[i].label === gLabel) { return this.config.groupSetting[i].type; } } } //this is the default open type return 'openAll'; } array.forEach(this.appConfig.widgetPool.groups, function (g) { g.openType = getOpenType.call(this, g.label); }, this); }, _createDynamicLinks: function (links) { var linkTabIndex = this.tabIndex + 1; // if (window.isRTL) { // var _links = []; // array.forEach(links, function (link) { // _links.unshift(link); // }); // links = _links; // } html.empty(this.dynamicLinksNode); //if no links are configured hide the link node else create configured links if (links.length <= 0) { html.setStyle(this.linksNode, 'display', 'none'); //If dynamicLinks already exist in switchable elements remove it as links length is 0 if (this.switchableElements.hasOwnProperty("links")) { delete this.switchableElements.links; } } else { //As dynamicLinks exist add linksNode to switchable elements this.switchableElements.links = this.linksNode; array.forEach(links, function (link) { html.create('a', { href: link.url, target: '_blank', innerHTML: utils.sanitizeHTML(link.label), 'class': "jimu-link jimu-align-leading jimu-leading-margin1", style: { lineHeight: this.height + 'px' }, tabindex: linkTabIndex++ }, this.dynamicLinksNode); }, this); } }, _showSwitchableElements: function (showElement) { var es = this.switchableElements; for (var p in es) { if (es.hasOwnProperty(p)) { if (showElement.indexOf(p) > -1) { var displayValue = html.hasClass(es[p], 'links') ? 'flex' : 'block'; html.setStyle(es[p], 'display', displayValue); es[p].visible = true; } else { html.setStyle(es[p], 'display', 'none'); es[p].visible = false; } } } //links is hidden if (this.logoClickHandle) { this.logoClickHandle.remove(); } if (this.logoKeydownHandle) { this.logoKeydownHandle.remove(); } if (showElement.indexOf('links') < 0) { html.setAttr(this.logoLinkNode, 'tabIndex', this.tabIndex); this.logoClickHandle = on(this.logoNode, 'click', lang.hitch(this, this._onLogoClick)); this.logoKeydownHandle = on(this.logoLinkNode, 'keydown', lang.hitch(this, this._onLogoKeydown)); } else { if (this.popupLinksVisible) { this._hidePopupLink(); } if (this.appConfig.logoLink) { html.setStyle(this.logoNode, 'cursor', 'pointer'); } else { html.setStyle(this.logoNode, 'cursor', 'default'); } } }, _switchSignin: function () { var credential = tokenUtils.getPortalCredential(this.appConfig.portalUrl); if (credential) { this.onSignIn(credential); } else { this.onSignOut(); } }, _onLogoClick: function () { // return; if (this.popupLinkNode) { html.destroy(this.popupLinkNode); } this.popupLinkNode = this._createPopupLinkNode(); if (this.popupLinksVisible) { this._hidePopupLink(); } else { this._showPopupLink(); } }, _onLogoKeydown: function (evt) { if (evt.keyCode === keys.ENTER) { this._onLogoClick(); } }, _hidePopupLink: function () { html.setStyle(this.popupLinkNode, 'display', 'none'); if (window.isRTL) { html.setStyle(jimuConfig.layoutId, { right: 0 }); } else { html.setStyle(jimuConfig.layoutId, { left: 0 }); } this.popupLinksVisible = false; }, _showPopupLink: function () { html.setStyle(this.popupLinkNode, 'display', ''); if (window.isRTL) { html.setStyle(jimuConfig.layoutId, { right: html.getContentBox(this.popupLinkNode).w + 'px' }); } else { html.setStyle(jimuConfig.layoutId, { left: html.getContentBox(this.popupLinkNode).w + 'px' }); } //focus on first link A or close btn if (utils.isInNavMode()) { if (this.appConfig.links) { var firstLinkA = query('.jimu-link a', this.popupLinkNode)[0]; firstLinkA.focus(); } else { var closeBtn = query('.jimu-popup-link-close-btn', this.popupLinkNode)[0]; closeBtn.focus(); } } this.popupLinksVisible = true; }, _createPopupLinkNode: function () { var node, titleNode, box; box = html.getContentBox(jimuConfig.mainPageId); node = html.create('div', { 'class': 'popup-links jimu-main-background', style: { position: 'absolute', zIndex: 100, top: 0, bottom: 0 } }, jimuConfig.mainPageId); if (window.isRTL) { html.setStyle(node, { right: 0, left: '50px' }); } else { html.setStyle(node, { left: 0, right: '50px' }); } titleNode = html.create('div', { 'class': 'popup-title', style: { height: this.height + 'px', width: '100%' } }, node); var closeBtn = html.create('div', { 'class': 'jimu-float-leading jimu-leading-margin1 jimu-popup-link-close-btn', role: 'button', 'tabindex': '0', 'aria-label': this.jimuNls.common.close, //TODO : test style: { width: '30px', height: '30px', marginTop: ((this.height - 30) / 2) + 'px' } }, titleNode); this.own(on(closeBtn, 'click', lang.hitch(this, function () { this._hidePopupLink(); }))); this.own(on(closeBtn, 'keydown', lang.hitch(this, function (evt) { if (utils.isInNavMode()) { if (evt.keyCode === keys.ENTER || evt.keyCode === keys.SPACE || evt.keyCode === keys.ESCAPE) { this._hidePopupLink(); this.logoLinkNode.focus(); } else if (evt.keyCode === keys.TAB && !evt.shiftKey && this.appConfig.links.length > 0) { } else { evt.preventDefault(); } } }))); this.own(on(node, 'keydown', lang.hitch(this, function (evt) { if (utils.isInNavMode() && evt.keyCode === keys.ESCAPE && !html.hasClass(node, 'jimu-popup-link-close-btn')) { closeBtn.focus(); } }))); html.create('div', { 'class': 'title jimu-float-leading jimu-leading-margin1', innerHTML: utils.sanitizeHTML(this.appConfig.title), style: { lineHeight: this.height + 'px' } }, titleNode); var linkNodes = []; array.forEach(this.appConfig.links, function (link) { var linkNode = this._createLinkNode(node, link, false); linkNodes.push(linkNode); }, this); if (linkNodes.length) { this.own(on(linkNodes[linkNodes.length - 1], 'keydown', lang.hitch(this, function (evt) { if (utils.isInNavMode() && evt.keyCode === keys.TAB && !evt.shiftKey) { evt.preventDefault(); var linkA = query('a', linkNodes[0])[0]; linkA.focus(); } }))); } //empty //this._createLinkNode(node, { // label: '', // url: '#' // }, false); return node; }, _createLinkNode: function (containerNode, link, isSign) { var node, lineNode, linkSectionNode, className; node = html.place('<div class="jimu-link"></div>', containerNode); lineNode = html.place('<div class="line"></div>', node); if (isSign) { className = 'link-section signin'; } else { className = 'link-section'; } linkSectionNode = html.place('<div class="' + className + '"></div>', node); html.create('a', { href: link.url, 'tabindex': '0', 'class': 'jimu-ellipsis', target: '_blank', rel: "noopener noreferrer", innerHTML: utils.sanitizeHTML(link.label), title: utils.sanitizeHTML(link.label), style: { lineHeight: '66px' } }, linkSectionNode); return node; }, _onSigninClick: function () { tokenUtils.signInPortal(this.appConfig.portalUrl, this.appConfig.appId); }, _onSignoutClick: function () { var isDepolyedApp = !this.appConfig.mode; if (isDepolyedApp) { tokenUtils.signOutAll(); } else { new Message({ message: this.nls.cantSignOutTip }); } }, _onUserNameClick: function () { }, /* * Calculates the width of header section div * @memberOf widgets/HeaderController/widget.js */ _getHeaderSectionWidth: function () { var width; width = html.getMarginBox(this.headerNode).w; return width; }, /* * Calculate width for titles and subtitles * @memberOf widgets/HeaderController/widget.js */ _getIconContainerWidth: function () { var iconContainerWidth; //the container width iconContainerWidth = html.getMarginBox(this.containerNode).w; return iconContainerWidth; }, /* * Calculates the width of header title div * @memberOf widgets/HeaderController/widget.js */ _getTitlesWidth: function () { var titlseWidth; titlseWidth = html.getMarginBox(this.titlesNode).w; return titlseWidth; }, /* * Calculates the width of header link div * @memberOf widgets/HeaderController/widget.js */ _getLinkWidth: function () { var linkWidth; linkWidth = html.getMarginBox(this.linksNode).w; return linkWidth; }, /* * Calculates the width of header logo div * @memberOf widgets/HeaderController/widget.js */ _getLogoWidth: function () { var width; width = html.getMarginBox(this.logoNode).w + 12; return width; }, /* * Calculates the width of header Subtitle div * @memberOf widgets/HeaderController/widget.js */ _getSubtitleWidth: function () { var subTitleWidth; subTitleWidth = html.getMarginBox(this.subtitleNode).w; return subTitleWidth; }, /* * Calculates the header container which contains * app-logo, title, subtitle, links etc * @memberOf widgets/HeaderController/widget.js */ _getHeaderContainerWidth: function (box) { var headSectionWidth = this._getIconContainerWidth(); var logosectionWidth = this._getLogoWidth(); //the container width var containerWidth = box.w - headSectionWidth - logosectionWidth; return containerWidth; }, /* * Hide and show title, subtitle, link * according to the width of the there text * title is in first priority then subtitle and links subsequently * @memberOf widgets/HeaderController/widget.js */ _getTitleContainerWidth: function (box) { var containerWidth = this._getHeaderContainerWidth(box); var tileswidth = this._getTitlesWidth(); var linkWidth = this._getLinkWidth(); // if the header container containing title, subtitle, link width is less // than titles and subtitle width then only if (containerWidth < (tileswidth + linkWidth)) { // if link div is visible then only if (this.switchableElements.hasOwnProperty("links") && this.switchableElements.links.visible) { //hidden link first this._showSwitchableElements(['title', 'subtitle']); tileswidth = this._getTitlesWidth(); if (containerWidth < tileswidth) { //hidden Subtitle first this._showSwitchableElements(['title']); } } else { //hiden the title, subtitle, links this._showSwitchableElements(['title']); } } }, _createIconNodes: function (box, openingWidgetId) { var iconTabIndex = this.tabIndex + 20; query('.icon-node', this.containerNode).remove(); this._closeDropMenu(); var i, iconConfig, ret, allIconConfigs = this.getAllConfigs(), moveToHeader; //by default, the icon is square this.iconWidth = box.h; ret = this._getTitleContainerWidth(box); var iconContainerWidth = 360; if (window.innerWidth <= 760) { iconContainerWidth = 90; } else { iconContainerWidth = 360; } var nodes = [], node; var containerStyle = { width: iconContainerWidth + 'px' }; /* New Changes For showing panel below header in mobile devices */ html.setStyle(this.containerNode, containerStyle); if (window.innerWidth <= 760) { this.maxIconCount = 2; } else { this.maxIconCount = Math.floor(360 / 45); } if (this.maxIconCount >= allIconConfigs.length) { this.headerIconCount = allIconConfigs.length; this.createMoreIcon = false; } else { this.headerIconCount = this.maxIconCount - 1; this.createMoreIcon = true; } if (this.createMoreIcon) { node = this._createIconNode({ label: this.nls.more }); nodes.push(node); /*Move open widget to header icon List - *If any openAtStart/alreadyOpen widget goes into more panel this will bring it to header *icon list */ if (!this.openAtStartWidget) { for (i = 0; i < allIconConfigs.length; i++) { if (allIconConfigs[i].openAtStart) { moveToHeader = allIconConfigs[i]; } } } //if not opening widget from more list and and some widget is already opened, //show the opened widget icon in header icon list if (!openingWidgetId && this.openedId && this.getConfigById(this.openedId)) { moveToHeader = this.getConfigById(this.openedId); } if (moveToHeader) { this._moveConfigToHeader(moveToHeader); } /* End Move open widget to header icon List */ } var openAtStartNode; for (i = this.headerIconCount - 1; i >= 0; i--) { iconConfig = allIconConfigs[i]; var node = this._createIconNode(iconConfig); if (iconConfig.openAtStart) { openAtStartNode = node; } nodes.push(node); } nodes.reverse().forEach(function (n) { iconTabIndex += 200; html.setAttr(n, 'tabindex', iconTabIndex); //Inpanel widgets don't need tabindex. //But off panel widgets do, like search widget if (!n.config.inPanel) { n.config.tabIndex = iconTabIndex; } }); //open the first openatstart widget if (openAtStartNode && !this.openAtStartWidget) { this.openAtStartWidget = openAtStartNode.config.id; this._onIconClick(openAtStartNode); } if (this.openedId && this.getConfigById(this.openedId) && this.getConfigById(this.openedId).inPanel === false) { var openedIconNode = this._getIconNodeById(this.openedId); var openedWidget = this.widgetManager.getWidgetById(this.openedId); if (openedIconNode && openedWidget) { this._setOffPanelWidgetPosition(openedIconNode, openedWidget); } else { this.widgetManager.closeWidget(this.openedId); this.openedId = ''; } } }, _createIconNode: function (iconConfig) { var node, iconUrl, iconParent, iconSelectedDiv; if (iconConfig.label === this.nls.more) { iconUrl = this.folderUrl + 'images/more_icon.png'; } else { iconUrl = iconConfig.icon; } node = html.create('div', { 'class': 'icon-node jimu-float-trailing', title: iconConfig.label, "aria-label": iconConfig.label, settingId: iconConfig.id, role: "button", style: { width: 45 + 'px', height: this.height + 'px', textAlign: 'center' } }, this.containerNode); /* New Changes For showing panel below header in mobile devices */ iconParent = html.create('div', { 'class': 'widget-symbol-div', style: { width: 100 + '%' } }, node); var imgNode = html.create('img', { src: iconUrl, alt: iconConfig.label, style: { marginTop: ((this.height - 30) / 2 + 3) + 'px', marginBottom: 3 + 'px' } }, iconParent); if (window.isRTL && iconConfig.mirrorIconForRTL) { html.addClass(imgNode, 'jimu-flipx'); } iconSelectedDiv = html.create('div', { 'class': 'widget-open-symbol esriCTHidden' }, node); /* New Changes For showing panel below header in mobile devices */ if (iconConfig.label === this.nls.more) { this._morePaneNode = node; on(node, 'click', lang.hitch(this, this._showMorePane, iconConfig)); //Add keydown event to show more pane on icon ENTER key on(node, 'keydown', lang.hitch(this, function (evt) { if (evt.keyCode === keys.ENTER || evt.keyCode === keys.SPACE) { this._showMorePane(); } })); } else { on(node, 'click', lang.hitch(this, function () { this._onIconClick(node); })); //Add keydown event to open respective widget on icon ENTER key on(node, 'keydown', lang.hitch(this, function (evt) { if (evt.keyCode === keys.ENTER || evt.keyCode === keys.SPACE) { this._onIconClick(node); } })); //Add tooltips utils.addTooltipByDomNode(Tooltip, node, iconConfig.label); } node.config = iconConfig; if (node.config.widgets && node.config.widgets.length > 1 && node.config.openType === 'dropDown') { this._createDropTriangle(node); } //set current open node if (this.openedId === iconConfig.id) { html.addClass(node, 'jimu-state-selected'); //Hide widget open symbol of all widgets query('.widget-open-symbol', this.domNode).addClass('esriCTHidden'); //Show widget open symbol of the current open widget only html.removeClass(iconSelectedDiv, 'esriCTHidden'); if (node.config.widgets && node.config.widgets.length > 1 && node.config.openType === 'dropDown') { this._openDropMenu(node); } } return node; }, _createDropTriangle: function (node) { var box = html.getMarginBox(node); var triangleLeft = box.l + box.w / 2 - 4; html.create('div', { 'class': 'drop-triangle', style: { left: triangleLeft + 'px' } }, node); }, _onIconClick: function (node) { if (!node.config.widgets || node.config.widgets.length === 1 || node.config.openType === 'openAll') { //widget or group with 'openAll' open type if (this.openedId && this.openedId === node.config.id) { this._switchNodeToClose(this.openedId); return; } else { if (this.openedId) { this._switchNodeToClose(this.openedId).then(lang.hitch(this, function () { this._closeDropMenu(); this._switchNodeToOpen(node.config.id); })); } else { this._switchNodeToOpen(node.config.id); } } } else { if (this.dropMenuNode) { this._closeDropMenu(); } else { this._openDropMenu(node); } } }, _closeDropMenu: function () { if (this.dropMenuNode) { html.destroy(this.dropMenuNode); this.dropMenuNode = null; } }, _openDropMenu: function (pnode) { this.dropMenuNode = html.create('div', { 'class': 'jimu-drop-menu jimu-main-background', title: pnode.config.label, style: { position: 'absolute', zIndex: '101' } }); html.place(this.dropMenuNode, this.containerNode); array.forEach(pnode.config.widgets, function (widgetConfig) { this._createDropMenuItem(widgetConfig); }, this); this._setDropMenuPosition(pnode); if (this.morePane) { this.morePane.hide(); } }, _createDropMenuItem: function (sconfig) { var node = html.create('div', { 'class': 'menu-item', title: utils.sanitizeHTML(sconfig.label), style: { height: this.height + 'px' } }, this.dropMenuNode); html.create('img', { 'class': 'jimu-float-leading', src: sconfig.icon }, node); html.create('div', { 'class': 'label jimu-float-leading', innerHTML: utils.sanitizeHTML(sconfig.label) }, node); this.own(on(node, 'click', lang.hitch(this, function () { this._closeDropMenu(); if (this.openedId) { this._switchNodeToClose(this.openedId).then(lang.hitch(this, function () { this._showIconContent(node.config); })); } else { this._showIconContent(node.config); } }))); node.config = sconfig; return node; }, _setDropMenuPosition: function (pnode) { var position = {}; var menuBox = html.getMarginBox(this.dropMenuNode); position = this._getDropdownPosition(pnode, menuBox); position.zIndex = 101; html.setStyle(this.dropMenuNode, utils.getPositionStyle(position)); }, _getDropdownPosition: function (pnode, sbox) { var position = {}, pbox = html.getMarginBox(pnode), thisBox = html.getMarginBox(this.domNode); position.top = this.height + 1; if (window.isRTL) { if (pbox.l + pbox.w - sbox.w < 0) { position.right = 0; } else { position.right = pbox.l + pbox.w - sbox.w; } } else { if (pbox.l + sbox.w > thisBox.w) { position.right = 0; } else { position.left = pbox.l; } } return position; }, _switchNodeToOpen: function (id) { var node = this._getIconNodeById(id); query('.icon-node', this.domNode).removeClass('jimu-state-selected'); /* New Changes For showing panel below header in mobile devices */ query('.widget-open-symbol', this.domNode).addClass('esriCTHidden'); html.addClass(node, 'jimu-state-selected'); html.removeClass(node.children[1], 'esriCTHidden'); /* New Changes For showing panel below header in mobile devices */ this._showIconContent(node.config); }, _switchNodeToClose: function (id) { query('.icon-node', this.domNode).removeClass('jimu-state-selected'); // Sets the map canvas area according to area // remained after opening and closing of widget panel this._setMapCanvasAreaToDefault(); /* New Changes For showing panel below header in mobile devices */ query('.widget-open-symbol', this.domNode).addClass('esriCTHidden'); var iconJson = this.appConfig.getConfigElementById(id); var def; if (iconJson) { if (iconJson.inPanel === false) { this.widgetManager.closeWidget(id); this.openedId = ''; def = new Deferred(); def.resolve(); return def; } else { return this.panelManager.closePanel(id + '_panel'); } } else { def = new Deferred(); def.resolve(); return def; } }, /* * Sets map canvas area to default position * @memberOf widgets/HeaderController/widget.js */ _setMapCanvasAreaToDefault: function () { // if application is running in desktop device then keep right zero // else for mobile devices keep bottom zero if (!window.appInfo.isRunInMobile) { topic.publish('changeMapPosition', { right: "0px" }); } else { var attributeTableHeight = 0; if (query(".jimu-widget-attributetable")[0]) { attributeTableHeight = query(".jimu-widget-attributetable")[0].clientHeight; } // if attribute table widget height is greater than zero // then set bottom equal attributeTableHeight // else keep bottom as zero if (attributeTableHeight) { topic.publish('changeMapPosition', { bottom: attributeTableHeight }); } else { topic.publish('changeMapPosition', { bottom: "0px" }); } } }, /* * Adjusts the map canvas area according to remaining area * after opening or closing, panel or other widgets * @memberOf widgets/HeaderController/widget.js */ _setMapCanvasArea: function () { // if application is running in desktop device if (!window.appInfo.isRunInMobile) { // if browser is minimized the change map right position to zero // else change it by 360px if (this.panelManager && this.panelManager.activePanel && this.panelManager.activePanel.windowState === "minimized") { topic.publish('changeMapPosition', { right: "0px" }); } else { topic.publish('changeMapPosition', { right: "360px" }); this._resizeAttributeTableinRTL(); } } else { // if application is running in mobile devices and panel resizing state is // normal then set the bottom positioning of the map equal to the panel top // position so that map content pane can be visible in that remaining area only // else keep bottom position 36px for folded mode var attributeTableHeight = 0; if (query(".jimu-widget-attributetable")[0]) { attributeTableHeight = query(".jimu-widget-attributetable")[0].clientHeight; } if (this.panelManager && this.panelManager.panels && this.panelManager.panels[0] && this.panelManager.panels[0].windowState === "normal") { var panelPosition = this.panelManager.getPositionOnMobile(this); // if attribute table widget height is greater than panelPosition.top // then set bottom equal attributeTableHeight // else keep bottom as panelPosition.top if (attributeTableHeight && attributeTableHeight > panelPosition.top) { topic.publish('changeMapPosition', { bottom: attributeTableHeight }); } else { topic.publish('changeMapPosition', { bottom: panelPosition.top }); } } else { // if attribute table widget height is greater than 36px // then set bottom position to attributeTableHeight // else keep bottom position to 36px if (attributeTableHeight > 36) { topic.publish('changeMapPosition', { bottom: attributeTableHeight }); } else { // if it is touch devices or browser width is less than 760px // then set bottom position to 36px else set it to zero if (window.hasOwnProperty("ontouchstart") || window.ontouchstart !== undefined || window.innerWidth <= 760) { topic.publish('changeMapPosition', { bottom: "36px" }); } else { topic.publish('changeMapPosition', { bottom: "0px" }); } } } } }, /* * resizes the attribute table widget in case of RTL layout * after opening or closing, panel or other widgets * @memberOf widgets/HeaderController/widget.js */ _resizeAttributeTableinRTL: function () { // if attribute table widget is available in the dom if (query(".jimu-widget-attributetable")[0]) { if (window.isRTL) { html.setStyle(query(".jimu-widget-attributetable")[0], 'right', '0px'); } else { html.setStyle(query(".jimu-widget-attributetable")[0], 'left', '0px'); } // if tab Container is of attribute table widget is created in the dom if (query(".dijitTabContainer", query(".jimu-widget-attributetable")[0])[0]) { registry.byId(query(".dijitTabContainer", query(".jimu-widget-attributetable")[0])[0].id).resize(); } } }, _getIconNodeById: function (id) { var node = query('.icon-node[settingId="' + id + '"]', this.domNode); if (node.length === 0) { return; } return node[0]; }, _unSelectIcon: function (id) { query('.icon-node[settingId="' + id + '"]', this.domNode) .removeClass('jimu-state-selected'); this.openedId = ''; }, _showIconContent: function (iconConfig) { var iconNode = this._getIconNodeById(iconConfig.id); if (iconConfig.inPanel === false) { this.widgetManager.loadWidget(iconConfig).then(lang.hitch(this, function (widget) { this.openedId = iconConfig.id; var iconNode = this._getIconNodeById(iconConfig.id); //we don't call widget.startup because getWidgetMarginBox has started widget //widget.startup(); html.setStyle(widget.domNode, 'zIndex', 101); this._setOffPanelWidgetPosition(iconNode, widget); this.widgetManager.openWidget(widget); this.own(aspect.after(widget, 'onClose', lang.hitch(this, function () { query('.widget-open-symbol', this.domNode).addClass('esriCTHidden'); // Sets the map canvas area according to area // remained after opening and closing of widget panel this._setMapCanvasAreaToDefault(); // ST: Added to listen for out of panel widgets that can be closed this._unSelectIcon(iconConfig.id); this._switchNodeToClose(iconNode.config.id); iconNode.focus(); }))); })); } else { // Sets the map canvas area according to area // remained after opening and closing of widget panel this._setMapCanvasArea(); this.panelManager.showPanel(iconConfig).then(lang.hitch(this, function (panel) { var node; this.openedId = iconConfig.id; node = this._getIconNodeById(this.openedId); query('.icon-node', this.domNode).removeClass('jimu-state-selected'); /* New Changes For showing panel below header in mobile devices */ query('.widget-open-symbol', this.domNode).addClass('esriCTHidden'); html.addClass(node, 'jimu-state-selected'); html.removeClass(node.children[1], 'esriCTHidden'); this.own(aspect.after(panel, 'onClose', lang.hitch(this, function () { this._unSelectIcon(iconConfig.id); // Sets the map canvas area according to area // remained after opening and closing of widget panel this._setMapCanvasAreaToDefault(); this._switchNodeToClose(iconNode.config.id); //Remove code to highlight the widget icon once the panel is closed //iconNode.focus(); }))); this.own(on(panel.closeNode, 'keydown', lang.hitch(this, function(evt){ if(evt.keyCode === keys.ESCAPE || evt.keyCode === keys.ENTER || evt.keyCode === keys.SPACE){ iconNode.focus(); } }))); })); } }, _setOffPanelWidgetPosition: function (iconNode, widget) { var position = this._getDropdownPosition(iconNode, this.widgetManager.getWidgetMarginBox(widget)); widget.setPosition(position, this.containerNode); }, _showMorePane: function () { var i, iconConfig, moreItems = [], allIconConfigs = this.getAllConfigs(); for (i = this.headerIconCount; i < allIconConfigs.length; i++) { iconConfig = allIconConfigs[i]; if (iconConfig.id !== this.openedId) { moreItems.push(iconConfig); } } if (this.morePane) { this.morePane.destroy(); } if (this.moreIconPaneCoverNode) { html.destroy(this.moreIconPaneCoverNode); } this._closeDropMenu(); this.morePane = new PopupTileNodes({ openedId: this.openedId, items: moreItems, numWidget: allIconConfigs }); this._createCoverNode(); html.place(this.morePane.domNode, jimuConfig.mapId); this.morePane.startup(); aspect.after(this.morePane, 'onNodeClicked', lang.hitch(this, function (node) { this._moveConfigToHeader(node.config); this._createIconNodes(html.getContentBox(this.domNode), node.config.id); this._onIconClick(this._getIconNodeById(node.config.id)); }), true); aspect.after(this.morePane, 'hide', lang.hitch(this, function () { html.destroy(this.moreIconPaneCoverNode); this._morePaneNode.focus(); }), true); }, _moveConfigToHeader: function (config) { var allIconConfigs = this.getAllConfigs(); var tempIndex = config.index; config.index = allIconConfigs[this.headerIconCount - 1].index; allIconConfigs[this.headerIconCount - 1].index = tempIndex; }, _createCoverNode: function () { this.moreIconPaneCoverNode = html.create('div', { 'class': 'jimu-more-icon-cover' }, jimuConfig.layoutId); } }); return clazz; });
/** * import { connect } from "react-redux"; 需要用到的页面 * 这句连接之后,需要展示的 */ import getIndexRedu from "./indexRedu"; import getIndexListFilmReduc from "./indexListFilmReduc"; import getSeasonRedu from "./seasonRedu"; import getSeasonEpRedu from "./seasonEpRedu"; import getSeasonInfoRedu from "./seasonInfoRedu"; import getTvInfoRedu from "./tvInfoRedu"; import getTvInfoNextEpRedu from "./tvInfoNextEpRedu"; import getTvInfoNextSeasonRedu from "./tvInfoNextSeasonRedu"; import getTvInfoActorRedu from "./tvInfoActorRedu"; export default { getIndexRedu, getIndexListFilmReduc, getSeasonRedu, getSeasonEpRedu, getSeasonInfoRedu, getTvInfoRedu, getTvInfoNextEpRedu, getTvInfoNextSeasonRedu, getTvInfoActorRedu, }
const positions = [ { company: 'Starship Technologies', position: 'Hybrid Operator', link: 'https://www.starship.xyz/', daterange: 'January. 2020 – April. 2020', points: [ 'Oversaw autonomous delivery robot operations and operated and performed maintinence on field.', 'Optimizing and analyzing logistics processes to improve the efficiency of on-demand delivery systems via delivery robots.', ], }, { company: 'Make My Day Please LLC', position: 'Data Analyst', link: 'https://makemydayplease.com', daterange: 'Jan. 2019 – May. 2019', points: [ 'Successfully gathered and interpreted data in order to perform market analysis and achieve objectives.', 'Designed and assisted deployment of mockup websites using SASS to accurately display and highlight current website information and pictures.', ], }, { company: 'George Mason University', position: 'Project Lead', link: 'https://volgenau.gmu.edu/research/centers-and-labs', daterange: 'Aug. 2018 – Dec. 2018', points: [ 'Directed a team of people to aid individuals with acheiropodia and amputees who have lost their digits or hands.', 'Collaborated with specialists from the Volgenau research team to use Prusa I3 MK2S 3D printers and Formlab resin printers to design and construct test models.', ], }, { company: 'SPIRIT Equestrian', position: 'Developer', link: 'https://www.spiritequestrian.org/', daterange: 'May. 2017 – August. 2017', points: [ 'Automated client invoicing by integrating third-party invoicing software into Financial Assistant Web Portal with Python scripts.', 'Automated classification of financial statements (checks, invoices, cash flow statements, etc.) with Gmail API and Tesseract OCR.', ], }, { company: 'RJ Tennis Academy', position: 'Lead Instructor', link: 'https://rjtennisbootcamp.square.site/', daterange: 'June. 2019 – November. 2020', points: [ 'Coached and trained 100+ Juniors and Adults in high intensity clinics', ], }, ]; export default positions;
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- from nms.cpu_nms import cpu_nms from nms.gpu_nms import gpu_nms # from ..nms import cpu_nms # from ..nms import gpu_nms from .config import cfg def nms(dets, thresh, force_cpu=False): """Dispatch to either CPU or GPU NMS implementations.""" if dets.shape[0] == 0: return [] if cfg.USE_GPU_NMS and not force_cpu: return gpu_nms(dets, thresh, device_id=cfg.GPU_ID) else: return cpu_nms(dets, thresh)
/*! * @license * Copyright 2018 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { DateAlfresco } from '../../content-rest-api/model/dateAlfresco'; import { UserInfo } from '../../content-rest-api/model/userInfo'; export class AuditEntry { constructor(input) { if (input) { Object.assign(this, input); this.createdByUser = input.createdByUser ? new UserInfo(input.createdByUser) : undefined; this.createdAt = input.createdAt ? DateAlfresco.parseDate(input.createdAt) : undefined; } } } //# sourceMappingURL=auditEntry.js.map
/* eslint-disable no-param-reassign */ exports.onCreateWebpackConfig = ({ actions, stage }) => { if (stage === 'develop') { actions.setWebpackConfig({ // Avoid CORS issues devServer: { headers: { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': '*', }, }, devtool: 'eval-source-map', }); } }; const nodePath = require('path'); // Implement the Gatsby API “createPages”. This is called once the // data layer is bootstrapped to let plugins create pages from data. exports.createPages = async ({ graphql, actions }) => { const { createPage } = actions; const query = ` { allContentfulProduct { edges { node { url } } } allContentfulPage { edges { node { url } } } } `; const { data, errors } = await graphql(query); if (data === undefined) { console.log(errors); return; } data.allContentfulProduct.edges.forEach((edge) => { const path = edge.node.url; if (path) { createPage({ path, // get absolute path for component component: nodePath.resolve( './src/templates/ContentfulModuleContainer.js', ), context: { // Add optional context data to be inserted // as props and graphQL variable into the page component.. // // The context data can also be used as // arguments to the page GraphQL query. // // The page "path" is always available as a GraphQL // argument. url: path, }, }); } }); data.allContentfulPage.edges.forEach((edge) => { const path = edge.node.url; if (path) { createPage({ path, component: nodePath.resolve( './src/templates/ContentfulModuleContainer.js', ), // Add optional context data to be inserted // as props and graphQL variable into the page component.. // // The context data can also be used as // arguments to the page GraphQL query. // // The page "path" is always available as a GraphQL // argument. context: edge.node, }); } }); }; exports.onCreatePage = async ({ page, actions }) => { const { createPage } = actions; if (page.path.match(/^\/my-yellow\/$/)) { page.matchPath = '/my-yellow/*'; createPage(page); } if (page.path.match(/^\/our-products\/product-brief\/$/)) { page.matchPath = '/our-products/product-brief/*'; createPage(page); } }; exports.createSchemaCustomization = async ({ actions }) => { if (process.env.IAM_PRODUCT_PLATFORM_ENDPOINT) { return; } const { createTypes } = actions; const typeDefs = ` type PricingPlan implements Node { id: ID! amount: Int! interval: PricingPlanInterval! } enum PricingPlanInterval { DAY WEEK MONTH YEAR } type Product implements Node { id: ID sku: String! name: String! pricingPlan: [PricingPlan]! family: String requiresPayment: Boolean printLastBookingDate: String # '10 Dec' printDeliveryDate: String # '10 Mar' printProductName: String # 'Auckland' etc printProductCode: String } type ProductPlatform implements Node { products (family: String): [Product] } `; createTypes(typeDefs); };
"format register";System.register("angular2/src/facade/lang",[],!0,function(e,t,r){function n(e){return e.name}function i(){F=!0}function o(){if(F)throw"Cannot enable prod mode after platform setup.";L=!1}function a(){return L}function s(e){return e}function c(){return function(e){return e}}function l(e){return void 0!==e&&null!==e}function u(e){return void 0===e||null===e}function p(e){return"string"==typeof e}function d(e){return"function"==typeof e}function f(e){return d(e)}function h(e){return"object"==typeof e&&null!==e}function g(e){return e instanceof B.Promise}function m(e){return Array.isArray(e)}function v(e){return"number"==typeof e}function y(e){return e instanceof t.Date&&!isNaN(e.valueOf())}function _(){}function b(e){if("string"==typeof e)return e;if(void 0===e||null===e)return""+e;if(e.name)return e.name;if(e.overriddenName)return e.overriddenName;var t=e.toString(),r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function C(e){return e}function w(e,t){return e}function P(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function E(e){return e}function S(e){return u(e)?null:e}function R(e){return u(e)?!1:e}function x(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function O(e){console.log(e)}function D(e,t,r){for(var n=t.split("."),i=e;n.length>1;){var o=n.shift();i=i.hasOwnProperty(o)&&l(i[o])?i[o]:i[o]={}}(void 0===i||null===i)&&(i={}),i[n.shift()]=r}function A(){if(u(X))if(l(Symbol)&&l(Symbol.iterator))X=Symbol.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),t=0;t<e.length;++t){var r=e[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(X=r)}return X}function T(e,t,r,n){var i=r+"\nreturn "+t+"\n//# sourceURL="+e,o=[],a=[];for(var s in n)o.push(s),a.push(n[s]);return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,a)}function I(e){return!x(e)}function k(e,t){return e.constructor===t}var N=System.global,V=N.define;N.define=void 0;var M,j=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};M="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:N:window,t.IS_DART=!1;var B=M;t.global=B,t.Type=Function,t.getTypeNameForDebugging=n,t.Math=B.Math,t.Date=B.Date;var L=!0,F=!1;t.lockMode=i,t.enableProdMode=o,t.assertionsEnabled=a,B.assert=function(e){},t.CONST_EXPR=s,t.CONST=c,t.isPresent=l,t.isBlank=u,t.isString=p,t.isFunction=d,t.isType=f,t.isStringMap=h,t.isPromise=g,t.isArray=m,t.isNumber=v,t.isDate=y,t.noop=_,t.stringify=b,t.serializeEnum=C,t.deserializeEnum=w;var W=function(){function e(){}return e.fromCharCode=function(e){return String.fromCharCode(e)},e.charCodeAt=function(e,t){return e.charCodeAt(t)},e.split=function(e,t){return e.split(t)},e.equals=function(e,t){return e===t},e.stripLeft=function(e,t){if(e&&e.length){for(var r=0,n=0;n<e.length&&e[n]==t;n++)r++;e=e.substring(r)}return e},e.stripRight=function(e,t){if(e&&e.length){for(var r=e.length,n=e.length-1;n>=0&&e[n]==t;n--)r--;e=e.substring(0,r)}return e},e.replace=function(e,t,r){return e.replace(t,r)},e.replaceAll=function(e,t,r){return e.replace(t,r)},e.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},e.replaceAllMapped=function(e,t,r){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return e.splice(-2,2),r(e)})},e.contains=function(e,t){return-1!=e.indexOf(t)},e.compare=function(e,t){return t>e?-1:e>t?1:0},e}();t.StringWrapper=W;var U=function(){function e(e){void 0===e&&(e=[]),this.parts=e}return e.prototype.add=function(e){this.parts.push(e)},e.prototype.toString=function(){return this.parts.join("")},e}();t.StringJoiner=U;var H=function(e){function t(t){e.call(this),this.message=t}return j(t,e),t.prototype.toString=function(){return this.message},t}(Error);t.NumberParseError=H;var q=function(){function e(){}return e.toFixed=function(e,t){return e.toFixed(t)},e.equal=function(e,t){return e===t},e.parseIntAutoRadix=function(e){var t=parseInt(e);if(isNaN(t))throw new H("Invalid integer literal when parsing "+e);return t},e.parseInt=function(e,t){if(10==t){if(/^(\-|\+)?[0-9]+$/.test(e))return parseInt(e,t)}else if(16==t){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(e))return parseInt(e,t)}else{var r=parseInt(e,t);if(!isNaN(r))return r}throw new H("Invalid integer literal when parsing "+e+" in base "+t)},e.parseFloat=function(e){return parseFloat(e)},Object.defineProperty(e,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),e.isNaN=function(e){return isNaN(e)},e.isInteger=function(e){return Number.isInteger(e)},e}();t.NumberWrapper=q,t.RegExp=B.RegExp;var G=function(){function e(){}return e.create=function(e,t){return void 0===t&&(t=""),t=t.replace(/g/g,""),new B.RegExp(e,t+"g")},e.firstMatch=function(e,t){return e.lastIndex=0,e.exec(t)},e.test=function(e,t){return e.lastIndex=0,e.test(t)},e.matcher=function(e,t){return e.lastIndex=0,{re:e,input:t}},e}();t.RegExpWrapper=G;var K=function(){function e(){}return e.next=function(e){return e.re.exec(e.input)},e}();t.RegExpMatcherWrapper=K;var z=function(){function e(){}return e.apply=function(e,t){return e.apply(null,t)},e}();t.FunctionWrapper=z,t.looseIdentical=P,t.getMapKey=E,t.normalizeBlank=S,t.normalizeBool=R,t.isJsObject=x,t.print=O;var $=function(){function e(){}return e.parse=function(e){return B.JSON.parse(e)},e.stringify=function(e){return B.JSON.stringify(e,null,2)},e}();t.Json=$;var Q=function(){function e(){}return e.create=function(e,r,n,i,o,a,s){return void 0===r&&(r=1),void 0===n&&(n=1),void 0===i&&(i=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=0),new t.Date(e,r-1,n,i,o,a,s)},e.fromISOString=function(e){return new t.Date(e)},e.fromMillis=function(e){return new t.Date(e)},e.toMillis=function(e){return e.getTime()},e.now=function(){return new t.Date},e.toJson=function(e){return e.toJSON()},e}();t.DateWrapper=Q,t.setValueOnPath=D;var X=null;return t.getSymbolIterator=A,t.evalExpression=T,t.isPrimitive=I,t.hasConstructor=k,N.define=V,r.exports}),System.register("angular2/src/core/di/metadata",["angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=function(){function e(e){this.token=e}return e.prototype.toString=function(){return"@Inject("+s.stringify(this.token)+")"},e=o([s.CONST(),a("design:paramtypes",[Object])],e)}();t.InjectMetadata=c;var l=function(){function e(){}return e.prototype.toString=function(){return"@Optional()"},e=o([s.CONST(),a("design:paramtypes",[])],e)}();t.OptionalMetadata=l;var u=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){return null},enumerable:!0,configurable:!0}),e=o([s.CONST(),a("design:paramtypes",[])],e)}();t.DependencyMetadata=u;var p=function(){function e(){}return e=o([s.CONST(),a("design:paramtypes",[])],e)}();t.InjectableMetadata=p;var d=function(){function e(){}return e.prototype.toString=function(){return"@Self()"},e=o([s.CONST(),a("design:paramtypes",[])],e)}();t.SelfMetadata=d;var f=function(){function e(){}return e.prototype.toString=function(){return"@SkipSelf()"},e=o([s.CONST(),a("design:paramtypes",[])],e)}();t.SkipSelfMetadata=f;var h=function(){function e(){}return e.prototype.toString=function(){return"@Host()"},e=o([s.CONST(),a("design:paramtypes",[])],e)}();return t.HostMetadata=h,n.define=i,r.exports}),System.register("angular2/src/core/util/decorators",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){return p.isFunction(e)&&e.hasOwnProperty("annotation")&&(e=e.annotation),e}function i(e,t){if(e===Object||e===String||e===Function||e===Number||e===Array)throw new Error("Can not use native "+p.stringify(e)+" as constructor");if(p.isFunction(e))return e;if(e instanceof Array){var r=e,i=e[e.length-1];if(!p.isFunction(i))throw new Error("Last position of Class method array must be Function in key "+t+" was '"+p.stringify(i)+"'");var o=r.length-1;if(o!=i.length)throw new Error("Number of annotations ("+o+") does not match number of arguments ("+i.length+") in the function: "+p.stringify(i));for(var a=[],s=0,c=r.length-1;c>s;s++){var l=[];a.push(l);var u=r[s];if(u instanceof Array)for(var d=0;d<u.length;d++)l.push(n(u[d]));else p.isFunction(u)?l.push(n(u)):l.push(u)}return f.defineMetadata("parameters",a,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+t+"' is '"+p.stringify(e)+"'")}function o(e){var t=i(e.hasOwnProperty("constructor")?e.constructor:void 0,"constructor"),r=t.prototype;if(e.hasOwnProperty("extends")){if(!p.isFunction(e["extends"]))throw new Error("Class definition 'extends' property must be a constructor function was: "+p.stringify(e["extends"]));t.prototype=r=Object.create(e["extends"].prototype)}for(var n in e)"extends"!=n&&"prototype"!=n&&e.hasOwnProperty(n)&&(r[n]=i(e[n],n));return this&&this.annotations instanceof Array&&f.defineMetadata("annotations",this.annotations,t),t.name||(t.overriddenName="class"+d++),t}function a(e,t){function r(r){var n=new e(r);if(this instanceof e)return n;var i=p.isFunction(this)&&this.annotations instanceof Array?this.annotations:[];i.push(n);var a=function(e){var t=f.getOwnMetadata("annotations",e);return t=t||[],t.push(n),f.defineMetadata("annotations",t,e),e};return a.annotations=i,a.Class=o,t&&t(a),a}return void 0===t&&(t=null),r.prototype=Object.create(e.prototype),r}function s(e){function t(){function t(e,t,r){var n=f.getMetadata("parameters",e);for(n=n||[];n.length<=r;)n.push(null);n[r]=n[r]||[];var o=n[r];return o.push(i),f.defineMetadata("parameters",n,e),e}for(var r=[],n=0;n<arguments.length;n++)r[n-0]=arguments[n];var i=Object.create(e.prototype);return e.apply(i,r),this instanceof e?i:(t.annotation=i,t)}return t.prototype=Object.create(e.prototype),t}function c(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=Object.create(e.prototype);return e.apply(n,t),this instanceof e?n:function(e,t){var r=f.getOwnMetadata("propMetadata",e.constructor);r=r||{},r[t]=r[t]||[],r[t].unshift(n),f.defineMetadata("propMetadata",r,e.constructor)}}return t.prototype=Object.create(e.prototype),t}var l=System.global,u=l.define;l.define=void 0;var p=e("angular2/src/facade/lang"),d=0;t.Class=o;var f=p.global.Reflect;if(!f||!f.getMetadata)throw"reflect-metadata shim is required when using class decorators";return t.makeDecorator=a,t.makeParamDecorator=s,t.makePropDecorator=c,l.define=u,r.exports}),System.register("angular2/src/core/di/forward_ref",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){return e.__forward_ref__=n,e.toString=function(){return s.stringify(this())},e}function i(e){return s.isFunction(e)&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===n?e():e}var o=System.global,a=o.define;o.define=void 0;var s=e("angular2/src/facade/lang");return t.forwardRef=n,t.resolveForwardRef=i,o.define=a,r.exports}),System.register("angular2/src/facade/collection",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){return c.isJsObject(e)?c.isArray(e)||!(e instanceof t.Map)&&c.getSymbolIterator()in e:!1}function i(e,t,r){for(var n=e[c.getSymbolIterator()](),i=t[c.getSymbolIterator()]();;){var o=n.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!r(o.value,a.value))return!1}}function o(e,t){if(c.isArray(e))for(var r=0;r<e.length;r++)t(e[r]);else for(var n,i=e[c.getSymbolIterator()]();!(n=i.next()).done;)t(n.value)}var a=System.global,s=a.define;a.define=void 0;var c=e("angular2/src/facade/lang");t.Map=c.global.Map,t.Set=c.global.Set;var l=function(){try{if(1===new t.Map([[1,2]]).size)return function(e){return new t.Map(e)}}catch(e){}return function(e){for(var r=new t.Map,n=0;n<e.length;n++){var i=e[n];r.set(i[0],i[1])}return r}}(),u=function(){try{if(new t.Map(new t.Map))return function(e){return new t.Map(e)}}catch(e){}return function(e){var r=new t.Map;return e.forEach(function(e,t){r.set(t,e)}),r}}(),p=function(){return(new t.Map).keys().next?function(e){for(var t,r=e.keys();!(t=r.next()).done;)e.set(t.value,null)}:function(e){e.forEach(function(t,r){e.set(r,null)})}}(),d=function(){try{if((new t.Map).values().next)return function(e,t){return t?Array.from(e.values()):Array.from(e.keys())}}catch(e){}return function(e,t){var r=g.createFixedSize(e.size),n=0;return e.forEach(function(e,i){r[n]=t?e:i,n++}),r}}(),f=function(){function e(){}return e.clone=function(e){return u(e)},e.createFromStringMap=function(e){var r=new t.Map;for(var n in e)r.set(n,e[n]);return r},e.toStringMap=function(e){var t={};return e.forEach(function(e,r){return t[r]=e}),t},e.createFromPairs=function(e){return l(e)},e.clearValues=function(e){p(e)},e.iterable=function(e){return e},e.keys=function(e){return d(e,!1)},e.values=function(e){return d(e,!0)},e}();t.MapWrapper=f;var h=function(){function e(){}return e.create=function(){return{}},e.contains=function(e,t){return e.hasOwnProperty(t)},e.get=function(e,t){return e.hasOwnProperty(t)?e[t]:void 0},e.set=function(e,t,r){e[t]=r},e.keys=function(e){return Object.keys(e)},e.isEmpty=function(e){for(var t in e)return!1;return!0},e["delete"]=function(e,t){delete e[t]},e.forEach=function(e,t){for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)},e.merge=function(e,t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r},e.equals=function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!=n.length)return!1;for(var i,o=0;o<r.length;o++)if(i=r[o],e[i]!==t[i])return!1;return!0},e}();t.StringMapWrapper=h;var g=function(){function e(){}return e.createFixedSize=function(e){return new Array(e)},e.createGrowableSize=function(e){return new Array(e)},e.clone=function(e){return e.slice(0)},e.createImmutable=function(t){var r=e.clone(t);return Object.seal(r),r},e.forEachWithIndex=function(e,t){for(var r=0;r<e.length;r++)t(e[r],r)},e.first=function(e){return e?e[0]:null},e.last=function(e){return e&&0!=e.length?e[e.length-1]:null},e.indexOf=function(e,t,r){return void 0===r&&(r=0),e.indexOf(t,r)},e.contains=function(e,t){return-1!==e.indexOf(t)},e.reversed=function(t){var r=e.clone(t);return r.reverse()},e.concat=function(e,t){return e.concat(t)},e.insert=function(e,t,r){e.splice(t,0,r)},e.removeAt=function(e,t){var r=e[t];return e.splice(t,1),r},e.removeAll=function(e,t){for(var r=0;r<t.length;++r){var n=e.indexOf(t[r]);e.splice(n,1)}},e.remove=function(e,t){var r=e.indexOf(t);return r>-1?(e.splice(r,1),!0):!1},e.clear=function(e){e.length=0},e.isEmpty=function(e){return 0==e.length},e.fill=function(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=null),e.fill(t,r,null===n?e.length:n)},e.equals=function(e,t){if(e.length!=t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0},e.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},e.splice=function(e,t,r){return e.splice(t,r)},e.sort=function(e,t){c.isPresent(t)?e.sort(t):e.sort()},e.toString=function(e){return e.toString()},e.toJSON=function(e){return JSON.stringify(e)},e.maximum=function(e,t){if(0==e.length)return null;for(var r=null,n=-(1/0),i=0;i<e.length;i++){var o=e[i];if(!c.isBlank(o)){var a=t(o);a>n&&(r=o,n=a)}}return r},e.isImmutable=function(e){return Object.isSealed(e)},e}();t.ListWrapper=g,t.isListLikeIterable=n,t.areIterablesEqual=i,t.iterateListLike=o;var m=function(){var e=new t.Set([1,2,3]);return 3===e.size?function(e){return new t.Set(e)}:function(e){var r=new t.Set(e);if(r.size!==e.length)for(var n=0;n<e.length;n++)r.add(e[n]);return r}}(),v=function(){function e(){}return e.createFromList=function(e){return m(e)},e.has=function(e,t){return e.has(t)},e["delete"]=function(e,t){e["delete"](t)},e}();return t.SetWrapper=v,a.define=s,r.exports}),System.register("angular2/src/facade/base_wrapped_exception",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=function(e){function t(t){e.call(this,t)}return o(t,e),Object.defineProperty(t.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),t}(Error);return t.BaseWrappedException=a,n.define=i,r.exports}),System.register("angular2/src/facade/exception_handler",["angular2/src/facade/lang","angular2/src/facade/base_wrapped_exception","angular2/src/facade/collection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/facade/base_wrapped_exception"),s=e("angular2/src/facade/collection"),c=function(){function e(){this.res=[]}return e.prototype.log=function(e){this.res.push(e)},e.prototype.logError=function(e){this.res.push(e)},e.prototype.logGroup=function(e){this.res.push(e)},e.prototype.logGroupEnd=function(){},e}(),l=function(){function e(e,t){void 0===t&&(t=!0),this._logger=e,this._rethrowException=t}return e.exceptionToString=function(t,r,n){void 0===r&&(r=null),void 0===n&&(n=null);var i=new c,o=new e(i,!1);return o.call(t,r,n),i.res.join("\n")},e.prototype.call=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=this._findOriginalException(e),i=this._findOriginalStack(e),a=this._findContext(e);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(e)),o.isPresent(t)&&o.isBlank(i)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(t))),o.isPresent(r)&&this._logger.logError("REASON: "+r),o.isPresent(n)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(n)),o.isPresent(i)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(i))),o.isPresent(a)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(a)),this._logger.logGroupEnd(),this._rethrowException)throw e},e.prototype._extractMessage=function(e){return e instanceof a.BaseWrappedException?e.wrapperMessage:e.toString()},e.prototype._longStackTrace=function(e){return s.isListLikeIterable(e)?e.join("\n\n-----async gap-----\n"):e.toString()},e.prototype._findContext=function(e){try{return e instanceof a.BaseWrappedException?o.isPresent(e.context)?e.context:this._findContext(e.originalException):null}catch(t){return null}},e.prototype._findOriginalException=function(e){if(!(e instanceof a.BaseWrappedException))return null;for(var t=e.originalException;t instanceof a.BaseWrappedException&&o.isPresent(t.originalException);)t=t.originalException;return t},e.prototype._findOriginalStack=function(e){if(!(e instanceof a.BaseWrappedException))return null;for(var t=e,r=e.originalStack;t instanceof a.BaseWrappedException&&o.isPresent(t.originalException);)t=t.originalException,t instanceof a.BaseWrappedException&&o.isPresent(t.originalException)&&(r=t.originalStack);return r},e}();return t.ExceptionHandler=l,n.define=i,r.exports}),System.register("angular2/src/core/reflection/reflector",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection"],!0,function(e,t,r){function n(e,t){c.StringMapWrapper.forEach(t,function(t,r){return e.set(r,t)})}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/facade/lang"),s=e("angular2/src/facade/exceptions"),c=e("angular2/src/facade/collection"),l=function(){function e(e,t,r,n,i){this.annotations=e,this.parameters=t,this.factory=r,this.interfaces=n,this.propMetadata=i}return e}();t.ReflectionInfo=l;var u=function(){function e(e){this._injectableInfo=new c.Map,this._getters=new c.Map,this._setters=new c.Map,this._methods=new c.Map,this._usedKeys=null,this.reflectionCapabilities=e}return e.prototype.isReflectionEnabled=function(){return this.reflectionCapabilities.isReflectionEnabled()},e.prototype.trackUsage=function(){this._usedKeys=new c.Set},e.prototype.listUnusedKeys=function(){var e=this;if(null==this._usedKeys)throw new s.BaseException("Usage tracking is disabled");var t=c.MapWrapper.keys(this._injectableInfo);return t.filter(function(t){return!c.SetWrapper.has(e._usedKeys,t)})},e.prototype.registerFunction=function(e,t){this._injectableInfo.set(e,t)},e.prototype.registerType=function(e,t){this._injectableInfo.set(e,t)},e.prototype.registerGetters=function(e){n(this._getters,e)},e.prototype.registerSetters=function(e){n(this._setters,e)},e.prototype.registerMethods=function(e){n(this._methods,e)},e.prototype.factory=function(e){if(this._containsReflectionInfo(e)){var t=this._getReflectionInfo(e).factory;return a.isPresent(t)?t:null}return this.reflectionCapabilities.factory(e)},e.prototype.parameters=function(e){if(this._injectableInfo.has(e)){var t=this._getReflectionInfo(e).parameters;return a.isPresent(t)?t:[]}return this.reflectionCapabilities.parameters(e)},e.prototype.annotations=function(e){if(this._injectableInfo.has(e)){var t=this._getReflectionInfo(e).annotations;return a.isPresent(t)?t:[]}return this.reflectionCapabilities.annotations(e)},e.prototype.propMetadata=function(e){if(this._injectableInfo.has(e)){var t=this._getReflectionInfo(e).propMetadata;return a.isPresent(t)?t:{}}return this.reflectionCapabilities.propMetadata(e)},e.prototype.interfaces=function(e){if(this._injectableInfo.has(e)){var t=this._getReflectionInfo(e).interfaces;return a.isPresent(t)?t:[]}return this.reflectionCapabilities.interfaces(e)},e.prototype.getter=function(e){return this._getters.has(e)?this._getters.get(e):this.reflectionCapabilities.getter(e)},e.prototype.setter=function(e){return this._setters.has(e)?this._setters.get(e):this.reflectionCapabilities.setter(e)},e.prototype.method=function(e){return this._methods.has(e)?this._methods.get(e):this.reflectionCapabilities.method(e)},e.prototype._getReflectionInfo=function(e){return a.isPresent(this._usedKeys)&&this._usedKeys.add(e),this._injectableInfo.get(e)},e.prototype._containsReflectionInfo=function(e){return this._injectableInfo.has(e)},e.prototype.importUri=function(e){return this.reflectionCapabilities.importUri(e)},e}();return t.Reflector=u,i.define=o,r.exports}),System.register("angular2/src/core/reflection/reflection_capabilities",["angular2/src/facade/lang","angular2/src/facade/exceptions"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/facade/exceptions"),s=function(){function e(e){this._reflect=o.isPresent(e)?e:o.global.Reflect}return e.prototype.isReflectionEnabled=function(){return!0},e.prototype.factory=function(e){switch(e.length){case 0:return function(){return new e};case 1:return function(t){return new e(t)};case 2:return function(t,r){return new e(t,r)};case 3:return function(t,r,n){return new e(t,r,n)};case 4:return function(t,r,n,i){return new e(t,r,n,i)};case 5:return function(t,r,n,i,o){return new e(t,r,n,i,o)};case 6:return function(t,r,n,i,o,a){return new e(t,r,n,i,o,a)};case 7:return function(t,r,n,i,o,a,s){return new e(t,r,n,i,o,a,s)};case 8:return function(t,r,n,i,o,a,s,c){return new e(t,r,n,i,o,a,s,c)};case 9:return function(t,r,n,i,o,a,s,c,l){return new e(t,r,n,i,o,a,s,c,l)};case 10:return function(t,r,n,i,o,a,s,c,l,u){return new e(t,r,n,i,o,a,s,c,l,u)};case 11:return function(t,r,n,i,o,a,s,c,l,u,p){return new e(t,r,n,i,o,a,s,c,l,u,p)};case 12:return function(t,r,n,i,o,a,s,c,l,u,p,d){return new e(t,r,n,i,o,a,s,c,l,u,p,d)};case 13:return function(t,r,n,i,o,a,s,c,l,u,p,d,f){return new e(t,r,n,i,o,a,s,c,l,u,p,d,f)};case 14:return function(t,r,n,i,o,a,s,c,l,u,p,d,f,h){return new e(t,r,n,i,o,a,s,c,l,u,p,d,f,h)};case 15:return function(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g){return new e(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g)};case 16:return function(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g,m){return new e(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g,m)};case 17:return function(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g,m,v){return new e(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g,m,v)};case 18:return function(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g,m,v,y){return new e(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g,m,v,y)};case 19:return function(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g,m,v,y,_){return new e(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g,m,v,y,_)};case 20:return function(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g,m,v,y,_,b){return new e(t,r,n,i,o,a,s,c,l,u,p,d,f,h,g,m,v,y,_,b)}}throw new Error("Cannot create a factory for '"+o.stringify(e)+"' because its constructor has more than 20 arguments")},e.prototype._zipTypesAndAnnotations=function(e,t){var r;r="undefined"==typeof e?new Array(t.length):new Array(e.length);for(var n=0;n<r.length;n++)"undefined"==typeof e?r[n]=[]:e[n]!=Object?r[n]=[e[n]]:r[n]=[],o.isPresent(t)&&o.isPresent(t[n])&&(r[n]=r[n].concat(t[n]));return r},e.prototype.parameters=function(e){if(o.isPresent(e.parameters))return e.parameters;if(o.isPresent(this._reflect)&&o.isPresent(this._reflect.getMetadata)){var t=this._reflect.getMetadata("parameters",e),r=this._reflect.getMetadata("design:paramtypes",e);if(o.isPresent(r)||o.isPresent(t))return this._zipTypesAndAnnotations(r,t)}var n=new Array(e.length);return n.fill(void 0),n},e.prototype.annotations=function(e){if(o.isPresent(e.annotations)){var t=e.annotations;return o.isFunction(t)&&t.annotations&&(t=t.annotations),t}if(o.isPresent(this._reflect)&&o.isPresent(this._reflect.getMetadata)){var t=this._reflect.getMetadata("annotations",e);if(o.isPresent(t))return t}return[]},e.prototype.propMetadata=function(e){if(o.isPresent(e.propMetadata)){var t=e.propMetadata;return o.isFunction(t)&&t.propMetadata&&(t=t.propMetadata),t}if(o.isPresent(this._reflect)&&o.isPresent(this._reflect.getMetadata)){var t=this._reflect.getMetadata("propMetadata",e);if(o.isPresent(t))return t}return{}},e.prototype.interfaces=function(e){throw new a.BaseException("JavaScript does not support interfaces")},e.prototype.getter=function(e){return new Function("o","return o."+e+";")},e.prototype.setter=function(e){return new Function("o","v","return o."+e+" = v;")},e.prototype.method=function(e){var t="if (!o."+e+") throw new Error('\""+e+"\" is undefined');\n return o."+e+".apply(o, args);";return new Function("o","args",t)},e.prototype.importUri=function(e){return"./"},e}();return t.ReflectionCapabilities=s,n.define=i,r.exports}),System.register("angular2/src/core/di/key",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/core/di/forward_ref"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/facade/exceptions"),s=e("angular2/src/core/di/forward_ref"),c=function(){function e(e,t){if(this.token=e,this.id=t,o.isBlank(e))throw new a.BaseException("Token must be defined!")}return Object.defineProperty(e.prototype,"displayName",{get:function(){return o.stringify(this.token)},enumerable:!0,configurable:!0}),e.get=function(e){return u.get(s.resolveForwardRef(e))},Object.defineProperty(e,"numberOfKeys",{get:function(){return u.numberOfKeys},enumerable:!0,configurable:!0}),e}();t.Key=c;var l=function(){function e(){this._allKeys=new Map}return e.prototype.get=function(e){if(e instanceof c)return e;if(this._allKeys.has(e))return this._allKeys.get(e);var t=new c(e,c.numberOfKeys);return this._allKeys.set(e,t),t},Object.defineProperty(e.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),e}();t.KeyRegistry=l;var u=new l;return n.define=i,r.exports}),System.register("angular2/src/core/di/exceptions",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/facade/exceptions"],!0,function(e,t,r){function n(e){for(var t=[],r=0;r<e.length;++r){if(c.ListWrapper.contains(t,e[r]))return t.push(e[r]),t;t.push(e[r])}return t}function i(e){if(e.length>1){var t=n(c.ListWrapper.reversed(e)),r=t.map(function(e){return l.stringify(e.token)});return" ("+r.join(" -> ")+")"}return""}var o=System.global,a=o.define;o.define=void 0;var s=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=e("angular2/src/facade/collection"),l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/exceptions"),p=function(e){function t(t,r,n){e.call(this,"DI Exception"),this.keys=[r],this.injectors=[t],this.constructResolvingMessage=n,this.message=this.constructResolvingMessage(this.keys)}return s(t,e),t.prototype.addKey=function(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)},Object.defineProperty(t.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),t}(u.BaseException);t.AbstractProviderError=p;var d=function(e){function t(t,r){e.call(this,t,r,function(e){var t=l.stringify(c.ListWrapper.first(e).token);return"No provider for "+t+"!"+i(e)})}return s(t,e),t}(p);t.NoProviderError=d;var f=function(e){function t(t,r){e.call(this,t,r,function(e){return"Cannot instantiate cyclic dependency!"+i(e)})}return s(t,e),t}(p);t.CyclicDependencyError=f;var h=function(e){function t(t,r,n,i){e.call(this,"DI Exception",r,n,null),this.keys=[i],this.injectors=[t]}return s(t,e),t.prototype.addKey=function(e,t){this.injectors.push(e),this.keys.push(t)},Object.defineProperty(t.prototype,"wrapperMessage",{get:function(){var e=l.stringify(c.ListWrapper.first(this.keys).token);return"Error during instantiation of "+e+"!"+i(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),t}(u.WrappedException);t.InstantiationError=h;var g=function(e){function t(t){e.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+t.toString())}return s(t,e),t}(u.BaseException);t.InvalidProviderError=g;var m=function(e){function t(r,n){e.call(this,t._genMessage(r,n))}return s(t,e),t._genMessage=function(e,t){for(var r=[],n=0,i=t.length;i>n;n++){var o=t[n];l.isBlank(o)||0==o.length?r.push("?"):r.push(o.map(l.stringify).join(" "))}return"Cannot resolve all parameters for '"+l.stringify(e)+"'("+r.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+l.stringify(e)+"' is decorated with Injectable."},t}(u.BaseException);t.NoAnnotationError=m;var v=function(e){function t(t){e.call(this,"Index "+t+" is out-of-bounds.")}return s(t,e),t}(u.BaseException);t.OutOfBoundsError=v;var y=function(e){function t(t,r){e.call(this,"Cannot mix multi providers and regular providers, got: "+t.toString()+" "+r.toString())}return s(t,e),t}(u.BaseException);return t.MixingMultiProvidersWithRegularProvidersError=y,o.define=a,r.exports}),System.register("angular2/src/core/di/opaque_token",["angular2/src/facade/lang"],!0,function(e,t,r){ var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=function(){function e(e){this._desc=e}return e.prototype.toString=function(){return"Token "+this._desc},e=o([s.CONST(),a("design:paramtypes",[String])],e)}();return t.OpaqueToken=c,n.define=i,r.exports}),System.register("angular2/src/animate/css_animation_options",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=function(){function e(){this.classesToAdd=[],this.classesToRemove=[],this.animationClasses=[]}return e}();return t.CssAnimationOptions=o,n.define=i,r.exports}),System.register("angular2/src/facade/math",["angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang");return t.Math=o.global.Math,t.NaN=typeof t.NaN,n.define=i,r.exports}),System.register("angular2/src/platform/dom/util",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){return s.StringWrapper.replaceAllMapped(e,c,function(e){return"-"+e[1].toLowerCase()})}function i(e){return s.StringWrapper.replaceAllMapped(e,l,function(e){return e[1].toUpperCase()})}var o=System.global,a=o.define;o.define=void 0;var s=e("angular2/src/facade/lang"),c=/([A-Z])/g,l=/-([a-z])/g;return t.camelCaseToDashCase=n,t.dashCaseToCamelCase=i,o.define=a,r.exports}),System.register("angular2/src/animate/browser_details",["angular2/src/core/di","angular2/src/facade/math","angular2/src/platform/dom/dom_adapter"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/core/di"),c=e("angular2/src/facade/math"),l=e("angular2/src/platform/dom/dom_adapter"),u=function(){function e(){this.elapsedTimeIncludesDelay=!1,this.doesElapsedTimeIncludesDelay()}return e.prototype.doesElapsedTimeIncludesDelay=function(){var e=this,t=l.DOM.createElement("div");l.DOM.setAttribute(t,"style","position: absolute; top: -9999px; left: -9999px; width: 1px;\n height: 1px; transition: all 1ms linear 1ms;"),this.raf(function(r){l.DOM.on(t,"transitionend",function(r){var n=c.Math.round(1e3*r.elapsedTime);e.elapsedTimeIncludesDelay=2==n,l.DOM.remove(t)}),l.DOM.setStyle(t,"width","2px")},2)},e.prototype.raf=function(e,t){void 0===t&&(t=1);var r=new p(e,t);return function(){return r.cancel()}},e=o([s.Injectable(),a("design:paramtypes",[])],e)}();t.BrowserDetails=u;var p=function(){function e(e,t){this.callback=e,this.frames=t,this._raf()}return e.prototype._raf=function(){var e=this;this.currentFrameId=l.DOM.requestAnimationFrame(function(t){return e._nextFrame(t)})},e.prototype._nextFrame=function(e){this.frames--,this.frames>0?this._raf():this.callback(e)},e.prototype.cancel=function(){l.DOM.cancelAnimationFrame(this.currentFrameId),this.currentFrameId=null},e}();return n.define=i,r.exports}),System.register("angular2/src/platform/dom/dom_tokens",["angular2/src/core/di","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/di"),a=e("angular2/src/facade/lang");return t.DOCUMENT=a.CONST_EXPR(new o.OpaqueToken("DocumentToken")),n.define=i,r.exports}),System.register("angular2/src/facade/promise",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=function(){function e(){}return e.resolve=function(e){return Promise.resolve(e)},e.reject=function(e,t){return Promise.reject(e)},e.catchError=function(e,t){return e["catch"](t)},e.all=function(e){return 0==e.length?Promise.resolve([]):Promise.all(e)},e.then=function(e,t,r){return e.then(t,r)},e.wrap=function(e){return new Promise(function(t,r){try{t(e())}catch(n){r(n)}})},e.scheduleMicrotask=function(t){e.then(e.resolve(null),t,function(e){})},e.isPromise=function(e){return e instanceof Promise},e.completer=function(){var e,t,r=new Promise(function(r,n){e=r,t=n});return{promise:r,resolve:e,reject:t}},e}();return t.PromiseWrapper=o,n.define=i,r.exports}),System.register("angular2/src/core/profile/wtf_impl",["angular2/src/facade/lang"],!0,function(e,t,r){function n(){var e=d.global.wtf;return e&&(u=e.trace)?(p=u.events,!0):!1}function i(e,t){return void 0===t&&(t=null),p.createScope(e,t)}function o(e,t){return u.leaveScope(e,t),t}function a(e,t){return u.beginTimeRange(e,t)}function s(e){u.endTimeRange(e)}var c=System.global,l=c.define;c.define=void 0;var u,p,d=e("angular2/src/facade/lang");return t.detectWTF=n,t.createScope=i,t.leave=o,t.startTimeRange=a,t.endTimeRange=s,c.define=l,r.exports}),System.register("angular2/src/core/metadata/di",["angular2/src/facade/lang","angular2/src/core/di","angular2/src/core/di/metadata"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/facade/lang"),l=e("angular2/src/core/di"),u=e("angular2/src/core/di/metadata"),p=function(e){function t(t){e.call(this),this.attributeName=t}return o(t,e),Object.defineProperty(t.prototype,"token",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"@Attribute("+c.stringify(this.attributeName)+")"},t=a([c.CONST(),s("design:paramtypes",[String])],t)}(u.DependencyMetadata);t.AttributeMetadata=p;var d=function(e){function t(t,r){var n=void 0===r?{}:r,i=n.descendants,o=void 0===i?!1:i,a=n.first,s=void 0===a?!1:a;e.call(this),this._selector=t,this.descendants=o,this.first=s}return o(t,e),Object.defineProperty(t.prototype,"isViewQuery",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selector",{get:function(){return l.resolveForwardRef(this._selector)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVarBindingQuery",{get:function(){return c.isString(this.selector)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"varBindings",{get:function(){return this.selector.split(",")},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"@Query("+c.stringify(this.selector)+")"},t=a([c.CONST(),s("design:paramtypes",[Object,Object])],t)}(u.DependencyMetadata);t.QueryMetadata=d;var f=function(e){function t(t,r){var n=(void 0===r?{}:r).descendants,i=void 0===n?!1:n;e.call(this,t,{descendants:i})}return o(t,e),t=a([c.CONST(),s("design:paramtypes",[Object,Object])],t)}(d);t.ContentChildrenMetadata=f;var h=function(e){function t(t){e.call(this,t,{descendants:!0,first:!0})}return o(t,e),t=a([c.CONST(),s("design:paramtypes",[Object])],t)}(d);t.ContentChildMetadata=h;var g=function(e){function t(t,r){var n=void 0===r?{}:r,i=n.descendants,o=void 0===i?!1:i,a=n.first,s=void 0===a?!1:a;e.call(this,t,{descendants:o,first:s})}return o(t,e),Object.defineProperty(t.prototype,"isViewQuery",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"@ViewQuery("+c.stringify(this.selector)+")"},t=a([c.CONST(),s("design:paramtypes",[Object,Object])],t)}(d);t.ViewQueryMetadata=g;var m=function(e){function t(t){e.call(this,t,{descendants:!0})}return o(t,e),t=a([c.CONST(),s("design:paramtypes",[Object])],t)}(g);t.ViewChildrenMetadata=m;var v=function(e){function t(t){e.call(this,t,{descendants:!0,first:!0})}return o(t,e),t=a([c.CONST(),s("design:paramtypes",[Object])],t)}(g);return t.ViewChildMetadata=v,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/differs/iterable_differs",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/di"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/src/facade/exceptions"),l=e("angular2/src/facade/collection"),u=e("angular2/src/core/di"),p=function(){function e(e){this.factories=e}return e.create=function(t,r){if(s.isPresent(r)){var n=l.ListWrapper.clone(r.factories);return t=t.concat(n),new e(t)}return new e(t)},e.extend=function(t){return new u.Provider(e,{useFactory:function(r){if(s.isBlank(r))throw new c.BaseException("Cannot extend IterableDiffers without a parent injector");return e.create(t,r)},deps:[[e,new u.SkipSelfMetadata,new u.OptionalMetadata]]})},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(s.isPresent(t))return t;throw new c.BaseException("Cannot find a differ supporting object '"+e+"'")},e=o([u.Injectable(),s.CONST(),a("design:paramtypes",[Array])],e)}();return t.IterableDiffers=p,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/differs/default_iterable_differ",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/src/facade/exceptions"),l=e("angular2/src/facade/collection"),u=e("angular2/src/facade/lang"),p=function(){function e(){}return e.prototype.supports=function(e){return l.isListLikeIterable(e)},e.prototype.create=function(e,t){return new f(t)},e=o([s.CONST(),a("design:paramtypes",[])],e)}();t.DefaultIterableDifferFactory=p;var d=function(e,t){return t},f=function(){function e(e){this._trackByFn=e,this._length=null,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=u.isPresent(this._trackByFn)?this._trackByFn:d}return Object.defineProperty(e.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(u.isBlank(e)&&(e=[]),!l.isListLikeIterable(e))throw new c.BaseException("Error trying to diff '"+e+"'");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var r,n,i,o=this._itHead,a=!1;if(u.isArray(e)){if(e!==this._collection||!l.ListWrapper.isImmutable(e)){var s=e;for(this._length=e.length,r=0;r<this._length;r++)n=s[r],i=this._trackByFn(r,n),null!==o&&u.looseIdentical(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,n,i,r)),u.looseIdentical(o.item,n)||this._addIdentityChange(o,n)):(o=this._mismatch(o,n,i,r),a=!0),o=o._next;this._truncate(o)}}else r=0,l.iterateListLike(e,function(e){i=t._trackByFn(r,e),null!==o&&u.looseIdentical(o.trackById,i)?(a&&(o=t._verifyReinsertion(o,e,i,r)),u.looseIdentical(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,r),a=!0),o=o._next,r++}),this._length=r,this._truncate(o);return this._collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,r,n){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),e=null===this._linkedRecords?null:this._linkedRecords.get(r,n),null!==e?(u.looseIdentical(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,n)):(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r),null!==e?(u.looseIdentical(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,n)):e=this._addAfter(new h(t,r),i,n)),e},e.prototype._verifyReinsertion=function(e,t,r,n){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r);return null!==i?e=this._reinsertAfter(i,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var n=e._prevRemoved,i=e._nextRemoved;return null===n?this._removalsHead=i:n._nextRemoved=i,null===i?this._removalsTail=n:i._prevRemoved=n,this._insertAfter(e,t,r),this._addToMoves(e,r),e},e.prototype._moveAfter=function(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e},e.prototype._addAfter=function(e,t,r){return this._insertAfter(e,t,r),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,r){var n=null===t?this._itHead:t._next;return e._next=n,e._prev=t,null===n?this._itTail=e:n._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new m),this._linkedRecords.put(e),e.currentIndex=r,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new m),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e},e.prototype.toString=function(){var e=[];this.forEachItem(function(t){return e.push(t)});var t=[];this.forEachPreviousItem(function(e){return t.push(e)});var r=[];this.forEachAddedItem(function(e){return r.push(e)});var n=[];this.forEachMovedItem(function(e){return n.push(e)});var i=[];this.forEachRemovedItem(function(e){return i.push(e)});var o=[];return this.forEachIdentityChange(function(e){return o.push(e)}),"collection: "+e.join(", ")+"\nprevious: "+t.join(", ")+"\nadditions: "+r.join(", ")+"\nmoves: "+n.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},e}();t.DefaultIterableDiffer=f;var h=function(){function e(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return e.prototype.toString=function(){return this.previousIndex===this.currentIndex?u.stringify(this.item):u.stringify(this.item)+"["+u.stringify(this.previousIndex)+"->"+u.stringify(this.currentIndex)+"]"},e}();t.CollectionChangeRecord=h;var g=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<r.currentIndex)&&u.looseIdentical(r.trackById,e))return r;return null},e.prototype.remove=function(e){var t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head},e}(),m=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=u.getMapKey(e.trackById),r=this.map.get(t);u.isPresent(r)||(r=new g,this.map.set(t,r)),r.add(e)},e.prototype.get=function(e,t){void 0===t&&(t=null);var r=u.getMapKey(e),n=this.map.get(r);return u.isBlank(n)?null:n.get(e,t)},e.prototype.remove=function(e){var t=u.getMapKey(e.trackById),r=this.map.get(t);return r.remove(e)&&this.map["delete"](t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.toString=function(){return"_DuplicateMap("+u.stringify(this.map)+")"},e}();return n.define=i,r.exports}),System.register("angular2/src/core/change_detection/differs/keyvalue_differs",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/di"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/src/facade/exceptions"),l=e("angular2/src/facade/collection"),u=e("angular2/src/core/di"),p=function(){function e(e){this.factories=e}return e.create=function(t,r){if(s.isPresent(r)){var n=l.ListWrapper.clone(r.factories);return t=t.concat(n),new e(t)}return new e(t)},e.extend=function(t){return new u.Provider(e,{useFactory:function(r){if(s.isBlank(r))throw new c.BaseException("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,r)},deps:[[e,new u.SkipSelfMetadata,new u.OptionalMetadata]]})},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(s.isPresent(t))return t;throw new c.BaseException("Cannot find a differ supporting object '"+e+"'")},e=o([u.Injectable(),s.CONST(),a("design:paramtypes",[Array])],e)}();return t.KeyValueDiffers=p,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/differs/default_keyvalue_differ",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/facade/exceptions"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/collection"),c=e("angular2/src/facade/lang"),l=e("angular2/src/facade/exceptions"),u=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||c.isJsObject(e)},e.prototype.create=function(e){return new p},e=o([c.CONST(),a("design:paramtypes",[])],e)}();t.DefaultKeyValueDifferFactory=u;var p=function(){function e(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(c.isBlank(e)&&(e=s.MapWrapper.createFromPairs([])),!(e instanceof Map||c.isJsObject(e)))throw new l.BaseException("Error trying to diff '"+e+"'");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var r=this._records,n=this._mapHead,i=null,o=null,a=!1;return this._forEach(e,function(e,s){var l;null!==n&&s===n.key?(l=n,c.looseIdentical(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,t._addToChanges(n))):(a=!0,null!==n&&(n._next=null,t._removeFromSeq(i,n),t._addToRemovals(n)),r.has(s)?l=r.get(s):(l=new d(s),r.set(s,l),l.currentValue=e,t._addToAdditions(l))),a&&(t._isInRemovals(l)&&t._removeFromRemovals(l),null==o?t._mapHead=l:o._next=l),i=n,o=l,n=null===n?null:n._next}),this._truncate(i,n),this.isDirty},e.prototype._reset=function(){if(this.isDirty){var e;for(e=this._previousMapHead=this._mapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},e.prototype._truncate=function(e,t){for(;null!==t;){null===e?this._mapHead=null:e._next=null;var r=t._next;this._addToRemovals(t),e=t,t=r}for(var n=this._removalsHead;null!==n;n=n._nextRemoved)n.previousValue=n.currentValue,n.currentValue=null,this._records["delete"](n.key)},e.prototype._isInRemovals=function(e){return e===this._removalsHead||null!==e._nextRemoved||null!==e._prevRemoved},e.prototype._addToRemovals=function(e){null===this._removalsHead?this._removalsHead=this._removalsTail=e:(this._removalsTail._nextRemoved=e,e._prevRemoved=this._removalsTail,this._removalsTail=e)},e.prototype._removeFromSeq=function(e,t){var r=t._next;null===e?this._mapHead=r:e._next=r},e.prototype._removeFromRemovals=function(e){var t=e._prevRemoved,r=e._nextRemoved;null===t?this._removalsHead=r:t._nextRemoved=r,null===r?this._removalsTail=t:r._prevRemoved=t,e._prevRemoved=e._nextRemoved=null},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype.toString=function(){var e,t=[],r=[],n=[],i=[],o=[];for(e=this._mapHead;null!==e;e=e._next)t.push(c.stringify(e));for(e=this._previousMapHead;null!==e;e=e._nextPrevious)r.push(c.stringify(e));for(e=this._changesHead;null!==e;e=e._nextChanged)n.push(c.stringify(e));for(e=this._additionsHead;null!==e;e=e._nextAdded)i.push(c.stringify(e));for(e=this._removalsHead;null!==e;e=e._nextRemoved)o.push(c.stringify(e));return"map: "+t.join(", ")+"\nprevious: "+r.join(", ")+"\nadditions: "+i.join(", ")+"\nchanges: "+n.join(", ")+"\nremovals: "+o.join(", ")+"\n"},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):s.StringMapWrapper.forEach(e,t)},e}();t.DefaultKeyValueDiffer=p;var d=function(){function e(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return e.prototype.toString=function(){return c.looseIdentical(this.previousValue,this.currentValue)?c.stringify(this.key):c.stringify(this.key)+"["+c.stringify(this.previousValue)+"->"+c.stringify(this.currentValue)+"]"},e}();return t.KeyValueChangeRecord=d,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/parser/ast",["angular2/src/facade/collection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/facade/collection"),s=function(){function e(){}return e.prototype.visit=function(e){return null},e.prototype.toString=function(){return"AST"},e}();t.AST=s;var c=function(e){function t(t,r,n){e.call(this),this.prefix=t,this.uninterpretedExpression=r,this.location=n}return o(t,e),t.prototype.visit=function(e){return e.visitQuote(this)},t.prototype.toString=function(){return"Quote"},t}(s);t.Quote=c;var l=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.visit=function(e){},t}(s);t.EmptyExpr=l;var u=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.visit=function(e){return e.visitImplicitReceiver(this)},t}(s);t.ImplicitReceiver=u;var p=function(e){function t(t){e.call(this),this.expressions=t}return o(t,e),t.prototype.visit=function(e){return e.visitChain(this)},t}(s);t.Chain=p;var d=function(e){function t(t,r,n){e.call(this),this.condition=t,this.trueExp=r,this.falseExp=n}return o(t,e),t.prototype.visit=function(e){return e.visitConditional(this)},t}(s);t.Conditional=d;var f=function(e){function t(t,r,n){e.call(this),this.receiver=t,this.name=r,this.getter=n}return o(t,e),t.prototype.visit=function(e){return e.visitPropertyRead(this)},t}(s);t.PropertyRead=f;var h=function(e){function t(t,r,n,i){e.call(this),this.receiver=t,this.name=r,this.setter=n,this.value=i}return o(t,e),t.prototype.visit=function(e){return e.visitPropertyWrite(this)},t}(s);t.PropertyWrite=h;var g=function(e){function t(t,r,n){e.call(this),this.receiver=t,this.name=r,this.getter=n}return o(t,e),t.prototype.visit=function(e){return e.visitSafePropertyRead(this)},t}(s);t.SafePropertyRead=g;var m=function(e){function t(t,r){e.call(this),this.obj=t,this.key=r}return o(t,e),t.prototype.visit=function(e){return e.visitKeyedRead(this)},t}(s);t.KeyedRead=m;var v=function(e){function t(t,r,n){e.call(this),this.obj=t,this.key=r,this.value=n}return o(t,e),t.prototype.visit=function(e){return e.visitKeyedWrite(this)},t}(s);t.KeyedWrite=v;var y=function(e){function t(t,r,n){e.call(this),this.exp=t,this.name=r,this.args=n}return o(t,e),t.prototype.visit=function(e){return e.visitPipe(this)},t}(s);t.BindingPipe=y;var _=function(e){function t(t){e.call(this),this.value=t}return o(t,e),t.prototype.visit=function(e){return e.visitLiteralPrimitive(this)},t}(s);t.LiteralPrimitive=_;var b=function(e){function t(t){e.call(this),this.expressions=t}return o(t,e),t.prototype.visit=function(e){return e.visitLiteralArray(this)},t}(s);t.LiteralArray=b;var C=function(e){function t(t,r){e.call(this),this.keys=t,this.values=r}return o(t,e),t.prototype.visit=function(e){return e.visitLiteralMap(this)},t}(s);t.LiteralMap=C;var w=function(e){function t(t,r){e.call(this),this.strings=t,this.expressions=r}return o(t,e),t.prototype.visit=function(e){return e.visitInterpolation(this)},t}(s);t.Interpolation=w;var P=function(e){function t(t,r,n){e.call(this),this.operation=t,this.left=r,this.right=n}return o(t,e),t.prototype.visit=function(e){return e.visitBinary(this)},t}(s);t.Binary=P;var E=function(e){function t(t){e.call(this),this.expression=t}return o(t,e),t.prototype.visit=function(e){return e.visitPrefixNot(this)},t}(s);t.PrefixNot=E;var S=function(e){function t(t,r,n,i){e.call(this),this.receiver=t,this.name=r,this.fn=n,this.args=i}return o(t,e),t.prototype.visit=function(e){return e.visitMethodCall(this)},t}(s);t.MethodCall=S;var R=function(e){function t(t,r,n,i){e.call(this),this.receiver=t,this.name=r,this.fn=n,this.args=i}return o(t,e),t.prototype.visit=function(e){return e.visitSafeMethodCall(this)},t}(s);t.SafeMethodCall=R;var x=function(e){function t(t,r){e.call(this),this.target=t,this.args=r}return o(t,e),t.prototype.visit=function(e){return e.visitFunctionCall(this)},t}(s);t.FunctionCall=x;var O=function(e){function t(t,r,n){e.call(this),this.ast=t,this.source=r,this.location=n}return o(t,e),t.prototype.visit=function(e){return this.ast.visit(e)},t.prototype.toString=function(){return this.source+" in "+this.location},t}(s);t.ASTWithSource=O;var D=function(){function e(e,t,r,n){this.key=e,this.keyIsVar=t,this.name=r,this.expression=n}return e}();t.TemplateBinding=D;var A=function(){ function e(){}return e.prototype.visitBinary=function(e){return e.left.visit(this),e.right.visit(this),null},e.prototype.visitChain=function(e){return this.visitAll(e.expressions)},e.prototype.visitConditional=function(e){return e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this),null},e.prototype.visitPipe=function(e){return e.exp.visit(this),this.visitAll(e.args),null},e.prototype.visitFunctionCall=function(e){return e.target.visit(this),this.visitAll(e.args),null},e.prototype.visitImplicitReceiver=function(e){return null},e.prototype.visitInterpolation=function(e){return this.visitAll(e.expressions)},e.prototype.visitKeyedRead=function(e){return e.obj.visit(this),e.key.visit(this),null},e.prototype.visitKeyedWrite=function(e){return e.obj.visit(this),e.key.visit(this),e.value.visit(this),null},e.prototype.visitLiteralArray=function(e){return this.visitAll(e.expressions)},e.prototype.visitLiteralMap=function(e){return this.visitAll(e.values)},e.prototype.visitLiteralPrimitive=function(e){return null},e.prototype.visitMethodCall=function(e){return e.receiver.visit(this),this.visitAll(e.args)},e.prototype.visitPrefixNot=function(e){return e.expression.visit(this),null},e.prototype.visitPropertyRead=function(e){return e.receiver.visit(this),null},e.prototype.visitPropertyWrite=function(e){return e.receiver.visit(this),e.value.visit(this),null},e.prototype.visitSafePropertyRead=function(e){return e.receiver.visit(this),null},e.prototype.visitSafeMethodCall=function(e){return e.receiver.visit(this),this.visitAll(e.args)},e.prototype.visitAll=function(e){var t=this;return e.forEach(function(e){return e.visit(t)}),null},e.prototype.visitQuote=function(e){return null},e}();t.RecursiveAstVisitor=A;var T=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e){return e},e.prototype.visitInterpolation=function(e){return new w(e.strings,this.visitAll(e.expressions))},e.prototype.visitLiteralPrimitive=function(e){return new _(e.value)},e.prototype.visitPropertyRead=function(e){return new f(e.receiver.visit(this),e.name,e.getter)},e.prototype.visitPropertyWrite=function(e){return new h(e.receiver.visit(this),e.name,e.setter,e.value)},e.prototype.visitSafePropertyRead=function(e){return new g(e.receiver.visit(this),e.name,e.getter)},e.prototype.visitMethodCall=function(e){return new S(e.receiver.visit(this),e.name,e.fn,this.visitAll(e.args))},e.prototype.visitSafeMethodCall=function(e){return new R(e.receiver.visit(this),e.name,e.fn,this.visitAll(e.args))},e.prototype.visitFunctionCall=function(e){return new x(e.target.visit(this),this.visitAll(e.args))},e.prototype.visitLiteralArray=function(e){return new b(this.visitAll(e.expressions))},e.prototype.visitLiteralMap=function(e){return new C(e.keys,this.visitAll(e.values))},e.prototype.visitBinary=function(e){return new P(e.operation,e.left.visit(this),e.right.visit(this))},e.prototype.visitPrefixNot=function(e){return new E(e.expression.visit(this))},e.prototype.visitConditional=function(e){return new d(e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))},e.prototype.visitPipe=function(e){return new y(e.exp.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitKeyedRead=function(e){return new m(e.obj.visit(this),e.key.visit(this))},e.prototype.visitKeyedWrite=function(e){return new v(e.obj.visit(this),e.key.visit(this),e.value.visit(this))},e.prototype.visitAll=function(e){for(var t=a.ListWrapper.createFixedSize(e.length),r=0;r<e.length;++r)t[r]=e[r].visit(this);return t},e.prototype.visitChain=function(e){return new p(this.visitAll(e.expressions))},e.prototype.visitQuote=function(e){return new c(e.prefix,e.uninterpretedExpression,e.location)},e}();return t.AstTransformer=T,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/parser/lexer",["angular2/src/core/di/decorators","angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/facade/exceptions"],!0,function(e,t,r){function n(e,t){return new O(e,R.Character,t,E.StringWrapper.fromCharCode(t))}function i(e,t){return new O(e,R.Identifier,0,t)}function o(e,t){return new O(e,R.Keyword,0,t)}function a(e,t){return new O(e,R.Operator,0,t)}function s(e,t){return new O(e,R.String,0,t)}function c(e,t){return new O(e,R.Number,t,"")}function l(e){return e>=t.$TAB&&e<=t.$SPACE||e==G}function u(e){return e>=M&&q>=e||e>=T&&k>=e||e==V||e==t.$$}function p(e){if(0==e.length)return!1;var r=new z(e);if(!u(r.peek))return!1;for(r.advance();r.peek!==t.$EOF;){if(!d(r.peek))return!1;r.advance()}return!0}function d(e){return e>=M&&q>=e||e>=T&&k>=e||e>=D&&A>=e||e==V||e==t.$$}function f(e){return e>=D&&A>=e}function h(e){return e==j||e==I}function g(e){return e==t.$MINUS||e==t.$PLUS}function m(e){switch(e){case L:return t.$LF;case B:return t.$FF;case F:return t.$CR;case W:return t.$TAB;case H:return t.$VTAB;default:return e}}var v=System.global,y=v.define;v.define=void 0;var _=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},b=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},C=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},w=e("angular2/src/core/di/decorators"),P=e("angular2/src/facade/collection"),E=e("angular2/src/facade/lang"),S=e("angular2/src/facade/exceptions");!function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.Keyword=2]="Keyword",e[e.String=3]="String",e[e.Operator=4]="Operator",e[e.Number=5]="Number"}(t.TokenType||(t.TokenType={}));var R=t.TokenType,x=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new z(e),r=[],n=t.scanToken();null!=n;)r.push(n),n=t.scanToken();return r},e=b([w.Injectable(),C("design:paramtypes",[])],e)}();t.Lexer=x;var O=function(){function e(e,t,r,n){this.index=e,this.type=t,this.numValue=r,this.strValue=n}return e.prototype.isCharacter=function(e){return this.type==R.Character&&this.numValue==e},e.prototype.isNumber=function(){return this.type==R.Number},e.prototype.isString=function(){return this.type==R.String},e.prototype.isOperator=function(e){return this.type==R.Operator&&this.strValue==e},e.prototype.isIdentifier=function(){return this.type==R.Identifier},e.prototype.isKeyword=function(){return this.type==R.Keyword},e.prototype.isKeywordVar=function(){return this.type==R.Keyword&&"var"==this.strValue},e.prototype.isKeywordNull=function(){return this.type==R.Keyword&&"null"==this.strValue},e.prototype.isKeywordUndefined=function(){return this.type==R.Keyword&&"undefined"==this.strValue},e.prototype.isKeywordTrue=function(){return this.type==R.Keyword&&"true"==this.strValue},e.prototype.isKeywordFalse=function(){return this.type==R.Keyword&&"false"==this.strValue},e.prototype.toNumber=function(){return this.type==R.Number?this.numValue:-1},e.prototype.toString=function(){switch(this.type){case R.Character:case R.Identifier:case R.Keyword:case R.Operator:case R.String:return this.strValue;case R.Number:return this.numValue.toString();default:return null}},e}();t.Token=O,t.EOF=new O(-1,R.Character,0,""),t.$EOF=0,t.$TAB=9,t.$LF=10,t.$VTAB=11,t.$FF=12,t.$CR=13,t.$SPACE=32,t.$BANG=33,t.$DQ=34,t.$HASH=35,t.$$=36,t.$PERCENT=37,t.$AMPERSAND=38,t.$SQ=39,t.$LPAREN=40,t.$RPAREN=41,t.$STAR=42,t.$PLUS=43,t.$COMMA=44,t.$MINUS=45,t.$PERIOD=46,t.$SLASH=47,t.$COLON=58,t.$SEMICOLON=59,t.$LT=60,t.$EQ=61,t.$GT=62,t.$QUESTION=63;var D=48,A=57,T=65,I=69,k=90;t.$LBRACKET=91,t.$BACKSLASH=92,t.$RBRACKET=93;var N=94,V=95,M=97,j=101,B=102,L=110,F=114,W=116,U=117,H=118,q=122;t.$LBRACE=123,t.$BAR=124,t.$RBRACE=125;var G=160,K=function(e){function t(t){e.call(this),this.message=t}return _(t,e),t.prototype.toString=function(){return this.message},t}(S.BaseException);t.ScannerError=K;var z=function(){function e(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return e.prototype.advance=function(){this.peek=++this.index>=this.length?t.$EOF:E.StringWrapper.charCodeAt(this.input,this.index)},e.prototype.scanToken=function(){for(var e=this.input,r=this.length,i=this.peek,o=this.index;i<=t.$SPACE;){if(++o>=r){i=t.$EOF;break}i=E.StringWrapper.charCodeAt(e,o)}if(this.peek=i,this.index=o,o>=r)return null;if(u(i))return this.scanIdentifier();if(f(i))return this.scanNumber(o);var a=o;switch(i){case t.$PERIOD:return this.advance(),f(this.peek)?this.scanNumber(a):n(a,t.$PERIOD);case t.$LPAREN:case t.$RPAREN:case t.$LBRACE:case t.$RBRACE:case t.$LBRACKET:case t.$RBRACKET:case t.$COMMA:case t.$COLON:case t.$SEMICOLON:return this.scanCharacter(a,i);case t.$SQ:case t.$DQ:return this.scanString();case t.$HASH:case t.$PLUS:case t.$MINUS:case t.$STAR:case t.$SLASH:case t.$PERCENT:case N:return this.scanOperator(a,E.StringWrapper.fromCharCode(i));case t.$QUESTION:return this.scanComplexOperator(a,"?",t.$PERIOD,".");case t.$LT:case t.$GT:return this.scanComplexOperator(a,E.StringWrapper.fromCharCode(i),t.$EQ,"=");case t.$BANG:case t.$EQ:return this.scanComplexOperator(a,E.StringWrapper.fromCharCode(i),t.$EQ,"=",t.$EQ,"=");case t.$AMPERSAND:return this.scanComplexOperator(a,"&",t.$AMPERSAND,"&");case t.$BAR:return this.scanComplexOperator(a,"|",t.$BAR,"|");case G:for(;l(this.peek);)this.advance();return this.scanToken()}return this.error("Unexpected character ["+E.StringWrapper.fromCharCode(i)+"]",0),null},e.prototype.scanCharacter=function(e,t){return this.advance(),n(e,t)},e.prototype.scanOperator=function(e,t){return this.advance(),a(e,t)},e.prototype.scanComplexOperator=function(e,t,r,n,i,o){this.advance();var s=t;return this.peek==r&&(this.advance(),s+=n),E.isPresent(i)&&this.peek==i&&(this.advance(),s+=o),a(e,s)},e.prototype.scanIdentifier=function(){var e=this.index;for(this.advance();d(this.peek);)this.advance();var t=this.input.substring(e,this.index);return P.SetWrapper.has($,t)?o(e,t):i(e,t)},e.prototype.scanNumber=function(e){var r=this.index===e;for(this.advance();;){if(f(this.peek));else if(this.peek==t.$PERIOD)r=!1;else{if(!h(this.peek))break;this.advance(),g(this.peek)&&this.advance(),f(this.peek)||this.error("Invalid exponent",-1),r=!1}this.advance()}var n=this.input.substring(e,this.index),i=r?E.NumberWrapper.parseIntAutoRadix(n):E.NumberWrapper.parseFloat(n);return c(e,i)},e.prototype.scanString=function(){var e=this.index,r=this.peek;this.advance();for(var n,i=this.index,o=this.input;this.peek!=r;)if(this.peek==t.$BACKSLASH){null==n&&(n=new E.StringJoiner),n.add(o.substring(i,this.index)),this.advance();var a;if(this.peek==U){var c=o.substring(this.index+1,this.index+5);try{a=E.NumberWrapper.parseInt(c,16)}catch(l){this.error("Invalid unicode escape [\\u"+c+"]",0)}for(var u=0;5>u;u++)this.advance()}else a=m(this.peek),this.advance();n.add(E.StringWrapper.fromCharCode(a)),i=this.index}else this.peek==t.$EOF?this.error("Unterminated quote",0):this.advance();var p=o.substring(i,this.index);this.advance();var d=p;return null!=n&&(n.add(p),d=n.toString()),s(e,d)},e.prototype.error=function(e,t){var r=this.index+t;throw new K("Lexer Error: "+e+" at column "+r+" in expression ["+this.input+"]")},e}();t.isIdentifier=p;var $=(P.SetWrapper.createFromList(["+","-","*","/","%","^","=","==","!=","===","!==","<",">","<=",">=","&&","||","&","|","!","?","#","?."]),P.SetWrapper.createFromList(["var","null","undefined","true","false","if","else"]));return v.define=y,r.exports}),System.register("angular2/src/core/change_detection/parser/parser",["angular2/src/core/di/decorators","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/change_detection/parser/lexer","angular2/src/core/reflection/reflection","angular2/src/core/change_detection/parser/ast"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/core/di/decorators"),l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/exceptions"),p=e("angular2/src/facade/collection"),d=e("angular2/src/core/change_detection/parser/lexer"),f=e("angular2/src/core/reflection/reflection"),h=e("angular2/src/core/change_detection/parser/ast"),g=new h.ImplicitReceiver,m=/\{\{([\s\S]*?)\}\}/g,v=function(e){function t(t,r,n,i){e.call(this,"Parser Error: "+t+" "+n+" ["+r+"] in "+i)}return o(t,e),t}(u.BaseException),y=function(){function e(e,t){void 0===t&&(t=null),this._lexer=e,this._reflector=l.isPresent(t)?t:f.reflector}return e.prototype.parseAction=function(e,t){this._checkNoInterpolation(e,t);var r=this._lexer.tokenize(e),n=new _(e,t,r,this._reflector,!0).parseChain();return new h.ASTWithSource(n,e,t)},e.prototype.parseBinding=function(e,t){var r=this._parseBindingAst(e,t);return new h.ASTWithSource(r,e,t)},e.prototype.parseSimpleBinding=function(e,t){var r=this._parseBindingAst(e,t);if(!b.check(r))throw new v("Host binding expression can only contain field access and constants",e,t);return new h.ASTWithSource(r,e,t)},e.prototype._parseBindingAst=function(e,t){var r=this._parseQuote(e,t);if(l.isPresent(r))return r;this._checkNoInterpolation(e,t);var n=this._lexer.tokenize(e);return new _(e,t,n,this._reflector,!1).parseChain()},e.prototype._parseQuote=function(e,t){if(l.isBlank(e))return null;var r=e.indexOf(":");if(-1==r)return null;var n=e.substring(0,r).trim();if(!d.isIdentifier(n))return null;var i=e.substring(r+1);return new h.Quote(n,i,t)},e.prototype.parseTemplateBindings=function(e,t){var r=this._lexer.tokenize(e);return new _(e,t,r,this._reflector,!1).parseTemplateBindings()},e.prototype.parseInterpolation=function(e,t){var r=l.StringWrapper.split(e,m);if(r.length<=1)return null;for(var n=[],i=[],o=0;o<r.length;o++){var a=r[o];if(o%2===0)n.push(a);else{if(!(a.trim().length>0))throw new v("Blank expressions are not allowed in interpolated strings",e,"at column "+this._findInterpolationErrorColumn(r,o)+" in",t);var s=this._lexer.tokenize(a),c=new _(e,t,s,this._reflector,!1).parseChain();i.push(c)}}return new h.ASTWithSource(new h.Interpolation(n,i),e,t)},e.prototype.wrapLiteralPrimitive=function(e,t){return new h.ASTWithSource(new h.LiteralPrimitive(e),e,t)},e.prototype._checkNoInterpolation=function(e,t){var r=l.StringWrapper.split(e,m);if(r.length>1)throw new v("Got interpolation ({{}}) where expression was expected",e,"at column "+this._findInterpolationErrorColumn(r,1)+" in",t)},e.prototype._findInterpolationErrorColumn=function(e,t){for(var r="",n=0;t>n;n++)r+=n%2===0?e[n]:"{{"+e[n]+"}}";return r.length},e=a([c.Injectable(),s("design:paramtypes",[d.Lexer,f.Reflector])],e)}();t.Parser=y;var _=function(){function e(e,t,r,n,i){this.input=e,this.location=t,this.tokens=r,this.reflector=n,this.parseAction=i,this.index=0}return e.prototype.peek=function(e){var t=this.index+e;return t<this.tokens.length?this.tokens[t]:d.EOF},Object.defineProperty(e.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index:this.input.length},enumerable:!0,configurable:!0}),e.prototype.advance=function(){this.index++},e.prototype.optionalCharacter=function(e){return this.next.isCharacter(e)?(this.advance(),!0):!1},e.prototype.optionalKeywordVar=function(){return this.peekKeywordVar()?(this.advance(),!0):!1},e.prototype.peekKeywordVar=function(){return this.next.isKeywordVar()||this.next.isOperator("#")},e.prototype.expectCharacter=function(e){this.optionalCharacter(e)||this.error("Missing expected "+l.StringWrapper.fromCharCode(e))},e.prototype.optionalOperator=function(e){return this.next.isOperator(e)?(this.advance(),!0):!1},e.prototype.expectOperator=function(e){this.optionalOperator(e)||this.error("Missing expected operator "+e)},e.prototype.expectIdentifierOrKeyword=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||this.error("Unexpected token "+e+", expected identifier or keyword"),this.advance(),e.toString()},e.prototype.expectIdentifierOrKeywordOrString=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()||this.error("Unexpected token "+e+", expected identifier, keyword, or string"),this.advance(),e.toString()},e.prototype.parseChain=function(){for(var e=[];this.index<this.tokens.length;){var t=this.parsePipe();if(e.push(t),this.optionalCharacter(d.$SEMICOLON))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(d.$SEMICOLON););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==e.length?new h.EmptyExpr:1==e.length?e[0]:new h.Chain(e)},e.prototype.parsePipe=function(){var e=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var t=this.expectIdentifierOrKeyword(),r=[];this.optionalCharacter(d.$COLON);)r.push(this.parseExpression());e=new h.BindingPipe(e,t,r)}while(this.optionalOperator("|"))}return e},e.prototype.parseExpression=function(){return this.parseConditional()},e.prototype.parseConditional=function(){var e=this.inputIndex,t=this.parseLogicalOr();if(this.optionalOperator("?")){var r=this.parsePipe();if(!this.optionalCharacter(d.$COLON)){var n=this.inputIndex,i=this.input.substring(e,n);this.error("Conditional expression "+i+" requires all 3 expressions")}var o=this.parsePipe();return new h.Conditional(t,r,o)}return t},e.prototype.parseLogicalOr=function(){for(var e=this.parseLogicalAnd();this.optionalOperator("||");)e=new h.Binary("||",e,this.parseLogicalAnd());return e},e.prototype.parseLogicalAnd=function(){for(var e=this.parseEquality();this.optionalOperator("&&");)e=new h.Binary("&&",e,this.parseEquality());return e},e.prototype.parseEquality=function(){for(var e=this.parseRelational();;)if(this.optionalOperator("=="))e=new h.Binary("==",e,this.parseRelational());else if(this.optionalOperator("==="))e=new h.Binary("===",e,this.parseRelational());else if(this.optionalOperator("!="))e=new h.Binary("!=",e,this.parseRelational());else{if(!this.optionalOperator("!=="))return e;e=new h.Binary("!==",e,this.parseRelational())}},e.prototype.parseRelational=function(){for(var e=this.parseAdditive();;)if(this.optionalOperator("<"))e=new h.Binary("<",e,this.parseAdditive());else if(this.optionalOperator(">"))e=new h.Binary(">",e,this.parseAdditive());else if(this.optionalOperator("<="))e=new h.Binary("<=",e,this.parseAdditive());else{if(!this.optionalOperator(">="))return e;e=new h.Binary(">=",e,this.parseAdditive())}},e.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();;)if(this.optionalOperator("+"))e=new h.Binary("+",e,this.parseMultiplicative());else{if(!this.optionalOperator("-"))return e;e=new h.Binary("-",e,this.parseMultiplicative())}},e.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();;)if(this.optionalOperator("*"))e=new h.Binary("*",e,this.parsePrefix());else if(this.optionalOperator("%"))e=new h.Binary("%",e,this.parsePrefix());else{if(!this.optionalOperator("/"))return e;e=new h.Binary("/",e,this.parsePrefix())}},e.prototype.parsePrefix=function(){return this.optionalOperator("+")?this.parsePrefix():this.optionalOperator("-")?new h.Binary("-",new h.LiteralPrimitive(0),this.parsePrefix()):this.optionalOperator("!")?new h.PrefixNot(this.parsePrefix()):this.parseCallChain()},e.prototype.parseCallChain=function(){for(var e=this.parsePrimary();;)if(this.optionalCharacter(d.$PERIOD))e=this.parseAccessMemberOrMethodCall(e,!1);else if(this.optionalOperator("?."))e=this.parseAccessMemberOrMethodCall(e,!0);else if(this.optionalCharacter(d.$LBRACKET)){var t=this.parsePipe();if(this.expectCharacter(d.$RBRACKET),this.optionalOperator("=")){var r=this.parseConditional();e=new h.KeyedWrite(e,t,r)}else e=new h.KeyedRead(e,t)}else{if(!this.optionalCharacter(d.$LPAREN))return e;var n=this.parseCallArguments();this.expectCharacter(d.$RPAREN),e=new h.FunctionCall(e,n)}},e.prototype.parsePrimary=function(){if(this.optionalCharacter(d.$LPAREN)){var e=this.parsePipe();return this.expectCharacter(d.$RPAREN),e}if(this.next.isKeywordNull()||this.next.isKeywordUndefined())return this.advance(),new h.LiteralPrimitive(null);if(this.next.isKeywordTrue())return this.advance(),new h.LiteralPrimitive(!0);if(this.next.isKeywordFalse())return this.advance(),new h.LiteralPrimitive(!1);if(this.optionalCharacter(d.$LBRACKET)){var t=this.parseExpressionList(d.$RBRACKET);return this.expectCharacter(d.$RBRACKET),new h.LiteralArray(t)}if(this.next.isCharacter(d.$LBRACE))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(g,!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new h.LiteralPrimitive(r)}if(this.next.isString()){var n=this.next.toString();return this.advance(),new h.LiteralPrimitive(n)}throw this.index>=this.tokens.length?this.error("Unexpected end of expression: "+this.input):this.error("Unexpected token "+this.next),new u.BaseException("Fell through all cases in parsePrimary")},e.prototype.parseExpressionList=function(e){var t=[];if(!this.next.isCharacter(e))do t.push(this.parsePipe());while(this.optionalCharacter(d.$COMMA));return t},e.prototype.parseLiteralMap=function(){var e=[],t=[];if(this.expectCharacter(d.$LBRACE),!this.optionalCharacter(d.$RBRACE)){do{var r=this.expectIdentifierOrKeywordOrString();e.push(r),this.expectCharacter(d.$COLON),t.push(this.parsePipe())}while(this.optionalCharacter(d.$COMMA));this.expectCharacter(d.$RBRACE)}return new h.LiteralMap(e,t)},e.prototype.parseAccessMemberOrMethodCall=function(e,t){void 0===t&&(t=!1);var r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(d.$LPAREN)){var n=this.parseCallArguments();this.expectCharacter(d.$RPAREN);var i=this.reflector.method(r);return t?new h.SafeMethodCall(e,r,i,n):new h.MethodCall(e,r,i,n)}if(!t){if(this.optionalOperator("=")){this.parseAction||this.error("Bindings cannot contain assignments");var o=this.parseConditional();return new h.PropertyWrite(e,r,this.reflector.setter(r),o)}return new h.PropertyRead(e,r,this.reflector.getter(r))}return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),null):new h.SafePropertyRead(e,r,this.reflector.getter(r))},e.prototype.parseCallArguments=function(){if(this.next.isCharacter(d.$RPAREN))return[];var e=[];do e.push(this.parsePipe());while(this.optionalCharacter(d.$COMMA));return e},e.prototype.parseBlockContent=function(){this.parseAction||this.error("Binding expression cannot contain chained expression");for(var e=[];this.index<this.tokens.length&&!this.next.isCharacter(d.$RBRACE);){var t=this.parseExpression();if(e.push(t),this.optionalCharacter(d.$SEMICOLON))for(;this.optionalCharacter(d.$SEMICOLON););}return 0==e.length?new h.EmptyExpr:1==e.length?e[0]:new h.Chain(e)},e.prototype.expectTemplateBindingKey=function(){var e="",t=!1;do e+=this.expectIdentifierOrKeywordOrString(),t=this.optionalOperator("-"),t&&(e+="-");while(t);return e.toString()},e.prototype.parseTemplateBindings=function(){for(var e=[],t=null;this.index<this.tokens.length;){var r=this.optionalKeywordVar(),n=this.expectTemplateBindingKey();r||(null==t?t=n:n=t+n[0].toUpperCase()+n.substring(1)),this.optionalCharacter(d.$COLON);var i=null,o=null;if(r)i=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==d.EOF&&!this.peekKeywordVar()){var a=this.inputIndex,s=this.parsePipe(),c=this.input.substring(a,this.inputIndex);o=new h.ASTWithSource(s,c,this.location)}e.push(new h.TemplateBinding(n,r,i,o)),this.optionalCharacter(d.$SEMICOLON)||this.optionalCharacter(d.$COMMA)}return e},e.prototype.error=function(e,t){void 0===t&&(t=null),l.isBlank(t)&&(t=this.index);var r=t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression";throw new v(e,this.input,r,this.location)},e}();t._ParseAST=_;var b=function(){function e(){this.simple=!0}return e.check=function(t){var r=new e;return t.visit(r),r.simple},e.prototype.visitImplicitReceiver=function(e){},e.prototype.visitInterpolation=function(e){this.simple=!1},e.prototype.visitLiteralPrimitive=function(e){},e.prototype.visitPropertyRead=function(e){},e.prototype.visitPropertyWrite=function(e){this.simple=!1},e.prototype.visitSafePropertyRead=function(e){this.simple=!1},e.prototype.visitMethodCall=function(e){this.simple=!1},e.prototype.visitSafeMethodCall=function(e){this.simple=!1},e.prototype.visitFunctionCall=function(e){this.simple=!1},e.prototype.visitLiteralArray=function(e){this.visitAll(e.expressions)},e.prototype.visitLiteralMap=function(e){this.visitAll(e.values)},e.prototype.visitBinary=function(e){this.simple=!1},e.prototype.visitPrefixNot=function(e){this.simple=!1},e.prototype.visitConditional=function(e){this.simple=!1},e.prototype.visitPipe=function(e){this.simple=!1},e.prototype.visitKeyedRead=function(e){this.simple=!1},e.prototype.visitKeyedWrite=function(e){this.simple=!1},e.prototype.visitAll=function(e){for(var t=p.ListWrapper.createFixedSize(e.length),r=0;r<e.length;++r)t[r]=e[r].visit(this);return t},e.prototype.visitChain=function(e){this.simple=!1},e.prototype.visitQuote=function(e){this.simple=!1},e}();return n.define=i,r.exports}),System.register("angular2/src/core/change_detection/parser/locals",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/facade/exceptions"),s=e("angular2/src/facade/collection"),c=function(){function e(e,t){this.parent=e,this.current=t}return e.prototype.contains=function(e){return this.current.has(e)?!0:o.isPresent(this.parent)?this.parent.contains(e):!1},e.prototype.get=function(e){if(this.current.has(e))return this.current.get(e);if(o.isPresent(this.parent))return this.parent.get(e);throw new a.BaseException("Cannot find '"+e+"'")},e.prototype.set=function(e,t){if(!this.current.has(e))throw new a.BaseException("Setting of new keys post-construction is not supported. Key: "+e+".");this.current.set(e,t)},e.prototype.clearLocalValues=function(){s.MapWrapper.clearValues(this.current)},e}();return t.Locals=c,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/exceptions",["angular2/src/facade/exceptions"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/facade/exceptions"),s=function(e){function t(t,r,n,i){e.call(this,"Expression '"+t+"' has changed after it was checked. "+("Previous value: '"+r+"'. Current value: '"+n+"'"))}return o(t,e),t}(a.BaseException);t.ExpressionChangedAfterItHasBeenCheckedException=s;var c=function(e){function t(t,r,n,i){e.call(this,r+" in ["+t+"]",r,n,i),this.location=t}return o(t,e),t}(a.WrappedException);t.ChangeDetectionError=c;var l=function(e){function t(t){e.call(this,"Attempt to use a dehydrated detector: "+t)}return o(t,e),t}(a.BaseException);t.DehydratedException=l;var u=function(e){function t(t,r,n,i){e.call(this,'Error during evaluation of "'+t+'"',r,n,i)}return o(t,e),t}(a.WrappedException);t.EventEvaluationError=u;var p=function(){function e(e,t,r,n,i){this.element=e,this.componentElement=t,this.context=r,this.locals=n,this.injector=i}return e}();return t.EventEvaluationErrorContext=p,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/interfaces",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=function(){function e(e,t,r,n,i,o){this.element=e,this.componentElement=t,this.directive=r,this.context=n,this.locals=i,this.injector=o}return e}();t.DebugContext=o;var a=function(){function e(e,t,r){this.genDebugInfo=e,this.logBindingUpdate=t,this.useJit=r}return e}();t.ChangeDetectorGenConfig=a;var s=function(){function e(e,t,r,n,i,o,a){this.id=e,this.strategy=t,this.variableNames=r,this.bindingRecords=n,this.eventRecords=i,this.directiveRecords=o,this.genConfig=a}return e}();return t.ChangeDetectorDefinition=s,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/constants",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){return a.isBlank(e)||e===c.Default}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/facade/lang");!function(e){e[e.NeverChecked=0]="NeverChecked",e[e.CheckedBefore=1]="CheckedBefore",e[e.Errored=2]="Errored"}(t.ChangeDetectorState||(t.ChangeDetectorState={}));var s=t.ChangeDetectorState;!function(e){e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.OnPush=4]="OnPush",e[e.Default=5]="Default"}(t.ChangeDetectionStrategy||(t.ChangeDetectionStrategy={}));var c=t.ChangeDetectionStrategy;return t.CHANGE_DETECTION_STRATEGY_VALUES=[c.CheckOnce,c.Checked,c.CheckAlways,c.Detached,c.OnPush,c.Default],t.CHANGE_DETECTOR_STATE_VALUES=[s.NeverChecked,s.CheckedBefore,s.Errored],t.isDefaultChangeDetectionStrategy=n,i.define=o,r.exports}),System.register("angular2/src/core/change_detection/pipe_lifecycle_reflector",[],!0,function(e,t,r){function n(e){return e.constructor.prototype.ngOnDestroy}var i=System.global,o=i.define;return i.define=void 0,t.implementsOnDestroy=n,i.define=o,r.exports}),System.register("angular2/src/core/change_detection/binding_record",["angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a="directiveLifecycle",s="native",c="directive",l="elementProperty",u="elementAttribute",p="elementClass",d="elementStyle",f="textNode",h="event",g="hostEvent",m=function(){function e(e,t,r,n,i){this.mode=e,this.elementIndex=t,this.name=r,this.unit=n,this.debug=i}return e.prototype.isDirective=function(){return this.mode===c},e.prototype.isElementProperty=function(){return this.mode===l},e.prototype.isElementAttribute=function(){return this.mode===u},e.prototype.isElementClass=function(){return this.mode===p},e.prototype.isElementStyle=function(){return this.mode===d},e.prototype.isTextNode=function(){return this.mode===f},e}();t.BindingTarget=m;var v=function(){function e(e,t,r,n,i,o,a){this.mode=e,this.target=t,this.implicitReceiver=r,this.ast=n,this.setter=i,this.lifecycleEvent=o,this.directiveRecord=a}return e.prototype.isDirectiveLifecycle=function(){return this.mode===a},e.prototype.callOnChanges=function(){return o.isPresent(this.directiveRecord)&&this.directiveRecord.callOnChanges},e.prototype.isDefaultChangeDetection=function(){return o.isBlank(this.directiveRecord)||this.directiveRecord.isDefaultChangeDetection()},e.createDirectiveDoCheck=function(t){return new e(a,null,0,null,null,"DoCheck",t)},e.createDirectiveOnInit=function(t){return new e(a,null,0,null,null,"OnInit",t)},e.createDirectiveOnChanges=function(t){return new e(a,null,0,null,null,"OnChanges",t)},e.createForDirective=function(t,r,n,i){var o=i.directiveIndex.elementIndex,a=new m(c,o,r,null,t.toString()); return new e(c,a,0,t,n,null,i)},e.createForElementProperty=function(t,r,n){var i=new m(l,r,n,null,t.toString());return new e(s,i,0,t,null,null,null)},e.createForElementAttribute=function(t,r,n){var i=new m(u,r,n,null,t.toString());return new e(s,i,0,t,null,null,null)},e.createForElementClass=function(t,r,n){var i=new m(p,r,n,null,t.toString());return new e(s,i,0,t,null,null,null)},e.createForElementStyle=function(t,r,n,i){var o=new m(d,r,n,i,t.toString());return new e(s,o,0,t,null,null,null)},e.createForHostProperty=function(t,r,n){var i=new m(l,t.elementIndex,n,null,r.toString());return new e(s,i,t,r,null,null,null)},e.createForHostAttribute=function(t,r,n){var i=new m(u,t.elementIndex,n,null,r.toString());return new e(s,i,t,r,null,null,null)},e.createForHostClass=function(t,r,n){var i=new m(p,t.elementIndex,n,null,r.toString());return new e(s,i,t,r,null,null,null)},e.createForHostStyle=function(t,r,n,i){var o=new m(d,t.elementIndex,n,i,r.toString());return new e(s,o,t,r,null,null,null)},e.createForTextNode=function(t,r){var n=new m(f,r,null,null,t.toString());return new e(s,n,0,t,null,null,null)},e.createForEvent=function(t,r,n){var i=new m(h,n,r,null,t.toString());return new e(h,i,0,t,null,null,null)},e.createForHostEvent=function(t,r,n){var i=n.directiveIndex,o=new m(g,i.elementIndex,r,null,t.toString());return new e(g,o,i,t,null,null,n)},e}();return t.BindingRecord=v,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/directive_record",["angular2/src/facade/lang","angular2/src/core/change_detection/constants"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/core/change_detection/constants"),s=function(){function e(e,t){this.elementIndex=e,this.directiveIndex=t}return Object.defineProperty(e.prototype,"name",{get:function(){return this.elementIndex+"_"+this.directiveIndex},enumerable:!0,configurable:!0}),e}();t.DirectiveIndex=s;var c=function(){function e(e){var t=void 0===e?{}:e,r=t.directiveIndex,n=t.callAfterContentInit,i=t.callAfterContentChecked,a=t.callAfterViewInit,s=t.callAfterViewChecked,c=t.callOnChanges,l=t.callDoCheck,u=t.callOnInit,p=t.callOnDestroy,d=t.changeDetection,f=t.outputs;this.directiveIndex=r,this.callAfterContentInit=o.normalizeBool(n),this.callAfterContentChecked=o.normalizeBool(i),this.callOnChanges=o.normalizeBool(c),this.callAfterViewInit=o.normalizeBool(a),this.callAfterViewChecked=o.normalizeBool(s),this.callDoCheck=o.normalizeBool(l),this.callOnInit=o.normalizeBool(u),this.callOnDestroy=o.normalizeBool(p),this.changeDetection=d,this.outputs=f}return e.prototype.isDefaultChangeDetection=function(){return a.isDefaultChangeDetectionStrategy(this.changeDetection)},e}();return t.DirectiveRecord=c,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/change_detector_ref",["angular2/src/core/change_detection/constants"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/core/change_detection/constants"),s=function(){function e(){}return e}();t.ChangeDetectorRef=s;var c=function(e){function t(t){e.call(this),this._cd=t}return o(t,e),t.prototype.markForCheck=function(){this._cd.markPathToRootAsCheckOnce()},t.prototype.detach=function(){this._cd.mode=a.ChangeDetectionStrategy.Detached},t.prototype.detectChanges=function(){this._cd.detectChanges()},t.prototype.checkNoChanges=function(){this._cd.checkNoChanges()},t.prototype.reattach=function(){this._cd.mode=a.ChangeDetectionStrategy.CheckAlways,this.markForCheck()},t}(s);return t.ChangeDetectorRef_=c,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/proto_record",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0,function(e){e[e.Self=0]="Self",e[e.Const=1]="Const",e[e.PrimitiveOp=2]="PrimitiveOp",e[e.PropertyRead=3]="PropertyRead",e[e.PropertyWrite=4]="PropertyWrite",e[e.Local=5]="Local",e[e.InvokeMethod=6]="InvokeMethod",e[e.InvokeClosure=7]="InvokeClosure",e[e.KeyedRead=8]="KeyedRead",e[e.KeyedWrite=9]="KeyedWrite",e[e.Pipe=10]="Pipe",e[e.Interpolate=11]="Interpolate",e[e.SafeProperty=12]="SafeProperty",e[e.CollectionLiteral=13]="CollectionLiteral",e[e.SafeMethodInvoke=14]="SafeMethodInvoke",e[e.DirectiveLifecycle=15]="DirectiveLifecycle",e[e.Chain=16]="Chain",e[e.SkipRecordsIf=17]="SkipRecordsIf",e[e.SkipRecordsIfNot=18]="SkipRecordsIfNot",e[e.SkipRecords=19]="SkipRecords"}(t.RecordType||(t.RecordType={}));var o=t.RecordType,a=function(){function e(e,t,r,n,i,o,a,s,c,l,u,p,d,f){this.mode=e,this.name=t,this.funcOrValue=r,this.args=n,this.fixedArgs=i,this.contextIndex=o,this.directiveIndex=a,this.selfIndex=s,this.bindingRecord=c,this.lastInBinding=l,this.lastInDirective=u,this.argumentToPureFunction=p,this.referencedBySelf=d,this.propertyBindingIndex=f}return e.prototype.isPureFunction=function(){return this.mode===o.Interpolate||this.mode===o.CollectionLiteral},e.prototype.isUsedByOtherRecord=function(){return!this.lastInBinding||this.referencedBySelf},e.prototype.shouldBeChecked=function(){return this.argumentToPureFunction||this.lastInBinding||this.isPureFunction()||this.isPipeRecord()},e.prototype.isPipeRecord=function(){return this.mode===o.Pipe},e.prototype.isConditionalSkipRecord=function(){return this.mode===o.SkipRecordsIfNot||this.mode===o.SkipRecordsIf},e.prototype.isUnconditionalSkipRecord=function(){return this.mode===o.SkipRecords},e.prototype.isSkipRecord=function(){return this.isConditionalSkipRecord()||this.isUnconditionalSkipRecord()},e.prototype.isLifeCycleRecord=function(){return this.mode===o.DirectiveLifecycle},e}();return t.ProtoRecord=a,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/event_binding",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=function(){function e(e,t,r,n){this.eventName=e,this.elIndex=t,this.dirIndex=r,this.records=n}return e}();return t.EventBinding=o,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/coalesce",["angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/core/change_detection/proto_record"],!0,function(e,t,r){function n(e){for(var t=[],r=[],n=new h.Map,a=0,c=h.ListWrapper.createFixedSize(e.length),l=0;l<e.length;l++){var u=c[l];f.isPresent(u)&&(a--,u.fixedArgs[0]=t.length);var p=e[l],d=s(p,t,n);if(d.isSkipRecord())t.push(d),a++,c[d.fixedArgs[0]]=d;else{var g=o(d,t,r,a>0);n.set(p.selfIndex,g.selfIndex)}}return i(t)}function i(e){for(var t=[],r=h.ListWrapper.createFixedSize(e.length),n=new h.Map,i=0;i<e.length;i++){var o=r[i];f.isPresent(o)&&(o.fixedArgs[0]=t.length);var a=e[i];if(a.isSkipRecord()){if(a.isConditionalSkipRecord()&&a.fixedArgs[0]===i+2&&i<e.length-1&&e[i+1].mode===g.RecordType.SkipRecords&&(a.mode=a.mode===g.RecordType.SkipRecordsIf?g.RecordType.SkipRecordsIfNot:g.RecordType.SkipRecordsIf,a.fixedArgs[0]=e[i+1].fixedArgs[0],i++),a.fixedArgs[0]>i+1){var c=s(a,t,n);t.push(c),r[c.fixedArgs[0]]=c}}else{var c=s(a,t,n);t.push(c),n.set(a.selfIndex,c.selfIndex)}}return t}function o(e,t,r,n){var i=a(e,t,r);return f.isPresent(i)?(e.lastInBinding?(t.push(l(e,i.selfIndex,t.length+1)),i.referencedBySelf=!0):e.argumentToPureFunction&&(i.argumentToPureFunction=!0),i):(n&&r.push(e.selfIndex),t.push(e),e)}function a(e,t,r){return t.find(function(t){return-1==r.indexOf(t.selfIndex)&&t.mode!==g.RecordType.DirectiveLifecycle&&u(t,e)&&t.mode===e.mode&&f.looseIdentical(t.funcOrValue,e.funcOrValue)&&t.contextIndex===e.contextIndex&&f.looseIdentical(t.name,e.name)&&h.ListWrapper.equals(t.args,e.args)})}function s(e,t,r){var n=e.args.map(function(e){return c(r,e)}),i=c(r,e.contextIndex),o=t.length+1;return new g.ProtoRecord(e.mode,e.name,e.funcOrValue,n,e.fixedArgs,i,e.directiveIndex,o,e.bindingRecord,e.lastInBinding,e.lastInDirective,e.argumentToPureFunction,e.referencedBySelf,e.propertyBindingIndex)}function c(e,t){var r=e.get(t);return f.isPresent(r)?r:t}function l(e,t,r){return new g.ProtoRecord(g.RecordType.Self,"self",null,[],e.fixedArgs,t,e.directiveIndex,r,e.bindingRecord,e.lastInBinding,e.lastInDirective,!1,!1,e.propertyBindingIndex)}function u(e,t){var r=f.isBlank(e.directiveIndex)?null:e.directiveIndex.directiveIndex,n=f.isBlank(e.directiveIndex)?null:e.directiveIndex.elementIndex,i=f.isBlank(t.directiveIndex)?null:t.directiveIndex.directiveIndex,o=f.isBlank(t.directiveIndex)?null:t.directiveIndex.elementIndex;return r===i&&n===o}var p=System.global,d=p.define;p.define=void 0;var f=e("angular2/src/facade/lang"),h=e("angular2/src/facade/collection"),g=e("angular2/src/core/change_detection/proto_record");return t.coalesce=n,p.define=d,r.exports}),System.register("angular2/src/core/change_detection/codegen_name_util",["angular2/src/facade/lang","angular2/src/facade/collection"],!0,function(e,t,r){function n(e){return a.StringWrapper.replaceAll(e,v,"")}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/facade/lang"),s=e("angular2/src/facade/collection"),c="state",l="propertyBindingIndex",u="directiveIndices",p="dispatcher",d="locals",f="mode",h="pipes",g="protos";t.CONTEXT_ACCESSOR="context",t.CONTEXT_INDEX=0;var m="this.",v=/\W/g;t.sanitizeName=n;var y=function(){function e(e,r,i,o){this._records=e,this._eventBindings=r,this._directiveRecords=i,this._utilName=o,this._sanitizedEventNames=new s.Map,this._sanitizedNames=s.ListWrapper.createFixedSize(this._records.length+1),this._sanitizedNames[t.CONTEXT_INDEX]=t.CONTEXT_ACCESSOR;for(var a=0,c=this._records.length;c>a;++a)this._sanitizedNames[a+1]=n(""+this._records[a].name+a);for(var l=0;l<r.length;++l){for(var u=r[l],p=[t.CONTEXT_ACCESSOR],a=0,c=u.records.length;c>a;++a)p.push(n(""+u.records[a].name+a+"_"+l));this._sanitizedEventNames.set(u,p)}}return e.prototype._addFieldPrefix=function(e){return""+m+e},e.prototype.getDispatcherName=function(){return this._addFieldPrefix(p)},e.prototype.getPipesAccessorName=function(){return this._addFieldPrefix(h)},e.prototype.getProtosName=function(){return this._addFieldPrefix(g)},e.prototype.getDirectivesAccessorName=function(){return this._addFieldPrefix(u)},e.prototype.getLocalsAccessorName=function(){return this._addFieldPrefix(d)},e.prototype.getStateName=function(){return this._addFieldPrefix(c)},e.prototype.getModeName=function(){return this._addFieldPrefix(f)},e.prototype.getPropertyBindingIndex=function(){return this._addFieldPrefix(l)},e.prototype.getLocalName=function(e){return"l_"+this._sanitizedNames[e]},e.prototype.getEventLocalName=function(e,t){return"l_"+this._sanitizedEventNames.get(e)[t]},e.prototype.getChangeName=function(e){return"c_"+this._sanitizedNames[e]},e.prototype.genInitLocals=function(){for(var e=[],r=[],n=0,i=this.getFieldCount();i>n;++n)if(n==t.CONTEXT_INDEX)e.push(this.getLocalName(n)+" = "+this.getFieldName(n));else{var o=this._records[n-1];if(o.argumentToPureFunction){var a=this.getChangeName(n);e.push(this.getLocalName(n)+","+a),r.push(a)}else e.push(""+this.getLocalName(n))}var c=s.ListWrapper.isEmpty(r)?"":r.join("=")+" = false;";return"var "+e.join(",")+";"+c},e.prototype.genInitEventLocals=function(){var e=this,r=[this.getLocalName(t.CONTEXT_INDEX)+" = "+this.getFieldName(t.CONTEXT_INDEX)];return this._sanitizedEventNames.forEach(function(n,i){for(var o=0;o<n.length;++o)o!==t.CONTEXT_INDEX&&r.push(""+e.getEventLocalName(i,o))}),r.length>1?"var "+r.join(",")+";":""},e.prototype.getPreventDefaultAccesor=function(){return"preventDefault"},e.prototype.getFieldCount=function(){return this._sanitizedNames.length},e.prototype.getFieldName=function(e){return this._addFieldPrefix(this._sanitizedNames[e])},e.prototype.getAllFieldNames=function(){for(var e=[],t=0,r=this.getFieldCount();r>t;++t)(0===t||this._records[t-1].shouldBeChecked())&&e.push(this.getFieldName(t));for(var n=0,i=this._records.length;i>n;++n){var o=this._records[n];o.isPipeRecord()&&e.push(this.getPipeName(o.selfIndex))}for(var a=0,s=this._directiveRecords.length;s>a;++a){var c=this._directiveRecords[a];e.push(this.getDirectiveName(c.directiveIndex)),c.isDefaultChangeDetection()||e.push(this.getDetectorName(c.directiveIndex))}return e},e.prototype.genDehydrateFields=function(){var e=this.getAllFieldNames();return s.ListWrapper.removeAt(e,t.CONTEXT_INDEX),s.ListWrapper.isEmpty(e)?"":(e.push(this._utilName+".uninitialized;"),e.join(" = "))},e.prototype.genPipeOnDestroy=function(){var e=this;return this._records.filter(function(e){return e.isPipeRecord()}).map(function(t){return e._utilName+".callPipeOnDestroy("+e.getPipeName(t.selfIndex)+");"}).join("\n")},e.prototype.getPipeName=function(e){return this._addFieldPrefix(this._sanitizedNames[e]+"_pipe")},e.prototype.getDirectiveName=function(e){return this._addFieldPrefix("directive_"+e.name)},e.prototype.getDetectorName=function(e){return this._addFieldPrefix("detector_"+e.name)},e}();return t.CodegenNameUtil=y,i.define=o,r.exports}),System.register("angular2/src/core/change_detection/codegen_facade",[],!0,function(e,t,r){function n(e){return JSON.stringify(e)}function i(e){return"'"+e+"'"}function o(e){return e.join(" + ")}var a=System.global,s=a.define;return a.define=void 0,t.codify=n,t.rawString=i,t.combineGeneratedStrings=o,a.define=s,r.exports}),System.register("angular2/src/core/metadata/view",["angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang");!function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None"}(t.ViewEncapsulation||(t.ViewEncapsulation={}));var c=t.ViewEncapsulation;t.VIEW_ENCAPSULATION_VALUES=[c.Emulated,c.Native,c.None];var l=function(){function e(e){var t=void 0===e?{}:e,r=t.templateUrl,n=t.template,i=t.directives,o=t.pipes,a=t.encapsulation,s=t.styles,c=t.styleUrls;this.templateUrl=r,this.template=n,this.styleUrls=c,this.styles=s,this.directives=i,this.pipes=o,this.encapsulation=a}return e=o([s.CONST(),a("design:paramtypes",[Object])],e)}();return t.ViewMetadata=l,n.define=i,r.exports}),System.register("angular2/src/core/util",["angular2/src/core/util/decorators"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/util/decorators");return t.Class=o.Class,n.define=i,r.exports}),System.register("angular2/src/core/prod_mode",["angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang");return t.enableProdMode=o.enableProdMode,n.define=i,r.exports}),System.register("angular2/src/facade/facade",["angular2/src/facade/lang","angular2/src/facade/async","angular2/src/facade/exceptions","angular2/src/facade/exception_handler"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang");t.Type=o.Type;var a=e("angular2/src/facade/async");t.EventEmitter=a.EventEmitter;var s=e("angular2/src/facade/exceptions");t.WrappedException=s.WrappedException;var c=e("angular2/src/facade/exception_handler");return t.ExceptionHandler=c.ExceptionHandler,n.define=i,r.exports}),System.register("angular2/src/core/application_tokens",["angular2/src/core/di","angular2/src/facade/lang"],!0,function(e,t,r){function n(){return""+i()+i()+i()}function i(){return c.StringWrapper.fromCharCode(97+c.Math.floor(25*c.Math.random()))}var o=System.global,a=o.define;o.define=void 0;var s=e("angular2/src/core/di"),c=e("angular2/src/facade/lang");return t.APP_COMPONENT_REF_PROMISE=c.CONST_EXPR(new s.OpaqueToken("Promise<ComponentRef>")),t.APP_COMPONENT=c.CONST_EXPR(new s.OpaqueToken("AppComponent")),t.APP_ID=c.CONST_EXPR(new s.OpaqueToken("AppId")),t.APP_ID_RANDOM_PROVIDER=c.CONST_EXPR(new s.Provider(t.APP_ID,{useFactory:n,deps:[]})),t.PLATFORM_INITIALIZER=c.CONST_EXPR(new s.OpaqueToken("Platform Initializer")),t.APP_INITIALIZER=c.CONST_EXPR(new s.OpaqueToken("Application Initializer")),t.PACKAGE_ROOT_URL=c.CONST_EXPR(new s.OpaqueToken("Application Packages Root URL")),o.define=a,r.exports}),System.register("angular2/src/core/testability/testability",["angular2/src/core/di","angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/core/zone/ng_zone","angular2/src/facade/async"],!0,function(e,t,r){function n(e){v=e}var i=System.global,o=i.define;i.define=void 0;var a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/core/di"),l=e("angular2/src/facade/collection"),u=e("angular2/src/facade/lang"),p=e("angular2/src/facade/exceptions"),d=e("angular2/src/core/zone/ng_zone"),f=e("angular2/src/facade/async"),h=function(){function e(e){this._pendingCount=0,this._didWork=!1,this._callbacks=[],this._isAngularEventPending=!1,this._watchAngularEvents(e)}return e.prototype._watchAngularEvents=function(e){var t=this;f.ObservableWrapper.subscribe(e.onTurnStart,function(e){t._didWork=!0,t._isAngularEventPending=!0}),e.runOutsideAngular(function(){f.ObservableWrapper.subscribe(e.onEventDone,function(r){e.hasPendingTimers||(t._isAngularEventPending=!1,t._runCallbacksIfReady())})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new p.BaseException("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return 0==this._pendingCount&&!this._isAngularEventPending},e.prototype._runCallbacksIfReady=function(){var e=this;return this.isStable()?void f.PromiseWrapper.resolve(null).then(function(t){for(;0!==e._callbacks.length;)e._callbacks.pop()(e._didWork);e._didWork=!1}):void(this._didWork=!0)},e.prototype.whenStable=function(e){this._callbacks.push(e),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.isAngularEventPending=function(){return this._isAngularEventPending},e.prototype.findBindings=function(e,t,r){return[]},e.prototype.findProviders=function(e,t,r){return[]},e=a([c.Injectable(),s("design:paramtypes",[d.NgZone])],e)}();t.Testability=h;var g=function(){function e(){this._applications=new l.Map,v.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.getTestability=function(e){return this._applications.get(e)},e.prototype.getAllTestabilities=function(){return l.MapWrapper.values(this._applications)},e.prototype.getAllRootElements=function(){return l.MapWrapper.keys(this._applications)},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),v.findTestabilityInTree(this,e,t)},e=a([c.Injectable(),s("design:paramtypes",[])],e)}();t.TestabilityRegistry=g;var m=function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,r){return null},e=a([u.CONST(),s("design:paramtypes",[])],e)}();t.setTestabilityGetter=n;var v=u.CONST_EXPR(new m);return i.define=o,r.exports}),System.register("angular2/src/core/linker/view_type",[],!0,function(e,t,r){var n=System.global,i=n.define;return n.define=void 0,function(e){e[e.HOST=0]="HOST",e[e.COMPONENT=1]="COMPONENT",e[e.EMBEDDED=2]="EMBEDDED"}(t.ViewType||(t.ViewType={})),t.ViewType,n.define=i,r.exports}),System.register("angular2/src/core/linker/element_ref",["angular2/src/facade/exceptions"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/exceptions"),a=function(){function e(){}return Object.defineProperty(e.prototype,"nativeElement",{get:function(){return o.unimplemented()},enumerable:!0,configurable:!0}),e}();t.ElementRef=a;var s=function(){function e(e){this._appElement=e}return Object.defineProperty(e.prototype,"internalElement",{get:function(){return this._appElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this._appElement.nativeElement},enumerable:!0,configurable:!0}),e}();return t.ElementRef_=s,n.define=i,r.exports}),System.register("angular2/src/core/linker/view_container_ref",["angular2/src/facade/collection","angular2/src/facade/exceptions","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/facade/collection"),s=e("angular2/src/facade/exceptions"),c=e("angular2/src/facade/lang"),l=function(){function e(){}return Object.defineProperty(e.prototype,"element",{get:function(){return s.unimplemented()},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this.length-1;e>=0;e--)this.remove(e)},Object.defineProperty(e.prototype,"length",{get:function(){return s.unimplemented()},enumerable:!0,configurable:!0}),e}();t.ViewContainerRef=l;var u=function(e){function t(t){e.call(this),this._element=t}return o(t,e),t.prototype.get=function(e){return this._element.nestedViews[e].ref},Object.defineProperty(t.prototype,"length",{get:function(){var e=this._element.nestedViews;return c.isPresent(e)?e.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element.ref},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(e,t){void 0===t&&(t=-1),-1==t&&(t=this.length);var r=this._element.parentView.viewManager;return r.createEmbeddedViewInContainer(this._element.ref,t,e)},t.prototype.createHostView=function(e,t,r,n){void 0===t&&(t=-1),void 0===r&&(r=null),void 0===n&&(n=null),-1==t&&(t=this.length);var i=this._element.parentView.viewManager;return i.createHostViewInContainer(this._element.ref,t,e,r,n)},t.prototype.insert=function(e,t){void 0===t&&(t=-1),-1==t&&(t=this.length);var r=this._element.parentView.viewManager;return r.attachViewInContainer(this._element.ref,t,e)},t.prototype.indexOf=function(e){return a.ListWrapper.indexOf(this._element.nestedViews,e.internalView)},t.prototype.remove=function(e){void 0===e&&(e=-1),-1==e&&(e=this.length-1);var t=this._element.parentView.viewManager;return t.destroyViewInContainer(this._element.ref,e)},t.prototype.detach=function(e){void 0===e&&(e=-1),-1==e&&(e=this.length-1);var t=this._element.parentView.viewManager;return t.detachViewInContainer(this._element.ref,e)},t}(l);return t.ViewContainerRef_=u,n.define=i,r.exports}),System.register("angular2/src/core/render/api",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=function(){function e(e,t,r){this.id=e,this.encapsulation=t,this.styles=r}return e}();t.RenderComponentType=o;var a=function(){function e(e,t,r,n){this.injector=e,this.component=t,this.providerTokens=r,this.locals=n}return e}();t.RenderDebugInfo=a;var s=function(){function e(){}return e}();t.Renderer=s;var c=function(){function e(){}return e}();return t.RootRenderer=c,n.define=i,r.exports}),System.register("angular2/src/core/linker/template_ref",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=function(){function e(){}return Object.defineProperty(e.prototype,"elementRef",{get:function(){return null},enumerable:!0,configurable:!0}),e}();t.TemplateRef=a;var s=function(e){function t(t){e.call(this),this._elementRef=t}return o(t,e),Object.defineProperty(t.prototype,"elementRef",{get:function(){return this._elementRef},enumerable:!0,configurable:!0}),t}(a);return t.TemplateRef_=s,n.define=i,r.exports}),System.register("angular2/src/core/linker/query_list",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/facade/async"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/collection"),a=e("angular2/src/facade/lang"),s=e("angular2/src/facade/async"),c=function(){function e(){this._results=[],this._emitter=new s.EventEmitter}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return o.ListWrapper.first(this._results)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return o.ListWrapper.last(this._results)},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.toArray=function(){return o.ListWrapper.clone(this._results)},e.prototype[a.getSymbolIterator()]=function(){return this._results[a.getSymbolIterator()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=e},e.prototype.notifyOnChanges=function(){this._emitter.emit(this)},e}();return t.QueryList=c,n.define=i,r.exports}),System.register("angular2/src/core/pipes/pipe_provider",["angular2/src/core/di/provider","angular2/src/core/di"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/core/di/provider"),s=e("angular2/src/core/di"),c=function(e){function t(t,r,n,i,o){e.call(this,n,i,o),this.name=t,this.pure=r}return o(t,e),t.createFromType=function(e,r){var n=new s.Provider(e,{useClass:e}),i=a.resolveProvider(n);return new t(r.name,r.pure,i.key,i.resolvedFactories,i.multiProvider)},t}(a.ResolvedProvider_);return t.PipeProvider=c,n.define=i,r.exports}),System.register("angular2/src/core/linker/view_ref",["angular2/src/facade/exceptions"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/facade/exceptions"),s=function(){function e(){}return Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return a.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return a.unimplemented()},enumerable:!0,configurable:!0}),e}();t.ViewRef=s;var c=function(e){function t(){e.apply(this,arguments)}return o(t,e),Object.defineProperty(t.prototype,"rootNodes",{get:function(){return a.unimplemented()},enumerable:!0,configurable:!0}),t}(s);t.HostViewRef=c;var l=function(e){function t(){e.apply(this,arguments)}return o(t,e),Object.defineProperty(t.prototype,"rootNodes",{get:function(){return a.unimplemented()},enumerable:!0,configurable:!0}),t}(s);t.EmbeddedViewRef=l;var u=function(){function e(e){this._view=e,this._view=e}return Object.defineProperty(e.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._view.changeDetector.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),e.prototype.setLocal=function(e,t){this._view.setLocal(e,t)},e.prototype.hasLocal=function(e){return this._view.hasLocal(e)},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),e}();t.ViewRef_=u;var p=function(){function e(){}return e}();t.HostViewFactoryRef=p;var d=function(){function e(e){this._hostViewFactory=e}return Object.defineProperty(e.prototype,"internalHostViewFactory",{get:function(){return this._hostViewFactory},enumerable:!0,configurable:!0}),e}();return t.HostViewFactoryRef_=d,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/pipes",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=function(){function e(e,t){this.pipe=e,this.pure=t}return e}();return t.SelectedPipe=o,n.define=i,r.exports}),System.register("angular2/src/core/render/util",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){return s.StringWrapper.replaceAllMapped(e,c,function(e){return"-"+e[1].toLowerCase()})}function i(e){return s.StringWrapper.replaceAllMapped(e,l,function(e){return e[1].toUpperCase()})}var o=System.global,a=o.define;o.define=void 0;var s=e("angular2/src/facade/lang"),c=/([A-Z])/g,l=/-([a-z])/g;return t.camelCaseToDashCase=n,t.dashCaseToCamelCase=i,o.define=a,r.exports}),System.register("angular2/src/core/linker/view_manager",["angular2/src/core/di","angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/facade/exceptions","angular2/src/core/linker/view","angular2/src/core/render/api","angular2/src/core/profile/profile","angular2/src/core/application_tokens","angular2/src/core/linker/view_type"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},l=e("angular2/src/core/di"),u=e("angular2/src/facade/lang"),p=e("angular2/src/facade/collection"),d=e("angular2/src/facade/exceptions"),f=e("angular2/src/core/linker/view"),h=e("angular2/src/core/render/api"),g=e("angular2/src/core/profile/profile"),m=e("angular2/src/core/application_tokens"),v=e("angular2/src/core/linker/view_type"),y=function(){function e(){}return e}();t.AppViewManager=y;var _=function(e){function t(t,r){e.call(this),this._renderer=t,this._appId=r,this._nextCompTypeId=0,this._createRootHostViewScope=g.wtfCreateScope("AppViewManager#createRootHostView()"),this._destroyRootHostViewScope=g.wtfCreateScope("AppViewManager#destroyRootHostView()"),this._createEmbeddedViewInContainerScope=g.wtfCreateScope("AppViewManager#createEmbeddedViewInContainer()"),this._createHostViewInContainerScope=g.wtfCreateScope("AppViewManager#createHostViewInContainer()"),this._destroyViewInContainerScope=g.wtfCreateScope("AppViewMananger#destroyViewInContainer()"),this._attachViewInContainerScope=g.wtfCreateScope("AppViewMananger#attachViewInContainer()"), this._detachViewInContainerScope=g.wtfCreateScope("AppViewMananger#detachViewInContainer()")}return o(t,e),t.prototype.getViewContainer=function(e){return e.internalElement.getViewContainerRef()},t.prototype.getHostElement=function(e){var t=e.internalView;if(t.proto.type!==v.ViewType.HOST)throw new d.BaseException("This operation is only allowed on host views");return t.appElements[0].ref},t.prototype.getNamedElementInComponentView=function(e,t){var r=e.internalElement,n=r.componentView;if(u.isBlank(n))throw new d.BaseException("There is no component directive at element "+e);for(var i=0;i<n.appElements.length;i++){var o=n.appElements[i];if(p.StringMapWrapper.contains(o.proto.directiveVariableBindings,t))return o.ref}throw new d.BaseException("Could not find variable "+t)},t.prototype.getComponent=function(e){return e.internalElement.getComponent()},t.prototype.createRootHostView=function(e,t,r,n){void 0===n&&(n=null);var i=this._createRootHostViewScope(),o=e.internalHostViewFactory,a=u.isPresent(t)?t:o.selector,s=o.viewFactory(this._renderer,this,null,n,a,null,r);return g.wtfLeave(i,s.ref)},t.prototype.destroyRootHostView=function(e){var t=this._destroyRootHostViewScope(),r=e.internalView;r.renderer.detachView(f.flattenNestedViewRenderNodes(r.rootNodesOrAppElements)),r.destroy(),g.wtfLeave(t)},t.prototype.createEmbeddedViewInContainer=function(e,t,r){var n=this._createEmbeddedViewInContainerScope(),i=r.elementRef.internalElement,o=i.embeddedViewFactory(i.parentView.renderer,this,i,i.parentView.projectableNodes,null,null,null);return this._attachViewToContainer(o,e.internalElement,t),g.wtfLeave(n,o.ref)},t.prototype.createHostViewInContainer=function(e,t,r,n,i){var o=this._createHostViewInContainerScope(),a=e,s=a.internalElement,c=r.internalHostViewFactory,l=c.viewFactory(s.parentView.renderer,s.parentView.viewManager,s,i,null,n,null);return this._attachViewToContainer(l,a.internalElement,t),g.wtfLeave(o,l.ref)},t.prototype.destroyViewInContainer=function(e,t){var r=this._destroyViewInContainerScope(),n=this._detachViewInContainer(e.internalElement,t);n.destroy(),g.wtfLeave(r)},t.prototype.attachViewInContainer=function(e,t,r){var n=r,i=this._attachViewInContainerScope();return this._attachViewToContainer(n.internalView,e.internalElement,t),g.wtfLeave(i,n)},t.prototype.detachViewInContainer=function(e,t){var r=this._detachViewInContainerScope(),n=this._detachViewInContainer(e.internalElement,t);return g.wtfLeave(r,n.ref)},t.prototype.onViewCreated=function(e){},t.prototype.onViewDestroyed=function(e){},t.prototype.createRenderComponentType=function(e,t){return new h.RenderComponentType(this._appId+"-"+this._nextCompTypeId++,e,t)},t.prototype._attachViewToContainer=function(e,t,r){if(e.proto.type===v.ViewType.COMPONENT)throw new d.BaseException("Component views can't be moved!");var n=t.nestedViews;null==n&&(n=[],t.nestedViews=n),p.ListWrapper.insert(n,r,e);var i;if(r>0){var o=n[r-1];i=o.rootNodesOrAppElements.length>0?o.rootNodesOrAppElements[o.rootNodesOrAppElements.length-1]:null}else i=t.nativeElement;if(u.isPresent(i)){var a=f.findLastRenderNode(i);e.renderer.attachViewAfter(a,f.flattenNestedViewRenderNodes(e.rootNodesOrAppElements))}t.parentView.changeDetector.addContentChild(e.changeDetector),t.traverseAndSetQueriesAsDirty()},t.prototype._detachViewInContainer=function(e,t){var r=p.ListWrapper.removeAt(e.nestedViews,t);if(r.proto.type===v.ViewType.COMPONENT)throw new d.BaseException("Component views can't be moved!");return e.traverseAndSetQueriesAsDirty(),r.renderer.detachView(f.flattenNestedViewRenderNodes(r.rootNodesOrAppElements)),r.changeDetector.remove(),r},t=a([l.Injectable(),c(1,l.Inject(m.APP_ID)),s("design:paramtypes",[h.RootRenderer,String])],t)}(y);return t.AppViewManager_=_,n.define=i,r.exports}),System.register("angular2/src/core/console",["angular2/src/core/di","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/core/di"),c=e("angular2/src/facade/lang"),l=function(){function e(){}return e.prototype.log=function(e){c.print(e)},e=o([s.Injectable(),a("design:paramtypes",[])],e)}();return t.Console=l,n.define=i,r.exports}),System.register("angular2/src/core/zone",["angular2/src/core/zone/ng_zone"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/zone/ng_zone");return t.NgZone=o.NgZone,t.NgZoneError=o.NgZoneError,n.define=i,r.exports}),System.register("angular2/src/core/render",["angular2/src/core/render/api"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/render/api");return t.RootRenderer=o.RootRenderer,t.Renderer=o.Renderer,t.RenderComponentType=o.RenderComponentType,n.define=i,r.exports}),System.register("angular2/src/core/linker/directive_resolver",["angular2/src/core/di","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/metadata","angular2/src/core/reflection/reflection"],!0,function(e,t,r){function n(e){return e instanceof d.DirectiveMetadata}var i=System.global,o=i.define;i.define=void 0;var a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/core/di"),l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/exceptions"),p=e("angular2/src/facade/collection"),d=e("angular2/src/core/metadata"),f=e("angular2/src/core/reflection/reflection"),h=function(){function e(){}return e.prototype.resolve=function(e){var t=f.reflector.annotations(c.resolveForwardRef(e));if(l.isPresent(t)){var r=t.find(n);if(l.isPresent(r)){var i=f.reflector.propMetadata(e);return this._mergeWithPropertyMetadata(r,i,e)}}throw new u.BaseException("No Directive annotation found on "+l.stringify(e))},e.prototype._mergeWithPropertyMetadata=function(e,t,r){var n=[],i=[],o={},a={};return p.StringMapWrapper.forEach(t,function(e,t){e.forEach(function(e){if(e instanceof d.InputMetadata&&(l.isPresent(e.bindingPropertyName)?n.push(t+": "+e.bindingPropertyName):n.push(t)),e instanceof d.OutputMetadata&&(l.isPresent(e.bindingPropertyName)?i.push(t+": "+e.bindingPropertyName):i.push(t)),e instanceof d.HostBindingMetadata&&(l.isPresent(e.hostPropertyName)?o["["+e.hostPropertyName+"]"]=t:o["["+t+"]"]=t),e instanceof d.HostListenerMetadata){var r=l.isPresent(e.args)?e.args.join(", "):"";o["("+e.eventName+")"]=t+"("+r+")"}e instanceof d.ContentChildrenMetadata&&(a[t]=e),e instanceof d.ViewChildrenMetadata&&(a[t]=e),e instanceof d.ContentChildMetadata&&(a[t]=e),e instanceof d.ViewChildMetadata&&(a[t]=e)})}),this._merge(e,n,i,o,a,r)},e.prototype._merge=function(e,t,r,n,i,o){var a,s=l.isPresent(e.inputs)?p.ListWrapper.concat(e.inputs,t):t;l.isPresent(e.outputs)?(e.outputs.forEach(function(e){if(p.ListWrapper.contains(r,e))throw new u.BaseException("Output event '"+e+"' defined multiple times in '"+l.stringify(o)+"'")}),a=p.ListWrapper.concat(e.outputs,r)):a=r;var c=l.isPresent(e.host)?p.StringMapWrapper.merge(e.host,n):n,f=l.isPresent(e.queries)?p.StringMapWrapper.merge(e.queries,i):i;return e instanceof d.ComponentMetadata?new d.ComponentMetadata({selector:e.selector,inputs:s,outputs:a,host:c,exportAs:e.exportAs,moduleId:e.moduleId,queries:f,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders}):new d.DirectiveMetadata({selector:e.selector,inputs:s,outputs:a,host:c,exportAs:e.exportAs,queries:f,providers:e.providers})},e=a([c.Injectable(),s("design:paramtypes",[])],e)}();return t.DirectiveResolver=h,t.CODEGEN_DIRECTIVE_RESOLVER=new h,i.define=o,r.exports}),System.register("angular2/src/core/linker/view_resolver",["angular2/src/core/di","angular2/src/core/metadata/view","angular2/src/core/metadata/directives","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/reflection/reflection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/core/di"),c=e("angular2/src/core/metadata/view"),l=e("angular2/src/core/metadata/directives"),u=e("angular2/src/facade/lang"),p=e("angular2/src/facade/exceptions"),d=e("angular2/src/facade/collection"),f=e("angular2/src/core/reflection/reflection"),h=function(){function e(){this._cache=new d.Map}return e.prototype.resolve=function(e){var t=this._cache.get(e);return u.isBlank(t)&&(t=this._resolve(e),this._cache.set(e,t)),t},e.prototype._resolve=function(e){var t,r;if(f.reflector.annotations(e).forEach(function(e){e instanceof c.ViewMetadata&&(r=e),e instanceof l.ComponentMetadata&&(t=e)}),!u.isPresent(t)){if(u.isBlank(r))throw new p.BaseException("No View decorator found on component '"+u.stringify(e)+"'");return r}if(u.isBlank(t.template)&&u.isBlank(t.templateUrl)&&u.isBlank(r))throw new p.BaseException("Component '"+u.stringify(e)+"' must have either 'template', 'templateUrl', or '@View' set.");if(u.isPresent(t.template)&&u.isPresent(r))this._throwMixingViewAndComponent("template",e);else if(u.isPresent(t.templateUrl)&&u.isPresent(r))this._throwMixingViewAndComponent("templateUrl",e);else if(u.isPresent(t.directives)&&u.isPresent(r))this._throwMixingViewAndComponent("directives",e);else if(u.isPresent(t.pipes)&&u.isPresent(r))this._throwMixingViewAndComponent("pipes",e);else if(u.isPresent(t.encapsulation)&&u.isPresent(r))this._throwMixingViewAndComponent("encapsulation",e);else if(u.isPresent(t.styles)&&u.isPresent(r))this._throwMixingViewAndComponent("styles",e);else{if(!u.isPresent(t.styleUrls)||!u.isPresent(r))return u.isPresent(r)?r:new c.ViewMetadata({templateUrl:t.templateUrl,template:t.template,directives:t.directives,pipes:t.pipes,encapsulation:t.encapsulation,styles:t.styles,styleUrls:t.styleUrls});this._throwMixingViewAndComponent("styleUrls",e)}return null},e.prototype._throwMixingViewAndComponent=function(e,t){throw new p.BaseException("Component '"+u.stringify(t)+"' cannot have both '"+e+"' and '@View' set at the same time\"")},e=o([s.Injectable(),a("design:paramtypes",[])],e)}();return t.ViewResolver=h,n.define=i,r.exports}),System.register("angular2/src/core/debug/debug_node",["angular2/src/facade/lang","angular2/src/facade/collection"],!0,function(e,t,r){function n(e){return e.map(function(e){return e.nativeElement})}function i(e,t,r){e.childNodes.forEach(function(e){e instanceof v&&(t(e)&&r.push(e),i(e,t,r))})}function o(e,t,r){e instanceof v&&e.childNodes.forEach(function(e){t(e)&&r.push(e),e instanceof v&&o(e,t,r)})}function a(e){return y.get(e)}function s(){return h.MapWrapper.values(y)}function c(e){y.set(e.nativeNode,e)}function l(e){y["delete"](e.nativeNode)}var u=System.global,p=u.define;u.define=void 0;var d=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=e("angular2/src/facade/lang"),h=e("angular2/src/facade/collection"),g=function(){function e(e,t){this.name=e,this.callback=t}return e}();t.EventListener=g;var m=function(){function e(e,t){this.nativeNode=e,f.isPresent(t)&&t instanceof v?t.addChild(this):this.parent=null,this.listeners=[],this.providerTokens=[]}return e.prototype.setDebugInfo=function(e){this.injector=e.injector,this.providerTokens=e.providerTokens,this.locals=e.locals,this.componentInstance=e.component},e.prototype.inject=function(e){return this.injector.get(e)},e.prototype.getLocal=function(e){return this.locals.get(e)},e}();t.DebugNode=m;var v=function(e){function t(t,r){e.call(this,t,r),this.properties=new Map,this.attributes=new Map,this.childNodes=[],this.nativeElement=t}return d(t,e),t.prototype.addChild=function(e){f.isPresent(e)&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var r=this.childNodes.indexOf(e);if(-1!==r){var n=this.childNodes.slice(0,r+1),i=this.childNodes.slice(r+1);this.childNodes=h.ListWrapper.concat(h.ListWrapper.concat(n,t),i);for(var o=0;o<t.length;++o){var a=t[o];f.isPresent(a.parent)&&a.parent.removeChild(a),a.parent=this}}},t.prototype.query=function(e){var t=this.queryAll(e);return t.length>0?t[0]:null},t.prototype.queryAll=function(e){var t=[];return i(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return o(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){var e=[];return this.childNodes.forEach(function(r){r instanceof t&&e.push(r)}),e},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(r){r.name==e&&r.callback(t)})},t}(m);t.DebugElement=v,t.asNativeElements=n;var y=new Map;return t.getDebugNode=a,t.getAllDebugNodes=s,t.indexDebugNode=c,t.removeDebugNodeFromIndex=l,u.define=p,r.exports}),System.register("angular2/src/core/platform_directives_and_pipes",["angular2/src/core/di","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/di"),a=e("angular2/src/facade/lang");return t.PLATFORM_DIRECTIVES=a.CONST_EXPR(new o.OpaqueToken("Platform Directives")),t.PLATFORM_PIPES=a.CONST_EXPR(new o.OpaqueToken("Platform Pipes")),n.define=i,r.exports}),System.register("angular2/src/core/platform_common_providers",["angular2/src/facade/lang","angular2/src/core/di","angular2/src/core/console","angular2/src/core/reflection/reflection","angular2/src/core/testability/testability"],!0,function(e,t,r){function n(){return l.reflector}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/facade/lang"),s=e("angular2/src/core/di"),c=e("angular2/src/core/console"),l=e("angular2/src/core/reflection/reflection"),u=e("angular2/src/core/testability/testability");return t.PLATFORM_COMMON_PROVIDERS=a.CONST_EXPR([new s.Provider(l.Reflector,{useFactory:n,deps:[]}),u.TestabilityRegistry,c.Console]),i.define=o,r.exports}),System.register("angular2/src/core/linker/pipe_resolver",["angular2/src/core/di","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/core/metadata","angular2/src/core/reflection/reflection"],!0,function(e,t,r){function n(e){return e instanceof p.PipeMetadata}var i=System.global,o=i.define;i.define=void 0;var a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/core/di"),l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/exceptions"),p=e("angular2/src/core/metadata"),d=e("angular2/src/core/reflection/reflection"),f=function(){function e(){}return e.prototype.resolve=function(e){var t=d.reflector.annotations(c.resolveForwardRef(e));if(l.isPresent(t)){var r=t.find(n);if(l.isPresent(r))return r}throw new u.BaseException("No Pipe decorator found on "+l.stringify(e))},e=a([c.Injectable(),s("design:paramtypes",[])],e)}();return t.PipeResolver=f,t.CODEGEN_PIPE_RESOLVER=new f,i.define=o,r.exports}),System.register("angular2/src/platform/dom/debug/by",["angular2/src/facade/lang","angular2/src/platform/dom/dom_adapter"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/platform/dom/dom_adapter"),s=function(){function e(){}return e.all=function(){return function(e){return!0}},e.css=function(e){return function(t){return o.isPresent(t.nativeElement)?a.DOM.elementMatches(t.nativeElement,e):!1}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}},e}();return t.By=s,n.define=i,r.exports}),System.register("angular2/src/core/debug/debug_renderer",["angular2/src/facade/lang","angular2/src/core/debug/debug_node"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/core/debug/debug_node"),s=function(){function e(e){this._delegate=e}return e.prototype.renderComponent=function(e){return new c(this,this._delegate.renderComponent(e))},e}();t.DebugDomRootRenderer=s;var c=function(){function e(e,t){this._rootRenderer=e,this._delegate=t}return e.prototype.renderComponent=function(e){return this._rootRenderer.renderComponent(e)},e.prototype.selectRootElement=function(e){var t=this._delegate.selectRootElement(e),r=new a.DebugElement(t,null);return a.indexDebugNode(r),t},e.prototype.createElement=function(e,t){var r=this._delegate.createElement(e,t),n=new a.DebugElement(r,a.getDebugNode(e));return n.name=t,a.indexDebugNode(n),r},e.prototype.createViewRoot=function(e){return this._delegate.createViewRoot(e)},e.prototype.createTemplateAnchor=function(e){var t=this._delegate.createTemplateAnchor(e),r=new a.DebugNode(t,a.getDebugNode(e));return a.indexDebugNode(r),t},e.prototype.createText=function(e,t){var r=this._delegate.createText(e,t),n=new a.DebugNode(r,a.getDebugNode(e));return a.indexDebugNode(n),r},e.prototype.projectNodes=function(e,t){var r=a.getDebugNode(e);return o.isPresent(r)&&r instanceof a.DebugElement&&t.forEach(function(e){r.addChild(a.getDebugNode(e))}),this._delegate.projectNodes(e,t)},e.prototype.attachViewAfter=function(e,t){var r=a.getDebugNode(e);if(o.isPresent(r)){var n=r.parent;if(t.length>0&&o.isPresent(n)){var i=[];t.forEach(function(e){return i.push(a.getDebugNode(e))}),n.insertChildrenAfter(r,i)}}return this._delegate.attachViewAfter(e,t)},e.prototype.detachView=function(e){return e.forEach(function(e){var t=a.getDebugNode(e);o.isPresent(t)&&o.isPresent(t.parent)&&t.parent.removeChild(t)}),this._delegate.detachView(e)},e.prototype.destroyView=function(e,t){return t.forEach(function(e){a.removeDebugNodeFromIndex(a.getDebugNode(e))}),this._delegate.destroyView(e,t)},e.prototype.listen=function(e,t,r){var n=a.getDebugNode(e);return o.isPresent(n)&&n.listeners.push(new a.EventListener(t,r)),this._delegate.listen(e,t,r)},e.prototype.listenGlobal=function(e,t,r){return this._delegate.listenGlobal(e,t,r)},e.prototype.setElementProperty=function(e,t,r){var n=a.getDebugNode(e);return o.isPresent(n)&&n instanceof a.DebugElement&&n.properties.set(t,r),this._delegate.setElementProperty(e,t,r)},e.prototype.setElementAttribute=function(e,t,r){var n=a.getDebugNode(e);return o.isPresent(n)&&n instanceof a.DebugElement&&n.attributes.set(t,r),this._delegate.setElementAttribute(e,t,r)},e.prototype.setBindingDebugInfo=function(e,t,r){return this._delegate.setBindingDebugInfo(e,t,r)},e.prototype.setElementDebugInfo=function(e,t){var r=a.getDebugNode(e);return r.setDebugInfo(t),this._delegate.setElementDebugInfo(e,t)},e.prototype.setElementClass=function(e,t,r){return this._delegate.setElementClass(e,t,r)},e.prototype.setElementStyle=function(e,t,r){return this._delegate.setElementStyle(e,t,r)},e.prototype.invokeElementMethod=function(e,t,r){return this._delegate.invokeElementMethod(e,t,r)},e.prototype.setText=function(e,t){return this._delegate.setText(e,t)},e}();return t.DebugDomRenderer=c,n.define=i,r.exports}),System.register("angular2/src/platform/dom/dom_adapter",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){a.isBlank(t.DOM)&&(t.DOM=e)}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/facade/lang");t.DOM=null,t.setRootDomAdapter=n;var s=function(){function e(){}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}();return t.DomAdapter=s,i.define=o,r.exports}),System.register("angular2/src/core/di/decorators",["angular2/src/core/di/metadata","angular2/src/core/util/decorators"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/di/metadata"),a=e("angular2/src/core/util/decorators");return t.Inject=a.makeParamDecorator(o.InjectMetadata),t.Optional=a.makeParamDecorator(o.OptionalMetadata),t.Injectable=a.makeDecorator(o.InjectableMetadata),t.Self=a.makeParamDecorator(o.SelfMetadata),t.Host=a.makeParamDecorator(o.HostMetadata),t.SkipSelf=a.makeParamDecorator(o.SkipSelfMetadata),n.define=i,r.exports}),System.register("angular2/src/facade/exceptions",["angular2/src/facade/base_wrapped_exception","angular2/src/facade/exception_handler","angular2/src/facade/exception_handler"],!0,function(e,t,r){function n(e){return new TypeError(e)}function i(){throw new p("unimplemented")}var o=System.global,a=o.define;o.define=void 0;var s=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=e("angular2/src/facade/base_wrapped_exception"),l=e("angular2/src/facade/exception_handler"),u=e("angular2/src/facade/exception_handler");t.ExceptionHandler=u.ExceptionHandler;var p=function(e){function t(t){void 0===t&&(t="--"),e.call(this,t),this.message=t,this.stack=new Error(t).stack}return s(t,e),t.prototype.toString=function(){return this.message},t}(Error);t.BaseException=p;var d=function(e){function t(t,r,n,i){e.call(this,t),this._wrapperMessage=t,this._originalException=r,this._originalStack=n,this._context=i,this._wrapperStack=new Error(t).stack}return s(t,e),Object.defineProperty(t.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return l.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.message},t}(c.BaseWrappedException);return t.WrappedException=d,t.makeTypeError=n,t.unimplemented=i,o.define=a,r.exports}),System.register("angular2/src/core/reflection/reflection",["angular2/src/core/reflection/reflector","angular2/src/core/reflection/reflector","angular2/src/core/reflection/reflection_capabilities"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/reflection/reflector"),a=e("angular2/src/core/reflection/reflector");t.Reflector=a.Reflector,t.ReflectionInfo=a.ReflectionInfo;var s=e("angular2/src/core/reflection/reflection_capabilities");return t.reflector=new o.Reflector(new s.ReflectionCapabilities),n.define=i,r.exports}),System.register("angular2/src/animate/animation",["angular2/src/facade/lang","angular2/src/facade/math","angular2/src/platform/dom/util","angular2/src/facade/collection","angular2/src/platform/dom/dom_adapter"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/facade/math"),s=e("angular2/src/platform/dom/util"),c=e("angular2/src/facade/collection"),l=e("angular2/src/platform/dom/dom_adapter"),u=function(){function e(e,t,r){var n=this;this.element=e,this.data=t,this.browserDetails=r,this.callbacks=[],this.eventClearFunctions=[],this.completed=!1,this._stringPrefix="",this.startTime=o.DateWrapper.toMillis(o.DateWrapper.now()),this._stringPrefix=l.DOM.getAnimationPrefix(),this.setup(),this.wait(function(e){return n.start()})}return Object.defineProperty(e.prototype,"totalTime",{get:function(){var e=null!=this.computedDelay?this.computedDelay:0,t=null!=this.computedDuration?this.computedDuration:0;return e+t},enumerable:!0,configurable:!0}),e.prototype.wait=function(e){this.browserDetails.raf(e,2)},e.prototype.setup=function(){null!=this.data.fromStyles&&this.applyStyles(this.data.fromStyles),null!=this.data.duration&&this.applyStyles({transitionDuration:this.data.duration.toString()+"ms"}),null!=this.data.delay&&this.applyStyles({transitionDelay:this.data.delay.toString()+"ms"})},e.prototype.start=function(){this.addClasses(this.data.classesToAdd),this.addClasses(this.data.animationClasses),this.removeClasses(this.data.classesToRemove),null!=this.data.toStyles&&this.applyStyles(this.data.toStyles);var e=l.DOM.getComputedStyle(this.element);this.computedDelay=a.Math.max(this.parseDurationString(e.getPropertyValue(this._stringPrefix+"transition-delay")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-delay"))),this.computedDuration=a.Math.max(this.parseDurationString(e.getPropertyValue(this._stringPrefix+"transition-duration")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-duration"))),this.addEvents()},e.prototype.applyStyles=function(e){var t=this;c.StringMapWrapper.forEach(e,function(e,r){var n=s.camelCaseToDashCase(r);o.isPresent(l.DOM.getStyle(t.element,n))?l.DOM.setStyle(t.element,n,e.toString()):l.DOM.setStyle(t.element,t._stringPrefix+n,e.toString())})},e.prototype.addClasses=function(e){for(var t=0,r=e.length;r>t;t++)l.DOM.addClass(this.element,e[t])},e.prototype.removeClasses=function(e){for(var t=0,r=e.length;r>t;t++)l.DOM.removeClass(this.element,e[t])},e.prototype.addEvents=function(){var e=this;this.totalTime>0?this.eventClearFunctions.push(l.DOM.onAndCancel(this.element,l.DOM.getTransitionEnd(),function(t){return e.handleAnimationEvent(t)})):this.handleAnimationCompleted()},e.prototype.handleAnimationEvent=function(e){var t=a.Math.round(1e3*e.elapsedTime);this.browserDetails.elapsedTimeIncludesDelay||(t+=this.computedDelay),e.stopPropagation(),t>=this.totalTime&&this.handleAnimationCompleted()},e.prototype.handleAnimationCompleted=function(){this.removeClasses(this.data.animationClasses),this.callbacks.forEach(function(e){return e()}),this.callbacks=[],this.eventClearFunctions.forEach(function(e){return e()}),this.eventClearFunctions=[],this.completed=!0},e.prototype.onComplete=function(e){return this.completed?e():this.callbacks.push(e),this},e.prototype.parseDurationString=function(e){var t=0;if(null==e||e.length<2)return t;if("ms"==e.substring(e.length-2)){var r=o.NumberWrapper.parseInt(this.stripLetters(e),10);r>t&&(t=r)}else if("s"==e.substring(e.length-1)){var n=1e3*o.NumberWrapper.parseFloat(this.stripLetters(e)),r=a.Math.floor(n);r>t&&(t=r)}return t},e.prototype.stripLetters=function(e){return o.StringWrapper.replaceAll(e,o.RegExpWrapper.create("[^0-9]+$",""),"")},e}();return t.Animation=u,n.define=i,r.exports}),System.register("angular2/src/platform/dom/shared_styles_host",["angular2/src/platform/dom/dom_adapter","angular2/src/core/di","angular2/src/facade/collection","angular2/src/platform/dom/dom_tokens"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},l=e("angular2/src/platform/dom/dom_adapter"),u=e("angular2/src/core/di"),p=e("angular2/src/facade/collection"),d=e("angular2/src/platform/dom/dom_tokens"),f=function(){function e(){this._styles=[],this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,r=[];e.forEach(function(e){p.SetWrapper.has(t._stylesSet,e)||(t._stylesSet.add(e),t._styles.push(e),r.push(e))}),this.onStylesAdded(r)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return this._styles},e=a([u.Injectable(),s("design:paramtypes",[])],e)}();t.SharedStylesHost=f;var h=function(e){function t(t){e.call(this),this._hostNodes=new Set,this._hostNodes.add(t.head)}return o(t,e),t.prototype._addStylesToHost=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];l.DOM.appendChild(t,l.DOM.createStyleElement(n))}},t.prototype.addHost=function(e){this._addStylesToHost(this._styles,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){p.SetWrapper["delete"](this._hostNodes,e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(r){t._addStylesToHost(e,r)})},t=a([u.Injectable(),c(0,u.Inject(d.DOCUMENT)),s("design:paramtypes",[Object])],t)}(f);return t.DomSharedStylesHost=h,n.define=i,r.exports}),System.register("angular2/src/core/profile/profile",["angular2/src/core/profile/wtf_impl"],!0,function(e,t,r){function n(e,t){return null}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/core/profile/wtf_impl");return t.wtfEnabled=a.detectWTF(),t.wtfCreateScope=t.wtfEnabled?a.createScope:function(e,t){return n},t.wtfLeave=t.wtfEnabled?a.leave:function(e,t){return t},t.wtfStartTimeRange=t.wtfEnabled?a.startTimeRange:function(e,t){return null},t.wtfEndTimeRange=t.wtfEnabled?a.endTimeRange:function(e){return null},i.define=o,r.exports}),System.register("angular2/src/core/change_detection/change_detection_util",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/change_detection/constants","angular2/src/core/change_detection/pipe_lifecycle_reflector","angular2/src/core/change_detection/binding_record","angular2/src/core/change_detection/directive_record"],!0,function(e,t,r){function n(e,t){var r=v++%20,n=y[r];return n.previousValue=e,n.currentValue=t,n}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/facade/lang"),s=e("angular2/src/facade/exceptions"),c=e("angular2/src/facade/collection"),l=e("angular2/src/core/change_detection/constants"),u=e("angular2/src/core/change_detection/pipe_lifecycle_reflector"),p=e("angular2/src/core/change_detection/binding_record"),d=e("angular2/src/core/change_detection/directive_record"),f=function(){function e(e){this.wrapped=e}return e.wrap=function(e){var t=h[g++%5];return t.wrapped=e,t},e}();t.WrappedValue=f;var h=[new f(null),new f(null),new f(null),new f(null),new f(null)],g=0,m=function(){ function e(e,t){this.previousValue=e,this.currentValue=t}return e.prototype.isFirstChange=function(){return this.previousValue===_.uninitialized},e}();t.SimpleChange=m;var v=0,y=[new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null),new m(null,null)],_=function(){function e(){}return e.arrayFn0=function(){return[]},e.arrayFn1=function(e){return[e]},e.arrayFn2=function(e,t){return[e,t]},e.arrayFn3=function(e,t,r){return[e,t,r]},e.arrayFn4=function(e,t,r,n){return[e,t,r,n]},e.arrayFn5=function(e,t,r,n,i){return[e,t,r,n,i]},e.arrayFn6=function(e,t,r,n,i,o){return[e,t,r,n,i,o]},e.arrayFn7=function(e,t,r,n,i,o,a){return[e,t,r,n,i,o,a]},e.arrayFn8=function(e,t,r,n,i,o,a,s){return[e,t,r,n,i,o,a,s]},e.arrayFn9=function(e,t,r,n,i,o,a,s,c){return[e,t,r,n,i,o,a,s,c]},e.operation_negate=function(e){return!e},e.operation_add=function(e,t){return e+t},e.operation_subtract=function(e,t){return e-t},e.operation_multiply=function(e,t){return e*t},e.operation_divide=function(e,t){return e/t},e.operation_remainder=function(e,t){return e%t},e.operation_equals=function(e,t){return e==t},e.operation_not_equals=function(e,t){return e!=t},e.operation_identical=function(e,t){return e===t},e.operation_not_identical=function(e,t){return e!==t},e.operation_less_then=function(e,t){return t>e},e.operation_greater_then=function(e,t){return e>t},e.operation_less_or_equals_then=function(e,t){return t>=e},e.operation_greater_or_equals_then=function(e,t){return e>=t},e.cond=function(e,t,r){return e?t:r},e.mapFn=function(e){function t(t){for(var r=c.StringMapWrapper.create(),n=0;n<e.length;++n)c.StringMapWrapper.set(r,e[n],t[n]);return r}switch(e.length){case 0:return function(){return[]};case 1:return function(e){return t([e])};case 2:return function(e,r){return t([e,r])};case 3:return function(e,r,n){return t([e,r,n])};case 4:return function(e,r,n,i){return t([e,r,n,i])};case 5:return function(e,r,n,i,o){return t([e,r,n,i,o])};case 6:return function(e,r,n,i,o,a){return t([e,r,n,i,o,a])};case 7:return function(e,r,n,i,o,a,s){return t([e,r,n,i,o,a,s])};case 8:return function(e,r,n,i,o,a,s,c){return t([e,r,n,i,o,a,s,c])};case 9:return function(e,r,n,i,o,a,s,c,l){return t([e,r,n,i,o,a,s,c,l])};default:throw new s.BaseException("Does not support literal maps with more than 9 elements")}},e.keyedAccess=function(e,t){return e[t[0]]},e.unwrapValue=function(e){return e instanceof f?e.wrapped:e},e.changeDetectionMode=function(e){return l.isDefaultChangeDetectionStrategy(e)?l.ChangeDetectionStrategy.CheckAlways:l.ChangeDetectionStrategy.CheckOnce},e.simpleChange=function(e,t){return n(e,t)},e.isValueBlank=function(e){return a.isBlank(e)},e.s=function(e){return a.isPresent(e)?""+e:""},e.protoByIndex=function(e,t){return 1>t?null:e[t-1]},e.callPipeOnDestroy=function(e){u.implementsOnDestroy(e.pipe)&&e.pipe.ngOnDestroy()},e.bindingTarget=function(e,t,r,n,i){return new p.BindingTarget(e,t,r,n,i)},e.directiveIndex=function(e,t){return new d.DirectiveIndex(e,t)},e.looseNotIdentical=function(e,t){return!a.looseIdentical(e,t)},e.devModeEqual=function(t,r){return c.isListLikeIterable(t)&&c.isListLikeIterable(r)?c.areIterablesEqual(t,r,e.devModeEqual):c.isListLikeIterable(t)||a.isPrimitive(t)||c.isListLikeIterable(r)||a.isPrimitive(r)?a.looseIdentical(t,r):!0},e.uninitialized=a.CONST_EXPR(new Object),e}();return t.ChangeDetectionUtil=_,i.define=o,r.exports}),System.register("angular2/src/core/change_detection/abstract_change_detector",["angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/core/change_detection/change_detection_util","angular2/src/core/change_detection/change_detector_ref","angular2/src/core/change_detection/exceptions","angular2/src/core/change_detection/parser/locals","angular2/src/core/change_detection/constants","angular2/src/core/profile/profile","angular2/src/facade/async"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/facade/collection"),s=e("angular2/src/core/change_detection/change_detection_util"),c=e("angular2/src/core/change_detection/change_detector_ref"),l=e("angular2/src/core/change_detection/exceptions"),u=e("angular2/src/core/change_detection/parser/locals"),p=e("angular2/src/core/change_detection/constants"),d=e("angular2/src/core/profile/profile"),f=e("angular2/src/facade/async"),h=d.wtfCreateScope("ChangeDetector#check(ascii id, bool throwOnChange)"),g=function(){function e(e,t,r,n,i,o){this.element=e,this.componentElement=t,this.context=r,this.locals=n,this.injector=i,this.expression=o}return e}(),m=function(){function e(e,t,r,n,i){this.id=e,this.numberOfPropertyProtoRecords=t,this.bindingTargets=r,this.directiveIndices=n,this.strategy=i,this.contentChildren=[],this.viewChildren=[],this.state=p.ChangeDetectorState.NeverChecked,this.locals=null,this.mode=null,this.pipes=null,this.ref=new c.ChangeDetectorRef_(this)}return e.prototype.addContentChild=function(e){this.contentChildren.push(e),e.parent=this},e.prototype.removeContentChild=function(e){a.ListWrapper.remove(this.contentChildren,e)},e.prototype.addViewChild=function(e){this.viewChildren.push(e),e.parent=this},e.prototype.removeViewChild=function(e){a.ListWrapper.remove(this.viewChildren,e)},e.prototype.remove=function(){this.parent.removeContentChild(this)},e.prototype.handleEvent=function(e,t,r){this.hydrated()||this.throwDehydratedError(this.id+" -> "+e);try{var n=new Map;n.set("$event",r);var i=!this.handleEventInternal(e,t,new u.Locals(this.locals,n));return this.markPathToRootAsCheckOnce(),i}catch(a){var s=this.dispatcher.getDebugContext(null,t,null),c=o.isPresent(s)?new l.EventEvaluationErrorContext(s.element,s.componentElement,s.context,s.locals,s.injector):null;throw new l.EventEvaluationError(e,a,a.stack,c)}},e.prototype.handleEventInternal=function(e,t,r){return!1},e.prototype.detectChanges=function(){this.runDetectChanges(!1)},e.prototype.checkNoChanges=function(){o.assertionsEnabled()&&this.runDetectChanges(!0)},e.prototype.runDetectChanges=function(e){if(this.mode!==p.ChangeDetectionStrategy.Detached&&this.mode!==p.ChangeDetectionStrategy.Checked&&this.state!==p.ChangeDetectorState.Errored){var t=h(this.id,e);this.detectChangesInRecords(e),this._detectChangesContentChildren(e),e||this.afterContentLifecycleCallbacks(),this._detectChangesInViewChildren(e),e||this.afterViewLifecycleCallbacks(),this.mode===p.ChangeDetectionStrategy.CheckOnce&&(this.mode=p.ChangeDetectionStrategy.Checked),this.state=p.ChangeDetectorState.CheckedBefore,d.wtfLeave(t)}},e.prototype.detectChangesInRecords=function(e){this.hydrated()||this.throwDehydratedError(this.id);try{this.detectChangesInRecordsInternal(e)}catch(t){t instanceof l.ExpressionChangedAfterItHasBeenCheckedException||(this.state=p.ChangeDetectorState.Errored),this._throwError(t,t.stack)}},e.prototype.detectChangesInRecordsInternal=function(e){},e.prototype.hydrate=function(e,t,r,n){this.dispatcher=r,this.mode=s.ChangeDetectionUtil.changeDetectionMode(this.strategy),this.context=e,this.locals=t,this.pipes=n,this.hydrateDirectives(r),this.state=p.ChangeDetectorState.NeverChecked},e.prototype.hydrateDirectives=function(e){},e.prototype.dehydrate=function(){this.dehydrateDirectives(!0),this._unsubscribeFromOutputs(),this.dispatcher=null,this.context=null,this.locals=null,this.pipes=null},e.prototype.dehydrateDirectives=function(e){},e.prototype.hydrated=function(){return o.isPresent(this.context)},e.prototype.destroyRecursive=function(){this.dispatcher.notifyOnDestroy(),this.dehydrate();for(var e=this.contentChildren,t=0;t<e.length;t++)e[t].destroyRecursive();e=this.viewChildren;for(var t=0;t<e.length;t++)e[t].destroyRecursive()},e.prototype.afterContentLifecycleCallbacks=function(){this.dispatcher.notifyAfterContentChecked(),this.afterContentLifecycleCallbacksInternal()},e.prototype.afterContentLifecycleCallbacksInternal=function(){},e.prototype.afterViewLifecycleCallbacks=function(){this.dispatcher.notifyAfterViewChecked(),this.afterViewLifecycleCallbacksInternal()},e.prototype.afterViewLifecycleCallbacksInternal=function(){},e.prototype._detectChangesContentChildren=function(e){for(var t=this.contentChildren,r=0;r<t.length;++r)t[r].runDetectChanges(e)},e.prototype._detectChangesInViewChildren=function(e){for(var t=this.viewChildren,r=0;r<t.length;++r)t[r].runDetectChanges(e)},e.prototype.markAsCheckOnce=function(){this.mode=p.ChangeDetectionStrategy.CheckOnce},e.prototype.markPathToRootAsCheckOnce=function(){for(var e=this;o.isPresent(e)&&e.mode!==p.ChangeDetectionStrategy.Detached;)e.mode===p.ChangeDetectionStrategy.Checked&&(e.mode=p.ChangeDetectionStrategy.CheckOnce),e=e.parent},e.prototype._unsubscribeFromOutputs=function(){if(o.isPresent(this.outputSubscriptions))for(var e=0;e<this.outputSubscriptions.length;++e)f.ObservableWrapper.dispose(this.outputSubscriptions[e]),this.outputSubscriptions[e]=null},e.prototype.getDirectiveFor=function(e,t){return e.getDirectiveFor(this.directiveIndices[t])},e.prototype.getDetectorFor=function(e,t){return e.getDetectorFor(this.directiveIndices[t])},e.prototype.notifyDispatcher=function(e){this.dispatcher.notifyOnBinding(this._currentBinding(),e)},e.prototype.logBindingUpdate=function(e){this.dispatcher.logBindingUpdate(this._currentBinding(),e)},e.prototype.addChange=function(e,t,r){return o.isBlank(e)&&(e={}),e[this._currentBinding().name]=s.ChangeDetectionUtil.simpleChange(t,r),e},e.prototype._throwError=function(e,t){var r;try{var n=this.dispatcher.getDebugContext(null,this._currentBinding().elementIndex,null),i=o.isPresent(n)?new g(n.element,n.componentElement,n.context,n.locals,n.injector,this._currentBinding().debug):null;r=new l.ChangeDetectionError(this._currentBinding().debug,e,t,i)}catch(a){r=new l.ChangeDetectionError(null,e,t,null)}throw r},e.prototype.throwOnChangeError=function(e,t){throw new l.ExpressionChangedAfterItHasBeenCheckedException(this._currentBinding().debug,e,t,null)},e.prototype.throwDehydratedError=function(e){throw new l.DehydratedException(e)},e.prototype._currentBinding=function(){return this.bindingTargets[this.propertyBindingIndex]},e}();return t.AbstractChangeDetector=m,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/codegen_logic_util",["angular2/src/facade/lang","angular2/src/core/change_detection/codegen_facade","angular2/src/core/change_detection/proto_record","angular2/src/facade/exceptions"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/core/change_detection/codegen_facade"),s=e("angular2/src/core/change_detection/proto_record"),c=e("angular2/src/facade/exceptions"),l=function(){function e(e,t,r){this._names=e,this._utilName=t,this._changeDetectorStateName=r}return e.prototype.genPropertyBindingEvalValue=function(e){var t=this;return this._genEvalValue(e,function(e){return t._names.getLocalName(e)},this._names.getLocalsAccessorName())},e.prototype.genEventBindingEvalValue=function(e,t){var r=this;return this._genEvalValue(t,function(t){return r._names.getEventLocalName(e,t)},"locals")},e.prototype._genEvalValue=function(e,t,r){var n,i=-1==e.contextIndex?this._names.getDirectiveName(e.directiveIndex):t(e.contextIndex),o=e.args.map(function(e){return t(e)}).join(", ");switch(e.mode){case s.RecordType.Self:n=i;break;case s.RecordType.Const:n=a.codify(e.funcOrValue);break;case s.RecordType.PropertyRead:n=i+"."+e.name;break;case s.RecordType.SafeProperty:var l=i+"."+e.name;n=this._utilName+".isValueBlank("+i+") ? null : "+l;break;case s.RecordType.PropertyWrite:n=i+"."+e.name+" = "+t(e.args[0]);break;case s.RecordType.Local:n=r+".get("+a.rawString(e.name)+")";break;case s.RecordType.InvokeMethod:n=i+"."+e.name+"("+o+")";break;case s.RecordType.SafeMethodInvoke:var u=i+"."+e.name+"("+o+")";n=this._utilName+".isValueBlank("+i+") ? null : "+u;break;case s.RecordType.InvokeClosure:n=i+"("+o+")";break;case s.RecordType.PrimitiveOp:n=this._utilName+"."+e.name+"("+o+")";break;case s.RecordType.CollectionLiteral:n=this._utilName+"."+e.name+"("+o+")";break;case s.RecordType.Interpolate:n=this._genInterpolation(e);break;case s.RecordType.KeyedRead:n=i+"["+t(e.args[0])+"]";break;case s.RecordType.KeyedWrite:n=i+"["+t(e.args[0])+"] = "+t(e.args[1]);break;case s.RecordType.Chain:n=""+t(e.args[e.args.length-1]);break;default:throw new c.BaseException("Unknown operation "+e.mode)}return t(e.selfIndex)+" = "+n+";"},e.prototype.genPropertyBindingTargets=function(e,t){var r=this,n=e.map(function(e){if(o.isBlank(e))return"null";var n=t?a.codify(e.debug):"null";return r._utilName+".bindingTarget("+a.codify(e.mode)+", "+e.elementIndex+", "+a.codify(e.name)+", "+a.codify(e.unit)+", "+n+")"});return"["+n.join(", ")+"]"},e.prototype.genDirectiveIndices=function(e){var t=this,r=e.map(function(e){return t._utilName+".directiveIndex("+e.directiveIndex.elementIndex+", "+e.directiveIndex.directiveIndex+")"});return"["+r.join(", ")+"]"},e.prototype._genInterpolation=function(e){for(var t=[],r=0;r<e.args.length;++r)t.push(a.codify(e.fixedArgs[r])),t.push(this._utilName+".s("+this._names.getLocalName(e.args[r])+")");return t.push(a.codify(e.fixedArgs[e.args.length])),a.combineGeneratedStrings(t)},e.prototype.genHydrateDirectives=function(e){for(var t=this,r=[],n=0,i=0;i<e.length;++i){var a=e[i],s=this._names.getDirectiveName(a.directiveIndex);r.push(s+" = "+this._genReadDirective(i)+";"),o.isPresent(a.outputs)&&a.outputs.forEach(function(e){var i=t._genEventHandler(a.directiveIndex.elementIndex,e[1]),c="this.outputSubscriptions["+n++ +"] = "+s+"."+e[0];o.IS_DART?r.push(c+".listen("+i+");"):r.push(c+".subscribe({next: "+i+"});")})}if(n>0){var c="this.outputSubscriptions";o.IS_DART?r.unshift(c+" = new List("+n+");"):r.unshift(c+" = new Array("+n+");")}return r.join("\n")},e.prototype.genDirectivesOnDestroy=function(e){for(var t=[],r=0;r<e.length;++r){var n=e[r];if(n.callOnDestroy){var i=this._names.getDirectiveName(n.directiveIndex);t.push(i+".ngOnDestroy();")}}return t.join("\n")},e.prototype._genEventHandler=function(e,t){return o.IS_DART?"(event) => this.handleEvent('"+t+"', "+e+", event)":"(function(event) { return this.handleEvent('"+t+"', "+e+", event); }).bind(this)"},e.prototype._genReadDirective=function(e){return"this.getDirectiveFor(directives, "+e+")"},e.prototype.genHydrateDetectors=function(e){for(var t=[],r=0;r<e.length;++r){var n=e[r];n.isDefaultChangeDetection()||t.push(this._names.getDetectorName(n.directiveIndex)+" = this.getDetectorFor(directives, "+r+");")}return t.join("\n")},e.prototype.genContentLifecycleCallbacks=function(e){for(var t=[],r=o.IS_DART?"==":"===",n=e.length-1;n>=0;--n){var i=e[n];i.callAfterContentInit&&t.push("if("+this._names.getStateName()+" "+r+" "+this._changeDetectorStateName+".NeverChecked) "+this._names.getDirectiveName(i.directiveIndex)+".ngAfterContentInit();"),i.callAfterContentChecked&&t.push(this._names.getDirectiveName(i.directiveIndex)+".ngAfterContentChecked();")}return t},e.prototype.genViewLifecycleCallbacks=function(e){for(var t=[],r=o.IS_DART?"==":"===",n=e.length-1;n>=0;--n){var i=e[n];i.callAfterViewInit&&t.push("if("+this._names.getStateName()+" "+r+" "+this._changeDetectorStateName+".NeverChecked) "+this._names.getDirectiveName(i.directiveIndex)+".ngAfterViewInit();"),i.callAfterViewChecked&&t.push(this._names.getDirectiveName(i.directiveIndex)+".ngAfterViewChecked();")}return t},e}();return t.CodegenLogicUtil=l,n.define=i,r.exports}),System.register("angular2/src/core/linker/element",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/di","angular2/src/core/di/provider","angular2/src/core/di/injector","angular2/src/core/di/provider","angular2/src/core/metadata/di","angular2/src/core/linker/view_type","angular2/src/core/linker/element_ref","angular2/src/core/linker/view_container_ref","angular2/src/core/linker/element_ref","angular2/src/core/render/api","angular2/src/core/linker/template_ref","angular2/src/core/metadata/directives","angular2/src/core/change_detection/change_detection","angular2/src/core/linker/query_list","angular2/src/core/reflection/reflection","angular2/src/core/pipes/pipe_provider","angular2/src/core/linker/view_container_ref"],!0,function(e,t,r){function n(e,t,r){for(var n=0;n<e.length;n++)r.set(e[n].key.id,t)}var i=System.global,o=i.define;i.define=void 0;var a,s=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=e("angular2/src/facade/lang"),l=e("angular2/src/facade/exceptions"),u=e("angular2/src/facade/collection"),p=e("angular2/src/core/di"),d=e("angular2/src/core/di/provider"),f=e("angular2/src/core/di/injector"),h=e("angular2/src/core/di/provider"),g=e("angular2/src/core/metadata/di"),m=e("angular2/src/core/linker/view_type"),v=e("angular2/src/core/linker/element_ref"),y=e("angular2/src/core/linker/view_container_ref"),_=e("angular2/src/core/linker/element_ref"),b=e("angular2/src/core/render/api"),C=e("angular2/src/core/linker/template_ref"),w=e("angular2/src/core/metadata/directives"),P=e("angular2/src/core/change_detection/change_detection"),E=e("angular2/src/core/linker/query_list"),S=e("angular2/src/core/reflection/reflection"),R=e("angular2/src/core/pipes/pipe_provider"),x=e("angular2/src/core/linker/view_container_ref"),O=function(){function e(){this.templateRefId=p.Key.get(C.TemplateRef).id,this.viewContainerId=p.Key.get(y.ViewContainerRef).id,this.changeDetectorRefId=p.Key.get(P.ChangeDetectorRef).id,this.elementRefId=p.Key.get(_.ElementRef).id,this.rendererId=p.Key.get(b.Renderer).id}return e.instance=function(){return c.isBlank(a)&&(a=new e),a},e}();t.StaticKeys=O;var D=function(e){function t(t,r,n,i,o,a,s){e.call(this,t,r,n,i,o),this.attributeName=a,this.queryDecorator=s,this._verify()}return s(t,e),t.prototype._verify=function(){var e=0;if(c.isPresent(this.queryDecorator)&&e++,c.isPresent(this.attributeName)&&e++,e>1)throw new l.BaseException("A directive injectable can contain only one of the following @Attribute or @Query.")},t.createFrom=function(e){return new t(e.key,e.optional,e.lowerBoundVisibility,e.upperBoundVisibility,e.properties,t._attributeName(e.properties),t._query(e.properties))},t._attributeName=function(e){var t=e.find(function(e){return e instanceof g.AttributeMetadata});return c.isPresent(t)?t.attributeName:null},t._query=function(e){return e.find(function(e){return e instanceof g.QueryMetadata})},t}(p.Dependency);t.DirectiveDependency=D;var A=function(e){function t(t,r,n,i,o,a,s){e.call(this,t,[new h.ResolvedFactory(r,n)],!1),this.isComponent=i,this.providers=o,this.viewProviders=a,this.queries=s}return s(t,e),Object.defineProperty(t.prototype,"displayName",{get:function(){return this.key.displayName},enumerable:!0,configurable:!0}),t.createFromType=function(e,r){var n=new p.Provider(e,{useClass:e});c.isBlank(r)&&(r=new w.DirectiveMetadata);var i=h.resolveProvider(n),o=i.resolvedFactories[0],a=o.dependencies.map(D.createFrom),s=r instanceof w.ComponentMetadata,l=c.isPresent(r.providers)?p.Injector.resolve(r.providers):null,d=r instanceof w.ComponentMetadata&&c.isPresent(r.viewProviders)?p.Injector.resolve(r.viewProviders):null,f=[];return c.isPresent(r.queries)&&u.StringMapWrapper.forEach(r.queries,function(e,t){var r=S.reflector.setter(t);f.push(new T(r,e))}),a.forEach(function(e){c.isPresent(e.queryDecorator)&&f.push(new T(null,e.queryDecorator))}),new t(i.key,o.factory,a,s,l,d,f)},t}(h.ResolvedProvider_);t.DirectiveProvider=A;var T=function(){function e(e,t){this.setter=e,this.metadata=t}return e}();t.QueryMetadataWithSetter=T;var I=function(){function e(e,t,r,n,i,o){this.firstProviderIsComponent=e,this.index=t,this.attributes=r,this.protoQueryRefs=i,this.directiveVariableBindings=o;var a=n.length;a>0?this.protoInjector=new f.ProtoInjector(n):(this.protoInjector=null,this.protoQueryRefs=[])}return e.create=function(t,r,i,o,a){for(var s=null,l=new Map,p=new Map,h=u.ListWrapper.createGrowableSize(o.length),g=[],m=0;m<o.length;m++){var v=t.getResolvedDirectiveMetadata(o[m]);h[m]=new f.ProviderWithVisibility(v,v.isComponent?f.Visibility.PublicAndPrivate:f.Visibility.Public),v.isComponent?s=v:c.isPresent(v.providers)&&(d.mergeResolvedProviders(v.providers,l),n(v.providers,f.Visibility.Public,p)),c.isPresent(v.viewProviders)&&(d.mergeResolvedProviders(v.viewProviders,l),n(v.viewProviders,f.Visibility.Private,p));for(var y=0;y<v.queries.length;y++){var _=v.queries[y];g.push(new U(m,_.setter,_.metadata))}}return c.isPresent(s)&&c.isPresent(s.providers)&&(d.mergeResolvedProviders(s.providers,l),n(s.providers,f.Visibility.Public,p)),l.forEach(function(e,t){h.push(new f.ProviderWithVisibility(e,p.get(e.key.id)))}),new e(c.isPresent(s),r,i,h,g,a)},e.prototype.getProviderAtIndex=function(e){return this.protoInjector.getProviderAtIndex(e)},e}();t.AppProtoElement=I;var k=function(){function e(e,t,r){this.element=e,this.componentElement=t,this.injector=r}return e}(),N=function(){function e(e,t){this.injector=e,this.hostInjectorBoundary=t}return e}();t.InjectorWithHostBoundary=N;var V=function(){function e(e,t,r,n,i){var o=this;this.proto=e,this.parentView=t,this.parent=r,this.nativeElement=n,this.embeddedViewFactory=i,this.nestedViews=null,this.componentView=null,this.ref=new v.ElementRef_(this);var a=c.isPresent(r)?r._injector:t.parentInjector;if(c.isPresent(this.proto.protoInjector)){var s;s=c.isPresent(r)&&c.isPresent(r.proto.protoInjector)?!1:t.hostInjectorBoundary,this._queryStrategy=this._buildQueryStrategy(),this._injector=new p.Injector(this.proto.protoInjector,a,s,this,function(){return o._debugContext()});var l=this._injector.internalStrategy;this._strategy=l instanceof f.InjectorInlineStrategy?new F(l,this):new W(l,this),this._strategy.init()}else this._queryStrategy=null,this._injector=a,this._strategy=null}return e.getViewParentInjector=function(e,t,r,n){var i,o;switch(e){case m.ViewType.COMPONENT:i=t._injector,o=!0;break;case m.ViewType.EMBEDDED:i=c.isPresent(t.proto.protoInjector)?t._injector.parent:t._injector,o=t._injector.hostBoundary;break;case m.ViewType.HOST:if(c.isPresent(t))if(i=c.isPresent(t.proto.protoInjector)?t._injector.parent:t._injector,c.isPresent(r)){var a=r.map(function(e){return new f.ProviderWithVisibility(e,f.Visibility.Public)});i=new p.Injector(new f.ProtoInjector(a),i,!0,null,null),o=!1}else o=t._injector.hostBoundary;else i=n,o=!0}return new N(i,o)},e.prototype.attachComponentView=function(e){this.componentView=e},e.prototype._debugContext=function(){var e=this.parentView.getDebugContext(this,null,null);return c.isPresent(e)?new k(e.element,e.componentElement,e.injector):null},e.prototype.hasVariableBinding=function(e){var t=this.proto.directiveVariableBindings;return c.isPresent(t)&&u.StringMapWrapper.contains(t,e)},e.prototype.getVariableBinding=function(e){var t=this.proto.directiveVariableBindings[e];return c.isPresent(t)?this.getDirectiveAtIndex(t):this.getElementRef()},e.prototype.get=function(e){return this._injector.get(e)},e.prototype.hasDirective=function(e){return c.isPresent(this._injector.getOptional(e))},e.prototype.getComponent=function(){return c.isPresent(this._strategy)?this._strategy.getComponent():null},e.prototype.getInjector=function(){return this._injector},e.prototype.getElementRef=function(){return this.ref},e.prototype.getViewContainerRef=function(){return new x.ViewContainerRef_(this)},e.prototype.getTemplateRef=function(){return c.isPresent(this.embeddedViewFactory)?new C.TemplateRef_(this.ref):null},e.prototype.getDependency=function(e,t,r){if(t instanceof A){var n=r;if(c.isPresent(n.attributeName))return this._buildAttribute(n);if(c.isPresent(n.queryDecorator))return this._queryStrategy.findQuery(n.queryDecorator).list;if(n.key.id===O.instance().changeDetectorRefId)return this.proto.firstProviderIsComponent?new q(this):this.parentView.changeDetector.ref;if(n.key.id===O.instance().elementRefId)return this.getElementRef();if(n.key.id===O.instance().viewContainerId)return this.getViewContainerRef();if(n.key.id===O.instance().templateRefId){var i=this.getTemplateRef();if(c.isBlank(i)&&!n.optional)throw new p.NoProviderError(null,n.key);return i}if(n.key.id===O.instance().rendererId)return this.parentView.renderer}else if(t instanceof R.PipeProvider&&r.key.id===O.instance().changeDetectorRefId)return this.proto.firstProviderIsComponent?new q(this):this.parentView.changeDetector;return f.UNDEFINED},e.prototype._buildAttribute=function(e){var t=this.proto.attributes;return c.isPresent(t)&&u.StringMapWrapper.contains(t,e.attributeName)?t[e.attributeName]:null},e.prototype.addDirectivesMatchingQuery=function(e,t){var r=this.getTemplateRef();e.selector===C.TemplateRef&&c.isPresent(r)&&t.push(r),null!=this._strategy&&this._strategy.addDirectivesMatchingQuery(e,t)},e.prototype._buildQueryStrategy=function(){return 0===this.proto.protoQueryRefs.length?j:this.proto.protoQueryRefs.length<=B.NUMBER_OF_SUPPORTED_QUERIES?new B(this):new L(this)},e.prototype.getDirectiveAtIndex=function(e){return this._injector.getAt(e)},e.prototype.ngAfterViewChecked=function(){c.isPresent(this._queryStrategy)&&this._queryStrategy.updateViewQueries()},e.prototype.ngAfterContentChecked=function(){c.isPresent(this._queryStrategy)&&this._queryStrategy.updateContentQueries()},e.prototype.traverseAndSetQueriesAsDirty=function(){for(var e=this;c.isPresent(e);)e._setQueriesAsDirty(),e=c.isBlank(e.parent)&&e.parentView.proto.type===m.ViewType.EMBEDDED?e.parentView.containerAppElement:e.parent},e.prototype._setQueriesAsDirty=function(){c.isPresent(this._queryStrategy)&&this._queryStrategy.setContentQueriesAsDirty(),this.parentView.proto.type===m.ViewType.COMPONENT&&this.parentView.containerAppElement._queryStrategy.setViewQueriesAsDirty()},e}();t.AppElement=V;var M=function(){function e(){}return e.prototype.setContentQueriesAsDirty=function(){},e.prototype.setViewQueriesAsDirty=function(){},e.prototype.updateContentQueries=function(){},e.prototype.updateViewQueries=function(){},e.prototype.findQuery=function(e){throw new l.BaseException("Cannot find query for directive "+e+".")},e}(),j=new M,B=function(){function e(e){var t=e.proto.protoQueryRefs;t.length>0&&(this.query0=new H(t[0],e)),t.length>1&&(this.query1=new H(t[1],e)),t.length>2&&(this.query2=new H(t[2],e))}return e.prototype.setContentQueriesAsDirty=function(){c.isPresent(this.query0)&&!this.query0.isViewQuery&&(this.query0.dirty=!0),c.isPresent(this.query1)&&!this.query1.isViewQuery&&(this.query1.dirty=!0),c.isPresent(this.query2)&&!this.query2.isViewQuery&&(this.query2.dirty=!0)},e.prototype.setViewQueriesAsDirty=function(){c.isPresent(this.query0)&&this.query0.isViewQuery&&(this.query0.dirty=!0),c.isPresent(this.query1)&&this.query1.isViewQuery&&(this.query1.dirty=!0),c.isPresent(this.query2)&&this.query2.isViewQuery&&(this.query2.dirty=!0)},e.prototype.updateContentQueries=function(){c.isPresent(this.query0)&&!this.query0.isViewQuery&&this.query0.update(),c.isPresent(this.query1)&&!this.query1.isViewQuery&&this.query1.update(),c.isPresent(this.query2)&&!this.query2.isViewQuery&&this.query2.update()},e.prototype.updateViewQueries=function(){c.isPresent(this.query0)&&this.query0.isViewQuery&&this.query0.update(),c.isPresent(this.query1)&&this.query1.isViewQuery&&this.query1.update(),c.isPresent(this.query2)&&this.query2.isViewQuery&&this.query2.update()},e.prototype.findQuery=function(e){if(c.isPresent(this.query0)&&this.query0.protoQueryRef.query===e)return this.query0;if(c.isPresent(this.query1)&&this.query1.protoQueryRef.query===e)return this.query1;if(c.isPresent(this.query2)&&this.query2.protoQueryRef.query===e)return this.query2;throw new l.BaseException("Cannot find query for directive "+e+".")},e.NUMBER_OF_SUPPORTED_QUERIES=3,e}(),L=function(){function e(e){this.queries=e.proto.protoQueryRefs.map(function(t){return new H(t,e)})}return e.prototype.setContentQueriesAsDirty=function(){for(var e=0;e<this.queries.length;++e){var t=this.queries[e];t.isViewQuery||(t.dirty=!0)}},e.prototype.setViewQueriesAsDirty=function(){for(var e=0;e<this.queries.length;++e){var t=this.queries[e];t.isViewQuery&&(t.dirty=!0)}},e.prototype.updateContentQueries=function(){for(var e=0;e<this.queries.length;++e){var t=this.queries[e];t.isViewQuery||t.update()}},e.prototype.updateViewQueries=function(){for(var e=0;e<this.queries.length;++e){var t=this.queries[e];t.isViewQuery&&t.update()}},e.prototype.findQuery=function(e){for(var t=0;t<this.queries.length;++t){var r=this.queries[t];if(r.protoQueryRef.query===e)return r}throw new l.BaseException("Cannot find query for directive "+e+".")},e}(),F=function(){function e(e,t){this.injectorStrategy=e,this._ei=t}return e.prototype.init=function(){var e=this.injectorStrategy,t=e.protoStrategy;e.resetConstructionCounter(),t.provider0 instanceof A&&c.isPresent(t.keyId0)&&e.obj0===f.UNDEFINED&&(e.obj0=e.instantiateProvider(t.provider0,t.visibility0)),t.provider1 instanceof A&&c.isPresent(t.keyId1)&&e.obj1===f.UNDEFINED&&(e.obj1=e.instantiateProvider(t.provider1,t.visibility1)),t.provider2 instanceof A&&c.isPresent(t.keyId2)&&e.obj2===f.UNDEFINED&&(e.obj2=e.instantiateProvider(t.provider2,t.visibility2)),t.provider3 instanceof A&&c.isPresent(t.keyId3)&&e.obj3===f.UNDEFINED&&(e.obj3=e.instantiateProvider(t.provider3,t.visibility3)),t.provider4 instanceof A&&c.isPresent(t.keyId4)&&e.obj4===f.UNDEFINED&&(e.obj4=e.instantiateProvider(t.provider4,t.visibility4)),t.provider5 instanceof A&&c.isPresent(t.keyId5)&&e.obj5===f.UNDEFINED&&(e.obj5=e.instantiateProvider(t.provider5,t.visibility5)),t.provider6 instanceof A&&c.isPresent(t.keyId6)&&e.obj6===f.UNDEFINED&&(e.obj6=e.instantiateProvider(t.provider6,t.visibility6)),t.provider7 instanceof A&&c.isPresent(t.keyId7)&&e.obj7===f.UNDEFINED&&(e.obj7=e.instantiateProvider(t.provider7,t.visibility7)),t.provider8 instanceof A&&c.isPresent(t.keyId8)&&e.obj8===f.UNDEFINED&&(e.obj8=e.instantiateProvider(t.provider8,t.visibility8)),t.provider9 instanceof A&&c.isPresent(t.keyId9)&&e.obj9===f.UNDEFINED&&(e.obj9=e.instantiateProvider(t.provider9,t.visibility9))},e.prototype.getComponent=function(){return this.injectorStrategy.obj0},e.prototype.isComponentKey=function(e){return this._ei.proto.firstProviderIsComponent&&c.isPresent(e)&&e.id===this.injectorStrategy.protoStrategy.keyId0},e.prototype.addDirectivesMatchingQuery=function(e,t){var r=this.injectorStrategy,n=r.protoStrategy;c.isPresent(n.provider0)&&n.provider0.key.token===e.selector&&(r.obj0===f.UNDEFINED&&(r.obj0=r.instantiateProvider(n.provider0,n.visibility0)),t.push(r.obj0)),c.isPresent(n.provider1)&&n.provider1.key.token===e.selector&&(r.obj1===f.UNDEFINED&&(r.obj1=r.instantiateProvider(n.provider1,n.visibility1)),t.push(r.obj1)),c.isPresent(n.provider2)&&n.provider2.key.token===e.selector&&(r.obj2===f.UNDEFINED&&(r.obj2=r.instantiateProvider(n.provider2,n.visibility2)),t.push(r.obj2)),c.isPresent(n.provider3)&&n.provider3.key.token===e.selector&&(r.obj3===f.UNDEFINED&&(r.obj3=r.instantiateProvider(n.provider3,n.visibility3)),t.push(r.obj3)),c.isPresent(n.provider4)&&n.provider4.key.token===e.selector&&(r.obj4===f.UNDEFINED&&(r.obj4=r.instantiateProvider(n.provider4,n.visibility4)),t.push(r.obj4)),c.isPresent(n.provider5)&&n.provider5.key.token===e.selector&&(r.obj5===f.UNDEFINED&&(r.obj5=r.instantiateProvider(n.provider5,n.visibility5)),t.push(r.obj5)),c.isPresent(n.provider6)&&n.provider6.key.token===e.selector&&(r.obj6===f.UNDEFINED&&(r.obj6=r.instantiateProvider(n.provider6,n.visibility6)),t.push(r.obj6)),c.isPresent(n.provider7)&&n.provider7.key.token===e.selector&&(r.obj7===f.UNDEFINED&&(r.obj7=r.instantiateProvider(n.provider7,n.visibility7)),t.push(r.obj7)),c.isPresent(n.provider8)&&n.provider8.key.token===e.selector&&(r.obj8===f.UNDEFINED&&(r.obj8=r.instantiateProvider(n.provider8,n.visibility8)), t.push(r.obj8)),c.isPresent(n.provider9)&&n.provider9.key.token===e.selector&&(r.obj9===f.UNDEFINED&&(r.obj9=r.instantiateProvider(n.provider9,n.visibility9)),t.push(r.obj9))},e}(),W=function(){function e(e,t){this.injectorStrategy=e,this._ei=t}return e.prototype.init=function(){var e=this.injectorStrategy,t=e.protoStrategy;e.resetConstructionCounter();for(var r=0;r<t.keyIds.length;r++)t.providers[r]instanceof A&&c.isPresent(t.keyIds[r])&&e.objs[r]===f.UNDEFINED&&(e.objs[r]=e.instantiateProvider(t.providers[r],t.visibilities[r]))},e.prototype.getComponent=function(){return this.injectorStrategy.objs[0]},e.prototype.isComponentKey=function(e){var t=this.injectorStrategy.protoStrategy;return this._ei.proto.firstProviderIsComponent&&c.isPresent(e)&&e.id===t.keyIds[0]},e.prototype.addDirectivesMatchingQuery=function(e,t){for(var r=this.injectorStrategy,n=r.protoStrategy,i=0;i<n.providers.length;i++)n.providers[i].key.token===e.selector&&(r.objs[i]===f.UNDEFINED&&(r.objs[i]=r.instantiateProvider(n.providers[i],n.visibilities[i])),t.push(r.objs[i]))},e}(),U=function(){function e(e,t,r){this.dirIndex=e,this.setter=t,this.query=r}return Object.defineProperty(e.prototype,"usesPropertySyntax",{get:function(){return c.isPresent(this.setter)},enumerable:!0,configurable:!0}),e}();t.ProtoQueryRef=U;var H=function(){function e(e,t){this.protoQueryRef=e,this.originator=t,this.list=new E.QueryList,this.dirty=!0}return Object.defineProperty(e.prototype,"isViewQuery",{get:function(){return this.protoQueryRef.query.isViewQuery},enumerable:!0,configurable:!0}),e.prototype.update=function(){if(this.dirty){if(this._update(),this.dirty=!1,this.protoQueryRef.usesPropertySyntax){var e=this.originator.getDirectiveAtIndex(this.protoQueryRef.dirIndex);this.protoQueryRef.query.first?this.protoQueryRef.setter(e,this.list.length>0?this.list.first:null):this.protoQueryRef.setter(e,this.list)}this.list.notifyOnChanges()}},e.prototype._update=function(){var e=[];if(this.protoQueryRef.query.isViewQuery){var t=this.originator.componentView;c.isPresent(t)&&this._visitView(t,e)}else this._visit(this.originator,e);this.list.reset(e)},e.prototype._visit=function(e,t){for(var r=e.parentView,n=e.proto.index,i=n;i<r.appElements.length;i++){var o=r.appElements[i];if(i>n&&(c.isBlank(o.parent)||o.parent.proto.index<n))break;(this.protoQueryRef.query.descendants||o.parent==this.originator||o==this.originator)&&(this._visitInjector(o,t),this._visitViewContainerViews(o.nestedViews,t))}},e.prototype._visitInjector=function(e,t){this.protoQueryRef.query.isVarBindingQuery?this._aggregateVariableBinding(e,t):this._aggregateDirective(e,t)},e.prototype._visitViewContainerViews=function(e,t){if(c.isPresent(e))for(var r=0;r<e.length;r++)this._visitView(e[r],t)},e.prototype._visitView=function(e,t){for(var r=0;r<e.appElements.length;r++){var n=e.appElements[r];this._visitInjector(n,t),this._visitViewContainerViews(n.nestedViews,t)}},e.prototype._aggregateVariableBinding=function(e,t){for(var r=this.protoQueryRef.query.varBindings,n=0;n<r.length;++n)e.hasVariableBinding(r[n])&&t.push(e.getVariableBinding(r[n]))},e.prototype._aggregateDirective=function(e,t){e.addDirectivesMatchingQuery(this.protoQueryRef.query,t)},e}();t.QueryRef=H;var q=function(e){function t(t){e.call(this),this._appElement=t}return s(t,e),t.prototype.markForCheck=function(){this._appElement.componentView.changeDetector.ref.markForCheck()},t.prototype.detach=function(){this._appElement.componentView.changeDetector.ref.detach()},t.prototype.detectChanges=function(){this._appElement.componentView.changeDetector.ref.detectChanges()},t.prototype.checkNoChanges=function(){this._appElement.componentView.changeDetector.ref.checkNoChanges()},t.prototype.reattach=function(){this._appElement.componentView.changeDetector.ref.reattach()},t}(P.ChangeDetectorRef);return i.define=o,r.exports}),System.register("angular2/src/core/pipes/pipes",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/change_detection/pipes"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/facade/exceptions"),s=e("angular2/src/facade/collection"),c=e("angular2/src/core/change_detection/pipes"),l=function(){function e(e){this.config=e,this.config=e}return e.fromProviders=function(t){var r={};return t.forEach(function(e){return r[e.name]=e}),new e(r)},e.prototype.get=function(e){var t=this.config[e];if(o.isBlank(t))throw new a.BaseException("Cannot find pipe '"+e+"'.");return t},e}();t.ProtoPipes=l;var u=function(){function e(e,t){this.proto=e,this.injector=t,this._config={}}return e.prototype.get=function(e){var t=s.StringMapWrapper.get(this._config,e);if(o.isPresent(t))return t;var r=this.proto.get(e),n=this.injector.instantiateResolved(r),i=new c.SelectedPipe(n,r.pure);return r.pure&&s.StringMapWrapper.set(this._config,e,i),i},e}();return t.Pipes=u,n.define=i,r.exports}),System.register("angular2/src/core/linker",["angular2/src/core/linker/directive_resolver","angular2/src/core/linker/view_resolver","angular2/src/core/linker/compiler","angular2/src/core/linker/view_manager","angular2/src/core/linker/query_list","angular2/src/core/linker/dynamic_component_loader","angular2/src/core/linker/element_ref","angular2/src/core/linker/template_ref","angular2/src/core/linker/view_ref","angular2/src/core/linker/view_container_ref","angular2/src/core/linker/dynamic_component_loader"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/linker/directive_resolver");t.DirectiveResolver=o.DirectiveResolver;var a=e("angular2/src/core/linker/view_resolver");t.ViewResolver=a.ViewResolver;var s=e("angular2/src/core/linker/compiler");t.Compiler=s.Compiler;var c=e("angular2/src/core/linker/view_manager");t.AppViewManager=c.AppViewManager;var l=e("angular2/src/core/linker/query_list");t.QueryList=l.QueryList;var u=e("angular2/src/core/linker/dynamic_component_loader");t.DynamicComponentLoader=u.DynamicComponentLoader;var p=e("angular2/src/core/linker/element_ref");t.ElementRef=p.ElementRef;var d=e("angular2/src/core/linker/template_ref");t.TemplateRef=d.TemplateRef;var f=e("angular2/src/core/linker/view_ref");t.EmbeddedViewRef=f.EmbeddedViewRef,t.HostViewRef=f.HostViewRef,t.ViewRef=f.ViewRef,t.HostViewFactoryRef=f.HostViewFactoryRef;var h=e("angular2/src/core/linker/view_container_ref");t.ViewContainerRef=h.ViewContainerRef;var g=e("angular2/src/core/linker/dynamic_component_loader");return t.ComponentRef=g.ComponentRef,n.define=i,r.exports}),System.register("angular2/src/core/linker/resolved_metadata_cache",["angular2/src/core/di","angular2/src/facade/lang","angular2/src/core/linker/element","angular2/src/core/linker/directive_resolver","angular2/src/core/pipes/pipe_provider","angular2/src/core/linker/pipe_resolver"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/core/di"),c=e("angular2/src/facade/lang"),l=e("angular2/src/core/linker/element"),u=e("angular2/src/core/linker/directive_resolver"),p=e("angular2/src/core/pipes/pipe_provider"),d=e("angular2/src/core/linker/pipe_resolver"),f=function(){function e(e,t){this._directiveResolver=e,this._pipeResolver=t,this._directiveCache=new Map,this._pipeCache=new Map}return e.prototype.getResolvedDirectiveMetadata=function(e){var t=this._directiveCache.get(e);return c.isBlank(t)&&(t=l.DirectiveProvider.createFromType(e,this._directiveResolver.resolve(e)),this._directiveCache.set(e,t)),t},e.prototype.getResolvedPipeMetadata=function(e){var t=this._pipeCache.get(e);return c.isBlank(t)&&(t=p.PipeProvider.createFromType(e,this._pipeResolver.resolve(e)),this._pipeCache.set(e,t)),t},e=o([s.Injectable(),a("design:paramtypes",[u.DirectiveResolver,d.PipeResolver])],e)}();return t.ResolvedMetadataCache=f,t.CODEGEN_RESOLVED_METADATA_CACHE=new f(u.CODEGEN_DIRECTIVE_RESOLVER,d.CODEGEN_PIPE_RESOLVER),n.define=i,r.exports}),System.register("angular2/src/platform/dom/debug/ng_probe",["angular2/src/facade/lang","angular2/src/core/di","angular2/src/platform/dom/dom_adapter","angular2/src/core/debug/debug_node","angular2/src/platform/dom/dom_renderer","angular2/core","angular2/src/core/debug/debug_renderer"],!0,function(e,t,r){function n(e){return p.getDebugNode(e)}function i(e){return c.assertionsEnabled()?o(e):e}function o(e){return u.DOM.setGlobalVar(m,n),u.DOM.setGlobalVar(v,g),new h.DebugDomRootRenderer(e)}var a=System.global,s=a.define;a.define=void 0;var c=e("angular2/src/facade/lang"),l=e("angular2/src/core/di"),u=e("angular2/src/platform/dom/dom_adapter"),p=e("angular2/src/core/debug/debug_node"),d=e("angular2/src/platform/dom/dom_renderer"),f=e("angular2/core"),h=e("angular2/src/core/debug/debug_renderer"),g=c.CONST_EXPR({ApplicationRef:f.ApplicationRef,NgZone:f.NgZone}),m="ng.probe",v="ng.coreTokens";return t.inspectNativeElement=n,t.ELEMENT_PROBE_PROVIDERS=c.CONST_EXPR([new l.Provider(f.RootRenderer,{useFactory:i,deps:[d.DomRootRenderer]})]),t.ELEMENT_PROBE_PROVIDERS_PROD_MODE=c.CONST_EXPR([new l.Provider(f.RootRenderer,{useFactory:o,deps:[d.DomRootRenderer]})]),a.define=s,r.exports}),System.register("angular2/src/core/di/provider",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/reflection/reflection","angular2/src/core/di/key","angular2/src/core/di/metadata","angular2/src/core/di/exceptions","angular2/src/core/di/forward_ref"],!0,function(e,t,r){function n(e){return new k(e)}function i(e,t){var r=t.useClass,n=t.useValue,i=t.useExisting,o=t.useFactory,a=t.deps,s=t.multi;return new D(e,{useClass:r,useValue:n,useExisting:i,useFactory:o,deps:a,multi:s})}function o(e){var t,r;if(_.isPresent(e.useClass)){var n=R.resolveForwardRef(e.useClass);t=w.reflector.factory(n),r=p(n)}else _.isPresent(e.useExisting)?(t=function(e){return e},r=[x.fromKey(P.Key.get(e.useExisting))]):_.isPresent(e.useFactory)?(t=e.useFactory,r=u(e.useFactory,e.dependencies)):(t=function(){return e.useValue},r=O);return new I(t,r)}function a(e){return new T(P.Key.get(e.token),[o(e)],e.multi)}function s(e){var t=l(e,[]),r=t.map(a);return C.MapWrapper.values(c(r,new Map))}function c(e,t){for(var r=0;r<e.length;r++){var n=e[r],i=t.get(n.key.id);if(_.isPresent(i)){if(n.multiProvider!==i.multiProvider)throw new S.MixingMultiProvidersWithRegularProvidersError(i,n);if(n.multiProvider)for(var o=0;o<n.resolvedFactories.length;o++)i.resolvedFactories.push(n.resolvedFactories[o]);else t.set(n.key.id,n)}else{var a;a=n.multiProvider?new T(n.key,C.ListWrapper.clone(n.resolvedFactories),n.multiProvider):n,t.set(n.key.id,a)}}return t}function l(e,t){return e.forEach(function(e){if(e instanceof _.Type)t.push(i(e,{useClass:e}));else if(e instanceof D)t.push(e);else{if(!(e instanceof Array))throw e instanceof k?new S.InvalidProviderError(e.token):new S.InvalidProviderError(e);l(e,t)}}),t}function u(e,t){if(_.isBlank(t))return p(e);var r=t.map(function(e){return[e]});return t.map(function(t){return d(e,t,r)})}function p(e){var t=w.reflector.parameters(e);if(_.isBlank(t))return[];if(t.some(_.isBlank))throw new S.NoAnnotationError(e,t);return t.map(function(r){return d(e,r,t)})}function d(e,t,r){var n=[],i=null,o=!1;if(!_.isArray(t))return t instanceof E.InjectMetadata?f(t.token,o,null,null,n):f(t,o,null,null,n);for(var a=null,s=null,c=0;c<t.length;++c){var l=t[c];l instanceof _.Type?i=l:l instanceof E.InjectMetadata?i=l.token:l instanceof E.OptionalMetadata?o=!0:l instanceof E.SelfMetadata?s=l:l instanceof E.HostMetadata?s=l:l instanceof E.SkipSelfMetadata?a=l:l instanceof E.DependencyMetadata&&(_.isPresent(l.token)&&(i=l.token),n.push(l))}if(i=R.resolveForwardRef(i),_.isPresent(i))return f(i,o,a,s,n);throw new S.NoAnnotationError(e,r)}function f(e,t,r,n,i){return new x(P.Key.get(e),t,r,n,i)}var h=System.global,g=h.define;h.define=void 0;var m=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},v=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},y=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},_=e("angular2/src/facade/lang"),b=e("angular2/src/facade/exceptions"),C=e("angular2/src/facade/collection"),w=e("angular2/src/core/reflection/reflection"),P=e("angular2/src/core/di/key"),E=e("angular2/src/core/di/metadata"),S=e("angular2/src/core/di/exceptions"),R=e("angular2/src/core/di/forward_ref"),x=function(){function e(e,t,r,n,i){this.key=e,this.optional=t,this.lowerBoundVisibility=r,this.upperBoundVisibility=n,this.properties=i}return e.fromKey=function(t){return new e(t,!1,null,null,[])},e}();t.Dependency=x;var O=_.CONST_EXPR([]),D=function(){function e(e,t){var r=t.useClass,n=t.useValue,i=t.useExisting,o=t.useFactory,a=t.deps,s=t.multi;this.token=e,this.useClass=r,this.useValue=n,this.useExisting=i,this.useFactory=o,this.dependencies=a,this._multi=s}return Object.defineProperty(e.prototype,"multi",{get:function(){return _.normalizeBool(this._multi)},enumerable:!0,configurable:!0}),e=v([_.CONST(),y("design:paramtypes",[Object,Object])],e)}();t.Provider=D;var A=function(e){function t(t,r){var n=r.toClass,i=r.toValue,o=r.toAlias,a=r.toFactory,s=r.deps,c=r.multi;e.call(this,t,{useClass:n,useValue:i,useExisting:o,useFactory:a,deps:s,multi:c})}return m(t,e),Object.defineProperty(t.prototype,"toClass",{get:function(){return this.useClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toAlias",{get:function(){return this.useExisting},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toFactory",{get:function(){return this.useFactory},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toValue",{get:function(){return this.useValue},enumerable:!0,configurable:!0}),t=v([_.CONST(),y("design:paramtypes",[Object,Object])],t)}(D);t.Binding=A;var T=function(){function e(e,t,r){this.key=e,this.resolvedFactories=t,this.multiProvider=r}return Object.defineProperty(e.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),e}();t.ResolvedProvider_=T;var I=function(){function e(e,t){this.factory=e,this.dependencies=t}return e}();t.ResolvedFactory=I,t.bind=n,t.provide=i;var k=function(){function e(e){this.token=e}return e.prototype.toClass=function(e){if(!_.isType(e))throw new b.BaseException('Trying to create a class provider but "'+_.stringify(e)+'" is not a class!');return new D(this.token,{useClass:e})},e.prototype.toValue=function(e){return new D(this.token,{useValue:e})},e.prototype.toAlias=function(e){if(_.isBlank(e))throw new b.BaseException("Can not alias "+_.stringify(this.token)+" to a blank value!");return new D(this.token,{useExisting:e})},e.prototype.toFactory=function(e,t){if(!_.isFunction(e))throw new b.BaseException('Trying to create a factory provider but "'+_.stringify(e)+'" is not a function!');return new D(this.token,{useFactory:e,deps:t})},e}();return t.ProviderBuilder=k,t.resolveFactory=o,t.resolveProvider=a,t.resolveProviders=s,t.mergeResolvedProviders=c,h.define=g,r.exports}),System.register("angular2/src/animate/css_animation_builder",["angular2/src/animate/css_animation_options","angular2/src/animate/animation"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/animate/css_animation_options"),a=e("angular2/src/animate/animation"),s=function(){function e(e){this.browserDetails=e,this.data=new o.CssAnimationOptions}return e.prototype.addAnimationClass=function(e){return this.data.animationClasses.push(e),this},e.prototype.addClass=function(e){return this.data.classesToAdd.push(e),this},e.prototype.removeClass=function(e){return this.data.classesToRemove.push(e),this},e.prototype.setDuration=function(e){return this.data.duration=e,this},e.prototype.setDelay=function(e){return this.data.delay=e,this},e.prototype.setStyles=function(e,t){return this.setFromStyles(e).setToStyles(t)},e.prototype.setFromStyles=function(e){return this.data.fromStyles=e,this},e.prototype.setToStyles=function(e){return this.data.toStyles=e,this},e.prototype.start=function(e){return new a.Animation(e,this.data,this.browserDetails)},e}();return t.CssAnimationBuilder=s,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/dynamic_change_detector",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/change_detection/abstract_change_detector","angular2/src/core/change_detection/change_detection_util","angular2/src/core/change_detection/constants","angular2/src/core/change_detection/proto_record","angular2/src/core/reflection/reflection","angular2/src/facade/async"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/facade/lang"),s=e("angular2/src/facade/exceptions"),c=e("angular2/src/facade/collection"),l=e("angular2/src/core/change_detection/abstract_change_detector"),u=e("angular2/src/core/change_detection/change_detection_util"),p=e("angular2/src/core/change_detection/constants"),d=e("angular2/src/core/change_detection/proto_record"),f=e("angular2/src/core/reflection/reflection"),h=e("angular2/src/facade/async"),g=function(e){function t(t,r,n,i,o,a,s,l,u){e.call(this,t,r,n,i,o),this._records=a,this._eventBindings=s,this._directiveRecords=l,this._genConfig=u;var p=a.length+1;this.values=c.ListWrapper.createFixedSize(p),this.localPipes=c.ListWrapper.createFixedSize(p),this.prevContexts=c.ListWrapper.createFixedSize(p),this.changes=c.ListWrapper.createFixedSize(p),this.dehydrateDirectives(!1)}return o(t,e),t.prototype.handleEventInternal=function(e,t,r){var n=this,i=!1;return this._matchingEventBindings(e,t).forEach(function(e){var t=n._processEventBinding(e,r);t===!1&&(i=!0)}),i},t.prototype._processEventBinding=function(e,t){var r=c.ListWrapper.createFixedSize(e.records.length);r[0]=this.values[0];for(var n=0;n<e.records.length;++n){var i=e.records[n];if(i.isSkipRecord())n+=this._computeSkipLength(n,i,r);else{i.lastInBinding&&this._markPathAsCheckOnce(i);var o=this._calculateCurrValue(i,r,t);if(i.lastInBinding)return o;this._writeSelf(i,o,r)}}throw new s.BaseException("Cannot be reached")},t.prototype._computeSkipLength=function(e,t,r){if(t.mode===d.RecordType.SkipRecords)return t.fixedArgs[0]-e-1;if(t.mode===d.RecordType.SkipRecordsIf){var n=this._readContext(t,r);return n?t.fixedArgs[0]-e-1:0}if(t.mode===d.RecordType.SkipRecordsIfNot){var n=this._readContext(t,r);return n?0:t.fixedArgs[0]-e-1}throw new s.BaseException("Cannot be reached")},t.prototype._markPathAsCheckOnce=function(e){if(!e.bindingRecord.isDefaultChangeDetection()){var t=e.bindingRecord.directiveRecord;this._getDetectorFor(t.directiveIndex).markPathToRootAsCheckOnce()}},t.prototype._matchingEventBindings=function(e,t){return this._eventBindings.filter(function(r){return r.eventName==e&&r.elIndex===t})},t.prototype.hydrateDirectives=function(e){var t=this;this.values[0]=this.context,this.dispatcher=e,this.outputSubscriptions=[];for(var r=0;r<this._directiveRecords.length;++r){var n=this._directiveRecords[r];a.isPresent(n.outputs)&&n.outputs.forEach(function(e){var r=t._createEventHandler(n.directiveIndex.elementIndex,e[1]),i=t._getDirectiveFor(n.directiveIndex),o=f.reflector.getter(e[0]);t.outputSubscriptions.push(h.ObservableWrapper.subscribe(o(i),r))})}},t.prototype._createEventHandler=function(e,t){var r=this;return function(n){return r.handleEvent(t,e,n)}},t.prototype.dehydrateDirectives=function(e){e&&(this._destroyPipes(),this._destroyDirectives()),this.values[0]=null,c.ListWrapper.fill(this.values,u.ChangeDetectionUtil.uninitialized,1),c.ListWrapper.fill(this.changes,!1),c.ListWrapper.fill(this.localPipes,null),c.ListWrapper.fill(this.prevContexts,u.ChangeDetectionUtil.uninitialized)},t.prototype._destroyPipes=function(){for(var e=0;e<this.localPipes.length;++e)a.isPresent(this.localPipes[e])&&u.ChangeDetectionUtil.callPipeOnDestroy(this.localPipes[e])},t.prototype._destroyDirectives=function(){for(var e=0;e<this._directiveRecords.length;++e){var t=this._directiveRecords[e];t.callOnDestroy&&this._getDirectiveFor(t.directiveIndex).ngOnDestroy()}},t.prototype.checkNoChanges=function(){this.runDetectChanges(!0)},t.prototype.detectChangesInRecordsInternal=function(e){for(var t=this._records,r=null,n=!1,i=0;i<t.length;++i){var o=t[i],s=o.bindingRecord,c=s.directiveRecord;if(this._firstInBinding(o)&&(this.propertyBindingIndex=o.propertyBindingIndex),o.isLifeCycleRecord())"DoCheck"!==o.name||e?"OnInit"!==o.name||e||this.state!=p.ChangeDetectorState.NeverChecked?"OnChanges"===o.name&&a.isPresent(r)&&!e&&this._getDirectiveFor(c.directiveIndex).ngOnChanges(r):this._getDirectiveFor(c.directiveIndex).ngOnInit():this._getDirectiveFor(c.directiveIndex).ngDoCheck();else if(o.isSkipRecord())i+=this._computeSkipLength(i,o,this.values);else{var l=this._check(o,e,this.values,this.locals);a.isPresent(l)&&(this._updateDirectiveOrElement(l,s),n=!0,r=this._addChange(s,l,r))}o.lastInDirective&&(r=null,n&&!s.isDefaultChangeDetection()&&this._getDetectorFor(c.directiveIndex).markAsCheckOnce(),n=!1)}},t.prototype._firstInBinding=function(e){var t=u.ChangeDetectionUtil.protoByIndex(this._records,e.selfIndex-1);return a.isBlank(t)||t.bindingRecord!==e.bindingRecord},t.prototype.afterContentLifecycleCallbacksInternal=function(){for(var e=this._directiveRecords,t=e.length-1;t>=0;--t){var r=e[t];r.callAfterContentInit&&this.state==p.ChangeDetectorState.NeverChecked&&this._getDirectiveFor(r.directiveIndex).ngAfterContentInit(),r.callAfterContentChecked&&this._getDirectiveFor(r.directiveIndex).ngAfterContentChecked()}},t.prototype.afterViewLifecycleCallbacksInternal=function(){for(var e=this._directiveRecords,t=e.length-1;t>=0;--t){var r=e[t];r.callAfterViewInit&&this.state==p.ChangeDetectorState.NeverChecked&&this._getDirectiveFor(r.directiveIndex).ngAfterViewInit(),r.callAfterViewChecked&&this._getDirectiveFor(r.directiveIndex).ngAfterViewChecked()}},t.prototype._updateDirectiveOrElement=function(t,r){if(a.isBlank(r.directiveRecord))e.prototype.notifyDispatcher.call(this,t.currentValue);else{var n=r.directiveRecord.directiveIndex;r.setter(this._getDirectiveFor(n),t.currentValue)}this._genConfig.logBindingUpdate&&e.prototype.logBindingUpdate.call(this,t.currentValue)},t.prototype._addChange=function(t,r,n){return t.callOnChanges()?e.prototype.addChange.call(this,n,r.previousValue,r.currentValue):n},t.prototype._getDirectiveFor=function(e){return this.dispatcher.getDirectiveFor(e)},t.prototype._getDetectorFor=function(e){return this.dispatcher.getDetectorFor(e)},t.prototype._check=function(e,t,r,n){return e.isPipeRecord()?this._pipeCheck(e,t,r):this._referenceCheck(e,t,r,n)},t.prototype._referenceCheck=function(e,t,r,n){if(this._pureFuncAndArgsDidNotChange(e))return this._setChanged(e,!1),null;var i=this._calculateCurrValue(e,r,n);if(e.shouldBeChecked()){var o=this._readSelf(e,r),a=t?!u.ChangeDetectionUtil.devModeEqual(o,i):u.ChangeDetectionUtil.looseNotIdentical(o,i);if(a){if(e.lastInBinding){var s=u.ChangeDetectionUtil.simpleChange(o,i);return t&&this.throwOnChangeError(o,i),this._writeSelf(e,i,r),this._setChanged(e,!0),s}return this._writeSelf(e,i,r),this._setChanged(e,!0),null}return this._setChanged(e,!1),null}return this._writeSelf(e,i,r),this._setChanged(e,!0),null},t.prototype._calculateCurrValue=function(e,t,r){switch(e.mode){case d.RecordType.Self:return this._readContext(e,t);case d.RecordType.Const:return e.funcOrValue;case d.RecordType.PropertyRead:var n=this._readContext(e,t);return e.funcOrValue(n);case d.RecordType.SafeProperty:var n=this._readContext(e,t);return a.isBlank(n)?null:e.funcOrValue(n);case d.RecordType.PropertyWrite:var n=this._readContext(e,t),i=this._readArgs(e,t)[0];return e.funcOrValue(n,i),i;case d.RecordType.KeyedWrite:var n=this._readContext(e,t),o=this._readArgs(e,t)[0],i=this._readArgs(e,t)[1];return n[o]=i,i;case d.RecordType.Local:return r.get(e.name);case d.RecordType.InvokeMethod:var n=this._readContext(e,t),c=this._readArgs(e,t);return e.funcOrValue(n,c);case d.RecordType.SafeMethodInvoke:var n=this._readContext(e,t);if(a.isBlank(n))return null;var c=this._readArgs(e,t);return e.funcOrValue(n,c);case d.RecordType.KeyedRead:var l=this._readArgs(e,t)[0];return this._readContext(e,t)[l];case d.RecordType.Chain:var c=this._readArgs(e,t);return c[c.length-1];case d.RecordType.InvokeClosure:return a.FunctionWrapper.apply(this._readContext(e,t),this._readArgs(e,t));case d.RecordType.Interpolate:case d.RecordType.PrimitiveOp:case d.RecordType.CollectionLiteral:return a.FunctionWrapper.apply(e.funcOrValue,this._readArgs(e,t));default:throw new s.BaseException("Unknown operation "+e.mode)}},t.prototype._pipeCheck=function(e,t,r){var n=this._readContext(e,r),i=this._pipeFor(e,n);if(!i.pure||this._argsOrContextChanged(e)){var o=this._readArgs(e,r),a=i.pipe.transform(n,o);if(e.shouldBeChecked()){var s=this._readSelf(e,r),c=t?!u.ChangeDetectionUtil.devModeEqual(s,a):u.ChangeDetectionUtil.looseNotIdentical(s,a);if(c){if(a=u.ChangeDetectionUtil.unwrapValue(a),e.lastInBinding){var l=u.ChangeDetectionUtil.simpleChange(s,a);return t&&this.throwOnChangeError(s,a),this._writeSelf(e,a,r),this._setChanged(e,!0),l}return this._writeSelf(e,a,r),this._setChanged(e,!0),null}return this._setChanged(e,!1),null}return this._writeSelf(e,a,r),this._setChanged(e,!0),null}},t.prototype._pipeFor=function(e,t){var r=this._readPipe(e);if(a.isPresent(r))return r;var n=this.pipes.get(e.name);return this._writePipe(e,n),n},t.prototype._readContext=function(e,t){return-1==e.contextIndex?this._getDirectiveFor(e.directiveIndex):t[e.contextIndex]},t.prototype._readSelf=function(e,t){return t[e.selfIndex]},t.prototype._writeSelf=function(e,t,r){r[e.selfIndex]=t},t.prototype._readPipe=function(e){return this.localPipes[e.selfIndex]},t.prototype._writePipe=function(e,t){this.localPipes[e.selfIndex]=t},t.prototype._setChanged=function(e,t){e.argumentToPureFunction&&(this.changes[e.selfIndex]=t)},t.prototype._pureFuncAndArgsDidNotChange=function(e){return e.isPureFunction()&&!this._argsChanged(e)},t.prototype._argsChanged=function(e){for(var t=e.args,r=0;r<t.length;++r)if(this.changes[t[r]])return!0;return!1},t.prototype._argsOrContextChanged=function(e){return this._argsChanged(e)||this.changes[e.contextIndex]},t.prototype._readArgs=function(e,t){for(var r=c.ListWrapper.createFixedSize(e.args.length),n=e.args,i=0;i<n.length;++i)r[i]=t[n[i]];return r},t}(l.AbstractChangeDetector);return t.DynamicChangeDetector=g,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/change_detection_jit_generator",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/change_detection/abstract_change_detector","angular2/src/core/change_detection/change_detection_util","angular2/src/core/change_detection/proto_record","angular2/src/core/change_detection/codegen_name_util","angular2/src/core/change_detection/codegen_logic_util","angular2/src/core/change_detection/codegen_facade","angular2/src/core/change_detection/constants","angular2/src/core/change_detection/proto_change_detector"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/facade/exceptions"),s=e("angular2/src/facade/collection"),c=e("angular2/src/core/change_detection/abstract_change_detector"),l=e("angular2/src/core/change_detection/change_detection_util"),u=e("angular2/src/core/change_detection/proto_record"),p=e("angular2/src/core/change_detection/codegen_name_util"),d=e("angular2/src/core/change_detection/codegen_logic_util"),f=e("angular2/src/core/change_detection/codegen_facade"),h=e("angular2/src/core/change_detection/constants"),g=e("angular2/src/core/change_detection/proto_change_detector"),m="isChanged",v="changes",y=function(){function e(e,t,r,n){this.changeDetectionUtilVarName=t,this.abstractChangeDetectorVarName=r,this.changeDetectorStateVarName=n;var i=g.createPropertyRecords(e),o=g.createEventRecords(e),a=e.bindingRecords.map(function(e){return e.target});this.id=e.id,this.changeDetectionStrategy=e.strategy,this.genConfig=e.genConfig,this.records=i,this.propertyBindingTargets=a,this.eventBindings=o,this.directiveRecords=e.directiveRecords,this._names=new p.CodegenNameUtil(this.records,this.eventBindings,this.directiveRecords,this.changeDetectionUtilVarName),this._logic=new d.CodegenLogicUtil(this._names,this.changeDetectionUtilVarName,this.changeDetectorStateVarName),this.typeName=p.sanitizeName("ChangeDetector_"+this.id)}return e.prototype.generate=function(){var e="\n "+this.generateSource()+"\n return function() {\n return new "+this.typeName+"();\n }\n ";return new Function(this.abstractChangeDetectorVarName,this.changeDetectionUtilVarName,this.changeDetectorStateVarName,e)(c.AbstractChangeDetector,l.ChangeDetectionUtil,h.ChangeDetectorState)},e.prototype.generateSource=function(){return"\n var "+this.typeName+" = function "+this.typeName+"() {\n "+this.abstractChangeDetectorVarName+".call(\n this, "+JSON.stringify(this.id)+", "+this.records.length+",\n "+this.typeName+".gen_propertyBindingTargets, "+this.typeName+".gen_directiveIndices,\n "+f.codify(this.changeDetectionStrategy)+");\n this.dehydrateDirectives(false);\n }\n\n "+this.typeName+".prototype = Object.create("+this.abstractChangeDetectorVarName+".prototype);\n\n "+this.typeName+".prototype.detectChangesInRecordsInternal = function(throwOnChange) {\n "+this._names.genInitLocals()+"\n var "+m+" = false;\n var "+v+" = null;\n\n "+this._genAllRecords(this.records)+"\n }\n\n "+this._maybeGenHandleEventInternal()+"\n\n "+this._maybeGenAfterContentLifecycleCallbacks()+"\n\n "+this._maybeGenAfterViewLifecycleCallbacks()+"\n\n "+this._maybeGenHydrateDirectives()+"\n\n "+this._maybeGenDehydrateDirectives()+"\n\n "+this._genPropertyBindingTargets()+"\n\n "+this._genDirectiveIndices()+"\n "},e.prototype._genPropertyBindingTargets=function(){var e=this._logic.genPropertyBindingTargets(this.propertyBindingTargets,this.genConfig.genDebugInfo);return this.typeName+".gen_propertyBindingTargets = "+e+";"},e.prototype._genDirectiveIndices=function(){var e=this._logic.genDirectiveIndices(this.directiveRecords);return this.typeName+".gen_directiveIndices = "+e+";"},e.prototype._maybeGenHandleEventInternal=function(){var e=this;if(this.eventBindings.length>0){var t=this.eventBindings.map(function(t){return e._genEventBinding(t)}).join("\n");return"\n "+this.typeName+".prototype.handleEventInternal = function(eventName, elIndex, locals) {\n var "+this._names.getPreventDefaultAccesor()+" = false;\n "+this._names.genInitEventLocals()+"\n "+t+"\n return "+this._names.getPreventDefaultAccesor()+";\n }\n "; }return""},e.prototype._genEventBinding=function(e){var t=this,r=[];return this._endOfBlockIdxs=[],s.ListWrapper.forEachWithIndex(e.records,function(n,i){var o;o=n.isConditionalSkipRecord()?t._genConditionalSkip(n,t._names.getEventLocalName(e,i)):n.isUnconditionalSkipRecord()?t._genUnconditionalSkip(n):t._genEventBindingEval(e,n),o+=t._genEndOfSkipBlock(i),r.push(o)}),'\n if (eventName === "'+e.eventName+'" && elIndex === '+e.elIndex+") {\n "+r.join("\n")+"\n }"},e.prototype._genEventBindingEval=function(e,t){if(t.lastInBinding){var r=this._logic.genEventBindingEvalValue(e,t),n=this._genMarkPathToRootAsCheckOnce(t),i=this._genUpdatePreventDefault(e,t);return n+"\n"+r+"\n"+i}return this._logic.genEventBindingEvalValue(e,t)},e.prototype._genMarkPathToRootAsCheckOnce=function(e){var t=e.bindingRecord;return t.isDefaultChangeDetection()?"":this._names.getDetectorName(t.directiveRecord.directiveIndex)+".markPathToRootAsCheckOnce();"},e.prototype._genUpdatePreventDefault=function(e,t){var r=this._names.getEventLocalName(e,t.selfIndex);return"if ("+r+" === false) { "+this._names.getPreventDefaultAccesor()+" = true};"},e.prototype._maybeGenDehydrateDirectives=function(){var e=this._names.genPipeOnDestroy(),t=this._logic.genDirectivesOnDestroy(this.directiveRecords),r=this._names.genDehydrateFields();return e||t||r?this.typeName+".prototype.dehydrateDirectives = function(destroyPipes) {\n if (destroyPipes) {\n "+e+"\n "+t+"\n }\n "+r+"\n }":""},e.prototype._maybeGenHydrateDirectives=function(){var e=this._logic.genHydrateDirectives(this.directiveRecords),t=this._logic.genHydrateDetectors(this.directiveRecords);return e||t?this.typeName+".prototype.hydrateDirectives = function(directives) {\n "+e+"\n "+t+"\n }":""},e.prototype._maybeGenAfterContentLifecycleCallbacks=function(){var e=this._logic.genContentLifecycleCallbacks(this.directiveRecords);if(e.length>0){var t=e.join("\n");return"\n "+this.typeName+".prototype.afterContentLifecycleCallbacksInternal = function() {\n "+t+"\n }\n "}return""},e.prototype._maybeGenAfterViewLifecycleCallbacks=function(){var e=this._logic.genViewLifecycleCallbacks(this.directiveRecords);if(e.length>0){var t=e.join("\n");return"\n "+this.typeName+".prototype.afterViewLifecycleCallbacksInternal = function() {\n "+t+"\n }\n "}return""},e.prototype._genAllRecords=function(e){var t=[];this._endOfBlockIdxs=[];for(var r=0;r<e.length;r++){var n=void 0,i=e[r];n=i.isLifeCycleRecord()?this._genDirectiveLifecycle(i):i.isPipeRecord()?this._genPipeCheck(i):i.isConditionalSkipRecord()?this._genConditionalSkip(i,this._names.getLocalName(i.contextIndex)):i.isUnconditionalSkipRecord()?this._genUnconditionalSkip(i):this._genReferenceCheck(i),n="\n "+this._maybeFirstInBinding(i)+"\n "+n+"\n "+this._maybeGenLastInDirective(i)+"\n "+this._genEndOfSkipBlock(r)+"\n ",t.push(n)}return t.join("\n")},e.prototype._genConditionalSkip=function(e,t){var r=e.mode===u.RecordType.SkipRecordsIf?"!":"";return this._endOfBlockIdxs.push(e.fixedArgs[0]-1),"if ("+r+t+") {"},e.prototype._genUnconditionalSkip=function(e){return this._endOfBlockIdxs.pop(),this._endOfBlockIdxs.push(e.fixedArgs[0]-1),"} else {"},e.prototype._genEndOfSkipBlock=function(e){if(!s.ListWrapper.isEmpty(this._endOfBlockIdxs)){var t=s.ListWrapper.last(this._endOfBlockIdxs);if(e===t)return this._endOfBlockIdxs.pop(),"}"}return""},e.prototype._genDirectiveLifecycle=function(e){if("DoCheck"===e.name)return this._genOnCheck(e);if("OnInit"===e.name)return this._genOnInit(e);if("OnChanges"===e.name)return this._genOnChange(e);throw new a.BaseException("Unknown lifecycle event '"+e.name+"'")},e.prototype._genPipeCheck=function(e){var t=this,r=this._names.getLocalName(e.contextIndex),n=e.args.map(function(e){return t._names.getLocalName(e)}).join(", "),i=this._names.getFieldName(e.selfIndex),o=this._names.getLocalName(e.selfIndex),a=this._names.getPipeName(e.selfIndex),s=e.name,c="\n if ("+a+" === "+this.changeDetectionUtilVarName+".uninitialized) {\n "+a+" = "+this._names.getPipesAccessorName()+".get('"+s+"');\n }\n ",l=o+" = "+a+".pipe.transform("+r+", ["+n+"]);",u=e.args.map(function(e){return t._names.getChangeName(e)});u.push(this._names.getChangeName(e.contextIndex));var p="!"+a+".pure || ("+u.join(" || ")+")",d="\n "+this._genThrowOnChangeCheck(i,o)+"\n if ("+this.changeDetectionUtilVarName+".looseNotIdentical("+i+", "+o+")) {\n "+o+" = "+this.changeDetectionUtilVarName+".unwrapValue("+o+")\n "+this._genChangeMarker(e)+"\n "+this._genUpdateDirectiveOrElement(e)+"\n "+this._genAddToChanges(e)+"\n "+i+" = "+o+";\n }\n ",f=e.shouldBeChecked()?""+l+d:l;return e.isUsedByOtherRecord()?c+" if ("+p+") { "+f+" } else { "+o+" = "+i+"; }":c+" if ("+p+") { "+f+" }"},e.prototype._genReferenceCheck=function(e){var t=this,r=this._names.getFieldName(e.selfIndex),n=this._names.getLocalName(e.selfIndex),i="\n "+this._logic.genPropertyBindingEvalValue(e)+"\n ",o="\n "+this._genThrowOnChangeCheck(r,n)+"\n if ("+this.changeDetectionUtilVarName+".looseNotIdentical("+r+", "+n+")) {\n "+this._genChangeMarker(e)+"\n "+this._genUpdateDirectiveOrElement(e)+"\n "+this._genAddToChanges(e)+"\n "+r+" = "+n+";\n }\n ",a=e.shouldBeChecked()?""+i+o:i;if(e.isPureFunction()){var s=e.args.map(function(e){return t._names.getChangeName(e)}).join(" || ");return e.isUsedByOtherRecord()?"if ("+s+") { "+a+" } else { "+n+" = "+r+"; }":"if ("+s+") { "+a+" }"}return a},e.prototype._genChangeMarker=function(e){return e.argumentToPureFunction?this._names.getChangeName(e.selfIndex)+" = true":""},e.prototype._genUpdateDirectiveOrElement=function(e){if(!e.lastInBinding)return"";var t=this._names.getLocalName(e.selfIndex),r=this.genConfig.logBindingUpdate?"this.logBindingUpdate("+t+");":"",n=e.bindingRecord;if(n.target.isDirective()){var i=this._names.getDirectiveName(n.directiveRecord.directiveIndex)+"."+n.target.name;return"\n "+i+" = "+t+";\n "+r+"\n "+m+" = true;\n "}return"\n this.notifyDispatcher("+t+");\n "+r+"\n "},e.prototype._genThrowOnChangeCheck=function(e,t){return o.assertionsEnabled()?"\n if (throwOnChange && !"+this.changeDetectionUtilVarName+".devModeEqual("+e+", "+t+")) {\n this.throwOnChangeError("+e+", "+t+");\n }\n ":""},e.prototype._genAddToChanges=function(e){var t=this._names.getLocalName(e.selfIndex),r=this._names.getFieldName(e.selfIndex);return e.bindingRecord.callOnChanges()?v+" = this.addChange("+v+", "+r+", "+t+");":""},e.prototype._maybeFirstInBinding=function(e){var t=l.ChangeDetectionUtil.protoByIndex(this.records,e.selfIndex-1),r=o.isBlank(t)||t.bindingRecord!==e.bindingRecord;return r&&!e.bindingRecord.isDirectiveLifecycle()?this._names.getPropertyBindingIndex()+" = "+e.propertyBindingIndex+";":""},e.prototype._maybeGenLastInDirective=function(e){return e.lastInDirective?"\n "+v+" = null;\n "+this._genNotifyOnPushDetectors(e)+"\n "+m+" = false;\n ":""},e.prototype._genOnCheck=function(e){var t=e.bindingRecord;return"if (!throwOnChange) "+this._names.getDirectiveName(t.directiveRecord.directiveIndex)+".ngDoCheck();"},e.prototype._genOnInit=function(e){var t=e.bindingRecord;return"if (!throwOnChange && "+this._names.getStateName()+" === "+this.changeDetectorStateVarName+".NeverChecked) "+this._names.getDirectiveName(t.directiveRecord.directiveIndex)+".ngOnInit();"},e.prototype._genOnChange=function(e){var t=e.bindingRecord;return"if (!throwOnChange && "+v+") "+this._names.getDirectiveName(t.directiveRecord.directiveIndex)+".ngOnChanges("+v+");"},e.prototype._genNotifyOnPushDetectors=function(e){var t=e.bindingRecord;if(!e.lastInDirective||t.isDefaultChangeDetection())return"";var r="\n if("+m+") {\n "+this._names.getDetectorName(t.directiveRecord.directiveIndex)+".markAsCheckOnce();\n }\n ";return r},e}();return t.ChangeDetectorJITGenerator=y,n.define=i,r.exports}),System.register("angular2/src/core/linker/view",["angular2/src/facade/collection","angular2/src/core/change_detection/change_detection","angular2/src/core/change_detection/interfaces","angular2/src/core/linker/element","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/core/render/api","angular2/src/core/linker/view_ref","angular2/src/core/pipes/pipes","angular2/src/core/render/util","angular2/src/core/change_detection/interfaces","angular2/src/core/pipes/pipes","angular2/src/core/linker/view_type"],!0,function(e,t,r){function n(e){for(var t={},r=e;m.isPresent(r);)t=d.StringMapWrapper.merge(t,d.MapWrapper.toStringMap(r.current)),r=r.parent;return t}function i(e){return o(e,[])}function o(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n instanceof g.AppElement){var i=n;if(t.push(i.nativeElement),m.isPresent(i.nestedViews))for(var a=0;a<i.nestedViews.length;a++)o(i.nestedViews[a].rootNodesOrAppElements,t)}else t.push(n)}return t}function a(e){var t;if(e instanceof g.AppElement){var r=e;if(t=r.nativeElement,m.isPresent(r.nestedViews))for(var n=r.nestedViews.length-1;n>=0;n--){var i=r.nestedViews[n];i.rootNodesOrAppElements.length>0&&(t=a(i.rootNodesOrAppElements[i.rootNodesOrAppElements.length-1]))}}else t=e;return t}function s(e,t,r){var n=m.isPresent(r)?r.length:0;if(t>n)throw new v.BaseException("The component "+e+" has "+t+" <ng-content> elements,"+(" but only "+n+" slots were provided."))}var c=System.global,l=c.define;c.define=void 0;var u=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},p=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},d=e("angular2/src/facade/collection"),f=e("angular2/src/core/change_detection/change_detection"),h=e("angular2/src/core/change_detection/interfaces"),g=e("angular2/src/core/linker/element"),m=e("angular2/src/facade/lang"),v=e("angular2/src/facade/exceptions"),y=e("angular2/src/core/render/api"),_=e("angular2/src/core/linker/view_ref"),b=e("angular2/src/core/pipes/pipes"),C=e("angular2/src/core/render/util"),w=e("angular2/src/core/change_detection/interfaces");t.DebugContext=w.DebugContext;var P=e("angular2/src/core/pipes/pipes"),E=e("angular2/src/core/linker/view_type"),S="ng-reflect-",R=m.CONST_EXPR(new Object),x=function(){function e(e,t,r,n,i,o,a,s){this.proto=e,this.renderer=t,this.viewManager=r,this.projectableNodes=n,this.containerAppElement=i,this.changeDetector=s,this.context=null,this.destroyed=!1,this.ref=new _.ViewRef_(this);var c=g.AppElement.getViewParentInjector(this.proto.type,i,o,a);this.parentInjector=c.injector,this.hostInjectorBoundary=c.hostInjectorBoundary;var l,u;switch(e.type){case E.ViewType.COMPONENT:l=new P.Pipes(e.protoPipes,i.getInjector()),u=i.getComponent();break;case E.ViewType.EMBEDDED:l=i.parentView.pipes,u=i.parentView.context;break;case E.ViewType.HOST:l=null,u=R}this.pipes=l,this.context=u}return e.prototype.init=function(e,t,r,n){this.rootNodesOrAppElements=e,this.allNodes=t,this.disposables=r,this.appElements=n;var i=new d.Map;d.StringMapWrapper.forEach(this.proto.templateVariableBindings,function(e,t){i.set(e,null)});for(var o=0;o<n.length;o++){var a=n[o],s=[];if(m.isPresent(a.proto.protoInjector))for(var c=0;c<a.proto.protoInjector.numberOfProviders;c++)s.push(a.proto.protoInjector.getProviderAtIndex(c).key.token);d.StringMapWrapper.forEach(a.proto.directiveVariableBindings,function(e,t){m.isBlank(e)?i.set(t,a.nativeElement):i.set(t,a.getDirectiveAtIndex(e))}),this.renderer.setElementDebugInfo(a.nativeElement,new y.RenderDebugInfo(a.getInjector(),a.getComponent(),s,i))}var l=null;this.proto.type!==E.ViewType.COMPONENT&&(l=m.isPresent(this.containerAppElement)?this.containerAppElement.parentView.locals:null),this.proto.type===E.ViewType.COMPONENT&&(this.containerAppElement.attachComponentView(this),this.containerAppElement.parentView.changeDetector.addViewChild(this.changeDetector)),this.locals=new f.Locals(l,i),this.changeDetector.hydrate(this.context,this.locals,this,this.pipes),this.viewManager.onViewCreated(this)},e.prototype.destroy=function(){if(this.destroyed)throw new v.BaseException("This view has already been destroyed!");this.changeDetector.destroyRecursive()},e.prototype.notifyOnDestroy=function(){this.destroyed=!0;var e=this.proto.type===E.ViewType.COMPONENT?this.containerAppElement.nativeElement:null;this.renderer.destroyView(e,this.allNodes);for(var t=0;t<this.disposables.length;t++)this.disposables[t]();this.viewManager.onViewDestroyed(this)},Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this.changeDetector.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"flatRootNodes",{get:function(){return i(this.rootNodesOrAppElements)},enumerable:!0,configurable:!0}),e.prototype.hasLocal=function(e){return d.StringMapWrapper.contains(this.proto.templateVariableBindings,e)},e.prototype.setLocal=function(e,t){if(this.hasLocal(e)){var r=this.proto.templateVariableBindings[e];this.locals.set(r,t)}},e.prototype.notifyOnBinding=function(e,t){if(e.isTextNode())this.renderer.setText(this.allNodes[e.elementIndex],t);else{var r=this.appElements[e.elementIndex].nativeElement;if(e.isElementProperty())this.renderer.setElementProperty(r,e.name,t);else if(e.isElementAttribute())this.renderer.setElementAttribute(r,e.name,m.isPresent(t)?""+t:null);else if(e.isElementClass())this.renderer.setElementClass(r,e.name,t);else{if(!e.isElementStyle())throw new v.BaseException("Unsupported directive record");var n=m.isPresent(e.unit)?e.unit:"";this.renderer.setElementStyle(r,e.name,m.isPresent(t)?""+t+n:null)}}},e.prototype.logBindingUpdate=function(e,t){if(e.isDirective()||e.isElementProperty()){var r=this.appElements[e.elementIndex].nativeElement;this.renderer.setBindingDebugInfo(r,""+S+C.camelCaseToDashCase(e.name),""+t)}},e.prototype.notifyAfterContentChecked=function(){for(var e=this.appElements.length,t=e-1;t>=0;t--)this.appElements[t].ngAfterContentChecked()},e.prototype.notifyAfterViewChecked=function(){for(var e=this.appElements.length,t=e-1;t>=0;t--)this.appElements[t].ngAfterViewChecked()},e.prototype.getDebugContext=function(e,t,r){try{m.isBlank(e)&&t<this.appElements.length&&(e=this.appElements[t]);var i=this.containerAppElement,o=m.isPresent(e)?e.nativeElement:null,a=m.isPresent(i)?i.nativeElement:null,s=m.isPresent(r)?e.getDirectiveAtIndex(r):null,c=m.isPresent(e)?e.getInjector():null;return new h.DebugContext(o,a,s,this.context,n(this.locals),c)}catch(l){return null}},e.prototype.getDirectiveFor=function(e){return this.appElements[e.elementIndex].getDirectiveAtIndex(e.directiveIndex)},e.prototype.getDetectorFor=function(e){var t=this.appElements[e.elementIndex].componentView;return m.isPresent(t)?t.changeDetector:null},e.prototype.triggerEventHandlers=function(e,t,r){return this.changeDetector.handleEvent(e,r,t)},e}();t.AppView=x;var O=function(){function e(e,t,r){this.type=e,this.protoPipes=t,this.templateVariableBindings=r}return e.create=function(t,r,n,i){var o=null;if(m.isPresent(n)&&n.length>0){for(var a=d.ListWrapper.createFixedSize(n.length),s=0;s<n.length;s++)a[s]=t.getResolvedPipeMetadata(n[s]);o=b.ProtoPipes.fromProviders(a)}return new e(r,o,i)},e}();t.AppProtoView=O;var D=function(){function e(e,t){this.selector=e,this.viewFactory=t}return e=u([m.CONST(),p("design:paramtypes",[String,Function])],e)}();return t.HostViewFactory=D,t.flattenNestedViewRenderNodes=i,t.findLastRenderNode=a,t.checkSlotCount=s,c.define=l,r.exports}),System.register("angular2/src/core/application_common_providers",["angular2/src/facade/lang","angular2/src/core/di","angular2/src/core/application_tokens","angular2/src/core/change_detection/change_detection","angular2/src/core/linker/resolved_metadata_cache","angular2/src/core/linker/view_manager","angular2/src/core/linker/view_manager","angular2/src/core/linker/view_resolver","angular2/src/core/linker/directive_resolver","angular2/src/core/linker/pipe_resolver","angular2/src/core/linker/compiler","angular2/src/core/linker/compiler","angular2/src/core/linker/dynamic_component_loader","angular2/src/core/linker/dynamic_component_loader"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/core/di"),s=e("angular2/src/core/application_tokens"),c=e("angular2/src/core/change_detection/change_detection"),l=e("angular2/src/core/linker/resolved_metadata_cache"),u=e("angular2/src/core/linker/view_manager"),p=e("angular2/src/core/linker/view_manager"),d=e("angular2/src/core/linker/view_resolver"),f=e("angular2/src/core/linker/directive_resolver"),h=e("angular2/src/core/linker/pipe_resolver"),g=e("angular2/src/core/linker/compiler"),m=e("angular2/src/core/linker/compiler"),v=e("angular2/src/core/linker/dynamic_component_loader"),y=e("angular2/src/core/linker/dynamic_component_loader");return t.APPLICATION_COMMON_PROVIDERS=o.CONST_EXPR([new a.Provider(g.Compiler,{useClass:m.Compiler_}),s.APP_ID_RANDOM_PROVIDER,l.ResolvedMetadataCache,new a.Provider(u.AppViewManager,{useClass:p.AppViewManager_}),d.ViewResolver,new a.Provider(c.IterableDiffers,{useValue:c.defaultIterableDiffers}),new a.Provider(c.KeyValueDiffers,{useValue:c.defaultKeyValueDiffers}),f.DirectiveResolver,h.PipeResolver,new a.Provider(v.DynamicComponentLoader,{useClass:y.DynamicComponentLoader_})]),n.define=i,r.exports}),System.register("angular2/src/core/di/injector",["angular2/src/facade/collection","angular2/src/core/di/provider","angular2/src/core/di/exceptions","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/core/di/key","angular2/src/core/di/metadata"],!0,function(e,t,r){function n(e,t){return e===t||t===g.PublicAndPrivate||e===g.PublicAndPrivate}function i(e,t){for(var r=[],n=0;n<e._proto.numberOfProviders;++n)r.push(t(e._proto.getProviderAtIndex(n)));return r}var o=System.global,a=o.define;o.define=void 0;var s=e("angular2/src/facade/collection"),c=e("angular2/src/core/di/provider"),l=e("angular2/src/core/di/exceptions"),u=e("angular2/src/facade/lang"),p=e("angular2/src/facade/exceptions"),d=e("angular2/src/core/di/key"),f=e("angular2/src/core/di/metadata"),h=10;t.UNDEFINED=u.CONST_EXPR(new Object),function(e){e[e.Public=0]="Public",e[e.Private=1]="Private",e[e.PublicAndPrivate=2]="PublicAndPrivate"}(t.Visibility||(t.Visibility={}));var g=t.Visibility,m=function(){function e(e,t){this.provider0=null,this.provider1=null,this.provider2=null,this.provider3=null,this.provider4=null,this.provider5=null,this.provider6=null,this.provider7=null,this.provider8=null,this.provider9=null,this.keyId0=null,this.keyId1=null,this.keyId2=null,this.keyId3=null,this.keyId4=null,this.keyId5=null,this.keyId6=null,this.keyId7=null,this.keyId8=null,this.keyId9=null,this.visibility0=null,this.visibility1=null,this.visibility2=null,this.visibility3=null,this.visibility4=null,this.visibility5=null,this.visibility6=null,this.visibility7=null,this.visibility8=null,this.visibility9=null;var r=t.length;r>0&&(this.provider0=t[0].provider,this.keyId0=t[0].getKeyId(),this.visibility0=t[0].visibility),r>1&&(this.provider1=t[1].provider,this.keyId1=t[1].getKeyId(),this.visibility1=t[1].visibility),r>2&&(this.provider2=t[2].provider,this.keyId2=t[2].getKeyId(),this.visibility2=t[2].visibility),r>3&&(this.provider3=t[3].provider,this.keyId3=t[3].getKeyId(),this.visibility3=t[3].visibility),r>4&&(this.provider4=t[4].provider,this.keyId4=t[4].getKeyId(),this.visibility4=t[4].visibility),r>5&&(this.provider5=t[5].provider,this.keyId5=t[5].getKeyId(),this.visibility5=t[5].visibility),r>6&&(this.provider6=t[6].provider,this.keyId6=t[6].getKeyId(),this.visibility6=t[6].visibility),r>7&&(this.provider7=t[7].provider,this.keyId7=t[7].getKeyId(),this.visibility7=t[7].visibility),r>8&&(this.provider8=t[8].provider,this.keyId8=t[8].getKeyId(),this.visibility8=t[8].visibility),r>9&&(this.provider9=t[9].provider,this.keyId9=t[9].getKeyId(),this.visibility9=t[9].visibility)}return e.prototype.getProviderAtIndex=function(e){if(0==e)return this.provider0;if(1==e)return this.provider1;if(2==e)return this.provider2;if(3==e)return this.provider3;if(4==e)return this.provider4;if(5==e)return this.provider5;if(6==e)return this.provider6;if(7==e)return this.provider7;if(8==e)return this.provider8;if(9==e)return this.provider9;throw new l.OutOfBoundsError(e)},e.prototype.createInjectorStrategy=function(e){return new _(e,this)},e}();t.ProtoInjectorInlineStrategy=m;var v=function(){function e(e,t){var r=t.length;this.providers=s.ListWrapper.createFixedSize(r),this.keyIds=s.ListWrapper.createFixedSize(r),this.visibilities=s.ListWrapper.createFixedSize(r);for(var n=0;r>n;n++)this.providers[n]=t[n].provider,this.keyIds[n]=t[n].getKeyId(),this.visibilities[n]=t[n].visibility}return e.prototype.getProviderAtIndex=function(e){if(0>e||e>=this.providers.length)throw new l.OutOfBoundsError(e);return this.providers[e]},e.prototype.createInjectorStrategy=function(e){return new b(this,e)},e}();t.ProtoInjectorDynamicStrategy=v;var y=function(){function e(e){this.numberOfProviders=e.length,this._strategy=e.length>h?new v(this,e):new m(this,e)}return e.fromResolvedProviders=function(t){var r=t.map(function(e){return new C(e,g.Public)});return new e(r)},e.prototype.getProviderAtIndex=function(e){return this._strategy.getProviderAtIndex(e)},e}();t.ProtoInjector=y;var _=function(){function e(e,r){this.injector=e,this.protoStrategy=r,this.obj0=t.UNDEFINED,this.obj1=t.UNDEFINED,this.obj2=t.UNDEFINED,this.obj3=t.UNDEFINED,this.obj4=t.UNDEFINED,this.obj5=t.UNDEFINED,this.obj6=t.UNDEFINED,this.obj7=t.UNDEFINED,this.obj8=t.UNDEFINED,this.obj9=t.UNDEFINED}return e.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},e.prototype.instantiateProvider=function(e,t){return this.injector._new(e,t)},e.prototype.getObjByKeyId=function(e,r){var i=this.protoStrategy,o=this.injector;return i.keyId0===e&&n(i.visibility0,r)?(this.obj0===t.UNDEFINED&&(this.obj0=o._new(i.provider0,i.visibility0)),this.obj0):i.keyId1===e&&n(i.visibility1,r)?(this.obj1===t.UNDEFINED&&(this.obj1=o._new(i.provider1,i.visibility1)),this.obj1):i.keyId2===e&&n(i.visibility2,r)?(this.obj2===t.UNDEFINED&&(this.obj2=o._new(i.provider2,i.visibility2)),this.obj2):i.keyId3===e&&n(i.visibility3,r)?(this.obj3===t.UNDEFINED&&(this.obj3=o._new(i.provider3,i.visibility3)),this.obj3):i.keyId4===e&&n(i.visibility4,r)?(this.obj4===t.UNDEFINED&&(this.obj4=o._new(i.provider4,i.visibility4)),this.obj4):i.keyId5===e&&n(i.visibility5,r)?(this.obj5===t.UNDEFINED&&(this.obj5=o._new(i.provider5,i.visibility5)),this.obj5):i.keyId6===e&&n(i.visibility6,r)?(this.obj6===t.UNDEFINED&&(this.obj6=o._new(i.provider6,i.visibility6)),this.obj6):i.keyId7===e&&n(i.visibility7,r)?(this.obj7===t.UNDEFINED&&(this.obj7=o._new(i.provider7,i.visibility7)),this.obj7):i.keyId8===e&&n(i.visibility8,r)?(this.obj8===t.UNDEFINED&&(this.obj8=o._new(i.provider8,i.visibility8)),this.obj8):i.keyId9===e&&n(i.visibility9,r)?(this.obj9===t.UNDEFINED&&(this.obj9=o._new(i.provider9,i.visibility9)),this.obj9):t.UNDEFINED},e.prototype.getObjAtIndex=function(e){if(0==e)return this.obj0;if(1==e)return this.obj1;if(2==e)return this.obj2;if(3==e)return this.obj3;if(4==e)return this.obj4;if(5==e)return this.obj5;if(6==e)return this.obj6;if(7==e)return this.obj7;if(8==e)return this.obj8;if(9==e)return this.obj9;throw new l.OutOfBoundsError(e)},e.prototype.getMaxNumberOfObjects=function(){return h},e}();t.InjectorInlineStrategy=_;var b=function(){function e(e,r){this.protoStrategy=e,this.injector=r,this.objs=s.ListWrapper.createFixedSize(e.providers.length),s.ListWrapper.fill(this.objs,t.UNDEFINED)}return e.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},e.prototype.instantiateProvider=function(e,t){return this.injector._new(e,t)},e.prototype.getObjByKeyId=function(e,r){for(var i=this.protoStrategy,o=0;o<i.keyIds.length;o++)if(i.keyIds[o]===e&&n(i.visibilities[o],r))return this.objs[o]===t.UNDEFINED&&(this.objs[o]=this.injector._new(i.providers[o],i.visibilities[o])),this.objs[o];return t.UNDEFINED},e.prototype.getObjAtIndex=function(e){if(0>e||e>=this.objs.length)throw new l.OutOfBoundsError(e);return this.objs[e]},e.prototype.getMaxNumberOfObjects=function(){return this.objs.length},e}();t.InjectorDynamicStrategy=b;var C=function(){function e(e,t){this.provider=e,this.visibility=t}return e.prototype.getKeyId=function(){return this.provider.key.id},e}();t.ProviderWithVisibility=C;var w=function(){function e(e,t,r,n,i){void 0===t&&(t=null),void 0===r&&(r=!1),void 0===n&&(n=null),void 0===i&&(i=null),this._isHostBoundary=r,this._depProvider=n,this._debugContext=i,this._constructionCounter=0,this._proto=e,this._parent=t,this._strategy=e._strategy.createInjectorStrategy(this)}return e.resolve=function(e){return c.resolveProviders(e)},e.resolveAndCreate=function(t){var r=e.resolve(t);return e.fromResolvedProviders(r)},e.fromResolvedProviders=function(t){return new e(y.fromResolvedProviders(t))},e.fromResolvedBindings=function(t){return e.fromResolvedProviders(t)},Object.defineProperty(e.prototype,"hostBoundary",{get:function(){return this._isHostBoundary},enumerable:!0,configurable:!0}),e.prototype.debugContext=function(){return this._debugContext()},e.prototype.get=function(e){return this._getByKey(d.Key.get(e),null,null,!1,g.PublicAndPrivate)},e.prototype.getOptional=function(e){return this._getByKey(d.Key.get(e),null,null,!0,g.PublicAndPrivate)},e.prototype.getAt=function(e){return this._strategy.getObjAtIndex(e)},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"internalStrategy",{get:function(){return this._strategy},enumerable:!0,configurable:!0}),e.prototype.resolveAndCreateChild=function(t){var r=e.resolve(t);return this.createChildFromResolved(r)},e.prototype.createChildFromResolved=function(t){var r=t.map(function(e){return new C(e,g.Public)}),n=new y(r),i=new e(n);return i._parent=this,i},e.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(e.resolve([t])[0])},e.prototype.instantiateResolved=function(e){return this._instantiateProvider(e,g.PublicAndPrivate)},e.prototype._new=function(e,t){if(this._constructionCounter++>this._strategy.getMaxNumberOfObjects())throw new l.CyclicDependencyError(this,e.key);return this._instantiateProvider(e,t)},e.prototype._instantiateProvider=function(e,t){if(e.multiProvider){for(var r=s.ListWrapper.createFixedSize(e.resolvedFactories.length),n=0;n<e.resolvedFactories.length;++n)r[n]=this._instantiate(e,e.resolvedFactories[n],t);return r}return this._instantiate(e,e.resolvedFactories[0],t)},e.prototype._instantiate=function(e,t,r){var n,i,o,a,s,c,u,d,f,h,g,m,v,y,_,b,C,w,P,E,S=t.factory,R=t.dependencies,x=R.length;try{n=x>0?this._getByDependency(e,R[0],r):null,i=x>1?this._getByDependency(e,R[1],r):null,o=x>2?this._getByDependency(e,R[2],r):null,a=x>3?this._getByDependency(e,R[3],r):null,s=x>4?this._getByDependency(e,R[4],r):null,c=x>5?this._getByDependency(e,R[5],r):null,u=x>6?this._getByDependency(e,R[6],r):null,d=x>7?this._getByDependency(e,R[7],r):null,f=x>8?this._getByDependency(e,R[8],r):null,h=x>9?this._getByDependency(e,R[9],r):null,g=x>10?this._getByDependency(e,R[10],r):null,m=x>11?this._getByDependency(e,R[11],r):null,v=x>12?this._getByDependency(e,R[12],r):null,y=x>13?this._getByDependency(e,R[13],r):null,_=x>14?this._getByDependency(e,R[14],r):null,b=x>15?this._getByDependency(e,R[15],r):null,C=x>16?this._getByDependency(e,R[16],r):null,w=x>17?this._getByDependency(e,R[17],r):null,P=x>18?this._getByDependency(e,R[18],r):null,E=x>19?this._getByDependency(e,R[19],r):null}catch(O){throw(O instanceof l.AbstractProviderError||O instanceof l.InstantiationError)&&O.addKey(this,e.key),O}var D;try{switch(x){case 0:D=S();break;case 1:D=S(n);break;case 2:D=S(n,i);break;case 3:D=S(n,i,o);break;case 4:D=S(n,i,o,a);break;case 5:D=S(n,i,o,a,s);break;case 6:D=S(n,i,o,a,s,c);break;case 7:D=S(n,i,o,a,s,c,u);break;case 8:D=S(n,i,o,a,s,c,u,d);break;case 9:D=S(n,i,o,a,s,c,u,d,f);break;case 10:D=S(n,i,o,a,s,c,u,d,f,h);break;case 11:D=S(n,i,o,a,s,c,u,d,f,h,g);break;case 12:D=S(n,i,o,a,s,c,u,d,f,h,g,m);break;case 13:D=S(n,i,o,a,s,c,u,d,f,h,g,m,v);break;case 14:D=S(n,i,o,a,s,c,u,d,f,h,g,m,v,y);break;case 15:D=S(n,i,o,a,s,c,u,d,f,h,g,m,v,y,_);break;case 16:D=S(n,i,o,a,s,c,u,d,f,h,g,m,v,y,_,b);break;case 17:D=S(n,i,o,a,s,c,u,d,f,h,g,m,v,y,_,b,C);break;case 18:D=S(n,i,o,a,s,c,u,d,f,h,g,m,v,y,_,b,C,w);break;case 19:D=S(n,i,o,a,s,c,u,d,f,h,g,m,v,y,_,b,C,w,P);break;case 20:D=S(n,i,o,a,s,c,u,d,f,h,g,m,v,y,_,b,C,w,P,E);break;default:throw new p.BaseException("Cannot instantiate '"+e.key.displayName+"' because it has more than 20 dependencies")}}catch(O){throw new l.InstantiationError(this,O,O.stack,e.key)}return D},e.prototype._getByDependency=function(e,r,n){var i=u.isPresent(this._depProvider)?this._depProvider.getDependency(this,e,r):t.UNDEFINED;return i!==t.UNDEFINED?i:this._getByKey(r.key,r.lowerBoundVisibility,r.upperBoundVisibility,r.optional,n)},e.prototype._getByKey=function(e,t,r,n,i){return e===P?this:r instanceof f.SelfMetadata?this._getByKeySelf(e,n,i):r instanceof f.HostMetadata?this._getByKeyHost(e,n,i,t):this._getByKeyDefault(e,n,i,t)},e.prototype._throwOrNull=function(e,t){if(t)return null;throw new l.NoProviderError(this,e)},e.prototype._getByKeySelf=function(e,r,n){var i=this._strategy.getObjByKeyId(e.id,n);return i!==t.UNDEFINED?i:this._throwOrNull(e,r)},e.prototype._getByKeyHost=function(e,r,n,i){var o=this;if(i instanceof f.SkipSelfMetadata){if(o._isHostBoundary)return this._getPrivateDependency(e,r,o);o=o._parent}for(;null!=o;){var a=o._strategy.getObjByKeyId(e.id,n);if(a!==t.UNDEFINED)return a;if(u.isPresent(o._parent)&&o._isHostBoundary)return this._getPrivateDependency(e,r,o);o=o._parent}return this._throwOrNull(e,r)},e.prototype._getPrivateDependency=function(e,r,n){var i=n._parent._strategy.getObjByKeyId(e.id,g.Private);return i!==t.UNDEFINED?i:this._throwOrNull(e,r)},e.prototype._getByKeyDefault=function(e,r,n,i){var o=this;for(i instanceof f.SkipSelfMetadata&&(n=o._isHostBoundary?g.PublicAndPrivate:g.Public,o=o._parent);null!=o;){var a=o._strategy.getObjByKeyId(e.id,n);if(a!==t.UNDEFINED)return a;n=o._isHostBoundary?g.PublicAndPrivate:g.Public,o=o._parent}return this._throwOrNull(e,r)},Object.defineProperty(e.prototype,"displayName",{get:function(){return"Injector(providers: ["+i(this,function(e){return' "'+e.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.displayName},e}();t.Injector=w;var P=d.Key.get(w);return o.define=a,r.exports}),System.register("angular2/src/animate/animation_builder",["angular2/src/core/di","angular2/src/animate/css_animation_builder","angular2/src/animate/browser_details"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/core/di"),c=e("angular2/src/animate/css_animation_builder"),l=e("angular2/src/animate/browser_details"),u=function(){function e(e){ this.browserDetails=e}return e.prototype.css=function(){return new c.CssAnimationBuilder(this.browserDetails)},e=o([s.Injectable(),a("design:paramtypes",[l.BrowserDetails])],e)}();return t.AnimationBuilder=u,n.define=i,r.exports}),System.register("angular2/src/core/change_detection/proto_change_detector",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/change_detection/parser/ast","angular2/src/core/change_detection/change_detection_util","angular2/src/core/change_detection/dynamic_change_detector","angular2/src/core/change_detection/directive_record","angular2/src/core/change_detection/event_binding","angular2/src/core/change_detection/coalesce","angular2/src/core/change_detection/proto_record"],!0,function(e,t,r){function n(e){var t=new E;return g.ListWrapper.forEachWithIndex(e.bindingRecords,function(r,n){return t.add(r,e.variableNames,n)}),C.coalesce(t.records)}function i(e){var t=g.ListWrapper.concat(["$event"],e.variableNames);return e.eventRecords.map(function(e){var r=S.create(e,t),n=e.implicitReceiver instanceof _.DirectiveIndex?e.implicitReceiver:null;return new b.EventBinding(e.target.name,e.target.elementIndex,n,r)})}function o(e){switch(e){case 0:return v.ChangeDetectionUtil.arrayFn0;case 1:return v.ChangeDetectionUtil.arrayFn1;case 2:return v.ChangeDetectionUtil.arrayFn2;case 3:return v.ChangeDetectionUtil.arrayFn3;case 4:return v.ChangeDetectionUtil.arrayFn4;case 5:return v.ChangeDetectionUtil.arrayFn5;case 6:return v.ChangeDetectionUtil.arrayFn6;case 7:return v.ChangeDetectionUtil.arrayFn7;case 8:return v.ChangeDetectionUtil.arrayFn8;case 9:return v.ChangeDetectionUtil.arrayFn9;default:throw new h.BaseException("Does not support literal maps with more than 9 elements")}}function a(e){var t=e.map(function(e){return f.isString(e)?'"'+e+'"':""+e}).join(", ");return"mapFn(["+t+"])"}function s(e){switch(e){case"+":return"operation_add";case"-":return"operation_subtract";case"*":return"operation_multiply";case"/":return"operation_divide";case"%":return"operation_remainder";case"==":return"operation_equals";case"!=":return"operation_not_equals";case"===":return"operation_identical";case"!==":return"operation_not_identical";case"<":return"operation_less_then";case">":return"operation_greater_then";case"<=":return"operation_less_or_equals_then";case">=":return"operation_greater_or_equals_then";default:throw new h.BaseException("Unsupported operation "+e)}}function c(e){switch(e){case"+":return v.ChangeDetectionUtil.operation_add;case"-":return v.ChangeDetectionUtil.operation_subtract;case"*":return v.ChangeDetectionUtil.operation_multiply;case"/":return v.ChangeDetectionUtil.operation_divide;case"%":return v.ChangeDetectionUtil.operation_remainder;case"==":return v.ChangeDetectionUtil.operation_equals;case"!=":return v.ChangeDetectionUtil.operation_not_equals;case"===":return v.ChangeDetectionUtil.operation_identical;case"!==":return v.ChangeDetectionUtil.operation_not_identical;case"<":return v.ChangeDetectionUtil.operation_less_then;case">":return v.ChangeDetectionUtil.operation_greater_then;case"<=":return v.ChangeDetectionUtil.operation_less_or_equals_then;case">=":return v.ChangeDetectionUtil.operation_greater_or_equals_then;default:throw new h.BaseException("Unsupported operation "+e)}}function l(e){return f.isPresent(e)?""+e:""}function u(e){var t=e.length,r=t>0?e[0]:null,n=t>1?e[1]:null,i=t>2?e[2]:null,o=t>3?e[3]:null,a=t>4?e[4]:null,s=t>5?e[5]:null,c=t>6?e[6]:null,u=t>7?e[7]:null,p=t>8?e[8]:null,d=t>9?e[9]:null;switch(t-1){case 1:return function(e){return r+l(e)+n};case 2:return function(e,t){return r+l(e)+n+l(t)+i};case 3:return function(e,t,a){return r+l(e)+n+l(t)+i+l(a)+o};case 4:return function(e,t,s,c){return r+l(e)+n+l(t)+i+l(s)+o+l(c)+a};case 5:return function(e,t,c,u,p){return r+l(e)+n+l(t)+i+l(c)+o+l(u)+a+l(p)+s};case 6:return function(e,t,u,p,d,f){return r+l(e)+n+l(t)+i+l(u)+o+l(p)+a+l(d)+s+l(f)+c};case 7:return function(e,t,p,d,f,h,g){return r+l(e)+n+l(t)+i+l(p)+o+l(d)+a+l(f)+s+l(h)+c+l(g)+u};case 8:return function(e,t,d,f,h,g,m,v){return r+l(e)+n+l(t)+i+l(d)+o+l(f)+a+l(h)+s+l(g)+c+l(m)+u+l(v)+p};case 9:return function(e,t,f,h,g,m,v,y,_){return r+l(e)+n+l(t)+i+l(f)+o+l(h)+a+l(g)+s+l(m)+c+l(v)+u+l(y)+p+l(_)+d};default:throw new h.BaseException("Does not support more than 9 expressions")}}var p=System.global,d=p.define;p.define=void 0;var f=e("angular2/src/facade/lang"),h=e("angular2/src/facade/exceptions"),g=e("angular2/src/facade/collection"),m=e("angular2/src/core/change_detection/parser/ast"),v=e("angular2/src/core/change_detection/change_detection_util"),y=e("angular2/src/core/change_detection/dynamic_change_detector"),_=e("angular2/src/core/change_detection/directive_record"),b=e("angular2/src/core/change_detection/event_binding"),C=e("angular2/src/core/change_detection/coalesce"),w=e("angular2/src/core/change_detection/proto_record"),P=function(){function e(e){this._definition=e,this._propertyBindingRecords=n(e),this._eventBindingRecords=i(e),this._propertyBindingTargets=this._definition.bindingRecords.map(function(e){return e.target}),this._directiveIndices=this._definition.directiveRecords.map(function(e){return e.directiveIndex})}return e.prototype.instantiate=function(){return new y.DynamicChangeDetector(this._definition.id,this._propertyBindingRecords.length,this._propertyBindingTargets,this._directiveIndices,this._definition.strategy,this._propertyBindingRecords,this._eventBindingRecords,this._definition.directiveRecords,this._definition.genConfig)},e}();t.DynamicProtoChangeDetector=P,t.createPropertyRecords=n,t.createEventRecords=i;var E=function(){function e(){this.records=[]}return e.prototype.add=function(e,t,r){var n=g.ListWrapper.last(this.records);f.isPresent(n)&&n.bindingRecord.directiveRecord==e.directiveRecord&&(n.lastInDirective=!1);var i=this.records.length;this._appendRecords(e,t,r);var o=g.ListWrapper.last(this.records);f.isPresent(o)&&o!==n&&(o.lastInBinding=!0,o.lastInDirective=!0,this._setArgumentToPureFunction(i))},e.prototype._setArgumentToPureFunction=function(e){for(var t=this,r=e;r<this.records.length;++r){var n=this.records[r];n.isPureFunction()&&n.args.forEach(function(e){return t.records[e-1].argumentToPureFunction=!0}),n.mode===w.RecordType.Pipe&&(n.args.forEach(function(e){return t.records[e-1].argumentToPureFunction=!0}),this.records[n.contextIndex-1].argumentToPureFunction=!0)}},e.prototype._appendRecords=function(e,t,r){e.isDirectiveLifecycle()?this.records.push(new w.ProtoRecord(w.RecordType.DirectiveLifecycle,e.lifecycleEvent,null,[],[],-1,null,this.records.length+1,e,!1,!1,!1,!1,null)):S.append(this.records,e,t,r)},e}();t.ProtoRecordBuilder=E;var S=function(){function e(e,t,r,n){this._records=e,this._bindingRecord=t,this._variableNames=r,this._bindingIndex=n}return e.append=function(t,r,n,i){var o=new e(t,r,n,i);r.ast.visit(o)},e.create=function(t,r){var n=[];return e.append(n,t,r,null),n[n.length-1].lastInBinding=!0,n},e.prototype.visitImplicitReceiver=function(e){return this._bindingRecord.implicitReceiver},e.prototype.visitInterpolation=function(e){var t=this._visitAll(e.expressions);return this._addRecord(w.RecordType.Interpolate,"interpolate",u(e.strings),t,e.strings,0)},e.prototype.visitLiteralPrimitive=function(e){return this._addRecord(w.RecordType.Const,"literal",e.value,[],null,0)},e.prototype.visitPropertyRead=function(e){var t=e.receiver.visit(this);return f.isPresent(this._variableNames)&&g.ListWrapper.contains(this._variableNames,e.name)&&e.receiver instanceof m.ImplicitReceiver?this._addRecord(w.RecordType.Local,e.name,e.name,[],null,t):this._addRecord(w.RecordType.PropertyRead,e.name,e.getter,[],null,t)},e.prototype.visitPropertyWrite=function(e){if(f.isPresent(this._variableNames)&&g.ListWrapper.contains(this._variableNames,e.name)&&e.receiver instanceof m.ImplicitReceiver)throw new h.BaseException("Cannot reassign a variable binding "+e.name);var t=e.receiver.visit(this),r=e.value.visit(this);return this._addRecord(w.RecordType.PropertyWrite,e.name,e.setter,[r],null,t)},e.prototype.visitKeyedWrite=function(e){var t=e.obj.visit(this),r=e.key.visit(this),n=e.value.visit(this);return this._addRecord(w.RecordType.KeyedWrite,null,null,[r,n],null,t)},e.prototype.visitSafePropertyRead=function(e){var t=e.receiver.visit(this);return this._addRecord(w.RecordType.SafeProperty,e.name,e.getter,[],null,t)},e.prototype.visitMethodCall=function(e){var t=e.receiver.visit(this),r=this._visitAll(e.args);if(f.isPresent(this._variableNames)&&g.ListWrapper.contains(this._variableNames,e.name)){var n=this._addRecord(w.RecordType.Local,e.name,e.name,[],null,t);return this._addRecord(w.RecordType.InvokeClosure,"closure",null,r,null,n)}return this._addRecord(w.RecordType.InvokeMethod,e.name,e.fn,r,null,t)},e.prototype.visitSafeMethodCall=function(e){var t=e.receiver.visit(this),r=this._visitAll(e.args);return this._addRecord(w.RecordType.SafeMethodInvoke,e.name,e.fn,r,null,t)},e.prototype.visitFunctionCall=function(e){var t=e.target.visit(this),r=this._visitAll(e.args);return this._addRecord(w.RecordType.InvokeClosure,"closure",null,r,null,t)},e.prototype.visitLiteralArray=function(e){var t="arrayFn"+e.expressions.length;return this._addRecord(w.RecordType.CollectionLiteral,t,o(e.expressions.length),this._visitAll(e.expressions),null,0)},e.prototype.visitLiteralMap=function(e){return this._addRecord(w.RecordType.CollectionLiteral,a(e.keys),v.ChangeDetectionUtil.mapFn(e.keys),this._visitAll(e.values),null,0)},e.prototype.visitBinary=function(e){var t=e.left.visit(this);switch(e.operation){case"&&":var r=[null];this._addRecord(w.RecordType.SkipRecordsIfNot,"SkipRecordsIfNot",null,[],r,t);var n=e.right.visit(this);return r[0]=n,this._addRecord(w.RecordType.PrimitiveOp,"cond",v.ChangeDetectionUtil.cond,[t,n,t],null,0);case"||":var r=[null];this._addRecord(w.RecordType.SkipRecordsIf,"SkipRecordsIf",null,[],r,t);var n=e.right.visit(this);return r[0]=n,this._addRecord(w.RecordType.PrimitiveOp,"cond",v.ChangeDetectionUtil.cond,[t,t,n],null,0);default:var n=e.right.visit(this);return this._addRecord(w.RecordType.PrimitiveOp,s(e.operation),c(e.operation),[t,n],null,0)}},e.prototype.visitPrefixNot=function(e){var t=e.expression.visit(this);return this._addRecord(w.RecordType.PrimitiveOp,"operation_negate",v.ChangeDetectionUtil.operation_negate,[t],null,0)},e.prototype.visitConditional=function(e){var t=e.condition.visit(this),r=[null],n=[null];this._addRecord(w.RecordType.SkipRecordsIfNot,"SkipRecordsIfNot",null,[],r,t);var i=e.trueExp.visit(this),o=this._addRecord(w.RecordType.SkipRecords,"SkipRecords",null,[],n,0),a=e.falseExp.visit(this);return r[0]=o,n[0]=a,this._addRecord(w.RecordType.PrimitiveOp,"cond",v.ChangeDetectionUtil.cond,[t,i,a],null,0)},e.prototype.visitPipe=function(e){var t=e.exp.visit(this),r=this._visitAll(e.args);return this._addRecord(w.RecordType.Pipe,e.name,e.name,r,null,t)},e.prototype.visitKeyedRead=function(e){var t=e.obj.visit(this),r=e.key.visit(this);return this._addRecord(w.RecordType.KeyedRead,"keyedAccess",v.ChangeDetectionUtil.keyedAccess,[r],null,t)},e.prototype.visitChain=function(e){var t=this,r=e.expressions.map(function(e){return e.visit(t)});return this._addRecord(w.RecordType.Chain,"chain",null,r,null,0)},e.prototype.visitQuote=function(e){throw new h.BaseException("Caught uninterpreted expression at "+e.location+": "+e.uninterpretedExpression+". "+("Expression prefix "+e.prefix+" did not match a template transformer to interpret the expression."))},e.prototype._visitAll=function(e){for(var t=g.ListWrapper.createFixedSize(e.length),r=0;r<e.length;++r)t[r]=e[r].visit(this);return t},e.prototype._addRecord=function(e,t,r,n,i,o){var a=this._records.length+1;return o instanceof _.DirectiveIndex?this._records.push(new w.ProtoRecord(e,t,r,n,i,-1,o,a,this._bindingRecord,!1,!1,!1,!1,this._bindingIndex)):this._records.push(new w.ProtoRecord(e,t,r,n,i,o,null,a,this._bindingRecord,!1,!1,!1,!1,this._bindingIndex)),a},e}();return p.define=d,r.exports}),System.register("angular2/src/core/change_detection/jit_proto_change_detector",["angular2/src/core/change_detection/change_detection_jit_generator"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/change_detection/change_detection_jit_generator"),a=function(){function e(e){this.definition=e,this._factory=this._createFactory(e)}return e.isSupported=function(){return!0},e.prototype.instantiate=function(){return this._factory()},e.prototype._createFactory=function(e){return new o.ChangeDetectorJITGenerator(e,"util","AbstractChangeDetector","ChangeDetectorStatus").generate()},e}();return t.JitProtoChangeDetector=a,n.define=i,r.exports}),System.register("angular2/src/core/linker/compiler",["angular2/src/core/di","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/async","angular2/src/core/reflection/reflection","angular2/src/core/linker/view","angular2/src/core/linker/view_ref"],!0,function(e,t,r){function n(e){return e instanceof h.HostViewFactory}var i=System.global,o=i.define;i.define=void 0;var a=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},s=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},l=e("angular2/src/core/di"),u=e("angular2/src/facade/lang"),p=e("angular2/src/facade/exceptions"),d=e("angular2/src/facade/async"),f=e("angular2/src/core/reflection/reflection"),h=e("angular2/src/core/linker/view"),g=e("angular2/src/core/linker/view_ref"),m=function(){function e(){}return e}();t.Compiler=m;var v=function(e){function t(){e.apply(this,arguments)}return a(t,e),t.prototype.compileInHost=function(e){var t=f.reflector.annotations(e),r=t.find(n);if(u.isBlank(r))throw new p.BaseException("No precompiled component "+u.stringify(e)+" found");return d.PromiseWrapper.resolve(new g.HostViewFactoryRef_(r))},t.prototype.clearCache=function(){},t=s([l.Injectable(),c("design:paramtypes",[])],t)}(m);return t.Compiler_=v,i.define=o,r.exports}),System.register("angular2/src/core/di",["angular2/src/core/di/metadata","angular2/src/core/di/decorators","angular2/src/core/di/forward_ref","angular2/src/core/di/injector","angular2/src/core/di/provider","angular2/src/core/di/key","angular2/src/core/di/exceptions","angular2/src/core/di/opaque_token"],!0,function(e,t,r){function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/core/di/metadata");t.InjectMetadata=a.InjectMetadata,t.OptionalMetadata=a.OptionalMetadata,t.InjectableMetadata=a.InjectableMetadata,t.SelfMetadata=a.SelfMetadata,t.HostMetadata=a.HostMetadata,t.SkipSelfMetadata=a.SkipSelfMetadata,t.DependencyMetadata=a.DependencyMetadata,n(e("angular2/src/core/di/decorators"));var s=e("angular2/src/core/di/forward_ref");t.forwardRef=s.forwardRef,t.resolveForwardRef=s.resolveForwardRef;var c=e("angular2/src/core/di/injector");t.Injector=c.Injector;var l=e("angular2/src/core/di/provider");t.Binding=l.Binding,t.ProviderBuilder=l.ProviderBuilder,t.ResolvedFactory=l.ResolvedFactory,t.Dependency=l.Dependency,t.bind=l.bind,t.Provider=l.Provider,t.provide=l.provide;var u=e("angular2/src/core/di/key");t.Key=u.Key;var p=e("angular2/src/core/di/exceptions");t.NoProviderError=p.NoProviderError,t.AbstractProviderError=p.AbstractProviderError,t.CyclicDependencyError=p.CyclicDependencyError,t.InstantiationError=p.InstantiationError,t.InvalidProviderError=p.InvalidProviderError,t.NoAnnotationError=p.NoAnnotationError,t.OutOfBoundsError=p.OutOfBoundsError;var d=e("angular2/src/core/di/opaque_token");return t.OpaqueToken=d.OpaqueToken,i.define=o,r.exports}),System.register("angular2/src/core/change_detection/change_detection",["angular2/src/core/change_detection/differs/iterable_differs","angular2/src/core/change_detection/differs/default_iterable_differ","angular2/src/core/change_detection/differs/keyvalue_differs","angular2/src/core/change_detection/differs/default_keyvalue_differ","angular2/src/facade/lang","angular2/src/core/change_detection/differs/default_keyvalue_differ","angular2/src/core/change_detection/differs/default_iterable_differ","angular2/src/core/change_detection/parser/ast","angular2/src/core/change_detection/parser/lexer","angular2/src/core/change_detection/parser/parser","angular2/src/core/change_detection/parser/locals","angular2/src/core/change_detection/exceptions","angular2/src/core/change_detection/interfaces","angular2/src/core/change_detection/constants","angular2/src/core/change_detection/proto_change_detector","angular2/src/core/change_detection/jit_proto_change_detector","angular2/src/core/change_detection/binding_record","angular2/src/core/change_detection/directive_record","angular2/src/core/change_detection/dynamic_change_detector","angular2/src/core/change_detection/change_detector_ref","angular2/src/core/change_detection/differs/iterable_differs","angular2/src/core/change_detection/differs/keyvalue_differs","angular2/src/core/change_detection/change_detection_util"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/change_detection/differs/iterable_differs"),a=e("angular2/src/core/change_detection/differs/default_iterable_differ"),s=e("angular2/src/core/change_detection/differs/keyvalue_differs"),c=e("angular2/src/core/change_detection/differs/default_keyvalue_differ"),l=e("angular2/src/facade/lang"),u=e("angular2/src/core/change_detection/differs/default_keyvalue_differ");t.DefaultKeyValueDifferFactory=u.DefaultKeyValueDifferFactory,t.KeyValueChangeRecord=u.KeyValueChangeRecord;var p=e("angular2/src/core/change_detection/differs/default_iterable_differ");t.DefaultIterableDifferFactory=p.DefaultIterableDifferFactory,t.CollectionChangeRecord=p.CollectionChangeRecord;var d=e("angular2/src/core/change_detection/parser/ast");t.ASTWithSource=d.ASTWithSource,t.AST=d.AST,t.AstTransformer=d.AstTransformer,t.PropertyRead=d.PropertyRead,t.LiteralArray=d.LiteralArray,t.ImplicitReceiver=d.ImplicitReceiver;var f=e("angular2/src/core/change_detection/parser/lexer");t.Lexer=f.Lexer;var h=e("angular2/src/core/change_detection/parser/parser");t.Parser=h.Parser;var g=e("angular2/src/core/change_detection/parser/locals");t.Locals=g.Locals;var m=e("angular2/src/core/change_detection/exceptions");t.DehydratedException=m.DehydratedException,t.ExpressionChangedAfterItHasBeenCheckedException=m.ExpressionChangedAfterItHasBeenCheckedException,t.ChangeDetectionError=m.ChangeDetectionError;var v=e("angular2/src/core/change_detection/interfaces");t.ChangeDetectorDefinition=v.ChangeDetectorDefinition,t.DebugContext=v.DebugContext,t.ChangeDetectorGenConfig=v.ChangeDetectorGenConfig;var y=e("angular2/src/core/change_detection/constants");t.ChangeDetectionStrategy=y.ChangeDetectionStrategy,t.CHANGE_DETECTION_STRATEGY_VALUES=y.CHANGE_DETECTION_STRATEGY_VALUES;var _=e("angular2/src/core/change_detection/proto_change_detector");t.DynamicProtoChangeDetector=_.DynamicProtoChangeDetector;var b=e("angular2/src/core/change_detection/jit_proto_change_detector");t.JitProtoChangeDetector=b.JitProtoChangeDetector;var C=e("angular2/src/core/change_detection/binding_record");t.BindingRecord=C.BindingRecord,t.BindingTarget=C.BindingTarget;var w=e("angular2/src/core/change_detection/directive_record");t.DirectiveIndex=w.DirectiveIndex,t.DirectiveRecord=w.DirectiveRecord;var P=e("angular2/src/core/change_detection/dynamic_change_detector");t.DynamicChangeDetector=P.DynamicChangeDetector;var E=e("angular2/src/core/change_detection/change_detector_ref");t.ChangeDetectorRef=E.ChangeDetectorRef;var S=e("angular2/src/core/change_detection/differs/iterable_differs");t.IterableDiffers=S.IterableDiffers;var R=e("angular2/src/core/change_detection/differs/keyvalue_differs");t.KeyValueDiffers=R.KeyValueDiffers;var x=e("angular2/src/core/change_detection/change_detection_util");return t.WrappedValue=x.WrappedValue,t.SimpleChange=x.SimpleChange,t.keyValDiff=l.CONST_EXPR([l.CONST_EXPR(new c.DefaultKeyValueDifferFactory)]),t.iterableDiff=l.CONST_EXPR([l.CONST_EXPR(new a.DefaultIterableDifferFactory)]),t.defaultIterableDiffers=l.CONST_EXPR(new o.IterableDiffers(t.iterableDiff)),t.defaultKeyValueDiffers=l.CONST_EXPR(new s.KeyValueDiffers(t.keyValDiff)),n.define=i,r.exports}),System.register("angular2/src/core/linker/dynamic_component_loader",["angular2/src/core/di","angular2/src/core/linker/compiler","angular2/src/facade/lang","angular2/src/core/linker/view_manager"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/core/di"),l=e("angular2/src/core/linker/compiler"),u=e("angular2/src/facade/lang"),p=e("angular2/src/core/linker/view_manager"),d=function(){function e(){}return Object.defineProperty(e.prototype,"hostView",{get:function(){return this.location.internalElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostComponent",{get:function(){return this.instance},enumerable:!0,configurable:!0}),e}();t.ComponentRef=d;var f=function(e){function t(t,r,n,i,o){e.call(this),this._dispose=o,this.location=t,this.instance=r,this.componentType=n,this.injector=i}return o(t,e),Object.defineProperty(t.prototype,"hostComponentType",{get:function(){return this.componentType},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._dispose()},t}(d);t.ComponentRef_=f;var h=function(){function e(){}return e}();t.DynamicComponentLoader=h;var g=function(e){function t(t,r){e.call(this),this._compiler=t,this._viewManager=r}return o(t,e),t.prototype.loadAsRoot=function(e,t,r,n,i){var o=this;return this._compiler.compileInHost(e).then(function(a){var s=o._viewManager.createRootHostView(a,t,r,i),c=o._viewManager.getHostElement(s),l=o._viewManager.getComponent(c),p=function(){u.isPresent(n)&&n(),o._viewManager.destroyRootHostView(s)};return new f(c,l,e,r,p)})},t.prototype.loadIntoLocation=function(e,t,r,n,i){return void 0===n&&(n=null),void 0===i&&(i=null),this.loadNextToLocation(e,this._viewManager.getNamedElementInComponentView(t,r),n,i)},t.prototype.loadNextToLocation=function(e,t,r,n){var i=this;return void 0===r&&(r=null),void 0===n&&(n=null),this._compiler.compileInHost(e).then(function(o){var a=i._viewManager.getViewContainer(t),s=a.createHostView(o,a.length,r,n),c=i._viewManager.getHostElement(s),l=i._viewManager.getComponent(c),u=function(){var e=a.indexOf(s);s.destroyed||-1===e||a.remove(e)};return new f(c,l,e,null,u)})},t=a([c.Injectable(),s("design:paramtypes",[l.Compiler,p.AppViewManager])],t)}(h);return t.DynamicComponentLoader_=g,n.define=i,r.exports}),System.register("angular2/src/core/change_detection",["angular2/src/core/change_detection/change_detection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/change_detection/change_detection");return t.ChangeDetectionStrategy=o.ChangeDetectionStrategy,t.ExpressionChangedAfterItHasBeenCheckedException=o.ExpressionChangedAfterItHasBeenCheckedException,t.ChangeDetectionError=o.ChangeDetectionError,t.ChangeDetectorRef=o.ChangeDetectorRef,t.WrappedValue=o.WrappedValue,t.SimpleChange=o.SimpleChange,t.IterableDiffers=o.IterableDiffers,t.KeyValueDiffers=o.KeyValueDiffers,t.CollectionChangeRecord=o.CollectionChangeRecord,t.KeyValueChangeRecord=o.KeyValueChangeRecord,n.define=i,r.exports}),System.register("angular2/src/core/application_ref",["angular2/src/core/zone/ng_zone","angular2/src/facade/lang","angular2/src/core/di","angular2/src/core/application_tokens","angular2/src/facade/async","angular2/src/facade/collection","angular2/src/core/testability/testability","angular2/src/core/linker/dynamic_component_loader","angular2/src/facade/exceptions","angular2/src/core/console","angular2/src/core/profile/profile","angular2/src/facade/lang"],!0,function(e,t,r){function n(e){return[g.provide(m.APP_COMPONENT,{useValue:e}),g.provide(m.APP_COMPONENT_REF_PROMISE,{useFactory:function(t,r,n){var i;return t.loadAsRoot(e,null,n,function(){r._unloadComponent(i)}).then(function(e){i=e;var t=n.getOptional(_.Testability);return h.isPresent(t)&&n.get(_.TestabilityRegistry).registerApplication(e.location.nativeElement,t),e})},deps:[b.DynamicComponentLoader,D,g.Injector]}),g.provide(e,{useFactory:function(e){return e.then(function(e){return e.instance})},deps:[m.APP_COMPONENT_REF_PROMISE]})]}function i(){return new f.NgZone({enableLongStackTrace:h.assertionsEnabled()})}function o(e){if(E.lockMode(),h.isPresent(S)){if(y.ListWrapper.equals(R,e))return S;throw new C.BaseException("platform cannot be initialized with different sets of providers.")}return s(e)}function a(){h.isPresent(S)&&(S.dispose(),S=null)}function s(e){R=e;var t=g.Injector.resolveAndCreate(e);return S=new O(t,function(){S=null,R=null}),c(t),S}function c(e){var t=e.getOptional(m.PLATFORM_INITIALIZER);h.isPresent(t)&&t.forEach(function(e){return e()})}function l(e){var t=e.getOptional(m.APP_INITIALIZER),r=[];return h.isPresent(t)&&t.forEach(function(e){var t=e();v.PromiseWrapper.isPromise(t)&&r.push(t)}),r.length>0?v.PromiseWrapper.all(r):null}var u=System.global,p=u.define;u.define=void 0;var d=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=e("angular2/src/core/zone/ng_zone"),h=e("angular2/src/facade/lang"),g=e("angular2/src/core/di"),m=e("angular2/src/core/application_tokens"),v=e("angular2/src/facade/async"),y=e("angular2/src/facade/collection"),_=e("angular2/src/core/testability/testability"),b=e("angular2/src/core/linker/dynamic_component_loader"),C=e("angular2/src/facade/exceptions"),w=e("angular2/src/core/console"),P=e("angular2/src/core/profile/profile"),E=e("angular2/src/facade/lang");t.createNgZone=i;var S,R;t.platform=o,t.disposePlatform=a;var x=function(){function e(){}return Object.defineProperty(e.prototype,"injector",{get:function(){return C.unimplemented()},enumerable:!0,configurable:!0}),e}();t.PlatformRef=x;var O=function(e){function t(t,r){e.call(this),this._injector=t,this._dispose=r,this._applications=[],this._disposeListeners=[]}return d(t,e),t.prototype.registerDisposeListener=function(e){this._disposeListeners.push(e)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.application=function(e){var t=this._initApp(i(),e);if(v.PromiseWrapper.isPromise(t))throw new C.BaseException("Cannot use asyncronous app initializers with application. Use asyncApplication instead.");return t},t.prototype.asyncApplication=function(e,t){var r=this,n=i(),o=v.PromiseWrapper.completer();return null===e?o.resolve(this._initApp(n,t)):n.run(function(){v.PromiseWrapper.then(e(n),function(e){h.isPresent(t)&&(e=y.ListWrapper.concat(e,t));var i=r._initApp(n,e);o.resolve(i)})}),o.promise},t.prototype._initApp=function(e,t){var r,n,i=this;e.run(function(){t=y.ListWrapper.concat(t,[g.provide(f.NgZone,{useValue:e}),g.provide(D,{useFactory:function(){return n},deps:[]})]);var o;try{r=i.injector.resolveAndCreateChild(t),o=r.get(C.ExceptionHandler),e.overrideOnErrorHandler(function(e,t){return o.call(e,t)})}catch(a){h.isPresent(o)?o.call(a,a.stack):h.print(a.toString())}}),n=new A(this,e,r),this._applications.push(n);var o=l(r);return null!==o?v.PromiseWrapper.then(o,function(e){return n}):n},t.prototype.dispose=function(){y.ListWrapper.clone(this._applications).forEach(function(e){return e.dispose()}),this._disposeListeners.forEach(function(e){return e()}),this._dispose()},t.prototype._applicationDisposed=function(e){y.ListWrapper.remove(this._applications,e)},t}(x);t.PlatformRef_=O;var D=function(){function e(){}return Object.defineProperty(e.prototype,"injector",{get:function(){return C.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zone",{get:function(){return C.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){return C.unimplemented()},enumerable:!0,configurable:!0}),e}();t.ApplicationRef=D;var A=function(e){function t(t,r,n){var i=this;e.call(this),this._platform=t,this._zone=r,this._injector=n,this._bootstrapListeners=[],this._disposeListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._changeDetectorRefs=[],this._runningTick=!1,this._enforceNoNewChanges=!1,h.isPresent(this._zone)&&v.ObservableWrapper.subscribe(this._zone.onTurnDone,function(e){i._zone.run(function(){i.tick()})}),this._enforceNoNewChanges=h.assertionsEnabled()}return d(t,e),t.prototype.registerBootstrapListener=function(e){this._bootstrapListeners.push(e)},t.prototype.registerDisposeListener=function(e){this._disposeListeners.push(e)},t.prototype.registerChangeDetector=function(e){this._changeDetectorRefs.push(e)},t.prototype.unregisterChangeDetector=function(e){y.ListWrapper.remove(this._changeDetectorRefs,e)},t.prototype.bootstrap=function(e,t){var r=this,i=v.PromiseWrapper.completer();return this._zone.run(function(){var o=n(e);h.isPresent(t)&&o.push(t);var a=r._injector.get(C.ExceptionHandler);r._rootComponentTypes.push(e);try{var s=r._injector.resolveAndCreateChild(o),c=s.get(m.APP_COMPONENT_REF_PROMISE),l=function(e){r._loadComponent(e),i.resolve(e)},u=v.PromiseWrapper.then(c,l);h.IS_DART&&v.PromiseWrapper.then(u,function(e){}),v.PromiseWrapper.then(u,null,function(e,t){return i.reject(e,t)})}catch(p){a.call(p,p.stack),i.reject(p,p.stack)}}),i.promise.then(function(e){var t=r._injector.get(w.Console);return h.assertionsEnabled()&&t.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode."),e})},t.prototype._loadComponent=function(e){var t=e.location.internalElement.parentView.changeDetector;this._changeDetectorRefs.push(t.ref),this.tick(),this._rootComponents.push(e),this._bootstrapListeners.forEach(function(t){return t(e)})},t.prototype._unloadComponent=function(e){y.ListWrapper.contains(this._rootComponents,e)&&(this.unregisterChangeDetector(e.location.internalElement.parentView.changeDetector.ref),y.ListWrapper.remove(this._rootComponents,e))},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),t.prototype.tick=function(){if(this._runningTick)throw new C.BaseException("ApplicationRef.tick is called recursively");var e=t._tickScope();try{this._runningTick=!0,this._changeDetectorRefs.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._changeDetectorRefs.forEach(function(e){return e.checkNoChanges()})}finally{this._runningTick=!1,P.wtfLeave(e)}},t.prototype.dispose=function(){y.ListWrapper.clone(this._rootComponents).forEach(function(e){return e.dispose(); }),this._disposeListeners.forEach(function(e){return e()}),this._platform._applicationDisposed(this)},Object.defineProperty(t.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),t._tickScope=P.wtfCreateScope("ApplicationRef#tick()"),t}(D);return t.ApplicationRef_=A,u.define=p,r.exports}),System.register("angular2/src/core/metadata/directives",["angular2/src/facade/lang","angular2/src/core/di/metadata","angular2/src/core/change_detection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/facade/lang"),l=e("angular2/src/core/di/metadata"),u=e("angular2/src/core/change_detection"),p=function(e){function t(t){var r=void 0===t?{}:t,n=r.selector,i=r.inputs,o=r.outputs,a=r.properties,s=r.events,c=r.host,l=r.bindings,u=r.providers,p=r.exportAs,d=r.queries;e.call(this),this.selector=n,this._inputs=i,this._properties=a,this._outputs=o,this._events=s,this.host=c,this.exportAs=p,this.queries=d,this._providers=u,this._bindings=l}return o(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){return c.isPresent(this._properties)&&this._properties.length>0?this._properties:this._inputs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){return c.isPresent(this._events)&&this._events.length>0?this._events:this._outputs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.outputs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providers",{get:function(){return c.isPresent(this._bindings)&&this._bindings.length>0?this._bindings:this._providers},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bindings",{get:function(){return this.providers},enumerable:!0,configurable:!0}),t=a([c.CONST(),s("design:paramtypes",[Object])],t)}(l.InjectableMetadata);t.DirectiveMetadata=p;var d=function(e){function t(t){var r=void 0===t?{}:t,n=r.selector,i=r.inputs,o=r.outputs,a=r.properties,s=r.events,c=r.host,l=r.exportAs,p=r.moduleId,d=r.bindings,f=r.providers,h=r.viewBindings,g=r.viewProviders,m=r.changeDetection,v=void 0===m?u.ChangeDetectionStrategy.Default:m,y=r.queries,_=r.templateUrl,b=r.template,C=r.styleUrls,w=r.styles,P=r.directives,E=r.pipes,S=r.encapsulation;e.call(this,{selector:n,inputs:i,outputs:o,properties:a,events:s,host:c,exportAs:l,bindings:d,providers:f,queries:y}),this.changeDetection=v,this._viewProviders=g,this._viewBindings=h,this.templateUrl=_,this.template=b,this.styleUrls=C,this.styles=w,this.directives=P,this.pipes=E,this.encapsulation=S,this.moduleId=p}return o(t,e),Object.defineProperty(t.prototype,"viewProviders",{get:function(){return c.isPresent(this._viewBindings)&&this._viewBindings.length>0?this._viewBindings:this._viewProviders},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewBindings",{get:function(){return this.viewProviders},enumerable:!0,configurable:!0}),t=a([c.CONST(),s("design:paramtypes",[Object])],t)}(p);t.ComponentMetadata=d;var f=function(e){function t(t){var r=t.name,n=t.pure;e.call(this),this.name=r,this._pure=n}return o(t,e),Object.defineProperty(t.prototype,"pure",{get:function(){return c.isPresent(this._pure)?this._pure:!0},enumerable:!0,configurable:!0}),t=a([c.CONST(),s("design:paramtypes",[Object])],t)}(l.InjectableMetadata);t.PipeMetadata=f;var h=function(){function e(e){this.bindingPropertyName=e}return e=a([c.CONST(),s("design:paramtypes",[String])],e)}();t.InputMetadata=h;var g=function(){function e(e){this.bindingPropertyName=e}return e=a([c.CONST(),s("design:paramtypes",[String])],e)}();t.OutputMetadata=g;var m=function(){function e(e){this.hostPropertyName=e}return e=a([c.CONST(),s("design:paramtypes",[String])],e)}();t.HostBindingMetadata=m;var v=function(){function e(e,t){this.eventName=e,this.args=t}return e=a([c.CONST(),s("design:paramtypes",[String,Array])],e)}();return t.HostListenerMetadata=v,n.define=i,r.exports}),System.register("angular2/core",["angular2/src/core/metadata","angular2/src/core/util","angular2/src/core/prod_mode","angular2/src/core/di","angular2/src/facade/facade","angular2/src/facade/lang","angular2/src/core/application_ref","angular2/src/core/application_tokens","angular2/src/core/zone","angular2/src/core/render","angular2/src/core/linker","angular2/src/core/debug/debug_node","angular2/src/core/testability/testability","angular2/src/core/change_detection","angular2/src/core/platform_directives_and_pipes","angular2/src/core/platform_common_providers","angular2/src/core/application_common_providers","angular2/src/core/reflection/reflection"],!0,function(e,t,r){function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}var i=System.global,o=i.define;i.define=void 0,n(e("angular2/src/core/metadata")),n(e("angular2/src/core/util")),n(e("angular2/src/core/prod_mode")),n(e("angular2/src/core/di")),n(e("angular2/src/facade/facade"));var a=e("angular2/src/facade/lang");t.enableProdMode=a.enableProdMode;var s=e("angular2/src/core/application_ref");t.platform=s.platform,t.createNgZone=s.createNgZone,t.PlatformRef=s.PlatformRef,t.ApplicationRef=s.ApplicationRef;var c=e("angular2/src/core/application_tokens");t.APP_ID=c.APP_ID,t.APP_COMPONENT=c.APP_COMPONENT,t.APP_INITIALIZER=c.APP_INITIALIZER,t.PACKAGE_ROOT_URL=c.PACKAGE_ROOT_URL,t.PLATFORM_INITIALIZER=c.PLATFORM_INITIALIZER,n(e("angular2/src/core/zone")),n(e("angular2/src/core/render")),n(e("angular2/src/core/linker"));var l=e("angular2/src/core/debug/debug_node");return t.DebugElement=l.DebugElement,t.DebugNode=l.DebugNode,t.asNativeElements=l.asNativeElements,n(e("angular2/src/core/testability/testability")),n(e("angular2/src/core/change_detection")),n(e("angular2/src/core/platform_directives_and_pipes")),n(e("angular2/src/core/platform_common_providers")),n(e("angular2/src/core/application_common_providers")),n(e("angular2/src/core/reflection/reflection")),i.define=o,r.exports}),System.register("angular2/src/facade/async",["angular2/src/facade/lang","angular2/src/facade/promise","rxjs/Subject","rxjs/observable/PromiseObservable","rxjs/operator/toPromise","rxjs/Observable","rxjs/Subject"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/facade/lang"),s=e("angular2/src/facade/promise");t.PromiseWrapper=s.PromiseWrapper;var c=e("rxjs/Subject"),l=e("rxjs/observable/PromiseObservable"),u=e("rxjs/operator/toPromise"),p=e("rxjs/Observable");t.Observable=p.Observable;var d=e("rxjs/Subject");t.Subject=d.Subject;var f=function(){function e(){}return e.setTimeout=function(e,t){return a.global.setTimeout(e,t)},e.clearTimeout=function(e){a.global.clearTimeout(e)},e.setInterval=function(e,t){return a.global.setInterval(e,t)},e.clearInterval=function(e){a.global.clearInterval(e)},e}();t.TimerWrapper=f;var h=function(){function e(){}return e.subscribe=function(e,t,r,n){return void 0===n&&(n=function(){}),r="function"==typeof r&&r||a.noop,n="function"==typeof n&&n||a.noop,e.subscribe({next:t,error:r,complete:n})},e.isObservable=function(e){return!!e.subscribe},e.hasSubscribers=function(e){return e.observers.length>0},e.dispose=function(e){e.unsubscribe()},e.callNext=function(e,t){e.next(t)},e.callEmit=function(e,t){e.emit(t)},e.callError=function(e,t){e.error(t)},e.callComplete=function(e){e.complete()},e.fromPromise=function(e){return l.PromiseObservable.create(e)},e.toPromise=function(e){return u.toPromise.call(e)},e}();t.ObservableWrapper=h;var g=function(e){function t(t){void 0===t&&(t=!0),e.call(this),this._isAsync=t}return o(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.next=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,r,n){var i,o=function(e){return null},a=function(){return null};return t&&"object"==typeof t?(i=this._isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(o=this._isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(a=this._isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(i=this._isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},r&&(o=this._isAsync?function(e){setTimeout(function(){return r(e)})}:function(e){r(e)}),n&&(a=this._isAsync?function(){setTimeout(function(){return n()})}:function(){n()})),e.prototype.subscribe.call(this,i,o,a)},t}(c.Subject);return t.EventEmitter=g,n.define=i,r.exports}),System.register("angular2/src/core/metadata",["angular2/src/core/metadata/di","angular2/src/core/metadata/directives","angular2/src/core/metadata/view","angular2/src/core/metadata/di","angular2/src/core/metadata/directives","angular2/src/core/metadata/view","angular2/src/core/util/decorators"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/metadata/di");t.QueryMetadata=o.QueryMetadata,t.ContentChildrenMetadata=o.ContentChildrenMetadata,t.ContentChildMetadata=o.ContentChildMetadata,t.ViewChildrenMetadata=o.ViewChildrenMetadata,t.ViewQueryMetadata=o.ViewQueryMetadata,t.ViewChildMetadata=o.ViewChildMetadata,t.AttributeMetadata=o.AttributeMetadata;var a=e("angular2/src/core/metadata/directives");t.ComponentMetadata=a.ComponentMetadata,t.DirectiveMetadata=a.DirectiveMetadata,t.PipeMetadata=a.PipeMetadata,t.InputMetadata=a.InputMetadata,t.OutputMetadata=a.OutputMetadata,t.HostBindingMetadata=a.HostBindingMetadata,t.HostListenerMetadata=a.HostListenerMetadata;var s=e("angular2/src/core/metadata/view");t.ViewMetadata=s.ViewMetadata,t.ViewEncapsulation=s.ViewEncapsulation;var c=e("angular2/src/core/metadata/di"),l=e("angular2/src/core/metadata/directives"),u=e("angular2/src/core/metadata/view"),p=e("angular2/src/core/util/decorators");return t.Component=p.makeDecorator(l.ComponentMetadata,function(e){return e.View=t.View}),t.Directive=p.makeDecorator(l.DirectiveMetadata),t.View=p.makeDecorator(u.ViewMetadata,function(e){return e.View=t.View}),t.Attribute=p.makeParamDecorator(c.AttributeMetadata),t.Query=p.makeParamDecorator(c.QueryMetadata),t.ContentChildren=p.makePropDecorator(c.ContentChildrenMetadata),t.ContentChild=p.makePropDecorator(c.ContentChildMetadata),t.ViewChildren=p.makePropDecorator(c.ViewChildrenMetadata),t.ViewChild=p.makePropDecorator(c.ViewChildMetadata),t.ViewQuery=p.makeParamDecorator(c.ViewQueryMetadata),t.Pipe=p.makeDecorator(l.PipeMetadata),t.Input=p.makePropDecorator(l.InputMetadata),t.Output=p.makePropDecorator(l.OutputMetadata),t.HostBinding=p.makePropDecorator(l.HostBindingMetadata),t.HostListener=p.makePropDecorator(l.HostListenerMetadata),n.define=i,r.exports}),System.register("angular2/src/platform/dom/events/dom_events",["angular2/src/platform/dom/dom_adapter","angular2/core","angular2/src/platform/dom/events/event_manager"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/platform/dom/dom_adapter"),l=e("angular2/core"),u=e("angular2/src/platform/dom/events/event_manager"),p=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,r){var n=this.manager.getZone(),i=function(e){return n.run(function(){return r(e)})};return this.manager.getZone().runOutsideAngular(function(){return c.DOM.onAndCancel(e,t,i)})},t.prototype.addGlobalEventListener=function(e,t,r){var n=c.DOM.getGlobalEventTarget(e),i=this.manager.getZone(),o=function(e){return i.run(function(){return r(e)})};return this.manager.getZone().runOutsideAngular(function(){return c.DOM.onAndCancel(n,t,o)})},t=a([l.Injectable(),s("design:paramtypes",[])],t)}(u.EventManagerPlugin);return t.DomEventsPlugin=p,n.define=i,r.exports}),System.register("angular2/src/core/zone/ng_zone",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/facade/async","angular2/src/core/profile/profile"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/collection"),a=e("angular2/src/facade/lang"),s=e("angular2/src/facade/async"),c=e("angular2/src/core/profile/profile"),l=function(){function e(e,t){this.error=e,this.stackTrace=t}return e}();t.NgZoneError=l;var u=function(){function e(e){var t=e.enableLongStackTrace;this._runScope=c.wtfCreateScope("NgZone#run()"),this._microtaskScope=c.wtfCreateScope("NgZone#microtask()"),this._pendingMicrotasks=0,this._hasExecutedCodeInInnerZone=!1,this._nestedRun=0,this._inVmTurnDone=!1,this._pendingTimeouts=[],a.global.zone?(this._disabled=!1,this._mountZone=a.global.zone,this._innerZone=this._createInnerZone(this._mountZone,t)):(this._disabled=!0,this._mountZone=null),this._onTurnStartEvents=new s.EventEmitter(!1),this._onTurnDoneEvents=new s.EventEmitter(!1),this._onEventDoneEvents=new s.EventEmitter(!1),this._onErrorEvents=new s.EventEmitter(!1)}return e.prototype.overrideOnTurnStart=function(e){this._onTurnStart=a.normalizeBlank(e)},Object.defineProperty(e.prototype,"onTurnStart",{get:function(){return this._onTurnStartEvents},enumerable:!0,configurable:!0}),e.prototype._notifyOnTurnStart=function(e){var t=this;e.call(this._innerZone,function(){t._onTurnStartEvents.emit(null)})},e.prototype.overrideOnTurnDone=function(e){this._onTurnDone=a.normalizeBlank(e)},Object.defineProperty(e.prototype,"onTurnDone",{get:function(){return this._onTurnDoneEvents},enumerable:!0,configurable:!0}),e.prototype._notifyOnTurnDone=function(e){var t=this;e.call(this._innerZone,function(){t._onTurnDoneEvents.emit(null)})},e.prototype.overrideOnEventDone=function(e,t){var r=this;void 0===t&&(t=!1);var n=a.normalizeBlank(e);t?this._onEventDone=function(){r._pendingTimeouts.length||n()}:this._onEventDone=n},Object.defineProperty(e.prototype,"onEventDone",{get:function(){return this._onEventDoneEvents},enumerable:!0,configurable:!0}),e.prototype._notifyOnEventDone=function(){var e=this;this.runOutsideAngular(function(){e._onEventDoneEvents.emit(null)})},Object.defineProperty(e.prototype,"hasPendingMicrotasks",{get:function(){return this._pendingMicrotasks>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPendingTimers",{get:function(){return this._pendingTimeouts.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPendingAsyncTasks",{get:function(){return this.hasPendingMicrotasks||this.hasPendingTimers},enumerable:!0,configurable:!0}),e.prototype.overrideOnErrorHandler=function(e){this._onErrorHandler=a.normalizeBlank(e)},Object.defineProperty(e.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),e.prototype.run=function(e){if(this._disabled)return e();var t=this._runScope();try{return this._innerZone.run(e)}finally{c.wtfLeave(t)}},e.prototype.runOutsideAngular=function(e){return this._disabled?e():this._mountZone.run(e)},e.prototype._createInnerZone=function(e,t){var r,n=this._microtaskScope,i=this;return r=t?o.StringMapWrapper.merge(a.global.Zone.longStackTraceZone,{onError:function(e){i._notifyOnError(this,e)}}):{onError:function(e){i._notifyOnError(this,e)}},e.fork(r).fork({$run:function(e){return function(){try{return i._nestedRun++,i._hasExecutedCodeInInnerZone||(i._hasExecutedCodeInInnerZone=!0,i._notifyOnTurnStart(e),i._onTurnStart&&e.call(i._innerZone,i._onTurnStart)),e.apply(this,arguments)}finally{if(i._nestedRun--,0==i._pendingMicrotasks&&0==i._nestedRun&&!this._inVmTurnDone){if(i._hasExecutedCodeInInnerZone)try{this._inVmTurnDone=!0,i._notifyOnTurnDone(e),i._onTurnDone&&e.call(i._innerZone,i._onTurnDone)}finally{this._inVmTurnDone=!1,i._hasExecutedCodeInInnerZone=!1}0===i._pendingMicrotasks&&(i._notifyOnEventDone(),a.isPresent(i._onEventDone)&&i.runOutsideAngular(i._onEventDone))}}}},$scheduleMicrotask:function(e){return function(t){i._pendingMicrotasks++;var r=function(){var e=n();try{t()}finally{i._pendingMicrotasks--,c.wtfLeave(e)}};e.call(this,r)}},$setTimeout:function(e){return function(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var s,c=function(){t(),o.ListWrapper.remove(i._pendingTimeouts,s)};return s=e.call(this,c,r,n),i._pendingTimeouts.push(s),s}},$clearTimeout:function(e){return function(t){e.call(this,t),o.ListWrapper.remove(i._pendingTimeouts,t)}},_innerZone:!0})},e.prototype._notifyOnError=function(e,t){if(!a.isPresent(this._onErrorHandler)&&!s.ObservableWrapper.hasSubscribers(this._onErrorEvents))throw console.log("## _notifyOnError ##"),console.log(t.stack),t;for(var r=[a.normalizeBlank(t.stack)];e&&e.constructedAtException;)r.push(e.constructedAtException.get()),e=e.parent;s.ObservableWrapper.hasSubscribers(this._onErrorEvents)&&s.ObservableWrapper.callEmit(this._onErrorEvents,new l(t,r)),a.isPresent(this._onErrorHandler)&&this._onErrorHandler(t,r)},e}();return t.NgZone=u,n.define=i,r.exports}),System.register("angular2/src/platform/dom/events/event_manager",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/core/di","angular2/src/core/zone/ng_zone","angular2/src/facade/collection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},c=e("angular2/src/facade/lang"),l=e("angular2/src/facade/exceptions"),u=e("angular2/src/core/di"),p=e("angular2/src/core/zone/ng_zone"),d=e("angular2/src/facade/collection");t.EVENT_MANAGER_PLUGINS=c.CONST_EXPR(new u.OpaqueToken("EventManagerPlugins"));var f=function(){function e(e,t){var r=this;this._zone=t,e.forEach(function(e){return e.manager=r}),this._plugins=d.ListWrapper.reversed(e)}return e.prototype.addEventListener=function(e,t,r){var n=this._findPluginFor(t);return n.addEventListener(e,t,r)},e.prototype.addGlobalEventListener=function(e,t,r){var n=this._findPluginFor(t);return n.addGlobalEventListener(e,t,r)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){for(var t=this._plugins,r=0;r<t.length;r++){var n=t[r];if(n.supports(e))return n}throw new l.BaseException("No event manager plugin found for event "+e)},e=o([u.Injectable(),s(0,u.Inject(t.EVENT_MANAGER_PLUGINS)),a("design:paramtypes",[Array,p.NgZone])],e)}();t.EventManager=f;var h=function(){function e(){}return e.prototype.supports=function(e){return!1},e.prototype.addEventListener=function(e,t,r){throw"not implemented"},e.prototype.addGlobalEventListener=function(e,t,r){throw"not implemented"},e}();return t.EventManagerPlugin=h,n.define=i,r.exports}),System.register("angular2/src/platform/dom/dom_renderer",["angular2/src/core/di","angular2/src/animate/animation_builder","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/platform/dom/shared_styles_host","angular2/src/platform/dom/events/event_manager","angular2/src/platform/dom/dom_tokens","angular2/src/core/metadata","angular2/src/platform/dom/dom_adapter","angular2/src/platform/dom/util"],!0,function(e,t,r){function n(e,t){var r=E.DOM.parentElement(e);if(t.length>0&&y.isPresent(r)){var n=E.DOM.nextSibling(e);if(y.isPresent(n))for(var i=0;i<t.length;i++)E.DOM.insertBefore(n,t[i]);else for(var i=0;i<t.length;i++)E.DOM.appendChild(r,t[i])}}function i(e,t){for(var r=0;r<t.length;r++)E.DOM.appendChild(e,t[r])}function o(e){return function(t){var r=e(t);r===!1&&E.DOM.preventDefault(t)}}function a(e){return y.StringWrapper.replaceAll(t.CONTENT_ATTR,I,e)}function s(e){return y.StringWrapper.replaceAll(t.HOST_ATTR,I,e)}function c(e,t,r){for(var n=0;n<t.length;n++){var i=t[n];y.isArray(i)?c(e,i,r):(i=y.StringWrapper.replaceAll(i,I,e),r.push(i))}return r}function l(e){if("@"!=e[0])return[null,e];var t=y.RegExpWrapper.firstMatch(k,e);return[t[1],t[2]]}var u=System.global,p=u.define;u.define=void 0;var d=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},f=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},h=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},g=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},m=e("angular2/src/core/di"),v=e("angular2/src/animate/animation_builder"),y=e("angular2/src/facade/lang"),_=e("angular2/src/facade/exceptions"),b=e("angular2/src/platform/dom/shared_styles_host"),C=e("angular2/src/platform/dom/events/event_manager"),w=e("angular2/src/platform/dom/dom_tokens"),P=e("angular2/src/core/metadata"),E=e("angular2/src/platform/dom/dom_adapter"),S=e("angular2/src/platform/dom/util"),R=y.CONST_EXPR({xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}),x="template bindings={}",O=/^template bindings=(.*)$/g,D=function(){function e(e,t,r,n){this.document=e,this.eventManager=t,this.sharedStylesHost=r,this.animate=n,this._registeredComponents=new Map}return e.prototype.renderComponent=function(e){var t=this._registeredComponents.get(e.id);return y.isBlank(t)&&(t=new T(this,e),this._registeredComponents.set(e.id,t)),t},e}();t.DomRootRenderer=D;var A=function(e){function t(t,r,n,i){e.call(this,t,r,n,i)}return d(t,e),t=f([m.Injectable(),g(0,m.Inject(w.DOCUMENT)),h("design:paramtypes",[Object,C.EventManager,b.DomSharedStylesHost,v.AnimationBuilder])],t)}(D);t.DomRootRenderer_=A;var T=function(){function e(e,t){this._rootRenderer=e,this.componentProto=t,this._styles=c(t.id,t.styles,[]),t.encapsulation!==P.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===P.ViewEncapsulation.Emulated?(this._contentAttr=a(t.id),this._hostAttr=s(t.id)):(this._contentAttr=null,this._hostAttr=null)}return e.prototype.renderComponent=function(e){return this._rootRenderer.renderComponent(e)},e.prototype.selectRootElement=function(e){var t=E.DOM.querySelector(this._rootRenderer.document,e);if(y.isBlank(t))throw new _.BaseException('The selector "'+e+'" did not match any elements');return E.DOM.clearNodes(t),t},e.prototype.createElement=function(e,t){var r=l(t),n=y.isPresent(r[0])?E.DOM.createElementNS(R[r[0]],r[1]):E.DOM.createElement(r[1]);return y.isPresent(this._contentAttr)&&E.DOM.setAttribute(n,this._contentAttr,""),y.isPresent(e)&&E.DOM.appendChild(e,n),n},e.prototype.createViewRoot=function(e){var t;if(this.componentProto.encapsulation===P.ViewEncapsulation.Native){t=E.DOM.createShadowRoot(e),this._rootRenderer.sharedStylesHost.addHost(t);for(var r=0;r<this._styles.length;r++)E.DOM.appendChild(t,E.DOM.createStyleElement(this._styles[r]))}else y.isPresent(this._hostAttr)&&E.DOM.setAttribute(e,this._hostAttr,""),t=e;return t},e.prototype.createTemplateAnchor=function(e){var t=E.DOM.createComment(x);return y.isPresent(e)&&E.DOM.appendChild(e,t),t},e.prototype.createText=function(e,t){var r=E.DOM.createTextNode(t);return y.isPresent(e)&&E.DOM.appendChild(e,r),r},e.prototype.projectNodes=function(e,t){y.isBlank(e)||i(e,t)},e.prototype.attachViewAfter=function(e,t){n(e,t);for(var r=0;r<t.length;r++)this.animateNodeEnter(t[r])},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var r=e[t];E.DOM.remove(r),this.animateNodeLeave(r)}},e.prototype.destroyView=function(e,t){this.componentProto.encapsulation===P.ViewEncapsulation.Native&&y.isPresent(e)&&this._rootRenderer.sharedStylesHost.removeHost(E.DOM.getShadowRoot(e))},e.prototype.listen=function(e,t,r){return this._rootRenderer.eventManager.addEventListener(e,t,o(r))},e.prototype.listenGlobal=function(e,t,r){return this._rootRenderer.eventManager.addGlobalEventListener(e,t,o(r))},e.prototype.setElementProperty=function(e,t,r){E.DOM.setProperty(e,t,r)},e.prototype.setElementAttribute=function(e,t,r){var n,i=l(t);y.isPresent(i[0])&&(t=i[0]+":"+i[1],n=R[i[0]]),y.isPresent(r)?y.isPresent(n)?E.DOM.setAttributeNS(e,n,t,r):E.DOM.setAttribute(e,t,r):y.isPresent(n)?E.DOM.removeAttributeNS(e,n,i[1]):E.DOM.removeAttribute(e,t)},e.prototype.setBindingDebugInfo=function(e,t,r){var n=S.camelCaseToDashCase(t);if(E.DOM.isCommentNode(e)){var i=y.RegExpWrapper.firstMatch(O,y.StringWrapper.replaceAll(E.DOM.getText(e),/\n/g,"")),o=y.Json.parse(i[1]);o[n]=r,E.DOM.setText(e,y.StringWrapper.replace(x,"{}",y.Json.stringify(o)))}else this.setElementAttribute(e,t,r)},e.prototype.setElementDebugInfo=function(e,t){},e.prototype.setElementClass=function(e,t,r){r?E.DOM.addClass(e,t):E.DOM.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,r){y.isPresent(r)?E.DOM.setStyle(e,t,y.stringify(r)):E.DOM.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,r){E.DOM.invoke(e,t,r)},e.prototype.setText=function(e,t){E.DOM.setText(e,t)},e.prototype.animateNodeEnter=function(e){E.DOM.isElementNode(e)&&E.DOM.hasClass(e,"ng-animate")&&(E.DOM.addClass(e,"ng-enter"),this._rootRenderer.animate.css().addAnimationClass("ng-enter-active").start(e).onComplete(function(){E.DOM.removeClass(e,"ng-enter")}))},e.prototype.animateNodeLeave=function(e){E.DOM.isElementNode(e)&&E.DOM.hasClass(e,"ng-animate")?(E.DOM.addClass(e,"ng-leave"),this._rootRenderer.animate.css().addAnimationClass("ng-leave-active").start(e).onComplete(function(){E.DOM.removeClass(e,"ng-leave"),E.DOM.remove(e)})):E.DOM.remove(e)},e}();t.DomRenderer=T;var I=/%COMP%/g;t.COMPONENT_VARIABLE="%COMP%",t.HOST_ATTR="_nghost-"+t.COMPONENT_VARIABLE,t.CONTENT_ATTR="_ngcontent-"+t.COMPONENT_VARIABLE;var k=/^@([^:]+):(.+)/g;return u.define=p,r.exports}),System.register("angular2/platform/common_dom",["angular2/src/platform/dom/dom_adapter","angular2/src/platform/dom/dom_renderer","angular2/src/platform/dom/dom_tokens","angular2/src/platform/dom/shared_styles_host","angular2/src/platform/dom/events/dom_events","angular2/src/platform/dom/events/event_manager","angular2/src/platform/dom/debug/by","angular2/src/platform/dom/debug/ng_probe"],!0,function(e,t,r){function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/platform/dom/dom_adapter");t.DOM=a.DOM,t.setRootDomAdapter=a.setRootDomAdapter,t.DomAdapter=a.DomAdapter;var s=e("angular2/src/platform/dom/dom_renderer");t.DomRenderer=s.DomRenderer;var c=e("angular2/src/platform/dom/dom_tokens");t.DOCUMENT=c.DOCUMENT;var l=e("angular2/src/platform/dom/shared_styles_host");t.SharedStylesHost=l.SharedStylesHost,t.DomSharedStylesHost=l.DomSharedStylesHost;var u=e("angular2/src/platform/dom/events/dom_events");t.DomEventsPlugin=u.DomEventsPlugin;var p=e("angular2/src/platform/dom/events/event_manager");return t.EVENT_MANAGER_PLUGINS=p.EVENT_MANAGER_PLUGINS,t.EventManager=p.EventManager,t.EventManagerPlugin=p.EventManagerPlugin,n(e("angular2/src/platform/dom/debug/by")),n(e("angular2/src/platform/dom/debug/ng_probe")),i.define=o,r.exports}),System.register("angular2/src/common/pipes/invalid_pipe_argument_exception",["angular2/src/facade/lang","angular2/src/facade/exceptions"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/facade/lang"),s=e("angular2/src/facade/exceptions"),c=function(e){function t(t,r){e.call(this,"Invalid argument '"+r+"' for pipe '"+a.stringify(t)+"'")}return o(t,e),t}(s.BaseException);return t.InvalidPipeArgumentException=c,n.define=i,r.exports}),System.register("angular2/src/facade/intl",[],!0,function(e,t,r){function n(e){return 2==e?"2-digit":"numeric"}function i(e){return 4>e?"short":"long"}function o(e){for(var t,r={},o=0;o<e.length;){for(t=o;t<e.length&&e[t]==e[o];)t++;var a=t-o;switch(e[o]){case"G":r.era=i(a);break;case"y":r.year=n(a);break;case"M":a>=3?r.month=i(a):r.month=n(a);break;case"d":r.day=n(a);break;case"E":r.weekday=i(a);break;case"j":r.hour=n(a);break;case"h":r.hour=n(a),r.hour12=!0;break;case"H":r.hour=n(a),r.hour12=!1;break;case"m":r.minute=n(a);break;case"s":r.second=n(a);break;case"z":r.timeZoneName="long";break;case"Z":r.timeZoneName="short"}o=t}return r}var a=System.global,s=a.define;a.define=void 0,function(e){e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency"}(t.NumberFormatStyle||(t.NumberFormatStyle={}));var c=t.NumberFormatStyle,l=function(){function e(){}return e.format=function(e,t,r,n){var i=void 0===n?{}:n,o=i.minimumIntegerDigits,a=void 0===o?1:o,s=i.minimumFractionDigits,l=void 0===s?0:s,u=i.maximumFractionDigits,p=void 0===u?3:u,d=i.currency,f=i.currencyAsSymbol,h=void 0===f?!1:f,g={minimumIntegerDigits:a,minimumFractionDigits:l,maximumFractionDigits:p};return g.style=c[r].toLowerCase(),r==c.Currency&&(g.currency=d,g.currencyDisplay=h?"symbol":"code"),new Intl.NumberFormat(t,g).format(e)},e}();t.NumberFormatter=l;var u=new Map,p=function(){function e(){}return e.format=function(e,t,r){var n=t+r;if(u.has(n))return u.get(n).format(e);var i=new Intl.DateTimeFormat(t,o(r));return u.set(n,i),i.format(e)},e}();return t.DateFormatter=p,a.define=s,r.exports}),System.register("angular2/src/common/pipes/json_pipe",["angular2/src/facade/lang","angular2/core"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/core"),l=function(){ function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t=null),s.Json.stringify(e)},e=o([s.CONST(),c.Pipe({name:"json",pure:!1}),c.Injectable(),a("design:paramtypes",[])],e)}();return t.JsonPipe=l,n.define=i,r.exports}),System.register("angular2/src/common/pipes/slice_pipe",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/core","angular2/src/common/pipes/invalid_pipe_argument_exception"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/src/facade/exceptions"),l=e("angular2/src/facade/collection"),u=e("angular2/core"),p=e("angular2/src/common/pipes/invalid_pipe_argument_exception"),d=function(){function e(){}return e.prototype.transform=function(t,r){if(void 0===r&&(r=null),s.isBlank(r)||0==r.length)throw new c.BaseException("Slice pipe requires one argument");if(!this.supports(t))throw new p.InvalidPipeArgumentException(e,t);if(s.isBlank(t))return t;var n=r[0],i=r.length>1?r[1]:null;return s.isString(t)?s.StringWrapper.slice(t,n,i):l.ListWrapper.slice(t,n,i)},e.prototype.supports=function(e){return s.isString(e)||s.isArray(e)},e=o([u.Pipe({name:"slice",pure:!1}),u.Injectable(),a("design:paramtypes",[])],e)}();return t.SlicePipe=d,n.define=i,r.exports}),System.register("angular2/src/common/pipes/lowercase_pipe",["angular2/src/facade/lang","angular2/core","angular2/src/common/pipes/invalid_pipe_argument_exception"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/core"),l=e("angular2/src/common/pipes/invalid_pipe_argument_exception"),u=function(){function e(){}return e.prototype.transform=function(t,r){if(void 0===r&&(r=null),s.isBlank(t))return t;if(!s.isString(t))throw new l.InvalidPipeArgumentException(e,t);return t.toLowerCase()},e=o([s.CONST(),c.Pipe({name:"lowercase"}),c.Injectable(),a("design:paramtypes",[])],e)}();return t.LowerCasePipe=u,n.define=i,r.exports}),System.register("angular2/src/common/pipes/number_pipe",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/intl","angular2/core","angular2/src/facade/collection","angular2/src/common/pipes/invalid_pipe_argument_exception"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/facade/lang"),l=e("angular2/src/facade/exceptions"),u=e("angular2/src/facade/intl"),p=e("angular2/core"),d=e("angular2/src/facade/collection"),f=e("angular2/src/common/pipes/invalid_pipe_argument_exception"),h="en-US",g=c.RegExpWrapper.create("^(\\d+)?\\.((\\d+)(\\-(\\d+))?)?$"),m=function(){function e(){}return e._format=function(t,r,n,i,o){if(void 0===i&&(i=null),void 0===o&&(o=!1),c.isBlank(t))return null;if(!c.isNumber(t))throw new f.InvalidPipeArgumentException(e,t);var a=1,s=0,p=3;if(c.isPresent(n)){var d=c.RegExpWrapper.firstMatch(g,n);if(c.isBlank(d))throw new l.BaseException(n+" is not a valid digit info for number pipes");c.isPresent(d[1])&&(a=c.NumberWrapper.parseIntAutoRadix(d[1])),c.isPresent(d[3])&&(s=c.NumberWrapper.parseIntAutoRadix(d[3])),c.isPresent(d[5])&&(p=c.NumberWrapper.parseIntAutoRadix(d[5]))}return u.NumberFormatter.format(t,h,r,{minimumIntegerDigits:a,minimumFractionDigits:s,maximumFractionDigits:p,currency:i,currencyAsSymbol:o})},e=a([c.CONST(),p.Injectable(),s("design:paramtypes",[])],e)}();t.NumberPipe=m;var v=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.transform=function(e,t){var r=d.ListWrapper.first(t);return m._format(e,u.NumberFormatStyle.Decimal,r)},t=a([c.CONST(),p.Pipe({name:"number"}),p.Injectable(),s("design:paramtypes",[])],t)}(m);t.DecimalPipe=v;var y=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.transform=function(e,t){var r=d.ListWrapper.first(t);return m._format(e,u.NumberFormatStyle.Percent,r)},t=a([c.CONST(),p.Pipe({name:"percent"}),p.Injectable(),s("design:paramtypes",[])],t)}(m);t.PercentPipe=y;var _=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.transform=function(e,t){var r=c.isPresent(t)&&t.length>0?t[0]:"USD",n=c.isPresent(t)&&t.length>1?t[1]:!1,i=c.isPresent(t)&&t.length>2?t[2]:null;return m._format(e,u.NumberFormatStyle.Currency,i,r,n)},t=a([c.CONST(),p.Pipe({name:"currency"}),p.Injectable(),s("design:paramtypes",[])],t)}(m);return t.CurrencyPipe=_,n.define=i,r.exports}),System.register("angular2/src/common/pipes/uppercase_pipe",["angular2/src/facade/lang","angular2/core","angular2/src/common/pipes/invalid_pipe_argument_exception"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/core"),l=e("angular2/src/common/pipes/invalid_pipe_argument_exception"),u=function(){function e(){}return e.prototype.transform=function(t,r){if(void 0===r&&(r=null),s.isBlank(t))return t;if(!s.isString(t))throw new l.InvalidPipeArgumentException(e,t);return t.toUpperCase()},e=o([s.CONST(),c.Pipe({name:"uppercase"}),c.Injectable(),a("design:paramtypes",[])],e)}();return t.UpperCasePipe=u,n.define=i,r.exports}),System.register("angular2/src/common/pipes/replace_pipe",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/core","angular2/src/common/pipes/invalid_pipe_argument_exception"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/src/facade/exceptions"),l=e("angular2/core"),u=e("angular2/src/common/pipes/invalid_pipe_argument_exception"),p=function(){function e(){}return e.prototype.transform=function(t,r){if(s.isBlank(r)||2!==r.length)throw new c.BaseException("ReplacePipe requires two arguments");if(s.isBlank(t))return t;if(!this._supportedInput(t))throw new u.InvalidPipeArgumentException(e,t);var n=t.toString(),i=r[0],o=r[1];if(!this._supportedPattern(i))throw new u.InvalidPipeArgumentException(e,i);if(!this._supportedReplacement(o))throw new u.InvalidPipeArgumentException(e,o);if(s.isFunction(o)){var a=s.isString(i)?s.RegExpWrapper.create(i):i;return s.StringWrapper.replaceAllMapped(n,a,o)}return i instanceof RegExp?s.StringWrapper.replaceAll(n,i,o):s.StringWrapper.replace(n,i,o)},e.prototype._supportedInput=function(e){return s.isString(e)||s.isNumber(e)},e.prototype._supportedPattern=function(e){return s.isString(e)||e instanceof RegExp},e.prototype._supportedReplacement=function(e){return s.isString(e)||s.isFunction(e)},e=o([l.Pipe({name:"replace"}),l.Injectable(),a("design:paramtypes",[])],e)}();return t.ReplacePipe=p,n.define=i,r.exports}),System.register("angular2/src/common/pipes/i18n_plural_pipe",["angular2/src/facade/lang","angular2/core","angular2/src/common/pipes/invalid_pipe_argument_exception"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/core"),l=e("angular2/src/common/pipes/invalid_pipe_argument_exception"),u=s.RegExpWrapper.create("#"),p=function(){function e(){}return e.prototype.transform=function(t,r){void 0===r&&(r=null);var n,i,o=r[0];if(!s.isStringMap(o))throw new l.InvalidPipeArgumentException(e,o);return n=0===t||1===t?"="+t:"other",i=s.isPresent(t)?t.toString():"",s.StringWrapper.replaceAll(o[n],u,i)},e=o([s.CONST(),c.Pipe({name:"i18nPlural",pure:!0}),c.Injectable(),a("design:paramtypes",[])],e)}();return t.I18nPluralPipe=p,n.define=i,r.exports}),System.register("angular2/src/common/pipes/i18n_select_pipe",["angular2/src/facade/lang","angular2/src/facade/collection","angular2/core","angular2/src/common/pipes/invalid_pipe_argument_exception"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/src/facade/collection"),l=e("angular2/core"),u=e("angular2/src/common/pipes/invalid_pipe_argument_exception"),p=function(){function e(){}return e.prototype.transform=function(t,r){void 0===r&&(r=null);var n=r[0];if(!s.isStringMap(n))throw new u.InvalidPipeArgumentException(e,n);return c.StringMapWrapper.contains(n,t)?n[t]:n.other},e=o([s.CONST(),l.Pipe({name:"i18nSelect",pure:!0}),l.Injectable(),a("design:paramtypes",[])],e)}();return t.I18nSelectPipe=p,n.define=i,r.exports}),System.register("angular2/src/common/pipes/common_pipes",["angular2/src/common/pipes/async_pipe","angular2/src/common/pipes/uppercase_pipe","angular2/src/common/pipes/lowercase_pipe","angular2/src/common/pipes/json_pipe","angular2/src/common/pipes/slice_pipe","angular2/src/common/pipes/date_pipe","angular2/src/common/pipes/number_pipe","angular2/src/common/pipes/replace_pipe","angular2/src/common/pipes/i18n_plural_pipe","angular2/src/common/pipes/i18n_select_pipe","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/common/pipes/async_pipe"),a=e("angular2/src/common/pipes/uppercase_pipe"),s=e("angular2/src/common/pipes/lowercase_pipe"),c=e("angular2/src/common/pipes/json_pipe"),l=e("angular2/src/common/pipes/slice_pipe"),u=e("angular2/src/common/pipes/date_pipe"),p=e("angular2/src/common/pipes/number_pipe"),d=e("angular2/src/common/pipes/replace_pipe"),f=e("angular2/src/common/pipes/i18n_plural_pipe"),h=e("angular2/src/common/pipes/i18n_select_pipe"),g=e("angular2/src/facade/lang");return t.COMMON_PIPES=g.CONST_EXPR([o.AsyncPipe,a.UpperCasePipe,s.LowerCasePipe,c.JsonPipe,l.SlicePipe,p.DecimalPipe,p.PercentPipe,p.CurrencyPipe,u.DatePipe,d.ReplacePipe,f.I18nPluralPipe,h.I18nSelectPipe]),n.define=i,r.exports}),System.register("angular2/src/common/directives/ng_class",["angular2/src/facade/lang","angular2/core","angular2/src/facade/collection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/core"),l=e("angular2/src/facade/collection"),u=function(){function e(e,t,r,n){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(e.prototype,"initialClasses",{set:function(e){this._applyInitialClasses(!0),this._initialClasses=s.isPresent(e)&&s.isString(e)?e.split(" "):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawClass",{set:function(e){this._cleanupClasses(this._rawClass),s.isString(e)&&(e=e.split(" ")),this._rawClass=e,this._iterableDiffer=null,this._keyValueDiffer=null,s.isPresent(e)&&(l.isListLikeIterable(e)?this._iterableDiffer=this._iterableDiffers.find(e).create(null):this._keyValueDiffer=this._keyValueDiffers.find(e).create(null))},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(s.isPresent(this._iterableDiffer)){var e=this._iterableDiffer.diff(this._rawClass);s.isPresent(e)&&this._applyIterableChanges(e)}if(s.isPresent(this._keyValueDiffer)){var e=this._keyValueDiffer.diff(this._rawClass);s.isPresent(e)&&this._applyKeyValueChanges(e)}},e.prototype.ngOnDestroy=function(){this._cleanupClasses(this._rawClass)},e.prototype._cleanupClasses=function(e){this._applyClasses(e,!0),this._applyInitialClasses(!1)},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){t._toggleClass(e.item,!1)})},e.prototype._applyInitialClasses=function(e){var t=this;this._initialClasses.forEach(function(r){return t._toggleClass(r,!e)})},e.prototype._applyClasses=function(e,t){var r=this;s.isPresent(e)&&(s.isArray(e)?e.forEach(function(e){return r._toggleClass(e,!t)}):e instanceof Set?e.forEach(function(e){return r._toggleClass(e,!t)}):l.StringMapWrapper.forEach(e,function(e,n){s.isPresent(e)&&r._toggleClass(n,!t)}))},e.prototype._toggleClass=function(e,t){if(e=e.trim(),e.length>0)if(e.indexOf(" ")>-1)for(var r=e.split(/\s+/g),n=0,i=r.length;i>n;n++)this._renderer.setElementClass(this._ngEl.nativeElement,r[n],t);else this._renderer.setElementClass(this._ngEl.nativeElement,e,t)},e=o([c.Directive({selector:"[ngClass]",inputs:["rawClass: ngClass","initialClasses: class"]}),a("design:paramtypes",[c.IterableDiffers,c.KeyValueDiffers,c.ElementRef,c.Renderer])],e)}();return t.NgClass=u,n.define=i,r.exports}),System.register("angular2/src/common/directives/ng_for",["angular2/core","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/core"),c=e("angular2/src/facade/lang"),l=function(){function e(e,t,r,n){this._viewContainer=e,this._templateRef=t,this._iterableDiffers=r,this._cdr=n}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,c.isBlank(this._differ)&&c.isPresent(e)&&(this._differ=this._iterableDiffers.find(e).create(this._cdr,this._ngForTrackBy))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){c.isPresent(e)&&(this._templateRef=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{set:function(e){this._ngForTrackBy=e},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(c.isPresent(this._differ)){var e=this._differ.diff(this._ngForOf);c.isPresent(e)&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,r=[];e.forEachRemovedItem(function(e){return r.push(new u(e,null))}),e.forEachMovedItem(function(e){return r.push(new u(e,null))});var n=this._bulkRemove(r);e.forEachAddedItem(function(e){return n.push(new u(e,null))}),this._bulkInsert(n);for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var i=0,o=this._viewContainer.length;o>i;i++){var a=this._viewContainer.get(i);a.setLocal("last",i===o-1)}e.forEachIdentityChange(function(e){var r=t._viewContainer.get(e.currentIndex);r.setLocal("$implicit",e.item)})},e.prototype._perViewChange=function(e,t){e.setLocal("$implicit",t.item),e.setLocal("index",t.currentIndex),e.setLocal("even",t.currentIndex%2==0),e.setLocal("odd",t.currentIndex%2==1)},e.prototype._bulkRemove=function(e){e.sort(function(e,t){return e.record.previousIndex-t.record.previousIndex});for(var t=[],r=e.length-1;r>=0;r--){var n=e[r];c.isPresent(n.record.currentIndex)?(n.view=this._viewContainer.detach(n.record.previousIndex),t.push(n)):this._viewContainer.remove(n.record.previousIndex)}return t},e.prototype._bulkInsert=function(e){e.sort(function(e,t){return e.record.currentIndex-t.record.currentIndex});for(var t=0;t<e.length;t++){var r=e[t];c.isPresent(r.view)?this._viewContainer.insert(r.view,r.record.currentIndex):r.view=this._viewContainer.createEmbeddedView(this._templateRef,r.record.currentIndex)}return e},e=o([s.Directive({selector:"[ngFor][ngForOf]",inputs:["ngForTrackBy","ngForOf","ngForTemplate"]}),a("design:paramtypes",[s.ViewContainerRef,s.TemplateRef,s.IterableDiffers,s.ChangeDetectorRef])],e)}();t.NgFor=l;var u=function(){function e(e,t){this.record=e,this.view=t}return e}();return n.define=i,r.exports}),System.register("angular2/src/common/directives/ng_if",["angular2/core","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/core"),c=e("angular2/src/facade/lang"),l=function(){function e(e,t){this._viewContainer=e,this._templateRef=t,this._prevCondition=null}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){!e||!c.isBlank(this._prevCondition)&&this._prevCondition?e||!c.isBlank(this._prevCondition)&&!this._prevCondition||(this._prevCondition=!1,this._viewContainer.clear()):(this._prevCondition=!0,this._viewContainer.createEmbeddedView(this._templateRef))},enumerable:!0,configurable:!0}),e=o([s.Directive({selector:"[ngIf]",inputs:["ngIf"]}),a("design:paramtypes",[s.ViewContainerRef,s.TemplateRef])],e)}();return t.NgIf=l,n.define=i,r.exports}),System.register("angular2/src/common/directives/ng_style",["angular2/core","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/core"),c=e("angular2/src/facade/lang"),l=function(){function e(e,t,r){this._differs=e,this._ngEl=t,this._renderer=r}return Object.defineProperty(e.prototype,"rawStyle",{set:function(e){this._rawStyle=e,c.isBlank(this._differ)&&c.isPresent(e)&&(this._differ=this._differs.find(this._rawStyle).create(null))},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(c.isPresent(this._differ)){var e=this._differ.diff(this._rawStyle);c.isPresent(e)&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this;e.forEachAddedItem(function(e){t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){t._setStyle(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){t._setStyle(e.key,null)})},e.prototype._setStyle=function(e,t){this._renderer.setElementStyle(this._ngEl.nativeElement,e,t)},e=o([s.Directive({selector:"[ngStyle]",inputs:["rawStyle: ngStyle"]}),a("design:paramtypes",[s.KeyValueDiffers,s.ElementRef,s.Renderer])],e)}();return t.NgStyle=l,n.define=i,r.exports}),System.register("angular2/src/common/directives/ng_switch",["angular2/core","angular2/src/facade/lang","angular2/src/facade/collection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},c=e("angular2/core"),l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/collection"),p=l.CONST_EXPR(new Object),d=function(){function e(e,t){this._viewContainerRef=e,this._templateRef=t}return e.prototype.create=function(){this._viewContainerRef.createEmbeddedView(this._templateRef)},e.prototype.destroy=function(){this._viewContainerRef.clear()},e}();t.SwitchView=d;var f=function(){function e(){this._useDefault=!1,this._valueViews=new u.Map,this._activeViews=[]}return Object.defineProperty(e.prototype,"ngSwitch",{set:function(e){this._emptyAllActiveViews(),this._useDefault=!1;var t=this._valueViews.get(e);l.isBlank(t)&&(this._useDefault=!0,t=l.normalizeBlank(this._valueViews.get(p))),this._activateViews(t),this._switchValue=e},enumerable:!0,configurable:!0}),e.prototype._onWhenValueChanged=function(e,t,r){this._deregisterView(e,r),this._registerView(t,r),e===this._switchValue?(r.destroy(),u.ListWrapper.remove(this._activeViews,r)):t===this._switchValue&&(this._useDefault&&(this._useDefault=!1,this._emptyAllActiveViews()),r.create(),this._activeViews.push(r)),0!==this._activeViews.length||this._useDefault||(this._useDefault=!0,this._activateViews(this._valueViews.get(p)))},e.prototype._emptyAllActiveViews=function(){for(var e=this._activeViews,t=0;t<e.length;t++)e[t].destroy();this._activeViews=[]},e.prototype._activateViews=function(e){if(l.isPresent(e)){for(var t=0;t<e.length;t++)e[t].create();this._activeViews=e}},e.prototype._registerView=function(e,t){var r=this._valueViews.get(e);l.isBlank(r)&&(r=[],this._valueViews.set(e,r)),r.push(t)},e.prototype._deregisterView=function(e,t){if(e!==p){var r=this._valueViews.get(e);1==r.length?this._valueViews["delete"](e):u.ListWrapper.remove(r,t)}},e=o([c.Directive({selector:"[ngSwitch]",inputs:["ngSwitch"]}),a("design:paramtypes",[])],e)}();t.NgSwitch=f;var h=function(){function e(e,t,r){this._value=p,this._switch=r,this._view=new d(e,t)}return Object.defineProperty(e.prototype,"ngSwitchWhen",{set:function(e){this._switch._onWhenValueChanged(this._value,e,this._view),this._value=e},enumerable:!0,configurable:!0}),e=o([c.Directive({selector:"[ngSwitchWhen]",inputs:["ngSwitchWhen"]}),s(2,c.Host()),a("design:paramtypes",[c.ViewContainerRef,c.TemplateRef,f])],e)}();t.NgSwitchWhen=h;var g=function(){function e(e,t,r){r._registerView(p,new d(e,t))}return e=o([c.Directive({selector:"[ngSwitchDefault]"}),s(2,c.Host()),a("design:paramtypes",[c.ViewContainerRef,c.TemplateRef,f])],e)}();return t.NgSwitchDefault=g,n.define=i,r.exports}),System.register("angular2/src/common/directives/observable_list_diff",[],!0,function(e,t,r){var n=System.global,i=n.define;return n.define=void 0,n.define=i,r.exports}),System.register("angular2/src/common/directives/core_directives",["angular2/src/facade/lang","angular2/src/common/directives/ng_class","angular2/src/common/directives/ng_for","angular2/src/common/directives/ng_if","angular2/src/common/directives/ng_style","angular2/src/common/directives/ng_switch"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/common/directives/ng_class"),s=e("angular2/src/common/directives/ng_for"),c=e("angular2/src/common/directives/ng_if"),l=e("angular2/src/common/directives/ng_style"),u=e("angular2/src/common/directives/ng_switch");return t.CORE_DIRECTIVES=o.CONST_EXPR([a.NgClass,s.NgFor,c.NgIf,l.NgStyle,u.NgSwitch,u.NgSwitchWhen,u.NgSwitchDefault]),n.define=i,r.exports}),System.register("angular2/src/common/forms/model",["angular2/src/facade/lang","angular2/src/facade/async","angular2/src/facade/promise","angular2/src/facade/collection"],!0,function(e,t,r){function n(e){return e instanceof f}function i(e,t){return l.isBlank(t)?null:(t instanceof Array||(t=t.split("/")),t instanceof Array&&d.ListWrapper.isEmpty(t)?null:t.reduce(function(e,t){if(e instanceof g)return l.isPresent(e.controls[t])?e.controls[t]:null;if(e instanceof m){var r=t;return l.isPresent(e.at(r))?e.at(r):null}return null},e))}function o(e){return p.PromiseWrapper.isPromise(e)?u.ObservableWrapper.fromPromise(e):e}var a=System.global,s=a.define;a.define=void 0;var c=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/async"),p=e("angular2/src/facade/promise"),d=e("angular2/src/facade/collection");t.VALID="VALID",t.INVALID="INVALID",t.PENDING="PENDING",t.isControl=n;var f=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._pristine=!0,this._touched=!1}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this._status===t.VALID},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this._status==t.PENDING},enumerable:!0,configurable:!0}),e.prototype.markAsTouched=function(){this._touched=!0},e.prototype.markAsDirty=function(e){var t=(void 0===e?{}:e).onlySelf;t=l.normalizeBool(t),this._pristine=!1,l.isPresent(this._parent)&&!t&&this._parent.markAsDirty({onlySelf:t})},e.prototype.markAsPending=function(e){var r=(void 0===e?{}:e).onlySelf;r=l.normalizeBool(r),this._status=t.PENDING,l.isPresent(this._parent)&&!r&&this._parent.markAsPending({onlySelf:r})},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){var r=void 0===e?{}:e,n=r.onlySelf,i=r.emitEvent;n=l.normalizeBool(n),i=l.isPresent(i)?i:!0,this._updateValue(),this._errors=this._runValidator(),this._status=this._calculateStatus(),(this._status==t.VALID||this._status==t.PENDING)&&this._runAsyncValidator(i),i&&(u.ObservableWrapper.callEmit(this._valueChanges,this._value),u.ObservableWrapper.callEmit(this._statusChanges,this._status)),l.isPresent(this._parent)&&!n&&this._parent.updateValueAndValidity({onlySelf:n,emitEvent:i})},e.prototype._runValidator=function(){return l.isPresent(this.validator)?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var r=this;if(l.isPresent(this.asyncValidator)){this._status=t.PENDING,this._cancelExistingSubscription();var n=o(this.asyncValidator(this));this._asyncValidationSubscription=u.ObservableWrapper.subscribe(n,function(t){return r.setErrors(t,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){l.isPresent(this._asyncValidationSubscription)&&u.ObservableWrapper.dispose(this._asyncValidationSubscription)},e.prototype.setErrors=function(e,t){var r=(void 0===t?{}:t).emitEvent;r=l.isPresent(r)?r:!0,this._errors=e,this._status=this._calculateStatus(),r&&u.ObservableWrapper.callEmit(this._statusChanges,this._status),l.isPresent(this._parent)&&this._parent._updateControlsErrors()},e.prototype.find=function(e){return i(this,e)},e.prototype.getError=function(e,t){void 0===t&&(t=null);var r=l.isPresent(t)&&!d.ListWrapper.isEmpty(t)?this.find(t):this;return l.isPresent(r)&&l.isPresent(r._errors)?d.StringMapWrapper.get(r._errors,e):null},e.prototype.hasError=function(e,t){return void 0===t&&(t=null),l.isPresent(this.getError(e,t))},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;l.isPresent(e._parent);)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(){this._status=this._calculateStatus(),l.isPresent(this._parent)&&this._parent._updateControlsErrors()},e.prototype._initObservables=function(){this._valueChanges=new u.EventEmitter,this._statusChanges=new u.EventEmitter},e.prototype._calculateStatus=function(){return l.isPresent(this._errors)?t.INVALID:this._anyControlsHaveStatus(t.PENDING)?t.PENDING:this._anyControlsHaveStatus(t.INVALID)?t.INVALID:t.VALID; },e}();t.AbstractControl=f;var h=function(e){function t(t,r,n){void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),e.call(this,r,n),this._value=t,this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}return c(t,e),t.prototype.updateValue=function(e,t){var r=void 0===t?{}:t,n=r.onlySelf,i=r.emitEvent,o=r.emitModelToViewChange;o=l.isPresent(o)?o:!0,this._value=e,l.isPresent(this._onChange)&&o&&this._onChange(this._value),this.updateValueAndValidity({onlySelf:n,emitEvent:i})},t.prototype._updateValue=function(){},t.prototype._anyControlsHaveStatus=function(e){return!1},t.prototype.registerOnChange=function(e){this._onChange=e},t}(f);t.Control=h;var g=function(e){function t(t,r,n,i){void 0===r&&(r=null),void 0===n&&(n=null),void 0===i&&(i=null),e.call(this,n,i),this.controls=t,this._optionals=l.isPresent(r)?r:{},this._initObservables(),this._setParentForControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return c(t,e),t.prototype.addControl=function(e,t){this.controls[e]=t,t.setParent(this)},t.prototype.removeControl=function(e){d.StringMapWrapper["delete"](this.controls,e)},t.prototype.include=function(e){d.StringMapWrapper.set(this._optionals,e,!0),this.updateValueAndValidity()},t.prototype.exclude=function(e){d.StringMapWrapper.set(this._optionals,e,!1),this.updateValueAndValidity()},t.prototype.contains=function(e){var t=d.StringMapWrapper.contains(this.controls,e);return t&&this._included(e)},t.prototype._setParentForControls=function(){var e=this;d.StringMapWrapper.forEach(this.controls,function(t,r){t.setParent(e)})},t.prototype._updateValue=function(){this._value=this._reduceValue()},t.prototype._anyControlsHaveStatus=function(e){var t=this,r=!1;return d.StringMapWrapper.forEach(this.controls,function(n,i){r=r||t.contains(i)&&n.status==e}),r},t.prototype._reduceValue=function(){return this._reduceChildren({},function(e,t,r){return e[r]=t.value,e})},t.prototype._reduceChildren=function(e,t){var r=this,n=e;return d.StringMapWrapper.forEach(this.controls,function(e,i){r._included(i)&&(n=t(n,e,i))}),n},t.prototype._included=function(e){var t=d.StringMapWrapper.contains(this._optionals,e);return!t||d.StringMapWrapper.get(this._optionals,e)},t}(f);t.ControlGroup=g;var m=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),e.call(this,r,n),this.controls=t,this._initObservables(),this._setParentForControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return c(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),e.setParent(this),this.updateValueAndValidity()},t.prototype.insert=function(e,t){d.ListWrapper.insert(this.controls,e,t),t.setParent(this),this.updateValueAndValidity()},t.prototype.removeAt=function(e){d.ListWrapper.removeAt(this.controls,e),this.updateValueAndValidity()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype._updateValue=function(){this._value=this.controls.map(function(e){return e.value})},t.prototype._anyControlsHaveStatus=function(e){return this.controls.some(function(t){return t.status==e})},t.prototype._setParentForControls=function(){var e=this;this.controls.forEach(function(t){t.setParent(e)})},t}(f);return t.ControlArray=m,a.define=s,r.exports}),System.register("angular2/src/common/forms/directives/abstract_control_directive",["angular2/src/facade/lang","angular2/src/facade/exceptions"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/facade/exceptions"),s=function(){function e(){}return Object.defineProperty(e.prototype,"control",{get:function(){return a.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return o.isPresent(this.control)?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return o.isPresent(this.control)?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return o.isPresent(this.control)?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return o.isPresent(this.control)?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return o.isPresent(this.control)?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return o.isPresent(this.control)?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return o.isPresent(this.control)?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}();return t.AbstractControlDirective=s,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/control_container",["angular2/src/common/forms/directives/abstract_control_directive"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/common/forms/directives/abstract_control_directive"),s=function(e){function t(){e.apply(this,arguments)}return o(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(a.AbstractControlDirective);return t.ControlContainer=s,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/ng_control",["angular2/src/common/forms/directives/abstract_control_directive","angular2/src/facade/exceptions"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/common/forms/directives/abstract_control_directive"),s=e("angular2/src/facade/exceptions"),c=function(e){function t(){e.apply(this,arguments),this.name=null,this.valueAccessor=null}return o(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return s.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return s.unimplemented()},enumerable:!0,configurable:!0}),t}(a.AbstractControlDirective);return t.NgControl=c,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/control_value_accessor",["angular2/core","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/core"),a=e("angular2/src/facade/lang");return t.NG_VALUE_ACCESSOR=a.CONST_EXPR(new o.OpaqueToken("NgValueAccessor")),n.define=i,r.exports}),System.register("angular2/src/common/forms/validators",["angular2/src/facade/lang","angular2/src/facade/promise","angular2/src/facade/async","angular2/src/facade/collection","angular2/core"],!0,function(e,t,r){function n(e){return l.PromiseWrapper.isPromise(e)?e:u.ObservableWrapper.toPromise(e)}function i(e,t){return t.map(function(t){return t(e)})}function o(e){var t=e.reduce(function(e,t){return c.isPresent(t)?p.StringMapWrapper.merge(e,t):e},{});return p.StringMapWrapper.isEmpty(t)?null:t}var a=System.global,s=a.define;a.define=void 0;var c=e("angular2/src/facade/lang"),l=e("angular2/src/facade/promise"),u=e("angular2/src/facade/async"),p=e("angular2/src/facade/collection"),d=e("angular2/core");t.NG_VALIDATORS=c.CONST_EXPR(new d.OpaqueToken("NgValidators")),t.NG_ASYNC_VALIDATORS=c.CONST_EXPR(new d.OpaqueToken("NgAsyncValidators"));var f=function(){function e(){}return e.required=function(e){return c.isBlank(e.value)||c.isString(e.value)&&""==e.value?{required:!0}:null},e.minLength=function(t){return function(r){if(c.isPresent(e.required(r)))return null;var n=r.value;return n.length<t?{minlength:{requiredLength:t,actualLength:n.length}}:null}},e.maxLength=function(t){return function(r){if(c.isPresent(e.required(r)))return null;var n=r.value;return n.length>t?{maxlength:{requiredLength:t,actualLength:n.length}}:null}},e.pattern=function(t){return function(r){if(c.isPresent(e.required(r)))return null;var n=new RegExp("^"+t+"$"),i=r.value;return n.test(i)?null:{pattern:{requiredPattern:"^"+t+"$",actualValue:i}}}},e.nullValidator=function(e){return null},e.compose=function(e){if(c.isBlank(e))return null;var t=e.filter(c.isPresent);return 0==t.length?null:function(e){return o(i(e,t))}},e.composeAsync=function(e){if(c.isBlank(e))return null;var t=e.filter(c.isPresent);return 0==t.length?null:function(e){var r=i(e,t).map(n);return l.PromiseWrapper.all(r).then(o)}},e}();return t.Validators=f,a.define=s,r.exports}),System.register("angular2/src/common/forms/directives/default_value_accessor",["angular2/core","angular2/src/common/forms/directives/control_value_accessor","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/core"),c=e("angular2/src/common/forms/directives/control_value_accessor"),l=e("angular2/src/facade/lang"),u=l.CONST_EXPR(new s.Provider(c.NG_VALUE_ACCESSOR,{useExisting:s.forwardRef(function(){return p}),multi:!0})),p=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=l.isBlank(e)?"":e;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e=o([s.Directive({selector:"input:not([type=checkbox])[ngControl],textarea[ngControl],input:not([type=checkbox])[ngFormControl],textarea[ngFormControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},bindings:[u]}),a("design:paramtypes",[s.Renderer,s.ElementRef])],e)}();return t.DefaultValueAccessor=p,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/number_value_accessor",["angular2/core","angular2/src/common/forms/directives/control_value_accessor","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/core"),c=e("angular2/src/common/forms/directives/control_value_accessor"),l=e("angular2/src/facade/lang"),u=l.CONST_EXPR(new s.Provider(c.NG_VALUE_ACCESSOR,{useExisting:s.forwardRef(function(){return p}),multi:!0})),p=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(l.NumberWrapper.parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e=o([s.Directive({selector:"input[type=number][ngControl],input[type=number][ngFormControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},bindings:[u]}),a("design:paramtypes",[s.Renderer,s.ElementRef])],e)}();return t.NumberValueAccessor=p,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/checkbox_value_accessor",["angular2/core","angular2/src/common/forms/directives/control_value_accessor","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/core"),c=e("angular2/src/common/forms/directives/control_value_accessor"),l=e("angular2/src/facade/lang"),u=l.CONST_EXPR(new s.Provider(c.NG_VALUE_ACCESSOR,{useExisting:s.forwardRef(function(){return p}),multi:!0})),p=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e=o([s.Directive({selector:"input[type=checkbox][ngControl],input[type=checkbox][ngFormControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[u]}),a("design:paramtypes",[s.Renderer,s.ElementRef])],e)}();return t.CheckboxControlValueAccessor=p,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/select_control_value_accessor",["angular2/core","angular2/src/facade/async","angular2/src/common/forms/directives/control_value_accessor","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},c=e("angular2/core"),l=e("angular2/src/facade/async"),u=e("angular2/src/common/forms/directives/control_value_accessor"),p=e("angular2/src/facade/lang"),d=p.CONST_EXPR(new c.Provider(u.NG_VALUE_ACCESSOR,{useExisting:c.forwardRef(function(){return h}),multi:!0})),f=function(){function e(){}return e=o([c.Directive({selector:"option"}),a("design:paramtypes",[])],e)}();t.NgSelectOption=f;var h=function(){function e(e,t,r){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){},this._updateValueWhenListOfOptionsChanges(r)}return e.prototype.writeValue=function(e){this.value=e,this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype._updateValueWhenListOfOptionsChanges=function(e){var t=this;l.ObservableWrapper.subscribe(e.changes,function(e){return t.writeValue(t.value)})},e=o([c.Directive({selector:"select[ngControl],select[ngFormControl],select[ngModel]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},bindings:[d]}),s(2,c.Query(f,{descendants:!0})),a("design:paramtypes",[c.Renderer,c.ElementRef,c.QueryList])],e)}();return t.SelectControlValueAccessor=h,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/radio_control_value_accessor",["angular2/core","angular2/src/common/forms/directives/control_value_accessor","angular2/src/common/forms/directives/ng_control","angular2/src/facade/lang","angular2/src/facade/collection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/core"),c=e("angular2/src/common/forms/directives/control_value_accessor"),l=e("angular2/src/common/forms/directives/ng_control"),u=e("angular2/src/facade/lang"),p=e("angular2/src/facade/collection"),d=u.CONST_EXPR(new s.Provider(c.NG_VALUE_ACCESSOR,{useExisting:s.forwardRef(function(){return g}),multi:!0})),f=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=-1,r=0;r<this._accessors.length;++r)this._accessors[r][1]===e&&(t=r);p.ListWrapper.removeAt(this._accessors,t)},e.prototype.select=function(e){this._accessors.forEach(function(t){t[0].control.root===e._control.control.root&&t[1]!==e&&t[1].fireUncheck()})},e=o([s.Injectable(),a("design:paramtypes",[])],e)}();t.RadioControlRegistry=f;var h=function(){function e(e,t){this.checked=e,this.value=t}return e}();t.RadioButtonState=h;var g=function(){function e(e,t,r,n){this._renderer=e,this._elementRef=t,this._registry=r,this._injector=n,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(l.NgControl),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e,u.isPresent(e)&&e.checked&&this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",!0)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(new h(!0,t._state.value)),t._registry.select(t)}},e.prototype.fireUncheck=function(){this._fn(new h(!1,this._state.value))},e.prototype.registerOnTouched=function(e){this.onTouched=e},o([s.Input(),a("design:type",String)],e.prototype,"name",void 0),e=o([s.Directive({selector:"input[type=radio][ngControl],input[type=radio][ngFormControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[d]}),a("design:paramtypes",[s.Renderer,s.ElementRef,f,s.Injector])],e)}();return t.RadioControlValueAccessor=g,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/normalize_validator",[],!0,function(e,t,r){function n(e){return void 0!==e.validate?function(t){return e.validate(t)}:e}var i=System.global,o=i.define;return i.define=void 0,t.normalizeValidator=n,i.define=o,r.exports}),System.register("angular2/src/common/forms/directives/ng_form_control",["angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/facade/async","angular2/core","angular2/src/common/forms/directives/ng_control","angular2/src/common/forms/validators","angular2/src/common/forms/directives/control_value_accessor","angular2/src/common/forms/directives/shared"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/collection"),p=e("angular2/src/facade/async"),d=e("angular2/core"),f=e("angular2/src/common/forms/directives/ng_control"),h=e("angular2/src/common/forms/validators"),g=e("angular2/src/common/forms/directives/control_value_accessor"),m=e("angular2/src/common/forms/directives/shared"),v=l.CONST_EXPR(new d.Provider(f.NgControl,{useExisting:d.forwardRef(function(){return y})})),y=function(e){function t(t,r,n){e.call(this),this._validators=t,this._asyncValidators=r,this.update=new p.EventEmitter,this.valueAccessor=m.selectValueAccessor(this,n)}return o(t,e),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(m.setUpControl(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})),m.isPropertyUpdated(e,this.viewModel)&&(this.form.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return m.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return m.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,p.ObservableWrapper.callEmit(this.update,e)},t.prototype._isControlChanged=function(e){return u.StringMapWrapper.contains(e,"form")},t=a([d.Directive({selector:"[ngFormControl]",bindings:[v],inputs:["form: ngFormControl","model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}),c(0,d.Optional()),c(0,d.Self()),c(0,d.Inject(h.NG_VALIDATORS)),c(1,d.Optional()),c(1,d.Self()),c(1,d.Inject(h.NG_ASYNC_VALIDATORS)),c(2,d.Optional()),c(2,d.Self()),c(2,d.Inject(g.NG_VALUE_ACCESSOR)),s("design:paramtypes",[Array,Array,Array])],t)}(f.NgControl);return t.NgFormControl=y,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/ng_model",["angular2/src/facade/lang","angular2/src/facade/async","angular2/core","angular2/src/common/forms/directives/control_value_accessor","angular2/src/common/forms/directives/ng_control","angular2/src/common/forms/model","angular2/src/common/forms/validators","angular2/src/common/forms/directives/shared"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/async"),p=e("angular2/core"),d=e("angular2/src/common/forms/directives/control_value_accessor"),f=e("angular2/src/common/forms/directives/ng_control"),h=e("angular2/src/common/forms/model"),g=e("angular2/src/common/forms/validators"),m=e("angular2/src/common/forms/directives/shared"),v=l.CONST_EXPR(new p.Provider(f.NgControl,{useExisting:p.forwardRef(function(){return y})})),y=function(e){function t(t,r,n){e.call(this),this._validators=t,this._asyncValidators=r,this._control=new h.Control,this._added=!1,this.update=new u.EventEmitter,this.valueAccessor=m.selectValueAccessor(this,n)}return o(t,e),t.prototype.ngOnChanges=function(e){this._added||(m.setUpControl(this._control,this),this._control.updateValueAndValidity({emitEvent:!1}),this._added=!0),m.isPropertyUpdated(e,this.viewModel)&&(this._control.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return m.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return m.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,u.ObservableWrapper.callEmit(this.update,e)},t=a([p.Directive({selector:"[ngModel]:not([ngControl]):not([ngFormControl])",bindings:[v],inputs:["model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}),c(0,p.Optional()),c(0,p.Self()),c(0,p.Inject(g.NG_VALIDATORS)),c(1,p.Optional()),c(1,p.Self()),c(1,p.Inject(g.NG_ASYNC_VALIDATORS)),c(2,p.Optional()),c(2,p.Self()),c(2,p.Inject(d.NG_VALUE_ACCESSOR)),s("design:paramtypes",[Array,Array,Array])],t)}(f.NgControl);return t.NgModel=y,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/ng_control_group",["angular2/core","angular2/src/facade/lang","angular2/src/common/forms/directives/control_container","angular2/src/common/forms/directives/shared","angular2/src/common/forms/validators"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},l=e("angular2/core"),u=e("angular2/src/facade/lang"),p=e("angular2/src/common/forms/directives/control_container"),d=e("angular2/src/common/forms/directives/shared"),f=e("angular2/src/common/forms/validators"),h=u.CONST_EXPR(new l.Provider(p.ControlContainer,{useExisting:l.forwardRef(function(){return g})})),g=function(e){function t(t,r,n){e.call(this),this._validators=r,this._asyncValidators=n,this._parent=t}return o(t,e),t.prototype.ngOnInit=function(){this.formDirective.addControlGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective.removeControlGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getControlGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return d.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return d.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return d.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),t=a([l.Directive({selector:"[ngControlGroup]",providers:[h],inputs:["name: ngControlGroup"],exportAs:"ngForm"}),c(0,l.Host()),c(0,l.SkipSelf()),c(1,l.Optional()),c(1,l.Self()),c(1,l.Inject(f.NG_VALIDATORS)),c(2,l.Optional()),c(2,l.Self()),c(2,l.Inject(f.NG_ASYNC_VALIDATORS)),s("design:paramtypes",[p.ControlContainer,Array,Array])],t)}(p.ControlContainer);return t.NgControlGroup=g,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/ng_form_model",["angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/facade/async","angular2/core","angular2/src/common/forms/directives/control_container","angular2/src/common/forms/directives/shared","angular2/src/common/forms/validators"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/collection"),p=e("angular2/src/facade/async"),d=e("angular2/core"),f=e("angular2/src/common/forms/directives/control_container"),h=e("angular2/src/common/forms/directives/shared"),g=e("angular2/src/common/forms/validators"),m=l.CONST_EXPR(new d.Provider(f.ControlContainer,{useExisting:d.forwardRef(function(){return v})})),v=function(e){function t(t,r){e.call(this),this._validators=t,this._asyncValidators=r,this.form=null,this.directives=[],this.ngSubmit=new p.EventEmitter}return o(t,e),t.prototype.ngOnChanges=function(e){if(u.StringMapWrapper.contains(e,"form")){var t=h.composeValidators(this._validators);this.form.validator=g.Validators.compose([this.form.validator,t]);var r=h.composeAsyncValidators(this._asyncValidators);this.form.asyncValidator=g.Validators.composeAsync([this.form.asyncValidator,r]),this.form.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}this._updateDomValue()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.find(e.path);h.setUpControl(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e)},t.prototype.getControl=function(e){return this.form.find(e.path)},t.prototype.removeControl=function(e){u.ListWrapper.remove(this.directives,e)},t.prototype.addControlGroup=function(e){var t=this.form.find(e.path);h.setUpControlGroup(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeControlGroup=function(e){},t.prototype.getControlGroup=function(e){return this.form.find(e.path)},t.prototype.updateModel=function(e,t){var r=this.form.find(e.path);r.updateValue(t)},t.prototype.onSubmit=function(){return p.ObservableWrapper.callEmit(this.ngSubmit,null),!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var r=e.form.find(t.path);t.valueAccessor.writeValue(r.value); })},t=a([d.Directive({selector:"[ngFormModel]",bindings:[m],inputs:["form: ngFormModel"],host:{"(submit)":"onSubmit()"},outputs:["ngSubmit"],exportAs:"ngForm"}),c(0,d.Optional()),c(0,d.Self()),c(0,d.Inject(g.NG_VALIDATORS)),c(1,d.Optional()),c(1,d.Self()),c(1,d.Inject(g.NG_ASYNC_VALIDATORS)),s("design:paramtypes",[Array,Array])],t)}(f.ControlContainer);return t.NgFormModel=v,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/ng_form",["angular2/src/facade/async","angular2/src/facade/collection","angular2/src/facade/lang","angular2/core","angular2/src/common/forms/directives/control_container","angular2/src/common/forms/model","angular2/src/common/forms/directives/shared","angular2/src/common/forms/validators"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},l=e("angular2/src/facade/async"),u=e("angular2/src/facade/collection"),p=e("angular2/src/facade/lang"),d=e("angular2/core"),f=e("angular2/src/common/forms/directives/control_container"),h=e("angular2/src/common/forms/model"),g=e("angular2/src/common/forms/directives/shared"),m=e("angular2/src/common/forms/validators"),v=p.CONST_EXPR(new d.Provider(f.ControlContainer,{useExisting:d.forwardRef(function(){return y})})),y=function(e){function t(t,r){e.call(this),this.ngSubmit=new l.EventEmitter,this.form=new h.ControlGroup({},null,g.composeValidators(t),g.composeAsyncValidators(r))}return o(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;l.PromiseWrapper.scheduleMicrotask(function(){var r=t._findContainer(e.path),n=new h.Control;g.setUpControl(n,e),r.addControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})},t.prototype.getControl=function(e){return this.form.find(e.path)},t.prototype.removeControl=function(e){var t=this;l.PromiseWrapper.scheduleMicrotask(function(){var r=t._findContainer(e.path);p.isPresent(r)&&(r.removeControl(e.name),r.updateValueAndValidity({emitEvent:!1}))})},t.prototype.addControlGroup=function(e){var t=this;l.PromiseWrapper.scheduleMicrotask(function(){var r=t._findContainer(e.path),n=new h.ControlGroup({});g.setUpControlGroup(n,e),r.addControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeControlGroup=function(e){var t=this;l.PromiseWrapper.scheduleMicrotask(function(){var r=t._findContainer(e.path);p.isPresent(r)&&(r.removeControl(e.name),r.updateValueAndValidity({emitEvent:!1}))})},t.prototype.getControlGroup=function(e){return this.form.find(e.path)},t.prototype.updateModel=function(e,t){var r=this;l.PromiseWrapper.scheduleMicrotask(function(){var n=r.form.find(e.path);n.updateValue(t)})},t.prototype.onSubmit=function(){return l.ObservableWrapper.callEmit(this.ngSubmit,null),!1},t.prototype._findContainer=function(e){return e.pop(),u.ListWrapper.isEmpty(e)?this.form:this.form.find(e)},t=a([d.Directive({selector:"form:not([ngNoForm]):not([ngFormModel]),ngForm,[ngForm]",bindings:[v],host:{"(submit)":"onSubmit()"},outputs:["ngSubmit"],exportAs:"ngForm"}),c(0,d.Optional()),c(0,d.Self()),c(0,d.Inject(m.NG_VALIDATORS)),c(1,d.Optional()),c(1,d.Self()),c(1,d.Inject(m.NG_ASYNC_VALIDATORS)),s("design:paramtypes",[Array,Array])],t)}(f.ControlContainer);return t.NgForm=y,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/ng_control_status",["angular2/core","angular2/src/common/forms/directives/ng_control","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},c=e("angular2/core"),l=e("angular2/src/common/forms/directives/ng_control"),u=e("angular2/src/facade/lang"),p=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return u.isPresent(this._cd.control)?this._cd.control.untouched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return u.isPresent(this._cd.control)?this._cd.control.touched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return u.isPresent(this._cd.control)?this._cd.control.pristine:!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return u.isPresent(this._cd.control)?this._cd.control.dirty:!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return u.isPresent(this._cd.control)?this._cd.control.valid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return u.isPresent(this._cd.control)?!this._cd.control.valid:!1},enumerable:!0,configurable:!0}),e=o([c.Directive({selector:"[ngControl],[ngModel],[ngFormControl]",host:{"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid"}}),s(0,c.Self()),a("design:paramtypes",[l.NgControl])],e)}();return t.NgControlStatus=p,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/validators",["angular2/core","angular2/src/facade/lang","angular2/src/common/forms/validators","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},c=e("angular2/core"),l=e("angular2/src/facade/lang"),u=e("angular2/src/common/forms/validators"),p=e("angular2/src/facade/lang"),d=l.CONST_EXPR(new c.Provider(u.NG_VALIDATORS,{useValue:u.Validators.required,multi:!0})),f=function(){function e(){}return e=o([c.Directive({selector:"[required][ngControl],[required][ngFormControl],[required][ngModel]",providers:[d]}),a("design:paramtypes",[])],e)}();t.RequiredValidator=f;var h=l.CONST_EXPR(new c.Provider(u.NG_VALIDATORS,{useExisting:c.forwardRef(function(){return g}),multi:!0})),g=function(){function e(e){this._validator=u.Validators.minLength(p.NumberWrapper.parseInt(e,10))}return e.prototype.validate=function(e){return this._validator(e)},e=o([c.Directive({selector:"[minlength][ngControl],[minlength][ngFormControl],[minlength][ngModel]",providers:[h]}),s(0,c.Attribute("minlength")),a("design:paramtypes",[String])],e)}();t.MinLengthValidator=g;var m=l.CONST_EXPR(new c.Provider(u.NG_VALIDATORS,{useExisting:c.forwardRef(function(){return v}),multi:!0})),v=function(){function e(e){this._validator=u.Validators.maxLength(p.NumberWrapper.parseInt(e,10))}return e.prototype.validate=function(e){return this._validator(e)},e=o([c.Directive({selector:"[maxlength][ngControl],[maxlength][ngFormControl],[maxlength][ngModel]",providers:[m]}),s(0,c.Attribute("maxlength")),a("design:paramtypes",[String])],e)}();t.MaxLengthValidator=v;var y=l.CONST_EXPR(new c.Provider(u.NG_VALIDATORS,{useExisting:c.forwardRef(function(){return _}),multi:!0})),_=function(){function e(e){this._validator=u.Validators.pattern(e)}return e.prototype.validate=function(e){return this._validator(e)},e=o([c.Directive({selector:"[pattern][ngControl],[pattern][ngFormControl],[pattern][ngModel]",providers:[y]}),s(0,c.Attribute("pattern")),a("design:paramtypes",[String])],e)}();return t.PatternValidator=_,n.define=i,r.exports}),System.register("angular2/src/common/forms/form_builder",["angular2/core","angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/common/forms/model"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/core"),c=e("angular2/src/facade/collection"),l=e("angular2/src/facade/lang"),u=e("angular2/src/common/forms/model"),p=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var r=this._reduceControls(e),n=l.isPresent(t)?c.StringMapWrapper.get(t,"optionals"):null,i=l.isPresent(t)?c.StringMapWrapper.get(t,"validator"):null,o=l.isPresent(t)?c.StringMapWrapper.get(t,"asyncValidator"):null;return new u.ControlGroup(r,n,i,o)},e.prototype.control=function(e,t,r){return void 0===t&&(t=null),void 0===r&&(r=null),new u.Control(e,t,r)},e.prototype.array=function(e,t,r){var n=this;void 0===t&&(t=null),void 0===r&&(r=null);var i=e.map(function(e){return n._createControl(e)});return new u.ControlArray(i,t,r)},e.prototype._reduceControls=function(e){var t=this,r={};return c.StringMapWrapper.forEach(e,function(e,n){r[n]=t._createControl(e)}),r},e.prototype._createControl=function(e){if(e instanceof u.Control||e instanceof u.ControlGroup||e instanceof u.ControlArray)return e;if(l.isArray(e)){var t=e[0],r=e.length>1?e[1]:null,n=e.length>2?e[2]:null;return this.control(t,r,n)}return this.control(e)},e=o([s.Injectable(),a("design:paramtypes",[])],e)}();return t.FormBuilder=p,n.define=i,r.exports}),System.register("angular2/src/common/common_directives",["angular2/src/facade/lang","angular2/src/common/forms","angular2/src/common/directives"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/common/forms"),s=e("angular2/src/common/directives");return t.COMMON_DIRECTIVES=o.CONST_EXPR([s.CORE_DIRECTIVES,a.FORM_DIRECTIVES]),n.define=i,r.exports}),System.register("angular2/src/platform/dom/events/key_events",["angular2/src/platform/dom/dom_adapter","angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/platform/dom/events/event_manager","angular2/src/core/di"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/platform/dom/dom_adapter"),l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/collection"),p=e("angular2/src/platform/dom/events/event_manager"),d=e("angular2/src/core/di"),f=["alt","control","meta","shift"],h={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},g=function(e){function t(){e.call(this)}return o(t,e),t.prototype.supports=function(e){return l.isPresent(t.parseEventName(e))},t.prototype.addEventListener=function(e,r,n){var i=t.parseEventName(r),o=t.eventCallback(e,u.StringMapWrapper.get(i,"fullKey"),n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return c.DOM.onAndCancel(e,u.StringMapWrapper.get(i,"domEventName"),o)})},t.parseEventName=function(e){var r=e.toLowerCase().split("."),n=r.shift();if(0===r.length||!l.StringWrapper.equals(n,"keydown")&&!l.StringWrapper.equals(n,"keyup"))return null;var i=t._normalizeKey(r.pop()),o="";if(f.forEach(function(e){u.ListWrapper.contains(r,e)&&(u.ListWrapper.remove(r,e),o+=e+".")}),o+=i,0!=r.length||0===i.length)return null;var a=u.StringMapWrapper.create();return u.StringMapWrapper.set(a,"domEventName",n),u.StringMapWrapper.set(a,"fullKey",o),a},t.getEventFullKey=function(e){var t="",r=c.DOM.getEventKey(e);return r=r.toLowerCase(),l.StringWrapper.equals(r," ")?r="space":l.StringWrapper.equals(r,".")&&(r="dot"),f.forEach(function(n){if(n!=r){var i=u.StringMapWrapper.get(h,n);i(e)&&(t+=n+".")}}),t+=r},t.eventCallback=function(e,r,n,i){return function(e){l.StringWrapper.equals(t.getEventFullKey(e),r)&&i.run(function(){return n(e)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t=a([d.Injectable(),s("design:paramtypes",[])],t)}(p.EventManagerPlugin);return t.KeyEventsPlugin=g,n.define=i,r.exports}),System.register("angular2/src/platform/dom/events/hammer_common",["angular2/src/platform/dom/events/event_manager","angular2/src/facade/collection"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/platform/dom/events/event_manager"),s=e("angular2/src/facade/collection"),c={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},l=function(e){function t(){e.call(this)}return o(t,e),t.prototype.supports=function(e){return e=e.toLowerCase(),s.StringMapWrapper.contains(c,e)},t}(a.EventManagerPlugin);return t.HammerGesturesPluginCommon=l,n.define=i,r.exports}),System.register("angular2/src/compiler/xhr",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=function(){function e(){}return e.prototype.get=function(e){return null},e}();return t.XHR=o,n.define=i,r.exports}),System.register("angular2/src/platform/browser/testability",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/platform/dom/dom_adapter","angular2/core"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/collection"),a=e("angular2/src/facade/lang"),s=e("angular2/src/platform/dom/dom_adapter"),c=e("angular2/core"),l=function(){function e(e){this._testability=e}return e.prototype.isStable=function(){return this._testability.isStable()},e.prototype.whenStable=function(e){this._testability.whenStable(e)},e.prototype.findBindings=function(e,t,r){return this.findProviders(e,t,r)},e.prototype.findProviders=function(e,t,r){return this._testability.findBindings(e,t,r)},e}(),u=function(){function e(){}return e.init=function(){c.setTestabilityGetter(new e)},e.prototype.addToWindow=function(e){a.global.getAngularTestability=function(t,r){void 0===r&&(r=!0);var n=e.findTestabilityInTree(t,r);if(null==n)throw new Error("Could not find testability for element.");return new l(n)},a.global.getAllAngularTestabilities=function(){var t=e.getAllTestabilities();return t.map(function(e){return new l(e)})},a.global.getAllAngularRootElements=function(){return e.getAllRootElements()};var t=function(e){var t=a.global.getAllAngularTestabilities(),r=t.length,n=!1,i=function(t){n=n||t,r--,0==r&&e(n)};t.forEach(function(e){e.whenStable(i)})};a.global.frameworkStabilizers||(a.global.frameworkStabilizers=o.ListWrapper.createGrowableSize(0)),a.global.frameworkStabilizers.push(t)},e.prototype.findTestabilityInTree=function(e,t,r){if(null==t)return null;var n=e.getTestability(t);return a.isPresent(n)?n:r?s.DOM.isShadowRoot(t)?this.findTestabilityInTree(e,s.DOM.getHost(t),!0):this.findTestabilityInTree(e,s.DOM.parentElement(t),!0):null},e}();return t.BrowserGetTestability=u,n.define=i,r.exports}),System.register("angular2/src/core/profile/wtf_init",[],!0,function(e,t,r){function n(){}var i=System.global,o=i.define;return i.define=void 0,t.wtfInit=n,i.define=o,r.exports}),System.register("angular2/src/platform/browser/title",["angular2/src/platform/dom/dom_adapter"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/platform/dom/dom_adapter"),a=function(){function e(){}return e.prototype.getTitle=function(){return o.DOM.getTitle()},e.prototype.setTitle=function(e){o.DOM.setTitle(e)},e}();return t.Title=a,n.define=i,r.exports}),System.register("angular2/src/facade/browser",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=window;return t.window=o,t.document=window.document,t.location=window.location,t.gc=window.gc?function(){return window.gc()}:function(){return null},t.performance=window.performance?window.performance:null,t.Event=window.Event,t.MouseEvent=window.MouseEvent,t.KeyboardEvent=window.KeyboardEvent,t.EventTarget=window.EventTarget,t.History=window.History,t.Location=window.Location,t.EventListener=window.EventListener,n.define=i,r.exports}),System.register("angular2/src/compiler/url_resolver",["angular2/src/core/di","angular2/src/facade/lang","angular2/src/core/application_tokens","angular2/src/core/di"],!0,function(e,t,r){function n(){return new _}function i(e){var t=a(e);return t&&t[b.Scheme]||""}function o(e,t,r,n,i,o,a){var s=[];return m.isPresent(e)&&s.push(e+":"),m.isPresent(r)&&(s.push("//"),m.isPresent(t)&&s.push(t+"@"),s.push(r),m.isPresent(n)&&s.push(":"+n)),m.isPresent(i)&&s.push(i),m.isPresent(o)&&s.push("?"+o),m.isPresent(a)&&s.push("#"+a),s.join("")}function a(e){return m.RegExpWrapper.firstMatch(C,e)}function s(e){if("/"==e)return"/";for(var t="/"==e[0]?"/":"",r="/"===e[e.length-1]?"/":"",n=e.split("/"),i=[],o=0,a=0;a<n.length;a++){var s=n[a];switch(s){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(s)}}if(""==t){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+r}function c(e){var t=e[b.Path];return t=m.isBlank(t)?"":s(t),e[b.Path]=t,o(e[b.Scheme],e[b.UserInfo],e[b.Domain],e[b.Port],t,e[b.QueryData],e[b.Fragment])}function l(e,t){var r=a(encodeURI(t)),n=a(e);if(m.isPresent(r[b.Scheme]))return c(r);r[b.Scheme]=n[b.Scheme];for(var i=b.Scheme;i<=b.Port;i++)m.isBlank(r[i])&&(r[i]=n[i]);if("/"==r[b.Path][0])return c(r);var o=n[b.Path];m.isBlank(o)&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+r[b.Path],r[b.Path]=o,c(r)}var u=System.global,p=u.define;u.define=void 0;var d=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},f=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},h=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},g=e("angular2/src/core/di"),m=e("angular2/src/facade/lang"),v=e("angular2/src/core/application_tokens"),y=e("angular2/src/core/di");t.createWithoutPackagePrefix=n,t.DEFAULT_PACKAGE_URL_PROVIDER=new y.Provider(v.PACKAGE_ROOT_URL,{useValue:"/"});var _=function(){function e(e){void 0===e&&(e=null),m.isPresent(e)&&(this._packagePrefix=m.StringWrapper.stripRight(e,"/")+"/")}return e.prototype.resolve=function(e,t){var r=t;return m.isPresent(e)&&e.length>0&&(r=l(e,r)),m.isPresent(this._packagePrefix)&&"package"==i(r)&&(r=r.replace("package:",this._packagePrefix)),r},e=d([g.Injectable(),h(0,g.Inject(v.PACKAGE_ROOT_URL)),f("design:paramtypes",[String])],e)}();t.UrlResolver=_,t.getUrlScheme=i;var b,C=m.RegExpWrapper.create("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");return function(e){e[e.Scheme=1]="Scheme",e[e.UserInfo=2]="UserInfo",e[e.Domain=3]="Domain",e[e.Port=4]="Port",e[e.Path=5]="Path",e[e.QueryData=6]="QueryData",e[e.Fragment=7]="Fragment"}(b||(b={})),u.define=p,r.exports}),System.register("angular2/src/compiler/selector",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/facade/exceptions"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/collection"),a=e("angular2/src/facade/lang"),s=e("angular2/src/facade/exceptions"),c="",l=a.RegExpWrapper.create("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)"),u=function(){function e(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return e.parse=function(t){for(var r,n=[],i=function(e,t){t.notSelectors.length>0&&a.isBlank(t.element)&&o.ListWrapper.isEmpty(t.classNames)&&o.ListWrapper.isEmpty(t.attrs)&&(t.element="*"),e.push(t)},c=new e,u=a.RegExpWrapper.matcher(l,t),p=c,d=!1;a.isPresent(r=a.RegExpMatcherWrapper.next(u));){if(a.isPresent(r[1])){if(d)throw new s.BaseException("Nesting :not is not allowed in a selector");d=!0,p=new e,c.notSelectors.push(p)}if(a.isPresent(r[2])&&p.setElement(r[2]),a.isPresent(r[3])&&p.addClassName(r[3]),a.isPresent(r[4])&&p.addAttribute(r[4],r[5]),a.isPresent(r[6])&&(d=!1,p=c),a.isPresent(r[7])){if(d)throw new s.BaseException("Multiple selectors in :not are not supported");i(n,c),c=p=new e}}return i(n,c),n},e.prototype.isElementSelector=function(){return a.isPresent(this.element)&&o.ListWrapper.isEmpty(this.classNames)&&o.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},e.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},e.prototype.getMatchingElementTemplate=function(){for(var e=a.isPresent(this.element)?this.element:"div",t=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",r="",n=0;n<this.attrs.length;n+=2){var i=this.attrs[n],o=""!==this.attrs[n+1]?'="'+this.attrs[n+1]+'"':"";r+=" "+i+o}return"<"+e+t+r+"></"+e+">"},e.prototype.addAttribute=function(e,t){void 0===t&&(t=c),this.attrs.push(e),t=a.isPresent(t)?t.toLowerCase():c,this.attrs.push(t)},e.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},e.prototype.toString=function(){var e="";if(a.isPresent(this.element)&&(e+=this.element),a.isPresent(this.classNames))for(var t=0;t<this.classNames.length;t++)e+="."+this.classNames[t];if(a.isPresent(this.attrs))for(var t=0;t<this.attrs.length;){var r=this.attrs[t++],n=this.attrs[t++];e+="["+r,n.length>0&&(e+="="+n),e+="]"}return this.notSelectors.forEach(function(t){return e+=":not("+t+")"}),e},e}();t.CssSelector=u;var p=function(){function e(){this._elementMap=new o.Map,this._elementPartialMap=new o.Map,this._classMap=new o.Map,this._classPartialMap=new o.Map,this._attrValueMap=new o.Map,this._attrValuePartialMap=new o.Map,this._listContexts=[]}return e.createNotMatcher=function(t){var r=new e;return r.addSelectables(t,null),r},e.prototype.addSelectables=function(e,t){var r=null;e.length>1&&(r=new d(e),this._listContexts.push(r));for(var n=0;n<e.length;n++)this._addSelectable(e[n],t,r)},e.prototype._addSelectable=function(e,t,r){var n=this,i=e.element,s=e.classNames,c=e.attrs,l=new f(e,t,r);if(a.isPresent(i)){var u=0===c.length&&0===s.length;u?this._addTerminal(n._elementMap,i,l):n=this._addPartial(n._elementPartialMap,i)}if(a.isPresent(s))for(var p=0;p<s.length;p++){var u=0===c.length&&p===s.length-1,d=s[p];u?this._addTerminal(n._classMap,d,l):n=this._addPartial(n._classPartialMap,d)}if(a.isPresent(c))for(var p=0;p<c.length;){var u=p===c.length-2,h=c[p++],g=c[p++];if(u){var m=n._attrValueMap,v=m.get(h);a.isBlank(v)&&(v=new o.Map,m.set(h,v)),this._addTerminal(v,g,l)}else{var y=n._attrValuePartialMap,_=y.get(h);a.isBlank(_)&&(_=new o.Map,y.set(h,_)),n=this._addPartial(_,g)}}},e.prototype._addTerminal=function(e,t,r){var n=e.get(t);a.isBlank(n)&&(n=[],e.set(t,n)),n.push(r)},e.prototype._addPartial=function(t,r){var n=t.get(r);return a.isBlank(n)&&(n=new e,t.set(r,n)),n},e.prototype.match=function(e,t){for(var r=!1,n=e.element,i=e.classNames,o=e.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,n,e,t)||r,r=this._matchPartial(this._elementPartialMap,n,e,t)||r,a.isPresent(i))for(var l=0;l<i.length;l++){var u=i[l];r=this._matchTerminal(this._classMap,u,e,t)||r,r=this._matchPartial(this._classPartialMap,u,e,t)||r}if(a.isPresent(o))for(var l=0;l<o.length;){var p=o[l++],d=o[l++],f=this._attrValueMap.get(p);a.StringWrapper.equals(d,c)||(r=this._matchTerminal(f,c,e,t)||r),r=this._matchTerminal(f,d,e,t)||r;var h=this._attrValuePartialMap.get(p);a.StringWrapper.equals(d,c)||(r=this._matchPartial(h,c,e,t)||r),r=this._matchPartial(h,d,e,t)||r}return r},e.prototype._matchTerminal=function(e,t,r,n){if(a.isBlank(e)||a.isBlank(t))return!1;var i=e.get(t),o=e.get("*");if(a.isPresent(o)&&(i=i.concat(o)),a.isBlank(i))return!1;for(var s,c=!1,l=0;l<i.length;l++)s=i[l],c=s.finalize(r,n)||c;return c},e.prototype._matchPartial=function(e,t,r,n){if(a.isBlank(e)||a.isBlank(t))return!1;var i=e.get(t);return a.isBlank(i)?!1:i.match(r,n)},e}();t.SelectorMatcher=p;var d=function(){function e(e){this.selectors=e,this.alreadyMatched=!1}return e}();t.SelectorListContext=d;var f=function(){function e(e,t,r){this.selector=e,this.cbContext=t,this.listContext=r,this.notSelectors=e.notSelectors}return e.prototype.finalize=function(e,t){var r=!0;if(this.notSelectors.length>0&&(a.isBlank(this.listContext)||!this.listContext.alreadyMatched)){var n=p.createNotMatcher(this.notSelectors);r=!n.match(e,null)}return r&&a.isPresent(t)&&(a.isBlank(this.listContext)||!this.listContext.alreadyMatched)&&(a.isPresent(this.listContext)&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),r},e}();return t.SelectorContext=f,n.define=i,r.exports}),System.register("angular2/src/compiler/util",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){return P.StringWrapper.replaceAllMapped(e,E,function(e){return"-"+e[1].toLowerCase()})}function i(e){return P.StringWrapper.replaceAllMapped(e,S,function(e){return e[1].toUpperCase()})}function o(e){return P.isBlank(e)?null:"'"+s(e,R)+"'"}function a(e){return P.isBlank(e)?null:'"'+s(e,x)+'"'}function s(e,t){return P.StringWrapper.replaceAllMapped(e,t,function(e){return"$"==e[0]?P.IS_DART?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":"\\"+e[0]})}function c(e){return P.IS_DART?"const "+e+" = ":"var "+e+" = exports['"+e+"'] = "}function l(e){return P.IS_DART?"const "+e:"new "+e}function u(e,t,r){return void 0===r&&(r=""),P.IS_DART?p(e,r)+" => "+t:p(e,r)+" { return "+t+"; }"}function p(e,t){return void 0===t&&(t=""),P.IS_DART?t+"("+e.join(",")+")":"function "+t+"("+e.join(",")+")"}function d(e){return P.IS_DART?"'${"+e+"}'":e}function f(e,t){var r=P.StringWrapper.split(e.trim(),/\s*:\s*/g);return r.length>1?r:t}function h(e){return e instanceof D?e.expression:P.isString(e)?o(e):P.isBlank(e)?"null":""+e}function g(e){return"["+e.map(h).join(",")+"]"}function m(e){for(var t="([",r=!0,n=P.IS_DART?".addAll":"concat",i=0;i<e.length;i++){var o=e[i];o instanceof D&&o.isArray?(t+="])."+n+"("+o.expression+")."+n+"([",r=!0):(r||(t+=","),r=!1,t+=h(o))}return t+="])"}function v(e){return"{"+e.map(y).join(",")+"}"}function y(e){return h(e[0])+":"+h(e[1])}function _(e,t){for(var r=0;r<e.length;r++)t.push(e[r])}function b(e,t){if(P.isPresent(e))for(var r=0;r<e.length;r++){var n=e[r];P.isArray(n)?b(n,t):t.push(n)}return t}var C=System.global,w=C.define;C.define=void 0;var P=e("angular2/src/facade/lang"),E=/([A-Z])/g,S=/-([a-z])/g,R=/'|\\|\n|\r|\$/g,x=/"|\\|\n|\r|\$/g;t.MODULE_SUFFIX=P.IS_DART?".dart":".js",t.CONST_VAR=P.IS_DART?"const":"var",t.camelCaseToDashCase=n,t.dashCaseToCamelCase=i,t.escapeSingleQuoteString=o,t.escapeDoubleQuoteString=a,t.codeGenExportVariable=c,t.codeGenConstConstructorCall=l,t.codeGenValueFn=u,t.codeGenFnHeader=p,t.codeGenToString=d,t.splitAtColon=f;var O=function(){function e(e){this.statement=e}return e}();t.Statement=O;var D=function(){function e(e,t){void 0===t&&(t=!1),this.expression=e,this.isArray=t}return e}();return t.Expression=D,t.escapeValue=h,t.codeGenArray=g,t.codeGenFlatArray=m,t.codeGenStringMap=v,t.addAll=_,t.flattenArray=b,C.define=w,r.exports}),System.register("angular2/src/core/linker/interfaces",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0,function(e){e[e.OnInit=0]="OnInit",e[e.OnDestroy=1]="OnDestroy",e[e.DoCheck=2]="DoCheck",e[e.OnChanges=3]="OnChanges",e[e.AfterContentInit=4]="AfterContentInit",e[e.AfterContentChecked=5]="AfterContentChecked",e[e.AfterViewInit=6]="AfterViewInit",e[e.AfterViewChecked=7]="AfterViewChecked"}(t.LifecycleHooks||(t.LifecycleHooks={}));var o=t.LifecycleHooks;return t.LIFECYCLE_HOOKS_VALUES=[o.OnInit,o.OnDestroy,o.DoCheck,o.OnChanges,o.AfterContentInit,o.AfterContentChecked,o.AfterViewInit,o.AfterViewChecked],n.define=i,r.exports}),System.register("angular2/src/compiler/template_ast",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e,t,r){void 0===r&&(r=null);var n=[];return t.forEach(function(t){var i=t.visit(e,r);a.isPresent(i)&&n.push(i)}),n}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/facade/lang"),s=function(){function e(e,t,r){this.value=e,this.ngContentIndex=t,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}();t.TextAst=s;var c=function(){function e(e,t,r){this.value=e,this.ngContentIndex=t,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitBoundText(this,t)},e}();t.BoundTextAst=c;var l=function(){function e(e,t,r){this.name=e,this.value=t,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitAttr(this,t)},e}();t.AttrAst=l;var u=function(){function e(e,t,r,n,i){this.name=e,this.type=t,this.value=r,this.unit=n,this.sourceSpan=i}return e.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},e}();t.BoundElementPropertyAst=u;var p=function(){function e(e,t,r,n){this.name=e,this.target=t,this.handler=r,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitEvent(this,t)},Object.defineProperty(e.prototype,"fullName",{get:function(){ return a.isPresent(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),e}();t.BoundEventAst=p;var d=function(){function e(e,t,r){this.name=e,this.value=t,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitVariable(this,t)},e}();t.VariableAst=d;var f=function(){function e(e,t,r,n,i,o,a,s,c){this.name=e,this.attrs=t,this.inputs=r,this.outputs=n,this.exportAsVars=i,this.directives=o,this.children=a,this.ngContentIndex=s,this.sourceSpan=c}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e.prototype.isBound=function(){return this.inputs.length>0||this.outputs.length>0||this.exportAsVars.length>0||this.directives.length>0},e.prototype.getComponent=function(){return this.directives.length>0&&this.directives[0].directive.isComponent?this.directives[0].directive:null},e}();t.ElementAst=f;var h=function(){function e(e,t,r,n,i,o,a){this.attrs=e,this.outputs=t,this.vars=r,this.directives=n,this.children=i,this.ngContentIndex=o,this.sourceSpan=a}return e.prototype.visit=function(e,t){return e.visitEmbeddedTemplate(this,t)},e}();t.EmbeddedTemplateAst=h;var g=function(){function e(e,t,r,n){this.directiveName=e,this.templateName=t,this.value=r,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitDirectiveProperty(this,t)},e}();t.BoundDirectivePropertyAst=g;var m=function(){function e(e,t,r,n,i,o){this.directive=e,this.inputs=t,this.hostProperties=r,this.hostEvents=n,this.exportAsVars=i,this.sourceSpan=o}return e.prototype.visit=function(e,t){return e.visitDirective(this,t)},e}();t.DirectiveAst=m;var v=function(){function e(e,t,r){this.index=e,this.ngContentIndex=t,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitNgContent(this,t)},e}();return t.NgContentAst=v,function(e){e[e.Property=0]="Property",e[e.Attribute=1]="Attribute",e[e.Class=2]="Class",e[e.Style=3]="Style"}(t.PropertyBindingType||(t.PropertyBindingType={})),t.PropertyBindingType,t.templateVisitAll=n,i.define=o,r.exports}),System.register("angular2/src/compiler/source_module",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){return"#MODULE["+e+"]"}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/facade/lang"),s=/#MODULE\[([^\]]*)\]/g;t.moduleRef=n;var c=function(){function e(e,t){this.moduleUrl=e,this.sourceWithModuleRefs=t}return e.getSourceWithoutImports=function(e){return a.StringWrapper.replaceAllMapped(e,s,function(e){return""})},e.prototype.getSourceWithImports=function(){var e=this,t={},r=[],n=a.StringWrapper.replaceAllMapped(this.sourceWithModuleRefs,s,function(n){var i=n[1],o=t[i];return a.isBlank(o)&&(i==e.moduleUrl?o="":(o="import"+r.length,r.push([i,o])),t[i]=o),o.length>0?o+".":""});return new p(n,r)},e}();t.SourceModule=c;var l=function(){function e(e,t){this.declarations=e,this.expression=t}return e}();t.SourceExpression=l;var u=function(){function e(e,t){this.declarations=e,this.expressions=t}return e}();t.SourceExpressions=u;var p=function(){function e(e,t){this.source=e,this.imports=t}return e}();return t.SourceWithImports=p,i.define=o,r.exports}),System.register("angular2/src/compiler/change_definition_factory",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/core/reflection/reflection","angular2/src/core/change_detection/change_detection","angular2/src/compiler/template_ast","angular2/src/core/linker/interfaces"],!0,function(e,t,r){function n(e,t,r,n){var o=[],a=new h(null,o,t);return d.templateVisitAll(a,n),i(o,e,r)}function i(e,t,r){var n=o(e);return e.map(function(e){var i=t.name+"_"+e.viewIndex;return new p.ChangeDetectorDefinition(i,e.strategy,n[e.viewIndex],e.bindingRecords,e.eventRecords,e.directiveRecords,r)})}function o(e){var t=c.ListWrapper.createFixedSize(e.length);return e.forEach(function(e){var r=l.isPresent(e.parent)?t[e.parent.viewIndex]:[];t[e.viewIndex]=r.concat(e.variableNames)}),t}var a=System.global,s=a.define;a.define=void 0;var c=e("angular2/src/facade/collection"),l=e("angular2/src/facade/lang"),u=e("angular2/src/core/reflection/reflection"),p=e("angular2/src/core/change_detection/change_detection"),d=e("angular2/src/compiler/template_ast"),f=e("angular2/src/core/linker/interfaces");t.createChangeDetectorDefinitions=n;var h=function(){function e(e,t,r){this.parent=e,this.allVisitors=t,this.strategy=r,this.nodeCount=0,this.boundElementCount=0,this.variableNames=[],this.bindingRecords=[],this.eventRecords=[],this.directiveRecords=[],this.viewIndex=t.length,t.push(this)}return e.prototype.visitEmbeddedTemplate=function(t,r){this.nodeCount++,this.boundElementCount++,d.templateVisitAll(this,t.outputs);for(var n=0;n<t.directives.length;n++)t.directives[n].visit(this,n);var i=new e(this,this.allVisitors,p.ChangeDetectionStrategy.Default);return d.templateVisitAll(i,t.vars),d.templateVisitAll(i,t.children),null},e.prototype.visitElement=function(e,t){this.nodeCount++,e.isBound()&&this.boundElementCount++,d.templateVisitAll(this,e.inputs,null),d.templateVisitAll(this,e.outputs),d.templateVisitAll(this,e.exportAsVars);for(var r=0;r<e.directives.length;r++)e.directives[r].visit(this,r);return d.templateVisitAll(this,e.children),null},e.prototype.visitNgContent=function(e,t){return null},e.prototype.visitVariable=function(e,t){return this.variableNames.push(e.name),null},e.prototype.visitEvent=function(e,t){var r=l.isPresent(t)?p.BindingRecord.createForHostEvent(e.handler,e.fullName,t):p.BindingRecord.createForEvent(e.handler,e.fullName,this.boundElementCount-1);return this.eventRecords.push(r),null},e.prototype.visitElementProperty=function(e,t){var r,n=this.boundElementCount-1,i=l.isPresent(t)?t.directiveIndex:null;return e.type===d.PropertyBindingType.Property?r=l.isPresent(i)?p.BindingRecord.createForHostProperty(i,e.value,e.name):p.BindingRecord.createForElementProperty(e.value,n,e.name):e.type===d.PropertyBindingType.Attribute?r=l.isPresent(i)?p.BindingRecord.createForHostAttribute(i,e.value,e.name):p.BindingRecord.createForElementAttribute(e.value,n,e.name):e.type===d.PropertyBindingType.Class?r=l.isPresent(i)?p.BindingRecord.createForHostClass(i,e.value,e.name):p.BindingRecord.createForElementClass(e.value,n,e.name):e.type===d.PropertyBindingType.Style&&(r=l.isPresent(i)?p.BindingRecord.createForHostStyle(i,e.value,e.name,e.unit):p.BindingRecord.createForElementStyle(e.value,n,e.name,e.unit)),this.bindingRecords.push(r),null},e.prototype.visitAttr=function(e,t){return null},e.prototype.visitBoundText=function(e,t){var r=this.nodeCount++;return this.bindingRecords.push(p.BindingRecord.createForTextNode(e.value,r)),null},e.prototype.visitText=function(e,t){return this.nodeCount++,null},e.prototype.visitDirective=function(e,t){var r=new p.DirectiveIndex(this.boundElementCount-1,t),n=e.directive,i=[];c.StringMapWrapper.forEach(e.directive.outputs,function(e,t){return i.push([t,e])});var o=new p.DirectiveRecord({directiveIndex:r,callAfterContentInit:-1!==n.lifecycleHooks.indexOf(f.LifecycleHooks.AfterContentInit),callAfterContentChecked:-1!==n.lifecycleHooks.indexOf(f.LifecycleHooks.AfterContentChecked),callAfterViewInit:-1!==n.lifecycleHooks.indexOf(f.LifecycleHooks.AfterViewInit),callAfterViewChecked:-1!==n.lifecycleHooks.indexOf(f.LifecycleHooks.AfterViewChecked),callOnChanges:-1!==n.lifecycleHooks.indexOf(f.LifecycleHooks.OnChanges),callDoCheck:-1!==n.lifecycleHooks.indexOf(f.LifecycleHooks.DoCheck),callOnInit:-1!==n.lifecycleHooks.indexOf(f.LifecycleHooks.OnInit),callOnDestroy:-1!==n.lifecycleHooks.indexOf(f.LifecycleHooks.OnDestroy),changeDetection:n.changeDetection,outputs:i});this.directiveRecords.push(o),d.templateVisitAll(this,e.inputs,o);var a=this.bindingRecords;return o.callOnChanges&&a.push(p.BindingRecord.createDirectiveOnChanges(o)),o.callOnInit&&a.push(p.BindingRecord.createDirectiveOnInit(o)),o.callDoCheck&&a.push(p.BindingRecord.createDirectiveDoCheck(o)),d.templateVisitAll(this,e.hostProperties,o),d.templateVisitAll(this,e.hostEvents,o),d.templateVisitAll(this,e.exportAsVars),null},e.prototype.visitDirectiveProperty=function(e,t){var r=u.reflector.setter(e.directiveName);return this.bindingRecords.push(p.BindingRecord.createForDirective(e.value,e.directiveName,r,t)),null},e}();return a.define=s,r.exports}),System.register("angular2/src/transform/template_compiler/change_detector_codegen",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=function(){function e(e){}return e.prototype.generate=function(e,t,r){throw"Not implemented in JS"},e.prototype.toString=function(){throw"Not implemented in JS"},e}();return t.Codegen=o,n.define=i,r.exports}),System.register("angular2/src/compiler/shadow_css",["angular2/src/facade/collection","angular2/src/facade/lang"],!0,function(e,t,r){function n(e){return l.StringWrapper.replaceAllMapped(e,S,function(e){return""})}function i(e,t){var r=o(e),n=0;return l.StringWrapper.replaceAllMapped(r.escapedString,R,function(e){var i=e[2],o="",a=e[4],s="";l.isPresent(e[4])&&e[4].startsWith("{"+A)&&(o=r.blocks[n++],a=e[4].substring(A.length+1),s="{");var c=t(new T(i,o));return""+e[1]+c.selector+e[3]+s+c.content+a})}function o(e){for(var t=l.StringWrapper.split(e,x),r=[],n=[],i=0,o=[],a=0;a<t.length;a++){var s=t[a];s==D&&i--,i>0?o.push(s):(o.length>0&&(n.push(o.join("")),r.push(A),o=[]),r.push(s)),s==O&&i++}return o.length>0&&(n.push(o.join("")),r.push(A)),new I(r.join(""),n)}var a=System.global,s=a.define;a.define=void 0;var c=e("angular2/src/facade/collection"),l=e("angular2/src/facade/lang"),u=function(){function e(){this.strictStyling=!0}return e.prototype.shimCssText=function(e,t,r){return void 0===r&&(r=""),e=n(e),e=this._insertDirectives(e),this._scopeCssText(e,t,r)},e.prototype._insertDirectives=function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)},e.prototype._insertPolyfillDirectivesInCssText=function(e){return l.StringWrapper.replaceAllMapped(e,p,function(e){return e[1]+"{"})},e.prototype._insertPolyfillRulesInCssText=function(e){return l.StringWrapper.replaceAllMapped(e,d,function(e){var t=e[0];return t=l.StringWrapper.replace(t,e[1],""),t=l.StringWrapper.replace(t,e[2],""),e[3]+t})},e.prototype._scopeCssText=function(e,t,r){var n=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),l.isPresent(t)&&(e=this._scopeSelectors(e,t,r)),e=e+"\n"+n,e.trim()},e.prototype._extractUnscopedRulesFromCssText=function(e){for(var t,r="",n=l.RegExpWrapper.matcher(f,e);l.isPresent(t=l.RegExpMatcherWrapper.next(n));){var i=t[0];i=l.StringWrapper.replace(i,t[2],""),i=l.StringWrapper.replace(i,t[1],t[3]),r+=i+"\n\n"}return r},e.prototype._convertColonHost=function(e){return this._convertColonRule(e,v,this._colonHostPartReplacer)},e.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,y,this._colonHostContextPartReplacer)},e.prototype._convertColonRule=function(e,t,r){return l.StringWrapper.replaceAllMapped(e,t,function(e){if(l.isPresent(e[2])){for(var t=e[2].split(","),n=[],i=0;i<t.length;i++){var o=t[i];if(l.isBlank(o))break;o=o.trim(),n.push(r(_,o,e[3]))}return n.join(",")}return _+e[3]})},e.prototype._colonHostContextPartReplacer=function(e,t,r){return l.StringWrapper.contains(t,h)?this._colonHostPartReplacer(e,t,r):e+t+r+", "+t+" "+e+r},e.prototype._colonHostPartReplacer=function(e,t,r){return e+l.StringWrapper.replace(t,h,"")+r},e.prototype._convertShadowDOMSelectors=function(e){for(var t=0;t<b.length;t++)e=l.StringWrapper.replaceAll(e,b[t]," ");return e},e.prototype._scopeSelectors=function(e,t,r){var n=this;return i(e,function(e){var i=e.selector,o=e.content;return"@"!=e.selector[0]||e.selector.startsWith("@page")?i=n._scopeSelector(e.selector,t,r,n.strictStyling):e.selector.startsWith("@media")&&(o=n._scopeSelectors(e.content,t,r)),new T(i,o)})},e.prototype._scopeSelector=function(e,t,r,n){for(var i=[],o=e.split(","),a=0;a<o.length;a++){var s=o[a];s=s.trim(),this._selectorNeedsScoping(s,t)&&(s=n&&!l.StringWrapper.contains(s,_)?this._applyStrictSelectorScope(s,t):this._applySelectorScope(s,t,r)),i.push(s)}return i.join(", ")},e.prototype._selectorNeedsScoping=function(e,t){var r=this._makeScopeMatcher(t);return!l.isPresent(l.RegExpWrapper.firstMatch(r,e))},e.prototype._makeScopeMatcher=function(e){var t=/\[/g,r=/\]/g;return e=l.StringWrapper.replaceAll(e,t,"\\["),e=l.StringWrapper.replaceAll(e,r,"\\]"),l.RegExpWrapper.create("^("+e+")"+C,"m")},e.prototype._applySelectorScope=function(e,t,r){return this._applySimpleSelectorScope(e,t,r)},e.prototype._applySimpleSelectorScope=function(e,t,r){if(l.isPresent(l.RegExpWrapper.firstMatch(w,e))){var n=this.strictStyling?"["+r+"]":t;return e=l.StringWrapper.replace(e,_,n),l.StringWrapper.replaceAll(e,w,n+" ")}return t+" "+e},e.prototype._applyStrictSelectorScope=function(e,t){var r=/\[is=([^\]]*)\]/g;t=l.StringWrapper.replaceAllMapped(t,r,function(e){return e[1]});for(var n=[" ",">","+","~"],i=e,o="["+t+"]",a=0;a<n.length;a++){var s=n[a],u=i.split(s);i=u.map(function(e){var t=l.StringWrapper.replaceAll(e.trim(),w,"");if(t.length>0&&!c.ListWrapper.contains(n,t)&&!l.StringWrapper.contains(t,o)){var r=/([^:]*)(:*)(.*)/g,i=l.RegExpWrapper.firstMatch(r,t);l.isPresent(i)&&(e=i[1]+o+i[2]+i[3])}return e}).join(s)}return i},e.prototype._insertPolyfillHostInCssText=function(e){return e=l.StringWrapper.replaceAll(e,E,g),e=l.StringWrapper.replaceAll(e,P,h)},e}();t.ShadowCss=u;var p=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,d=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,f=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,h="-shadowcsshost",g="-shadowcsscontext",m=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",v=l.RegExpWrapper.create("("+h+m,"im"),y=l.RegExpWrapper.create("("+g+m,"im"),_=h+"-no-combinator",b=[/>>>/g,/::shadow/g,/::content/g,/\/deep\//g,/\/shadow-deep\//g,/\/shadow\//g],C="([>\\s~+[.,{:][\\s\\S]*)?$",w=l.RegExpWrapper.create(h,"im"),P=/:host/gim,E=/:host-context/gim,S=/\/\*[\s\S]*?\*\//g,R=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,x=/([{}])/g,O="{",D="}",A="%BLOCK%",T=function(){function e(e,t){this.selector=e,this.content=t}return e}();t.CssRule=T,t.processRules=i;var I=function(){function e(e,t){this.escapedString=e,this.blocks=t}return e}();return a.define=s,r.exports}),System.register("angular2/src/compiler/style_url_resolver",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){if(s.isBlank(e)||0===e.length||"/"==e[0])return!1;var t=s.RegExpWrapper.firstMatch(u,e);return s.isBlank(t)||"package"==t[1]||"asset"==t[1]}function i(e,t,r){var i=[],o=s.StringWrapper.replaceAllMapped(r,l,function(r){var o=s.isPresent(r[1])?r[1]:r[2];return n(o)?(i.push(e.resolve(t,o)),""):r[0]});return new c(o,i)}var o=System.global,a=o.define;o.define=void 0;var s=e("angular2/src/facade/lang"),c=function(){function e(e,t){this.style=e,this.styleUrls=t}return e}();t.StyleWithImports=c,t.isStyleUrlResolvable=n,t.extractStyleUrls=i;var l=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,u=/^([a-zA-Z\-\+\.]+):/g;return o.define=a,r.exports}),System.register("angular2/src/compiler/proto_view_compiler",["angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/compiler/template_ast","angular2/src/compiler/source_module","angular2/src/core/linker/view","angular2/src/core/linker/view_type","angular2/src/core/linker/element","angular2/src/compiler/util","angular2/src/core/di"],!0,function(e,t,r){function n(e,t,r){return _.templateVisitAll(e,t,r),r}function i(e){var t=[];y.StringMapWrapper.forEach(e,function(e,r){t.push([r,e])}),y.ListWrapper.sort(t,function(e,t){return v.StringWrapper.compare(e[0],t[0])});var r=[];return t.forEach(function(e){r.push([e[0],e[1]])}),r}function o(e,t,r){return e==x||e==O?t+" "+r:r}function a(e){for(var t={},r=0;r<e.length;r++){var n=e[r];t[n[0]]=n[1]}return t}function s(e){var t=e.map(function(e){return u(e.type)});return"["+t.join(",")+"]"}function c(e){var t=e.map(u);return"["+t.join(",")+"]"}function l(e){return v.IS_DART?""+t.VIEW_TYPE_MODULE_REF+e:""+e}function u(e){return""+b.moduleRef(e.moduleUrl)+e.name}function p(e,t){return t>0?w.ViewType.EMBEDDED:e.type.isHost?w.ViewType.HOST:w.ViewType.COMPONENT}var d=System.global,f=d.define;d.define=void 0;var h=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},g=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},v=e("angular2/src/facade/lang"),y=e("angular2/src/facade/collection"),_=e("angular2/src/compiler/template_ast"),b=e("angular2/src/compiler/source_module"),C=e("angular2/src/core/linker/view"),w=e("angular2/src/core/linker/view_type"),P=e("angular2/src/core/linker/element"),E=e("angular2/src/compiler/util"),S=e("angular2/src/core/di");t.PROTO_VIEW_JIT_IMPORTS=v.CONST_EXPR({AppProtoView:C.AppProtoView,AppProtoElement:P.AppProtoElement,ViewType:w.ViewType}),t.APP_VIEW_MODULE_REF=b.moduleRef("package:angular2/src/core/linker/view"+E.MODULE_SUFFIX),t.VIEW_TYPE_MODULE_REF=b.moduleRef("package:angular2/src/core/linker/view_type"+E.MODULE_SUFFIX),t.APP_EL_MODULE_REF=b.moduleRef("package:angular2/src/core/linker/element"+E.MODULE_SUFFIX),t.METADATA_MODULE_REF=b.moduleRef("package:angular2/src/core/metadata/view"+E.MODULE_SUFFIX);var R="$implicit",x="class",O="style",D=function(){function e(){}return e.prototype.compileProtoViewRuntime=function(e,t,r,n){var i=new V(e,t,n),o=[];return i.createCompileProtoView(r,[],[],o),new A([],o)},e.prototype.compileProtoViewCodeGen=function(e,t,r,n){var i=new N(e,t,n),o=[],a=[];return i.createCompileProtoView(r,[],a,o),new A(a.map(function(e){return e.statement}),o)},e=g([S.Injectable(),m("design:paramtypes",[])],e)}();t.ProtoViewCompiler=D;var A=function(){function e(e,t){this.declarations=e,this.protoViews=t}return e}();t.CompileProtoViews=A;var T=function(){function e(e,t,r){this.embeddedTemplateIndex=e,this.protoElements=t,this.protoView=r}return e}();t.CompileProtoView=T;var I=function(){function e(e,t,r,n,i,o,a){this.boundElementIndex=e,this.attrNameAndValues=t,this.variableNameAndValues=r,this.renderEvents=n,this.directives=i,this.embeddedTemplateIndex=o,this.appProtoEl=a}return e}();t.CompileProtoElement=I;var k=function(){function e(e){this.component=e}return e.prototype.createCompileProtoView=function(e,t,r,n){var i=n.length;n.push(null);var o=new M(this,r,n);_.templateVisitAll(o,e);var a=p(this.component,i),s=this.createAppProtoView(i,a,t,r),c=new T(i,o.protoElements,s);return n[i]=c,c},e}(),N=function(e){function r(t,r,n){e.call(this,r),this.resolvedMetadataCacheExpr=t,this.pipes=n,this._nextVarId=0}return h(r,e),r.prototype._nextProtoViewVar=function(e){return"appProtoView"+this._nextVarId++ +"_"+this.component.type.name+e},r.prototype.createAppProtoView=function(e,r,n,i){var o=this._nextProtoViewVar(e),a=l(r),s=0===e?c(this.pipes.map(function(e){return e.type})):null,u="var "+o+" = "+t.APP_VIEW_MODULE_REF+"AppProtoView.create("+this.resolvedMetadataCacheExpr.expression+", "+a+", "+s+", "+E.codeGenStringMap(n)+");";return i.push(new E.Statement(u)),new E.Expression(o)},r.prototype.createAppProtoElement=function(e,r,n,i,o){var a="appProtoEl"+this._nextVarId++ +"_"+this.component.type.name,c=t.APP_EL_MODULE_REF+"AppProtoElement.create(\n "+this.resolvedMetadataCacheExpr.expression+",\n "+e+",\n "+E.codeGenStringMap(r)+",\n "+s(i)+",\n "+E.codeGenStringMap(n)+"\n )",l="var "+a+" = "+c+";";return o.push(new E.Statement(l)),new E.Expression(a)},r}(k),V=function(e){function t(t,r,n){e.call(this,r),this.metadataCache=t,this.pipes=n}return h(t,e),t.prototype.createAppProtoView=function(e,t,r,n){var i=0===e?this.pipes.map(function(e){return e.type.runtime}):[],o=a(r);return C.AppProtoView.create(this.metadataCache,t,i,o)},t.prototype.createAppProtoElement=function(e,t,r,n,i){var o=a(t);return P.AppProtoElement.create(this.metadataCache,e,o,n.map(function(e){return e.type.runtime}),a(r))},t}(k),M=function(){function e(e,t,r){this.factory=e,this.allStatements=t,this.allProtoViews=r,this.protoElements=[],this.boundElementCount=0}return e.prototype._readAttrNameAndValues=function(e,t){var r=n(this,t,{});return e.forEach(function(e){y.StringMapWrapper.forEach(e.hostAttributes,function(e,t){var n=r[t];r[t]=v.isPresent(n)?o(t,n,e):e})}),i(r)},e.prototype.visitBoundText=function(e,t){return null},e.prototype.visitText=function(e,t){return null},e.prototype.visitNgContent=function(e,t){return null},e.prototype.visitElement=function(e,t){var r=this,i=null;e.isBound()&&(i=this.boundElementCount++);var o=e.getComponent(),a=[];v.isBlank(o)&&e.exportAsVars.forEach(function(e){a.push([e.name,null])});var s=[],c=n(this,e.outputs,new Map);y.ListWrapper.forEachWithIndex(e.directives,function(e,t){e.visit(r,new j(t,i,c,a,s))});var l=[];c.forEach(function(e,t){return l.push(e)});var u=this._readAttrNameAndValues(s,e.attrs);return this._addProtoElement(e.isBound(),i,u,a,l,s,null),_.templateVisitAll(this,e.children),null},e.prototype.visitEmbeddedTemplate=function(e,t){var r=this,n=this.boundElementCount++,i=[];y.ListWrapper.forEachWithIndex(e.directives,function(e,t){e.visit(r,new j(t,n,new Map,[],i))});var o=this._readAttrNameAndValues(i,e.attrs),a=e.vars.map(function(e){return[e.value.length>0?e.value:R,e.name]}),s=this.factory.createCompileProtoView(e.children,a,this.allStatements,this.allProtoViews);return this._addProtoElement(!0,n,o,[],[],i,s.embeddedTemplateIndex),null},e.prototype._addProtoElement=function(e,t,r,n,i,o,a){var s=null;e&&(s=this.factory.createAppProtoElement(t,r,n,o,this.allStatements));var c=new I(t,r,n,i,o,a,s);this.protoElements.push(c)},e.prototype.visitVariable=function(e,t){return null},e.prototype.visitAttr=function(e,t){return t[e.name]=e.value,null},e.prototype.visitDirective=function(e,t){return t.targetDirectives.push(e.directive),_.templateVisitAll(this,e.hostEvents,t.hostEventTargetAndNames),e.exportAsVars.forEach(function(e){t.targetVariableNameAndValues.push([e.name,t.index])}),null},e.prototype.visitEvent=function(e,t){return t.set(e.fullName,e),null},e.prototype.visitDirectiveProperty=function(e,t){return null},e.prototype.visitElementProperty=function(e,t){return null},e}(),j=function(){function e(e,t,r,n,i){this.index=e,this.boundElementIndex=t,this.hostEventTargetAndNames=r,this.targetVariableNameAndValues=n,this.targetDirectives=i}return e}();return d.define=f,r.exports}),System.register("angular2/src/compiler/html_ast",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e,t,r){void 0===r&&(r=null);var n=[];return t.forEach(function(t){var i=t.visit(e,r);a.isPresent(i)&&n.push(i)}),n}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/facade/lang"),s=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}();t.HtmlTextAst=s;var c=function(){function e(e,t,r){this.name=e,this.value=t,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitAttr(this,t)},e}();t.HtmlAttrAst=c;var l=function(){function e(e,t,r,n){this.name=e,this.attrs=t,this.children=r,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}();return t.HtmlElementAst=l,t.htmlVisitAll=n,i.define=o,r.exports}),System.register("angular2/src/compiler/parse_util",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=function(){function e(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}return e.prototype.toString=function(){return this.file.url+"@"+this.line+":"+this.col},e}();t.ParseLocation=o;var a=function(){function e(e,t){this.content=e,this.url=t}return e}();t.ParseSourceFile=a;var s=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},e}();t.ParseSourceSpan=s;var c=function(){function e(e,t){this.span=e,this.msg=t}return e.prototype.toString=function(){var e=this.span.start.file.content,t=this.span.start.offset;t>e.length-1&&(t=e.length-1);for(var r=t,n=0,i=0;100>n&&t>0&&(t--,n++,"\n"!=e[t]||3!=++i););for(n=0,i=0;100>n&&r<e.length-1&&(r++,n++,"\n"!=e[r]||3!=++i););var o=e.substring(t,this.span.start.offset)+"[ERROR ->]"+e.substring(this.span.start.offset,r+1);return this.msg+' ("'+o+'"): '+this.span.start},e}();return t.ParseError=c,n.define=i,r.exports}),System.register("angular2/src/compiler/html_tags",["angular2/src/facade/lang"],!0,function(e,t,r){function n(e){var t=d[e.toLowerCase()];return l.isPresent(t)?t:f}function i(e){if("@"!=e[0])return[null,e];var t=l.RegExpWrapper.firstMatch(h,e);return[t[1],t[2]]}function o(e){return i(e)[0]}function a(e,t){return l.isPresent(e)?"@"+e+":"+t:t}var s=System.global,c=s.define;s.define=void 0;var l=e("angular2/src/facade/lang");t.NAMED_ENTITIES=l.CONST_EXPR({Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"}),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(t.HtmlTagContentType||(t.HtmlTagContentType={}));var u=t.HtmlTagContentType,p=function(){function e(e){var t=this,r=void 0===e?{}:e,n=r.closedByChildren,i=r.requiredParents,o=r.implicitNamespacePrefix,a=r.contentType,s=r.closedByParent,c=r.isVoid,p=r.ignoreFirstLf;this.closedByChildren={},this.closedByParent=!1,l.isPresent(n)&&n.length>0&&n.forEach(function(e){return t.closedByChildren[e]=!0}),this.isVoid=l.normalizeBool(c),this.closedByParent=l.normalizeBool(s)||this.isVoid,l.isPresent(i)&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(e){return t.requiredParents[e]=!0})),this.implicitNamespacePrefix=o,this.contentType=l.isPresent(a)?a:u.PARSABLE_DATA,this.ignoreFirstLf=l.normalizeBool(p)}return e.prototype.requireExtraParent=function(e){if(l.isBlank(this.requiredParents))return!1;if(l.isBlank(e))return!0;var t=e.toLowerCase();return 1!=this.requiredParents[t]&&"template"!=t},e.prototype.isClosedByChild=function(e){return this.isVoid||l.normalizeBool(this.closedByChildren[e.toLowerCase()])},e}();t.HtmlTagDefinition=p;var d={area:new p({isVoid:!0}),embed:new p({isVoid:!0}),link:new p({isVoid:!0}),img:new p({isVoid:!0}),input:new p({isVoid:!0}),param:new p({isVoid:!0}),hr:new p({isVoid:!0}),br:new p({isVoid:!0}),source:new p({isVoid:!0}),track:new p({isVoid:!0}),wbr:new p({isVoid:!0}),p:new p({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new p({closedByChildren:["tbody","tfoot"]}),tbody:new p({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new p({closedByChildren:["tbody"],closedByParent:!0}),tr:new p({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new p({closedByChildren:["td","th"],closedByParent:!0}),th:new p({closedByChildren:["td","th"],closedByParent:!0}),col:new p({requiredParents:["colgroup"],isVoid:!0}),svg:new p({implicitNamespacePrefix:"svg"}),math:new p({implicitNamespacePrefix:"math"}),li:new p({closedByChildren:["li"],closedByParent:!0}),dt:new p({closedByChildren:["dt","dd"]}),dd:new p({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new p({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new p({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new p({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new p({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new p({closedByChildren:["optgroup"],closedByParent:!0}),option:new p({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new p({ignoreFirstLf:!0}),listing:new p({ignoreFirstLf:!0}),style:new p({contentType:u.RAW_TEXT}),script:new p({contentType:u.RAW_TEXT}),title:new p({contentType:u.ESCAPABLE_RAW_TEXT}),textarea:new p({contentType:u.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},f=new p;t.getHtmlTagDefinition=n;var h=/^@([^:]+):(.+)/g;return t.splitNsName=i,t.getNsPrefix=o,t.mergeNsAndName=a,s.define=c,r.exports}),System.register("angular2/src/compiler/schema/element_schema_registry",[],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=function(){function e(){}return e.prototype.hasProperty=function(e,t){return!0},e.prototype.getMappedPropName=function(e){return e},e}();return t.ElementSchemaRegistry=o,n.define=i,r.exports}),System.register("angular2/src/compiler/template_preparser",["angular2/src/facade/lang","angular2/src/compiler/html_tags"],!0,function(e,t,r){function n(e){var t=null,r=null,n=null,o=!1;e.attrs.forEach(function(e){var i=e.name.toLowerCase();i==l?t=e.value:i==f?r=e.value:i==d?n=e.value:e.name==v&&(o=!0)}),t=i(t);var a=e.name.toLowerCase(),s=y.OTHER;return c.splitNsName(a)[1]==u?s=y.NG_CONTENT:a==g?s=y.STYLE:a==m?s=y.SCRIPT:a==p&&n==h&&(s=y.STYLESHEET),new _(s,t,r,o)}function i(e){return s.isBlank(e)||0===e.length?"*":e}var o=System.global,a=o.define;o.define=void 0;var s=e("angular2/src/facade/lang"),c=e("angular2/src/compiler/html_tags"),l="select",u="ng-content",p="link",d="rel",f="href",h="stylesheet",g="style",m="script",v="ngNonBindable"; t.preparseElement=n,function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(t.PreparsedElementType||(t.PreparsedElementType={}));var y=t.PreparsedElementType,_=function(){function e(e,t,r,n){this.type=e,this.selectAttr=t,this.hrefAttr=r,this.nonBindable=n}return e}();return t.PreparsedElement=_,o.define=a,r.exports}),System.register("angular2/src/compiler/template_normalizer",["angular2/src/compiler/directive_metadata","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/async","angular2/src/compiler/xhr","angular2/src/compiler/url_resolver","angular2/src/compiler/style_url_resolver","angular2/src/core/di","angular2/src/core/metadata/view","angular2/src/compiler/html_ast","angular2/src/compiler/html_parser","angular2/src/compiler/template_preparser"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/compiler/directive_metadata"),c=e("angular2/src/facade/lang"),l=e("angular2/src/facade/exceptions"),u=e("angular2/src/facade/async"),p=e("angular2/src/compiler/xhr"),d=e("angular2/src/compiler/url_resolver"),f=e("angular2/src/compiler/style_url_resolver"),h=e("angular2/src/core/di"),g=e("angular2/src/core/metadata/view"),m=e("angular2/src/compiler/html_ast"),v=e("angular2/src/compiler/html_parser"),y=e("angular2/src/compiler/template_preparser"),_=function(){function e(e,t,r){this._xhr=e,this._urlResolver=t,this._htmlParser=r}return e.prototype.normalizeTemplate=function(e,t){var r=this;if(c.isPresent(t.template))return u.PromiseWrapper.resolve(this.normalizeLoadedTemplate(e,t,t.template,e.moduleUrl));if(c.isPresent(t.templateUrl)){var n=this._urlResolver.resolve(e.moduleUrl,t.templateUrl);return this._xhr.get(n).then(function(i){return r.normalizeLoadedTemplate(e,t,i,n)})}throw new l.BaseException("No template specified for component "+e.name)},e.prototype.normalizeLoadedTemplate=function(e,t,r,n){var i=this,o=this._htmlParser.parse(r,e.name);if(o.errors.length>0){var a=o.errors.join("\n");throw new l.BaseException("Template parse errors:\n"+a)}var c=new b;m.htmlVisitAll(c,o.rootNodes);var u=t.styles.concat(c.styles),p=c.styleUrls.filter(f.isStyleUrlResolvable).map(function(e){return i._urlResolver.resolve(n,e)}).concat(t.styleUrls.filter(f.isStyleUrlResolvable).map(function(t){return i._urlResolver.resolve(e.moduleUrl,t)})),d=u.map(function(e){var t=f.extractStyleUrls(i._urlResolver,n,e);return t.styleUrls.forEach(function(e){return p.push(e)}),t.style}),h=t.encapsulation;return h===g.ViewEncapsulation.Emulated&&0===d.length&&0===p.length&&(h=g.ViewEncapsulation.None),new s.CompileTemplateMetadata({encapsulation:h,template:r,templateUrl:n,styles:d,styleUrls:p,ngContentSelectors:c.ngContentSelectors})},e=o([h.Injectable(),a("design:paramtypes",[p.XHR,d.UrlResolver,v.HtmlParser])],e)}();t.TemplateNormalizer=_;var b=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var r=y.preparseElement(e);switch(r.type){case y.PreparsedElementType.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(r.selectAttr);break;case y.PreparsedElementType.STYLE:var n="";e.children.forEach(function(e){e instanceof m.HtmlTextAst&&(n+=e.value)}),this.styles.push(n);break;case y.PreparsedElementType.STYLESHEET:this.styleUrls.push(r.hrefAttr)}return r.nonBindable&&this.ngNonBindableStackCount++,m.htmlVisitAll(this,e.children),r.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitAttr=function(e,t){return null},e.prototype.visitText=function(e,t){return null},e}();return n.define=i,r.exports}),System.register("angular2/src/core/linker/directive_lifecycle_reflector",["angular2/src/facade/lang","angular2/src/core/linker/interfaces"],!0,function(e,t,r){function n(e,t){if(!(t instanceof a.Type))return!1;var r=t.prototype;switch(e){case s.LifecycleHooks.AfterContentInit:return!!r.ngAfterContentInit;case s.LifecycleHooks.AfterContentChecked:return!!r.ngAfterContentChecked;case s.LifecycleHooks.AfterViewInit:return!!r.ngAfterViewInit;case s.LifecycleHooks.AfterViewChecked:return!!r.ngAfterViewChecked;case s.LifecycleHooks.OnChanges:return!!r.ngOnChanges;case s.LifecycleHooks.DoCheck:return!!r.ngDoCheck;case s.LifecycleHooks.OnDestroy:return!!r.ngOnDestroy;case s.LifecycleHooks.OnInit:return!!r.ngOnInit;default:return!1}}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/facade/lang"),s=e("angular2/src/core/linker/interfaces");return t.hasLifecycleHook=n,i.define=o,r.exports}),System.register("angular2/src/compiler/schema/dom_element_schema_registry",["angular2/src/core/di","angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/platform/dom/dom_adapter","angular2/src/compiler/html_tags","angular2/src/compiler/schema/element_schema_registry"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/core/di"),l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/collection"),p=e("angular2/src/platform/dom/dom_adapter"),d=e("angular2/src/compiler/html_tags"),f=e("angular2/src/compiler/schema/element_schema_registry"),h=l.CONST_EXPR({xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}),g=function(e){function t(){e.apply(this,arguments),this._protoElements=new Map}return o(t,e),t.prototype._getProtoElement=function(e){var t=this._protoElements.get(e);if(l.isBlank(t)){var r=d.splitNsName(e);t=l.isPresent(r[0])?p.DOM.createElementNS(h[r[0]],r[1]):p.DOM.createElement(r[1]),this._protoElements.set(e,t)}return t},t.prototype.hasProperty=function(e,t){if(-1!==e.indexOf("-"))return!0;var r=this._getProtoElement(e);return p.DOM.hasProperty(r,t)},t.prototype.getMappedPropName=function(e){var t=u.StringMapWrapper.get(p.DOM.attrToPropMap,e);return l.isPresent(t)?t:e},t=a([c.Injectable(),s("design:paramtypes",[])],t)}(f.ElementSchemaRegistry);return t.DomElementSchemaRegistry=g,n.define=i,r.exports}),System.register("angular2/src/core/angular_entrypoint",["angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=function(){function e(e){this.name=e}return e=o([s.CONST(),a("design:paramtypes",[String])],e)}();return t.AngularEntrypoint=c,n.define=i,r.exports}),System.register("angular2/src/common/pipes/async_pipe",["angular2/src/facade/lang","angular2/src/facade/async","angular2/core","angular2/src/common/pipes/invalid_pipe_argument_exception"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/src/facade/async"),l=e("angular2/core"),u=e("angular2/src/common/pipes/invalid_pipe_argument_exception"),p=function(){function e(){}return e.prototype.createSubscription=function(e,t){return c.ObservableWrapper.subscribe(e,t,function(e){throw e})},e.prototype.dispose=function(e){c.ObservableWrapper.dispose(e)},e.prototype.onDestroy=function(e){c.ObservableWrapper.dispose(e)},e}(),d=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t)},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}(),f=new d,h=new p,g=function(){function e(e){this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}return e.prototype.ngOnDestroy=function(){s.isPresent(this._subscription)&&this._dispose()},e.prototype.transform=function(e,t){return s.isBlank(this._obj)?(s.isPresent(e)&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue):e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,l.WrappedValue.wrap(this._latestValue))},e.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(r){return t._updateLatestValue(e,r)})},e.prototype._selectStrategy=function(t){if(s.isPromise(t))return f;if(c.ObservableWrapper.isObservable(t))return h;throw new u.InvalidPipeArgumentException(e,t)},e.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},e.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},e=o([l.Pipe({name:"async",pure:!1}),l.Injectable(),a("design:paramtypes",[l.ChangeDetectorRef])],e)}();return t.AsyncPipe=g,n.define=i,r.exports}),System.register("angular2/src/common/pipes/date_pipe",["angular2/src/facade/lang","angular2/src/facade/intl","angular2/core","angular2/src/facade/collection","angular2/src/common/pipes/invalid_pipe_argument_exception"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/facade/lang"),c=e("angular2/src/facade/intl"),l=e("angular2/core"),u=e("angular2/src/facade/collection"),p=e("angular2/src/common/pipes/invalid_pipe_argument_exception"),d="en-US",f=function(){function e(){}return e.prototype.transform=function(t,r){if(s.isBlank(t))return null;if(!this.supports(t))throw new p.InvalidPipeArgumentException(e,t);var n=s.isPresent(r)&&r.length>0?r[0]:"mediumDate";return s.isNumber(t)&&(t=s.DateWrapper.fromMillis(t)),u.StringMapWrapper.contains(e._ALIASES,n)&&(n=u.StringMapWrapper.get(e._ALIASES,n)),c.DateFormatter.format(t,d,n)},e.prototype.supports=function(e){return s.isDate(e)||s.isNumber(e)},e._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},e=o([s.CONST(),l.Pipe({name:"date",pure:!0}),l.Injectable(),a("design:paramtypes",[])],e)}();return t.DatePipe=f,n.define=i,r.exports}),System.register("angular2/src/common/directives",["angular2/src/common/directives/ng_class","angular2/src/common/directives/ng_for","angular2/src/common/directives/ng_if","angular2/src/common/directives/ng_style","angular2/src/common/directives/ng_switch","angular2/src/common/directives/observable_list_diff","angular2/src/common/directives/core_directives"],!0,function(e,t,r){function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/common/directives/ng_class");t.NgClass=a.NgClass;var s=e("angular2/src/common/directives/ng_for");t.NgFor=s.NgFor;var c=e("angular2/src/common/directives/ng_if");t.NgIf=c.NgIf;var l=e("angular2/src/common/directives/ng_style");t.NgStyle=l.NgStyle;var u=e("angular2/src/common/directives/ng_switch");t.NgSwitch=u.NgSwitch,t.NgSwitchWhen=u.NgSwitchWhen,t.NgSwitchDefault=u.NgSwitchDefault,n(e("angular2/src/common/directives/observable_list_diff"));var p=e("angular2/src/common/directives/core_directives");return t.CORE_DIRECTIVES=p.CORE_DIRECTIVES,i.define=o,r.exports}),System.register("angular2/src/common/forms/directives/shared",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/common/forms/validators","angular2/src/common/forms/directives/default_value_accessor","angular2/src/common/forms/directives/number_value_accessor","angular2/src/common/forms/directives/checkbox_value_accessor","angular2/src/common/forms/directives/select_control_value_accessor","angular2/src/common/forms/directives/radio_control_value_accessor","angular2/src/common/forms/directives/normalize_validator"],!0,function(e,t,r){function n(e,t){var r=f.ListWrapper.clone(t.path);return r.push(e),r}function i(e,t){h.isBlank(e)&&a(t,"Cannot find control"),h.isBlank(t.valueAccessor)&&a(t,"No value accessor for"),e.validator=m.Validators.compose([e.validator,t.validator]),e.asyncValidator=m.Validators.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),t.valueAccessor.registerOnChange(function(r){t.viewToModelUpdate(r),e.updateValue(r,{emitModelToViewChange:!1}),e.markAsDirty()}),e.registerOnChange(function(e){return t.valueAccessor.writeValue(e)}),t.valueAccessor.registerOnTouched(function(){return e.markAsTouched()})}function o(e,t){h.isBlank(e)&&a(t,"Cannot find control"),e.validator=m.Validators.compose([e.validator,t.validator]),e.asyncValidator=m.Validators.composeAsync([e.asyncValidator,t.asyncValidator])}function a(e,t){var r=e.path.join(" -> ");throw new g.BaseException(t+" '"+r+"'")}function s(e){return h.isPresent(e)?m.Validators.compose(e.map(w.normalizeValidator)):null}function c(e){return h.isPresent(e)?m.Validators.composeAsync(e.map(w.normalizeValidator)):null}function l(e,t){if(!f.StringMapWrapper.contains(e,"model"))return!1;var r=e.model;return r.isFirstChange()?!0:!h.looseIdentical(t,r.currentValue)}function u(e,t){if(h.isBlank(t))return null;var r,n,i;return t.forEach(function(t){h.hasConstructor(t,v.DefaultValueAccessor)?r=t:h.hasConstructor(t,_.CheckboxControlValueAccessor)||h.hasConstructor(t,y.NumberValueAccessor)||h.hasConstructor(t,b.SelectControlValueAccessor)||h.hasConstructor(t,C.RadioControlValueAccessor)?(h.isPresent(n)&&a(e,"More than one built-in value accessor matches"),n=t):(h.isPresent(i)&&a(e,"More than one custom value accessor matches"),i=t)}),h.isPresent(i)?i:h.isPresent(n)?n:h.isPresent(r)?r:(a(e,"No valid value accessor for"),null)}var p=System.global,d=p.define;p.define=void 0;var f=e("angular2/src/facade/collection"),h=e("angular2/src/facade/lang"),g=e("angular2/src/facade/exceptions"),m=e("angular2/src/common/forms/validators"),v=e("angular2/src/common/forms/directives/default_value_accessor"),y=e("angular2/src/common/forms/directives/number_value_accessor"),_=e("angular2/src/common/forms/directives/checkbox_value_accessor"),b=e("angular2/src/common/forms/directives/select_control_value_accessor"),C=e("angular2/src/common/forms/directives/radio_control_value_accessor"),w=e("angular2/src/common/forms/directives/normalize_validator");return t.controlPath=n,t.setUpControl=i,t.setUpControlGroup=o,t.composeValidators=s,t.composeAsyncValidators=c,t.isPropertyUpdated=l,t.selectValueAccessor=u,p.define=d,r.exports}),System.register("angular2/src/common/forms/directives",["angular2/src/facade/lang","angular2/src/common/forms/directives/ng_control_name","angular2/src/common/forms/directives/ng_form_control","angular2/src/common/forms/directives/ng_model","angular2/src/common/forms/directives/ng_control_group","angular2/src/common/forms/directives/ng_form_model","angular2/src/common/forms/directives/ng_form","angular2/src/common/forms/directives/default_value_accessor","angular2/src/common/forms/directives/checkbox_value_accessor","angular2/src/common/forms/directives/number_value_accessor","angular2/src/common/forms/directives/radio_control_value_accessor","angular2/src/common/forms/directives/ng_control_status","angular2/src/common/forms/directives/select_control_value_accessor","angular2/src/common/forms/directives/validators","angular2/src/common/forms/directives/ng_control_name","angular2/src/common/forms/directives/ng_form_control","angular2/src/common/forms/directives/ng_model","angular2/src/common/forms/directives/ng_control_group","angular2/src/common/forms/directives/ng_form_model","angular2/src/common/forms/directives/ng_form","angular2/src/common/forms/directives/default_value_accessor","angular2/src/common/forms/directives/checkbox_value_accessor","angular2/src/common/forms/directives/radio_control_value_accessor","angular2/src/common/forms/directives/number_value_accessor","angular2/src/common/forms/directives/ng_control_status","angular2/src/common/forms/directives/select_control_value_accessor","angular2/src/common/forms/directives/validators","angular2/src/common/forms/directives/ng_control"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/facade/lang"),a=e("angular2/src/common/forms/directives/ng_control_name"),s=e("angular2/src/common/forms/directives/ng_form_control"),c=e("angular2/src/common/forms/directives/ng_model"),l=e("angular2/src/common/forms/directives/ng_control_group"),u=e("angular2/src/common/forms/directives/ng_form_model"),p=e("angular2/src/common/forms/directives/ng_form"),d=e("angular2/src/common/forms/directives/default_value_accessor"),f=e("angular2/src/common/forms/directives/checkbox_value_accessor"),h=e("angular2/src/common/forms/directives/number_value_accessor"),g=e("angular2/src/common/forms/directives/radio_control_value_accessor"),m=e("angular2/src/common/forms/directives/ng_control_status"),v=e("angular2/src/common/forms/directives/select_control_value_accessor"),y=e("angular2/src/common/forms/directives/validators"),_=e("angular2/src/common/forms/directives/ng_control_name");t.NgControlName=_.NgControlName;var b=e("angular2/src/common/forms/directives/ng_form_control");t.NgFormControl=b.NgFormControl;var C=e("angular2/src/common/forms/directives/ng_model");t.NgModel=C.NgModel;var w=e("angular2/src/common/forms/directives/ng_control_group");t.NgControlGroup=w.NgControlGroup;var P=e("angular2/src/common/forms/directives/ng_form_model");t.NgFormModel=P.NgFormModel;var E=e("angular2/src/common/forms/directives/ng_form");t.NgForm=E.NgForm;var S=e("angular2/src/common/forms/directives/default_value_accessor");t.DefaultValueAccessor=S.DefaultValueAccessor;var R=e("angular2/src/common/forms/directives/checkbox_value_accessor");t.CheckboxControlValueAccessor=R.CheckboxControlValueAccessor;var x=e("angular2/src/common/forms/directives/radio_control_value_accessor");t.RadioControlValueAccessor=x.RadioControlValueAccessor,t.RadioButtonState=x.RadioButtonState;var O=e("angular2/src/common/forms/directives/number_value_accessor");t.NumberValueAccessor=O.NumberValueAccessor;var D=e("angular2/src/common/forms/directives/ng_control_status");t.NgControlStatus=D.NgControlStatus;var A=e("angular2/src/common/forms/directives/select_control_value_accessor");t.SelectControlValueAccessor=A.SelectControlValueAccessor,t.NgSelectOption=A.NgSelectOption;var T=e("angular2/src/common/forms/directives/validators");t.RequiredValidator=T.RequiredValidator,t.MinLengthValidator=T.MinLengthValidator,t.MaxLengthValidator=T.MaxLengthValidator,t.PatternValidator=T.PatternValidator;var I=e("angular2/src/common/forms/directives/ng_control");return t.NgControl=I.NgControl,t.FORM_DIRECTIVES=o.CONST_EXPR([a.NgControlName,l.NgControlGroup,s.NgFormControl,c.NgModel,u.NgFormModel,p.NgForm,v.NgSelectOption,d.DefaultValueAccessor,h.NumberValueAccessor,f.CheckboxControlValueAccessor,v.SelectControlValueAccessor,g.RadioControlValueAccessor,m.NgControlStatus,y.RequiredValidator,y.MinLengthValidator,y.MaxLengthValidator,y.PatternValidator]),n.define=i,r.exports}),System.register("angular2/src/platform/dom/events/hammer_gestures",["angular2/src/platform/dom/events/hammer_common","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/core/di"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/platform/dom/events/hammer_common"),l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/exceptions"),p=e("angular2/src/core/di"),d=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.supports=function(t){if(!e.prototype.supports.call(this,t))return!1;if(!l.isPresent(window.Hammer))throw new u.BaseException("Hammer.js is not loaded, can not bind "+t+" event");return!0},t.prototype.addEventListener=function(e,t,r){var n=this.manager.getZone();return t=t.toLowerCase(),n.runOutsideAngular(function(){var r=new Hammer(e);r.get("pinch").set({enable:!0}),r.get("rotate").set({enable:!0});var i=function(e){n.run(function(){i(e)})};return r.on(t,i),function(){r.off(t,i)}})},t=a([p.Injectable(),s("design:paramtypes",[])],t)}(c.HammerGesturesPluginCommon);return t.HammerGesturesPlugin=d,n.define=i,r.exports}),System.register("angular2/src/platform/browser/xhr_impl",["angular2/src/facade/promise","angular2/src/facade/lang","angular2/src/compiler/xhr"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/facade/promise"),s=e("angular2/src/facade/lang"),c=e("angular2/src/compiler/xhr"),l=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.get=function(e){var t=a.PromiseWrapper.completer(),r=new XMLHttpRequest;return r.open("GET",e,!0),r.responseType="text",r.onload=function(){var n=s.isPresent(r.response)?r.response:r.responseText,i=1223===r.status?204:r.status;0===i&&(i=n?200:0),i>=200&&300>=i?t.resolve(n):t.reject("Failed to load "+e,null)},r.onerror=function(){t.reject("Failed to load "+e,null)},r.send(),t.promise},t}(c.XHR);return t.XHRImpl=l,n.define=i,r.exports}),System.register("angular2/src/platform/browser/tools/common_tools",["angular2/src/core/application_ref","angular2/src/facade/lang","angular2/src/facade/browser","angular2/src/platform/dom/dom_adapter"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/application_ref"),a=e("angular2/src/facade/lang"),s=e("angular2/src/facade/browser"),c=e("angular2/src/platform/dom/dom_adapter"),l=function(){function e(e){this.profiler=new u(e)}return e}();t.AngularTools=l;var u=function(){function e(e){this.appRef=e.injector.get(o.ApplicationRef)}return e.prototype.timeChangeDetection=function(e){var t=a.isPresent(e)&&e.record,r="Change Detection",n=a.isPresent(s.window.console.profile);t&&n&&s.window.console.profile(r);for(var i=c.DOM.performanceNow(),o=0;5>o||c.DOM.performanceNow()-i<500;)this.appRef.tick(),o++;var l=c.DOM.performanceNow();t&&n&&s.window.console.profileEnd(r);var u=(l-i)/o;s.window.console.log("ran "+o+" change detection cycles"),s.window.console.log(a.NumberWrapper.toFixed(u,2)+" ms per check")},e}();return t.AngularProfiler=u,n.define=i,r.exports}),System.register("angular2/src/compiler/directive_metadata",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/core/change_detection/change_detection","angular2/src/core/metadata/view","angular2/src/compiler/selector","angular2/src/compiler/util","angular2/src/core/linker/interfaces"],!0,function(e,t,r){function n(e,t){var r=m.CssSelector.parse(t)[0].getMatchingElementTemplate();return D.create({type:new R({runtime:Object,name:"Host"+e.name,moduleUrl:e.moduleUrl,isHost:!0}),template:new O({template:r,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[]}),changeDetection:h.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},lifecycleHooks:[],isComponent:!0,dynamicLoadable:!1,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function i(e,t){return p.isBlank(e)?null:e.map(function(e){return a(e,t)})}function o(e){return p.isBlank(e)?null:e.map(s)}function a(e,t){return p.isString(e)||p.isBlank(e)?e:t(e)}function s(e){return p.isString(e)||p.isBlank(e)?e:e.toJson()}var c=System.global,l=c.define;c.define=void 0;var u=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},p=e("angular2/src/facade/lang"),d=e("angular2/src/facade/exceptions"),f=e("angular2/src/facade/collection"),h=e("angular2/src/core/change_detection/change_detection"),g=e("angular2/src/core/metadata/view"),m=e("angular2/src/compiler/selector"),v=e("angular2/src/compiler/util"),y=e("angular2/src/core/linker/interfaces"),_=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))$/g,b=function(){function e(){}return e.fromJson=function(e){return T[e["class"]](e)},Object.defineProperty(e.prototype,"identifier",{get:function(){return d.unimplemented()},enumerable:!0,configurable:!0}),e}();t.CompileMetadataWithIdentifier=b;var C=function(e){function t(){e.apply(this,arguments)}return u(t,e),t.fromJson=function(e){return T[e["class"]](e)},Object.defineProperty(t.prototype,"type",{get:function(){return d.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return d.unimplemented()},enumerable:!0,configurable:!0}),t}(b);t.CompileMetadataWithType=C;var w=function(){function e(e){var t=void 0===e?{}:e,r=t.runtime,n=t.name,i=t.moduleUrl,o=t.prefix,a=t.constConstructor;this.runtime=r,this.name=n,this.prefix=o,this.moduleUrl=i,this.constConstructor=a}return e.fromJson=function(t){return new e({name:t.name,prefix:t.prefix,moduleUrl:t.moduleUrl,constConstructor:t.constConstructor})},e.prototype.toJson=function(){return{"class":"Identifier",name:this.name,moduleUrl:this.moduleUrl,prefix:this.prefix,constConstructor:this.constConstructor}},Object.defineProperty(e.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),e}();t.CompileIdentifierMetadata=w;var P=function(){function e(e){var t=void 0===e?{}:e,r=t.isAttribute,n=t.isSelf,i=t.isHost,o=t.isSkipSelf,a=t.isOptional,s=t.query,c=t.viewQuery,l=t.token;this.isAttribute=p.normalizeBool(r),this.isSelf=p.normalizeBool(n),this.isHost=p.normalizeBool(i),this.isSkipSelf=p.normalizeBool(o),this.isOptional=p.normalizeBool(a),this.query=s,this.viewQuery=c,this.token=l}return e.fromJson=function(t){return new e({token:a(t.token,w.fromJson),query:a(t.query,x.fromJson),viewQuery:a(t.viewQuery,x.fromJson),isAttribute:t.isAttribute,isSelf:t.isSelf,isHost:t.isHost,isSkipSelf:t.isSkipSelf,isOptional:t.isOptional})},e.prototype.toJson=function(){return{token:s(this.token),query:s(this.query),viewQuery:s(this.viewQuery),isAttribute:this.isAttribute,isSelf:this.isSelf,isHost:this.isHost,isSkipSelf:this.isSkipSelf,isOptional:this.isOptional}},e}();t.CompileDiDependencyMetadata=P;var E=function(){function e(e){var t=e.token,r=e.useClass,n=e.useValue,i=e.useExisting,o=e.useFactory,a=e.deps,s=e.multi;this.token=t,this.useClass=r,this.useValue=n,this.useExisting=i,this.useFactory=o,this.deps=a,this.multi=s}return e.fromJson=function(t){return new e({token:a(t.token,w.fromJson),useClass:a(t.useClass,R.fromJson)})},e.prototype.toJson=function(){return{token:s(this.token),useClass:s(this.useClass)}},e}();t.CompileProviderMetadata=E;var S=function(){function e(e){var t=e.runtime,r=e.name,n=e.moduleUrl,i=e.constConstructor,o=e.diDeps;this.runtime=t,this.name=r,this.moduleUrl=n,this.diDeps=o,this.constConstructor=i}return Object.defineProperty(e.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.toJson=function(){return null},e}();t.CompileFactoryMetadata=S;var R=function(){function e(e){var t=void 0===e?{}:e,r=t.runtime,n=t.name,i=t.moduleUrl,o=t.prefix,a=t.isHost,s=t.constConstructor,c=t.diDeps;this.runtime=r,this.name=n,this.moduleUrl=i,this.prefix=o,this.isHost=p.normalizeBool(a),this.constConstructor=s,this.diDeps=p.normalizeBlank(c)}return e.fromJson=function(t){return new e({name:t.name,moduleUrl:t.moduleUrl,prefix:t.prefix,isHost:t.isHost,constConstructor:t.constConstructor,diDeps:i(t.diDeps,P.fromJson)})},Object.defineProperty(e.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.toJson=function(){return{"class":"Type",name:this.name,moduleUrl:this.moduleUrl,prefix:this.prefix,isHost:this.isHost,constConstructor:this.constConstructor,diDeps:o(this.diDeps)}},e}();t.CompileTypeMetadata=R;var x=function(){function e(e){var t=void 0===e?{}:e,r=t.selectors,n=t.descendants,i=t.first,o=t.propertyName;this.selectors=r,this.descendants=n,this.first=p.normalizeBool(i),this.propertyName=o}return e.fromJson=function(t){return new e({selectors:i(t.selectors,w.fromJson),descendants:t.descendants,first:t.first,propertyName:t.propertyName})},e.prototype.toJson=function(){return{selectors:o(this.selectors),descendants:this.descendants,first:this.first,propertyName:this.propertyName}},e}();t.CompileQueryMetadata=x;var O=function(){function e(e){var t=void 0===e?{}:e,r=t.encapsulation,n=t.template,i=t.templateUrl,o=t.styles,a=t.styleUrls,s=t.ngContentSelectors;this.encapsulation=p.isPresent(r)?r:g.ViewEncapsulation.Emulated,this.template=n,this.templateUrl=i,this.styles=p.isPresent(o)?o:[],this.styleUrls=p.isPresent(a)?a:[],this.ngContentSelectors=p.isPresent(s)?s:[]}return e.fromJson=function(t){return new e({encapsulation:p.isPresent(t.encapsulation)?g.VIEW_ENCAPSULATION_VALUES[t.encapsulation]:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,ngContentSelectors:t.ngContentSelectors})},e.prototype.toJson=function(){ return{encapsulation:p.isPresent(this.encapsulation)?p.serializeEnum(this.encapsulation):this.encapsulation,template:this.template,templateUrl:this.templateUrl,styles:this.styles,styleUrls:this.styleUrls,ngContentSelectors:this.ngContentSelectors}},e}();t.CompileTemplateMetadata=O;var D=function(){function e(e){var t=void 0===e?{}:e,r=t.type,n=t.isComponent,i=t.dynamicLoadable,o=t.selector,a=t.exportAs,s=t.changeDetection,c=t.inputs,l=t.outputs,u=t.hostListeners,d=t.hostProperties,f=t.hostAttributes,h=t.lifecycleHooks,g=t.providers,m=t.viewProviders,v=t.queries,y=t.viewQueries,_=t.template;this.type=r,this.isComponent=n,this.dynamicLoadable=i,this.selector=o,this.exportAs=a,this.changeDetection=s,this.inputs=c,this.outputs=l,this.hostListeners=u,this.hostProperties=d,this.hostAttributes=f,this.lifecycleHooks=h,this.providers=p.normalizeBlank(g),this.viewProviders=p.normalizeBlank(m),this.queries=v,this.viewQueries=y,this.template=_}return e.create=function(t){var r=void 0===t?{}:t,n=r.type,i=r.isComponent,o=r.dynamicLoadable,a=r.selector,s=r.exportAs,c=r.changeDetection,l=r.inputs,u=r.outputs,d=r.host,h=r.lifecycleHooks,g=r.providers,m=r.viewProviders,y=r.queries,b=r.viewQueries,C=r.template,w={},P={},E={};p.isPresent(d)&&f.StringMapWrapper.forEach(d,function(e,t){var r=p.RegExpWrapper.firstMatch(_,t);p.isBlank(r)?E[t]=e:p.isPresent(r[1])?P[r[1]]=e:p.isPresent(r[2])&&(w[r[2]]=e)});var S={};p.isPresent(l)&&l.forEach(function(e){var t=v.splitAtColon(e,[e,e]);S[t[0]]=t[1]});var R={};return p.isPresent(u)&&u.forEach(function(e){var t=v.splitAtColon(e,[e,e]);R[t[0]]=t[1]}),new e({type:n,isComponent:p.normalizeBool(i),dynamicLoadable:p.normalizeBool(o),selector:a,exportAs:s,changeDetection:c,inputs:S,outputs:R,hostListeners:w,hostProperties:P,hostAttributes:E,lifecycleHooks:p.isPresent(h)?h:[],providers:g,viewProviders:m,queries:y,viewQueries:b,template:C})},Object.defineProperty(e.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),e.fromJson=function(t){return new e({isComponent:t.isComponent,dynamicLoadable:t.dynamicLoadable,selector:t.selector,exportAs:t.exportAs,type:p.isPresent(t.type)?R.fromJson(t.type):t.type,changeDetection:p.isPresent(t.changeDetection)?h.CHANGE_DETECTION_STRATEGY_VALUES[t.changeDetection]:t.changeDetection,inputs:t.inputs,outputs:t.outputs,hostListeners:t.hostListeners,hostProperties:t.hostProperties,hostAttributes:t.hostAttributes,lifecycleHooks:t.lifecycleHooks.map(function(e){return y.LIFECYCLE_HOOKS_VALUES[e]}),template:p.isPresent(t.template)?O.fromJson(t.template):t.template,providers:i(t.providers,E.fromJson)})},e.prototype.toJson=function(){return{"class":"Directive",isComponent:this.isComponent,dynamicLoadable:this.dynamicLoadable,selector:this.selector,exportAs:this.exportAs,type:p.isPresent(this.type)?this.type.toJson():this.type,changeDetection:p.isPresent(this.changeDetection)?p.serializeEnum(this.changeDetection):this.changeDetection,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,lifecycleHooks:this.lifecycleHooks.map(function(e){return p.serializeEnum(e)}),template:p.isPresent(this.template)?this.template.toJson():this.template,providers:o(this.providers)}},e}();t.CompileDirectiveMetadata=D,t.createHostComponentMeta=n;var A=function(){function e(e){var t=void 0===e?{}:e,r=t.type,n=t.name,i=t.pure;this.type=r,this.name=n,this.pure=p.normalizeBool(i)}return Object.defineProperty(e.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),e.fromJson=function(t){return new e({type:p.isPresent(t.type)?R.fromJson(t.type):t.type,name:t.name,pure:t.pure})},e.prototype.toJson=function(){return{"class":"Pipe",type:p.isPresent(this.type)?this.type.toJson():null,name:this.name,pure:this.pure}},e}();t.CompilePipeMetadata=A;var T={Directive:D.fromJson,Pipe:A.fromJson,Type:R.fromJson,Identifier:w.fromJson};return c.define=l,r.exports}),System.register("angular2/src/compiler/change_detector_compiler",["angular2/src/compiler/source_module","angular2/src/core/change_detection/change_detection_jit_generator","angular2/src/core/change_detection/abstract_change_detector","angular2/src/core/change_detection/change_detection_util","angular2/src/core/change_detection/constants","angular2/src/compiler/change_definition_factory","angular2/src/facade/lang","angular2/src/core/change_detection/change_detection","angular2/src/transform/template_compiler/change_detector_codegen","angular2/src/compiler/util","angular2/src/core/di"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/compiler/source_module"),c=e("angular2/src/core/change_detection/change_detection_jit_generator"),l=e("angular2/src/core/change_detection/abstract_change_detector"),u=e("angular2/src/core/change_detection/change_detection_util"),p=e("angular2/src/core/change_detection/constants"),d=e("angular2/src/compiler/change_definition_factory"),f=e("angular2/src/facade/lang"),h=e("angular2/src/core/change_detection/change_detection"),g=e("angular2/src/transform/template_compiler/change_detector_codegen"),m=e("angular2/src/compiler/util"),v=e("angular2/src/core/di"),y="AbstractChangeDetector",_="ChangeDetectionUtil",b="ChangeDetectorState";t.CHANGE_DETECTION_JIT_IMPORTS=f.CONST_EXPR({AbstractChangeDetector:l.AbstractChangeDetector,ChangeDetectionUtil:u.ChangeDetectionUtil,ChangeDetectorState:p.ChangeDetectorState});var C=s.moduleRef("package:angular2/src/core/change_detection/abstract_change_detector"+m.MODULE_SUFFIX),w=s.moduleRef("package:angular2/src/core/change_detection/change_detection_util"+m.MODULE_SUFFIX),P=s.moduleRef("package:angular2/src/core/change_detection/pregen_proto_change_detector"+m.MODULE_SUFFIX),E=s.moduleRef("package:angular2/src/core/change_detection/constants"+m.MODULE_SUFFIX),S=function(){function e(e){this._genConfig=e}return e.prototype.compileComponentRuntime=function(e,t,r){var n=this,i=d.createChangeDetectorDefinitions(e,t,this._genConfig,r);return i.map(function(e){return n._createChangeDetectorFactory(e)})},e.prototype._createChangeDetectorFactory=function(e){var t=new h.DynamicProtoChangeDetector(e);return function(){return t.instantiate()}},e.prototype.compileComponentCodeGen=function(e,t,r){var n=d.createChangeDetectorDefinitions(e,t,this._genConfig,r),i=[],o=0,a=n.map(function(t){var r,n;if(f.IS_DART){r=new g.Codegen(P);var a="_"+t.id,l=0===o&&e.isHost?"dynamic":""+s.moduleRef(e.moduleUrl)+e.name;r.generate(l,a,t),i.push(a+".newChangeDetector"),n=r.toString()}else r=new c.ChangeDetectorJITGenerator(t,""+w+_,""+C+y,""+E+b),i.push("function() { return new "+r.typeName+"(); }"),n=r.generateSource();return o++,n});return new s.SourceExpressions(a,i)},e=o([v.Injectable(),a("design:paramtypes",[h.ChangeDetectorGenConfig])],e)}();return t.ChangeDetectionCompiler=S,n.define=i,r.exports}),System.register("angular2/src/compiler/style_compiler",["angular2/src/compiler/source_module","angular2/src/core/metadata/view","angular2/src/compiler/xhr","angular2/src/facade/lang","angular2/src/facade/async","angular2/src/compiler/shadow_css","angular2/src/compiler/url_resolver","angular2/src/compiler/style_url_resolver","angular2/src/compiler/util","angular2/src/core/di"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},s=e("angular2/src/compiler/source_module"),c=e("angular2/src/core/metadata/view"),l=e("angular2/src/compiler/xhr"),u=e("angular2/src/facade/lang"),p=e("angular2/src/facade/async"),d=e("angular2/src/compiler/shadow_css"),f=e("angular2/src/compiler/url_resolver"),h=e("angular2/src/compiler/style_url_resolver"),g=e("angular2/src/compiler/util"),m=e("angular2/src/core/di"),v="%COMP%",y="_nghost-"+v,_="_ngcontent-"+v,b=function(){function e(e,t){this._xhr=e,this._urlResolver=t,this._styleCache=new Map,this._shadowCss=new d.ShadowCss}return e.prototype.compileComponentRuntime=function(e){var t=e.styles,r=e.styleUrls;return this._loadStyles(t,r,e.encapsulation===c.ViewEncapsulation.Emulated)},e.prototype.compileComponentCodeGen=function(e){var t=e.encapsulation===c.ViewEncapsulation.Emulated;return this._styleCodeGen(e.styles,e.styleUrls,t)},e.prototype.compileStylesheetCodeGen=function(e,t){var r=h.extractStyleUrls(this._urlResolver,e,t);return[this._styleModule(e,!1,this._styleCodeGen([r.style],r.styleUrls,!1)),this._styleModule(e,!0,this._styleCodeGen([r.style],r.styleUrls,!0))]},e.prototype.clearCache=function(){this._styleCache.clear()},e.prototype._loadStyles=function(e,t,r){var n=this,i=t.map(function(e){var t=""+e+(r?".shim":""),i=n._styleCache.get(t);return u.isBlank(i)&&(i=n._xhr.get(e).then(function(t){var i=h.extractStyleUrls(n._urlResolver,e,t);return n._loadStyles([i.style],i.styleUrls,r)}),n._styleCache.set(t,i)),i});return p.PromiseWrapper.all(i).then(function(t){var i=e.map(function(e){return n._shimIfNeeded(e,r)});return t.forEach(function(e){return i.push(e)}),i})},e.prototype._styleCodeGen=function(e,t,r){for(var n=this,i=u.IS_DART?"const":"",o=e.map(function(e){return g.escapeSingleQuoteString(n._shimIfNeeded(e,r))}),a=0;a<t.length;a++){var c=this._createModuleUrl(t[a],r);o.push(s.moduleRef(c)+"STYLES")}var l=i+" ["+o.join(",")+"]";return new s.SourceExpression([],l)},e.prototype._styleModule=function(e,t,r){var n="\n "+r.declarations.join("\n")+"\n "+g.codeGenExportVariable("STYLES")+r.expression+";\n ";return new s.SourceModule(this._createModuleUrl(e,t),n)},e.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,_,y):e},e.prototype._createModuleUrl=function(e,t){return t?e+".shim"+g.MODULE_SUFFIX:""+e+g.MODULE_SUFFIX},e=o([m.Injectable(),a("design:paramtypes",[l.XHR,f.UrlResolver])],e)}();return t.StyleCompiler=b,n.define=i,r.exports}),System.register("angular2/src/compiler/view_compiler",["angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/compiler/template_ast","angular2/src/compiler/source_module","angular2/src/core/linker/view","angular2/src/core/linker/view_type","angular2/src/core/linker/element","angular2/src/core/metadata/view","angular2/src/compiler/util","angular2/src/core/di","angular2/src/compiler/proto_view_compiler"],!0,function(e,t,r){function n(e,t,r){return y.codeGenValueFn(["event"],e.expression+".triggerEventHandlers("+y.escapeValue(r)+", event, "+t+")")}function i(e,t){return"viewFactory_"+e.type.name+t}function o(e){return u.IS_DART?""+b.METADATA_MODULE_REF+e:""+e}var a=System.global,s=a.define;a.define=void 0;var c=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},u=e("angular2/src/facade/lang"),p=e("angular2/src/facade/collection"),d=e("angular2/src/compiler/template_ast"),f=e("angular2/src/compiler/source_module"),h=e("angular2/src/core/linker/view"),g=e("angular2/src/core/linker/view_type"),m=e("angular2/src/core/linker/element"),v=e("angular2/src/core/metadata/view"),y=e("angular2/src/compiler/util"),_=e("angular2/src/core/di"),b=e("angular2/src/compiler/proto_view_compiler");t.VIEW_JIT_IMPORTS=u.CONST_EXPR({AppView:h.AppView,AppElement:m.AppElement,flattenNestedViewRenderNodes:h.flattenNestedViewRenderNodes,checkSlotCount:h.checkSlotCount});var C=function(){function e(){}return e.prototype.compileComponentRuntime=function(e,t,r,n,i,o){var a=new P(e,r,n,i,o);return a.createViewFactory(t,0,[])},e.prototype.compileComponentCodeGen=function(e,t,r,n,i,o){var a=new w(e,r,n,i,o),s=[],c=a.createViewFactory(t,0,s);return new f.SourceExpression(s.map(function(e){return e.statement}),c.expression)},e=c([_.Injectable(),l("design:paramtypes",[])],e)}();t.ViewCompiler=C;var w=function(){function e(e,t,r,n,i){this.component=e,this.styles=t,this.protoViews=r,this.changeDetectorExpressions=n,this.componentViewFactory=i,this._nextVarId=0}return e.prototype._nextVar=function(e){return""+e+this._nextVarId++ +"_"+this.component.type.name},e.prototype._nextRenderVar=function(){return this._nextVar("render")},e.prototype._nextAppVar=function(){return this._nextVar("app")},e.prototype._nextDisposableVar=function(){return"disposable"+this._nextVarId++ +"_"+this.component.type.name},e.prototype.createText=function(e,t,r,n){var i=this._nextRenderVar(),o="var "+i+" = "+e.expression+".createText("+(u.isPresent(t)?t.expression:null)+", "+y.escapeSingleQuoteString(r)+");";return n.push(new y.Statement(o)),new y.Expression(i)},e.prototype.createElement=function(e,t,r,n,i){var o,a=this._nextRenderVar();o=u.isPresent(n)?n.expression+" == null ?\n "+e.expression+".createElement("+(u.isPresent(t)?t.expression:null)+", "+y.escapeSingleQuoteString(r)+") :\n "+e.expression+".selectRootElement("+n.expression+");":e.expression+".createElement("+(u.isPresent(t)?t.expression:null)+", "+y.escapeSingleQuoteString(r)+")";var s="var "+a+" = "+o+";";return i.push(new y.Statement(s)),new y.Expression(a)},e.prototype.createTemplateAnchor=function(e,t,r){var n=this._nextRenderVar(),i=e.expression+".createTemplateAnchor("+(u.isPresent(t)?t.expression:null)+");";return r.push(new y.Statement("var "+n+" = "+i)),new y.Expression(n)},e.prototype.createGlobalEventListener=function(e,t,r,i,o){var a=this._nextDisposableVar(),s=n(t,r,i.fullName);return o.push(new y.Statement("var "+a+" = "+e.expression+".listenGlobal("+y.escapeValue(i.target)+", "+y.escapeValue(i.name)+", "+s+");")),new y.Expression(a)},e.prototype.createElementEventListener=function(e,t,r,i,o,a){var s=this._nextDisposableVar(),c=n(t,r,o.fullName);return a.push(new y.Statement("var "+s+" = "+e.expression+".listen("+i.expression+", "+y.escapeValue(o.name)+", "+c+");")),new y.Expression(s)},e.prototype.setElementAttribute=function(e,t,r,n,i){i.push(new y.Statement(e.expression+".setElementAttribute("+t.expression+", "+y.escapeSingleQuoteString(r)+", "+y.escapeSingleQuoteString(n)+");"))},e.prototype.createAppElement=function(e,t,r,n,i,o){var a=this._nextAppVar(),s="new "+b.APP_EL_MODULE_REF+"AppElement("+e.expression+", "+t.expression+",\n "+(u.isPresent(n)?n.expression:null)+", "+r.expression+", "+(u.isPresent(i)?i.expression:null)+")";return o.push(new y.Statement("var "+a+" = "+s+";")),new y.Expression(a)},e.prototype.createAndSetComponentView=function(e,t,r,n,i,o,a){var s;s=this.component.type.isHost?r.expression+".projectableNodes":"["+o.map(function(e){return y.codeGenFlatArray(e)}).join(",")+"]",a.push(new y.Statement(this.componentViewFactory(i)+"("+e.expression+", "+t.expression+", "+n.expression+", "+s+", null, null, null);"))},e.prototype.getProjectedNodes=function(e,t){return new y.Expression(e.expression+"["+t+"]",!0)},e.prototype.appendProjectedNodes=function(e,t,r,n){n.push(new y.Statement(e.expression+".projectNodes("+t.expression+", "+b.APP_VIEW_MODULE_REF+"flattenNestedViewRenderNodes("+r.expression+"));"))},e.prototype.createViewFactory=function(e,t,r){var n=this.protoViews[t],a=this.component.type.isHost,s=0===t&&!a,c=new S(new y.Expression("renderer"),new y.Expression("viewManager"),new y.Expression("projectableNodes"),a?new y.Expression("rootSelector"):null,new y.Expression("view"),n,r,this);d.templateVisitAll(c,e,new E(s?new y.Expression("parentRenderNode"):null,null,null));var l=n.protoView.expression,u=i(this.component,t),p=this.changeDetectorExpressions.expressions[t],f=["parentRenderer","viewManager","containerEl","projectableNodes","rootSelector","dynamicallyCreatedProviders","rootInjector"],h=[],g="parentRenderer";if(0===t){var m=this._nextVar("renderType");r.push(new y.Statement("var "+m+" = null;"));var v=this._nextVar("styles");r.push(new y.Statement(y.CONST_VAR+" "+v+" = "+this.styles.expression+";"));var _=this.component.template.encapsulation;h.push("if ("+m+" == null) {\n "+m+" = viewManager.createRenderComponentType("+o(_)+", "+v+");\n }"),g="parentRenderer.renderComponent("+m+")"}var C="\n"+y.codeGenFnHeader(f,u)+"{\n "+h.join("\n")+"\n var renderer = "+g+";\n var view = new "+b.APP_VIEW_MODULE_REF+"AppView(\n "+l+", renderer, viewManager,\n projectableNodes,\n containerEl,\n dynamicallyCreatedProviders, rootInjector,\n "+p+"()\n );\n "+b.APP_VIEW_MODULE_REF+"checkSlotCount("+y.escapeValue(this.component.type.name)+", "+this.component.template.ngContentSelectors.length+", projectableNodes);\n "+(s?"var parentRenderNode = renderer.createViewRoot(view.containerAppElement.nativeElement);":"")+"\n "+c.renderStmts.map(function(e){return e.statement}).join("\n")+"\n "+c.appStmts.map(function(e){return e.statement}).join("\n")+"\n\n view.init("+y.codeGenFlatArray(c.rootNodesOrAppElements)+", "+y.codeGenArray(c.renderNodes)+", "+y.codeGenArray(c.appDisposables)+",\n "+y.codeGenArray(c.appElements)+");\n return view;\n}";return r.push(new y.Statement(C)),new y.Expression(u)},e}(),P=function(){function e(e,t,r,n,i){this.component=e,this.styles=t,this.protoViews=r,this.changeDetectorFactories=n,this.componentViewFactory=i}return e.prototype.createText=function(e,t,r,n){return e.createText(t,r)},e.prototype.createElement=function(e,t,r,n,i){var o;return o=u.isPresent(n)?e.selectRootElement(n):e.createElement(t,r)},e.prototype.createTemplateAnchor=function(e,t,r){return e.createTemplateAnchor(t)},e.prototype.createGlobalEventListener=function(e,t,r,n,i){return e.listenGlobal(n.target,n.name,function(e){return t.triggerEventHandlers(n.fullName,e,r)})},e.prototype.createElementEventListener=function(e,t,r,n,i,o){return e.listen(n,i.name,function(e){return t.triggerEventHandlers(i.fullName,e,r)})},e.prototype.setElementAttribute=function(e,t,r,n,i){e.setElementAttribute(t,r,n)},e.prototype.createAppElement=function(e,t,r,n,i,o){return new m.AppElement(e,t,n,r,i)},e.prototype.createAndSetComponentView=function(e,t,r,n,i,o,a){var s;if(this.component.type.isHost)s=r.projectableNodes;else{s=p.ListWrapper.createFixedSize(o.length);for(var c=0;c<o.length;c++)s[c]=y.flattenArray(o[c],[])}this.componentViewFactory(i)(e,t,n,s)},e.prototype.getProjectedNodes=function(e,t){return e[t]},e.prototype.appendProjectedNodes=function(e,t,r,n){e.projectNodes(t,h.flattenNestedViewRenderNodes(r))},e.prototype.createViewFactory=function(e,t,r){var n=this,i=this.protoViews[t],o=i.protoView.type===g.ViewType.COMPONENT,a=null;return function(r,s,c,l,p,f,g){void 0===p&&(p=null),void 0===f&&(f=null),void 0===g&&(g=null),h.checkSlotCount(n.component.type.name,n.component.template.ngContentSelectors.length,l);var m;0===t?(u.isBlank(a)&&(a=s.createRenderComponentType(n.component.template.encapsulation,n.styles)),m=r.renderComponent(a)):m=r;var v=n.changeDetectorFactories[t](),_=new h.AppView(i.protoView,m,s,l,c,f,g,v),b=new S(m,s,l,p,_,i,[],n),C=o?m.createViewRoot(c.nativeElement):null;return d.templateVisitAll(b,e,new E(C,null,null)),_.init(y.flattenArray(b.rootNodesOrAppElements,[]),b.renderNodes,b.appDisposables,b.appElements),_}},e}(),E=function(){function e(e,t,r){if(this.renderNode=e,this.appEl=t,this.component=r,u.isPresent(r)){this.contentNodesByNgContentIndex=p.ListWrapper.createFixedSize(r.template.ngContentSelectors.length);for(var n=0;n<this.contentNodesByNgContentIndex.length;n++)this.contentNodesByNgContentIndex[n]=[]}else this.contentNodesByNgContentIndex=null}return e.prototype.addContentNode=function(e,t){this.contentNodesByNgContentIndex[e].push(t)},e}(),S=function(){function e(e,t,r,n,i,o,a,s){this.renderer=e,this.viewManager=t,this.projectableNodes=r,this.rootSelector=n,this.view=i,this.protoView=o,this.targetStatements=a,this.factory=s,this.renderStmts=[],this.renderNodes=[],this.appStmts=[],this.appElements=[],this.appDisposables=[],this.rootNodesOrAppElements=[],this.elementCount=0}return e.prototype._addRenderNode=function(e,t,r,n){this.renderNodes.push(e),u.isPresent(n.component)?u.isPresent(r)&&n.addContentNode(r,u.isPresent(t)?t:e):u.isBlank(n.renderNode)&&this.rootNodesOrAppElements.push(u.isPresent(t)?t:e)},e.prototype._getParentRenderNode=function(e,t){return u.isPresent(t.component)&&t.component.template.encapsulation!==v.ViewEncapsulation.Native?null:t.renderNode},e.prototype.visitBoundText=function(e,t){return this._visitText("",e.ngContentIndex,t)},e.prototype.visitText=function(e,t){return this._visitText(e.value,e.ngContentIndex,t)},e.prototype._visitText=function(e,t,r){var n=this.factory.createText(this.renderer,this._getParentRenderNode(t,r),e,this.renderStmts);return this._addRenderNode(n,null,t,r),null},e.prototype.visitNgContent=function(e,t){var r=this.factory.getProjectedNodes(this.projectableNodes,e.index);return u.isPresent(t.component)?u.isPresent(e.ngContentIndex)&&t.addContentNode(e.ngContentIndex,r):u.isPresent(t.renderNode)?this.factory.appendProjectedNodes(this.renderer,t.renderNode,r,this.renderStmts):this.rootNodesOrAppElements.push(r),null},e.prototype.visitElement=function(e,t){var r=this,n=this.factory.createElement(this.renderer,this._getParentRenderNode(e.ngContentIndex,t),e.name,this.rootSelector,this.renderStmts),i=e.getComponent(),o=this.elementCount++,a=this.protoView.protoElements[o];a.renderEvents.forEach(function(e){var t;t=u.isPresent(e.target)?r.factory.createGlobalEventListener(r.renderer,r.view,a.boundElementIndex,e,r.renderStmts):r.factory.createElementEventListener(r.renderer,r.view,a.boundElementIndex,n,e,r.renderStmts),r.appDisposables.push(t)});for(var s=0;s<a.attrNameAndValues.length;s++){var c=a.attrNameAndValues[s][0],l=a.attrNameAndValues[s][1];this.factory.setElementAttribute(this.renderer,n,c,l,this.renderStmts)}var p=null;u.isPresent(a.appProtoEl)&&(p=this.factory.createAppElement(a.appProtoEl,this.view,n,t.appEl,null,this.appStmts),this.appElements.push(p)),this._addRenderNode(n,p,e.ngContentIndex,t);var f=new E(n,u.isPresent(p)?p:t.appEl,i);return d.templateVisitAll(this,e.children,f),u.isPresent(p)&&u.isPresent(i)&&this.factory.createAndSetComponentView(this.renderer,this.viewManager,this.view,p,i,f.contentNodesByNgContentIndex,this.appStmts),null},e.prototype.visitEmbeddedTemplate=function(e,t){var r=this.factory.createTemplateAnchor(this.renderer,this._getParentRenderNode(e.ngContentIndex,t),this.renderStmts),n=this.elementCount++,i=this.protoView.protoElements[n],o=this.factory.createViewFactory(e.children,i.embeddedTemplateIndex,this.targetStatements),a=this.factory.createAppElement(i.appProtoEl,this.view,r,t.appEl,o,this.appStmts);return this._addRenderNode(r,a,e.ngContentIndex,t),this.appElements.push(a),null},e.prototype.visitVariable=function(e,t){return null},e.prototype.visitAttr=function(e,t){return null},e.prototype.visitDirective=function(e,t){return null},e.prototype.visitEvent=function(e,t){return null},e.prototype.visitDirectiveProperty=function(e,t){return null},e.prototype.visitElementProperty=function(e,t){return null},e}();return a.define=s,r.exports}),System.register("angular2/src/compiler/html_lexer",["angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/compiler/parse_util","angular2/src/compiler/html_tags"],!0,function(e,t,r){function n(e,t){return new se(new P.ParseSourceFile(e,t)).tokenize()}function i(e){var t=e===D?"EOF":C.StringWrapper.fromCharCode(e);return'Unexpected character "'+t+'"'}function o(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function a(e){return!s(e)||e===D}function s(e){return e>=A&&k>=e||e===ie}function c(e){return s(e)||e===z||e===F||e===B||e===V||e===K}function l(e){return(ee>e||e>re)&&(X>e||e>Y)&&(W>e||e>H)}function u(e){return e==U||e==D||!h(e)}function p(e){return e==U||e==D||!f(e)}function d(e){return e===G||e===D}function f(e){return e>=ee&&re>=e||e>=X&&Y>=e}function h(e){return e>=ee&&te>=e||e>=X&&J>=e||e>=W&&H>=e}function g(e,t){return m(e)==m(t)}function m(e){return e>=ee&&re>=e?e-ee+X:e}function v(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];C.isPresent(t)&&t.type==S.TEXT&&i.type==S.TEXT?(t.parts[0]+=i.parts[0],t.sourceSpan.end=i.sourceSpan.end):(t=i,r.push(t))}return r}var y=System.global,_=y.define;y.define=void 0;var b=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},C=e("angular2/src/facade/lang"),w=e("angular2/src/facade/collection"),P=e("angular2/src/compiler/parse_util"),E=e("angular2/src/compiler/html_tags");!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_VALUE=12]="ATTR_VALUE",e[e.DOC_TYPE=13]="DOC_TYPE",e[e.EOF=14]="EOF"}(t.HtmlTokenType||(t.HtmlTokenType={}));var S=t.HtmlTokenType,R=function(){function e(e,t,r){this.type=e,this.parts=t,this.sourceSpan=r}return e}();t.HtmlToken=R;var x=function(e){function t(t,r,n){e.call(this,n,t),this.tokenType=r}return b(t,e),t}(P.ParseError);t.HtmlTokenError=x;var O=function(){function e(e,t){this.tokens=e,this.errors=t}return e}();t.HtmlTokenizeResult=O,t.tokenizeHtml=n;var D=0,A=9,T=10,I=13,k=32,N=33,V=34,M=35,j=38,B=39,L=45,F=47,W=48,U=59,H=57,q=58,G=60,K=61,z=62,$=91,Q=93,X=65,J=70,Z=88,Y=90,ee=97,te=102,re=122,ne=120,ie=160,oe=/\r\n?/g,ae=function(){function e(e){this.error=e}return e}(),se=function(){function e(e){this.file=e,this.peek=-1,this.index=-1,this.line=0,this.column=-1,this.tokens=[],this.errors=[],this.input=e.content,this.length=e.content.length,this._advance()}return e.prototype._processCarriageReturns=function(e){return C.StringWrapper.replaceAll(e,oe,"\n")},e.prototype.tokenize=function(){for(;this.peek!==D;){var e=this._getLocation();try{this._attemptCharCode(G)?this._attemptCharCode(N)?this._attemptCharCode($)?this._consumeCdata(e):this._attemptCharCode(L)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(F)?this._consumeTagClose(e):this._consumeTagOpen(e):this._consumeText()}catch(t){if(!(t instanceof ae))throw t;this.errors.push(t.error)}}return this._beginToken(S.EOF),this._endToken([]),new O(v(this.tokens),this.errors)},e.prototype._getLocation=function(){return new P.ParseLocation(this.file,this.index,this.line,this.column)},e.prototype._getSpan=function(e,t){return C.isBlank(e)&&(e=this._getLocation()),C.isBlank(t)&&(t=this._getLocation()),new P.ParseSourceSpan(e,t)},e.prototype._beginToken=function(e,t){void 0===t&&(t=null),C.isBlank(t)&&(t=this._getLocation()),this.currentTokenStart=t,this.currentTokenType=e},e.prototype._endToken=function(e,t){void 0===t&&(t=null),C.isBlank(t)&&(t=this._getLocation());var r=new R(this.currentTokenType,e,new P.ParseSourceSpan(this.currentTokenStart,t));return this.tokens.push(r),this.currentTokenStart=null,this.currentTokenType=null,r},e.prototype._createError=function(e,t){var r=new x(e,this.currentTokenType,t);return this.currentTokenStart=null,this.currentTokenType=null,new ae(r)},e.prototype._advance=function(){if(this.index>=this.length)throw this._createError(i(D),this._getSpan());this.peek===T?(this.line++,this.column=0):this.peek!==T&&this.peek!==I&&this.column++,this.index++,this.peek=this.index>=this.length?D:C.StringWrapper.charCodeAt(this.input,this.index)},e.prototype._attemptCharCode=function(e){return this.peek===e?(this._advance(),!0):!1},e.prototype._attemptCharCodeCaseInsensitive=function(e){return g(this.peek,e)?(this._advance(),!0):!1},e.prototype._requireCharCode=function(e){var t=this._getLocation();if(!this._attemptCharCode(e))throw this._createError(i(this.peek),this._getSpan(t,t))},e.prototype._attemptStr=function(e){for(var t=0;t<e.length;t++)if(!this._attemptCharCode(C.StringWrapper.charCodeAt(e,t)))return!1;return!0},e.prototype._attemptStrCaseInsensitive=function(e){for(var t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(C.StringWrapper.charCodeAt(e,t)))return!1;return!0},e.prototype._requireStr=function(e){var t=this._getLocation();if(!this._attemptStr(e))throw this._createError(i(this.peek),this._getSpan(t))},e.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this.peek);)this._advance()},e.prototype._requireCharCodeUntilFn=function(e,t){var r=this._getLocation();if(this._attemptCharCodeUntilFn(e),this.index-r.offset<t)throw this._createError(i(this.peek),this._getSpan(r,r))},e.prototype._attemptUntilChar=function(e){for(;this.peek!==e;)this._advance()},e.prototype._readChar=function(e){if(e&&this.peek===j)return this._decodeEntity();var t=this.index;return this._advance(),this.input[t]},e.prototype._decodeEntity=function(){var e=this._getLocation();if(this._advance(),!this._attemptCharCode(M)){var t=this._savePosition();if(this._attemptCharCodeUntilFn(p),this.peek!=U)return this._restorePosition(t),"&";this._advance();var r=this.input.substring(e.offset+1,this.index-1),n=E.NAMED_ENTITIES[r];if(C.isBlank(n))throw this._createError(o(r),this._getSpan(e));return n}var a=this._attemptCharCode(ne)||this._attemptCharCode(Z),s=this._getLocation().offset;if(this._attemptCharCodeUntilFn(u),this.peek!=U)throw this._createError(i(this.peek),this._getSpan());this._advance();var c=this.input.substring(s,this.index-1);try{var l=C.NumberWrapper.parseInt(c,a?16:10);return C.StringWrapper.fromCharCode(l)}catch(d){var f=this.input.substring(e.offset+1,this.index-1);throw this._createError(o(f),this._getSpan(e))}},e.prototype._consumeRawText=function(e,t,r){var n,i=this._getLocation();this._beginToken(e?S.ESCAPABLE_RAW_TEXT:S.RAW_TEXT,i);for(var o=[];n=this._getLocation(),!this._attemptCharCode(t)||!r();)for(this.index>n.offset&&o.push(this.input.substring(n.offset,this.index));this.peek!==t;)o.push(this._readChar(e));return this._endToken([this._processCarriageReturns(o.join(""))],n)},e.prototype._consumeComment=function(e){var t=this;this._beginToken(S.COMMENT_START,e),this._requireCharCode(L),this._endToken([]);var r=this._consumeRawText(!1,L,function(){return t._attemptStr("->")});this._beginToken(S.COMMENT_END,r.sourceSpan.end),this._endToken([])},e.prototype._consumeCdata=function(e){var t=this;this._beginToken(S.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,Q,function(){return t._attemptStr("]>")});this._beginToken(S.CDATA_END,r.sourceSpan.end),this._endToken([])},e.prototype._consumeDocType=function(e){this._beginToken(S.DOC_TYPE,e),this._attemptUntilChar(z),this._advance(),this._endToken([this.input.substring(e.offset+2,this.index-1)])},e.prototype._consumePrefixAndName=function(){for(var e=this.index,t=null;this.peek!==q&&!l(this.peek);)this._advance();var r;this.peek===q?(this._advance(),t=this.input.substring(e,this.index-1), r=this.index):r=e,this._requireCharCodeUntilFn(c,this.index===r?1:0);var n=this.input.substring(r,this.index);return[t,n]},e.prototype._consumeTagOpen=function(e){var t,r=this._savePosition();try{if(!f(this.peek))throw this._createError(i(this.peek),this._getSpan());var n=this.index;for(this._consumeTagOpenStart(e),t=this.input.substring(n,this.index).toLowerCase(),this._attemptCharCodeUntilFn(a);this.peek!==F&&this.peek!==z;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(a),this._attemptCharCode(K)&&(this._attemptCharCodeUntilFn(a),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(a);this._consumeTagOpenEnd()}catch(o){if(o instanceof ae)return this._restorePosition(r),this._beginToken(S.TEXT,e),void this._endToken(["<"]);throw o}var s=E.getHtmlTagDefinition(t).contentType;s===E.HtmlTagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(t,!1):s===E.HtmlTagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(t,!0)},e.prototype._consumeRawTextWithTagClose=function(e,t){var r=this,n=this._consumeRawText(t,G,function(){return r._attemptCharCode(F)?(r._attemptCharCodeUntilFn(a),r._attemptStrCaseInsensitive(e)?(r._attemptCharCodeUntilFn(a),r._attemptCharCode(z)?!0:!1):!1):!1});this._beginToken(S.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,e])},e.prototype._consumeTagOpenStart=function(e){this._beginToken(S.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},e.prototype._consumeAttributeName=function(){this._beginToken(S.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},e.prototype._consumeAttributeValue=function(){this._beginToken(S.ATTR_VALUE);var e;if(this.peek===B||this.peek===V){var t=this.peek;this._advance();for(var r=[];this.peek!==t;)r.push(this._readChar(!0));e=r.join(""),this._advance()}else{var n=this.index;this._requireCharCodeUntilFn(c,1),e=this.input.substring(n,this.index)}this._endToken([this._processCarriageReturns(e)])},e.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(F)?S.TAG_OPEN_END_VOID:S.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(z),this._endToken([])},e.prototype._consumeTagClose=function(e){this._beginToken(S.TAG_CLOSE,e),this._attemptCharCodeUntilFn(a);var t;t=this._consumePrefixAndName(),this._attemptCharCodeUntilFn(a),this._requireCharCode(z),this._endToken(t)},e.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(S.TEXT,e);for(var t=[this._readChar(!0)];!d(this.peek);)t.push(this._readChar(!0));this._endToken([this._processCarriageReturns(t.join(""))])},e.prototype._savePosition=function(){return[this.peek,this.index,this.column,this.line,this.tokens.length]},e.prototype._restorePosition=function(e){this.peek=e[0],this.index=e[1],this.column=e[2],this.line=e[3];var t=e[4];t<this.tokens.length&&(this.tokens=w.ListWrapper.slice(this.tokens,0,t))},e}();return y.define=_,r.exports}),System.register("angular2/src/compiler/runtime_metadata",["angular2/src/core/di","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/compiler/directive_metadata","angular2/src/core/metadata/directives","angular2/src/core/linker/directive_resolver","angular2/src/core/linker/pipe_resolver","angular2/src/core/linker/view_resolver","angular2/src/core/linker/directive_lifecycle_reflector","angular2/src/core/linker/interfaces","angular2/src/core/reflection/reflection","angular2/src/core/di","angular2/src/core/platform_directives_and_pipes","angular2/src/compiler/util","angular2/src/compiler/url_resolver"],!0,function(e,t,r){function n(e,t){var r=[];return h.isPresent(t)&&o(t,r),h.isPresent(e.directives)&&o(e.directives,r),r}function i(e,t){var r=[];return h.isPresent(t)&&o(t,r),h.isPresent(e.pipes)&&o(e.pipes,r),r}function o(e,t){for(var r=0;r<e.length;r++){var n=f.resolveForwardRef(e[r]);h.isArray(n)?o(n,t):t.push(n)}}function a(e){return h.isPresent(e)&&e instanceof h.Type}function s(e,t){var r=t.moduleId;if(h.isPresent(r)){var n=x.getUrlScheme(r);return h.isPresent(n)&&n.length>0?r:"package:"+r+R.MODULE_SUFFIX}return P.reflector.importUri(e)}var c=System.global,l=c.define;c.define=void 0;var u=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},p=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},d=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},f=e("angular2/src/core/di"),h=e("angular2/src/facade/lang"),g=e("angular2/src/facade/exceptions"),m=e("angular2/src/compiler/directive_metadata"),v=e("angular2/src/core/metadata/directives"),y=e("angular2/src/core/linker/directive_resolver"),_=e("angular2/src/core/linker/pipe_resolver"),b=e("angular2/src/core/linker/view_resolver"),C=e("angular2/src/core/linker/directive_lifecycle_reflector"),w=e("angular2/src/core/linker/interfaces"),P=e("angular2/src/core/reflection/reflection"),E=e("angular2/src/core/di"),S=e("angular2/src/core/platform_directives_and_pipes"),R=e("angular2/src/compiler/util"),x=e("angular2/src/compiler/url_resolver"),O=function(){function e(e,t,r,n,i){this._directiveResolver=e,this._pipeResolver=t,this._viewResolver=r,this._platformDirectives=n,this._platformPipes=i,this._directiveCache=new Map,this._pipeCache=new Map}return e.prototype.getDirectiveMetadata=function(e){var t=this._directiveCache.get(e);if(h.isBlank(t)){var r=this._directiveResolver.resolve(e),n=null,i=null,o=null;if(r instanceof v.ComponentMetadata){var a=r;n=s(e,a);var c=this._viewResolver.resolve(e);i=new m.CompileTemplateMetadata({encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls}),o=a.changeDetection}t=m.CompileDirectiveMetadata.create({selector:r.selector,exportAs:r.exportAs,isComponent:h.isPresent(i),dynamicLoadable:!0,type:new m.CompileTypeMetadata({name:h.stringify(e),moduleUrl:n,runtime:e}),template:i,changeDetection:o,inputs:r.inputs,outputs:r.outputs,host:r.host,lifecycleHooks:w.LIFECYCLE_HOOKS_VALUES.filter(function(t){return C.hasLifecycleHook(t,e)})}),this._directiveCache.set(e,t)}return t},e.prototype.getPipeMetadata=function(e){var t=this._pipeCache.get(e);if(h.isBlank(t)){var r=this._pipeResolver.resolve(e),n=P.reflector.importUri(e);t=new m.CompilePipeMetadata({type:new m.CompileTypeMetadata({name:h.stringify(e),moduleUrl:n,runtime:e}),name:r.name,pure:r.pure}),this._pipeCache.set(e,t)}return t},e.prototype.getViewDirectivesMetadata=function(e){for(var t=this,r=this._viewResolver.resolve(e),i=n(r,this._platformDirectives),o=0;o<i.length;o++)if(!a(i[o]))throw new g.BaseException("Unexpected directive value '"+h.stringify(i[o])+"' on the View of component '"+h.stringify(e)+"'");return i.map(function(e){return t.getDirectiveMetadata(e)})},e.prototype.getViewPipesMetadata=function(e){for(var t=this,r=this._viewResolver.resolve(e),n=i(r,this._platformPipes),o=0;o<n.length;o++)if(!a(n[o]))throw new g.BaseException("Unexpected piped value '"+h.stringify(n[o])+"' on the View of component '"+h.stringify(e)+"'");return n.map(function(e){return t.getPipeMetadata(e)})},e=u([E.Injectable(),d(3,E.Optional()),d(3,E.Inject(S.PLATFORM_DIRECTIVES)),d(4,E.Optional()),d(4,E.Inject(S.PLATFORM_PIPES)),p("design:paramtypes",[y.DirectiveResolver,_.PipeResolver,b.ViewResolver,Array,Array])],e)}();return t.RuntimeMetadataResolver=O,c.define=l,r.exports}),System.register("angular2/src/common/pipes",["angular2/src/common/pipes/async_pipe","angular2/src/common/pipes/date_pipe","angular2/src/common/pipes/json_pipe","angular2/src/common/pipes/slice_pipe","angular2/src/common/pipes/lowercase_pipe","angular2/src/common/pipes/number_pipe","angular2/src/common/pipes/uppercase_pipe","angular2/src/common/pipes/replace_pipe","angular2/src/common/pipes/i18n_plural_pipe","angular2/src/common/pipes/i18n_select_pipe","angular2/src/common/pipes/common_pipes"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/common/pipes/async_pipe");t.AsyncPipe=o.AsyncPipe;var a=e("angular2/src/common/pipes/date_pipe");t.DatePipe=a.DatePipe;var s=e("angular2/src/common/pipes/json_pipe");t.JsonPipe=s.JsonPipe;var c=e("angular2/src/common/pipes/slice_pipe");t.SlicePipe=c.SlicePipe;var l=e("angular2/src/common/pipes/lowercase_pipe");t.LowerCasePipe=l.LowerCasePipe;var u=e("angular2/src/common/pipes/number_pipe");t.NumberPipe=u.NumberPipe,t.DecimalPipe=u.DecimalPipe,t.PercentPipe=u.PercentPipe,t.CurrencyPipe=u.CurrencyPipe;var p=e("angular2/src/common/pipes/uppercase_pipe");t.UpperCasePipe=p.UpperCasePipe;var d=e("angular2/src/common/pipes/replace_pipe");t.ReplacePipe=d.ReplacePipe;var f=e("angular2/src/common/pipes/i18n_plural_pipe");t.I18nPluralPipe=f.I18nPluralPipe;var h=e("angular2/src/common/pipes/i18n_select_pipe");t.I18nSelectPipe=h.I18nSelectPipe;var g=e("angular2/src/common/pipes/common_pipes");return t.COMMON_PIPES=g.COMMON_PIPES,n.define=i,r.exports}),System.register("angular2/src/common/forms/directives/ng_control_name",["angular2/src/facade/lang","angular2/src/facade/async","angular2/core","angular2/src/common/forms/directives/control_container","angular2/src/common/forms/directives/ng_control","angular2/src/common/forms/directives/control_value_accessor","angular2/src/common/forms/directives/shared","angular2/src/common/forms/validators"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/async"),p=e("angular2/core"),d=e("angular2/src/common/forms/directives/control_container"),f=e("angular2/src/common/forms/directives/ng_control"),h=e("angular2/src/common/forms/directives/control_value_accessor"),g=e("angular2/src/common/forms/directives/shared"),m=e("angular2/src/common/forms/validators"),v=l.CONST_EXPR(new p.Provider(f.NgControl,{useExisting:p.forwardRef(function(){return y})})),y=function(e){function t(t,r,n,i){e.call(this),this._parent=t,this._validators=r,this._asyncValidators=n,this.update=new u.EventEmitter,this._added=!1,this.valueAccessor=g.selectValueAccessor(this,i)}return o(t,e),t.prototype.ngOnChanges=function(e){this._added||(this.formDirective.addControl(this),this._added=!0),g.isPropertyUpdated(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,u.ObservableWrapper.callEmit(this.update,e)},Object.defineProperty(t.prototype,"path",{get:function(){return g.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return g.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return g.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getControl(this)},enumerable:!0,configurable:!0}),t=a([p.Directive({selector:"[ngControl]",bindings:[v],inputs:["name: ngControl","model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}),c(0,p.Host()),c(0,p.SkipSelf()),c(1,p.Optional()),c(1,p.Self()),c(1,p.Inject(m.NG_VALIDATORS)),c(2,p.Optional()),c(2,p.Self()),c(2,p.Inject(m.NG_ASYNC_VALIDATORS)),c(3,p.Optional()),c(3,p.Self()),c(3,p.Inject(h.NG_VALUE_ACCESSOR)),s("design:paramtypes",[d.ControlContainer,Array,Array,Array])],t)}(f.NgControl);return t.NgControlName=y,n.define=i,r.exports}),System.register("angular2/src/platform/browser/generic_browser_adapter",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/platform/dom/dom_adapter","angular2/src/platform/browser/xhr_impl"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=e("angular2/src/facade/collection"),s=e("angular2/src/facade/lang"),c=e("angular2/src/platform/dom/dom_adapter"),l=e("angular2/src/platform/browser/xhr_impl"),u=function(e){function t(){var t=this;e.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var r=this.createElement("div",this.defaultDoc());if(s.isPresent(this.getStyle(r,"animationName")))this._animationPrefix="";else for(var n=["Webkit","Moz","O","ms"],i=0;i<n.length;i++)if(s.isPresent(this.getStyle(r,n[i]+"AnimationName"))){this._animationPrefix="-"+n[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};a.StringMapWrapper.forEach(o,function(e,n){s.isPresent(t.getStyle(r,n))&&(t._transitionEnd=e)})}catch(c){this._animationPrefix=null,this._transitionEnd=null}}return o(t,e),t.prototype.getXHR=function(){return l.XHRImpl},t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,r){e.href=null==r?t:t+"/../"+r},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return s.isFunction(this.defaultDoc().body.createShadowRoot)},t.prototype.getAnimationPrefix=function(){return s.isPresent(this._animationPrefix)?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return s.isPresent(this._transitionEnd)?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return s.isPresent(this._animationPrefix)&&s.isPresent(this._transitionEnd)},t}(c.DomAdapter);return t.GenericBrowserDomAdapter=u,n.define=i,r.exports}),System.register("angular2/src/platform/browser/tools/tools",["angular2/src/facade/lang","angular2/src/platform/browser/tools/common_tools"],!0,function(e,t,r){function n(e){l.ng=new c.AngularTools(e)}function i(){delete l.ng}var o=System.global,a=o.define;o.define=void 0;var s=e("angular2/src/facade/lang"),c=e("angular2/src/platform/browser/tools/common_tools"),l=s.global;return t.enableDebugTools=n,t.disableDebugTools=i,o.define=a,r.exports}),System.register("angular2/src/compiler/html_parser",["angular2/src/facade/lang","angular2/src/facade/collection","angular2/src/compiler/html_ast","angular2/src/core/di","angular2/src/compiler/html_lexer","angular2/src/compiler/parse_util","angular2/src/compiler/html_tags"],!0,function(e,t,r){function n(e,t,r){return l.isBlank(e)&&(e=g.getHtmlTagDefinition(t).implicitNamespacePrefix,l.isBlank(e)&&l.isPresent(r)&&(e=g.getNsPrefix(r.name))),g.mergeNsAndName(e,t)}var i=System.global,o=i.define;i.define=void 0;var a=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},s=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},l=e("angular2/src/facade/lang"),u=e("angular2/src/facade/collection"),p=e("angular2/src/compiler/html_ast"),d=e("angular2/src/core/di"),f=e("angular2/src/compiler/html_lexer"),h=e("angular2/src/compiler/parse_util"),g=e("angular2/src/compiler/html_tags"),m=function(e){function t(t,r,n){e.call(this,r,n),this.elementName=t}return a(t,e),t.create=function(e,r,n){return new t(e,r,n)},t}(h.ParseError);t.HtmlTreeError=m;var v=function(){function e(e,t){this.rootNodes=e,this.errors=t}return e}();t.HtmlParseTreeResult=v;var y=function(){function e(){}return e.prototype.parse=function(e,t){var r=f.tokenizeHtml(e,t),n=new _(r.tokens).build();return new v(n.rootNodes,r.errors.concat(n.errors))},e=s([d.Injectable(),c("design:paramtypes",[])],e)}();t.HtmlParser=y;var _=function(){function e(e){this.tokens=e,this.index=-1,this.rootNodes=[],this.errors=[],this.elementStack=[],this._advance()}return e.prototype.build=function(){for(;this.peek.type!==f.HtmlTokenType.EOF;)this.peek.type===f.HtmlTokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this.peek.type===f.HtmlTokenType.TAG_CLOSE?this._consumeEndTag(this._advance()):this.peek.type===f.HtmlTokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this.peek.type===f.HtmlTokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this.peek.type===f.HtmlTokenType.TEXT||this.peek.type===f.HtmlTokenType.RAW_TEXT||this.peek.type===f.HtmlTokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._advance();return new v(this.rootNodes,this.errors)},e.prototype._advance=function(){var e=this.peek;return this.index<this.tokens.length-1&&this.index++,this.peek=this.tokens[this.index],e},e.prototype._advanceIf=function(e){return this.peek.type===e?this._advance():null},e.prototype._consumeCdata=function(e){this._consumeText(this._advance()),this._advanceIf(f.HtmlTokenType.CDATA_END)},e.prototype._consumeComment=function(e){this._advanceIf(f.HtmlTokenType.RAW_TEXT),this._advanceIf(f.HtmlTokenType.COMMENT_END)},e.prototype._consumeText=function(e){var t=e.parts[0];if(t.length>0&&"\n"==t[0]){var r=this._getParentElement();l.isPresent(r)&&0==r.children.length&&g.getHtmlTagDefinition(r.name).ignoreFirstLf&&(t=t.substring(1))}t.length>0&&this._addToParent(new p.HtmlTextAst(t,e.sourceSpan))},e.prototype._closeVoidElement=function(){if(this.elementStack.length>0){var e=u.ListWrapper.last(this.elementStack);g.getHtmlTagDefinition(e.name).isVoid&&this.elementStack.pop()}},e.prototype._consumeStartTag=function(e){for(var t=e.parts[0],r=e.parts[1],i=[];this.peek.type===f.HtmlTokenType.ATTR_NAME;)i.push(this._consumeAttr(this._advance()));var o=n(t,r,this._getParentElement()),a=!1;this.peek.type===f.HtmlTokenType.TAG_OPEN_END_VOID?(this._advance(),a=!0,null!=g.getNsPrefix(o)||g.getHtmlTagDefinition(o).isVoid||this.errors.push(m.create(o,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))):this.peek.type===f.HtmlTokenType.TAG_OPEN_END&&(this._advance(),a=!1);var s=this.peek.sourceSpan.start,c=new p.HtmlElementAst(o,i,[],new h.ParseSourceSpan(e.sourceSpan.start,s));this._pushElement(c),a&&this._popElement(o)},e.prototype._pushElement=function(e){if(this.elementStack.length>0){var t=u.ListWrapper.last(this.elementStack);g.getHtmlTagDefinition(t.name).isClosedByChild(e.name)&&this.elementStack.pop()}var r=g.getHtmlTagDefinition(e.name),t=this._getParentElement();if(r.requireExtraParent(l.isPresent(t)?t.name:null)){var n=new p.HtmlElementAst(r.parentToAdd,[],[e],e.sourceSpan);this._addToParent(n),this.elementStack.push(n),this.elementStack.push(e)}else this._addToParent(e),this.elementStack.push(e)},e.prototype._consumeEndTag=function(e){var t=n(e.parts[0],e.parts[1],this._getParentElement());g.getHtmlTagDefinition(t).isVoid?this.errors.push(m.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this.errors.push(m.create(t,e.sourceSpan,'Unexpected closing tag "'+e.parts[1]+'"'))},e.prototype._popElement=function(e){for(var t=this.elementStack.length-1;t>=0;t--){var r=this.elementStack[t];if(r.name==e)return u.ListWrapper.splice(this.elementStack,t,this.elementStack.length-t),!0;if(!g.getHtmlTagDefinition(r.name).closedByParent)return!1}return!1},e.prototype._consumeAttr=function(e){var t=g.mergeNsAndName(e.parts[0],e.parts[1]),r=e.sourceSpan.end,n="";if(this.peek.type===f.HtmlTokenType.ATTR_VALUE){var i=this._advance();n=i.parts[0],r=i.sourceSpan.end}return new p.HtmlAttrAst(t,n,new h.ParseSourceSpan(e.sourceSpan.start,r))},e.prototype._getParentElement=function(){return this.elementStack.length>0?u.ListWrapper.last(this.elementStack):null},e.prototype._addToParent=function(e){var t=this._getParentElement();l.isPresent(t)?t.children.push(e):this.rootNodes.push(e)},e}();return i.define=o,r.exports}),System.register("angular2/src/common/forms",["angular2/src/common/forms/model","angular2/src/common/forms/directives/abstract_control_directive","angular2/src/common/forms/directives/control_container","angular2/src/common/forms/directives/ng_control_name","angular2/src/common/forms/directives/ng_form_control","angular2/src/common/forms/directives/ng_model","angular2/src/common/forms/directives/ng_control","angular2/src/common/forms/directives/ng_control_group","angular2/src/common/forms/directives/ng_form_model","angular2/src/common/forms/directives/ng_form","angular2/src/common/forms/directives/control_value_accessor","angular2/src/common/forms/directives/default_value_accessor","angular2/src/common/forms/directives/ng_control_status","angular2/src/common/forms/directives/checkbox_value_accessor","angular2/src/common/forms/directives/select_control_value_accessor","angular2/src/common/forms/directives","angular2/src/common/forms/validators","angular2/src/common/forms/directives/validators","angular2/src/common/forms/form_builder","angular2/src/common/forms/form_builder","angular2/src/common/forms/directives/radio_control_value_accessor","angular2/src/facade/lang"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/common/forms/model");t.AbstractControl=o.AbstractControl,t.Control=o.Control,t.ControlGroup=o.ControlGroup,t.ControlArray=o.ControlArray;var a=e("angular2/src/common/forms/directives/abstract_control_directive");t.AbstractControlDirective=a.AbstractControlDirective;var s=e("angular2/src/common/forms/directives/control_container");t.ControlContainer=s.ControlContainer;var c=e("angular2/src/common/forms/directives/ng_control_name");t.NgControlName=c.NgControlName;var l=e("angular2/src/common/forms/directives/ng_form_control");t.NgFormControl=l.NgFormControl;var u=e("angular2/src/common/forms/directives/ng_model");t.NgModel=u.NgModel;var p=e("angular2/src/common/forms/directives/ng_control");t.NgControl=p.NgControl;var d=e("angular2/src/common/forms/directives/ng_control_group");t.NgControlGroup=d.NgControlGroup;var f=e("angular2/src/common/forms/directives/ng_form_model");t.NgFormModel=f.NgFormModel;var h=e("angular2/src/common/forms/directives/ng_form");t.NgForm=h.NgForm;var g=e("angular2/src/common/forms/directives/control_value_accessor");t.NG_VALUE_ACCESSOR=g.NG_VALUE_ACCESSOR;var m=e("angular2/src/common/forms/directives/default_value_accessor");t.DefaultValueAccessor=m.DefaultValueAccessor;var v=e("angular2/src/common/forms/directives/ng_control_status");t.NgControlStatus=v.NgControlStatus;var y=e("angular2/src/common/forms/directives/checkbox_value_accessor");t.CheckboxControlValueAccessor=y.CheckboxControlValueAccessor;var _=e("angular2/src/common/forms/directives/select_control_value_accessor");t.NgSelectOption=_.NgSelectOption,t.SelectControlValueAccessor=_.SelectControlValueAccessor;var b=e("angular2/src/common/forms/directives");t.FORM_DIRECTIVES=b.FORM_DIRECTIVES,t.RadioButtonState=b.RadioButtonState;var C=e("angular2/src/common/forms/validators");t.NG_VALIDATORS=C.NG_VALIDATORS,t.NG_ASYNC_VALIDATORS=C.NG_ASYNC_VALIDATORS,t.Validators=C.Validators;var w=e("angular2/src/common/forms/directives/validators");t.RequiredValidator=w.RequiredValidator,t.MinLengthValidator=w.MinLengthValidator,t.MaxLengthValidator=w.MaxLengthValidator,t.PatternValidator=w.PatternValidator;var P=e("angular2/src/common/forms/form_builder");t.FormBuilder=P.FormBuilder;var E=e("angular2/src/common/forms/form_builder"),S=e("angular2/src/common/forms/directives/radio_control_value_accessor"),R=e("angular2/src/facade/lang");return t.FORM_PROVIDERS=R.CONST_EXPR([E.FormBuilder,S.RadioControlRegistry]),t.FORM_BINDINGS=t.FORM_PROVIDERS,n.define=i,r.exports}),System.register("angular2/src/platform/browser/browser_adapter",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/src/platform/dom/dom_adapter","angular2/src/platform/browser/generic_browser_adapter"],!0,function(e,t,r){function n(){return l.isBlank(v)&&(v=document.querySelector("base"),l.isBlank(v))?null:v.getAttribute("href")}function i(e){return l.isBlank(y)&&(y=document.createElement("a")),y.setAttribute("href",e),"/"===y.pathname.charAt(0)?y.pathname:"/"+y.pathname}var o=System.global,a=o.define;o.define=void 0;var s=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=e("angular2/src/facade/collection"),l=e("angular2/src/facade/lang"),u=e("angular2/src/platform/dom/dom_adapter"),p=e("angular2/src/platform/browser/generic_browser_adapter"),d={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},f=3,h={"\b":"Backspace"," ":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},g={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},m=function(e){function t(){e.apply(this,arguments)}return s(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){u.setRootDomAdapter(new t)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,r){e[t]=r},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,r){e[t].apply(e,r)},t.prototype.logError=function(e){window.console.error?window.console.error(e):window.console.log(e)},t.prototype.log=function(e){window.console.log(e)},t.prototype.logGroup=function(e){window.console.group?(window.console.group(e),this.logError(e)):window.console.log(e)},t.prototype.logGroupEnd=function(){window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return d},enumerable:!0,configurable:!0}),t.prototype.query=function(e){return document.querySelector(e)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,r){e.addEventListener(t,r,!1)},t.prototype.onAndCancel=function(e,t,r){return e.addEventListener(t,r,!1),function(){e.removeEventListener(t,r,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=document.createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||l.isPresent(e.returnValue)&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,r=c.ListWrapper.createFixedSize(t.length),n=0;n<t.length;n++)r[n]=t[n];return r},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,r){e.replaceChild(t,r)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t){e.parentNode.insertBefore(t,e)},t.prototype.insertAllBefore=function(e,t){t.forEach(function(t){return e.parentNode.insertBefore(t,e)})},t.prototype.insertAfter=function(e,t){e.parentNode.insertBefore(t,e.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return document.createComment(e)},t.prototype.createTemplate=function(e){var t=document.createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return void 0===t&&(t=document),t.createElement(e)},t.prototype.createElementNS=function(e,t,r){return void 0===r&&(r=document),r.createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return void 0===t&&(t=document),t.createTextNode(e)},t.prototype.createScriptTag=function(e,t,r){void 0===r&&(r=document);var n=r.createElement("SCRIPT");return n.setAttribute(e,t),n},t.prototype.createStyleElement=function(e,t){void 0===t&&(t=document);var r=t.createElement("style");return this.appendChild(r,this.createTextNode(e)),r},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,r){e.style[t]=r},t.prototype.removeStyle=function(e,t){e.style[t]=null},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,r){void 0===r&&(r=null);var n=this.getStyle(e,t)||"";return r?n==r:n.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,r=e.attributes,n=0;n<r.length;n++){var i=r[n];t.set(i.name,i.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,r){return e.hasAttributeNS(t,r)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,r){return e.getAttributeNS(t,r)},t.prototype.setAttribute=function(e,t,r){e.setAttribute(t,r)},t.prototype.setAttributeNS=function(e,t,r,n){e.setAttributeNS(t,r,n)},t.prototype.removeAttribute=function(e,t){ e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,r){e.removeAttributeNS(t,r)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.defaultDoc=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(){return document.title},t.prototype.setTitle=function(e){document.title=e||""},t.prototype.elementMatches=function(e,t){var r=!1;return e instanceof HTMLElement&&(e.matches?r=e.matches(t):e.msMatchesSelector?r=e.msMatchesSelector(t):e.webkitMatchesSelector&&(r=e.webkitMatchesSelector(t))),r},t.prototype.isTemplateElement=function(e){return e instanceof HTMLElement&&"TEMPLATE"==e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return e instanceof HTMLElement&&l.isPresent(e.shadowRoot)},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){var t=e;return this.isTemplateElement(e)&&(t=this.content(e)),document.importNode(t,!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.href},t.prototype.getEventKey=function(e){var t=e.key;if(l.isBlank(t)){if(t=e.keyIdentifier,l.isBlank(t))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===f&&g.hasOwnProperty(t)&&(t=g[t]))}return h.hasOwnProperty(t)&&(t=h[t]),t},t.prototype.getGlobalEventTarget=function(e){return"window"==e?window:"document"==e?document:"body"==e?document.body:void 0},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(){var e=n();return l.isBlank(e)?null:i(e)},t.prototype.resetBaseElement=function(){v=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,r){this.setAttribute(e,"data-"+t,r)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.setGlobalVar=function(e,t){l.setValueOnPath(l.global,e,t)},t.prototype.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)},t.prototype.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.prototype.performanceNow=function(){return l.isPresent(window.performance)&&l.isPresent(window.performance.now)?window.performance.now():l.DateWrapper.toMillis(l.DateWrapper.now())},t}(p.GenericBrowserDomAdapter);t.BrowserDomAdapter=m;var v=null,y=null;return o.define=a,r.exports}),System.register("angular2/src/compiler/template_parser",["angular2/src/facade/collection","angular2/src/facade/lang","angular2/core","angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/core/change_detection/change_detection","angular2/src/compiler/html_parser","angular2/src/compiler/html_tags","angular2/src/compiler/parse_util","angular2/src/core/change_detection/parser/ast","angular2/src/compiler/template_ast","angular2/src/compiler/selector","angular2/src/compiler/schema/element_schema_registry","angular2/src/compiler/template_preparser","angular2/src/compiler/style_url_resolver","angular2/src/compiler/html_ast","angular2/src/compiler/util"],!0,function(e,t,r){function n(e){return d.StringWrapper.split(e.trim(),/\s+/g)}function i(e,t){var r=new w.CssSelector,i=y.splitNsName(e)[1];r.setElement(i);for(var o=0;o<t.length;o++){var a=t[o][0],s=y.splitNsName(a)[1],c=t[o][1];if(r.addAttribute(s,c),a.toLowerCase()==I){var l=n(c);l.forEach(function(e){return r.addClassName(e)})}}return r}var o=System.global,a=o.define;o.define=void 0;var s=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},c=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},u=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},p=e("angular2/src/facade/collection"),d=e("angular2/src/facade/lang"),f=e("angular2/core"),h=e("angular2/src/facade/lang"),g=e("angular2/src/facade/exceptions"),m=e("angular2/src/core/change_detection/change_detection"),v=e("angular2/src/compiler/html_parser"),y=e("angular2/src/compiler/html_tags"),_=e("angular2/src/compiler/parse_util"),b=e("angular2/src/core/change_detection/parser/ast"),C=e("angular2/src/compiler/template_ast"),w=e("angular2/src/compiler/selector"),P=e("angular2/src/compiler/schema/element_schema_registry"),E=e("angular2/src/compiler/template_preparser"),S=e("angular2/src/compiler/style_url_resolver"),R=e("angular2/src/compiler/html_ast"),x=e("angular2/src/compiler/util"),O=/^(?:(?:(?:(bind-)|(var-|#)|(on-)|(bindon-))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,D="template",A="template",T="*",I="class",k=".",N="attr",V="class",M="style",j=w.CssSelector.parse("*")[0];t.TEMPLATE_TRANSFORMS=h.CONST_EXPR(new f.OpaqueToken("TemplateTransforms"));var B=function(e){function t(t,r){e.call(this,r,t)}return s(t,e),t}(_.ParseError);t.TemplateParseError=B;var L=function(){function e(e,t,r,n){this._exprParser=e,this._schemaRegistry=t,this._htmlParser=r,this.transforms=n}return e.prototype.parse=function(e,t,r,n){var i=new F(t,r,this._exprParser,this._schemaRegistry),o=this._htmlParser.parse(e,n),a=R.htmlVisitAll(i,o.rootNodes,q),s=o.errors.concat(i.errors);if(s.length>0){var c=s.join("\n");throw new g.BaseException("Template parse errors:\n"+c)}return d.isPresent(this.transforms)&&this.transforms.forEach(function(e){a=C.templateVisitAll(e,a)}),a},e=c([f.Injectable(),u(3,f.Optional()),u(3,f.Inject(t.TEMPLATE_TRANSFORMS)),l("design:paramtypes",[m.Parser,P.ElementSchemaRegistry,v.HtmlParser,Array])],e)}();t.TemplateParser=L;var F=function(){function e(e,t,r,n){var i=this;this._exprParser=r,this._schemaRegistry=n,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new w.SelectorMatcher,p.ListWrapper.forEachWithIndex(e,function(e,t){var r=w.CssSelector.parse(e.selector);i.selectorMatcher.addSelectables(r,e),i.directivesIndex.set(e,t)}),this.pipesByName=new Map,t.forEach(function(e){return i.pipesByName.set(e.name,e)})}return e.prototype._reportError=function(e,t){this.errors.push(new B(e,t))},e.prototype._parseInterpolation=function(e,t){var r=t.start.toString();try{var n=this._exprParser.parseInterpolation(e,r);return this._checkPipes(n,t),n}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},e.prototype._parseAction=function(e,t){var r=t.start.toString();try{var n=this._exprParser.parseAction(e,r);return this._checkPipes(n,t),n}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},e.prototype._parseBinding=function(e,t){var r=t.start.toString();try{var n=this._exprParser.parseBinding(e,r);return this._checkPipes(n,t),n}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},e.prototype._parseTemplateBindings=function(e,t){var r=this,n=t.start.toString();try{var i=this._exprParser.parseTemplateBindings(e,n);return i.forEach(function(e){d.isPresent(e.expression)&&r._checkPipes(e.expression,t)}),i}catch(o){return this._reportError(""+o,t),[]}},e.prototype._checkPipes=function(e,t){var r=this;if(d.isPresent(e)){var n=new K;e.visit(n),n.pipes.forEach(function(e){r.pipesByName.has(e)||r._reportError("The pipe '"+e+"' could not be found",t)})}},e.prototype.visitText=function(e,t){var r=t.findNgContentIndex(j),n=this._parseInterpolation(e.value,e.sourceSpan);return d.isPresent(n)?new C.BoundTextAst(n,r,e.sourceSpan):new C.TextAst(e.value,r,e.sourceSpan)},e.prototype.visitAttr=function(e,t){return new C.AttrAst(e.name,e.value,e.sourceSpan)},e.prototype.visitElement=function(e,t){var r=this,n=e.name,o=E.preparseElement(e);if(o.type===E.PreparsedElementType.SCRIPT||o.type===E.PreparsedElementType.STYLE)return null;if(o.type===E.PreparsedElementType.STYLESHEET&&S.isStyleUrlResolvable(o.hrefAttr))return null;var a=[],s=[],c=[],l=[],u=[],p=[],f=[],h=!1,g=[];e.attrs.forEach(function(e){var t=r._parseAttr(e,a,s,l,c),n=r._parseInlineTemplateBinding(e,f,u,p);t||n||(g.push(r.visitAttr(e,null)),a.push([e.name,e.value])),n&&(h=!0)});var m,v=y.splitNsName(n.toLowerCase())[1],_=v==D,b=i(n,a),w=this._createDirectiveAsts(e.name,this._parseDirectives(this.selectorMatcher,b),s,_?[]:c,e.sourceSpan),P=this._createElementPropertyAsts(e.name,s,w),x=R.htmlVisitAll(o.nonBindable?G:this,e.children,H.create(w)),O=h?null:t.findNgContentIndex(b);if(o.type===E.PreparsedElementType.NG_CONTENT)d.isPresent(e.children)&&e.children.length>0&&this._reportError("<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content>",e.sourceSpan),m=new C.NgContentAst(this.ngContentCount++,O,e.sourceSpan);else if(_)this._assertAllEventsPublishedByDirectives(w,l),this._assertNoComponentsNorElementBindingsOnTemplate(w,P,e.sourceSpan),m=new C.EmbeddedTemplateAst(g,l,c,w,x,O,e.sourceSpan);else{this._assertOnlyOneComponent(w,e.sourceSpan);var A=c.filter(function(e){return 0===e.value.length});m=new C.ElementAst(n,g,P,l,A,w,x,O,e.sourceSpan)}if(h){var T=i(D,f),I=this._createDirectiveAsts(e.name,this._parseDirectives(this.selectorMatcher,T),u,[],e.sourceSpan),k=this._createElementPropertyAsts(e.name,u,I);this._assertNoComponentsNorElementBindingsOnTemplate(I,k,e.sourceSpan),m=new C.EmbeddedTemplateAst([],[],p,I,[m],t.findNgContentIndex(T),e.sourceSpan)}return m},e.prototype._parseInlineTemplateBinding=function(e,t,r,n){var i=null;if(e.name==A)i=e.value;else if(e.name.startsWith(T)){var o=e.name.substring(T.length);i=0==e.value.length?o:o+" "+e.value}if(d.isPresent(i)){for(var a=this._parseTemplateBindings(i,e.sourceSpan),s=0;s<a.length;s++){var c=a[s];c.keyIsVar?(n.push(new C.VariableAst(c.key,c.name,e.sourceSpan)),t.push([c.key,c.name])):d.isPresent(c.expression)?this._parsePropertyAst(c.key,c.expression,e.sourceSpan,t,r):(t.push([c.key,""]),this._parseLiteralAttr(c.key,null,e.sourceSpan,r))}return!0}return!1},e.prototype._parseAttr=function(e,t,r,n,i){var o=this._normalizeAttributeName(e.name),a=e.value,s=d.RegExpWrapper.firstMatch(O,o),c=!1;if(d.isPresent(s))if(c=!0,d.isPresent(s[1]))this._parseProperty(s[5],a,e.sourceSpan,t,r);else if(d.isPresent(s[2])){var l=s[5];this._parseVariable(l,a,e.sourceSpan,i)}else d.isPresent(s[3])?this._parseEvent(s[5],a,e.sourceSpan,t,n):d.isPresent(s[4])?(this._parseProperty(s[5],a,e.sourceSpan,t,r),this._parseAssignmentEvent(s[5],a,e.sourceSpan,t,n)):d.isPresent(s[6])?(this._parseProperty(s[6],a,e.sourceSpan,t,r),this._parseAssignmentEvent(s[6],a,e.sourceSpan,t,n)):d.isPresent(s[7])?this._parseProperty(s[7],a,e.sourceSpan,t,r):d.isPresent(s[8])&&this._parseEvent(s[8],a,e.sourceSpan,t,n);else c=this._parsePropertyInterpolation(o,a,e.sourceSpan,t,r);return c||this._parseLiteralAttr(o,a,e.sourceSpan,r),c},e.prototype._normalizeAttributeName=function(e){return e.toLowerCase().startsWith("data-")?e.substring(5):e},e.prototype._parseVariable=function(e,t,r,n){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',r),n.push(new C.VariableAst(e,t,r))},e.prototype._parseProperty=function(e,t,r,n,i){this._parsePropertyAst(e,this._parseBinding(t,r),r,n,i)},e.prototype._parsePropertyInterpolation=function(e,t,r,n,i){var o=this._parseInterpolation(t,r);return d.isPresent(o)?(this._parsePropertyAst(e,o,r,n,i),!0):!1},e.prototype._parsePropertyAst=function(e,t,r,n,i){n.push([e,t.source]),i.push(new U(e,t,!1,r))},e.prototype._parseAssignmentEvent=function(e,t,r,n,i){this._parseEvent(e+"Change",t+"=$event",r,n,i)},e.prototype._parseEvent=function(e,t,r,n,i){var o=x.splitAtColon(e,[null,e]),a=o[0],s=o[1],c=this._parseAction(t,r);n.push([e,c.source]),i.push(new C.BoundEventAst(s,a,c,r))},e.prototype._parseLiteralAttr=function(e,t,r,n){n.push(new U(e,this._exprParser.wrapLiteralPrimitive(t,""),!0,r))},e.prototype._parseDirectives=function(e,t){var r=this,n=[];return e.match(t,function(e,t){n.push(t)}),p.ListWrapper.sort(n,function(e,t){var n=e.isComponent,i=t.isComponent;return n&&!i?-1:!n&&i?1:r.directivesIndex.get(e)-r.directivesIndex.get(t)}),n},e.prototype._createDirectiveAsts=function(e,t,r,n,i){var o=this,a=new Set,s=t.map(function(t){var s=[],c=[],l=[];o._createDirectiveHostPropertyAsts(e,t.hostProperties,i,s),o._createDirectiveHostEventAsts(t.hostListeners,i,c),o._createDirectivePropertyAsts(t.inputs,r,l);var u=[];return n.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(u.push(e),a.add(e.name))}),new C.DirectiveAst(t,l,s,c,u,i)});return n.forEach(function(e){e.value.length>0&&!p.SetWrapper.has(a,e.name)&&o._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan)}),s},e.prototype._createDirectiveHostPropertyAsts=function(e,t,r,n){var i=this;d.isPresent(t)&&p.StringMapWrapper.forEach(t,function(t,o){var a=i._parseBinding(t,r);n.push(i._createElementPropertyAst(e,o,a,r))})},e.prototype._createDirectiveHostEventAsts=function(e,t,r){var n=this;d.isPresent(e)&&p.StringMapWrapper.forEach(e,function(e,i){n._parseEvent(i,e,t,[],r)})},e.prototype._createDirectivePropertyAsts=function(e,t,r){if(d.isPresent(e)){var n=new Map;t.forEach(function(e){var t=n.get(e.name);(d.isBlank(t)||t.isLiteral)&&n.set(e.name,e)}),p.StringMapWrapper.forEach(e,function(e,t){var i=n.get(e);d.isPresent(i)&&r.push(new C.BoundDirectivePropertyAst(t,i.name,i.expression,i.sourceSpan))})}},e.prototype._createElementPropertyAsts=function(e,t,r){var n=this,i=[],o=new Map;return r.forEach(function(e){e.inputs.forEach(function(e){o.set(e.templateName,e)})}),t.forEach(function(t){!t.isLiteral&&d.isBlank(o.get(t.name))&&i.push(n._createElementPropertyAst(e,t.name,t.expression,t.sourceSpan))}),i},e.prototype._createElementPropertyAst=function(e,t,r,n){var i,o,a=null,s=t.split(k);if(1===s.length)o=this._schemaRegistry.getMappedPropName(s[0]),i=C.PropertyBindingType.Property,this._schemaRegistry.hasProperty(e,o)||this._reportError("Can't bind to '"+o+"' since it isn't a known native property",n);else if(s[0]==N){o=s[1];var c=o.indexOf(":");if(c>-1){var l=o.substring(0,c),u=o.substring(c+1);o=y.mergeNsAndName(l,u)}i=C.PropertyBindingType.Attribute}else s[0]==V?(o=s[1],i=C.PropertyBindingType.Class):s[0]==M?(a=s.length>2?s[2]:null,o=s[1],i=C.PropertyBindingType.Style):(this._reportError("Invalid property name '"+t+"'",n),i=null);return new C.BoundElementPropertyAst(o,i,r,a,n)},e.prototype._findComponentDirectiveNames=function(e){var t=[];return e.forEach(function(e){var r=e.directive.type.name;e.directive.isComponent&&t.push(r)}),t},e.prototype._assertOnlyOneComponent=function(e,t){var r=this._findComponentDirectiveNames(e);r.length>1&&this._reportError("More than one component: "+r.join(","),t)},e.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(e,t,r){var n=this,i=this._findComponentDirectiveNames(e);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),r),t.forEach(function(e){n._reportError("Property binding "+e.name+" not used by any directive on an embedded template",r)})},e.prototype._assertAllEventsPublishedByDirectives=function(e,t){var r=this,n=new Set;e.forEach(function(e){p.StringMapWrapper.forEach(e.directive.outputs,function(e,t){n.add(e)})}),t.forEach(function(e){(d.isPresent(e.target)||!p.SetWrapper.has(n,e.name))&&r._reportError("Event binding "+e.fullName+" not emitted by any directive on an embedded template",e.sourceSpan)})},e}(),W=function(){function e(){}return e.prototype.visitElement=function(e,t){var r=E.preparseElement(e);if(r.type===E.PreparsedElementType.SCRIPT||r.type===E.PreparsedElementType.STYLE||r.type===E.PreparsedElementType.STYLESHEET)return null;var n=e.attrs.map(function(e){return[e.name,e.value]}),o=i(e.name,n),a=t.findNgContentIndex(o),s=R.htmlVisitAll(this,e.children,q);return new C.ElementAst(e.name,R.htmlVisitAll(this,e.attrs),[],[],[],[],s,a,e.sourceSpan)},e.prototype.visitAttr=function(e,t){return new C.AttrAst(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){var r=t.findNgContentIndex(j);return new C.TextAst(e.value,r,e.sourceSpan)},e}(),U=function(){function e(e,t,r,n){this.name=e,this.expression=t,this.isLiteral=r,this.sourceSpan=n}return e}();t.splitClasses=n;var H=function(){function e(e,t){this.ngContentIndexMatcher=e,this.wildcardNgContentIndex=t}return e.create=function(t){if(0===t.length||!t[0].directive.isComponent)return q;for(var r=new w.SelectorMatcher,n=t[0].directive.template.ngContentSelectors,i=null,o=0;o<n.length;o++){var a=n[o];d.StringWrapper.equals(a,"*")?i=o:r.addSelectables(w.CssSelector.parse(n[o]),o)}return new e(r,i)},e.prototype.findNgContentIndex=function(e){var t=[];return this.ngContentIndexMatcher.match(e,function(e,r){t.push(r)}),p.ListWrapper.sort(t),d.isPresent(this.wildcardNgContentIndex)&&t.push(this.wildcardNgContentIndex),t.length>0?t[0]:null},e}(),q=new H(new w.SelectorMatcher,null),G=new W,K=function(e){function t(){e.apply(this,arguments),this.pipes=new Set}return s(t,e),t.prototype.visitPipe=function(e){return this.pipes.add(e.name),e.exp.visit(this),this.visitAll(e.args),null},t}(b.RecursiveAstVisitor);return t.PipeCollector=K,o.define=a,r.exports}),System.register("angular2/common",["angular2/src/common/pipes","angular2/src/common/directives","angular2/src/common/forms","angular2/src/common/common_directives"],!0,function(e,t,r){function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}var i=System.global,o=i.define;return i.define=void 0,n(e("angular2/src/common/pipes")),n(e("angular2/src/common/directives")),n(e("angular2/src/common/forms")),n(e("angular2/src/common/common_directives")),i.define=o,r.exports}),System.register("angular2/src/compiler/template_compiler",["angular2/src/facade/lang","angular2/src/facade/exceptions","angular2/src/facade/collection","angular2/src/facade/async","angular2/src/compiler/directive_metadata","angular2/src/compiler/template_ast","angular2/src/core/di","angular2/src/compiler/source_module","angular2/src/compiler/change_detector_compiler","angular2/src/compiler/style_compiler","angular2/src/compiler/view_compiler","angular2/src/compiler/proto_view_compiler","angular2/src/compiler/template_parser","angular2/src/compiler/template_normalizer","angular2/src/compiler/runtime_metadata","angular2/src/core/linker/view","angular2/src/core/change_detection/change_detection","angular2/src/core/linker/resolved_metadata_cache","angular2/src/compiler/util"],!0,function(e,t,r){function n(e){if(!e.isComponent)throw new g.BaseException("Could not compile '"+e.type.name+"' because it is not a component.")}function i(e){var t=e.substring(0,e.length-I.MODULE_SUFFIX.length);return t+".template"+I.MODULE_SUFFIX}function o(e){return"hostViewFactory_"+e.name}function a(e){return C.moduleRef(i(e.type.moduleUrl))+"viewFactory_"+e.type.name+"0"}function s(e){var t={};return e.forEach(function(e){m.StringMapWrapper.forEach(e,function(e,r){t[r]=e})}),t}function c(e){var t=[];return e.forEach(function(e){var r=t.filter(function(t){return t.type.name==e.type.name&&t.type.moduleUrl==e.type.moduleUrl&&t.type.runtime==e.type.runtime}).length>0;r||t.push(e)}),t}function l(e,t){var r=new j;return _.templateVisitAll(r,e),t.filter(function(e){return m.SetWrapper.has(r.collector.pipes,e.name)})}var u=System.global,p=u.define;u.define=void 0;var d=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},f=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},h=e("angular2/src/facade/lang"),g=e("angular2/src/facade/exceptions"),m=e("angular2/src/facade/collection"),v=e("angular2/src/facade/async"),y=e("angular2/src/compiler/directive_metadata"),_=e("angular2/src/compiler/template_ast"),b=e("angular2/src/core/di"),C=e("angular2/src/compiler/source_module"),w=e("angular2/src/compiler/change_detector_compiler"),P=e("angular2/src/compiler/style_compiler"),E=e("angular2/src/compiler/view_compiler"),S=e("angular2/src/compiler/proto_view_compiler"),R=e("angular2/src/compiler/template_parser"),x=e("angular2/src/compiler/template_normalizer"),O=e("angular2/src/compiler/runtime_metadata"),D=e("angular2/src/core/linker/view"),A=e("angular2/src/core/change_detection/change_detection"),T=e("angular2/src/core/linker/resolved_metadata_cache"),I=e("angular2/src/compiler/util");t.METADATA_CACHE_MODULE_REF=C.moduleRef("package:angular2/src/core/linker/resolved_metadata_cache"+I.MODULE_SUFFIX);var k=function(){function e(e,t,r,n,i,o,a,s,c){this._runtimeMetadataResolver=e,this._templateNormalizer=t,this._templateParser=r,this._styleCompiler=n,this._cdCompiler=i,this._protoViewCompiler=o,this._viewCompiler=a,this._resolvedMetadataCache=s,this._genConfig=c,this._hostCacheKeys=new Map,this._compiledTemplateCache=new Map,this._compiledTemplateDone=new Map}return e.prototype.normalizeDirectiveMetadata=function(e){return e.isComponent?this._templateNormalizer.normalizeTemplate(e.type,e.template).then(function(t){return new y.CompileDirectiveMetadata({type:e.type,isComponent:e.isComponent,dynamicLoadable:e.dynamicLoadable,selector:e.selector,exportAs:e.exportAs,changeDetection:e.changeDetection,inputs:e.inputs,outputs:e.outputs,hostListeners:e.hostListeners,hostProperties:e.hostProperties,hostAttributes:e.hostAttributes,lifecycleHooks:e.lifecycleHooks,providers:e.providers,template:t})}):v.PromiseWrapper.resolve(e)},e.prototype.compileHostComponentRuntime=function(e){var t=this._runtimeMetadataResolver.getDirectiveMetadata(e),r=this._hostCacheKeys.get(e);if(h.isBlank(r)){r=new Object,this._hostCacheKeys.set(e,r),n(t);var i=y.createHostComponentMeta(t.type,t.selector);this._compileComponentRuntime(r,i,[t],[],[])}return this._compiledTemplateDone.get(r).then(function(e){return new D.HostViewFactory(t.selector,e.viewFactory)})},e.prototype.clearCache=function(){this._styleCompiler.clearCache(),this._compiledTemplateCache.clear(),this._compiledTemplateDone.clear(),this._hostCacheKeys.clear()},e.prototype.compileTemplatesCodeGen=function(e){var t=this;if(0===e.length)throw new g.BaseException("No components given");var r=[];e.forEach(function(e){var i=e.component;if(n(i),t._compileComponentCodeGen(i,e.directives,e.pipes,r),i.dynamicLoadable){var a=y.createHostComponentMeta(i.type,i.selector),s=t._compileComponentCodeGen(a,[i],[],r),c=h.IS_DART?"const":"new",l=c+" "+S.APP_VIEW_MODULE_REF+"HostViewFactory('"+i.selector+"',"+s+")",u=o(i.type);r.push(""+I.codeGenExportVariable(u)+l+";")}});var a=e[0].component.type.moduleUrl;return new C.SourceModule(""+i(a),r.join("\n"))},e.prototype.compileStylesheetCodeGen=function(e,t){return this._styleCompiler.compileStylesheetCodeGen(e,t)},e.prototype._compileComponentRuntime=function(e,t,r,n,i){var o=this,a=c(r),s=c(n),u=this._compiledTemplateCache.get(e),p=this._compiledTemplateDone.get(e);return h.isBlank(u)&&(u=new V,this._compiledTemplateCache.set(e,u),p=v.PromiseWrapper.all([this._styleCompiler.compileComponentRuntime(t.template)].concat(a.map(function(e){return o.normalizeDirectiveMetadata(e)}))).then(function(e){var r=e.slice(1),n=e[0],a=o._templateParser.parse(t.template.template,r,s,t.type.name),c=[],p=M.findUsedDirectives(a);return p.components.forEach(function(e){return o._compileNestedComponentRuntime(e,i,c)}),v.PromiseWrapper.all(c).then(function(e){var r=l(a,s);return u.init(o._createViewFactoryRuntime(t,a,p.directives,n,r)),u})}),this._compiledTemplateDone.set(e,p)),u},e.prototype._compileNestedComponentRuntime=function(e,t,r){var n=m.ListWrapper.clone(t),i=e.type.runtime,o=this._runtimeMetadataResolver.getViewDirectivesMetadata(e.type.runtime),a=this._runtimeMetadataResolver.getViewPipesMetadata(e.type.runtime),s=m.ListWrapper.contains(n,i);n.push(i),this._compileComponentRuntime(i,e,o,a,n),s||r.push(this._compiledTemplateDone.get(i))},e.prototype._createViewFactoryRuntime=function(e,t,r,n,i){var o=this;if(h.IS_DART||!this._genConfig.useJit){var a=this._cdCompiler.compileComponentRuntime(e.type,e.changeDetection,t),c=this._protoViewCompiler.compileProtoViewRuntime(this._resolvedMetadataCache,e,t,i);return this._viewCompiler.compileComponentRuntime(e,t,n,c.protoViews,a,function(e){return o._getNestedComponentViewFactory(e)})}var l=[],u=this._createViewFactoryCodeGen("resolvedMetadataCache",e,new C.SourceExpression([],"styles"),t,i,l),p={exports:{},styles:n,resolvedMetadataCache:this._resolvedMetadataCache};r.forEach(function(t){p[t.type.name]=t.type.runtime,t.isComponent&&t.type.runtime!==e.type.runtime&&(p["viewFactory_"+t.type.name+"0"]=o._getNestedComponentViewFactory(t))}),i.forEach(function(e){return p[e.type.name]=e.type.runtime});var d=C.SourceModule.getSourceWithoutImports(l.join("\n"));return h.evalExpression("viewFactory_"+e.type.name,u,d,s([p,w.CHANGE_DETECTION_JIT_IMPORTS,S.PROTO_VIEW_JIT_IMPORTS,E.VIEW_JIT_IMPORTS]))},e.prototype._getNestedComponentViewFactory=function(e){return this._compiledTemplateCache.get(e.type.runtime).viewFactory},e.prototype._compileComponentCodeGen=function(e,r,n,i){var o=c(r),a=c(n),s=this._styleCompiler.compileComponentCodeGen(e.template),u=this._templateParser.parse(e.template.template,o,a,e.type.name),p=l(u,a);return this._createViewFactoryCodeGen(t.METADATA_CACHE_MODULE_REF+"CODEGEN_RESOLVED_METADATA_CACHE",e,s,u,p,i)},e.prototype._createViewFactoryCodeGen=function(e,t,r,n,i,o){var s=this._cdCompiler.compileComponentCodeGen(t.type,t.changeDetection,n),c=this._protoViewCompiler.compileProtoViewCodeGen(new I.Expression(e),t,n,i),l=this._viewCompiler.compileComponentCodeGen(t,n,r,c.protoViews,s,a);return I.addAll(s.declarations,o),I.addAll(c.declarations,o),I.addAll(l.declarations,o),l.expression},e=d([b.Injectable(),f("design:paramtypes",[O.RuntimeMetadataResolver,x.TemplateNormalizer,R.TemplateParser,P.StyleCompiler,w.ChangeDetectionCompiler,S.ProtoViewCompiler,E.ViewCompiler,T.ResolvedMetadataCache,A.ChangeDetectorGenConfig])],e)}();t.TemplateCompiler=k;var N=function(){function e(e,t,r){this.component=e,this.directives=t,this.pipes=r}return e}();t.NormalizedComponentWithViewDirectives=N;var V=function(){function e(){this.viewFactory=null}return e.prototype.init=function(e){this.viewFactory=e},e}(),M=function(){function e(){this.directives=[],this.components=[]}return e.findUsedDirectives=function(t){var r=new e;return _.templateVisitAll(r,t),r},e.prototype.visitBoundText=function(e,t){return null},e.prototype.visitText=function(e,t){return null},e.prototype.visitNgContent=function(e,t){return null},e.prototype.visitElement=function(e,t){return _.templateVisitAll(this,e.directives),_.templateVisitAll(this,e.children),null},e.prototype.visitEmbeddedTemplate=function(e,t){return _.templateVisitAll(this,e.directives),_.templateVisitAll(this,e.children),null},e.prototype.visitVariable=function(e,t){return null},e.prototype.visitAttr=function(e,t){return null},e.prototype.visitDirective=function(e,t){return e.directive.isComponent&&this.components.push(e.directive),this.directives.push(e.directive),null},e.prototype.visitEvent=function(e,t){return null},e.prototype.visitDirectiveProperty=function(e,t){return null},e.prototype.visitElementProperty=function(e,t){return null},e}(),j=function(){function e(){this.collector=new R.PipeCollector}return e.prototype.visitBoundText=function(e,t){return e.value.visit(this.collector),null},e.prototype.visitText=function(e,t){return null},e.prototype.visitNgContent=function(e,t){return null},e.prototype.visitElement=function(e,t){return _.templateVisitAll(this,e.inputs),_.templateVisitAll(this,e.outputs),_.templateVisitAll(this,e.directives),_.templateVisitAll(this,e.children),null},e.prototype.visitEmbeddedTemplate=function(e,t){return _.templateVisitAll(this,e.outputs),_.templateVisitAll(this,e.directives),_.templateVisitAll(this,e.children),null},e.prototype.visitVariable=function(e,t){return null},e.prototype.visitAttr=function(e,t){return null},e.prototype.visitDirective=function(e,t){return _.templateVisitAll(this,e.inputs),_.templateVisitAll(this,e.hostEvents),_.templateVisitAll(this,e.hostProperties),null},e.prototype.visitEvent=function(e,t){return e.handler.visit(this.collector),null},e.prototype.visitDirectiveProperty=function(e,t){return e.value.visit(this.collector),null},e.prototype.visitElementProperty=function(e,t){return e.value.visit(this.collector),null},e}();return u.define=p,r.exports}),System.register("angular2/src/compiler/runtime_compiler",["angular2/src/core/linker/compiler","angular2/src/core/linker/view_ref","angular2/src/compiler/template_compiler","angular2/src/core/di"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},a=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=3>o?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(3>o?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},c=e("angular2/src/core/linker/compiler"),l=e("angular2/src/core/linker/view_ref"),u=e("angular2/src/compiler/template_compiler"),p=e("angular2/src/core/di"),d=function(e){function t(){e.apply(this,arguments)}return o(t,e),t}(c.Compiler);t.RuntimeCompiler=d;var f=function(e){function t(t){e.call(this),this._templateCompiler=t}return o(t,e),t.prototype.compileInHost=function(e){return this._templateCompiler.compileHostComponentRuntime(e).then(function(e){return new l.HostViewFactoryRef_(e)})},t.prototype.clearCache=function(){e.prototype.clearCache.call(this),this._templateCompiler.clearCache()},t=a([p.Injectable(),s("design:paramtypes",[u.TemplateCompiler])],t)}(c.Compiler_);return t.RuntimeCompiler_=f,n.define=i,r.exports}),System.register("angular2/src/compiler/compiler",["angular2/src/compiler/runtime_compiler","angular2/src/compiler/template_compiler","angular2/src/compiler/directive_metadata","angular2/src/compiler/source_module","angular2/src/core/platform_directives_and_pipes","angular2/src/compiler/template_ast","angular2/src/compiler/template_parser","angular2/src/facade/lang","angular2/src/core/di","angular2/src/compiler/template_parser","angular2/src/compiler/html_parser","angular2/src/compiler/template_normalizer","angular2/src/compiler/runtime_metadata","angular2/src/compiler/change_detector_compiler","angular2/src/compiler/style_compiler","angular2/src/compiler/view_compiler","angular2/src/compiler/proto_view_compiler","angular2/src/compiler/template_compiler","angular2/src/core/change_detection/change_detection","angular2/src/core/linker/compiler","angular2/src/compiler/runtime_compiler","angular2/src/compiler/schema/element_schema_registry","angular2/src/compiler/schema/dom_element_schema_registry","angular2/src/compiler/url_resolver","angular2/src/core/change_detection/change_detection"],!0,function(e,t,r){ function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}function i(){return new E.ChangeDetectorGenConfig(f.assertionsEnabled(),!1,!0)}var o=System.global,a=o.define;o.define=void 0;var s=e("angular2/src/compiler/runtime_compiler"),c=e("angular2/src/compiler/template_compiler");t.TemplateCompiler=c.TemplateCompiler;var l=e("angular2/src/compiler/directive_metadata");t.CompileDirectiveMetadata=l.CompileDirectiveMetadata,t.CompileTypeMetadata=l.CompileTypeMetadata,t.CompileTemplateMetadata=l.CompileTemplateMetadata;var u=e("angular2/src/compiler/source_module");t.SourceModule=u.SourceModule,t.SourceWithImports=u.SourceWithImports;var p=e("angular2/src/core/platform_directives_and_pipes");t.PLATFORM_DIRECTIVES=p.PLATFORM_DIRECTIVES,t.PLATFORM_PIPES=p.PLATFORM_PIPES,n(e("angular2/src/compiler/template_ast"));var d=e("angular2/src/compiler/template_parser");t.TEMPLATE_TRANSFORMS=d.TEMPLATE_TRANSFORMS;var f=e("angular2/src/facade/lang"),h=e("angular2/src/core/di"),g=e("angular2/src/compiler/template_parser"),m=e("angular2/src/compiler/html_parser"),v=e("angular2/src/compiler/template_normalizer"),y=e("angular2/src/compiler/runtime_metadata"),_=e("angular2/src/compiler/change_detector_compiler"),b=e("angular2/src/compiler/style_compiler"),C=e("angular2/src/compiler/view_compiler"),w=e("angular2/src/compiler/proto_view_compiler"),P=e("angular2/src/compiler/template_compiler"),E=e("angular2/src/core/change_detection/change_detection"),S=e("angular2/src/core/linker/compiler"),R=e("angular2/src/compiler/runtime_compiler"),x=e("angular2/src/compiler/schema/element_schema_registry"),O=e("angular2/src/compiler/schema/dom_element_schema_registry"),D=e("angular2/src/compiler/url_resolver"),A=e("angular2/src/core/change_detection/change_detection");return t.COMPILER_PROVIDERS=f.CONST_EXPR([A.Lexer,A.Parser,m.HtmlParser,g.TemplateParser,v.TemplateNormalizer,y.RuntimeMetadataResolver,D.DEFAULT_PACKAGE_URL_PROVIDER,b.StyleCompiler,w.ProtoViewCompiler,C.ViewCompiler,_.ChangeDetectionCompiler,new h.Provider(E.ChangeDetectorGenConfig,{useFactory:i,deps:[]}),P.TemplateCompiler,new h.Provider(R.RuntimeCompiler,{useClass:s.RuntimeCompiler_}),new h.Provider(S.Compiler,{useExisting:R.RuntimeCompiler}),O.DomElementSchemaRegistry,new h.Provider(x.ElementSchemaRegistry,{useExisting:O.DomElementSchemaRegistry}),D.UrlResolver]),o.define=a,r.exports}),System.register("angular2/compiler",["angular2/src/compiler/url_resolver","angular2/src/compiler/xhr","angular2/src/compiler/compiler"],!0,function(e,t,r){function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}var i=System.global,o=i.define;return i.define=void 0,n(e("angular2/src/compiler/url_resolver")),n(e("angular2/src/compiler/xhr")),n(e("angular2/src/compiler/compiler")),i.define=o,r.exports}),System.register("angular2/src/platform/browser_common",["angular2/src/facade/lang","angular2/src/core/di","angular2/core","angular2/common","angular2/src/core/testability/testability","angular2/src/platform/dom/dom_adapter","angular2/src/platform/dom/events/dom_events","angular2/src/platform/dom/events/key_events","angular2/src/platform/dom/events/hammer_gestures","angular2/src/platform/dom/dom_tokens","angular2/src/platform/dom/dom_renderer","angular2/src/platform/dom/shared_styles_host","angular2/src/platform/dom/shared_styles_host","angular2/src/animate/browser_details","angular2/src/animate/animation_builder","angular2/src/platform/browser/browser_adapter","angular2/src/platform/browser/testability","angular2/src/core/profile/wtf_init","angular2/src/platform/dom/events/event_manager","angular2/platform/common_dom","angular2/src/platform/dom/dom_tokens","angular2/src/platform/browser/title","angular2/platform/common_dom","angular2/src/platform/browser/browser_adapter","angular2/src/platform/browser/tools/tools"],!0,function(e,t,r){function n(){return new u.ExceptionHandler(f.DOM,!c.IS_DART)}function i(){return f.DOM.defaultDoc()}function o(){P.BrowserDomAdapter.makeCurrent(),S.wtfInit(),E.BrowserGetTestability.init()}var a=System.global,s=a.define;a.define=void 0;var c=e("angular2/src/facade/lang"),l=e("angular2/src/core/di"),u=e("angular2/core"),p=e("angular2/common"),d=e("angular2/src/core/testability/testability"),f=e("angular2/src/platform/dom/dom_adapter"),h=e("angular2/src/platform/dom/events/dom_events"),g=e("angular2/src/platform/dom/events/key_events"),m=e("angular2/src/platform/dom/events/hammer_gestures"),v=e("angular2/src/platform/dom/dom_tokens"),y=e("angular2/src/platform/dom/dom_renderer"),_=e("angular2/src/platform/dom/shared_styles_host"),b=e("angular2/src/platform/dom/shared_styles_host"),C=e("angular2/src/animate/browser_details"),w=e("angular2/src/animate/animation_builder"),P=e("angular2/src/platform/browser/browser_adapter"),E=e("angular2/src/platform/browser/testability"),S=e("angular2/src/core/profile/wtf_init"),R=e("angular2/src/platform/dom/events/event_manager"),x=e("angular2/platform/common_dom"),O=e("angular2/src/platform/dom/dom_tokens");t.DOCUMENT=O.DOCUMENT;var D=e("angular2/src/platform/browser/title");t.Title=D.Title;var A=e("angular2/platform/common_dom");t.ELEMENT_PROBE_PROVIDERS=A.ELEMENT_PROBE_PROVIDERS,t.ELEMENT_PROBE_PROVIDERS_PROD_MODE=A.ELEMENT_PROBE_PROVIDERS_PROD_MODE,t.inspectNativeElement=A.inspectNativeElement,t.By=A.By;var T=e("angular2/src/platform/browser/browser_adapter");t.BrowserDomAdapter=T.BrowserDomAdapter;var I=e("angular2/src/platform/browser/tools/tools");return t.enableDebugTools=I.enableDebugTools,t.disableDebugTools=I.disableDebugTools,t.BROWSER_PROVIDERS=c.CONST_EXPR([u.PLATFORM_COMMON_PROVIDERS,new l.Provider(u.PLATFORM_INITIALIZER,{useValue:o,multi:!0})]),t.BROWSER_APP_COMMON_PROVIDERS=c.CONST_EXPR([u.APPLICATION_COMMON_PROVIDERS,p.FORM_PROVIDERS,new l.Provider(u.PLATFORM_PIPES,{useValue:p.COMMON_PIPES,multi:!0}),new l.Provider(u.PLATFORM_DIRECTIVES,{useValue:p.COMMON_DIRECTIVES,multi:!0}),new l.Provider(u.ExceptionHandler,{useFactory:n,deps:[]}),new l.Provider(v.DOCUMENT,{useFactory:i,deps:[]}),new l.Provider(R.EVENT_MANAGER_PLUGINS,{useClass:h.DomEventsPlugin,multi:!0}),new l.Provider(R.EVENT_MANAGER_PLUGINS,{useClass:g.KeyEventsPlugin,multi:!0}),new l.Provider(R.EVENT_MANAGER_PLUGINS,{useClass:m.HammerGesturesPlugin,multi:!0}),new l.Provider(y.DomRootRenderer,{useClass:y.DomRootRenderer_}),new l.Provider(u.RootRenderer,{useExisting:y.DomRootRenderer}),new l.Provider(b.SharedStylesHost,{useExisting:_.DomSharedStylesHost}),_.DomSharedStylesHost,d.Testability,C.BrowserDetails,w.AnimationBuilder,R.EventManager,x.ELEMENT_PROBE_PROVIDERS]),t.initDomAdapter=o,a.define=s,r.exports}),System.register("angular2/platform/browser",["angular2/src/core/angular_entrypoint","angular2/src/platform/browser_common","angular2/src/facade/lang","angular2/src/platform/browser_common","angular2/compiler","angular2/core","angular2/src/core/reflection/reflection_capabilities","angular2/src/platform/browser/xhr_impl","angular2/compiler","angular2/src/core/di"],!0,function(e,t,r){function n(e,r){p.reflector.reflectionCapabilities=new d.ReflectionCapabilities;var n=c.isPresent(r)?[t.BROWSER_APP_PROVIDERS,r]:t.BROWSER_APP_PROVIDERS;return p.platform(l.BROWSER_PROVIDERS).application(n).bootstrap(e)}var i=System.global,o=i.define;i.define=void 0;var a=e("angular2/src/core/angular_entrypoint");t.AngularEntrypoint=a.AngularEntrypoint;var s=e("angular2/src/platform/browser_common");t.BROWSER_PROVIDERS=s.BROWSER_PROVIDERS,t.ELEMENT_PROBE_PROVIDERS=s.ELEMENT_PROBE_PROVIDERS,t.ELEMENT_PROBE_PROVIDERS_PROD_MODE=s.ELEMENT_PROBE_PROVIDERS_PROD_MODE,t.inspectNativeElement=s.inspectNativeElement,t.BrowserDomAdapter=s.BrowserDomAdapter,t.By=s.By,t.Title=s.Title,t.DOCUMENT=s.DOCUMENT,t.enableDebugTools=s.enableDebugTools,t.disableDebugTools=s.disableDebugTools;var c=e("angular2/src/facade/lang"),l=e("angular2/src/platform/browser_common"),u=e("angular2/compiler"),p=e("angular2/core"),d=e("angular2/src/core/reflection/reflection_capabilities"),f=e("angular2/src/platform/browser/xhr_impl"),h=e("angular2/compiler"),g=e("angular2/src/core/di");return t.BROWSER_APP_PROVIDERS=c.CONST_EXPR([l.BROWSER_APP_COMMON_PROVIDERS,u.COMPILER_PROVIDERS,new g.Provider(h.XHR,{useClass:f.XHRImpl})]),t.bootstrap=n,i.define=o,r.exports}),System.register("angular2/instrumentation",["angular2/src/core/profile/profile"],!0,function(e,t,r){var n=System.global,i=n.define;n.define=void 0;var o=e("angular2/src/core/profile/profile");return t.wtfCreateScope=o.wtfCreateScope,t.wtfLeave=o.wtfLeave,t.wtfStartTimeRange=o.wtfStartTimeRange,t.wtfEndTimeRange=o.wtfEndTimeRange,n.define=i,r.exports});
// @flow import type {SourceLocation} from '@parcel/types'; import type {FileSystem} from '@parcel/fs'; import SourceMap from '@parcel/source-map'; import path from 'path'; import {normalizeSeparators, isAbsolute} from './path'; export const SOURCEMAP_RE: RegExp = /(?:\/\*|\/\/)\s*[@#]\s*sourceMappingURL\s*=\s*([^\s*]+)(?:\s*\*\/)?\s*$/; const DATA_URL_RE = /^data:[^;]+(?:;charset=[^;]+)?;base64,(.*)/; export const SOURCEMAP_EXTENSIONS: Set<string> = new Set<string>([ 'css', 'es', 'es6', 'js', 'jsx', 'mjs', 'ts', 'tsx', ]); export function matchSourceMappingURL( contents: string, ): null | RegExp$matchResult { return contents.match(SOURCEMAP_RE); } export async function loadSourceMapUrl( fs: FileSystem, filename: string, contents: string, ): Promise<?{|filename: string, map: any, url: string|}> { let match = matchSourceMappingURL(contents); if (match) { let url = match[1].trim(); let dataURLMatch = url.match(DATA_URL_RE); let mapFilePath; if (dataURLMatch) { mapFilePath = filename; } else { mapFilePath = url.replace(/^file:\/\//, ''); mapFilePath = isAbsolute(mapFilePath) ? mapFilePath : path.join(path.dirname(filename), mapFilePath); } return { url, filename: mapFilePath, map: JSON.parse( dataURLMatch ? Buffer.from(dataURLMatch[1], 'base64').toString() : await fs.readFile(mapFilePath, 'utf8'), ), }; } } export async function loadSourceMap( filename: string, contents: string, options: {fs: FileSystem, projectRoot: string, ...}, ): Promise<?SourceMap> { let foundMap = await loadSourceMapUrl(options.fs, filename, contents); if (foundMap) { let mapSourceRoot = path.dirname(filename); if ( foundMap.map.sourceRoot && !normalizeSeparators(foundMap.map.sourceRoot).startsWith('/') ) { mapSourceRoot = path.join(mapSourceRoot, foundMap.map.sourceRoot); } let sourcemapInstance = new SourceMap(options.projectRoot); sourcemapInstance.addVLQMap({ ...foundMap.map, sources: foundMap.map.sources.map(s => { return path.join(mapSourceRoot, s); }), }); return sourcemapInstance; } } export function remapSourceLocation( loc: SourceLocation, originalMap: SourceMap, ): SourceLocation { let { filePath, start: {line: startLine, column: startCol}, end: {line: endLine, column: endCol}, } = loc; let lineDiff = endLine - startLine; let colDiff = endCol - startCol; let start = originalMap.findClosestMapping(startLine, startCol); let end = originalMap.findClosestMapping(endLine, endCol); if (start?.original) { if (start.source) { filePath = start.source; } ({line: startLine, column: startCol} = start.original); startCol++; // source map columns are 0-based } if (end?.original) { ({line: endLine, column: endCol} = end.original); endCol++; if (endLine < startLine) { endLine = startLine; endCol = startCol; } else if (endLine === startLine && endCol < startCol && lineDiff === 0) { endCol = startCol + colDiff; } } else { endLine = startLine; endCol = startCol; } return { filePath, start: { line: startLine, column: startCol, }, end: { line: endLine, column: endCol, }, }; }
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from .sub_resource_py3 import SubResource class Subnet(SubResource): """Subnet in a virtual network resource. Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str :param address_prefix: The address prefix for the subnet. :type address_prefix: str :param network_security_group: The reference of the NetworkSecurityGroup resource. :type network_security_group: ~azure.mgmt.network.v2017_08_01.models.NetworkSecurityGroup :param route_table: The reference of the RouteTable resource. :type route_table: ~azure.mgmt.network.v2017_08_01.models.RouteTable :param service_endpoints: An array of service endpoints. :type service_endpoints: list[~azure.mgmt.network.v2017_08_01.models.ServiceEndpointPropertiesFormat] :ivar ip_configurations: Gets an array of references to the network interface IP configurations using subnet. :vartype ip_configurations: list[~azure.mgmt.network.v2017_08_01.models.IPConfiguration] :param resource_navigation_links: Gets an array of references to the external resources using subnet. :type resource_navigation_links: list[~azure.mgmt.network.v2017_08_01.models.ResourceNavigationLink] :param provisioning_state: The provisioning state of the resource. :type provisioning_state: str :param name: The name of the resource that is unique within a resource group. This name can be used to access the resource. :type name: str :param etag: A unique read-only string that changes whenever the resource is updated. :type etag: str """ _validation = { 'ip_configurations': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'NetworkSecurityGroup'}, 'route_table': {'key': 'properties.routeTable', 'type': 'RouteTable'}, 'service_endpoints': {'key': 'properties.serviceEndpoints', 'type': '[ServiceEndpointPropertiesFormat]'}, 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[IPConfiguration]'}, 'resource_navigation_links': {'key': 'properties.resourceNavigationLinks', 'type': '[ResourceNavigationLink]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, } def __init__(self, *, id: str=None, address_prefix: str=None, network_security_group=None, route_table=None, service_endpoints=None, resource_navigation_links=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: super(Subnet, self).__init__(id=id, **kwargs) self.address_prefix = address_prefix self.network_security_group = network_security_group self.route_table = route_table self.service_endpoints = service_endpoints self.ip_configurations = None self.resource_navigation_links = resource_navigation_links self.provisioning_state = provisioning_state self.name = name self.etag = etag
(self["webpackChunkDoIonicAngular"] = self["webpackChunkDoIonicAngular"] || []).push([["node_modules_ionic_core_dist_esm_keyboard-5742b5da_js"],{ /***/ 81296: /*!****************************************************************!*\ !*** ./node_modules/@ionic/core/dist/esm/keyboard-5742b5da.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "KEYBOARD_DID_CLOSE": function() { return /* binding */ KEYBOARD_DID_CLOSE; }, /* harmony export */ "KEYBOARD_DID_OPEN": function() { return /* binding */ KEYBOARD_DID_OPEN; }, /* harmony export */ "copyVisualViewport": function() { return /* binding */ copyVisualViewport; }, /* harmony export */ "keyboardDidClose": function() { return /* binding */ keyboardDidClose; }, /* harmony export */ "keyboardDidOpen": function() { return /* binding */ keyboardDidOpen; }, /* harmony export */ "keyboardDidResize": function() { return /* binding */ keyboardDidResize; }, /* harmony export */ "resetKeyboardAssist": function() { return /* binding */ resetKeyboardAssist; }, /* harmony export */ "setKeyboardClose": function() { return /* binding */ setKeyboardClose; }, /* harmony export */ "setKeyboardOpen": function() { return /* binding */ setKeyboardOpen; }, /* harmony export */ "startKeyboardAssist": function() { return /* binding */ startKeyboardAssist; }, /* harmony export */ "trackViewportChanges": function() { return /* binding */ trackViewportChanges; } /* harmony export */ }); const KEYBOARD_DID_OPEN = 'ionKeyboardDidShow'; const KEYBOARD_DID_CLOSE = 'ionKeyboardDidHide'; const KEYBOARD_THRESHOLD = 150; let previousVisualViewport = {}; let currentVisualViewport = {}; let keyboardOpen = false; /** * This is only used for tests */ const resetKeyboardAssist = () => { previousVisualViewport = {}; currentVisualViewport = {}; keyboardOpen = false; }; const startKeyboardAssist = (win) => { startNativeListeners(win); if (!win.visualViewport) { return; } currentVisualViewport = copyVisualViewport(win.visualViewport); win.visualViewport.onresize = () => { trackViewportChanges(win); if (keyboardDidOpen() || keyboardDidResize(win)) { setKeyboardOpen(win); } else if (keyboardDidClose(win)) { setKeyboardClose(win); } }; }; /** * Listen for events fired by native keyboard plugin * in Capacitor/Cordova so devs only need to listen * in one place. */ const startNativeListeners = (win) => { win.addEventListener('keyboardDidShow', ev => setKeyboardOpen(win, ev)); win.addEventListener('keyboardDidHide', () => setKeyboardClose(win)); }; const setKeyboardOpen = (win, ev) => { fireKeyboardOpenEvent(win, ev); keyboardOpen = true; }; const setKeyboardClose = (win) => { fireKeyboardCloseEvent(win); keyboardOpen = false; }; /** * Returns `true` if the `keyboardOpen` flag is not * set, the previous visual viewport width equal the current * visual viewport width, and if the scaled difference * of the previous visual viewport height minus the current * visual viewport height is greater than KEYBOARD_THRESHOLD * * We need to be able to accommodate users who have zooming * enabled in their browser (or have zoomed in manually) which * is why we take into account the current visual viewport's * scale value. */ const keyboardDidOpen = () => { const scaledHeightDifference = (previousVisualViewport.height - currentVisualViewport.height) * currentVisualViewport.scale; return (!keyboardOpen && previousVisualViewport.width === currentVisualViewport.width && scaledHeightDifference > KEYBOARD_THRESHOLD); }; /** * Returns `true` if the keyboard is open, * but the keyboard did not close */ const keyboardDidResize = (win) => { return keyboardOpen && !keyboardDidClose(win); }; /** * Determine if the keyboard was closed * Returns `true` if the `keyboardOpen` flag is set and * the current visual viewport height equals the * layout viewport height. */ const keyboardDidClose = (win) => { return keyboardOpen && currentVisualViewport.height === win.innerHeight; }; /** * Dispatch a keyboard open event */ const fireKeyboardOpenEvent = (win, nativeEv) => { const keyboardHeight = nativeEv ? nativeEv.keyboardHeight : win.innerHeight - currentVisualViewport.height; const ev = new CustomEvent(KEYBOARD_DID_OPEN, { detail: { keyboardHeight } }); win.dispatchEvent(ev); }; /** * Dispatch a keyboard close event */ const fireKeyboardCloseEvent = (win) => { const ev = new CustomEvent(KEYBOARD_DID_CLOSE); win.dispatchEvent(ev); }; /** * Given a window object, create a copy of * the current visual and layout viewport states * while also preserving the previous visual and * layout viewport states */ const trackViewportChanges = (win) => { previousVisualViewport = Object.assign({}, currentVisualViewport); currentVisualViewport = copyVisualViewport(win.visualViewport); }; /** * Creates a deep copy of the visual viewport * at a given state */ const copyVisualViewport = (visualViewport) => { return { width: Math.round(visualViewport.width), height: Math.round(visualViewport.height), offsetTop: visualViewport.offsetTop, offsetLeft: visualViewport.offsetLeft, pageTop: visualViewport.pageTop, pageLeft: visualViewport.pageLeft, scale: visualViewport.scale }; }; /***/ }) }]); //# sourceMappingURL=node_modules_ionic_core_dist_esm_keyboard-5742b5da_js-es2015.js.map
import styled from "styled-components" export const StyledHeader = styled.header` padding: 2rem; h5 { text-transform: uppercase; color: ${({ theme }) => theme.mint}; opacity: 0.5; font-weight: 600; font-size: 1.3rem; letter-spacing: 0.05em; } h4 { text-transform: lowercase; } `
// ** I18N // Calendar EN language // Author: Mihai Bazon, <mihai_bazon@yahoo.com> // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also please // include your contact information in the header, as can be seen above. // full day names Calendar._DN = new Array ("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"); // Please note that the following array of short day names (and the same goes // for short month names, _SMN) isn't absolutely necessary. We give it here // for exemplification on how one can customize the short day names, but if // they are simply the first N letters of the full name you can simply say: // // Calendar._SDN_len = N; // short day name length // Calendar._SMN_len = N; // short month name length // // If N = 3 then this is not needed either since we assume a value of 3 if not // present, to be compatible with translation files that were written before // this feature. // short day names Calendar._SDN = new Array ("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"); // First day of the week. "0" means display Sunday first, "1" means display // Monday first, etc. Calendar._FD = 1; // full month names Calendar._MN = new Array ("Januar", "Februar", "M\u00e4rz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"); // short month names Calendar._SMN = new Array ("Jan", "Feb", "M\u00e4r", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"); // tooltips Calendar._TT = {}; Calendar._TT["INFO"] = "\u00DCber dieses Kalendarmodul"; Calendar._TT["ABOUT"] = "DHTML Date/Time Selector\n" + "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this ;-) "For latest version visit: http://www.dynarch.com/projects/calendar/\n" + "Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details." + "\n\n" + "Datum ausw\u00e4hlen:\n" + "- Benutzen Sie die \xab, \xbb Buttons um das Jahr zu w\u00e4hlen\n" + "- Benutzen Sie die " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " Buttons um den Monat zu w\u00e4hlen\n" + "- F\u00fcr eine Schnellauswahl halten Sie die Maustaste \u00fcber diesen Buttons fest."; Calendar._TT["ABOUT_TIME"] = "\n\n" + "Zeit ausw\u00e4hlen:\n" + "- Klicken Sie auf die Teile der Uhrzeit, um diese zu erh\u00F6hen\n" + "- oder klicken Sie mit festgehaltener Shift-Taste um diese zu verringern\n" + "- oder klicken und festhalten f\u00fcr Schnellauswahl."; Calendar._TT["PREV_YEAR"] = "Voriges Jahr (Schnellauswahl: festhalten)"; Calendar._TT["PREV_MONTH"] = "Voriger Monat (Schnellauswahl: festhalten)"; Calendar._TT["GO_TODAY"] = "Heute ausw\u00e4hlen"; Calendar._TT["NEXT_MONTH"] = "N\u00e4chst. Monat (Schnellauswahl: festhalten)"; Calendar._TT["NEXT_YEAR"] = "N\u00e4chst. Jahr (Schnellauswahl: festhalten)"; Calendar._TT["SEL_DATE"] = "Datum ausw\u00e4hlen"; Calendar._TT["DRAG_TO_MOVE"] = "Zum Bewegen festhalten"; Calendar._TT["PART_TODAY"] = " (Heute)"; // the following is to inform that "%s" is to be the first day of week // %s will be replaced with the day name. Calendar._TT["DAY_FIRST"] = "Woche beginnt mit %s "; // This may be locale-dependent. It specifies the week-end days, as an array // of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 // means Monday, etc. Calendar._TT["WEEKEND"] = "0,6"; Calendar._TT["CLOSE"] = "Schlie\u00dfen"; Calendar._TT["TODAY"] = "Heute"; Calendar._TT["TIME_PART"] = "(Shift-)Klick oder Festhalten und Ziehen um den Wert zu \u00e4ndern"; // date formats Calendar._TT["DEF_DATE_FORMAT"] = "%d.%m.%Y"; Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; Calendar._TT["WK"] = "wk"; Calendar._TT["TIME"] = "Zeit:";
/**! * AngularJS file upload directives and services. Supoorts: file upload/drop/paste, resume, cancel/abort, * progress, resize, thumbnail, preview, validation and CORS * @author Danial <danial.farid@gmail.com> * @version 12.0.4 */ if (window.XMLHttpRequest && !(window.FileAPI && FileAPI.shouldLoad)) { window.XMLHttpRequest.prototype.setRequestHeader = (function (orig) { return function (header, value) { if (header === '__setXHR_') { var val = value(this); // fix for angular < 1.2.0 if (val instanceof Function) { val(this); } } else { orig.apply(this, arguments); } }; })(window.XMLHttpRequest.prototype.setRequestHeader); } var ngFileUpload = angular.module('ngFileUpload', []); ngFileUpload.version = '12.0.4'; ngFileUpload.service('UploadBase', ['$http', '$q', '$timeout', function ($http, $q, $timeout) { var upload = this; upload.promisesCount = 0; this.isResumeSupported = function () { return window.Blob && window.Blob.prototype.slice; }; var resumeSupported = this.isResumeSupported(); function sendHttp(config) { config.method = config.method || 'POST'; config.headers = config.headers || {}; var deferred = config._deferred = config._deferred || $q.defer(); var promise = deferred.promise; function notifyProgress(e) { if (deferred.notify) { deferred.notify(e); } if (promise.progressFunc) { $timeout(function () { promise.progressFunc(e); }); } } function getNotifyEvent(n) { if (config._start != null && resumeSupported) { return { loaded: n.loaded + config._start, total: (config._file && config._file.size) || n.total, type: n.type, config: config, lengthComputable: true, target: n.target }; } else { return n; } } if (!config.disableProgress) { config.headers.__setXHR_ = function () { return function (xhr) { if (!xhr || !xhr.upload || !xhr.upload.addEventListener) return; config.__XHR = xhr; if (config.xhrFn) config.xhrFn(xhr); xhr.upload.addEventListener('progress', function (e) { e.config = config; notifyProgress(getNotifyEvent(e)); }, false); //fix for firefox not firing upload progress end, also IE8-9 xhr.upload.addEventListener('load', function (e) { if (e.lengthComputable) { e.config = config; notifyProgress(getNotifyEvent(e)); } }, false); }; }; } function uploadWithAngular() { $http(config).then(function (r) { if (resumeSupported && config._chunkSize && !config._finished && config._file) { notifyProgress({ loaded: config._end, total: config._file && config._file.size, config: config, type: 'progress' } ); upload.upload(config, true); } else { if (config._finished) delete config._finished; deferred.resolve(r); } }, function (e) { deferred.reject(e); }, function (n) { deferred.notify(n); } ); } if (!resumeSupported) { uploadWithAngular(); } else if (config._chunkSize && config._end && !config._finished) { config._start = config._end; config._end += config._chunkSize; uploadWithAngular(); } else if (config.resumeSizeUrl) { $http.get(config.resumeSizeUrl).then(function (resp) { if (config.resumeSizeResponseReader) { config._start = config.resumeSizeResponseReader(resp.data); } else { config._start = parseInt((resp.data.size == null ? resp.data : resp.data.size).toString()); } if (config._chunkSize) { config._end = config._start + config._chunkSize; } uploadWithAngular(); }, function (e) { throw e; }); } else if (config.resumeSize) { config.resumeSize().then(function (size) { config._start = size; uploadWithAngular(); }, function (e) { throw e; }); } else { if (config._chunkSize) { config._start = 0; config._end = config._start + config._chunkSize; } uploadWithAngular(); } promise.success = function (fn) { promise.then(function (response) { fn(response.data, response.status, response.headers, config); }); return promise; }; promise.error = function (fn) { promise.then(null, function (response) { fn(response.data, response.status, response.headers, config); }); return promise; }; promise.progress = function (fn) { promise.progressFunc = fn; promise.then(null, null, function (n) { fn(n); }); return promise; }; promise.abort = promise.pause = function () { if (config.__XHR) { $timeout(function () { config.__XHR.abort(); }); } return promise; }; promise.xhr = function (fn) { config.xhrFn = (function (origXhrFn) { return function () { if (origXhrFn) origXhrFn.apply(promise, arguments); fn.apply(promise, arguments); }; })(config.xhrFn); return promise; }; upload.promisesCount++; promise['finally'](function () { upload.promisesCount--; }); return promise; } this.isUploadInProgress = function () { return upload.promisesCount > 0; }; this.rename = function (file, name) { file.ngfName = name; return file; }; this.jsonBlob = function (val) { if (val != null && !angular.isString(val)) { val = JSON.stringify(val); } var blob = new window.Blob([val], {type: 'application/json'}); blob._ngfBlob = true; return blob; }; this.json = function (val) { return angular.toJson(val); }; function copy(obj) { var clone = {}; for (var key in obj) { if (obj.hasOwnProperty(key)) { clone[key] = obj[key]; } } return clone; } this.isFile = function (file) { return file != null && (file instanceof window.Blob || (file.flashId && file.name && file.size)); }; this.upload = function (config, internal) { function toResumeFile(file, formData) { if (file._ngfBlob) return file; config._file = config._file || file; if (config._start != null && resumeSupported) { if (config._end && config._end >= file.size) { config._finished = true; config._end = file.size; } var slice = file.slice(config._start, config._end || file.size); slice.name = file.name; slice.ngfName = file.ngfName; if (config._chunkSize) { formData.append('_chunkSize', config._chunkSize); formData.append('_currentChunkSize', config._end - config._start); formData.append('_chunkNumber', Math.floor(config._start / config._chunkSize)); formData.append('_totalSize', config._file.size); } return slice; } return file; } function addFieldToFormData(formData, val, key) { if (val !== undefined) { if (angular.isDate(val)) { val = val.toISOString(); } if (angular.isString(val)) { formData.append(key, val); } else if (upload.isFile(val)) { var file = toResumeFile(val, formData); var split = key.split(','); if (split[1]) { file.ngfName = split[1].replace(/^\s+|\s+$/g, ''); key = split[0]; } config._fileKey = config._fileKey || key; formData.append(key, file, file.ngfName || file.name); } else { if (angular.isObject(val)) { if (val.$$ngfCircularDetection) throw 'ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: ' + key; val.$$ngfCircularDetection = true; try { for (var k in val) { if (val.hasOwnProperty(k) && k !== '$$ngfCircularDetection') { var objectKey = config.objectKey == null ? '[i]' : config.objectKey; if (val.length && parseInt(k) > -1) { objectKey = config.arrayKey == null ? objectKey : config.arrayKey; } addFieldToFormData(formData, val[k], key + objectKey.replace(/[ik]/g, k)); } } } finally { delete val.$$ngfCircularDetection; } } else { formData.append(key, val); } } } } function digestConfig() { config._chunkSize = upload.translateScalars(config.resumeChunkSize); config._chunkSize = config._chunkSize ? parseInt(config._chunkSize.toString()) : null; config.headers = config.headers || {}; config.headers['Content-Type'] = undefined; config.transformRequest = config.transformRequest ? (angular.isArray(config.transformRequest) ? config.transformRequest : [config.transformRequest]) : []; config.transformRequest.push(function (data) { var formData = new window.FormData(), key; data = data || config.fields || {}; if (config.file) { data.file = config.file; } for (key in data) { if (data.hasOwnProperty(key)) { var val = data[key]; if (config.formDataAppender) { config.formDataAppender(formData, key, val); } else { addFieldToFormData(formData, val, key); } } } return formData; }); } if (!internal) config = copy(config); if (!config._isDigested) { config._isDigested = true; digestConfig(); } return sendHttp(config); }; this.http = function (config) { config = copy(config); config.transformRequest = config.transformRequest || function (data) { if ((window.ArrayBuffer && data instanceof window.ArrayBuffer) || data instanceof window.Blob) { return data; } return $http.defaults.transformRequest[0].apply(this, arguments); }; config._chunkSize = upload.translateScalars(config.resumeChunkSize); config._chunkSize = config._chunkSize ? parseInt(config._chunkSize.toString()) : null; return sendHttp(config); }; this.translateScalars = function (str) { if (angular.isString(str)) { if (str.search(/kb/i) === str.length - 2) { return parseFloat(str.substring(0, str.length - 2) * 1024); } else if (str.search(/mb/i) === str.length - 2) { return parseFloat(str.substring(0, str.length - 2) * 1048576); } else if (str.search(/gb/i) === str.length - 2) { return parseFloat(str.substring(0, str.length - 2) * 1073741824); } else if (str.search(/b/i) === str.length - 1) { return parseFloat(str.substring(0, str.length - 1)); } else if (str.search(/s/i) === str.length - 1) { return parseFloat(str.substring(0, str.length - 1)); } else if (str.search(/m/i) === str.length - 1) { return parseFloat(str.substring(0, str.length - 1) * 60); } else if (str.search(/h/i) === str.length - 1) { return parseFloat(str.substring(0, str.length - 1) * 3600); } } return str; }; this.urlToBlob = function(url) { var defer = $q.defer(); $http({url: url, method: 'get', responseType: 'arraybuffer'}).then(function (resp) { var arrayBufferView = new Uint8Array(resp.data); var type = resp.headers('content-type') || 'image/WebP'; var blob = new window.Blob([arrayBufferView], {type: type}); defer.resolve(blob); //var split = type.split('[/;]'); //blob.name = url.substring(0, 150).replace(/\W+/g, '') + '.' + (split.length > 1 ? split[1] : 'jpg'); }, function (e) { defer.reject(e); }); return defer.promise; }; this.setDefaults = function (defaults) { this.defaults = defaults || {}; }; this.defaults = {}; this.version = ngFileUpload.version; } ]); ngFileUpload.service('Upload', ['$parse', '$timeout', '$compile', '$q', 'UploadExif', function ($parse, $timeout, $compile, $q, UploadExif) { var upload = UploadExif; upload.getAttrWithDefaults = function (attr, name) { if (attr[name] != null) return attr[name]; var def = upload.defaults[name]; return (def == null ? def : (angular.isString(def) ? def : JSON.stringify(def))); }; upload.attrGetter = function (name, attr, scope, params) { var attrVal = this.getAttrWithDefaults(attr, name); if (scope) { try { if (params) { return $parse(attrVal)(scope, params); } else { return $parse(attrVal)(scope); } } catch (e) { // hangle string value without single qoute if (name.search(/min|max|pattern/i)) { return attrVal; } else { throw e; } } } else { return attrVal; } }; upload.shouldUpdateOn = function (type, attr, scope) { var modelOptions = upload.attrGetter('ngModelOptions', attr, scope); if (modelOptions && modelOptions.updateOn) { return modelOptions.updateOn.split(' ').indexOf(type) > -1; } return true; }; upload.emptyPromise = function () { var d = $q.defer(); var args = arguments; $timeout(function () { d.resolve.apply(d, args); }); return d.promise; }; upload.rejectPromise = function () { var d = $q.defer(); var args = arguments; $timeout(function () { d.reject.apply(d, args); }); return d.promise; }; upload.happyPromise = function (promise, data) { var d = $q.defer(); promise.then(function (result) { d.resolve(result); }, function (error) { $timeout(function () { throw error; }); d.resolve(data); }); return d.promise; }; function applyExifRotations(files, attr, scope) { var promises = [upload.emptyPromise()]; angular.forEach(files, function (f, i) { if (f.type.indexOf('image/jpeg') === 0 && upload.attrGetter('ngfFixOrientation', attr, scope, {$file: f})) { promises.push(upload.happyPromise(upload.applyExifRotation(f), f).then(function (fixedFile) { files.splice(i, 1, fixedFile); })); } }); return $q.all(promises); } function resize(files, attr, scope) { var resizeVal = upload.attrGetter('ngfResize', attr, scope); if (!resizeVal || !upload.isResizeSupported() || !files.length) return upload.emptyPromise(); if (resizeVal instanceof Function) { var defer = $q.defer(); resizeVal(files).then(function (p) { resizeWithParams(p, files, attr, scope).then(function (r) { defer.resolve(r); }, function (e) { defer.reject(e); }); }, function (e) { defer.reject(e); }); } else { return resizeWithParams(resizeVal, files, attr, scope); } } function resizeWithParams(param, files, attr, scope) { var promises = [upload.emptyPromise()]; function handleFile(f, i) { if (f.type.indexOf('image') === 0) { if (param.pattern && !upload.validatePattern(f, param.pattern)) return; var promise = upload.resize(f, param.width, param.height, param.quality, param.type, param.ratio, param.centerCrop, function (width, height) { return upload.attrGetter('ngfResizeIf', attr, scope, {$width: width, $height: height, $file: f}); }, param.restoreExif !== false); promises.push(promise); promise.then(function (resizedFile) { files.splice(i, 1, resizedFile); }, function (e) { f.$error = 'resize'; f.$errorParam = (e ? (e.message ? e.message : e) + ': ' : '') + (f && f.name); }); } } for (var i = 0; i < files.length; i++) { handleFile(files[i], i); } return $q.all(promises); } upload.updateModel = function (ngModel, attr, scope, fileChange, files, evt, noDelay) { function update(files, invalidFiles, newFiles, dupFiles, isSingleModel) { attr.$$ngfPrevValidFiles = files; attr.$$ngfPrevInvalidFiles = invalidFiles; var file = files && files.length ? files[0] : null; var invalidFile = invalidFiles && invalidFiles.length ? invalidFiles[0] : null; if (ngModel) { upload.applyModelValidation(ngModel, files); ngModel.$setViewValue(isSingleModel ? file : files); } if (fileChange) { $parse(fileChange)(scope, { $files: files, $file: file, $newFiles: newFiles, $duplicateFiles: dupFiles, $invalidFiles: invalidFiles, $invalidFile: invalidFile, $event: evt }); } var invalidModel = upload.attrGetter('ngfModelInvalid', attr); if (invalidModel) { $timeout(function () { $parse(invalidModel).assign(scope, isSingleModel ? invalidFile : invalidFiles); }); } $timeout(function () { // scope apply changes }); } var allNewFiles, dupFiles = [], prevValidFiles, prevInvalidFiles, invalids = [], valids = []; function removeDuplicates() { function equals(f1, f2) { return f1.name === f2.name && (f1.$ngfOrigSize || f1.size) === (f2.$ngfOrigSize || f2.size) && f1.type === f2.type; } function isInPrevFiles(f) { var j; for (j = 0; j < prevValidFiles.length; j++) { if (equals(f, prevValidFiles[j])) { return true; } } for (j = 0; j < prevInvalidFiles.length; j++) { if (equals(f, prevInvalidFiles[j])) { return true; } } return false; } if (files) { allNewFiles = []; dupFiles = []; for (var i = 0; i < files.length; i++) { if (isInPrevFiles(files[i])) { dupFiles.push(files[i]); } else { allNewFiles.push(files[i]); } } } } function toArray(v) { return angular.isArray(v) ? v : [v]; } function separateInvalids() { valids = []; invalids = []; angular.forEach(allNewFiles, function (file) { if (file.$error) { invalids.push(file); } else { valids.push(file); } }); } function resizeAndUpdate() { function updateModel() { $timeout(function () { update(keep ? prevValidFiles.concat(valids) : valids, keep ? prevInvalidFiles.concat(invalids) : invalids, files, dupFiles, isSingleModel); }, options && options.debounce ? options.debounce.change || options.debounce : 0); } resize(validateAfterResize ? allNewFiles : valids, attr, scope).then(function () { if (validateAfterResize) { upload.validate(allNewFiles, prevValidFiles.length, ngModel, attr, scope).then(function () { separateInvalids(); updateModel(); }); } else { updateModel(); } }, function (e) { throw 'Could not resize files ' + e; }); } prevValidFiles = attr.$$ngfPrevValidFiles || []; prevInvalidFiles = attr.$$ngfPrevInvalidFiles || []; if (ngModel && ngModel.$modelValue) { prevValidFiles = toArray(ngModel.$modelValue); } var keep = upload.attrGetter('ngfKeep', attr, scope); allNewFiles = (files || []).slice(0); if (keep === 'distinct' || upload.attrGetter('ngfKeepDistinct', attr, scope) === true) { removeDuplicates(attr, scope); } var isSingleModel = !keep && !upload.attrGetter('ngfMultiple', attr, scope) && !upload.attrGetter('multiple', attr); if (keep && !allNewFiles.length) return; upload.attrGetter('ngfBeforeModelChange', attr, scope, { $files: files, $file: files && files.length ? files[0] : null, $newFiles: allNewFiles, $duplicateFiles: dupFiles, $event: evt }); var validateAfterResize = upload.attrGetter('ngfValidateAfterResize', attr, scope); var options = upload.attrGetter('ngModelOptions', attr, scope); upload.validate(allNewFiles, prevValidFiles.length, ngModel, attr, scope).then(function () { if (noDelay) { update(allNewFiles, [], files, dupFiles, isSingleModel); } else { if ((!options || !options.allowInvalid) && !validateAfterResize) { separateInvalids(); } else { valids = allNewFiles; } if (upload.attrGetter('ngfFixOrientation', attr, scope) && upload.isExifSupported()) { applyExifRotations(valids, attr, scope).then(function () { resizeAndUpdate(); }); } else { resizeAndUpdate(); } } }); }; return upload; }]); ngFileUpload.directive('ngfSelect', ['$parse', '$timeout', '$compile', 'Upload', function ($parse, $timeout, $compile, Upload) { var generatedElems = []; function isDelayedClickSupported(ua) { // fix for android native browser < 4.4 and safari windows var m = ua.match(/Android[^\d]*(\d+)\.(\d+)/); if (m && m.length > 2) { var v = Upload.defaults.androidFixMinorVersion || 4; return parseInt(m[1]) < 4 || (parseInt(m[1]) === v && parseInt(m[2]) < v); } // safari on windows return ua.indexOf('Chrome') === -1 && /.*Windows.*Safari.*/.test(ua); } function linkFileSelect(scope, elem, attr, ngModel, $parse, $timeout, $compile, upload) { /** @namespace attr.ngfSelect */ /** @namespace attr.ngfChange */ /** @namespace attr.ngModel */ /** @namespace attr.ngModelOptions */ /** @namespace attr.ngfMultiple */ /** @namespace attr.ngfCapture */ /** @namespace attr.ngfValidate */ /** @namespace attr.ngfKeep */ var attrGetter = function (name, scope) { return upload.attrGetter(name, attr, scope); }; function isInputTypeFile() { return elem[0].tagName.toLowerCase() === 'input' && attr.type && attr.type.toLowerCase() === 'file'; } function fileChangeAttr() { return attrGetter('ngfChange') || attrGetter('ngfSelect'); } function changeFn(evt) { if (upload.shouldUpdateOn('change', attr, scope)) { var fileList = evt.__files_ || (evt.target && evt.target.files), files = []; for (var i = 0; i < fileList.length; i++) { files.push(fileList[i]); } upload.updateModel(ngModel, attr, scope, fileChangeAttr(), files.length ? files : null, evt); } } upload.registerModelChangeValidator(ngModel, attr, scope); var unwatches = []; unwatches.push(scope.$watch(attrGetter('ngfMultiple'), function () { fileElem.attr('multiple', attrGetter('ngfMultiple', scope)); })); unwatches.push(scope.$watch(attrGetter('ngfCapture'), function () { fileElem.attr('capture', attrGetter('ngfCapture', scope)); })); unwatches.push(scope.$watch(attrGetter('ngfAccept'), function () { fileElem.attr('accept', attrGetter('ngfAccept', scope)); })); attr.$observe('accept', function () { fileElem.attr('accept', attrGetter('accept')); }); unwatches.push(function () { if (attr.$$observers) delete attr.$$observers.accept; }); function bindAttrToFileInput(fileElem) { if (elem !== fileElem) { for (var i = 0; i < elem[0].attributes.length; i++) { var attribute = elem[0].attributes[i]; if (attribute.name !== 'type' && attribute.name !== 'class' && attribute.name !== 'style') { if (attribute.value == null || attribute.value === '') { if (attribute.name === 'required') attribute.value = 'required'; if (attribute.name === 'multiple') attribute.value = 'multiple'; } fileElem.attr(attribute.name, attribute.name === 'id' ? 'ngf-' + attribute.value : attribute.value); } } } } function createFileInput() { if (isInputTypeFile()) { return elem; } var fileElem = angular.element('<input type="file">'); bindAttrToFileInput(fileElem); var label = angular.element('<label>upload</label>'); label.css('visibility', 'hidden').css('position', 'absolute').css('overflow', 'hidden') .css('width', '0px').css('height', '0px').css('border', 'none') .css('margin', '0px').css('padding', '0px').attr('tabindex', '-1'); generatedElems.push({el: elem, ref: label}); document.body.appendChild(label.append(fileElem)[0]); return fileElem; } var initialTouchStartY = 0; function clickHandler(evt) { if (elem.attr('disabled')) return false; if (attrGetter('ngfSelectDisabled', scope)) return; var r = handleTouch(evt); if (r != null) return r; resetModel(evt); // fix for md when the element is removed from the DOM and added back #460 try { if (!isInputTypeFile() && !document.body.contains(fileElem[0])) { generatedElems.push({el: elem, ref: fileElem.parent()}); document.body.appendChild(fileElem.parent()[0]); fileElem.bind('change', changeFn); } } catch(e){/*ignore*/} if (isDelayedClickSupported(navigator.userAgent)) { setTimeout(function () { fileElem[0].click(); }, 0); } else { fileElem[0].click(); } return false; } function handleTouch(evt) { var touches = evt.changedTouches || (evt.originalEvent && evt.originalEvent.changedTouches); if (evt.type === 'touchstart') { initialTouchStartY = touches ? touches[0].clientY : 0; return true; // don't block event default } else { evt.stopPropagation(); evt.preventDefault(); // prevent scroll from triggering event if (evt.type === 'touchend') { var currentLocation = touches ? touches[0].clientY : 0; if (Math.abs(currentLocation - initialTouchStartY) > 20) return false; } } } var fileElem = elem; function resetModel(evt) { if (upload.shouldUpdateOn('click', attr, scope) && fileElem.val()) { fileElem.val(null); upload.updateModel(ngModel, attr, scope, fileChangeAttr(), null, evt, true); } } if (!isInputTypeFile()) { fileElem = createFileInput(); } fileElem.bind('change', changeFn); if (!isInputTypeFile()) { elem.bind('click touchstart touchend', clickHandler); } else { elem.bind('click', resetModel); } function ie10SameFileSelectFix(evt) { if (fileElem && !fileElem.attr('__ngf_ie10_Fix_')) { if (!fileElem[0].parentNode) { fileElem = null; return; } evt.preventDefault(); evt.stopPropagation(); fileElem.unbind('click'); var clone = fileElem.clone(); fileElem.replaceWith(clone); fileElem = clone; fileElem.attr('__ngf_ie10_Fix_', 'true'); fileElem.bind('change', changeFn); fileElem.bind('click', ie10SameFileSelectFix); fileElem[0].click(); return false; } else { fileElem.removeAttr('__ngf_ie10_Fix_'); } } if (navigator.appVersion.indexOf('MSIE 10') !== -1) { fileElem.bind('click', ie10SameFileSelectFix); } if (ngModel) ngModel.$formatters.push(function (val) { if (val == null || val.length === 0) { if (fileElem.val()) { fileElem.val(null); } } return val; }); scope.$on('$destroy', function () { if (!isInputTypeFile()) fileElem.parent().remove(); angular.forEach(unwatches, function (unwatch) { unwatch(); }); }); $timeout(function () { for (var i = 0; i < generatedElems.length; i++) { var g = generatedElems[i]; if (!document.body.contains(g.el[0])) { generatedElems.splice(i, 1); g.ref.remove(); } } }); if (window.FileAPI && window.FileAPI.ngfFixIE) { window.FileAPI.ngfFixIE(elem, fileElem, changeFn); } } return { restrict: 'AEC', require: '?ngModel', link: function (scope, elem, attr, ngModel) { linkFileSelect(scope, elem, attr, ngModel, $parse, $timeout, $compile, Upload); } }; }]); (function () { ngFileUpload.service('UploadDataUrl', ['UploadBase', '$timeout', '$q', function (UploadBase, $timeout, $q) { var upload = UploadBase; upload.base64DataUrl = function (file) { if (angular.isArray(file)) { var d = $q.defer(), count = 0; angular.forEach(file, function (f) { upload.dataUrl(f, true)['finally'](function () { count++; if (count === file.length) { var urls = []; angular.forEach(file, function (ff) { urls.push(ff.$ngfDataUrl); }); d.resolve(urls, file); } }); }); return d.promise; } else { return upload.dataUrl(file, true); } }; upload.dataUrl = function (file, disallowObjectUrl) { if (!file) return upload.emptyPromise(file, file); if ((disallowObjectUrl && file.$ngfDataUrl != null) || (!disallowObjectUrl && file.$ngfBlobUrl != null)) { return upload.emptyPromise(disallowObjectUrl ? file.$ngfDataUrl : file.$ngfBlobUrl, file); } var p = disallowObjectUrl ? file.$$ngfDataUrlPromise : file.$$ngfBlobUrlPromise; if (p) return p; var deferred = $q.defer(); $timeout(function () { if (window.FileReader && file && (!window.FileAPI || navigator.userAgent.indexOf('MSIE 8') === -1 || file.size < 20000) && (!window.FileAPI || navigator.userAgent.indexOf('MSIE 9') === -1 || file.size < 4000000)) { //prefer URL.createObjectURL for handling refrences to files of all sizes //since it doesn´t build a large string in memory var URL = window.URL || window.webkitURL; if (URL && URL.createObjectURL && !disallowObjectUrl) { var url; try { url = URL.createObjectURL(file); } catch (e) { $timeout(function () { file.$ngfBlobUrl = ''; deferred.reject(); }); return; } $timeout(function () { file.$ngfBlobUrl = url; if (url) { deferred.resolve(url, file); upload.blobUrls = upload.blobUrls || []; upload.blobUrlsTotalSize = upload.blobUrlsTotalSize || 0; upload.blobUrls.push({url: url, size: file.size}); upload.blobUrlsTotalSize += file.size || 0; var maxMemory = upload.defaults.blobUrlsMaxMemory || 268435456; var maxLength = upload.defaults.blobUrlsMaxQueueSize || 200; while ((upload.blobUrlsTotalSize > maxMemory || upload.blobUrls.length > maxLength) && upload.blobUrls.length > 1) { var obj = upload.blobUrls.splice(0, 1)[0]; URL.revokeObjectURL(obj.url); upload.blobUrlsTotalSize -= obj.size; } } }); } else { var fileReader = new FileReader(); fileReader.onload = function (e) { $timeout(function () { file.$ngfDataUrl = e.target.result; deferred.resolve(e.target.result, file); $timeout(function () { delete file.$ngfDataUrl; }, 1000); }); }; fileReader.onerror = function () { $timeout(function () { file.$ngfDataUrl = ''; deferred.reject(); }); }; fileReader.readAsDataURL(file); } } else { $timeout(function () { file[disallowObjectUrl ? '$ngfDataUrl' : '$ngfBlobUrl'] = ''; deferred.reject(); }); } }); if (disallowObjectUrl) { p = file.$$ngfDataUrlPromise = deferred.promise; } else { p = file.$$ngfBlobUrlPromise = deferred.promise; } p['finally'](function () { delete file[disallowObjectUrl ? '$$ngfDataUrlPromise' : '$$ngfBlobUrlPromise']; }); return p; }; return upload; }]); function getTagType(el) { if (el.tagName.toLowerCase() === 'img') return 'image'; if (el.tagName.toLowerCase() === 'audio') return 'audio'; if (el.tagName.toLowerCase() === 'video') return 'video'; return /./; } function linkFileDirective(Upload, $timeout, scope, elem, attr, directiveName, resizeParams, isBackground) { function constructDataUrl(file) { var disallowObjectUrl = Upload.attrGetter('ngfNoObjectUrl', attr, scope); Upload.dataUrl(file, disallowObjectUrl)['finally'](function () { $timeout(function () { var src = (disallowObjectUrl ? file.$ngfDataUrl : file.$ngfBlobUrl) || file.$ngfDataUrl; if (isBackground) { elem.css('background-image', 'url(\'' + (src || '') + '\')'); } else { elem.attr('src', src); } if (src) { elem.removeClass('ng-hide'); } else { elem.addClass('ng-hide'); } }); }); } $timeout(function () { var unwatch = scope.$watch(attr[directiveName], function (file) { var size = resizeParams; if (directiveName === 'ngfThumbnail') { if (!size) { size = {width: elem[0].clientWidth, height: elem[0].clientHeight}; } if (size.width === 0 && window.getComputedStyle) { var style = getComputedStyle(elem[0]); size = { width: parseInt(style.width.slice(0, -2)), height: parseInt(style.height.slice(0, -2)) }; } } if (angular.isString(file)) { elem.removeClass('ng-hide'); if (isBackground) { return elem.css('background-image', 'url(\'' + file + '\')'); } else { return elem.attr('src', file); } } if (file && file.type && file.type.search(getTagType(elem[0])) === 0 && (!isBackground || file.type.indexOf('image') === 0)) { if (size && Upload.isResizeSupported()) { Upload.resize(file, size.width, size.height, size.quality).then( function (f) { constructDataUrl(f); }, function (e) { throw e; } ); } else { constructDataUrl(file); } } else { elem.addClass('ng-hide'); } }); scope.$on('$destroy', function () { unwatch(); }); }); } /** @namespace attr.ngfSrc */ /** @namespace attr.ngfNoObjectUrl */ ngFileUpload.directive('ngfSrc', ['Upload', '$timeout', function (Upload, $timeout) { return { restrict: 'AE', link: function (scope, elem, attr) { linkFileDirective(Upload, $timeout, scope, elem, attr, 'ngfSrc', Upload.attrGetter('ngfResize', attr, scope), false); } }; }]); /** @namespace attr.ngfBackground */ /** @namespace attr.ngfNoObjectUrl */ ngFileUpload.directive('ngfBackground', ['Upload', '$timeout', function (Upload, $timeout) { return { restrict: 'AE', link: function (scope, elem, attr) { linkFileDirective(Upload, $timeout, scope, elem, attr, 'ngfBackground', Upload.attrGetter('ngfResize', attr, scope), true); } }; }]); /** @namespace attr.ngfThumbnail */ /** @namespace attr.ngfAsBackground */ /** @namespace attr.ngfSize */ /** @namespace attr.ngfNoObjectUrl */ ngFileUpload.directive('ngfThumbnail', ['Upload', '$timeout', function (Upload, $timeout) { return { restrict: 'AE', link: function (scope, elem, attr) { var size = Upload.attrGetter('ngfSize', attr, scope); linkFileDirective(Upload, $timeout, scope, elem, attr, 'ngfThumbnail', size, Upload.attrGetter('ngfAsBackground', attr, scope)); } }; }]); ngFileUpload.config(['$compileProvider', function ($compileProvider) { if ($compileProvider.imgSrcSanitizationWhitelist) $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|local|file|data|blob):/); if ($compileProvider.aHrefSanitizationWhitelist) $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|local|file|data|blob):/); }]); ngFileUpload.filter('ngfDataUrl', ['UploadDataUrl', '$sce', function (UploadDataUrl, $sce) { return function (file, disallowObjectUrl, trustedUrl) { if (angular.isString(file)) { return $sce.trustAsResourceUrl(file); } var src = file && ((disallowObjectUrl ? file.$ngfDataUrl : file.$ngfBlobUrl) || file.$ngfDataUrl); if (file && !src) { if (!file.$ngfDataUrlFilterInProgress && angular.isObject(file)) { file.$ngfDataUrlFilterInProgress = true; UploadDataUrl.dataUrl(file, disallowObjectUrl); } return ''; } if (file) delete file.$ngfDataUrlFilterInProgress; return (file && src ? (trustedUrl ? $sce.trustAsResourceUrl(src) : src) : file) || ''; }; }]); })(); ngFileUpload.service('UploadValidate', ['UploadDataUrl', '$q', '$timeout', function (UploadDataUrl, $q, $timeout) { var upload = UploadDataUrl; function globStringToRegex(str) { var regexp = '', excludes = []; if (str.length > 2 && str[0] === '/' && str[str.length - 1] === '/') { regexp = str.substring(1, str.length - 1); } else { var split = str.split(','); if (split.length > 1) { for (var i = 0; i < split.length; i++) { var r = globStringToRegex(split[i]); if (r.regexp) { regexp += '(' + r.regexp + ')'; if (i < split.length - 1) { regexp += '|'; } } else { excludes = excludes.concat(r.excludes); } } } else { if (str.indexOf('!') === 0) { excludes.push('^((?!' + globStringToRegex(str.substring(1)).regexp + ').)*$'); } else { if (str.indexOf('.') === 0) { str = '*' + str; } regexp = '^' + str.replace(new RegExp('[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]', 'g'), '\\$&') + '$'; regexp = regexp.replace(/\\\*/g, '.*').replace(/\\\?/g, '.'); } } } return {regexp: regexp, excludes: excludes}; } upload.validatePattern = function (file, val) { if (!val) { return true; } var pattern = globStringToRegex(val), valid = true; if (pattern.regexp && pattern.regexp.length) { var regexp = new RegExp(pattern.regexp, 'i'); valid = (file.type != null && regexp.test(file.type)) || (file.name != null && regexp.test(file.name)); } var len = pattern.excludes.length; while (len--) { var exclude = new RegExp(pattern.excludes[len], 'i'); valid = valid && (file.type == null || exclude.test(file.type)) && (file.name == null || exclude.test(file.name)); } return valid; }; upload.ratioToFloat = function (val) { var r = val.toString(), xIndex = r.search(/[x:]/i); if (xIndex > -1) { r = parseFloat(r.substring(0, xIndex)) / parseFloat(r.substring(xIndex + 1)); } else { r = parseFloat(r); } return r; }; upload.registerModelChangeValidator = function (ngModel, attr, scope) { if (ngModel) { ngModel.$formatters.push(function (files) { if (ngModel.$dirty) { if (files && !angular.isArray(files)) { files = [files]; } upload.validate(files, 0, ngModel, attr, scope).then(function () { upload.applyModelValidation(ngModel, files); }); } }); } }; function markModelAsDirty(ngModel, files) { if (files != null && !ngModel.$dirty) { if (ngModel.$setDirty) { ngModel.$setDirty(); } else { ngModel.$dirty = true; } } } upload.applyModelValidation = function (ngModel, files) { markModelAsDirty(ngModel, files); angular.forEach(ngModel.$ngfValidations, function (validation) { ngModel.$setValidity(validation.name, validation.valid); }); }; upload.getValidationAttr = function (attr, scope, name, validationName, file) { var dName = 'ngf' + name[0].toUpperCase() + name.substr(1); var val = upload.attrGetter(dName, attr, scope, {$file: file}); if (val == null) { val = upload.attrGetter('ngfValidate', attr, scope, {$file: file}); if (val) { var split = (validationName || name).split('.'); val = val[split[0]]; if (split.length > 1) { val = val && val[split[1]]; } } } return val; }; upload.validate = function (files, prevLength, ngModel, attr, scope) { ngModel = ngModel || {}; ngModel.$ngfValidations = ngModel.$ngfValidations || []; angular.forEach(ngModel.$ngfValidations, function (v) { v.valid = true; }); var attrGetter = function (name, params) { return upload.attrGetter(name, attr, scope, params); }; if (files == null || files.length === 0) { return upload.emptyPromise(ngModel); } files = files.length === undefined ? [files] : files.slice(0); function validateSync(name, validationName, fn) { if (files) { var i = files.length, valid = null; while (i--) { var file = files[i]; if (file) { var val = upload.getValidationAttr(attr, scope, name, validationName, file); if (val != null) { if (!fn(file, val, i)) { file.$error = name; (file.$errorMessages = (file.$errorMessages || {}))[name] = true; file.$errorParam = val; files.splice(i, 1); valid = false; } } } } if (valid !== null) { ngModel.$ngfValidations.push({name: name, valid: valid}); } } } validateSync('maxFiles', null, function (file, val, i) { return prevLength + i < val; }); validateSync('pattern', null, upload.validatePattern); validateSync('minSize', 'size.min', function (file, val) { return file.size + 0.1 >= upload.translateScalars(val); }); validateSync('maxSize', 'size.max', function (file, val) { return file.size - 0.1 <= upload.translateScalars(val); }); var totalSize = 0; validateSync('maxTotalSize', null, function (file, val) { totalSize += file.size; if (totalSize > upload.translateScalars(val)) { files.splice(0, files.length); return false; } return true; }); validateSync('validateFn', null, function (file, r) { return r === true || r === null || r === ''; }); if (!files.length) { return upload.emptyPromise(ngModel, ngModel.$ngfValidations); } function validateAsync(name, validationName, type, asyncFn, fn) { function resolveResult(defer, file, val) { if (val != null) { asyncFn(file, val).then(function (d) { if (!fn(d, val)) { file.$error = name; (file.$errorMessages = (file.$errorMessages || {}))[name] = true; file.$errorParam = val; defer.reject(); } else { defer.resolve(); } }, function () { if (attrGetter('ngfValidateForce', {$file: file})) { file.$error = name; (file.$errorMessages = (file.$errorMessages || {}))[name] = true; file.$errorParam = val; defer.reject(); } else { defer.resolve(); } }); } else { defer.resolve(); } } var promises = [upload.emptyPromise()]; if (files) { files = files.length === undefined ? [files] : files; angular.forEach(files, function (file) { var defer = $q.defer(); promises.push(defer.promise); if (type && (file.type == null || file.type.search(type) !== 0)) { defer.resolve(); return; } if (name === 'dimensions' && upload.attrGetter('ngfDimensions', attr) != null) { upload.imageDimensions(file).then(function (d) { resolveResult(defer, file, attrGetter('ngfDimensions', {$file: file, $width: d.width, $height: d.height})); }, function () { defer.reject(); }); } else if (name === 'duration' && upload.attrGetter('ngfDuration', attr) != null) { upload.mediaDuration(file).then(function (d) { resolveResult(defer, file, attrGetter('ngfDuration', {$file: file, $duration: d})); }, function () { defer.reject(); }); } else { resolveResult(defer, file, upload.getValidationAttr(attr, scope, name, validationName, file)); } }); return $q.all(promises).then(function () { ngModel.$ngfValidations.push({name: name, valid: true}); }, function () { ngModel.$ngfValidations.push({name: name, valid: false}); }); } } var deffer = $q.defer(); var promises = []; promises.push(upload.happyPromise(validateAsync('maxHeight', 'height.max', /image/, this.imageDimensions, function (d, val) { return d.height <= val; }))); promises.push(upload.happyPromise(validateAsync('minHeight', 'height.min', /image/, this.imageDimensions, function (d, val) { return d.height >= val; }))); promises.push(upload.happyPromise(validateAsync('maxWidth', 'width.max', /image/, this.imageDimensions, function (d, val) { return d.width <= val; }))); promises.push(upload.happyPromise(validateAsync('minWidth', 'width.min', /image/, this.imageDimensions, function (d, val) { return d.width >= val; }))); promises.push(upload.happyPromise(validateAsync('dimensions', null, /image/, function (file, val) { return upload.emptyPromise(val); }, function (r) { return r; }))); promises.push(upload.happyPromise(validateAsync('ratio', null, /image/, this.imageDimensions, function (d, val) { var split = val.toString().split(','), valid = false; for (var i = 0; i < split.length; i++) { if (Math.abs((d.width / d.height) - upload.ratioToFloat(split[i])) < 0.0001) { valid = true; } } return valid; }))); promises.push(upload.happyPromise(validateAsync('maxRatio', 'ratio.max', /image/, this.imageDimensions, function (d, val) { return (d.width / d.height) - upload.ratioToFloat(val) < 0.0001; }))); promises.push(upload.happyPromise(validateAsync('minRatio', 'ratio.min', /image/, this.imageDimensions, function (d, val) { return (d.width / d.height) - upload.ratioToFloat(val) > -0.0001; }))); promises.push(upload.happyPromise(validateAsync('maxDuration', 'duration.max', /audio|video/, this.mediaDuration, function (d, val) { return d <= upload.translateScalars(val); }))); promises.push(upload.happyPromise(validateAsync('minDuration', 'duration.min', /audio|video/, this.mediaDuration, function (d, val) { return d >= upload.translateScalars(val); }))); promises.push(upload.happyPromise(validateAsync('duration', null, /audio|video/, function (file, val) { return upload.emptyPromise(val); }, function (r) { return r; }))); promises.push(upload.happyPromise(validateAsync('validateAsyncFn', null, null, function (file, val) { return val; }, function (r) { return r === true || r === null || r === ''; }))); return $q.all(promises).then(function () { deffer.resolve(ngModel, ngModel.$ngfValidations); }); }; upload.imageDimensions = function (file) { if (file.$ngfWidth && file.$ngfHeight) { var d = $q.defer(); $timeout(function () { d.resolve({width: file.$ngfWidth, height: file.$ngfHeight}); }); return d.promise; } if (file.$ngfDimensionPromise) return file.$ngfDimensionPromise; var deferred = $q.defer(); $timeout(function () { if (file.type.indexOf('image') !== 0) { deferred.reject('not image'); return; } upload.dataUrl(file).then(function (dataUrl) { var img = angular.element('<img>').attr('src', dataUrl) .css('visibility', 'hidden').css('position', 'fixed') .css('max-width', 'none !important').css('max-height', 'none !important'); function success() { var width = img[0].clientWidth; var height = img[0].clientHeight; img.remove(); file.$ngfWidth = width; file.$ngfHeight = height; deferred.resolve({width: width, height: height}); } function error() { img.remove(); deferred.reject('load error'); } img.on('load', success); img.on('error', error); var count = 0; function checkLoadError() { $timeout(function () { if (img[0].parentNode) { if (img[0].clientWidth) { success(); } else if (count > 10) { error(); } else { checkLoadError(); } } }, 1000); } checkLoadError(); angular.element(document.getElementsByTagName('body')[0]).append(img); }, function () { deferred.reject('load error'); }); }); file.$ngfDimensionPromise = deferred.promise; file.$ngfDimensionPromise['finally'](function () { delete file.$ngfDimensionPromise; }); return file.$ngfDimensionPromise; }; upload.mediaDuration = function (file) { if (file.$ngfDuration) { var d = $q.defer(); $timeout(function () { d.resolve(file.$ngfDuration); }); return d.promise; } if (file.$ngfDurationPromise) return file.$ngfDurationPromise; var deferred = $q.defer(); $timeout(function () { if (file.type.indexOf('audio') !== 0 && file.type.indexOf('video') !== 0) { deferred.reject('not media'); return; } upload.dataUrl(file).then(function (dataUrl) { var el = angular.element(file.type.indexOf('audio') === 0 ? '<audio>' : '<video>') .attr('src', dataUrl).css('visibility', 'none').css('position', 'fixed'); function success() { var duration = el[0].duration; file.$ngfDuration = duration; el.remove(); deferred.resolve(duration); } function error() { el.remove(); deferred.reject('load error'); } el.on('loadedmetadata', success); el.on('error', error); var count = 0; function checkLoadError() { $timeout(function () { if (el[0].parentNode) { if (el[0].duration) { success(); } else if (count > 10) { error(); } else { checkLoadError(); } } }, 1000); } checkLoadError(); angular.element(document.body).append(el); }, function () { deferred.reject('load error'); }); }); file.$ngfDurationPromise = deferred.promise; file.$ngfDurationPromise['finally'](function () { delete file.$ngfDurationPromise; }); return file.$ngfDurationPromise; }; return upload; } ]); ngFileUpload.service('UploadResize', ['UploadValidate', '$q', function (UploadValidate, $q) { var upload = UploadValidate; /** * Conserve aspect ratio of the original region. Useful when shrinking/enlarging * images to fit into a certain area. * Source: http://stackoverflow.com/a/14731922 * * @param {Number} srcWidth Source area width * @param {Number} srcHeight Source area height * @param {Number} maxWidth Nestable area maximum available width * @param {Number} maxHeight Nestable area maximum available height * @return {Object} { width, height } */ var calculateAspectRatioFit = function (srcWidth, srcHeight, maxWidth, maxHeight, centerCrop) { var ratio = centerCrop ? Math.max(maxWidth / srcWidth, maxHeight / srcHeight) : Math.min(maxWidth / srcWidth, maxHeight / srcHeight); return { width: srcWidth * ratio, height: srcHeight * ratio, marginX: srcWidth * ratio - maxWidth, marginY: srcHeight * ratio - maxHeight }; }; // Extracted from https://github.com/romelgomez/angular-firebase-image-upload/blob/master/app/scripts/fileUpload.js#L89 var resize = function (imagen, width, height, quality, type, ratio, centerCrop, resizeIf) { var deferred = $q.defer(); var canvasElement = document.createElement('canvas'); var imageElement = document.createElement('img'); imageElement.onload = function () { if (resizeIf != null && resizeIf(imageElement.width, imageElement.height) === false) { deferred.reject('resizeIf'); return; } try { if (ratio) { var ratioFloat = upload.ratioToFloat(ratio); var imgRatio = imageElement.width / imageElement.height; if (imgRatio < ratioFloat) { width = imageElement.width; height = width / ratioFloat; } else { height = imageElement.height; width = height * ratioFloat; } } if (!width) { width = imageElement.width; } if (!height) { height = imageElement.height; } var dimensions = calculateAspectRatioFit(imageElement.width, imageElement.height, width, height, centerCrop); canvasElement.width = Math.min(dimensions.width, width); canvasElement.height = Math.min(dimensions.height, height); var context = canvasElement.getContext('2d'); context.drawImage(imageElement, Math.min(0, -dimensions.marginX / 2), Math.min(0, -dimensions.marginY / 2), dimensions.width, dimensions.height); deferred.resolve(canvasElement.toDataURL(type || 'image/WebP', quality || 0.934)); } catch (e) { deferred.reject(e); } }; imageElement.onerror = function () { deferred.reject(); }; imageElement.src = imagen; return deferred.promise; }; upload.dataUrltoBlob = function (dataurl, name, origSize) { var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1], bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n); while (n--) { u8arr[n] = bstr.charCodeAt(n); } var blob = new window.Blob([u8arr], {type: mime}); blob.name = name; blob.$ngfOrigSize = origSize; return blob; }; upload.isResizeSupported = function () { var elem = document.createElement('canvas'); return window.atob && elem.getContext && elem.getContext('2d') && window.Blob; }; if (upload.isResizeSupported()) { // add name getter to the blob constructor prototype Object.defineProperty(window.Blob.prototype, 'name', { get: function () { return this.$ngfName; }, set: function (v) { this.$ngfName = v; }, configurable: true }); } upload.resize = function (file, width, height, quality, type, ratio, centerCrop, resizeIf, restoreExif) { if (file.type.indexOf('image') !== 0) return upload.emptyPromise(file); var deferred = $q.defer(); upload.dataUrl(file, true).then(function (url) { resize(url, width, height, quality, type || file.type, ratio, centerCrop, resizeIf) .then(function (dataUrl) { if (file.type === 'image/jpeg' && restoreExif) { try { dataUrl = upload.restoreExif(url, dataUrl); } catch (e) { setTimeout(function () {throw e;}, 1); } } try { var blob = upload.dataUrltoBlob(dataUrl, file.name, file.size); deferred.resolve(blob); } catch (e) { deferred.reject(e); } }, function (r) { if (r === 'resizeIf') { deferred.resolve(file); } deferred.reject(r); }); }, function (e) { deferred.reject(e); }); return deferred.promise; }; return upload; }]); (function () { ngFileUpload.directive('ngfDrop', ['$parse', '$timeout', '$location', 'Upload', '$http', '$q', function ($parse, $timeout, $location, Upload, $http, $q) { return { restrict: 'AEC', require: '?ngModel', link: function (scope, elem, attr, ngModel) { linkDrop(scope, elem, attr, ngModel, $parse, $timeout, $location, Upload, $http, $q); } }; }]); ngFileUpload.directive('ngfNoFileDrop', function () { return function (scope, elem) { if (dropAvailable()) elem.css('display', 'none'); }; }); ngFileUpload.directive('ngfDropAvailable', ['$parse', '$timeout', 'Upload', function ($parse, $timeout, Upload) { return function (scope, elem, attr) { if (dropAvailable()) { var model = $parse(Upload.attrGetter('ngfDropAvailable', attr)); $timeout(function () { model(scope); if (model.assign) { model.assign(scope, true); } }); } }; }]); function linkDrop(scope, elem, attr, ngModel, $parse, $timeout, $location, upload, $http, $q) { var available = dropAvailable(); var attrGetter = function (name, scope, params) { return upload.attrGetter(name, attr, scope, params); }; if (attrGetter('dropAvailable')) { $timeout(function () { if (scope[attrGetter('dropAvailable')]) { scope[attrGetter('dropAvailable')].value = available; } else { scope[attrGetter('dropAvailable')] = available; } }); } if (!available) { if (attrGetter('ngfHideOnDropNotAvailable', scope) === true) { elem.css('display', 'none'); } return; } function isDisabled() { return elem.attr('disabled') || attrGetter('ngfDropDisabled', scope); } if (attrGetter('ngfSelect') == null) { upload.registerModelChangeValidator(ngModel, attr, scope); } var leaveTimeout = null; var stopPropagation = $parse(attrGetter('ngfStopPropagation')); var dragOverDelay = 1; var actualDragOverClass; elem[0].addEventListener('dragover', function (evt) { if (isDisabled() || !upload.shouldUpdateOn('drop', attr, scope)) return; evt.preventDefault(); if (stopPropagation(scope)) evt.stopPropagation(); // handling dragover events from the Chrome download bar if (navigator.userAgent.indexOf('Chrome') > -1) { var b = evt.dataTransfer.effectAllowed; evt.dataTransfer.dropEffect = ('move' === b || 'linkMove' === b) ? 'move' : 'copy'; } $timeout.cancel(leaveTimeout); if (!actualDragOverClass) { actualDragOverClass = 'C'; calculateDragOverClass(scope, attr, evt, function (clazz) { actualDragOverClass = clazz; elem.addClass(actualDragOverClass); attrGetter('ngfDrag', scope, {$isDragging: true, $class: actualDragOverClass, $event: evt}); }); } }, false); elem[0].addEventListener('dragenter', function (evt) { if (isDisabled() || !upload.shouldUpdateOn('drop', attr, scope)) return; evt.preventDefault(); if (stopPropagation(scope)) evt.stopPropagation(); }, false); elem[0].addEventListener('dragleave', function (evt) { if (isDisabled() || !upload.shouldUpdateOn('drop', attr, scope)) return; evt.preventDefault(); if (stopPropagation(scope)) evt.stopPropagation(); leaveTimeout = $timeout(function () { if (actualDragOverClass) elem.removeClass(actualDragOverClass); actualDragOverClass = null; attrGetter('ngfDrag', scope, {$isDragging: false, $event: evt}); }, dragOverDelay || 100); }, false); elem[0].addEventListener('drop', function (evt) { if (isDisabled() || !upload.shouldUpdateOn('drop', attr, scope)) return; evt.preventDefault(); if (stopPropagation(scope)) evt.stopPropagation(); if (actualDragOverClass) elem.removeClass(actualDragOverClass); actualDragOverClass = null; var items = evt.dataTransfer.items; var html; try { html = evt.dataTransfer && evt.dataTransfer.getData && evt.dataTransfer.getData('text/html'); } catch (e) {/* Fix IE11 that throw error calling getData */ } extractFiles(items, evt.dataTransfer.files, attrGetter('ngfAllowDir', scope) !== false, attrGetter('multiple') || attrGetter('ngfMultiple', scope)).then(function (files) { if (files.length) { updateModel(files, evt); } else { extractFilesFromHtml('dropUrl', html).then(function (files) { updateModel(files, evt); }); } }); }, false); elem[0].addEventListener('paste', function (evt) { if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1 && attrGetter('ngfEnableFirefoxPaste', scope)) { evt.preventDefault(); } if (isDisabled() || !upload.shouldUpdateOn('paste', attr, scope)) return; var files = []; var clipboard = evt.clipboardData || evt.originalEvent.clipboardData; if (clipboard && clipboard.items) { for (var k = 0; k < clipboard.items.length; k++) { if (clipboard.items[k].type.indexOf('image') !== -1) { files.push(clipboard.items[k].getAsFile()); } } } if (files.length) { updateModel(files, evt); } else { extractFilesFromHtml('pasteUrl', clipboard).then(function (files) { updateModel(files, evt); }); } }, false); if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1 && attrGetter('ngfEnableFirefoxPaste', scope)) { elem.attr('contenteditable', true); elem.on('keypress', function (e) { if (!e.metaKey && !e.ctrlKey) { e.preventDefault(); } }); } function updateModel(files, evt) { upload.updateModel(ngModel, attr, scope, attrGetter('ngfChange') || attrGetter('ngfDrop'), files, evt); } function extractFilesFromHtml(updateOn, html) { if (!upload.shouldUpdateOn(updateOn, attr, scope) || !html) return upload.rejectPromise([]); var urls = []; html.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi, function (m, n, src) { urls.push(src); }); var promises = [], files = []; if (urls.length) { angular.forEach(urls, function (url) { promises.push(upload.urlToBlob(url).then(function (blob) { files.push(blob); })); }); var defer = $q.defer(); $q.all(promises).then(function () { defer.resolve(files); }, function (e) { defer.reject(e); }); return defer.promise; } return upload.emptyPromise(); } function calculateDragOverClass(scope, attr, evt, callback) { var obj = attrGetter('ngfDragOverClass', scope, {$event: evt}), dClass = 'dragover'; if (angular.isString(obj)) { dClass = obj; } else if (obj) { if (obj.delay) dragOverDelay = obj.delay; if (obj.accept || obj.reject) { var items = evt.dataTransfer.items; if (items == null || !items.length) { dClass = obj.accept; } else { var pattern = obj.pattern || attrGetter('ngfPattern', scope, {$event: evt}); var len = items.length; while (len--) { if (!upload.validatePattern(items[len], pattern)) { dClass = obj.reject; break; } else { dClass = obj.accept; } } } } } callback(dClass); } function extractFiles(items, fileList, allowDir, multiple) { var maxFiles = upload.getValidationAttr(attr, scope, 'maxFiles') || Number.MAX_VALUE; var maxTotalSize = upload.getValidationAttr(attr, scope, 'maxTotalSize') || Number.MAX_VALUE; var includeDir = attrGetter('ngfIncludeDir', scope); var files = [], totalSize = 0; function traverseFileTree(entry, path) { var defer = $q.defer(); if (entry != null) { if (entry.isDirectory) { var promises = [upload.emptyPromise()]; if (includeDir) { var file = {type: 'directory'}; file.name = file.path = (path || '') + entry.name + entry.name; files.push(file); } var dirReader = entry.createReader(); var entries = []; var readEntries = function () { dirReader.readEntries(function (results) { try { if (!results.length) { angular.forEach(entries.slice(0), function (e) { if (files.length <= maxFiles && totalSize <= maxTotalSize) { promises.push(traverseFileTree(e, (path ? path : '') + entry.name + '/')); } }); $q.all(promises).then(function () { defer.resolve(); }, function (e) { defer.reject(e); }); } else { entries = entries.concat(Array.prototype.slice.call(results || [], 0)); readEntries(); } } catch (e) { defer.reject(e); } }, function (e) { defer.reject(e); }); }; readEntries(); } else { entry.file(function (file) { try { file.path = (path ? path : '') + file.name; if (includeDir) { file = upload.rename(file, file.path); } files.push(file); totalSize += file.size; defer.resolve(); } catch (e) { defer.reject(e); } }, function (e) { defer.reject(e); }); } } return defer.promise; } var promises = [upload.emptyPromise()]; if (items && items.length > 0 && $location.protocol() !== 'file') { for (var i = 0; i < items.length; i++) { if (items[i].webkitGetAsEntry && items[i].webkitGetAsEntry() && items[i].webkitGetAsEntry().isDirectory) { var entry = items[i].webkitGetAsEntry(); if (entry.isDirectory && !allowDir) { continue; } if (entry != null) { promises.push(traverseFileTree(entry)); } } else { var f = items[i].getAsFile(); if (f != null) { files.push(f); totalSize += f.size; } } if (files.length > maxFiles || totalSize > maxTotalSize || (!multiple && files.length > 0)) break; } } else { if (fileList != null) { for (var j = 0; j < fileList.length; j++) { var file = fileList.item(j); if (file.type || file.size > 0) { files.push(file); totalSize += file.size; } if (files.length > maxFiles || totalSize > maxTotalSize || (!multiple && files.length > 0)) break; } } } var defer = $q.defer(); $q.all(promises).then(function () { if (!multiple && !includeDir && files.length) { var i = 0; while (files[i] && files[i].type === 'directory') i++; defer.resolve([files[i]]); } else { defer.resolve(files); } }, function (e) { defer.reject(e); }); return defer.promise; } } function dropAvailable() { var div = document.createElement('div'); return ('draggable' in div) && ('ondrop' in div) && !/Edge\/12./i.test(navigator.userAgent); } })(); // customized version of https://github.com/exif-js/exif-js ngFileUpload.service('UploadExif', ['UploadResize', '$q', function (UploadResize, $q) { var upload = UploadResize; upload.isExifSupported = function () { return window.FileReader && new FileReader().readAsArrayBuffer && upload.isResizeSupported(); }; function applyTransform(ctx, orientation, width, height) { switch (orientation) { case 2: return ctx.transform(-1, 0, 0, 1, width, 0); case 3: return ctx.transform(-1, 0, 0, -1, width, height); case 4: return ctx.transform(1, 0, 0, -1, 0, height); case 5: return ctx.transform(0, 1, 1, 0, 0, 0); case 6: return ctx.transform(0, 1, -1, 0, height, 0); case 7: return ctx.transform(0, -1, -1, 0, height, width); case 8: return ctx.transform(0, -1, 1, 0, 0, width); } } upload.readOrientation = function (file) { var defer = $q.defer(); var reader = new FileReader(); var slicedFile = file.slice ? file.slice(0, 64 * 1024) : file; reader.readAsArrayBuffer(slicedFile); reader.onerror = function (e) { return defer.reject(e); }; reader.onload = function (e) { var result = {orientation: 1}; var view = new DataView(this.result); if (view.getUint16(0, false) !== 0xFFD8) return defer.resolve(result); var length = view.byteLength, offset = 2; while (offset < length) { var marker = view.getUint16(offset, false); offset += 2; if (marker === 0xFFE1) { if (view.getUint32(offset += 2, false) !== 0x45786966) return defer.resolve(result); var little = view.getUint16(offset += 6, false) === 0x4949; offset += view.getUint32(offset + 4, little); var tags = view.getUint16(offset, little); offset += 2; for (var i = 0; i < tags; i++) if (view.getUint16(offset + (i * 12), little) === 0x0112) { var orientation = view.getUint16(offset + (i * 12) + 8, little); if (orientation >= 2 && orientation <= 8) { view.setUint16(offset + (i * 12) + 8, 1, little); result.fixedArrayBuffer = e.target.result; } result.orientation = orientation; return defer.resolve(result); } } else if ((marker & 0xFF00) !== 0xFF00) break; else offset += view.getUint16(offset, false); } return defer.resolve(result); }; return defer.promise; }; function arrayBufferToBase64(buffer) { var binary = ''; var bytes = new Uint8Array(buffer); var len = bytes.byteLength; for (var i = 0; i < len; i++) { binary += String.fromCharCode(bytes[i]); } return window.btoa(binary); } upload.applyExifRotation = function (file) { if (file.type.indexOf('image/jpeg') !== 0) { return upload.emptyPromise(file); } var deferred = $q.defer(); upload.readOrientation(file).then(function (result) { if (result.orientation < 2 || result.orientation > 8) { return deferred.resolve(file); } upload.dataUrl(file, true).then(function (url) { var canvas = document.createElement('canvas'); var img = document.createElement('img'); img.onload = function () { try { canvas.width = result.orientation > 4 ? img.height : img.width; canvas.height = result.orientation > 4 ? img.width : img.height; var ctx = canvas.getContext('2d'); applyTransform(ctx, result.orientation, img.width, img.height); ctx.drawImage(img, 0, 0); var dataUrl = canvas.toDataURL(file.type || 'image/WebP', 0.934); dataUrl = upload.restoreExif(arrayBufferToBase64(result.fixedArrayBuffer), dataUrl); var blob = upload.dataUrltoBlob(dataUrl, file.name); deferred.resolve(blob); } catch (e) { return deferred.reject(e); } }; img.onerror = function () { deferred.reject(); }; img.src = url; }, function (e) { deferred.reject(e); }); }, function (e) { deferred.reject(e); }); return deferred.promise; }; upload.restoreExif = function (orig, resized) { var ExifRestorer = {}; ExifRestorer.KEY_STR = 'ABCDEFGHIJKLMNOP' + 'QRSTUVWXYZabcdef' + 'ghijklmnopqrstuv' + 'wxyz0123456789+/' + '='; ExifRestorer.encode64 = function (input) { var output = '', chr1, chr2, chr3 = '', enc1, enc2, enc3, enc4 = '', i = 0; do { chr1 = input[i++]; chr2 = input[i++]; chr3 = input[i++]; enc1 = chr1 >> 2; enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); enc4 = chr3 & 63; if (isNaN(chr2)) { enc3 = enc4 = 64; } else if (isNaN(chr3)) { enc4 = 64; } output = output + this.KEY_STR.charAt(enc1) + this.KEY_STR.charAt(enc2) + this.KEY_STR.charAt(enc3) + this.KEY_STR.charAt(enc4); chr1 = chr2 = chr3 = ''; enc1 = enc2 = enc3 = enc4 = ''; } while (i < input.length); return output; }; ExifRestorer.restore = function (origFileBase64, resizedFileBase64) { if (origFileBase64.match('data:image/jpeg;base64,')) { origFileBase64 = origFileBase64.replace('data:image/jpeg;base64,', ''); } var rawImage = this.decode64(origFileBase64); var segments = this.slice2Segments(rawImage); var image = this.exifManipulation(resizedFileBase64, segments); return 'data:image/jpeg;base64,' + this.encode64(image); }; ExifRestorer.exifManipulation = function (resizedFileBase64, segments) { var exifArray = this.getExifArray(segments), newImageArray = this.insertExif(resizedFileBase64, exifArray); return new Uint8Array(newImageArray); }; ExifRestorer.getExifArray = function (segments) { var seg; for (var x = 0; x < segments.length; x++) { seg = segments[x]; if (seg[0] === 255 & seg[1] === 225) //(ff e1) { return seg; } } return []; }; ExifRestorer.insertExif = function (resizedFileBase64, exifArray) { var imageData = resizedFileBase64.replace('data:image/jpeg;base64,', ''), buf = this.decode64(imageData), separatePoint = buf.indexOf(255, 3), mae = buf.slice(0, separatePoint), ato = buf.slice(separatePoint), array = mae; array = array.concat(exifArray); array = array.concat(ato); return array; }; ExifRestorer.slice2Segments = function (rawImageArray) { var head = 0, segments = []; while (1) { if (rawImageArray[head] === 255 & rawImageArray[head + 1] === 218) { break; } if (rawImageArray[head] === 255 & rawImageArray[head + 1] === 216) { head += 2; } else { var length = rawImageArray[head + 2] * 256 + rawImageArray[head + 3], endPoint = head + length + 2, seg = rawImageArray.slice(head, endPoint); segments.push(seg); head = endPoint; } if (head > rawImageArray.length) { break; } } return segments; }; ExifRestorer.decode64 = function (input) { var chr1, chr2, chr3 = '', enc1, enc2, enc3, enc4 = '', i = 0, buf = []; // remove all characters that are not A-Z, a-z, 0-9, +, /, or = var base64test = /[^A-Za-z0-9\+\/\=]/g; if (base64test.exec(input)) { console.log('There were invalid base64 characters in the input text.\n' + 'Valid base64 characters are A-Z, a-z, 0-9, ' + ', ' / ',and "="\n' + 'Expect errors in decoding.'); } input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); do { enc1 = this.KEY_STR.indexOf(input.charAt(i++)); enc2 = this.KEY_STR.indexOf(input.charAt(i++)); enc3 = this.KEY_STR.indexOf(input.charAt(i++)); enc4 = this.KEY_STR.indexOf(input.charAt(i++)); chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4; buf.push(chr1); if (enc3 !== 64) { buf.push(chr2); } if (enc4 !== 64) { buf.push(chr3); } chr1 = chr2 = chr3 = ''; enc1 = enc2 = enc3 = enc4 = ''; } while (i < input.length); return buf; }; return ExifRestorer.restore(orig, resized); //<= EXIF }; return upload; }]);
// -- Sammy.js -- /sammy.js // http://sammyjs.org // Version: 0.7.4 // Built: 2013-01-27 13:34:16 -0500 // name: sammy // version: 0.7.4 // Sammy.js / http://sammyjs.org (function(e,t){(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):e.sammy=t.Sammy=n(e)})(function(e){var n,r="([^/]+)",i=/:([\w\d]+)/g,s=/\?([^#]*)?$/,o=function(e){return Array.prototype.slice.call(e)},u=function(e){return Object.prototype.toString.call(e)==="[object Function]"},a=function(e){return Object.prototype.toString.call(e)==="[object Array]"},f=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},l=function(e){return decodeURIComponent((e||"").replace(/\+/g," "))},c=encodeURIComponent,h=function(e){return String(e).replace(/&(?!\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},p=function(e){return function(){return this.route.apply(this,[e].concat(Array.prototype.slice.call(arguments)))}},d={},v=!!t.history&&!!history.pushState,m=[];return n=function(){var t=o(arguments),r,i;n.apps=n.apps||{};if(t.length===0||t[0]&&u(t[0]))return n.apply(n,["body"].concat(t));if(typeof (i=t.shift())=="string")return r=n.apps[i]||new n.Application,r.element_selector=i,t.length>0&&e.each(t,function(e,t){r.use(t)}),r.element_selector!=i&&delete n.apps[i],n.apps[r.element_selector]=r,r},n.VERSION="0.7.4",n.addLogger=function(e){m.push(e)},n.log=function(){var t=o(arguments);t.unshift("["+Date()+"]"),e.each(m,function(e,r){r.apply(n,t)})},typeof t.console!="undefined"?u(t.console.log.apply)?n.addLogger(function(){t.console.log.apply(t.console,arguments)}):n.addLogger(function(){t.console.log(arguments)}):typeof console!="undefined"&&n.addLogger(function(){console.log.apply(console,arguments)}),e.extend(n,{makeArray:o,isFunction:u,isArray:a}),n.Object=function(t){return e.extend(this,t||{})},e.extend(n.Object.prototype,{escapeHTML:h,h:h,toHash:function(){var t={};return e.each(this,function(e,n){u(n)||(t[e]=n)}),t},toHTML:function(){var t="";return e.each(this,function(e,n){u(n)||(t+="<strong>"+e+"</strong> "+n+"<br />")}),t},keys:function(e){var t=[];for(var n in this)(!u(this[n])||!e)&&t.push(n);return t},has:function(t){return this[t]&&e.trim(this[t].toString())!==""},join:function(){var e=o(arguments),t=e.shift();return e.join(t)},log:function(){n.log.apply(n,arguments)},toString:function(t){var n=[];return e.each(this,function(e,r){(!u(r)||t)&&n.push('"'+e+'": '+r.toString())}),"Sammy.Object: {"+n.join(",")+"}"}}),n.targetIsThisWindow=function(r){var i=e(r.target).attr("target");return!i||i===t.name||i==="_self"?!0:i==="_blank"?!1:i==="top"&&t===t.top?!0:!1},n.DefaultLocationProxy=function(e,t){this.app=e,this.is_native=!1,this.has_history=v,this._startPolling(t)},n.DefaultLocationProxy.fullPath=function(e){var t=e.toString().match(/^[^#]*(#.+)$/),n=t?t[1]:"";return[e.pathname,e.search,n].join("")},e.extend(n.DefaultLocationProxy.prototype,{bind:function(){var r=this,i=this.app,s=n.DefaultLocationProxy;e(t).bind("hashchange."+this.app.eventNamespace(),function(e,n){r.is_native===!1&&!n&&(r.is_native=!0,t.clearInterval(s._interval),s._interval=null),i.trigger("location-changed")}),v&&!i.disable_push_state&&(e(t).bind("popstate."+this.app.eventNamespace(),function(e){i.trigger("location-changed")}),e(document).delegate("a","click.history-"+this.app.eventNamespace(),function(e){if(e.isDefaultPrevented()||e.metaKey||e.ctrlKey)return;var o=s.fullPath(this);if(this.hostname==t.location.hostname&&i.lookupRoute("get",o)&&n.targetIsThisWindow(e))return e.preventDefault(),r.setLocation(o),!1})),s._bindings||(s._bindings=0),s._bindings++},unbind:function(){e(t).unbind("hashchange."+this.app.eventNamespace()),e(t).unbind("popstate."+this.app.eventNamespace()),e(document).undelegate("a","click.history-"+this.app.eventNamespace()),n.DefaultLocationProxy._bindings--,n.DefaultLocationProxy._bindings<=0&&(t.clearInterval(n.DefaultLocationProxy._interval),n.DefaultLocationProxy._interval=null)},getLocation:function(){return n.DefaultLocationProxy.fullPath(t.location)},setLocation:function(e){/^([^#\/]|$)/.test(e)&&(v&&!this.app.disable_push_state?e="/"+e:e="#!/"+e);if(e!=this.getLocation()){if(!(v&&!this.app.disable_push_state&&/^\//.test(e)))return t.location=e;history.pushState({path:e},t.title,e),this.app.trigger("location-changed")}},_startPolling:function(r){var i=this;if(!n.DefaultLocationProxy._interval){r||(r=10);var s=function(){var r=i.getLocation();(typeof n.DefaultLocationProxy._last_location=="undefined"||r!=n.DefaultLocationProxy._last_location)&&t.setTimeout(function(){e(t).trigger("hashchange",[!0])},0),n.DefaultLocationProxy._last_location=r};s(),n.DefaultLocationProxy._interval=t.setInterval(s,r)}}}),n.Application=function(e){var t=this;this.routes={},this.listeners=new n.Object({}),this.arounds=[],this.befores=[],this.namespace=(new Date).getTime()+"-"+parseInt(Math.random()*1e3,10),this.context_prototype=function(){n.EventContext.apply(this,arguments)},this.context_prototype.prototype=new n.EventContext,u(e)&&e.apply(this,[this]),this._location_proxy||this.setLocationProxy(new n.DefaultLocationProxy(this,this.run_interval_every)),this.debug&&this.bindToAllEvents(function(e,n){t.log(t.toString(),e.cleaned_type,n||{})})},n.Application.prototype=e.extend({},n.Object.prototype,{ROUTE_VERBS:["get","post","put","delete"],APP_EVENTS:["run","unload","lookup-route","run-route","route-found","event-context-before","event-context-after","changed","error","check-form-submission","redirect","location-changed"],_last_route:null,_location_proxy:null,_running:!1,element_selector:"body",debug:!1,raise_errors:!1,run_interval_every:50,disable_push_state:!1,template_engine:null,toString:function(){return"Sammy.Application:"+this.element_selector},$element:function(t){return t?e(this.element_selector).find(t):e(this.element_selector)},use:function(){var e=o(arguments),t=e.shift(),r=t||"";try{e.unshift(this),typeof t=="string"&&(r="Sammy."+t,t=n[t]),t.apply(this,e)}catch(i){typeof t=="undefined"?this.error("Plugin Error: called use() but plugin ("+r.toString()+") is not defined",i):u(t)?this.error("Plugin Error",i):this.error("Plugin Error: called use() but '"+r.toString()+"' is not a function",i)}return this},setLocationProxy:function(e){var t=this._location_proxy;this._location_proxy=e,this.isRunning()&&(t&&t.unbind(),this._location_proxy.bind())},log:function(){n.log.apply(n,Array.prototype.concat.apply([this.element_selector],arguments))},route:function(t,n){var s=this,o=[],a,f,l=Array.prototype.slice.call(arguments,2);l.length===0&&u(n)&&(n=t,l=[n],t="any"),t=t.toLowerCase();if(n.constructor==String){i.lastIndex=0;while((f=i.exec(n))!==null)o.push(f[1]);n=new RegExp(n.replace(i,r)+"$")}return e.each(l,function(e,t){typeof t=="string"&&(l[e]=s[t])}),a=function(e){var t={verb:e,path:n,callback:l,param_names:o};s.routes[e]=s.routes[e]||[],s.routes[e].push(t)},t==="any"?e.each(this.ROUTE_VERBS,function(e,t){a(t)}):a(t),this},get:p("get"),post:p("post"),put:p("put"),del:p("delete"),any:p("any"),mapRoutes:function(t){var n=this;return e.each(t,function(e,t){n.route.apply(n,t)}),this},eventNamespace:function(){return["sammy-app",this.namespace].join("-")},bind:function(e,t,n){var r=this;typeof n=="undefined"&&(n=t);var i=function(){var e,t,i;e=arguments[0],i=arguments[1],i&&i.context?(t=i.context,delete i.context):t=new r.context_prototype(r,"bind",e.type,i,e.target),e.cleaned_type=e.type.replace(r.eventNamespace(),""),n.apply(t,[e,i])};return this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(i),this.isRunning()&&this._listen(e,i),this},trigger:function(e,t){return this.$element().trigger([e,this.eventNamespace()].join("."),[t]),this},refresh:function(){return this.last_location=null,this.trigger("location-changed"),this},before:function(e,t){return u(e)&&(t=e,e={}),this.befores.push([e,t]),this},after:function(e){return this.bind("event-context-after",e)},around:function(e){return this.arounds.push(e),this},onComplete:function(e){return this._onComplete=e,this},isRunning:function(){return this._running},helpers:function(t){return e.extend(this.context_prototype.prototype,t),this},helper:function(e,t){return this.context_prototype.prototype[e]=t,this},run:function(r){if(this.isRunning())return!1;var i=this;return e.each(this.listeners.toHash(),function(t,n){e.each(n,function(e,n){i._listen(t,n)})}),this.trigger("run",{start_url:r}),this._running=!0,this.last_location=null,!/\#(.+)/.test(this.getLocation())&&typeof r!="undefined"&&this.setLocation(r),this._checkLocation(),this._location_proxy.bind(),this.bind("location-changed",function(){i._checkLocation()}),this.bind("submit",function(t){if(!n.targetIsThisWindow(t))return!0;var r=i._checkFormSubmission(e(t.target).closest("form"));return r===!1?t.preventDefault():!1}),e(t).bind("unload",function(){i.unload()}),this.trigger("changed")},unload:function(){if(!this.isRunning())return!1;var t=this;return this.trigger("unload"),this._location_proxy.unbind(),this.$element().unbind("submit").removeClass(t.eventNamespace()),e.each(this.listeners.toHash(),function(n,r){e.each(r,function(e,r){t._unlisten(n,r)})}),this._running=!1,this},destroy:function(){return this.unload(),delete n.apps[this.element_selector],this},bindToAllEvents:function(t){var n=this;return e.each(this.APP_EVENTS,function(e,r){n.bind(r,t)}),e.each(this.listeners.keys(!0),function(r,i){e.inArray(i,n.APP_EVENTS)==-1&&n.bind(i,t)}),this},routablePath:function(e){return e.replace(s,"")},lookupRoute:function(e,t){var n=this,r=!1,i=0,s,o;if(typeof this.routes[e]!="undefined"){s=this.routes[e].length;for(;i<s;i++){o=this.routes[e][i];if(n.routablePath(t).match(o.path)){r=o;break}}}return r},runRoute:function(t,n,r,i){var s=this,o=this.lookupRoute(t,n),u,a,f,c,h,p,d,v,m;this.debug&&this.log("runRoute",[t,n].join(" ")),this.trigger("run-route",{verb:t,path:n,params:r}),typeof r=="undefined"&&(r={}),e.extend(r,this._parseQueryString(n));if(o){this.trigger("route-found",{route:o}),(v=o.path.exec(this.routablePath(n)))!==null&&(v.shift(),e.each(v,function(e,t){o.param_names[e]?r[o.param_names[e]]=l(t):(r.splat||(r.splat=[]),r.splat.push(l(t)))})),u=new this.context_prototype(this,t,n,r,i),f=this.arounds.slice(0),h=this.befores.slice(0),d=[u],r.splat&&(d=d.concat(r.splat)),a=function(){var e,t,n;while(h.length>0){p=h.shift();if(s.contextMatchesOptions(u,p[0])){e=p[1].apply(u,[u]);if(e===!1)return!1}}return s.last_route=o,u.trigger("event-context-before",{context:u}),typeof o.callback=="function"&&(o.callback=[o.callback]),o.callback&&o.callback.length&&(t=-1,n=function(){t++,o.callback[t]?e=o.callback[t].apply(u,d):s._onComplete&&typeof (s._onComplete==="function")&&s._onComplete(u)},d.push(n),n()),u.trigger("event-context-after",{context:u}),e},e.each(f.reverse(),function(e,t){var n=a;a=function(){return t.apply(u,[n])}});try{m=a()}catch(g){this.error(["500 Error",t,n].join(" "),g)}return m}return this.notFound(t,n)},contextMatchesOptions:function(t,n,r){var i=n;if(typeof i=="string"||f(i))i={path:i};typeof r=="undefined"&&(r=!0);if(e.isEmptyObject(i))return!0;if(a(i.path)){var s,o,u,l;s=[];for(o=0,l=i.path.length;o<l;o+=1)u=e.extend({},i,{path:i.path[o]}),s.push(this.contextMatchesOptions(t,u));var c=e.inArray(!0,s)>-1?!0:!1;return r?c:!c}if(i.only)return this.contextMatchesOptions(t,i.only,!0);if(i.except)return this.contextMatchesOptions(t,i.except,!1);var h=!0,p=!0;return i.path&&(f(i.path)||(i.path=new RegExp(i.path.toString()+"$")),h=i.path.test(t.path)),i.verb&&(typeof i.verb=="string"?p=i.verb===t.verb:p=i.verb.indexOf(t.verb)>-1),r?p&&h:!p||!h},getLocation:function(){return this._location_proxy.getLocation()},setLocation:function(e){return this._location_proxy.setLocation(e)},swap:function(e,t){var n=this.$element().html(e);return u(t)&&t(e),n},templateCache:function(e,t){return typeof t!="undefined"?d[e]=t:d[e]},clearTemplateCache:function(){return d={}},notFound:function(e,t){var n=this.error(["404 Not Found",e,t].join(" "));return e==="get"?n:!0},error:function(e,t){t||(t=new Error),t.message=[e,t.message].join(" "),this.trigger("error",{message:t.message,error:t});if(this.raise_errors)throw t;this.log(t.message,t)},_checkLocation:function(){var e,t;e=this.getLocation();if(!this.last_location||this.last_location[0]!="get"||this.last_location[1]!=e)this.last_location=["get",e],t=this.runRoute("get",e);return t},_getFormVerb:function(t){var n=e(t),r,i;i=n.find('input[name="_method"]'),i.length>0&&(r=i.val()),r||(r=n[0].getAttribute("method"));if(!r||r==="")r="get";return e.trim(r.toString().toLowerCase())},_checkFormSubmission:function(t){var n,r,i,s,o;return this.trigger("check-form-submission",{form:t}),n=e(t),r=n.attr("action")||"",i=this._getFormVerb(n),this.debug&&this.log("_checkFormSubmission",n,r,i),i==="get"?(s=this._serializeFormParams(n),s!==""&&(r+="?"+s),this.setLocation(r),o=!1):(s=e.extend({},this._parseFormParams(n)),o=this.runRoute(i,r,s,t.get(0))),typeof o=="undefined"?!1:o},_serializeFormParams:function(e){var t="",n=e.serializeArray(),r;if(n.length>0){t=this._encodeFormPair(n[0].name,n[0].value);for(r=1;r<n.length;r++)t=t+"&"+this._encodeFormPair(n[r].name,n[r].value)}return t},_encodeFormPair:function(e,t){return c(e)+"="+c(t)},_parseFormParams:function(e){var t={},n=e.serializeArray(),r;for(r=0;r<n.length;r++)t=this._parseParamPair(t,n[r].name,n[r].value);return t},_parseQueryString:function(e){var t={},n,r,i,o;n=e.match(s);if(n&&n[1]){r=n[1].split("&");for(o=0;o<r.length;o++)i=r[o].split("="),t=this._parseParamPair(t,l(i[0]),l(i[1]||""))}return t},_parseParamPair:function(e,t,n){return typeof e[t]!="undefined"?a(e[t])?e[t].push(n):e[t]=[e[t],n]:e[t]=n,e},_listen:function(e,t){return this.$element().bind([e,this.eventNamespace()].join("."),t)},_unlisten:function(e,t){return this.$element().unbind([e,this.eventNamespace()].join("."),t)}}),n.RenderContext=function(e){this.event_context=e,this.callbacks=[],this.previous_content=null,this.content=null,this.next_engine=!1,this.waiting=!1},n.RenderContext.prototype=e.extend({},n.Object.prototype,{then:function(e){if(!u(e)){if(!(typeof e=="string"&&e in this.event_context))return this;var n=this.event_context[e];e=function(e){return n.apply(this.event_context,[e])}}var r=this;return this.waiting?this.callbacks.push(e):(this.wait(),t.setTimeout(function(){var t=e.apply(r,[r.content,r.previous_content]);t!==!1&&r.next(t)},0)),this},wait:function(){this.waiting=!0},next:function(e){this.waiting=!1,typeof e!="undefined"&&(this.previous_content=this.content,this.content=e),this.callbacks.length>0&&this.then(this.callbacks.shift())},load:function(t,n,r){var i=this;return this.then(function(){var s,o,a,f;u(n)?(r=n,n={}):n=e.extend({},n),r&&this.then(r);if(typeof t=="string")return a=t.match(/\.json$/)||n.json,s=a?n.cache===!0:n.cache!==!1,i.next_engine=i.event_context.engineFor(t),delete n.cache,delete n.json,n.engine&&(i.next_engine=n.engine,delete n.engine),s&&(o=this.event_context.app.templateCache(t))?o:(this.wait(),e.ajax(e.extend({url:t,data:{},dataType:a?"json":"text",type:"get",success:function(e){s&&i.event_context.app.templateCache(t,e),i.next(e)}},n)),!1);if(t.nodeType)return t.innerHTML;if(t.selector)return i.next_engine=t.attr("data-engine"),n.clone===!1?t.remove()[0].innerHTML.toString():t[0].innerHTML.toString()})},loadPartials:function(e){var t;if(e){this.partials=this.partials||{};for(t in e)(function(t,n){t.load(e[n]).then(function(e){this.partials[n]=e})})(this,t)}return this},render:function(e,t,n,r){return u(e)&&!t?this.then(e):(u(t)?(r=n,n=t,t=null):n&&!u(n)&&(r=n,n=null),this.loadPartials(r).load(e).interpolate(t,e).then(n))},partial:function(e,t,n,r){return u(n)?this.render(e,t,r).swap(n):u(t)?this.render(e,{},n).swap(t):this.render(e,t,n).swap()},send:function(){var e=this,t=o(arguments),n=t.shift();return a(t[0])&&(t=t[0]),this.then(function(r){return t.push(function(t){e.next(t)}),e.wait(),n.apply(n,t),!1})},collect:function(t,n,r){var i=this,s=function(){u(t)&&(n=t,t=this.content);var r=[],s=!1;return e.each(t,function(e,t){var o=n.apply(i,[e,t]);return o.jquery&&o.length==1&&(o=o[0],s=!0),r.push(o),o}),s?r:r.join("")};return r?s():this.then(s)},renderEach:function(t,n,r,i){return a(n)&&(i=r,r=n,n=null),this.load(t).then(function(s){var o=this;r||(r=a(this.previous_content)?this.previous_content:[]);if(!i)return this.collect(r,function(e,r){var i={},o=this.next_engine||t;return n?i[n]=r:i=r,this.event_context.interpolate(s,i,o)},!0);e.each(r,function(e,r){var u={},a=this.next_engine||t;n?u[n]=r:u=r,i(r,o.event_context.interpolate(s,u,a))})})},interpolate:function(e,t,n){var r=this;return this.then(function(i,s){!e&&s&&(e=s),this.next_engine&&(t=this.next_engine,this.next_engine=!1);var o=r.event_context.interpolate(i,e,t,this.partials);return n?s+o:o})},swap:function(e){return this.then(function(t){return this.event_context.swap(t,e),t}).trigger("changed",{})},appendTo:function(t){return this.then(function(n){e(t).append(n)}).trigger("changed",{})},prependTo:function(t){return this.then(function(n){e(t).prepend(n)}).trigger("changed",{})},replace:function(t){return this.then(function(n){e(t).html(n)}).trigger("changed",{})},trigger:function(e,t){return this.then(function(n){return typeof t=="undefined"&&(t={content:n}),this.event_context.trigger(e,t),n})}}),n.EventContext=function(e,t,r,i,s){this.app=e,this.verb=t,this.path=r,this.params=new n.Object(i),this.target=s},n.EventContext.prototype=e.extend({},n.Object.prototype,{$element:function(){return this.app.$element(o(arguments).shift())},engineFor:function(e){var t=this,n;if(u(e))return e;e=(e||t.app.template_engine).toString();if(n=e.match(/\.([^\.\?\#]+)$/))e=n[1];return e&&u(t[e])?t[e]:t.app.template_engine?this.engineFor(t.app.template_engine):function(e,t){return e}},interpolate:function(e,t,n,r){return this.engineFor(n).apply(this,[e,t,r])},render:function(e,t,r,i){return(new n.RenderContext(this)).render(e,t,r,i)},renderEach:function(e,t,r,i){return(new n.RenderContext(this)).renderEach(e,t,r,i)},load:function(e,t,r){return(new n.RenderContext(this)).load(e,t,r)},loadPartials:function(e){return(new n.RenderContext(this)).loadPartials(e)},partial:function(e,t,r,i){return(new n.RenderContext(this)).partial(e,t,r,i)},send:function(){var e=new n.RenderContext(this);return e.send.apply(e,arguments)},redirect:function(){var t,n=o(arguments),r=this.app.getLocation(),i=n.length;if(i>1){var s=0,u=[],a=[],f={},l=!1;for(;s<i;s++)typeof n[s]=="string"?u.push(n[s]):(e.extend(f,n[s]),l=!0);t=u.join("/");if(l){for(var c in f)a.push(this.app._encodeFormPair(c,f[c]));t+="?"+a.join("&")}}else t=n[0];this.trigger("redirect",{to:t}),this.app.last_location=[this.verb,this.path],this.app.setLocation(t),(new RegExp(t)).test(r)&&this.app.trigger("location-changed")},trigger:function(e,t){return typeof t=="undefined"&&(t={}),t.context||(t.context=this),this.app.trigger(e,t)},eventNamespace:function(){return this.app.eventNamespace()},swap:function(e,t){return this.app.swap(e,t)},notFound:function(){return this.app.notFound(this.verb,this.path)},json:function(t){return e.parseJSON(t)},toString:function(){return"Sammy.EventContext: "+[this.verb,this.path,this.params].join(" ")}}),n})})(jQuery,window);
var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},__extends=function(e,t){function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},__rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},__decorate=function(e,t,n,r){var o,i=arguments.length,a=3>i?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(3>i?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__param=function(e,t){return function(n,r){t(n,r,e)}},__metadata=function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},__awaiter=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,c)}u((r=r.apply(e,t||[])).next())})},__generator=function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(a=2&n[0]?i["return"]:n[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,n[1])).done)return a;switch(i=0,a&&(n=[2&n[0],a.value]),n[0]){case 0:case 1:a=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(a=u.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]<a[3])){u.label=n[1];break}if(6===n[0]&&u.label<a[1]){u.label=a[1],a=n;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(n);break}a[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(r){n=[6,r],i=0}finally{o=a=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,i,a,c,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return c={next:n(0),"throw":n(1),"return":n(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c},__exportStar=function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||__createBinding(t,e,n)},__createBinding=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},__values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-->0)&&!(r=i.next()).done;)a.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(o)throw o.error}}return a},__spread=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e},__spreadArrays=function(){for(var e=0,t=0,n=arguments.length;n>t;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;n>t;t++)for(var i=arguments[t],a=0,c=i.length;c>a;a++,o++)r[o]=i[a];return r},__await=function(e){return this instanceof __await?(this.v=e,this):new __await(e)},__asyncGenerator=function(e,t,n){function r(e){l[e]&&(s[e]=function(t){return new Promise(function(n,r){f.push([e,t,n,r])>1||o(e,t)})})}function o(e,t){try{i(l[e](t))}catch(n){u(f[0][3],n)}}function i(e){e.value instanceof __await?Promise.resolve(e.value.v).then(a,c):u(f[0][2],e)}function a(e){o("next",e)}function c(e){o("throw",e)}function u(e,t){e(t),f.shift(),f.length&&o(f[0][0],f[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s,l=n.apply(e,t||[]),f=[];return s={},r("next"),r("throw"),r("return"),s[Symbol.asyncIterator]=function(){return this},s},__asyncDelegator=function(e){function t(t,o){n[t]=e[t]?function(n){return(r=!r)?{value:__await(e[t](n)),done:"return"===t}:o?o(n):n}:o}var n,r;return n={},t("next"),t("throw",function(e){throw e}),t("return"),n[Symbol.iterator]=function(){return this},n},__asyncValues=function(e){function t(t){r[t]=e[t]&&function(r){return new Promise(function(o,i){r=e[t](r),n(o,i,r.done,r.value)})}}function n(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e[Symbol.asyncIterator];return o?o.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),r={},t("next"),t("throw"),t("return"),r[Symbol.asyncIterator]=function(){return this},r)},__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__setModuleDefault=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t},__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&__createBinding(t,e,n);return __setModuleDefault(t,e),t},__importDefault=function(e){return e&&e.__esModule?e:{"default":e}},__classPrivateFieldGet=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},__reflect=function(e,t,n){e.__class__=t,n?n.push(t):n=[t],e.__types__=e.__types__?n.concat(e.__types__):n};!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){n(1),n(2),n(0),n(3),n(4),n(5);var r=function(e){function t(){var t=e.call(this)||this;return t.gameSceneStart(),t}return __extends(t,e),t.prototype.gameSceneStart=function(){this.scene=new SceneManager(this),this.event=new egret.EventDispatcher,this.scene.onStart()},t.prototype.touchLock=function(){SceneManager.mainScene.touchEnabled=!1},t.prototype.touchUnlock=function(){SceneManager.mainScene.touchEnabled=!0},t}(egret.DisplayObjectContainer);window.Main=r,__reflect(r.prototype,"Main",[])},function(e,t){var n=function(e){function t(t){var n=e.call(this)||this;return n.createAwl(t),n}return __extends(t,e),t.prototype.createAwl=function(e){this.image=new egret.Bitmap,this.image.texture=RES.getRes("awl_png"),this.image.y=SceneManager.STAGE_ONE_WIDTH-2.8*this.image.height,this.image.x=e,this.addChild(this.image)},t.prototype.update=function(){this.deleteAwl()||(this.image.x-=1*t.SPEED,this.isCollisionToCharacter())},t.prototype.deleteAwl=function(){return this.image.x<-this.image.width?(this.destroy(),!0):!1},t.prototype.isCollisionToCharacter=function(){var e=new egret.Rectangle(this.image.x+5,this.image.y+5,this.image.width-10,this.image.height-10),t=new egret.Rectangle(SceneManager.mainScene.character.sprite.x+80,SceneManager.mainScene.character.sprite.y,Runner.CHARACTER_WIDTH,Runner.CHARACTER_HEIGHT);e.intersects(t)&&SceneManager.mainScene.event.dispatchEventWith("COLLISION")},t.prototype.destroy=function(){this.parent&&this.image&&(this.parent.removeChild(this),this.removeChild(this.image))},t.prototype.boundTest=function(e,t,n,r){var o=new egret.Shape;return o.graphics.beginFill(16711680),o.graphics.drawRect(e,t,n,r),o.graphics.endFill(),this.addChild(o),o},t.SPEED=3,t}(egret.DisplayObjectContainer);window.Awl=n,__reflect(n.prototype,"Awl",[])},function(e,t){var n=function(e){function t(){return e.call(this)||this}return __extends(t,e),t.prototype.getResource=function(e){this.image=new egret.Bitmap,this.image.texture=RES.getRes(e),this.createBG()},Object.defineProperty(t.prototype,"imageY",{set:function(e){this.image.y=e},enumerable:!1,configurable:!0}),t.prototype.createBG=function(){this.image.fillMode=egret.BitmapFillMode.REPEAT,this.image.width*=3,this.addChild(this.image)},t.prototype.update=function(){this.image.x<=-SceneManager.STAGE_ONE_WIDTH&&(this.image.x=0),this.image.x-=1*t.SPEED},t.SPEED=3,t}(egret.DisplayObjectContainer);window.BackgroundObject=n,__reflect(n.prototype,"BackgroundObject",[])},function(e,t){var n=function(){function e(){}return e.prototype.loadMainResource=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,r,o;return __generator(this,function(i){switch(i.label){case 0:n=0,r=e,i.label=1;case 1:return n<r.length?(o=r[n],[4,this.loadResource(o,t)]):[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},e.prototype.loadResource=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,RES.loadConfig(t,"resource/")];case 1:return r.sent(),[4,RES.loadGroup(e,0)];case 2:return r.sent(),console.log("Load Complete!! ["+t+"]"+e),[3,4];case 3:return n=r.sent(),console.error(n),[3,4];case 4:return[2]}})})},e.prototype.createMovieClip=function(e,t,n){var r=new egret.MovieClipDataFactory(RES.getRes(e),RES.getRes(t)),o=new egret.MovieClip(r.generateMovieClipData(n));return o},e}();window.ResourceLoader=n,__reflect(n.prototype,"ResourceLoader",[])},function(e,t){var n=function(e){function t(){var t=e.call(this)||this;return t.createSprite(),t.addEvent(),t}return __extends(t,e),t.prototype.addEvent=function(){SceneManager.mainScene.stage.addEventListener(egret.TouchEvent.TOUCH_TAP,this.jump,this),SceneManager.mainScene.event.addEventListener("COLLISION",this.die,this)},t.prototype.removeEvent=function(){SceneManager.mainScene.stage.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.jump,this),SceneManager.mainScene.event.removeEventListener("COLLISION",this.die,this)},t.prototype.createSprite=function(){this.sprite=SceneManager.loader.createMovieClip("runner_json","runner_png","run"),this.sprite.gotoAndPlay("run",-1),this.sprite.y=SceneManager.mainScene.floor.image.y-this.sprite.height,this.addChild(this.sprite)},t.prototype.jump=function(){if(t.STATE!=r.DIE&&t.STATE!=r.JUMP){t.STATE=r.JUMP;var e=this.sprite.y,n=egret.Tween.get(this.sprite);n.to({x:this.sprite.x,y:this.sprite.y-t.POWER},t.FLIGHT_TIME).wait(t.FLIGHT_TIME).to({y:e},t.FLIGHT_TIME).call(this.run,this)}},t.prototype.die=function(){if(t.STATE!=r.DIE){t.STATE=r.DIE;var e=egret.Tween.get(this.sprite);e.to({x:this.sprite.x+t.POWER,y:SceneManager.STAGE_ONE_WIDTH+t.POWER},t.FLIGHT_TIME)}},t.prototype.run=function(){t.STATE=r.RUN},t.prototype.stop=function(){this.sprite.stop(),this.removeEvent()},t.POWER=120,t.FLIGHT_TIME=360,t.CHARACTER_WIDTH=70,t.CHARACTER_HEIGHT=220,t}(egret.DisplayObjectContainer);window.Runner=n,__reflect(n.prototype,"Runner",[]);var r;!function(e){e[e.RUN=0]="RUN",e[e.JUMP=1]="JUMP",e[e.DIE=2]="DIE"}(r||(r={})),window.RUNNER_STATE=r},function(e,t){var n=function(){function e(t){this.awlPosX=1024,this.maxPosX=512,e.mainScene=t,this.createLoader()}return e.prototype.onStart=function(){var e=this;this.createInitScene().then(function(){e.createScene(),e.setStart()})},e.prototype.createLoader=function(){e.loader||(e.loader=new ResourceLoader)},e.prototype.createInitScene=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){switch(t.label){case 0:return[4,e.loader.loadMainResource(["preload"],"resource/default.res.json")];case 1:return[2,t.sent()]}})})},e.prototype.createScene=function(){e.mainScene.bg=new BackgroundObject,e.mainScene.bg.getResource("backgroundForest_png"),e.mainScene.bg.imageY=0,e.mainScene.addChild(e.mainScene.bg),e.mainScene.floor=new BackgroundObject,e.mainScene.floor.getResource("floor_png"),e.mainScene.floor.imageY=e.STAGE_HEIGHT-e.mainScene.floor.image.height,e.mainScene.addChild(e.mainScene.floor),e.mainScene.awls=new Array},e.prototype.createCharacter=function(){e.mainScene.character=new Runner,e.mainScene.addChild(e.mainScene.character)},e.prototype.createRandomAwls=function(t,n){var r=Math.floor(Math.random()*(n-t))+t,o=new Awl(r);return e.mainScene.awls.push(o),e.mainScene.addChild(o),r},e.prototype.update=function(){e.mainScene.removeChild(this.imageStart),e.mainScene.stage.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.update,this),this.createCharacter(),egret.startTick(this.updateTick,this)},e.prototype.updateTick=function(){return e.tick>900&&Runner.STATE!=RUNNER_STATE.DIE&&(egret.stopTick(this.updateTick,this),this.setClear()),e.tick+=1,e.tick%90==0&&(this.awlPosX=this.createRandomAwls(this.awlPosX,this.awlPosX+this.maxPosX)),e.mainScene.bg.update(),e.mainScene.floor.update(),e.mainScene.awls.length>0&&e.mainScene.awls.forEach(function(e){return e.update()}),!0},e.prototype.setStart=function(){this.imageStart=new egret.Bitmap,this.imageStart.texture=RES.getRes("asset_start_png"),this.imageStart.x=256,e.mainScene.addChild(this.imageStart),e.mainScene.stage.addEventListener(egret.TouchEvent.TOUCH_TAP,this.update,this)},e.prototype.setClear=function(){var t=new egret.Bitmap;t.texture=RES.getRes("asset_clear_png"),t.x=256,e.mainScene.addChild(t),e.mainScene.character.stop(),e.mainScene.awls.forEach(function(e){return e.destroy()})},e.STAGE_ONE_WIDTH=512,e.STAGE_HEIGHT=512,e.tick=0,e}();window.SceneManager=n,__reflect(n.prototype,"SceneManager",[])}]);
/*! * OpenUI5 * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["sap/ui/thirdparty/jquery","sap/ui/documentation/sdk/controller/BaseController","sap/ui/model/json/JSONModel","sap/ui/documentation/library","sap/base/util/Version","sap/base/Log","sap/ui/documentation/sdk/util/Resources"],function(e,s,o,i,t,n,r){"use strict";var a=r.getResourceOriginPath("neo-app.json"),u=r.getResourceOriginPath("resources/sap-ui-version.json");return s.extend("sap.ui.documentation.sdk.controller.ReleaseNotes",{onInit:function(){this._oView=this.getView();this._requestResources();this._resourceAvailabilityHandler();this._oModel=new o;this._oVersionModel=new o;this._oView.setModel(this._oModel);this._oView.setModel(this._oVersionModel,"select");i._getAppInfo(this._processAppInfo.bind(this))},_processAppInfo:function(e){var s,o,i,n,r;if(!e){return}s=t(e.version);o=s.getMajor();i=s.getMinor();if(s.getSuffix()!==""){if(i%2!==0){i=i+1}}n=o+"."+i;this._updateVersionInformation(n);r={items:[]};while(i>=28){n=o+"."+i;r.items.push({key:n,value:n});i=i-(i<=60?2:1)}this._oVersionModel.setData(r);this.appendPageTitle(this.getModel("i18n").getProperty("RELEASE_NOTES_TITLE"))},_processLibInfo:function(s,o){var i,n=[],r=s.length,a,u;a=function(e,o){i+=o.notes.length;s[u].versions.push({version:e,notes:o.notes});s[u].versions.sort(function(e,s){return t(s.version).compareTo(e.version)})};for(u=0;u<r;u++){s[u]=o[s[u]];s[u].versions=[];if(s[u].relnotes){i=0;e.each(s[u].relnotes,a);if(i>0){n.push(s[u])}}}this._oModel.setData({libs:n});this._hideBusyIndicator()},_requestResources:function(){this._oNeoAppJsonPromise=e.ajax(a);this._oSapUiVersionJsonPromise=e.ajax(u)},_resourceAvailabilityHandler:function(){e.when(this._oNeoAppJsonPromise,this._oSapUiVersionJsonPromise).then(function(e,s){this._oNeoAppVersions=e[0].routes;this._sSapUiVersion=s[0].version;this._oView.byId("VersionSelect").setVisible(true)}.bind(this),function(){n.warning("No neo-app.json was detected")})},_compareUI5Versions:function(e,s){var o=t(e),i=t(s);return o.getMajor()+"."+o.getMinor()===i.getMajor()+"."+i.getMinor()},_updateLastReleasedVersion:function(e){if(this._compareUI5Versions(e,this._sSapUiVersion)&&parseFloat(this._sLastReleasedVersion)>parseFloat(this._sSapUiVersion)){this._sLastReleasedVersion=this._sSapUiVersion}},_getLastVersionFromNeoAppJson:function(e){var s=this._oNeoAppVersions?this._oNeoAppVersions.length:0,o,i;for(i=0;i<s;i++){o=this._oNeoAppVersions[i].target.version;if(this._compareUI5Versions(o,e)){return o}}},handleVersionChange:function(e){var s=e.getParameter("selectedItem"),o=s.getKey();this._updateVersionInformation(o)},_updateVersionInformation:function(e){var s;this._sLastReleasedVersion=this._getLastVersionFromNeoAppJson(e);this._updateLastReleasedVersion(e);s=this._sLastReleasedVersion?this._sLastReleasedVersion:e;this._showBusyIndicator();i._loadAllLibInfo("","_getLibraryInfoAndReleaseNotes",s,this._processLibInfo.bind(this))},_showBusyIndicator:function(){this.byId("releaseNotesObjectPage").setBusy(true)},_hideBusyIndicator:function(){this.byId("releaseNotesObjectPage").setBusy(false)}})});
/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.2.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:c.sort,splice:c.splice},r.extend=r.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||r.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(r.isPlainObject(d)||(e=Array.isArray(d)))?(e?(e=!1,f=c&&Array.isArray(c)?c:[]):f=c&&r.isPlainObject(c)?c:{},g[b]=r.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},r.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===r.type(a)},isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=r.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==k.call(a))&&(!(b=e(a))||(c=l.call(b,"constructor")&&b.constructor,"function"==typeof c&&m.call(c)===n))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[k.call(a)]||"object":typeof a},globalEval:function(a){p(a)},camelCase:function(a){return a.replace(t,"ms-").replace(u,v)},each:function(a,b){var c,d=0;if(w(a)){for(c=a.length;d<c;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(s,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(w(Object(a))?r.merge(c,"string"==typeof a?[a]:a):h.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:i.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,f=0,h=[];if(w(a))for(d=a.length;f<d;f++)e=b(a[f],f,c),null!=e&&h.push(e);else for(f in a)e=b(a[f],f,c),null!=e&&h.push(e);return g.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),r.isFunction(a))return d=f.call(arguments,2),e=function(){return a.apply(b||this,d.concat(f.call(arguments)))},e.guid=a.guid=a.guid||r.guid++,e},now:Date.now,support:o}),"function"==typeof Symbol&&(r.fn[Symbol.iterator]=c[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){j["[object "+b+"]"]=b.toLowerCase()});function w(a){var b=!!a&&"length"in a&&a.length,c=r.type(a);return"function"!==c&&!r.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:pa(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:pa(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function ra(){}ra.prototype=d.filters=d.pseudos,d.setFilters=new ra,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=Q.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function sa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function ta(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=x++;return b.first?function(b,c,e){while(b=b[d])if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[w,h];if(i){while(b=b[d])if((1===b.nodeType||g)&&a(b,c,i))return!0}else while(b=b[d])if(1===b.nodeType||g)if(l=b[u]||(b[u]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===w&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function ua(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d<e;d++)ga(a,b[d],c);return c}function wa(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function xa(a,b,c,d,e,f){return d&&!d[u]&&(d=xa(d)),e&&!e[u]&&(e=xa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||va(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:wa(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=wa(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i<f;i++)if(c=d.relative[a[i].type])m=[ta(ua(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return xa(i>1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i<e&&ya(a.slice(i,e)),e<f&&ya(a=a.slice(e)),e<f&&sa(a))}m.push(c)}return ua(m)}function za(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext;function B(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function E(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):D.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b<d;b++)if(r.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;b<d;b++)r.find(a,e[b],c);return d>1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(E(this,a||[],!1))},not:function(a){return this.pushStack(E(this,a||[],!0))},is:function(a){return!!E(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var F,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,H=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||F,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:G.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),C.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};H.prototype=r.fn,F=r(d);var I=/^(?:parents|prev(?:Until|All))/,J={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a<c;a++)if(r.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&r(a);if(!A.test(a))for(;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function K(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return K(a,"nextSibling")},prev:function(a){return K(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return B(a,"iframe")?a.contentDocument:(B(a,"template")&&(a=a.content||a),r.merge([],a.childNodes))}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(J[a]||r.uniqueSort(e),I.test(a)&&e.reverse()),this.pushStack(e)}});var L=/[^\x20\t\r\n\f]+/g;function M(a){var b={};return r.each(a.match(L)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?M(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=e||a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){r.each(b,function(b,c){r.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==r.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return r.each(arguments,function(a,b){var c;while((c=r.inArray(b,f,c))>-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function N(a){return a}function O(a){throw a}function P(a,b,c,d){var e;try{a&&r.isFunction(e=a.promise)?e.call(a).done(b).fail(c):a&&r.isFunction(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b<f)){if(a=d.apply(h,i),a===c.promise())throw new TypeError("Thenable self-resolution");j=a&&("object"==typeof a||"function"==typeof a)&&a.then,r.isFunction(j)?e?j.call(a,g(f,c,N,e),g(f,c,O,e)):(f++,j.call(a,g(f,c,N,e),g(f,c,O,e),g(f,c,N,c.notifyWith))):(d!==N&&(h=void 0,i=[a]),(e||c.resolveWith)(h,i))}},k=e?j:function(){try{j()}catch(a){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(a,k.stackTrace),b+1>=f&&(d!==O&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:N,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:N)),c[2][3].add(g(0,a,r.isFunction(d)?d:O))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(P(a,g.done(h(c)).resolve,g.reject,!b),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)P(e[c],h(c),g.reject);return g.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Q.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var R=r.Deferred();r.fn.ready=function(a){return R.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||R.resolveWith(d,[r]))}}),r.ready.then=R.then;function S(){d.removeEventListener("DOMContentLoaded",S), a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)T(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},U=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function V(){this.expando=r.expando+V.uid++}V.uid=1,V.prototype={cache:function(a){var b=a[this.expando];return b||(b={},U(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[r.camelCase(b)]=c;else for(d in b)e[r.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][r.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){Array.isArray(b)?b=b.map(r.camelCase):(b=r.camelCase(b),b=b in d?[b]:b.match(L)||[]),c=b.length;while(c--)delete d[b[c]]}(void 0===b||r.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!r.isEmptyObject(b)}};var W=new V,X=new V,Y=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function $(a){return"true"===a||"false"!==a&&("null"===a?null:a===+a+""?+a:Y.test(a)?JSON.parse(a):a)}function _(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Z,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=$(c)}catch(e){}X.set(a,b,c)}else c=void 0;return c}r.extend({hasData:function(a){return X.hasData(a)||W.hasData(a)},data:function(a,b,c){return X.access(a,b,c)},removeData:function(a,b){X.remove(a,b)},_data:function(a,b,c){return W.access(a,b,c)},_removeData:function(a,b){W.remove(a,b)}}),r.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=X.get(f),1===f.nodeType&&!W.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=r.camelCase(d.slice(5)),_(f,d,e[d])));W.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){X.set(this,a)}):T(this,function(b){var c;if(f&&void 0===b){if(c=X.get(f,a),void 0!==c)return c;if(c=_(f,a),void 0!==c)return c}else this.each(function(){X.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){X.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=W.get(a,b),c&&(!d||Array.isArray(c)?d=W.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return W.get(a,c)||W.access(a,c,{empty:r.Callbacks("once memory").add(function(){W.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?r.queue(this[0],a):void 0===b?this:this.each(function(){var c=r.queue(this,a,b);r._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&r.dequeue(this,a)})},dequeue:function(a){return this.each(function(){r.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=r.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=W.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var aa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ba=new RegExp("^(?:([+-])=|)("+aa+")([a-z%]*)$","i"),ca=["Top","Right","Bottom","Left"],da=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&r.contains(a.ownerDocument,a)&&"none"===r.css(a,"display")},ea=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};function fa(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return r.css(a,b,"")},i=h(),j=c&&c[3]||(r.cssNumber[b]?"":"px"),k=(r.cssNumber[b]||"px"!==j&&+i)&&ba.exec(r.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,r.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var ga={};function ha(a){var b,c=a.ownerDocument,d=a.nodeName,e=ga[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=r.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),ga[d]=e,e)}function ia(a,b){for(var c,d,e=[],f=0,g=a.length;f<g;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=W.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&da(d)&&(e[f]=ha(d))):"none"!==c&&(e[f]="none",W.set(d,"display",c)));for(f=0;f<g;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}r.fn.extend({show:function(){return ia(this,!0)},hide:function(){return ia(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){da(this)?r(this).show():r(this).hide()})}});var ja=/^(?:checkbox|radio)$/i,ka=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,la=/^$|\/(?:java|ecma)script/i,ma={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ma.optgroup=ma.option,ma.tbody=ma.tfoot=ma.colgroup=ma.caption=ma.thead,ma.th=ma.td;function na(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&B(a,b)?r.merge([a],c):c}function oa(a,b){for(var c=0,d=a.length;c<d;c++)W.set(a[c],"globalEval",!b||W.get(b[c],"globalEval"))}var pa=/<|&#?\w+;/;function qa(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;n<o;n++)if(f=a[n],f||0===f)if("object"===r.type(f))r.merge(m,f.nodeType?[f]:f);else if(pa.test(f)){g=g||l.appendChild(b.createElement("div")),h=(ka.exec(f)||["",""])[1].toLowerCase(),i=ma[h]||ma._default,g.innerHTML=i[1]+r.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;r.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",n=0;while(f=m[n++])if(d&&r.inArray(f,d)>-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=na(l.appendChild(f),"script"),j&&oa(g),c){k=0;while(f=g[k++])la.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var ra=d.documentElement,sa=/^key/,ta=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ua=/^([^.]*)(?:\.(.+)|)/;function va(){return!0}function wa(){return!1}function xa(){try{return d.activeElement}catch(a){}}function ya(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ya(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=wa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(ra,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(L)||[""],j=b.length;while(j--)h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.hasData(a)&&W.get(a);if(q&&(i=q.events)){b=(b||"").match(L)||[""],j=b.length;while(j--)if(h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&W.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(W.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c<arguments.length;c++)i[c]=arguments[c];if(b.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,b)!==!1){h=r.event.handlers.call(this,b,j),c=0;while((f=h[c++])&&!b.isPropagationStopped()){b.currentTarget=f.elem,d=0;while((g=f.handlers[d++])&&!b.isImmediatePropagationStopped())b.rnamespace&&!b.rnamespace.test(g.namespace)||(b.handleObj=g,b.data=g.data,e=((r.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(b.result=e)===!1&&(b.preventDefault(),b.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,b),b.result}},handlers:function(a,b){var c,d,e,f,g,h=[],i=b.delegateCount,j=a.target;if(i&&j.nodeType&&!("click"===a.type&&a.button>=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c<i;c++)d=b[c],e=d.selector+" ",void 0===g[e]&&(g[e]=d.needsContext?r(e,this).index(j)>-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i<b.length&&h.push({elem:j,handlers:b.slice(i)}),h},addProp:function(a,b){Object.defineProperty(r.Event.prototype,a,{enumerable:!0,configurable:!0,get:r.isFunction(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[r.expando]?a:new r.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==xa()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===xa()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&B(this,"input"))return this.click(),!1},_default:function(a){return B(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},r.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},r.Event=function(a,b){return this instanceof r.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?va:wa,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&r.extend(this,b),this.timeStamp=a&&a.timeStamp||r.now(),void(this[r.expando]=!0)):new r.Event(a,b)},r.Event.prototype={constructor:r.Event,isDefaultPrevented:wa,isPropagationStopped:wa,isImmediatePropagationStopped:wa,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=va,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=va,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=va,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},r.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&sa.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&ta.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},r.event.addProp),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){r.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||r.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),r.fn.extend({on:function(a,b,c,d){return ya(this,a,b,c,d)},one:function(a,b,c,d){return ya(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,r(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=wa),this.each(function(){r.event.remove(this,a,c,b)})}});var za=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Aa=/<script|<style|<link/i,Ba=/checked\s*(?:[^=]|=\s*.checked.)/i,Ca=/^true\/(.*)/,Da=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ea(a,b){return B(a,"table")&&B(11!==b.nodeType?b:b.firstChild,"tr")?r(">tbody",a)[0]||a:a}function Fa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Ga(a){var b=Ca.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ha(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(W.hasData(a)&&(f=W.access(a),g=W.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c<d;c++)r.event.add(b,e,j[e][c])}X.hasData(a)&&(h=X.access(a),i=r.extend({},h),X.set(b,i))}}function Ia(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ja.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function Ja(a,b,c,d){b=g.apply([],b);var e,f,h,i,j,k,l=0,m=a.length,n=m-1,q=b[0],s=r.isFunction(q);if(s||m>1&&"string"==typeof q&&!o.checkClone&&Ba.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ja(f,b,c,d)});if(m&&(e=qa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(na(e,"script"),Fa),i=h.length;l<m;l++)j=e,l!==n&&(j=r.clone(j,!0,!0),i&&r.merge(h,na(j,"script"))),c.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,r.map(h,Ga),l=0;l<i;l++)j=h[l],la.test(j.type||"")&&!W.access(j,"globalEval")&&r.contains(k,j)&&(j.src?r._evalUrl&&r._evalUrl(j.src):p(j.textContent.replace(Da,""),k))}return a}function Ka(a,b,c){for(var d,e=b?r.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||r.cleanData(na(d)),d.parentNode&&(c&&r.contains(d.ownerDocument,d)&&oa(na(d,"script")),d.parentNode.removeChild(d));return a}r.extend({htmlPrefilter:function(a){return a.replace(za,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=na(h),f=na(a),d=0,e=f.length;d<e;d++)Ia(f[d],g[d]);if(b)if(c)for(f=f||na(a),g=g||na(h),d=0,e=f.length;d<e;d++)Ha(f[d],g[d]);else Ha(a,h);return g=na(h,"script"),g.length>0&&oa(g,!i&&na(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(U(c)){if(b=c[W.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[W.expando]=void 0}c[X.expando]&&(c[X.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ka(this,a,!0)},remove:function(a){return Ka(this,a)},text:function(a){return T(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.appendChild(a)}})},prepend:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(na(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return T(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Aa.test(a)&&!ma[(ka.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(r.cleanData(na(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ja(this,arguments,function(b){var c=this.parentNode;r.inArray(this,a)<0&&(r.cleanData(na(this)),c&&c.replaceChild(b,this))},a)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){r.fn[a]=function(a){for(var c,d=[],e=r(a),f=e.length-1,g=0;g<=f;g++)c=g===f?this:this.clone(!0),r(e[g])[b](c),h.apply(d,c.get());return this.pushStack(d)}});var La=/^margin/,Ma=new RegExp("^("+aa+")(?!px)[a-z%]+$","i"),Na=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)};!function(){function b(){if(i){i.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i.innerHTML="",ra.appendChild(h);var b=a.getComputedStyle(i);c="1%"!==b.top,g="2px"===b.marginLeft,e="4px"===b.width,i.style.marginRight="50%",f="4px"===b.marginRight,ra.removeChild(h),i=null}}var c,e,f,g,h=d.createElement("div"),i=d.createElement("div");i.style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===i.style.backgroundClip,h.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",h.appendChild(i),r.extend(o,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return b(),e},pixelMarginRight:function(){return b(),f},reliableMarginLeft:function(){return b(),g}}))}();function Oa(a,b,c){var d,e,f,g,h=a.style;return c=c||Na(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||r.contains(a.ownerDocument,a)||(g=r.style(a,b)),!o.pixelMarginRight()&&Ma.test(g)&&La.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function Pa(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Qa=/^(none|table(?!-c[ea]).+)/,Ra=/^--/,Sa={position:"absolute",visibility:"hidden",display:"block"},Ta={letterSpacing:"0",fontWeight:"400"},Ua=["Webkit","Moz","ms"],Va=d.createElement("div").style;function Wa(a){if(a in Va)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ua.length;while(c--)if(a=Ua[c]+b,a in Va)return a}function Xa(a){var b=r.cssProps[a];return b||(b=r.cssProps[a]=Wa(a)||a),b}function Ya(a,b,c){var d=ba.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Za(a,b,c,d,e){var f,g=0;for(f=c===(d?"border":"content")?4:"width"===b?1:0;f<4;f+=2)"margin"===c&&(g+=r.css(a,c+ca[f],!0,e)),d?("content"===c&&(g-=r.css(a,"padding"+ca[f],!0,e)),"margin"!==c&&(g-=r.css(a,"border"+ca[f]+"Width",!0,e))):(g+=r.css(a,"padding"+ca[f],!0,e),"padding"!==c&&(g+=r.css(a,"border"+ca[f]+"Width",!0,e)));return g}function $a(a,b,c){var d,e=Na(a),f=Oa(a,b,e),g="border-box"===r.css(a,"boxSizing",!1,e);return Ma.test(f)?f:(d=g&&(o.boxSizingReliable()||f===a.style[b]),"auto"===f&&(f=a["offset"+b[0].toUpperCase()+b.slice(1)]),f=parseFloat(f)||0,f+Za(a,b,c||(g?"border":"content"),d,e)+"px")}r.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Oa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=r.camelCase(b),i=Ra.test(b),j=a.style;return i||(b=Xa(h)),g=r.cssHooks[b]||r.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:j[b]:(f=typeof c,"string"===f&&(e=ba.exec(c))&&e[1]&&(c=fa(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(r.cssNumber[h]?"":"px")),o.clearCloneStyle||""!==c||0!==b.indexOf("background")||(j[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i?j.setProperty(b,c):j[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=r.camelCase(b),i=Ra.test(b);return i||(b=Xa(h)),g=r.cssHooks[b]||r.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Oa(a,b,d)),"normal"===e&&b in Ta&&(e=Ta[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),r.each(["height","width"],function(a,b){r.cssHooks[b]={get:function(a,c,d){if(c)return!Qa.test(r.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?$a(a,b,d):ea(a,Sa,function(){return $a(a,b,d)})},set:function(a,c,d){var e,f=d&&Na(a),g=d&&Za(a,b,d,"border-box"===r.css(a,"boxSizing",!1,f),f);return g&&(e=ba.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=r.css(a,b)),Ya(a,c,g)}}}),r.cssHooks.marginLeft=Pa(o.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Oa(a,"marginLeft"))||a.getBoundingClientRect().left-ea(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),r.each({margin:"",padding:"",border:"Width"},function(a,b){r.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+ca[d]+b]=f[d]||f[d-2]||f[0];return e}},La.test(a)||(r.cssHooks[a+b].set=Ya)}),r.fn.extend({css:function(a,b){return T(this,function(a,b,c){var d,e,f={},g=0;if(Array.isArray(b)){for(d=Na(a),e=b.length;g<e;g++)f[b[g]]=r.css(a,b[g],!1,d);return f}return void 0!==c?r.style(a,b,c):r.css(a,b)},a,b,arguments.length>1)}});function _a(a,b,c,d,e){return new _a.prototype.init(a,b,c,d,e)}r.Tween=_a,_a.prototype={constructor:_a,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=_a.propHooks[this.prop];return a&&a.get?a.get(this):_a.propHooks._default.get(this)},run:function(a){var b,c=_a.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):_a.propHooks._default.set(this),this}},_a.prototype.init.prototype=_a.prototype,_a.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},_a.propHooks.scrollTop=_a.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=_a.prototype.init,r.fx.step={};var ab,bb,cb=/^(?:toggle|show|hide)$/,db=/queueHooks$/;function eb(){bb&&(d.hidden===!1&&a.requestAnimationFrame?a.requestAnimationFrame(eb):a.setTimeout(eb,r.fx.interval),r.fx.tick())}function fb(){return a.setTimeout(function(){ab=void 0}),ab=r.now()}function gb(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ca[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function hb(a,b,c){for(var d,e=(kb.tweeners[b]||[]).concat(kb.tweeners["*"]),f=0,g=e.length;f<g;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&da(a),q=W.get(a,"fxshow");c.queue||(g=r._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,r.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],cb.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}n[d]=q&&q[d]||r.style(a,d)}if(i=!r.isEmptyObject(b),i||!r.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=q&&q.display,null==j&&(j=W.get(a,"display")),k=r.css(a,"display"),"none"===k&&(j?k=j:(ia([a],!0),j=a.style.display||j,k=r.css(a,"display"),ia([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===r.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(q?"hidden"in q&&(p=q.hidden):q=W.access(a,"fxshow",{display:j}),f&&(q.hidden=!p),p&&ia([a],!0),m.done(function(){p||ia([a]),W.remove(a,"fxshow");for(d in n)r.style(a,d,n[d])})),i=hb(p?q[d]:0,d,m),d in q||(q[d]=i.start,p&&(i.end=i.start,i.start=0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=r.camelCase(c),e=b[d],f=a[c],Array.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=r.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=kb.prefilters.length,h=r.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=ab||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;g<i;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),f<1&&i?c:(i||h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:r.extend({},b),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},c),originalProperties:b,originalOptions:c,startTime:ab||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=r.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;c<d;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);f<g;f++)if(d=kb.prefilters[f].call(j,a,k,j.opts))return r.isFunction(d.stop)&&(r._queueHooks(j.elem,j.opts.queue).stop=r.proxy(d.stop,d)),d;return r.map(k,hb,j),r.isFunction(j.opts.start)&&j.opts.start.call(a,j),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always),r.fx.timer(r.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j}r.Animation=r.extend(kb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return fa(c.elem,a,ba.exec(b),c),c}]},tweener:function(a,b){r.isFunction(a)?(b=a,a=["*"]):a=a.match(L);for(var c,d=0,e=a.length;d<e;d++)c=a[d],kb.tweeners[c]=kb.tweeners[c]||[],kb.tweeners[c].unshift(b)},prefilters:[ib],prefilter:function(a,b){b?kb.prefilters.unshift(a):kb.prefilters.push(a)}}),r.speed=function(a,b,c){var d=a&&"object"==typeof a?r.extend({},a):{complete:c||!c&&b||r.isFunction(a)&&a,duration:a,easing:c&&b||b&&!r.isFunction(b)&&b};return r.fx.off?d.duration=0:"number"!=typeof d.duration&&(d.duration in r.fx.speeds?d.duration=r.fx.speeds[d.duration]:d.duration=r.fx.speeds._default),null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){r.isFunction(d.old)&&d.old.call(this),d.queue&&r.dequeue(this,d.queue)},d},r.fn.extend({fadeTo:function(a,b,c,d){return this.filter(da).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=r.isEmptyObject(a),f=r.speed(b,c,d),g=function(){var b=kb(this,r.extend({},a),f);(e||W.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=r.timers,g=W.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&db.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||r.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=W.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=r.timers,g=d?d.length:0;for(c.finish=!0,r.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),r.each(["toggle","show","hide"],function(a,b){var c=r.fn[b];r.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),r.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){r.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),r.timers=[],r.fx.tick=function(){var a,b=0,c=r.timers;for(ab=r.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||r.fx.stop(),ab=void 0},r.fx.timer=function(a){r.timers.push(a),r.fx.start()},r.fx.interval=13,r.fx.start=function(){bb||(bb=!0,eb())},r.fx.stop=function(){bb=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(b,c){return b=r.fx?r.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",o.checkOn=""!==a.value,o.optSelected=c.selected,a=d.createElement("input"),a.value="t",a.type="radio",o.radioValue="t"===a.value}();var lb,mb=r.expr.attrHandle;r.fn.extend({attr:function(a,b){return T(this,r.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?lb:void 0)),void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b), null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&B(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(L);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),lb={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=mb[b]||r.find.attr;mb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=mb[g],mb[g]=e,e=null!=c(a,b,d)?g:null,mb[g]=f),e}});var nb=/^(?:input|select|textarea|button)$/i,ob=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return T(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):nb.test(a.nodeName)||ob.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function pb(a){var b=a.match(L)||[];return b.join(" ")}function qb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,qb(this)))});if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,qb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,qb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(L)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=qb(this),b&&W.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":W.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+pb(qb(c))+" ").indexOf(b)>-1)return!0;return!1}});var rb=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:pb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d<i;d++)if(c=e[d],(c.selected||d===f)&&!c.disabled&&(!c.parentNode.disabled||!B(c.parentNode,"optgroup"))){if(b=r(c).val(),g)return b;h.push(b)}return h},set:function(a,b){var c,d,e=a.options,f=r.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=r.inArray(r.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(Array.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!sb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,sb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(W.get(h,"events")||{})[b.type]&&W.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&U(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!U(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=W.access(d,b);e||d.addEventListener(a,c,!0),W.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=W.access(d,b)-1;e?W.access(d,b,e):(d.removeEventListener(a,c,!0),W.remove(d,b))}}});var tb=a.location,ub=r.now(),vb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var wb=/\[\]$/,xb=/\r?\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(Array.isArray(b))r.each(b,function(b,e){c||wb.test(a)?d(a,e):Ab(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)Ab(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(Array.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)Ab(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!ja.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:Array.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(xb,"\r\n")}}):{name:b.name,value:c.replace(xb,"\r\n")}}).get()}});var Bb=/%20/g,Cb=/#.*$/,Db=/([?&])_=[^&]*/,Eb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gb=/^(?:GET|HEAD)$/,Hb=/^\/\//,Ib={},Jb={},Kb="*/".concat("*"),Lb=d.createElement("a");Lb.href=tb.href;function Mb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(L)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nb(a,b,c,d){var e={},f=a===Jb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Ob(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Pb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Qb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:tb.href,type:"GET",isLocal:Fb.test(tb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Ob(Ob(a,r.ajaxSettings),b):Ob(r.ajaxSettings,a)},ajaxPrefilter:Mb(Ib),ajaxTransport:Mb(Jb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Eb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||tb.href)+"").replace(Hb,tb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(L)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Lb.protocol+"//"+Lb.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Nb(Ib,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Gb.test(o.type),f=o.url.replace(Cb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Bb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(vb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Db,"$1"),n=(vb.test(f)?"&":"?")+"_="+ub++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Kb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Nb(Jb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Pb(o,y,d)),v=Qb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Rb={0:200,1223:204},Sb=r.ajaxSettings.xhr();o.cors=!!Sb&&"withCredentials"in Sb,o.ajax=Sb=!!Sb,r.ajaxTransport(function(b){var c,d;if(o.cors||Sb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Rb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Tb=[],Ub=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Tb.pop()||r.expando+"_"+ub++;return this[a]=!0,a}}),r.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Ub.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ub.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=r.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Ub,"$1"+e):b.jsonp!==!1&&(b.url+=(vb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||r.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?r(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Tb.push(e)),g&&r.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),o.createHTMLDocument=function(){var a=d.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),r.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var e,f,g;return b||(o.createHTMLDocument?(b=d.implementation.createHTMLDocument(""),e=b.createElement("base"),e.href=d.location.href,b.head.appendChild(e)):b=d),f=C.exec(a),g=!c&&[],f?[b.createElement(f[1])]:(f=qa([a],b,g),g&&g.length&&r(g).remove(),r.merge([],f.childNodes))},r.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=pb(a.slice(h)),a=a.slice(0,h)),r.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&r.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?r("<div>").append(r.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){r.fn[b]=function(a){return this.on(b,a)}}),r.expr.pseudos.animated=function(a){return r.grep(r.timers,function(b){return a===b.elem}).length},r.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=r.css(a,"position"),l=r(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=r.css(a,"top"),i=r.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),r.isFunction(b)&&(b=b.call(a,c,r.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},r.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){r.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),b=f.ownerDocument,c=b.documentElement,e=b.defaultView,{top:d.top+e.pageYOffset-c.clientTop,left:d.left+e.pageXOffset-c.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===r.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),B(a[0],"html")||(d=a.offset()),d={top:d.top+r.css(a[0],"borderTopWidth",!0),left:d.left+r.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-r.css(c,"marginTop",!0),left:b.left-d.left-r.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===r.css(a,"position"))a=a.offsetParent;return a||ra})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;r.fn[a]=function(d){return T(this,function(a,d,e){var f;return r.isWindow(a)?f=a:9===a.nodeType&&(f=a.defaultView),void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),r.each(["top","left"],function(a,b){r.cssHooks[b]=Pa(o.pixelPosition,function(a,c){if(c)return c=Oa(a,b),Ma.test(c)?r(a).position()[b]+"px":c})}),r.each({Height:"height",Width:"width"},function(a,b){r.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){r.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return T(this,function(b,c,e){var f;return r.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?r.css(b,c,h):r.style(b,c,e,h)},b,g?e:void 0,g)}})}),r.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),r.holdReady=function(a){a?r.readyWait++:r.ready(!0)},r.isArray=Array.isArray,r.parseJSON=JSON.parse,r.nodeName=B,"function"==typeof define&&define.amd&&define("jquery",[],function(){return r});var Vb=a.jQuery,Wb=a.$;return r.noConflict=function(b){return a.$===r&&(a.$=Wb),b&&a.jQuery===r&&(a.jQuery=Vb),r},b||(a.jQuery=a.$=r),r}); /*! * Bootstrap v4.0.0 (https://getbootstrap.com) * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e(t.bootstrap={},t.jQuery)}(this,function(t,e){"use strict";function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}for(var o,s,a,l,c,h,f,u,d,p,g,m,_,v,E,y,b,T,C,w,I,A,D,S,O,N,k=function(t){var e=!1;function n(e){var n=this,r=!1;return t(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(n)},e),this}var i={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(e){var n,i=e.getAttribute("data-target");i&&"#"!==i||(i=e.getAttribute("href")||""),"#"===i.charAt(0)&&(n=i,i=n="function"==typeof t.escapeSelector?t.escapeSelector(n).substr(1):n.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1"));try{return t(document).find(i).length>0?i:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r],s=e[r],a=s&&i.isElement(s)?"element":(l=s,{}.toString.call(l).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+o+'".')}var l}};return e=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},t.fn.emulateTransitionEnd=n,i.supportsTransitionEnd()&&(t.event.special[i.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),i}(e=e&&e.hasOwnProperty("default")?e.default:e),L=(s="alert",l="."+(a="bs.alert"),c=(o=e).fn[s],h={CLOSE:"close"+l,CLOSED:"closed"+l,CLICK_DATA_API:"click"+l+".data-api"},f="alert",u="fade",d="show",p=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.removeData(this._element,a),this._element=null},e._getRootElement=function(t){var e=k.getSelectorFromElement(t),n=!1;return e&&(n=o(e)[0]),n||(n=o(t).closest("."+f)[0]),n},e._triggerCloseEvent=function(t){var e=o.Event(h.CLOSE);return o(t).trigger(e),e},e._removeElement=function(t){var e=this;o(t).removeClass(d),k.supportsTransitionEnd()&&o(t).hasClass(u)?o(t).one(k.TRANSITION_END,function(n){return e._destroyElement(t,n)}).emulateTransitionEnd(150):this._destroyElement(t)},e._destroyElement=function(t){o(t).detach().trigger(h.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=o(this),i=n.data(a);i||(i=new t(this),n.data(a,i)),"close"===e&&i[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),o(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',p._handleDismiss(new p)),o.fn[s]=p._jQueryInterface,o.fn[s].Constructor=p,o.fn[s].noConflict=function(){return o.fn[s]=c,p._jQueryInterface},p),P=(m="button",v="."+(_="bs.button"),E=".data-api",y=(g=e).fn[m],b="active",T="btn",C="focus",w='[data-toggle^="button"]',I='[data-toggle="buttons"]',A="input",D=".active",S=".btn",O={CLICK_DATA_API:"click"+v+E,FOCUS_BLUR_DATA_API:"focus"+v+E+" blur"+v+E},N=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=g(this._element).closest(I)[0];if(n){var i=g(this._element).find(A)[0];if(i){if("radio"===i.type)if(i.checked&&g(this._element).hasClass(b))t=!1;else{var r=g(n).find(D)[0];r&&g(r).removeClass(b)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!g(this._element).hasClass(b),g(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!g(this._element).hasClass(b)),t&&g(this._element).toggleClass(b)},e.dispose=function(){g.removeData(this._element,_),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var n=g(this).data(_);n||(n=new t(this),g(this).data(_,n)),"toggle"===e&&n[e]()})},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),g(document).on(O.CLICK_DATA_API,w,function(t){t.preventDefault();var e=t.target;g(e).hasClass(T)||(e=g(e).closest(S)),N._jQueryInterface.call(g(e),"toggle")}).on(O.FOCUS_BLUR_DATA_API,w,function(t){var e=g(t.target).closest(S)[0];g(e).toggleClass(C,/^focus(in)?$/.test(t.type))}),g.fn[m]=N._jQueryInterface,g.fn[m].Constructor=N,g.fn[m].noConflict=function(){return g.fn[m]=y,N._jQueryInterface},N),x=function(t){var e="carousel",n="bs.carousel",o="."+n,s=t.fn[e],a={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},l={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},c="next",h="prev",f="left",u="right",d={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,TOUCHEND:"touchend"+o,LOAD_DATA_API:"load"+o+".data-api",CLICK_DATA_API:"click"+o+".data-api"},p="carousel",g="active",m="slide",_="carousel-item-right",v="carousel-item-left",E="carousel-item-next",y="carousel-item-prev",b={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},T=function(){function s(e,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(b.INDICATORS)[0],this._addEventListeners()}var T=s.prototype;return T.next=function(){this._isSliding||this._slide(c)},T.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},T.prev=function(){this._isSliding||this._slide(h)},T.pause=function(e){e||(this._isPaused=!0),t(this._element).find(b.NEXT_PREV)[0]&&k.supportsTransitionEnd()&&(k.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},T.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},T.to=function(e){var n=this;this._activeElement=t(this._element).find(b.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(d.SLID,function(){return n.to(e)});else{if(i===e)return this.pause(),void this.cycle();var r=e>i?c:h;this._slide(r,this._items[e])}},T.dispose=function(){t(this._element).off(o),t.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},T._getConfig=function(t){return t=r({},a,t),k.typeCheckConfig(e,t,l),t},T._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(d.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(t(this._element).on(d.MOUSEENTER,function(t){return e.pause(t)}).on(d.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&t(this._element).on(d.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},T._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},T._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(b.ITEM)),this._items.indexOf(e)},T._getItemByDirection=function(t,e){var n=t===c,i=t===h,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+(t===h?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},T._triggerSlideEvent=function(e,n){var i=this._getItemIndex(e),r=this._getItemIndex(t(this._element).find(b.ACTIVE_ITEM)[0]),o=t.Event(d.SLIDE,{relatedTarget:e,direction:n,from:r,to:i});return t(this._element).trigger(o),o},T._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(b.ACTIVE).removeClass(g);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t(n).addClass(g)}},T._slide=function(e,n){var i,r,o,s=this,a=t(this._element).find(b.ACTIVE_ITEM)[0],l=this._getItemIndex(a),h=n||a&&this._getItemByDirection(e,a),p=this._getItemIndex(h),T=Boolean(this._interval);if(e===c?(i=v,r=E,o=f):(i=_,r=y,o=u),h&&t(h).hasClass(g))this._isSliding=!1;else if(!this._triggerSlideEvent(h,o).isDefaultPrevented()&&a&&h){this._isSliding=!0,T&&this.pause(),this._setActiveIndicatorElement(h);var C=t.Event(d.SLID,{relatedTarget:h,direction:o,from:l,to:p});k.supportsTransitionEnd()&&t(this._element).hasClass(m)?(t(h).addClass(r),k.reflow(h),t(a).addClass(i),t(h).addClass(i),t(a).one(k.TRANSITION_END,function(){t(h).removeClass(i+" "+r).addClass(g),t(a).removeClass(g+" "+r+" "+i),s._isSliding=!1,setTimeout(function(){return t(s._element).trigger(C)},0)}).emulateTransitionEnd(600)):(t(a).removeClass(g),t(h).addClass(g),this._isSliding=!1,t(this._element).trigger(C)),T&&this.cycle()}},s._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),o=r({},a,t(this).data());"object"==typeof e&&(o=r({},o,e));var l="string"==typeof e?e:o.slide;if(i||(i=new s(this,o),t(this).data(n,i)),"number"==typeof e)i.to(e);else if("string"==typeof l){if("undefined"==typeof i[l])throw new TypeError('No method named "'+l+'"');i[l]()}else o.interval&&(i.pause(),i.cycle())})},s._dataApiClickHandler=function(e){var i=k.getSelectorFromElement(this);if(i){var o=t(i)[0];if(o&&t(o).hasClass(p)){var a=r({},t(o).data(),t(this).data()),l=this.getAttribute("data-slide-to");l&&(a.interval=!1),s._jQueryInterface.call(t(o),a),l&&t(o).data(n).to(l),e.preventDefault()}}},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),s}();return t(document).on(d.CLICK_DATA_API,b.DATA_SLIDE,T._dataApiClickHandler),t(window).on(d.LOAD_DATA_API,function(){t(b.DATA_RIDE).each(function(){var e=t(this);T._jQueryInterface.call(e,e.data())})}),t.fn[e]=T._jQueryInterface,t.fn[e].Constructor=T,t.fn[e].noConflict=function(){return t.fn[e]=s,T._jQueryInterface},T}(e),R=function(t){var e="collapse",n="bs.collapse",o="."+n,s=t.fn[e],a={toggle:!0,parent:""},l={toggle:"boolean",parent:"(string|element)"},c={SHOW:"show"+o,SHOWN:"shown"+o,HIDE:"hide"+o,HIDDEN:"hidden"+o,CLICK_DATA_API:"click"+o+".data-api"},h="show",f="collapse",u="collapsing",d="collapsed",p="width",g="height",m={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},_=function(){function o(e,n){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=t(m.DATA_TOGGLE),r=0;r<i.length;r++){var o=i[r],s=k.getSelectorFromElement(o);null!==s&&t(s).filter(e).length>0&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var s=o.prototype;return s.toggle=function(){t(this._element).hasClass(h)?this.hide():this.show()},s.show=function(){var e,i,r=this;if(!this._isTransitioning&&!t(this._element).hasClass(h)&&(this._parent&&0===(e=t.makeArray(t(this._parent).find(m.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),!(e&&(i=t(e).not(this._selector).data(n))&&i._isTransitioning))){var s=t.Event(c.SHOW);if(t(this._element).trigger(s),!s.isDefaultPrevented()){e&&(o._jQueryInterface.call(t(e).not(this._selector),"hide"),i||t(e).data(n,null));var a=this._getDimension();t(this._element).removeClass(f).addClass(u),this._element.style[a]=0,this._triggerArray.length>0&&t(this._triggerArray).removeClass(d).attr("aria-expanded",!0),this.setTransitioning(!0);var l=function(){t(r._element).removeClass(u).addClass(f).addClass(h),r._element.style[a]="",r.setTransitioning(!1),t(r._element).trigger(c.SHOWN)};if(k.supportsTransitionEnd()){var p="scroll"+(a[0].toUpperCase()+a.slice(1));t(this._element).one(k.TRANSITION_END,l).emulateTransitionEnd(600),this._element.style[a]=this._element[p]+"px"}else l()}}},s.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(h)){var n=t.Event(c.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",k.reflow(this._element),t(this._element).addClass(u).removeClass(f).removeClass(h),this._triggerArray.length>0)for(var r=0;r<this._triggerArray.length;r++){var o=this._triggerArray[r],s=k.getSelectorFromElement(o);if(null!==s)t(s).hasClass(h)||t(o).addClass(d).attr("aria-expanded",!1)}this.setTransitioning(!0);var a=function(){e.setTransitioning(!1),t(e._element).removeClass(u).addClass(f).trigger(c.HIDDEN)};this._element.style[i]="",k.supportsTransitionEnd()?t(this._element).one(k.TRANSITION_END,a).emulateTransitionEnd(600):a()}}},s.setTransitioning=function(t){this._isTransitioning=t},s.dispose=function(){t.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s._getConfig=function(t){return(t=r({},a,t)).toggle=Boolean(t.toggle),k.typeCheckConfig(e,t,l),t},s._getDimension=function(){return t(this._element).hasClass(p)?p:g},s._getParent=function(){var e=this,n=null;k.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=t(this._config.parent)[0];var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(i).each(function(t,n){e._addAriaAndCollapsedClass(o._getTargetFromElement(n),[n])}),n},s._addAriaAndCollapsedClass=function(e,n){if(e){var i=t(e).hasClass(h);n.length>0&&t(n).toggleClass(d,!i).attr("aria-expanded",i)}},o._getTargetFromElement=function(e){var n=k.getSelectorFromElement(e);return n?t(n)[0]:null},o._jQueryInterface=function(e){return this.each(function(){var i=t(this),s=i.data(n),l=r({},a,i.data(),"object"==typeof e&&e);if(!s&&l.toggle&&/show|hide/.test(e)&&(l.toggle=!1),s||(s=new o(this,l),i.data(n,s)),"string"==typeof e){if("undefined"==typeof s[e])throw new TypeError('No method named "'+e+'"');s[e]()}})},i(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),o}();return t(document).on(c.CLICK_DATA_API,m.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=t(this),r=k.getSelectorFromElement(this);t(r).each(function(){var e=t(this),r=e.data(n)?"toggle":i.data();_._jQueryInterface.call(e,r)})}),t.fn[e]=_._jQueryInterface,t.fn[e].Constructor=_,t.fn[e].noConflict=function(){return t.fn[e]=s,_._jQueryInterface},_}(e),j="undefined"!=typeof window&&"undefined"!=typeof document,H=["Edge","Trident","Firefox"],M=0,W=0;W<H.length;W+=1)if(j&&navigator.userAgent.indexOf(H[W])>=0){M=1;break}var U=j&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},M))}};function B(t){return t&&"[object Function]"==={}.toString.call(t)}function F(t,e){if(1!==t.nodeType)return[];var n=getComputedStyle(t,null);return e?n[e]:n}function K(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function V(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=F(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll)/.test(n+r+i)?t:V(K(t))}function Q(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(e.nodeName)&&"static"===F(e,"position")?Q(e):e:t?t.ownerDocument.documentElement:document.documentElement}function Y(t){return null!==t.parentNode?Y(t.parentNode):t}function G(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(r))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&Q(s.firstElementChild)!==s?Q(l):l;var c=Y(t);return c.host?G(c.host,e):G(t,Y(e).host)}function q(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function z(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}var X=void 0,Z=function(){return void 0===X&&(X=-1!==navigator.appVersion.indexOf("MSIE 10")),X};function J(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Z()?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function $(){var t=document.body,e=document.documentElement,n=Z()&&getComputedStyle(e);return{height:J("Height",t,e,n),width:J("Width",t,e,n)}}var tt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},et=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),nt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},it=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function rt(t){return it({},t,{right:t.left+t.width,bottom:t.top+t.height})}function ot(t){var e={};if(Z())try{e=t.getBoundingClientRect();var n=q(t,"top"),i=q(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?$():{},s=o.width||t.clientWidth||r.right-r.left,a=o.height||t.clientHeight||r.bottom-r.top,l=t.offsetWidth-s,c=t.offsetHeight-a;if(l||c){var h=F(t);l-=z(h,"x"),c-=z(h,"y"),r.width-=l,r.height-=c}return rt(r)}function st(t,e){var n=Z(),i="HTML"===e.nodeName,r=ot(t),o=ot(e),s=V(t),a=F(e),l=parseFloat(a.borderTopWidth,10),c=parseFloat(a.borderLeftWidth,10),h=rt({top:r.top-o.top-l,left:r.left-o.left-c,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!n&&i){var f=parseFloat(a.marginTop,10),u=parseFloat(a.marginLeft,10);h.top-=l-f,h.bottom-=l-f,h.left-=c-u,h.right-=c-u,h.marginTop=f,h.marginLeft=u}return(n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=q(e,"top"),r=q(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}(h,e)),h}function at(t,e,n,i){var r,o,s,a,l,c,h,f={top:0,left:0},u=G(t,e);if("viewport"===i)o=(r=u).ownerDocument.documentElement,s=st(r,o),a=Math.max(o.clientWidth,window.innerWidth||0),l=Math.max(o.clientHeight,window.innerHeight||0),c=q(o),h=q(o,"left"),f=rt({top:c-s.top+s.marginTop,left:h-s.left+s.marginLeft,width:a,height:l});else{var d=void 0;"scrollParent"===i?"BODY"===(d=V(K(e))).nodeName&&(d=t.ownerDocument.documentElement):d="window"===i?t.ownerDocument.documentElement:i;var p=st(d,u);if("HTML"!==d.nodeName||function t(e){var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===F(e,"position")||t(K(e)))}(u))f=p;else{var g=$(),m=g.height,_=g.width;f.top+=p.top-p.marginTop,f.bottom=m+p.top,f.left+=p.left-p.marginLeft,f.right=_+p.left}}return f.left+=n,f.top+=n,f.right-=n,f.bottom-=n,f}function lt(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=at(n,i,o,r),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return it({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),h=c.length>0?c[0].key:l[0].key,f=t.split("-")[1];return h+(f?"-"+f:"")}function ct(t,e,n){return st(n,G(e,n))}function ht(t){var e=getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function ft(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function ut(t,e,n){n=n.split("-")[0];var i=ht(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[s]=e[s]+e[l]/2-i[l]/2,r[a]=n===a?e[a]-i[c]:e[ft(a)],r}function dt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function pt(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=dt(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&B(n)&&(e.offsets.popper=rt(e.offsets.popper),e.offsets.reference=rt(e.offsets.reference),e=n(e,t))}),e}function gt(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function mt(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length-1;i++){var r=e[i],o=r?""+r+n:t;if("undefined"!=typeof document.body.style[o])return o}return null}function _t(t){var e=t.ownerDocument;return e?e.defaultView:window}function vt(t,e,n,i){n.updateBound=i,_t(t).addEventListener("resize",n.updateBound,{passive:!0});var r=V(t);return function t(e,n,i,r){var o="BODY"===e.nodeName,s=o?e.ownerDocument.defaultView:e;s.addEventListener(n,i,{passive:!0}),o||t(V(s.parentNode),n,i,r),r.push(s)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function Et(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,_t(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function yt(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function bt(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&yt(e[n])&&(i="px"),t.style[n]=e[n]+i})}function Tt(t,e,n){var i=dt(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var Ct=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],wt=Ct.slice(3);function It(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=wt.indexOf(t),i=wt.slice(n+1).concat(wt.slice(0,n));return e?i.reverse():i}var At={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Dt(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=s.indexOf(dt(s,function(t){return-1!==t.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map(function(t,i){var r=(1===i?!o:o)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return rt(a)[e]/100*o}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,r,e,n)})})).forEach(function(t,e){t.forEach(function(n,i){yt(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))})}),r}var St={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",h={start:nt({},l,o[l]),end:nt({},l,o[l]+o[c]-s[c])};t.offsets.popper=it({},s,h[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],l=void 0;return l=yt(+n)?[+n,0]:Dt(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||Q(t.instance.popper);t.instance.reference===n&&(n=Q(n));var i=at(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=i;var r=e.priority,o=t.offsets.popper,s={primary:function(t){var n=o[t];return o[t]<i[t]&&!e.escapeWithReference&&(n=Math.max(o[t],i[t])),nt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=o[n];return o[t]>i[t]&&!e.escapeWithReference&&(r=Math.min(o[n],i[t]-("right"===t?o.width:o.height))),nt({},n,r)}};return r.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";o=it({},o,s[e](t))}),t.offsets.popper=o,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Tt(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",h=l?"Top":"Left",f=h.toLowerCase(),u=l?"left":"top",d=l?"bottom":"right",p=ht(i)[c];a[d]-p<s[f]&&(t.offsets.popper[f]-=s[f]-(a[d]-p)),a[f]+p>s[d]&&(t.offsets.popper[f]+=a[f]+p-s[d]),t.offsets.popper=rt(t.offsets.popper);var g=a[f]+a[c]/2-p/2,m=F(t.instance.popper),_=parseFloat(m["margin"+h],10),v=parseFloat(m["border"+h+"Width"],10),E=g-t.offsets.popper[f]-_-v;return E=Math.max(Math.min(s[c]-p,E),0),t.arrowElement=i,t.offsets.arrow=(nt(n={},f,Math.round(E)),nt(n,u,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(gt(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=at(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split("-")[0],r=ft(i),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case At.FLIP:s=[i,r];break;case At.CLOCKWISE:s=It(i);break;case At.COUNTERCLOCKWISE:s=It(i,!0);break;default:s=e.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],r=ft(i);var c,h=t.offsets.popper,f=t.offsets.reference,u=Math.floor,d="left"===i&&u(h.right)>u(f.left)||"right"===i&&u(h.left)<u(f.right)||"top"===i&&u(h.bottom)>u(f.top)||"bottom"===i&&u(h.top)<u(f.bottom),p=u(h.left)<u(n.left),g=u(h.right)>u(n.right),m=u(h.top)<u(n.top),_=u(h.bottom)>u(n.bottom),v="left"===i&&p||"right"===i&&g||"top"===i&&m||"bottom"===i&&_,E=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(E&&"start"===o&&p||E&&"end"===o&&g||!E&&"start"===o&&m||!E&&"end"===o&&_);(d||v||y)&&(t.flipped=!0,(d||v)&&(i=s[l+1]),y&&(o="end"===(c=o)?"start":"start"===c?"end":c),t.placement=i+(o?"-"+o:""),t.offsets.popper=it({},t.offsets.popper,ut(t.instance.popper,t.offsets.reference,t.placement)),t=pt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),t.placement=ft(e),t.offsets.popper=rt(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Tt(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=dt(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,r=t.offsets.popper,o=dt(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==o?o:e.gpuAcceleration,a=ot(Q(t.instance.popper)),l={position:r.position},c={left:Math.floor(r.left),top:Math.floor(r.top),bottom:Math.floor(r.bottom),right:Math.floor(r.right)},h="bottom"===n?"top":"bottom",f="right"===i?"left":"right",u=mt("transform"),d=void 0,p=void 0;if(p="bottom"===h?-a.height+c.bottom:c.top,d="right"===f?-a.width+c.right:c.left,s&&u)l[u]="translate3d("+d+"px, "+p+"px, 0)",l[h]=0,l[f]=0,l.willChange="transform";else{var g="bottom"===h?-1:1,m="right"===f?-1:1;l[h]=p*g,l[f]=d*m,l.willChange=h+", "+f}var _={"x-placement":t.placement};return t.attributes=it({},_,t.attributes),t.styles=it({},l,t.styles),t.arrowStyles=it({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return bt(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&bt(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,r){var o=ct(0,e,t),s=lt(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),bt(e,{position:"absolute"}),n},gpuAcceleration:void 0}}},Ot=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};tt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=U(this.update.bind(this)),this.options=it({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(it({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=it({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return it({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&B(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return et(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=ct(this.state,this.popper,this.reference),t.placement=lt(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=ut(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=pt(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,gt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[mt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=vt(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Et.call(this)}}]),t}();Ot.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ot.placements=Ct,Ot.Defaults=St;var Nt=function(t){var e="dropdown",n="bs.dropdown",o="."+n,s=t.fn[e],a=new RegExp("38|40|27"),l={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK:"click"+o,CLICK_DATA_API:"click"+o+".data-api",KEYDOWN_DATA_API:"keydown"+o+".data-api",KEYUP_DATA_API:"keyup"+o+".data-api"},c="disabled",h="show",f="dropup",u="dropright",d="dropleft",p="dropdown-menu-right",g="dropdown-menu-left",m="position-static",_='[data-toggle="dropdown"]',v=".dropdown form",E=".dropdown-menu",y=".navbar-nav",b=".dropdown-menu .dropdown-item:not(.disabled)",T="top-start",C="top-end",w="bottom-start",I="bottom-end",A="right-start",D="left-start",S={offset:0,flip:!0,boundary:"scrollParent"},O={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},N=function(){function s(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var v=s.prototype;return v.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(c)){var e=s._getParentFromElement(this._element),n=t(this._menu).hasClass(h);if(s._clearMenus(),!n){var i={relatedTarget:this._element},r=t.Event(l.SHOW,i);if(t(e).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof Ot)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var o=this._element;t(e).hasClass(f)&&(t(this._menu).hasClass(g)||t(this._menu).hasClass(p))&&(o=e),"scrollParent"!==this._config.boundary&&t(e).addClass(m),this._popper=new Ot(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(e).closest(y).length&&t("body").children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(h),t(e).toggleClass(h).trigger(t.Event(l.SHOWN,i))}}}},v.dispose=function(){t.removeData(this._element,n),t(this._element).off(o),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},v.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},v._addEventListeners=function(){var e=this;t(this._element).on(l.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},v._getConfig=function(n){return n=r({},this.constructor.Default,t(this._element).data(),n),k.typeCheckConfig(e,n,this.constructor.DefaultType),n},v._getMenuElement=function(){if(!this._menu){var e=s._getParentFromElement(this._element);this._menu=t(e).find(E)[0]}return this._menu},v._getPlacement=function(){var e=t(this._element).parent(),n=w;return e.hasClass(f)?(n=T,t(this._menu).hasClass(p)&&(n=C)):e.hasClass(u)?n=A:e.hasClass(d)?n=D:t(this._menu).hasClass(p)&&(n=I),n},v._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},v._getPopperConfig=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},s._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n);if(i||(i=new s(this,"object"==typeof e?e:null),t(this).data(n,i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},s._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var i=t.makeArray(t(_)),r=0;r<i.length;r++){var o=s._getParentFromElement(i[r]),a=t(i[r]).data(n),c={relatedTarget:i[r]};if(a){var f=a._menu;if(t(o).hasClass(h)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&t.contains(o,e.target))){var u=t.Event(l.HIDE,c);t(o).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),i[r].setAttribute("aria-expanded","false"),t(f).removeClass(h),t(o).removeClass(h).trigger(t.Event(l.HIDDEN,c)))}}}},s._getParentFromElement=function(e){var n,i=k.getSelectorFromElement(e);return i&&(n=t(i)[0]),n||e.parentNode},s._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||t(e.target).closest(E).length)):a.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!t(this).hasClass(c))){var n=s._getParentFromElement(this),i=t(n).hasClass(h);if((i||27===e.which&&32===e.which)&&(!i||27!==e.which&&32!==e.which)){var r=t(n).find(b).get();if(0!==r.length){var o=r.indexOf(e.target);38===e.which&&o>0&&o--,40===e.which&&o<r.length-1&&o++,o<0&&(o=0),r[o].focus()}}else{if(27===e.which){var l=t(n).find(_)[0];t(l).trigger("focus")}t(this).trigger("click")}}},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return S}},{key:"DefaultType",get:function(){return O}}]),s}();return t(document).on(l.KEYDOWN_DATA_API,_,N._dataApiKeydownHandler).on(l.KEYDOWN_DATA_API,E,N._dataApiKeydownHandler).on(l.CLICK_DATA_API+" "+l.KEYUP_DATA_API,N._clearMenus).on(l.CLICK_DATA_API,_,function(e){e.preventDefault(),e.stopPropagation(),N._jQueryInterface.call(t(this),"toggle")}).on(l.CLICK_DATA_API,v,function(t){t.stopPropagation()}),t.fn[e]=N._jQueryInterface,t.fn[e].Constructor=N,t.fn[e].noConflict=function(){return t.fn[e]=s,N._jQueryInterface},N}(e),kt=function(t){var e="bs.modal",n="."+e,o=t.fn.modal,s={backdrop:!0,keyboard:!0,focus:!0,show:!0},a={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},l={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,FOCUSIN:"focusin"+n,RESIZE:"resize"+n,CLICK_DISMISS:"click.dismiss"+n,KEYDOWN_DISMISS:"keydown.dismiss"+n,MOUSEUP_DISMISS:"mouseup.dismiss"+n,MOUSEDOWN_DISMISS:"mousedown.dismiss"+n,CLICK_DATA_API:"click.bs.modal.data-api"},c="modal-scrollbar-measure",h="modal-backdrop",f="modal-open",u="fade",d="show",p={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},g=function(){function o(e,n){this._config=this._getConfig(n),this._element=e,this._dialog=t(e).find(p.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var g=o.prototype;return g.toggle=function(t){return this._isShown?this.hide():this.show(t)},g.show=function(e){var n=this;if(!this._isTransitioning&&!this._isShown){k.supportsTransitionEnd()&&t(this._element).hasClass(u)&&(this._isTransitioning=!0);var i=t.Event(l.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),t(document.body).addClass(f),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(l.CLICK_DISMISS,p.DATA_DISMISS,function(t){return n.hide(t)}),t(this._dialog).on(l.MOUSEDOWN_DISMISS,function(){t(n._element).one(l.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(e)}))}},g.hide=function(e){var n=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var i=t.Event(l.HIDE);if(t(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var r=k.supportsTransitionEnd()&&t(this._element).hasClass(u);r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(l.FOCUSIN),t(this._element).removeClass(d),t(this._element).off(l.CLICK_DISMISS),t(this._dialog).off(l.MOUSEDOWN_DISMISS),r?t(this._element).one(k.TRANSITION_END,function(t){return n._hideModal(t)}).emulateTransitionEnd(300):this._hideModal()}}},g.dispose=function(){t.removeData(this._element,e),t(window,document,this._element,this._backdrop).off(n),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},g.handleUpdate=function(){this._adjustDialog()},g._getConfig=function(t){return t=r({},s,t),k.typeCheckConfig("modal",t,a),t},g._showElement=function(e){var n=this,i=k.supportsTransitionEnd()&&t(this._element).hasClass(u);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&k.reflow(this._element),t(this._element).addClass(d),this._config.focus&&this._enforceFocus();var r=t.Event(l.SHOWN,{relatedTarget:e}),o=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(r)};i?t(this._dialog).one(k.TRANSITION_END,o).emulateTransitionEnd(300):o()},g._enforceFocus=function(){var e=this;t(document).off(l.FOCUSIN).on(l.FOCUSIN,function(n){document!==n.target&&e._element!==n.target&&0===t(e._element).has(n.target).length&&e._element.focus()})},g._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(l.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||t(this._element).off(l.KEYDOWN_DISMISS)},g._setResizeEvent=function(){var e=this;this._isShown?t(window).on(l.RESIZE,function(t){return e.handleUpdate(t)}):t(window).off(l.RESIZE)},g._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(f),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(l.HIDDEN)})},g._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},g._showBackdrop=function(e){var n=this,i=t(this._element).hasClass(u)?u:"";if(this._isShown&&this._config.backdrop){var r=k.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=h,i&&t(this._backdrop).addClass(i),t(this._backdrop).appendTo(document.body),t(this._element).on(l.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),r&&k.reflow(this._backdrop),t(this._backdrop).addClass(d),!e)return;if(!r)return void e();t(this._backdrop).one(k.TRANSITION_END,e).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(d);var o=function(){n._removeBackdrop(),e&&e()};k.supportsTransitionEnd()&&t(this._element).hasClass(u)?t(this._backdrop).one(k.TRANSITION_END,o).emulateTransitionEnd(150):o()}else e&&e()},g._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},g._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},g._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},g._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){t(p.FIXED_CONTENT).each(function(n,i){var r=t(i)[0].style.paddingRight,o=t(i).css("padding-right");t(i).data("padding-right",r).css("padding-right",parseFloat(o)+e._scrollbarWidth+"px")}),t(p.STICKY_CONTENT).each(function(n,i){var r=t(i)[0].style.marginRight,o=t(i).css("margin-right");t(i).data("margin-right",r).css("margin-right",parseFloat(o)-e._scrollbarWidth+"px")}),t(p.NAVBAR_TOGGLER).each(function(n,i){var r=t(i)[0].style.marginRight,o=t(i).css("margin-right");t(i).data("margin-right",r).css("margin-right",parseFloat(o)+e._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=t("body").css("padding-right");t("body").data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},g._resetScrollbar=function(){t(p.FIXED_CONTENT).each(function(e,n){var i=t(n).data("padding-right");"undefined"!=typeof i&&t(n).css("padding-right",i).removeData("padding-right")}),t(p.STICKY_CONTENT+", "+p.NAVBAR_TOGGLER).each(function(e,n){var i=t(n).data("margin-right");"undefined"!=typeof i&&t(n).css("margin-right",i).removeData("margin-right")});var e=t("body").data("padding-right");"undefined"!=typeof e&&t("body").css("padding-right",e).removeData("padding-right")},g._getScrollbarWidth=function(){var t=document.createElement("div");t.className=c,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(n,i){return this.each(function(){var s=t(this).data(e),a=r({},o.Default,t(this).data(),"object"==typeof n&&n);if(s||(s=new o(this,a),t(this).data(e,s)),"string"==typeof n){if("undefined"==typeof s[n])throw new TypeError('No method named "'+n+'"');s[n](i)}else a.show&&s.show(i)})},i(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return s}}]),o}();return t(document).on(l.CLICK_DATA_API,p.DATA_TOGGLE,function(n){var i,o=this,s=k.getSelectorFromElement(this);s&&(i=t(s)[0]);var a=t(i).data(e)?"toggle":r({},t(i).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();var c=t(i).one(l.SHOW,function(e){e.isDefaultPrevented()||c.one(l.HIDDEN,function(){t(o).is(":visible")&&o.focus()})});g._jQueryInterface.call(t(i),a,this)}),t.fn.modal=g._jQueryInterface,t.fn.modal.Constructor=g,t.fn.modal.noConflict=function(){return t.fn.modal=o,g._jQueryInterface},g}(e),Lt=function(t){var e="tooltip",n="bs.tooltip",o="."+n,s=t.fn[e],a=new RegExp("(^|\\s)bs-tooltip\\S+","g"),l={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},c={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},h={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},f="show",u="out",d={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},p="fade",g="show",m=".tooltip-inner",_=".arrow",v="hover",E="focus",y="click",b="manual",T=function(){function s(t,e){if("undefined"==typeof Ot)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var T=s.prototype;return T.enable=function(){this._isEnabled=!0},T.disable=function(){this._isEnabled=!1},T.toggleEnabled=function(){this._isEnabled=!this._isEnabled},T.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(g))return void this._leave(null,this);this._enter(null,this)}},T.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},T.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var i=t.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!i)return;var r=this.getTipElement(),o=k.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&t(r).addClass(p);var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,l=this._getAttachment(a);this.addAttachmentClass(l);var c=!1===this.config.container?document.body:t(this.config.container);t(r).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(c),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Ot(this.element,r,{placement:l,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:_},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),t(r).addClass(g),"ontouchstart"in document.documentElement&&t("body").children().on("mouseover",null,t.noop);var h=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===u&&e._leave(null,e)};k.supportsTransitionEnd()&&t(this.tip).hasClass(p)?t(this.tip).one(k.TRANSITION_END,h).emulateTransitionEnd(s._TRANSITION_DURATION):h()}},T.hide=function(e){var n=this,i=this.getTipElement(),r=t.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==f&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};t(this.element).trigger(r),r.isDefaultPrevented()||(t(i).removeClass(g),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger[y]=!1,this._activeTrigger[E]=!1,this._activeTrigger[v]=!1,k.supportsTransitionEnd()&&t(this.tip).hasClass(p)?t(i).one(k.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")},T.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},T.isWithContent=function(){return Boolean(this.getTitle())},T.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},T.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},T.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(m),this.getTitle()),e.removeClass(p+" "+g)},T.setElementContent=function(e,n){var i=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?i?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[i?"html":"text"](n)},T.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},T._getAttachment=function(t){return c[t.toUpperCase()]},T._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==b){var i=n===v?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=n===v?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(r,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},T._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},T._enter=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?E:v]=!0),t(n.getTipElement()).hasClass(g)||n._hoverState===f?n._hoverState=f:(clearTimeout(n._timeout),n._hoverState=f,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===f&&n.show()},n.config.delay.show):n.show())},T._leave=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?E:v]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=u,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===u&&n.hide()},n.config.delay.hide):n.hide())},T._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},T._getConfig=function(n){return"number"==typeof(n=r({},this.constructor.Default,t(this.element).data(),n)).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),k.typeCheckConfig(e,n,this.constructor.DefaultType),n},T._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},T._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(a);null!==n&&n.length>0&&e.removeClass(n.join(""))},T._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},T._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(p),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},s._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),r="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new s(this,r),t(this).data(n,i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return h}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return l}}]),s}();return t.fn[e]=T._jQueryInterface,t.fn[e].Constructor=T,t.fn[e].noConflict=function(){return t.fn[e]=s,T._jQueryInterface},T}(e),Pt=function(t){var e="popover",n="bs.popover",o="."+n,s=t.fn[e],a=new RegExp("(^|\\s)bs-popover\\S+","g"),l=r({},Lt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),c=r({},Lt.DefaultType,{content:"(string|element|function)"}),h="fade",f="show",u=".popover-header",d=".popover-body",p={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},g=function(r){var s,g;function m(){return r.apply(this,arguments)||this}g=r,(s=m).prototype=Object.create(g.prototype),s.prototype.constructor=s,s.__proto__=g;var _=m.prototype;return _.isWithContent=function(){return this.getTitle()||this._getContent()},_.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},_.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},_.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(u),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(d),n),e.removeClass(h+" "+f)},_._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},_._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(a);null!==n&&n.length>0&&e.removeClass(n.join(""))},m._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),r="object"==typeof e?e:null;if((i||!/destroy|hide/.test(e))&&(i||(i=new m(this,r),t(this).data(n,i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(m,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return c}}]),m}(Lt);return t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=s,g._jQueryInterface},g}(e),xt=function(t){var e="scrollspy",n="bs.scrollspy",o="."+n,s=t.fn[e],a={offset:10,method:"auto",target:""},l={offset:"number",method:"string",target:"(string|element)"},c={ACTIVATE:"activate"+o,SCROLL:"scroll"+o,LOAD_DATA_API:"load"+o+".data-api"},h="dropdown-item",f="active",u={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},d="offset",p="position",g=function(){function s(e,n){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+u.NAV_LINKS+","+this._config.target+" "+u.LIST_ITEMS+","+this._config.target+" "+u.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(c.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var g=s.prototype;return g.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?d:p,i="auto"===this._config.method?n:this._config.method,r=i===p?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var n,o=k.getSelectorFromElement(e);if(o&&(n=t(o)[0]),n){var s=n.getBoundingClientRect();if(s.width||s.height)return[t(n)[i]().top+r,o]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},g.dispose=function(){t.removeData(this._element,n),t(this._scrollElement).off(o),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},g._getConfig=function(n){if("string"!=typeof(n=r({},a,n)).target){var i=t(n.target).attr("id");i||(i=k.getUID(e),t(n.target).attr("id",i)),n.target="#"+i}return k.typeCheckConfig(e,n,l),n},g._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},g._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},g._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},g._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&("undefined"==typeof this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}}},g._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",");n=n.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var i=t(n.join(","));i.hasClass(h)?(i.closest(u.DROPDOWN).find(u.DROPDOWN_TOGGLE).addClass(f),i.addClass(f)):(i.addClass(f),i.parents(u.NAV_LIST_GROUP).prev(u.NAV_LINKS+", "+u.LIST_ITEMS).addClass(f),i.parents(u.NAV_LIST_GROUP).prev(u.NAV_ITEMS).children(u.NAV_LINKS).addClass(f)),t(this._scrollElement).trigger(c.ACTIVATE,{relatedTarget:e})},g._clear=function(){t(this._selector).filter(u.ACTIVE).removeClass(f)},s._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n);if(i||(i=new s(this,"object"==typeof e&&e),t(this).data(n,i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),s}();return t(window).on(c.LOAD_DATA_API,function(){for(var e=t.makeArray(t(u.DATA_SPY)),n=e.length;n--;){var i=t(e[n]);g._jQueryInterface.call(i,i.data())}}),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=s,g._jQueryInterface},g}(e),Rt=function(t){var e=".bs.tab",n=t.fn.tab,r={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK_DATA_API:"click.bs.tab.data-api"},o="dropdown-menu",s="active",a="disabled",l="fade",c="show",h=".dropdown",f=".nav, .list-group",u=".active",d="> li > .active",p='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',g=".dropdown-toggle",m="> .dropdown-menu .active",_=function(){function e(t){this._element=t}var n=e.prototype;return n.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(s)||t(this._element).hasClass(a))){var n,i,o=t(this._element).closest(f)[0],l=k.getSelectorFromElement(this._element);if(o){var c="UL"===o.nodeName?d:u;i=(i=t.makeArray(t(o).find(c)))[i.length-1]}var h=t.Event(r.HIDE,{relatedTarget:this._element}),p=t.Event(r.SHOW,{relatedTarget:i});if(i&&t(i).trigger(h),t(this._element).trigger(p),!p.isDefaultPrevented()&&!h.isDefaultPrevented()){l&&(n=t(l)[0]),this._activate(this._element,o);var g=function(){var n=t.Event(r.HIDDEN,{relatedTarget:e._element}),o=t.Event(r.SHOWN,{relatedTarget:i});t(i).trigger(n),t(e._element).trigger(o)};n?this._activate(n,n.parentNode,g):g()}}},n.dispose=function(){t.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(e,n,i){var r=this,o=("UL"===n.nodeName?t(n).find(d):t(n).children(u))[0],s=i&&k.supportsTransitionEnd()&&o&&t(o).hasClass(l),a=function(){return r._transitionComplete(e,o,i)};o&&s?t(o).one(k.TRANSITION_END,a).emulateTransitionEnd(150):a()},n._transitionComplete=function(e,n,i){if(n){t(n).removeClass(c+" "+s);var r=t(n.parentNode).find(m)[0];r&&t(r).removeClass(s),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(s),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),k.reflow(e),t(e).addClass(c),e.parentNode&&t(e.parentNode).hasClass(o)){var a=t(e).closest(h)[0];a&&t(a).find(g).addClass(s),e.setAttribute("aria-expanded",!0)}i&&i()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),r=i.data("bs.tab");if(r||(r=new e(this),i.data("bs.tab",r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},i(e,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),e}();return t(document).on(r.CLICK_DATA_API,p,function(e){e.preventDefault(),_._jQueryInterface.call(t(this),"show")}),t.fn.tab=_._jQueryInterface,t.fn.tab.Constructor=_,t.fn.tab.noConflict=function(){return t.fn.tab=n,_._jQueryInterface},_}(e);!function(t){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=k,t.Alert=L,t.Button=P,t.Carousel=x,t.Collapse=R,t.Dropdown=Nt,t.Modal=kt,t.Popover=Pt,t.Scrollspy=xt,t.Tab=Rt,t.Tooltip=Lt,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=bootstrap.bundle.min.js.map /*! pace 1.0.0 */ (function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X=[].slice,Y={}.hasOwnProperty,Z=function(a,b){function c(){this.constructor=a}for(var d in b)Y.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},$=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};for(u={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},C=function(){var a;return null!=(a="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?a:+new Date},E=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,t=window.cancelAnimationFrame||window.mozCancelAnimationFrame,null==E&&(E=function(a){return setTimeout(a,50)},t=function(a){return clearTimeout(a)}),G=function(a){var b,c;return b=C(),(c=function(){var d;return d=C()-b,d>=33?(b=C(),a(d,function(){return E(c)})):setTimeout(c,33-d)})()},F=function(){var a,b,c;return c=arguments[0],b=arguments[1],a=3<=arguments.length?X.call(arguments,2):[],"function"==typeof c[b]?c[b].apply(c,a):c[b]},v=function(){var a,b,c,d,e,f,g;for(b=arguments[0],d=2<=arguments.length?X.call(arguments,1):[],f=0,g=d.length;g>f;f++)if(c=d[f])for(a in c)Y.call(c,a)&&(e=c[a],null!=b[a]&&"object"==typeof b[a]&&null!=e&&"object"==typeof e?v(b[a],e):b[a]=e);return b},q=function(a){var b,c,d,e,f;for(c=b=0,e=0,f=a.length;f>e;e++)d=a[e],c+=Math.abs(d),b++;return c/b},x=function(a,b){var c,d,e;if(null==a&&(a="options"),null==b&&(b=!0),e=document.querySelector("[data-pace-"+a+"]")){if(c=e.getAttribute("data-pace-"+a),!b)return c;try{return JSON.parse(c)}catch(f){return d=f,"undefined"!=typeof console&&null!==console?console.error("Error parsing inline pace options",d):void 0}}},g=function(){function a(){}return a.prototype.on=function(a,b,c,d){var e;return null==d&&(d=!1),null==this.bindings&&(this.bindings={}),null==(e=this.bindings)[a]&&(e[a]=[]),this.bindings[a].push({handler:b,ctx:c,once:d})},a.prototype.once=function(a,b,c){return this.on(a,b,c,!0)},a.prototype.off=function(a,b){var c,d,e;if(null!=(null!=(d=this.bindings)?d[a]:void 0)){if(null==b)return delete this.bindings[a];for(c=0,e=[];c<this.bindings[a].length;)e.push(this.bindings[a][c].handler===b?this.bindings[a].splice(c,1):c++);return e}},a.prototype.trigger=function(){var a,b,c,d,e,f,g,h,i;if(c=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],null!=(g=this.bindings)?g[c]:void 0){for(e=0,i=[];e<this.bindings[c].length;)h=this.bindings[c][e],d=h.handler,b=h.ctx,f=h.once,d.apply(null!=b?b:this,a),i.push(f?this.bindings[c].splice(e,1):e++);return i}},a}(),j=window.Pace||{},window.Pace=j,v(j,g.prototype),D=j.options=v({},u,window.paceOptions,x()),U=["ajax","document","eventLag","elements"],Q=0,S=U.length;S>Q;Q++)K=U[Q],D[K]===!0&&(D[K]=u[K]);i=function(a){function b(){return V=b.__super__.constructor.apply(this,arguments)}return Z(b,a),b}(Error),b=function(){function a(){this.progress=0}return a.prototype.getElement=function(){var a;if(null==this.el){if(a=document.querySelector(D.target),!a)throw new i;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/pace-done/g,""),document.body.className+=" pace-running",this.el.innerHTML='<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>',null!=a.firstChild?a.insertBefore(this.el,a.firstChild):a.appendChild(this.el)}return this.el},a.prototype.finish=function(){var a;return a=this.getElement(),a.className=a.className.replace("pace-active",""),a.className+=" pace-inactive",document.body.className=document.body.className.replace("pace-running",""),document.body.className+=" pace-done"},a.prototype.update=function(a){return this.progress=a,this.render()},a.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(a){i=a}return this.el=void 0},a.prototype.render=function(){var a,b,c,d,e,f,g;if(null==document.querySelector(D.target))return!1;for(a=this.getElement(),d="translate3d("+this.progress+"%, 0, 0)",g=["webkitTransform","msTransform","transform"],e=0,f=g.length;f>e;e++)b=g[e],a.children[0].style[b]=d;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(a.children[0].setAttribute("data-progress-text",""+(0|this.progress)+"%"),this.progress>=100?c="99":(c=this.progress<10?"0":"",c+=0|this.progress),a.children[0].setAttribute("data-progress",""+c)),this.lastRenderedProgress=this.progress},a.prototype.done=function(){return this.progress>=100},a}(),h=function(){function a(){this.bindings={}}return a.prototype.trigger=function(a,b){var c,d,e,f,g;if(null!=this.bindings[a]){for(f=this.bindings[a],g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(c.call(this,b));return g}},a.prototype.on=function(a,b){var c;return null==(c=this.bindings)[a]&&(c[a]=[]),this.bindings[a].push(b)},a}(),P=window.XMLHttpRequest,O=window.XDomainRequest,N=window.WebSocket,w=function(a,b){var c,d,e,f;f=[];for(d in b.prototype)try{e=b.prototype[d],f.push(null==a[d]&&"function"!=typeof e?a[d]=e:void 0)}catch(g){c=g}return f},A=[],j.ignore=function(){var a,b,c;return b=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],A.unshift("ignore"),c=b.apply(null,a),A.shift(),c},j.track=function(){var a,b,c;return b=arguments[0],a=2<=arguments.length?X.call(arguments,1):[],A.unshift("track"),c=b.apply(null,a),A.shift(),c},J=function(a){var b;if(null==a&&(a="GET"),"track"===A[0])return"force";if(!A.length&&D.ajax){if("socket"===a&&D.ajax.trackWebSockets)return!0;if(b=a.toUpperCase(),$.call(D.ajax.trackMethods,b)>=0)return!0}return!1},k=function(a){function b(){var a,c=this;b.__super__.constructor.apply(this,arguments),a=function(a){var b;return b=a.open,a.open=function(d,e){return J(d)&&c.trigger("request",{type:d,url:e,request:a}),b.apply(a,arguments)}},window.XMLHttpRequest=function(b){var c;return c=new P(b),a(c),c};try{w(window.XMLHttpRequest,P)}catch(d){}if(null!=O){window.XDomainRequest=function(){var b;return b=new O,a(b),b};try{w(window.XDomainRequest,O)}catch(d){}}if(null!=N&&D.ajax.trackWebSockets){window.WebSocket=function(a,b){var d;return d=null!=b?new N(a,b):new N(a),J("socket")&&c.trigger("request",{type:"socket",url:a,protocols:b,request:d}),d};try{w(window.WebSocket,N)}catch(d){}}}return Z(b,a),b}(h),R=null,y=function(){return null==R&&(R=new k),R},I=function(a){var b,c,d,e;for(e=D.ajax.ignoreURLs,c=0,d=e.length;d>c;c++)if(b=e[c],"string"==typeof b){if(-1!==a.indexOf(b))return!0}else if(b.test(a))return!0;return!1},y().on("request",function(b){var c,d,e,f,g;return f=b.type,e=b.request,g=b.url,I(g)?void 0:j.running||D.restartOnRequestAfter===!1&&"force"!==J(f)?void 0:(d=arguments,c=D.restartOnRequestAfter||0,"boolean"==typeof c&&(c=0),setTimeout(function(){var b,c,g,h,i,k;if(b="socket"===f?e.readyState<2:0<(h=e.readyState)&&4>h){for(j.restart(),i=j.sources,k=[],c=0,g=i.length;g>c;c++){if(K=i[c],K instanceof a){K.watch.apply(K,d);break}k.push(void 0)}return k}},c))}),a=function(){function a(){var a=this;this.elements=[],y().on("request",function(){return a.watch.apply(a,arguments)})}return a.prototype.watch=function(a){var b,c,d,e;return d=a.type,b=a.request,e=a.url,I(e)?void 0:(c="socket"===d?new n(b):new o(b),this.elements.push(c))},a}(),o=function(){function a(a){var b,c,d,e,f,g,h=this;if(this.progress=0,null!=window.ProgressEvent)for(c=null,a.addEventListener("progress",function(a){return h.progress=a.lengthComputable?100*a.loaded/a.total:h.progress+(100-h.progress)/2},!1),g=["load","abort","timeout","error"],d=0,e=g.length;e>d;d++)b=g[d],a.addEventListener(b,function(){return h.progress=100},!1);else f=a.onreadystatechange,a.onreadystatechange=function(){var b;return 0===(b=a.readyState)||4===b?h.progress=100:3===a.readyState&&(h.progress=50),"function"==typeof f?f.apply(null,arguments):void 0}}return a}(),n=function(){function a(a){var b,c,d,e,f=this;for(this.progress=0,e=["error","open"],c=0,d=e.length;d>c;c++)b=e[c],a.addEventListener(b,function(){return f.progress=100},!1)}return a}(),d=function(){function a(a){var b,c,d,f;for(null==a&&(a={}),this.elements=[],null==a.selectors&&(a.selectors=[]),f=a.selectors,c=0,d=f.length;d>c;c++)b=f[c],this.elements.push(new e(b))}return a}(),e=function(){function a(a){this.selector=a,this.progress=0,this.check()}return a.prototype.check=function(){var a=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return a.check()},D.elements.checkInterval)},a.prototype.done=function(){return this.progress=100},a}(),c=function(){function a(){var a,b,c=this;this.progress=null!=(b=this.states[document.readyState])?b:100,a=document.onreadystatechange,document.onreadystatechange=function(){return null!=c.states[document.readyState]&&(c.progress=c.states[document.readyState]),"function"==typeof a?a.apply(null,arguments):void 0}}return a.prototype.states={loading:0,interactive:50,complete:100},a}(),f=function(){function a(){var a,b,c,d,e,f=this;this.progress=0,a=0,e=[],d=0,c=C(),b=setInterval(function(){var g;return g=C()-c-50,c=C(),e.push(g),e.length>D.eventLag.sampleCount&&e.shift(),a=q(e),++d>=D.eventLag.minSamples&&a<D.eventLag.lagThreshold?(f.progress=100,clearInterval(b)):f.progress=100*(3/(a+3))},50)}return a}(),m=function(){function a(a){this.source=a,this.last=this.sinceLastUpdate=0,this.rate=D.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=F(this.source,"progress"))}return a.prototype.tick=function(a,b){var c;return null==b&&(b=F(this.source,"progress")),b>=100&&(this.done=!0),b===this.last?this.sinceLastUpdate+=a:(this.sinceLastUpdate&&(this.rate=(b-this.last)/this.sinceLastUpdate),this.catchup=(b-this.progress)/D.catchupTime,this.sinceLastUpdate=0,this.last=b),b>this.progress&&(this.progress+=this.catchup*a),c=1-Math.pow(this.progress/100,D.easeFactor),this.progress+=c*this.rate*a,this.progress=Math.min(this.lastProgress+D.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},a}(),L=null,H=null,r=null,M=null,p=null,s=null,j.running=!1,z=function(){return D.restartOnPushState?j.restart():void 0},null!=window.history.pushState&&(T=window.history.pushState,window.history.pushState=function(){return z(),T.apply(window.history,arguments)}),null!=window.history.replaceState&&(W=window.history.replaceState,window.history.replaceState=function(){return z(),W.apply(window.history,arguments)}),l={ajax:a,elements:d,document:c,eventLag:f},(B=function(){var a,c,d,e,f,g,h,i;for(j.sources=L=[],g=["ajax","elements","document","eventLag"],c=0,e=g.length;e>c;c++)a=g[c],D[a]!==!1&&L.push(new l[a](D[a]));for(i=null!=(h=D.extraSources)?h:[],d=0,f=i.length;f>d;d++)K=i[d],L.push(new K(D));return j.bar=r=new b,H=[],M=new m})(),j.stop=function(){return j.trigger("stop"),j.running=!1,r.destroy(),s=!0,null!=p&&("function"==typeof t&&t(p),p=null),B()},j.restart=function(){return j.trigger("restart"),j.stop(),j.start()},j.go=function(){var a;return j.running=!0,r.render(),a=C(),s=!1,p=G(function(b,c){var d,e,f,g,h,i,k,l,n,o,p,q,t,u,v,w;for(l=100-r.progress,e=p=0,f=!0,i=q=0,u=L.length;u>q;i=++q)for(K=L[i],o=null!=H[i]?H[i]:H[i]=[],h=null!=(w=K.elements)?w:[K],k=t=0,v=h.length;v>t;k=++t)g=h[k],n=null!=o[k]?o[k]:o[k]=new m(g),f&=n.done,n.done||(e++,p+=n.tick(b));return d=p/e,r.update(M.tick(b,d)),r.done()||f||s?(r.update(100),j.trigger("done"),setTimeout(function(){return r.finish(),j.running=!1,j.trigger("hide")},Math.max(D.ghostTime,Math.max(D.minTime-(C()-a),0)))):c()})},j.start=function(a){v(D,a),j.running=!0;try{r.render()}catch(b){i=b}return document.querySelector(".pace")?(j.trigger("start"),j.go()):setTimeout(j.start,50)},"function"==typeof define&&define.amd?define(function(){return j}):"object"==typeof exports?module.exports=j:D.startOnPageLoad&&j.start()}).call(this); (function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require("jquery"))}else{factory(jQuery)}})(function($){$.easing.jswing=$.easing.swing;var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*PI/3,c5=2*PI/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=1.5/d1)*x+.75}else if(x<2.5/d1){return n1*(x-=2.25/d1)*x+.9375}else{return n1*(x-=2.625/d1)*x+.984375}}$.extend($.easing,{def:"easeOutQuad",swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<.5?pow(2*x,2)*((c2+1)*2*x-c2)/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})}); /* * metismenu - v2.7.1 * A jQuery menu plugin * https://github.com/onokumus/metismenu#readme * * Made by Osman Nuri Okumus <onokumus@gmail.com> (https://github.com/onokumus) * Under MIT License */ !function(n,i){if("function"==typeof define&&define.amd)define(["jquery"],i);else if("undefined"!=typeof exports)i(require("jquery"));else{var t={exports:{}};i(n.jquery),n.metisMenu=t.exports}}(this,function(n){"use strict";function i(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}!function(n){n&&n.__esModule}(n);var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e=function(n){function i(){return{bindType:s.end,delegateType:s.end,handle:function(i){if(n(i.target).is(this))return i.handleObj.handler.apply(this,arguments)}}}function t(){if(window.QUnit)return!1;var n=document.createElement("mm");for(var i in o)if(void 0!==n.style[i])return{end:o[i]};return!1}function e(i){var t=this,e=!1;return n(this).one(a.TRANSITION_END,function(){e=!0}),setTimeout(function(){e||a.triggerTransitionEnd(t)},i),this}var s=!1,o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},a={TRANSITION_END:"mmTransitionEnd",triggerTransitionEnd:function(i){n(i).trigger(s.end)},supportsTransitionEnd:function(){return Boolean(s)}};return s=t(),n.fn.emulateTransitionEnd=e,a.supportsTransitionEnd()&&(n.event.special[a.TRANSITION_END]=i()),a}(jQuery);!function(n){var s="metisMenu",o=n.fn[s],a={toggle:!0,preventDefault:!0,activeClass:"active",collapseClass:"collapse",collapseInClass:"in",collapsingClass:"collapsing",triggerElement:"a",parentTrigger:"li",subMenu:"ul"},r={SHOW:"show.metisMenu",SHOWN:"shown.metisMenu",HIDE:"hide.metisMenu",HIDDEN:"hidden.metisMenu",CLICK_DATA_API:"click.metisMenu.data-api"},l=function(){function s(n,t){i(this,s),this._element=n,this._config=this._getConfig(t),this._transitioning=null,this.init()}return s.prototype.init=function(){var i=this;n(this._element).find(this._config.parentTrigger+"."+this._config.activeClass).has(this._config.subMenu).children(this._config.subMenu).attr("aria-expanded",!0).addClass(this._config.collapseClass+" "+this._config.collapseInClass),n(this._element).find(this._config.parentTrigger).not("."+this._config.activeClass).has(this._config.subMenu).children(this._config.subMenu).attr("aria-expanded",!1).addClass(this._config.collapseClass),n(this._element).find(this._config.parentTrigger).has(this._config.subMenu).children(this._config.triggerElement).on(r.CLICK_DATA_API,function(t){var e=n(this),s=e.parent(i._config.parentTrigger),o=s.siblings(i._config.parentTrigger).children(i._config.triggerElement),a=s.children(i._config.subMenu);i._config.preventDefault&&t.preventDefault(),"true"!==e.attr("aria-disabled")&&(s.hasClass(i._config.activeClass)?(e.attr("aria-expanded",!1),i._hide(a)):(i._show(a),e.attr("aria-expanded",!0),i._config.toggle&&o.attr("aria-expanded",!1)),i._config.onTransitionStart&&i._config.onTransitionStart(t))})},s.prototype._show=function(i){if(!this._transitioning&&!n(i).hasClass(this._config.collapsingClass)){var t=this,s=n(i),o=n.Event(r.SHOW);if(s.trigger(o),!o.isDefaultPrevented()){s.parent(this._config.parentTrigger).addClass(this._config.activeClass),this._config.toggle&&this._hide(s.parent(this._config.parentTrigger).siblings().children(this._config.subMenu+"."+this._config.collapseInClass).attr("aria-expanded",!1)),s.removeClass(this._config.collapseClass).addClass(this._config.collapsingClass).height(0),this.setTransitioning(!0);var a=function(){t._config&&t._element&&(s.removeClass(t._config.collapsingClass).addClass(t._config.collapseClass+" "+t._config.collapseInClass).height("").attr("aria-expanded",!0),t.setTransitioning(!1),s.trigger(r.SHOWN))};e.supportsTransitionEnd()?s.height(s[0].scrollHeight).one(e.TRANSITION_END,a).emulateTransitionEnd(350):a()}}},s.prototype._hide=function(i){if(!this._transitioning&&n(i).hasClass(this._config.collapseInClass)){var t=this,s=n(i),o=n.Event(r.HIDE);if(s.trigger(o),!o.isDefaultPrevented()){s.parent(this._config.parentTrigger).removeClass(this._config.activeClass),s.height(s.height())[0].offsetHeight,s.addClass(this._config.collapsingClass).removeClass(this._config.collapseClass).removeClass(this._config.collapseInClass),this.setTransitioning(!0);var a=function(){t._config&&t._element&&(t._transitioning&&t._config.onTransitionEnd&&t._config.onTransitionEnd(),t.setTransitioning(!1),s.trigger(r.HIDDEN),s.removeClass(t._config.collapsingClass).addClass(t._config.collapseClass).attr("aria-expanded",!1))};e.supportsTransitionEnd()?0==s.height()||"none"==s.css("display")?a():s.height(0).one(e.TRANSITION_END,a).emulateTransitionEnd(350):a()}}},s.prototype.setTransitioning=function(n){this._transitioning=n},s.prototype.dispose=function(){n.removeData(this._element,"metisMenu"),n(this._element).find(this._config.parentTrigger).has(this._config.subMenu).children(this._config.triggerElement).off("click"),this._transitioning=null,this._config=null,this._element=null},s.prototype._getConfig=function(i){return i=n.extend({},a,i)},s._jQueryInterface=function(i){return this.each(function(){var e=n(this),o=e.data("metisMenu"),r=n.extend({},a,e.data(),"object"===(void 0===i?"undefined":t(i))&&i);if(!o&&/dispose/.test(i)&&this.dispose(),o||(o=new s(this,r),e.data("metisMenu",o)),"string"==typeof i){if(void 0===o[i])throw new Error('No method named "'+i+'"');o[i]()}})},s}();n.fn[s]=l._jQueryInterface,n.fn[s].Constructor=l,n.fn[s].noConflict=function(){return n.fn[s]=o,l._jQueryInterface}}(jQuery)}); //# sourceMappingURL=metisMenu.js.map /*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version: 1.3.8 * */ (function(e){e.fn.extend({slimScroll:function(f){var a=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},f);this.each(function(){function v(d){if(r){d=d||window.event; var c=0;d.wheelDelta&&(c=-d.wheelDelta/120);d.detail&&(c=d.detail/3);e(d.target||d.srcTarget||d.srcElement).closest("."+a.wrapperClass).is(b.parent())&&n(c,!0);d.preventDefault&&!k&&d.preventDefault();k||(d.returnValue=!1)}}function n(d,g,e){k=!1;var f=b.outerHeight()-c.outerHeight();g&&(g=parseInt(c.css("top"))+d*parseInt(a.wheelStep)/100*c.outerHeight(),g=Math.min(Math.max(g,0),f),g=0<d?Math.ceil(g):Math.floor(g),c.css({top:g+"px"}));l=parseInt(c.css("top"))/(b.outerHeight()-c.outerHeight());g= l*(b[0].scrollHeight-b.outerHeight());e&&(g=d,d=g/b[0].scrollHeight*b.outerHeight(),d=Math.min(Math.max(d,0),f),c.css({top:d+"px"}));b.scrollTop(g);b.trigger("slimscrolling",~~g);w();p()}function x(){u=Math.max(b.outerHeight()/b[0].scrollHeight*b.outerHeight(),30);c.css({height:u+"px"});var a=u==b.outerHeight()?"none":"block";c.css({display:a})}function w(){x();clearTimeout(B);l==~~l?(k=a.allowPageScroll,C!=l&&b.trigger("slimscroll",0==~~l?"top":"bottom")):k=!1;C=l;u>=b.outerHeight()?k=!0:(c.stop(!0, !0).fadeIn("fast"),a.railVisible&&m.stop(!0,!0).fadeIn("fast"))}function p(){a.alwaysVisible||(B=setTimeout(function(){a.disableFadeOut&&r||y||z||(c.fadeOut("slow"),m.fadeOut("slow"))},1E3))}var r,y,z,B,A,u,l,C,k=!1,b=e(this);if(b.parent().hasClass(a.wrapperClass)){var q=b.scrollTop(),c=b.siblings("."+a.barClass),m=b.siblings("."+a.railClass);x();if(e.isPlainObject(f)){if("height"in f&&"auto"==f.height){b.parent().css("height","auto");b.css("height","auto");var h=b.parent().parent().height();b.parent().css("height", h);b.css("height",h)}else"height"in f&&(h=f.height,b.parent().css("height",h),b.css("height",h));if("scrollTo"in f)q=parseInt(a.scrollTo);else if("scrollBy"in f)q+=parseInt(a.scrollBy);else if("destroy"in f){c.remove();m.remove();b.unwrap();return}n(q,!1,!0)}}else if(!(e.isPlainObject(f)&&"destroy"in f)){a.height="auto"==a.height?b.parent().height():a.height;q=e("<div></div>").addClass(a.wrapperClass).css({position:"relative",overflow:"hidden",width:a.width,height:a.height});b.css({overflow:"hidden", width:a.width,height:a.height});var m=e("<div></div>").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),c=e("<div></div>").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible?"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius, WebkitBorderRadius:a.borderRadius,zIndex:99}),h="right"==a.position?{right:a.distance}:{left:a.distance};m.css(h);c.css(h);b.wrap(q);b.parent().append(c);b.parent().append(m);a.railDraggable&&c.bind("mousedown",function(a){var b=e(document);z=!0;t=parseFloat(c.css("top"));pageY=a.pageY;b.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY;c.css("top",currTop);n(0,c.position().top,!1)});b.bind("mouseup.slimscroll",function(a){z=!1;p();b.unbind(".slimscroll")});return!1}).bind("selectstart.slimscroll", function(a){a.stopPropagation();a.preventDefault();return!1});m.hover(function(){w()},function(){p()});c.hover(function(){y=!0},function(){y=!1});b.hover(function(){r=!0;w();p()},function(){r=!1;p()});b.bind("touchstart",function(a,b){a.originalEvent.touches.length&&(A=a.originalEvent.touches[0].pageY)});b.bind("touchmove",function(b){k||b.originalEvent.preventDefault();b.originalEvent.touches.length&&(n((A-b.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),A=b.originalEvent.touches[0].pageY)}); x();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),n(0,!0)):"top"!==a.start&&(n(e(a.start).position().top,null,!0),a.alwaysVisible||c.hide());window.addEventListener?(this.addEventListener("DOMMouseScroll",v,!1),this.addEventListener("mousewheel",v,!1)):document.attachEvent("onmousewheel",v)}});return this}});e.fn.extend({slimscroll:e.fn.slimScroll})})(jQuery);
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'removeformat', 'lt', { toolbar: 'Panaikinti formatą' } );
//Create a function that accepts an array as an argument. Remove all duplicate items //from the array and return a new array with the filtered array. function intermediate1(input) { let array = input.filter(function (data, index) { return input.indexOf(data) == index; }) return array; } //Create a function that takes any nonnegative number as an argument and return it //with its digits in descending order. function intermediate2(input) { input += ""; return parseInt(input.split("").sort(function (a, b) { return b - a }).join("")); } //Create a function that accepts a string and determines if its a valid email address. //Don’t use regex. function intermediate3(input) { //if no @ symbol if(input.indexOf("@") === -1){ return false; }else{ } } console.log("OUTPUT FOR ITERMEDIATE 1:"); console.log(intermediate1(["john", "taylor", "john"])); console.log(intermediate1([1, 0, 1, 0])); console.log(intermediate1(["The", "big", "cat"])); console.log("=========="); console.log(intermediate2(123)); console.log(intermediate2(1254859723)); console.log(intermediate2(73065));