hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
a81d1139a481ac7127675f8a482fd130c4d8b7e4
317
js
JavaScript
src/api/request/request.js
wishdev2019/web
5be0b7c150bc5486b1b6795bbf1861e1d2091dd3
[ "MIT" ]
null
null
null
src/api/request/request.js
wishdev2019/web
5be0b7c150bc5486b1b6795bbf1861e1d2091dd3
[ "MIT" ]
1
2022-02-10T17:57:37.000Z
2022-02-10T17:57:37.000Z
src/api/request/request.js
wishdev2019/web
5be0b7c150bc5486b1b6795bbf1861e1d2091dd3
[ "MIT" ]
null
null
null
import { CoreRequest } from './fetch' //登陆 export function login(options) { options['url']='/api/user/login' options['method']='post' CoreRequest(options) } //用户信息查询 export function manageadd_query(options) { options['url']='/api/public/manageadd_query' options['method']='get' CoreRequest(options) }
17.611111
46
0.697161
a81d50a42b2aac3893bde9060948e043b413cc07
3,023
js
JavaScript
client/routes.js
DollarDuck/Ducky
70c86bd4dab0b2e16d2be45cd6c2543ee29649a0
[ "MIT" ]
null
null
null
client/routes.js
DollarDuck/Ducky
70c86bd4dab0b2e16d2be45cd6c2543ee29649a0
[ "MIT" ]
107
2018-09-26T21:18:23.000Z
2018-10-09T21:52:32.000Z
client/routes.js
DollarDuck/Ducky
70c86bd4dab0b2e16d2be45cd6c2543ee29649a0
[ "MIT" ]
null
null
null
import React, {Component} from 'react' import {connect} from 'react-redux' import {withRouter, Route, Switch} from 'react-router-dom' import PropTypes from 'prop-types' import { SplashPage, PurchasePlanner, Budget, EditBudget, Login, Signup, Onboarding, OnboardingBudget, LinkBank, Bills, NewBillForm, OnboardingLink, Balances, EditUser, UserProfile, SpendingMenu, GradSchoolInput } from './components' import {me} from './store' import {Sidebar} from 'semantic-ui-react' /** * COMPONENT */ class Routes extends Component { componentDidMount() { this.props.loadInitialData() } render() { const {isLoggedIn} = this.props return ( <Sidebar.Pusher dimmed={this.props.visible}> <Switch> {/* Routes placed here are available to all visitors */} <Route path="/login" component={Login} /> <Route exact path="/onboarding" component={Onboarding} /> <Route path="/onboarding/step2" component={OnboardingBudget} /> <Route path="/onboarding/step3" component={OnboardingLink} /> <Route path="/signup" component={Signup} /> <Route path="/plaid" component={LinkBank} /> <Route path="/lifeEvents/gradSchool/input" component={GradSchoolInput}/> {isLoggedIn && ( <Switch> {/* Routes placed here are only available after logging in */} <Route path="/balances" component={Balances} /> <Route path="/spending/:userId" component={SpendingMenu} /> <Route path="/userProfile" component={UserProfile} /> <Route path="/bills/addbill/:userId" component={NewBillForm} /> <Route path="/bills/:userId" component={Bills} /> <Route path="/purchasePlanner/:userId" component={PurchasePlanner}/> <Route path="/budget/:userId" component={Budget} /> <Route path="/editBudget/:budgetId" component={EditBudget} /> <Route path="/purchasePlanner/:userId" component={PurchasePlanner}/> <Route path="/editUser/:userId" component={EditUser} /> </Switch> )} {/* Displays our Login component as a fallback */} <Route component={SplashPage} /> </Switch> </Sidebar.Pusher> ) } } /** * CONTAINER */ const mapState = state => { return { // Being 'logged in' for our purposes will be defined has having a state.user that has a truthy id. // Otherwise, state.user will be an empty object, and state.user.id will be falsey isLoggedIn: !!state.user.id } } const mapDispatch = dispatch => { return { loadInitialData() { dispatch(me()) } } } // The `withRouter` wrapper makes sure that updates are not blocked // when the url changes export default withRouter(connect(mapState, mapDispatch)(Routes)) /** * PROP TYPES */ Routes.propTypes = { loadInitialData: PropTypes.func.isRequired, isLoggedIn: PropTypes.bool.isRequired }
27.481818
103
0.625868
a81dd3796d23a9674868f54016c67aeeeb79972c
34,446
js
JavaScript
dist/alert.js
mayank1990dec/bulma
ff7f0762acb28a6a9387e8d8cefbd9982c7988a8
[ "MIT" ]
null
null
null
dist/alert.js
mayank1990dec/bulma
ff7f0762acb28a6a9387e8d8cefbd9982c7988a8
[ "MIT" ]
null
null
null
dist/alert.js
mayank1990dec/bulma
ff7f0762acb28a6a9387e8d8cefbd9982c7988a8
[ "MIT" ]
null
null
null
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define("Bulma", [], factory); else if(typeof exports === 'object') exports["Bulma"] = factory(); else root["Bulma"] = factory(); })(window, function() { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "./src/plugins/alert.js"); /******/ }) /************************************************************************/ /******/ ({ /***/ "./src/core.js": /*!*********************!*\ !*** ./src/core.js ***! \*********************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar Bulma = {\n /**\n * Current BulmaJS version.\n * @type {String}\n */\n VERSION: '0.10.0',\n\n /**\n * An index of the registered plugins\n * @type {Object}\n */\n plugins: {},\n\n /**\n * Helper method to create a new plugin.\n * @param {String} key The plugin's key\n * @param {Object} options The options to be passed to the plugin\n * @return {Object} The newly created plugin instance\n */\n create: function create(key, options) {\n if (!key || !Bulma.plugins.hasOwnProperty(key)) {\n throw new Error('[BulmaJS] A plugin with the key \\'' + key + '\\' has not been registered.');\n }\n\n return Bulma.plugins[key].handler.create(options);\n },\n\n\n /**\n * Register a new plugin\n * @param {String} key The key to register the plugin under\n * @param {Object} plugin The plugin's main constructor\n * @param {number?} priority The priority this plugin has over other plugins. Higher means the plugin is registered before lower.\n * @return {undefined}\n */\n registerPlugin: function registerPlugin(key, plugin) {\n var priority = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n\n if (!key) {\n throw new Error('[BulmaJS] Key attribute is required.');\n }\n\n this.plugins[key] = {\n priority: priority,\n handler: plugin\n };\n },\n\n\n /**\n * Parse the HTML DOM searching for data-bulma attributes. We will then pass\n * each element to the appropriate plugin to handle the required processing.\n * \n * @return {undefined}\n */\n traverseDOM: function traverseDOM() {\n var _this = this;\n\n var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;\n\n var elements = root.querySelectorAll(this.getPluginClasses());\n\n this.each(elements, function (element) {\n if (element.hasAttribute('data-bulma-attached')) {\n return;\n }\n\n var plugins = _this.findCompatiblePlugins(element);\n\n _this.each(plugins, function (plugin) {\n plugin.handler.parse(element);\n });\n });\n },\n\n\n /**\n * Return a string of classes to search the DOM for\n * @returns {string} The string containing the classes\n */\n getPluginClasses: function getPluginClasses() {\n var classes = [];\n\n for (var key in this.plugins) {\n if (!this.plugins[key].handler.getRootClass()) {\n continue;\n }\n\n classes.push('.' + this.plugins[key].handler.getRootClass());\n }\n\n return classes.join(',');\n },\n\n\n /**\n * Search our plugins and find one that matches the element\n * @param {HTMLElement} element The element we want to match for\n * @returns {Object} The plugin that matched\n */\n findCompatiblePlugins: function findCompatiblePlugins(element) {\n var _this2 = this;\n\n var compatiblePlugins = [];\n\n var sortedPlugins = Object.keys(this.plugins).sort(function (a, b) {\n return _this2.plugins[a].priority < _this2.plugins[b].priority;\n });\n\n this.each(sortedPlugins, function (key) {\n if (element.classList.contains(_this2.plugins[key].handler.getRootClass())) {\n compatiblePlugins.push(_this2.plugins[key]);\n }\n });\n\n return compatiblePlugins;\n },\n\n\n /**\n * Create an element and assign classes\n * @param {string} name The name of the element to create\n * @param {array} classes An array of classes to add to the element\n * @return {HTMLElement} The newly created element\n */\n createElement: function createElement(name, classes) {\n if (!classes) {\n classes = [];\n }\n\n if (typeof classes === 'string') {\n classes = [classes];\n }\n\n var elem = document.createElement(name);\n\n this.each(classes, function (className) {\n elem.classList.add(className);\n });\n\n return elem;\n },\n\n\n /**\n * Helper method to normalise a plugin finding an element.\n * @param {string} query The CSS selector to query for\n * @param {HTMLElement|null} context The element we want to search within\n * @param {boolean} nullable Do we except a null response?\n * @returns {null|HTMLElement} The element we found, or null if allowed.\n * @throws {TypeError}\n */\n findElement: function findElement(query) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;\n var nullable = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n if (!query && !nullable) {\n throw new TypeError('First argument to `findElement` required. Null given.');\n }\n\n if (!query) {\n return null;\n }\n\n if (query.toString() === '[object HTMLElement]') {\n return query;\n }\n\n return context.querySelector(query);\n },\n\n\n /**\n * Find an element otherwise create a new one.\n * @param {string} query The CSS selector query to find\n * @param {HTMLElement|null} parent The parent we want to search/create within\n * @param {[string]} elemName The name of the element to create\n * @param {[array]} classes The classes to apply to the element\n * @returns {HTMLElement} The HTML element we found or created\n */\n findOrCreateElement: function findOrCreateElement(query) {\n var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var elemName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'div';\n var classes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n\n var elem = this.findElement(query, parent);\n\n if (!elem) {\n if (classes.length === 0) {\n classes = query.split('.').filter(function (item) {\n return item;\n });\n }\n\n var newElem = this.createElement(elemName, classes);\n\n if (parent) {\n parent.appendChild(newElem);\n }\n\n return newElem;\n }\n\n return elem;\n },\n\n\n /**\n * For loop helper\n * @param {*} objects The array/object to loop through\n * @param {*} callback The callback used for each item\n */\n each: function each(objects, callback) {\n var i = void 0;\n\n for (i = 0; i < objects.length; i++) {\n callback(objects[i], i);\n }\n }\n};\n\ndocument.addEventListener('DOMContentLoaded', function () {\n if (window.hasOwnProperty('bulmaOptions') && window.bulmaOptions.autoParseDocument === false) {\n return;\n }\n\n Bulma.traverseDOM();\n});\n\nexports.default = Bulma;\n\n//# sourceURL=webpack://Bulma/./src/core.js?"); /***/ }), /***/ "./src/plugin.js": /*!***********************!*\ !*** ./src/plugin.js ***! \***********************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/**\n * Base plugin class. Provides basic, common functionality.\n * @class Plugin\n * @since 0.7.0\n * @author Thomas Erbe <vizuaalog@gmail.com>\n */\nvar Plugin = function () {\n _createClass(Plugin, null, [{\n key: 'create',\n\n /**\n * Helper method used by the Bulma core to create a new instance.\n * @param {Object?} options The options object for this instance\n * @return {Plugin|boolean} The newly created instance or false if method is not used\n */\n value: function create() {\n return false;\n }\n\n /**\n * Handle parsing the DOM elements.\n * @param {HTMLElement?} element The root element for this instance\n * @return {Plugin|boolean} The new plugin instance, or false if method is not used\n */\n\n }, {\n key: 'parse',\n value: function parse() {\n return false;\n }\n\n /**\n * Returns a string containing the element class this plugin supports.\n * @returns {string} The class name.\n * @throws {Error} Thrown if this method has not been replaced.\n */\n\n }, {\n key: 'getRootClass',\n value: function getRootClass() {\n throw new Error('The getRootClass method should have been replaced by the plugin being created.');\n }\n\n /**\n * Returns an object containing the default options for this plugin.\n * @returns {object} The default options object.\n */\n\n }, {\n key: 'defaultOptions',\n value: function defaultOptions() {\n return {};\n }\n\n /**\n * Create a plugin.\n * @param {object} options The options for this plugin\n */\n\n }]);\n\n function Plugin() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, Plugin);\n\n this.options = _extends({}, this.constructor.defaultOptions(), options);\n\n this.parent = this.option('parent', document.body);\n }\n\n /**\n * Find an option by key.\n * @param {string} key The option key to find.\n * @param {any} defaultValue Default value if an option with key is not found.\n * @returns {any} The value of the option we found, or defaultValue if none found.\n */\n\n\n _createClass(Plugin, [{\n key: 'option',\n value: function option(key) {\n var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (!this.options.hasOwnProperty(key) || this.options[key] === null) {\n if (typeof defaultValue === 'function') {\n return defaultValue();\n }\n\n return defaultValue;\n }\n\n return this.options[key];\n }\n }]);\n\n return Plugin;\n}();\n\nexports.default = Plugin;\n\n//# sourceURL=webpack://Bulma/./src/plugin.js?"); /***/ }), /***/ "./src/plugins/alert.js": /*!******************************!*\ !*** ./src/plugins/alert.js ***! \******************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _core = __webpack_require__(/*! ../core */ \"./src/core.js\");\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _modal = __webpack_require__(/*! ./modal */ \"./src/plugins/modal.js\");\n\nvar _modal2 = _interopRequireDefault(_modal);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * @module Alert\n * @since 0.8.0\n * @author Thomas Erbe <vizuaalog@gmail.com>\n */\nvar Alert = function (_Modal) {\n _inherits(Alert, _Modal);\n\n _createClass(Alert, null, [{\n key: 'create',\n\n /**\n * Helper method used by the Bulma core to create a new instance.\n * @param {Object} options THe options object for the new instance\n * @return {Alert} The newly created instance\n */\n value: function create(options) {\n return new Alert(options);\n }\n\n /**\n * Get the root class this plugin is responsible for.\n * This element has no HTML only equivelent. So this is not required.\n * @returns {string} The class this plugin is responsible for.\n */\n\n }, {\n key: 'getRootClass',\n value: function getRootClass() {\n return '';\n }\n\n /**\n * Returns an object containing the default options for this plugin.\n * @returns {object} The default options object.\n */\n\n }, {\n key: 'defaultOptions',\n value: function defaultOptions() {\n return {\n type: 'info',\n title: '',\n body: '',\n confirm: 'Okay',\n cancel: null,\n style: 'card',\n parent: document.body,\n showHeader: true\n };\n }\n\n /**\n * Plugin constructor\n * @param {Object} options The options object for this plugin\n * @return {this} The newly created plugin instance\n */\n\n }]);\n\n function Alert(options) {\n _classCallCheck(this, Alert);\n\n var _this = _possibleConstructorReturn(this, (Alert.__proto__ || Object.getPrototypeOf(Alert)).call(this, options));\n\n _this.element.classList.add('alert');\n\n _this.open();\n return _this;\n }\n\n /**\n * Create the alerts structure\n * @returns {void}\n */\n\n\n _createClass(Alert, [{\n key: 'createCardStructure',\n value: function createCardStructure() {\n if (this.option('showHeader')) {\n /** @param {HTMLElement} */\n this.header = _core2.default.findOrCreateElement('.modal-card-head', this.content, 'header', ['modal-card-head', 'has-background-' + this.option('type')]);\n\n /** @param {HTMLElement} */\n var textColor = this.option('type') == 'warning' ? 'black' : 'white';\n this.headerTitle = _core2.default.createElement('p', ['modal-card-title', 'has-text-' + textColor]);\n this.headerTitle.innerHTML = this.title;\n this.header.appendChild(this.headerTitle);\n }\n\n /** @param {HTMLElement} */\n this.cardBody = _core2.default.findOrCreateElement('.modal-card-body', this.content, 'section');\n if (!this.cardBody.innerHTML) {\n this.cardBody.innerHTML = this.body;\n }\n\n /** @param {HTMLElement} */\n this.footer = _core2.default.findOrCreateElement('.modal-card-foot', this.content, 'footer');\n }\n\n /**\n * Go through the provided buttons option and create the buttons.\n * @returns {void}\n */\n\n }, {\n key: 'createButtons',\n value: function createButtons() {\n var _this2 = this;\n\n var defaultButtonOptions = { close: true, destroy: true, onClick: function onClick(e) {} };\n\n var confirmOptions = this.option('confirm');\n if (typeof confirmOptions === 'string') {\n confirmOptions = {\n label: confirmOptions,\n classes: []\n };\n }\n confirmOptions = _extends({}, defaultButtonOptions, confirmOptions);\n\n var confirmButton = _core2.default.createElement('button', ['button', 'is-' + this.option('type')].concat(confirmOptions.classes));\n confirmButton.innerHTML = confirmOptions.label;\n confirmButton.addEventListener('click', function (e) {\n confirmOptions.onClick(e);\n\n if (confirmOptions.close) {\n _this2.close();\n }\n\n if (confirmOptions.destory) {\n _this2.destroy();\n }\n });\n this.footer.appendChild(confirmButton);\n\n if (this.option('cancel')) {\n var cancelOptions = this.option('cancel');\n if (typeof cancelOptions === 'string') {\n cancelOptions = {\n label: cancelOptions,\n classes: []\n };\n }\n cancelOptions = _extends({}, defaultButtonOptions, cancelOptions);\n\n var cancelButton = _core2.default.createElement('button', ['button'].concat(cancelOptions.classes));\n cancelButton.innerHTML = cancelOptions.label;\n cancelButton.addEventListener('click', function (e) {\n cancelOptions.onClick(e);\n\n if (cancelOptions.close) {\n _this2.close();\n }\n\n if (cancelOptions.destroy) {\n _this2.destroy();\n }\n });\n this.footer.appendChild(cancelButton);\n }\n }\n }]);\n\n return Alert;\n}(_modal2.default);\n\n_core2.default.registerPlugin('alert', Alert);\n\nexports.default = Alert;\n\n//# sourceURL=webpack://Bulma/./src/plugins/alert.js?"); /***/ }), /***/ "./src/plugins/modal.js": /*!******************************!*\ !*** ./src/plugins/modal.js ***! \******************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _core = __webpack_require__(/*! ../core */ \"./src/core.js\");\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _plugin = __webpack_require__(/*! ../plugin */ \"./src/plugin.js\");\n\nvar _plugin2 = _interopRequireDefault(_plugin);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * @module Modal\n * @since 0.1.0\n * @author Thomas Erbe <vizuaalog@gmail.com>\n */\nvar Modal = function (_Plugin) {\n _inherits(Modal, _Plugin);\n\n _createClass(Modal, null, [{\n key: 'create',\n\n /**\n * Helper method used by the Bulma core to create a new instance.\n * @param {Object} options THe options object for the new instance\n * @return {Modal} The newly created instance\n */\n value: function create(options) {\n return new Modal(options);\n }\n\n /**\n * Get the root class this plugin is responsible for.\n * This will tell the core to match this plugin to an element with a .modal class.\n * @returns {string} The class this plugin is responsible for.\n */\n\n }, {\n key: 'getRootClass',\n value: function getRootClass() {\n return 'modal';\n }\n\n /**\n * Returns an object containing the default options for this plugin.\n * @returns {object} The default options object.\n */\n\n }, {\n key: 'defaultOptions',\n value: function defaultOptions() {\n return {\n style: 'card',\n closable: true\n };\n }\n\n /**\n * Plugin constructor\n * @param {Object} options The options object for this plugin\n * @return {this} The newly created plugin instance\n */\n\n }]);\n\n function Modal(options) {\n _classCallCheck(this, Modal);\n\n /** @param {string} */\n var _this = _possibleConstructorReturn(this, (Modal.__proto__ || Object.getPrototypeOf(Modal)).call(this, options));\n\n _this.style = _this.option('style');\n\n /** @param {HTMLElement} */\n _this.element = _this.option('element');\n\n if (!_this.element) {\n _this.element = _core2.default.createElement('div', 'modal');\n }\n\n /** @param {HTMLElement} */\n _this.parent = _this.option('parent');\n\n if (!_this.parent) {\n if (!_this.element.parentNode) {\n _this.parent = document.body;\n\n _this.parent.appendChild(_this.element);\n } else {\n _this.parent = _this.element.parentNode;\n }\n } else {\n _this.parent.appendChild(_this.element);\n }\n\n /** @param {HTMLElement} */\n _this.background = _core2.default.findOrCreateElement('.modal-background', _this.element);\n\n /** @param {HTMLElement} */\n _this.content = _this.style === 'card' ? _core2.default.findOrCreateElement('.modal-card', _this.element) : _core2.default.findOrCreateElement('.modal-content', _this.element);\n\n /** @param {boolean} */\n _this.closable = _this.option('closable');\n\n /** @param {string|null} */\n _this.body = _this.option('body');\n\n /** @param {string|null} */\n _this.title = _this.option('title');\n\n if (_this.style === 'card') {\n _this.createCardStructure();\n } else {\n if (!_this.content.innerHTML) {\n _this.content.innerHTML = _this.body;\n }\n }\n\n if (_this.closable) {\n /** @param {HTMLElement} */\n _this.closeButton = _this.style === 'card' ? _core2.default.findOrCreateElement('.delete', _this.header, 'button') : _core2.default.findOrCreateElement('.modal-close', _this.element, 'button');\n }\n\n /** @param {function} */\n _this.onOpen = _this.option('onOpen');\n\n /** @param {function} */\n _this.onClose = _this.option('onClose');\n\n if (_this.style === 'card') {\n _this.createButtons();\n }\n\n _this.setupEvents();\n return _this;\n }\n\n /**\n * Create the card style structure\n * @returns {void}\n */\n\n\n _createClass(Modal, [{\n key: 'createCardStructure',\n value: function createCardStructure() {\n /** @param {HTMLElement} */\n this.header = _core2.default.findOrCreateElement('.modal-card-head', this.content, 'header');\n\n /** @param {HTMLElement} */\n this.headerTitle = _core2.default.findOrCreateElement('.modal-card-title', this.header, 'p');\n if (!this.headerTitle.innerHTML) {\n this.headerTitle.innerHTML = this.title;\n }\n\n /** @param {HTMLElement} */\n this.cardBody = _core2.default.findOrCreateElement('.modal-card-body', this.content, 'section');\n if (!this.cardBody.innerHTML) {\n this.cardBody.innerHTML = this.body;\n }\n\n /** @param {HTMLElement} */\n this.footer = _core2.default.findOrCreateElement('.modal-card-foot', this.content, 'footer');\n }\n\n /**\n * Setup the events used by this modal.\n * @returns {void}\n */\n\n }, {\n key: 'setupEvents',\n value: function setupEvents() {\n var _this2 = this;\n\n if (this.closable) {\n this.closeButton.addEventListener('click', this.close.bind(this));\n\n document.addEventListener('keyup', function (event) {\n if (!_this2.element.classList.contains('is-active')) {\n return;\n }\n\n var key = event.key || event.keyCode;\n\n if (key === 'Escape' || key === 'Esc' || key === 27) {\n _this2.close();\n }\n });\n\n this.background.addEventListener('click', this.close.bind(this));\n }\n }\n\n /**\n * Go through the provided buttons option and create the buttons.\n * @returns {void}\n */\n\n }, {\n key: 'createButtons',\n value: function createButtons() {\n var buttonsConfig = this.option('buttons', []);\n var modal = this;\n\n _core2.default.each(buttonsConfig, function (buttonConfig) {\n var button = _core2.default.createElement('button', buttonConfig.classes);\n button.innerHTML = buttonConfig.label;\n\n button.addEventListener('click', function (event) {\n buttonConfig.onClick(event);\n });\n\n modal.footer.appendChild(button);\n });\n }\n\n /**\n * Open the modal\n * @returns {void}\n */\n\n }, {\n key: 'open',\n value: function open() {\n this.element.classList.add('is-active');\n document.documentElement.classList.add('is-clipped');\n\n if (this.onOpen) {\n this.onOpen(this);\n }\n }\n\n /**\n * Close the modal\n * @returns {void} \n */\n\n }, {\n key: 'close',\n value: function close() {\n this.element.classList.remove('is-active');\n document.documentElement.classList.remove('is-clipped');\n\n if (this.onClose) {\n this.onClose(this);\n }\n }\n\n /**\n * Destroy this modal, unregistering element references and removing the modal.\n * @returns {void}\n */\n\n }, {\n key: 'destroy',\n value: function destroy() {\n this.element.remove();\n\n this.parent = null;\n this.element = null;\n this.background = null;\n this.content = null;\n\n if (this.style === 'card') {\n this.header = null;\n this.headerTitle = null;\n this.cardBody = null;\n this.footer = null;\n }\n\n if (this.closable) {\n this.closeButton = null;\n }\n\n this.options = [];\n }\n }]);\n\n return Modal;\n}(_plugin2.default);\n\n_core2.default.registerPlugin('modal', Modal);\n\nexports.default = Modal;\n\n//# sourceURL=webpack://Bulma/./src/plugins/modal.js?"); /***/ }) /******/ })["default"]; });
232.743243
10,168
0.575597
a81e8b1c78af53b73a96099b445ba0722d3e3f84
3,476
js
JavaScript
client/src/components/skills.js
jesseohlman/React-Show-Off
8c5bf23d930e7e306a2c9a8828fdbc95e7b152dc
[ "MIT" ]
null
null
null
client/src/components/skills.js
jesseohlman/React-Show-Off
8c5bf23d930e7e306a2c9a8828fdbc95e7b152dc
[ "MIT" ]
null
null
null
client/src/components/skills.js
jesseohlman/React-Show-Off
8c5bf23d930e7e306a2c9a8828fdbc95e7b152dc
[ "MIT" ]
null
null
null
import React, { Component, useState } from 'react'; import { Route, Link, BrowserRouter as Router } from 'react-router-dom'; import { Card, CardBody, CardTitle, CardSubtitle } from "shards-react"; import Works from "./works"; import SkillCard from "./sub-components/skillCard"; function Skills() { const [skillCards, setSkillCard] = useState([ { skill: "JavaScript", experience: "2 years", description: "Sed dictum semper bibendum. In quis solicitudin ante, which ex. Aenean nec elit nec felis dictum bibendum. Maecenas justo dui, fermentum in mi sed, gravid egestas lacus. Suspendisse magna velit, pulvinar nec nulla quis, tincidunt sollicitudin mauris. Sed and eros id orci egestas scelerisk non id nisi. Fusce aliquet neque has felis accumsan congue. Donec id malesuada ligula. In convallis ex id nis venenatis, placeat tempor purus auctor. Mauris and mollis enim. Nulla carried ante commodo velit faucibus, which blandit neque lacinia. Pellentesque commodo orci in metus aliquam viverra. Donec lobortis lobortis lorem vel pulvinar. Ut nec lacus ut dui rutrum rhoncus sit amet consectetur dolor. Vivamus sit amet is in magna finibus venenatis. In hac habitasse platea dictumst.", }, { skill: "HTML", experience: "2 years", description: "Sed dictum semper bibendum. In quis solicitudin ante, which ex. Aenean nec elit nec felis dictum bibendum. Maecenas justo dui, fermentum in mi sed, gravid egestas lacus. Suspendisse magna velit, pulvinar nec nulla quis, tincidunt sollicitudin mauris. Sed and eros id orci egestas scelerisk non id nisi. Fusce aliquet neque has felis accumsan congue. Donec id malesuada ligula. In convallis ex id nis venenatis, placeat tempor purus auctor. Mauris and mollis enim. Nulla carried ante commodo velit faucibus, which blandit neque lacinia. Pellentesque commodo orci in metus aliquam viverra. Donec lobortis lobortis lorem vel pulvinar. Ut nec lacus ut dui rutrum rhoncus sit amet consectetur dolor. Vivamus sit amet is in magna finibus venenatis. In hac habitasse platea dictumst.", }, { skill: "React", experience: "1 year", description: "Sed dictum semper bibendum. In quis solicitudin ante, which ex. Aenean nec elit nec felis dictum bibendum. Maecenas justo dui, fermentum in mi sed, gravid egestas lacus. Suspendisse magna velit, pulvinar nec nulla quis, tincidunt sollicitudin mauris. Sed and eros id orci egestas scelerisk non id nisi. Fusce aliquet neque has felis accumsan congue. Donec id malesuada ligula. In convallis ex id nis venenatis, placeat tempor purus auctor. Mauris and mollis enim. Nulla carried ante commodo velit faucibus, which blandit neque lacinia. Pellentesque commodo orci in metus aliquam viverra. Donec lobortis lobortis lorem vel pulvinar. Ut nec lacus ut dui rutrum rhoncus sit amet consectetur dolor. Vivamus sit amet is in magna finibus venenatis. In hac habitasse platea dictumst.", } ]); function readMore(isExpanded) { console.log(isExpanded); } return ( <div className="Skills"> <h1 className="title">Skills</h1> <div> <ul className="card-list"> {skillCards.map((e, i) => { return <li className="card-item"> <SkillCard skill={e.skill} experience={e.experience} description={e.description} readMore={readMore}/> </li> })} </ul> </div> </div> ); } export default Skills;
63.2
798
0.730437
a81ef2c06edf5ad05bf647913d7864ceb7136612
4,846
js
JavaScript
src/components/jumbotron.js
llwor94/portfolio
39ef9efa3da0a8218870baf4a71db2b031c871b5
[ "MIT" ]
null
null
null
src/components/jumbotron.js
llwor94/portfolio
39ef9efa3da0a8218870baf4a71db2b031c871b5
[ "MIT" ]
null
null
null
src/components/jumbotron.js
llwor94/portfolio
39ef9efa3da0a8218870baf4a71db2b031c871b5
[ "MIT" ]
null
null
null
import React, { useState, useEffect, Fragment } from 'react' import styled from 'styled-components' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faArrowCircleDown } from '@fortawesome/free-solid-svg-icons' import Background from '../images/code1.png' import Particles from 'react-particles-js' import Working from '../images/work' import { Transition } from 'react-transition-group' import { DownIcon } from './icons' import { faGithub, faTwitter, faLinkedinIn, } from '@fortawesome/free-brands-svg-icons' const JumboWrapper = styled.div` position: relative; padding: 10px; max-height: 100vh; background-color: #e0e0e0; background-image: url('https://www.transparenttextures.com/patterns/black-thread-light.png'); /* background: #0f2027; */ /* hi */ /* fallback for old browsers */ /* background: -webkit-linear-gradient( to top, #2c5364, #203a43, #0f2027 ); */ /* Chrome 10-25, Safari 5.1-6 */ /* background: linear-gradient( to top, #2c5364, #203a43, #0f2027 ); */ /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ /* border-bottom: 1px solid #e5e7e9; */ margin: 0 0 30px; display: flex; flex-direction: column; justify-content: center; margin-bottom: 100px; /* .inner { display: flex; justify-content: center; } */ /* align-items: center; */ .img { display: flex; margin: 0 auto; max-width: 1400px; align-items: center; justify-content: space-between; @media (max-width: 700px) { flex-direction: column; } } svg { width: 700px; max-width: 70%; opacity: 0.7; /* margin-bottom: 10px; */ margin-right: 10px; } .text { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50%; /* justify-content: center; */ } p { font-family: 'Roboto-Mono', monospace; /* color: #ffffff; */ color: #373737; margin-bottom: 5px; } .inner-inner { svg { width: auto; cursor: pointer; border-radius: 50%; box-shadow: 0 3px 4px rgba(0, 0, 0, 0.4); transition: all 0.2s; &:hover { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); transform: translateY(-2px); } &:active { box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4); transform: translateY(2px); } } } ` const Content = styled.div` padding: 60px 35px 30px; opacity: 1; position: relative; ` const Inner = styled.div` max-width: 760px; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; align-items: center; opacity: 1; img { height: 130px; width: 130px; border-radius: 100%; margin-bottom: 60px; } h1 { font-size: 98px; font-family: 'Open Sans', sans-serif; /* color: #ffffff; */ text-align: center; padding-top: 15px; color: #616161; @media (max-width: 500px) { font-size: 65px; } } ` const Icons = styled.div` display: flex; a { height: 36px; width: 36px; line-height: 36px; background: #fff; border-radius: 100%; color: #535358; font-size: 14px; text-align: center; margin: 0px 5px; } ` const Jumbotron = () => { const pageRef = React.createRef() const scroll = ref => { ref.current.scrollIntoView({ behavior: 'smooth', block: 'start' }) } return ( <Fragment> <JumboWrapper> {/* <Particles width={'100vw'} height={'100vh'} style={{ position: 'absolute', top: 0, left: 0 }} params={{ particles: { number: { value: 50, }, size: { value: 3, }, }, interactivity: { events: { onhover: { enable: true, mode: 'repulse', }, }, }, }} /> */} <Content> <Inner> <h1>Hi! I'm Lauren.</h1> </Inner> </Content> <div className="inner"> <div className="img"> <div className="text"> <p>I'm a fullstack web developer.</p> <div className="inner-inner" style={{ display: 'flex', alignItems: 'center' }} > <p style={{ padding: 0, margin: '0 5px' }}>My Projects</p> <span style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', }} onClick={() => scroll(pageRef)} > <DownIcon /> </span> </div> </div> <Working /> </div> </div> </JumboWrapper> <div ref={pageRef} /> </Fragment> ) } export default Jumbotron
22.027273
95
0.537763
a81f4a319df3fe476b38c5cc8f287051594e9575
1,791
js
JavaScript
examples/hello-world/client/containers/App.js
QuanKhs/resolve
451d54462b2359bca355ef318f7435a10c6d5a80
[ "MIT" ]
null
null
null
examples/hello-world/client/containers/App.js
QuanKhs/resolve
451d54462b2359bca355ef318f7435a10c6d5a80
[ "MIT" ]
9
2021-03-03T22:54:18.000Z
2021-03-05T10:10:07.000Z
examples/hello-world/client/containers/App.js
max-vasin-team/resolve
ebc751456979c9e497699a8e1b4e260c756b6a7b
[ "MIT" ]
null
null
null
import React from 'react' import { Helmet } from 'react-helmet' import { Navbar, Image, Nav } from 'react-bootstrap' import { useStaticResolver } from '@resolve-js/react-hooks' const App = () => { const resolveStatic = useStaticResolver() const stylesheetLink = { rel: 'stylesheet', type: 'text/css', href: resolveStatic('/bootstrap.min.css'), } const faviconLink = { rel: 'icon', type: 'image/png', href: resolveStatic('/favicon.ico'), } const links = [stylesheetLink, faviconLink] const meta = { name: 'viewport', content: 'width=device-width, initial-scale=1', } return ( <div> <Helmet title="reSolve Hello World" link={links} meta={[meta]} /> <Navbar> <Navbar.Brand href="#home"> <Image src={resolveStatic('/resolve-logo.png')} className="d-inline-block align-top" />{' '} Hello World Example </Navbar.Brand> <Nav className="ml-auto"> <Navbar.Text className="navbar-right"> <Nav.Link href="https://facebook.com/resolvejs/"> <Image src={resolveStatic('/fb-logo.png')} /> </Nav.Link> </Navbar.Text> <Navbar.Text className="navbar-right"> <Nav.Link href="https://twitter.com/resolvejs"> <Image src={resolveStatic('/twitter-logo.png')} /> </Nav.Link> </Navbar.Text> <Navbar.Text className="navbar-right"> <Nav.Link href="https://github.com/reimagined/resolve"> <Image src={resolveStatic('/github-logo.png')} /> </Nav.Link> </Navbar.Text> </Nav> </Navbar> <h1 className="text-center">Hello, reSolve world!</h1> </div> ) } export default App
28.428571
71
0.565606
a8207333491bedc880afeda53b80dd7b05953f90
3,165
js
JavaScript
src/components/PetActions/Appetite.js
joshporter1/cap-one-hackathon
30372f3baec117caf9b795ca858b4f6a0f60ecba
[ "MIT" ]
null
null
null
src/components/PetActions/Appetite.js
joshporter1/cap-one-hackathon
30372f3baec117caf9b795ca858b4f6a0f60ecba
[ "MIT" ]
null
null
null
src/components/PetActions/Appetite.js
joshporter1/cap-one-hackathon
30372f3baec117caf9b795ca858b4f6a0f60ecba
[ "MIT" ]
null
null
null
var AppetiteProcessor = { processFullUser(customer_id){ fetch('https://3hkaob4gkc.execute-api.us-east-1.amazonaws.com/prod/au-hackathon/transactions', { method: 'post', body: JSON.stringify( { "customer_id" : customer_id } ) }).then(function(response){ response.json().then(function(data){ AppetiteProcessor.crunchTransactions(data[0].customers[0].transactions, data[0].account_id); }); }); }, crunchTransactions(transactions, account_id){ //sort this stuff by date... transactions.sort(fieldSorter(['year', 'month', 'day'])); var MONTHS = {}; MONTHS["January"] = 0; MONTHS["February"] = 1; MONTHS["March"] = 2; MONTHS["April"] = 3; MONTHS["May"] = 4; MONTHS["June"] = 5; MONTHS["July"] = 6; MONTHS["August"] = 7; MONTHS["September"] = 8; MONTHS["October"] = 9; MONTHS["November"] = 10; MONTHS["December"] = 11; //get the credit limit for the account fetch('https://3hkaob4gkc.execute-api.us-east-1.amazonaws.com/prod/au-hackathon/accounts', { method: 'post', body: JSON.stringify( { "account_id" : account_id } ) }).then(function(response){ response.json().then(function(data){ let credit_limit = data[0].credit_limit; let appetite = 50; let prevDate = null; transactions.forEach(function(element) { let transaction_date = new Date(element.year, MONTHS[element.month], element.day); //figure out how much time since last transaction, //subtract appetite if(prevDate != null){ let diff = dayDiff(prevDate, transaction_date); let negative_appetite = diff * (1/7) appetite -= negative_appetite } let add_appetite = (element.amount/credit_limit) * 100; appetite += add_appetite; if(appetite > 100) appetite = 100; prevDate = transaction_date; console.log(appetite); }, this); }); }); } } function dayDiff( date1, date2 ) { //Get 1 day in milliseconds var one_day=1000*60*60*24; // Convert both dates to milliseconds var date1_ms = date1.getTime(); var date2_ms = date2.getTime(); // Calculate the difference in milliseconds var difference_ms = date2_ms - date1_ms; // Convert back to days and return return Math.round(difference_ms/one_day); } function fieldSorter(fields) { return function (a, b) { return fields .map(function (o) { var dir = 1; if (o[0] === '-') { dir = -1; o=o.substring(1); } if (a[o] > b[o]) return dir; if (a[o] < b[o]) return -(dir); return 0; }) .reduce(function firstNonZeroValue (p,n) { return p ? p : n; }, 0); }; } export default AppetiteProcessor;
31.969697
102
0.53207
a821ce4c929bf547e283ff237ce339fa677e46a1
453,380
js
JavaScript
main.ef381e0b3e8d3fa7ed79.bundle.js
candoall/candoall.github.io
dc12397247b25e8e5980261540873ce3e5b7ba70
[ "MIT" ]
null
null
null
main.ef381e0b3e8d3fa7ed79.bundle.js
candoall/candoall.github.io
dc12397247b25e8e5980261540873ce3e5b7ba70
[ "MIT" ]
null
null
null
main.ef381e0b3e8d3fa7ed79.bundle.js
candoall/candoall.github.io
dc12397247b25e8e5980261540873ce3e5b7ba70
[ "MIT" ]
null
null
null
webpackJsonp([2],{"+3/4":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("TToO"),i=function(t){function e(e){t.call(this),this.scheduler=e}return Object(r.b)(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(n("YaPU").a)},"+CnV":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){var e,r=n("AMGY").a.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}()},"/iUD":function(t,e,n){"use strict";e.a=function(t){return"function"==typeof t}},"/nXB":function(t,e,n){"use strict";e.a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,a=null,u=t[t.length-1];return Object(o.a)(u)?(a=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===a&&1===t.length&&t[0]instanceof r.a?t[0]:Object(s.a)(n)(new i.a(t,a))};var r=n("YaPU"),i=n("Veqx"),o=n("1Q68"),s=n("8D5t")},0:function(t,e,n){t.exports=n("x35b")},"1Q68":function(t,e,n){"use strict";e.a=function(t){return t&&"function"==typeof t.schedule}},"319O":function(t,e,n){"use strict";e.a=function(){return Object(r.a)(1)};var r=n("8D5t")},"7DMc":function(t,e,n){"use strict";var r=n("TToO"),i=n("WT6e"),o=n("YaPU"),s=n("+3/4"),a=n("BX3T"),u=n("PIsA"),l=n("tZ2B"),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return Object(r.b)(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new s.a;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&Object(a.a)(t[0])&&(t=t[0]),0===t.length?new s.a:new e(t,r)},e.prototype._subscribe=function(t){return new h(t,this.sources,this.resultSelector)},e}(o.a),h=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var s=n[o],a=Object(u.a)(this,s,null,o);a&&(a.outerIndex=o,this.add(a))}}return Object(r.b)(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.resultSelector,i=this.values,o=i.length;if(t._hasValue){if(this.completed++,this.completed===o){if(n===o){var s=r?r.apply(this,i):i;e.next(s)}e.complete()}}else e.complete()},e}(l.a),p=c.create,f=n("i9s7"),d=n("gL+p");n("OE0E"),n.d(e,"a",function(){return y}),n.d(e,"d",function(){return I}),n.d(e,"e",function(){return z}),n.d(e,"b",function(){return G}),n.d(e,"c",function(){return Z}),n.d(e,"f",function(){return Q}),n.d(e,"g",function(){return X}),n.d(e,"h",function(){return S});var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}());function v(t){return null==t||0===t.length}var m=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,g=function(){function t(){}return t.min=function(t){return function(e){if(v(e.value)||v(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(v(e.value)||v(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return v(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return m.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(v(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(v(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(b);return 0==e.length?null:function(t){return w(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(b);return 0==e.length?null:function(t){var n=function(t,n){return e.map(function(e){return e(t)})}(t).map(_);return d.a.call(p(n),w)}},t}();function b(t){return null!=t}function _(t){var e=Object(i._10)(t)?Object(f.a)(t):t;if(!Object(i._9)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function w(t){var e=t.reduce(function(t,e){return null!=e?Object(r.a)({},t,e):t},{});return 0===Object.keys(e).length?null:e}function C(t){return t.validate?function(e){return t.validate(e)}:t}function E(t){return t.validate?function(e){return t.validate(e)}:t}var S=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}();function T(t,e){t||P(e,"Cannot find control with"),e.valueAccessor||P(e,"No value accessor for form control with"),t.validator=g.compose([t.validator,e.validator]),t.asyncValidator=g.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&O(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&O(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function O(t,e){e.viewToModelUpdate(t._pendingValue),t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),t._pendingChange=!1}function x(t,e){null==t&&P(e,"Cannot find control with"),t.validator=g.compose([t.validator,e.validator]),t.asyncValidator=g.composeAsync([t.asyncValidator,e.asyncValidator])}function A(t){return P(t,"There is no FormControl instance attached to form control element with")}function P(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function k(t){return null!=t?g.compose(t.map(C)):null}function R(t){return null!=t?g.composeAsync(t.map(E)):null}function N(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function j(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var I=function(t){function e(e){return t.call(this,e)||this}return Object(r.b)(e,t),e}(function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}());function D(t){var e=V(t)?t.validators:t;return Array.isArray(e)?k(e):e||null}function M(t,e){var n=V(e)?e.asyncValidators:t;return Array.isArray(n)?R(n):n||null}function V(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var L=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=D(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=M(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object(r.a)({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(Object(r.a)({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof U?t.controls[e]||null:t instanceof H&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new i.m,this.statusChanges=new i.m},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){V(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),F=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,D(n),M(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.b)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(L),U=function(t){function e(e,n,r){var i=t.call(this,D(n),M(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.b)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof F?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++)if(this.controls[e[t]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(L),H=function(t){function e(e,n,r){var i=t.call(this,D(n),M(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.b)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof F?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++)if(e[t].enabled)return!1;return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(L),B=Promise.resolve(null),z=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new i.m,r.form=new U({},k(e),R(n)),r}return Object(r.b)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;B.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),T(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;B.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),j(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;B.then(function(){var n=e._findContainer(t.path),r=new U({});x(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;B.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;B.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,N(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(y),q='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',W='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Y=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+q)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+W+'\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n \n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>')},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+q)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+W)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),G=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new i.m,r}return Object(r.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return T(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){j(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);x(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);x(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,N(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return A(e)}),e.valueAccessor.registerOnTouched(function(){return A(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&T(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=k(this._validators);this.form.validator=g.compose([this.form.validator,t]);var e=R(this._asyncValidators);this.form.asyncValidator=g.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Y.missingFormException()},e}(y),X=function(){},Q=function(){},Z=function(){}},"8D5t":function(t,e,n){"use strict";var r=n("Qnch");function i(t){return t}e.a=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i,null,t)}},AMGY:function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return o});var r="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=r||"undefined"!=typeof t&&t||i}).call(e,n("DuR2"))},BX3T:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},DuR2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},GK6M:function(t,e,n){"use strict";e.a=function(t){return r=t,o};var r,i=n("fKB6");function o(){try{return r.apply(this,arguments)}catch(t){return i.a.e=t,i.a}}},HdCx:function(t,e,n){"use strict";e.a=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(t,e))}};var r=n("TToO"),i=n("OVmG"),o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return Object(r.b)(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},Jnfr:function(t,e,n){var r={"./layouts/admin-layout/admin-layout.module.ngfactory":["QodF",0]};function i(t){var e=r[t];return e?n.e(e[1]).then(function(){return n(e[0])}):Promise.reject(new Error("Cannot find module '"+t+"'."))}i.keys=function(){return Object.keys(r)},i.id="Jnfr",t.exports=i},N4j0:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return t&&"number"==typeof t.length}},OE0E:function(t,e,n){"use strict";n.d(e,"a",function(){return Ut}),n.d(e,"j",function(){return Lt}),n.d(e,"h",function(){return g}),n.d(e,"i",function(){return C}),n.d(e,"b",function(){return y}),n.d(e,"d",function(){return P}),n.d(e,"e",function(){return k}),n.d(e,"f",function(){return nt}),n.d(e,"g",function(){return rt}),n.d(e,"c",function(){return Pt}),n.d(e,"s",function(){return a}),n.d(e,"l",function(){return U}),n.d(e,"k",function(){return tt}),n.d(e,"n",function(){return it}),n.d(e,"o",function(){return at}),n.d(e,"m",function(){return j}),n.d(e,"p",function(){return N}),n.d(e,"q",function(){return Ft}),n.d(e,"t",function(){return A}),n.d(e,"r",function(){return kt});var r=n("Xjw4"),i=n("WT6e"),o=n("TToO"),s=null;function a(){return s}var u,l={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},c={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},h={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};i._5.Node&&(u=i._5.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var p,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.b)(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,s||(s=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return l},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return u.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},e.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n.item(r);e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return t.title},e.prototype.setTitle=function(t,e){t.title=e||""},e.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.getAttribute("href")},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&h.hasOwnProperty(e)&&(e=h[e]))}return c[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e,n=d||(d=document.querySelector("base"))?d.getAttribute("href"):null;return null==n?null:(e=n,p||(p=document.createElement("a")),p.setAttribute("href",e),"/"===p.pathname.charAt(0)?p.pathname:"/"+p.pathname)},e.prototype.resetBaseElement=function(){d=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return Object(r.u)(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return Object(o.b)(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}())),d=null,y=r.d;function v(){return!!window.history.pushState}var m=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return Object(o.b)(e,t),e.prototype._init=function(){this.location=a().getLocation(),this._history=a().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return a().getBaseHref(this._doc)},e.prototype.onPopState=function(t){a().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){a().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){v()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){v()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.n,args:[y]}]}]},e}(r.r),g=function(){function t(t){this._doc=t,this._dom=a()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t&&this._dom.querySelector(this._doc,"meta["+t+"]")||null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var i=this._dom.createElement("meta");this._setMetaElementAttributes(t,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}(),b=new i.o("TRANSITION_ID"),_=[{provide:i.d,useFactory:function(t,e,n){return function(){n.get(i.e).donePromise.then(function(){var n=a();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}},deps:[b,y,i.p],multi:!0}],w=function(){function t(){}return t.init=function(){Object(i.W)(new t)},t.prototype.addToWindow=function(t){i._5.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},i._5.getAllAngularTestabilities=function(){return t.getAllTestabilities()},i._5.getAllAngularRootElements=function(){return t.getAllRootElements()},i._5.frameworkStabilizers||(i._5.frameworkStabilizers=[]),i._5.frameworkStabilizers.push(function(t){var e=i._5.getAllAngularTestabilities(),n=e.length,r=!1,o=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(o)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?a().isShadowRoot(e)?this.findTestabilityInTree(t,a().getHost(e),!0):this.findTestabilityInTree(t,a().parentElement(e),!0):null},t}(),C=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return a().getTitle(this._doc)},t.prototype.setTitle=function(t){a().setTitle(this._doc,t)},t}();function E(t,e){"undefined"!=typeof COMPILED&&COMPILED||((i._5.ng=i._5.ng||{})[t]=e)}var S={ApplicationRef:i.g,NgZone:i.x},T="probe",O="coreTokens";function x(t){return Object(i.T)(t)}function A(t){return E(T,x),E(O,Object(o.a)({},S,(t||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return x}}var P=new i.o("EventManagerPlugins"),k=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t}(),R=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=a().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),N=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}(),j=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return Object(o.b)(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return a().remove(t)})},e}(N),I={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},D=/%COMP%/g,M="_nghost-%COMP%",V="_ngcontent-%COMP%";function L(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?L(t,i,n):(i=i.replace(D,t),n.push(i))}return n}function F(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var U=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new H(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case i.O.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new W(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case i.O.Native:return new Y(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=L(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}(),H=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(I[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=I[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=I[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&i.E.DashCase?t.style.setProperty(e,n,r&i.E.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&i.E.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){z(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return z(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,F(n)):this.eventManager.addEventListener(t,e,F(n))},t}(),B="@".charCodeAt(0);function z(t,e){if(t.charCodeAt(0)===B)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var q,W=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=L(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=V.replace(D,r.id),i.hostAttr=M.replace(D,r.id),i}return Object(o.b)(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(H),Y=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=L(i.id,i.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],o.shadowRoot.appendChild(u)}return o}return Object(o.b)(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(H),G="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},X=G("addEventListener"),Q=G("removeEventListener"),Z={},K="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[G("BLACK_LISTED_EVENTS")]&&(q={});var $=function(t){return!!q&&q.hasOwnProperty(t)},J=function(t){var e=Z[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length)return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r);for(var i=n.slice(),o=0;o<i.length&&!0!==t[K];o++){var s;(s=i[o]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},tt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.ngZone=n,r.patchEvent(),r}return Object(o.b)(e,t),e.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[K]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this,o=n;if(!t[X]||i.x.isInAngularZone()&&!$(e))t.addEventListener(e,o,!1);else{var s=Z[e];s||(s=Z[e]=G("ANGULAR"+e+"FALSE"));var a=t[s],u=a&&a.length>0;a||(a=t[s]=[]);var l=$(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:l,handler:o});else{for(var c=!1,h=0;h<a.length;h++)if(a[h].handler===o){c=!0;break}c||a.push({zone:l,handler:o})}u||t[X](e,J,!1)}return function(){return r.removeEventListener(t,e,o)}},e.prototype.removeEventListener=function(t,e,n){var r=t[Q];if(!r)return t.removeEventListener.apply(t,[e,n,!1]);var i=Z[e],o=i&&t[i];if(!o)return t.removeEventListener.apply(t,[e,n,!1]);for(var s=!1,a=0;a<o.length;a++)if(o[a].handler===n){s=!0,o.splice(a,1);break}s?0===o.length&&r.apply(t,[e,J,!1]):t.removeEventListener.apply(t,[e,n,!1])},e}(R),et={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},nt=new i.o("HammerGestureConfig"),rt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t}(),it=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return Object(o.b)(e,t),e.prototype.supports=function(t){if(!et.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){return o.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(R),ot=["alt","control","meta","shift"],st={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},at=function(t){function e(e){return t.call(this,e)||this}return Object(o.b)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return a().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(ot.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=a().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ot.forEach(function(r){r!=n&&(0,st[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(R),ut=function(){function t(t,e){this.defaultDoc=t,this.DOM=e;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var r=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(r,this.inertBodyElement),this.DOM.appendChild(n,r)}this.DOM.setInnerHTML(this.inertBodyElement,'<svg><g onload="this.parentNode.remove()"></g></svg>'),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'<svg><p><style><img src="</style><img src=x onerror=alert(1)//">'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t="<body><remove></remove>"+t+"</body>";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.DOM.createElement("template");return"content"in e?(this.DOM.setInnerHTML(e,t),e):(this.DOM.setInnerHTML(this.inertBodyElement,t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){var e=this;this.DOM.attributeMap(t).forEach(function(n,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.DOM.removeAttribute(t,r)});for(var n=0,r=this.DOM.childNodesAsList(t);n<r.length;n++){var i=r[n];this.DOM.isElementNode(i)&&this.stripCustomNsAttrs(i)}},t}(),lt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ct=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ht(t){return(t=String(t)).match(lt)||t.match(ct)?t:(Object(i.U)()&&a().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function pt(t){for(var e={},n=0,r=t.split(",");n<r.length;n++)e[r[n]]=!0;return e}function ft(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var s in o)o.hasOwnProperty(s)&&(n[s]=!0)}return n}var dt,yt=pt("area,br,col,hr,img,wbr"),vt=pt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mt=pt("rp,rt"),gt=ft(mt,vt),bt=ft(yt,ft(vt,pt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ft(mt,pt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),gt),_t=pt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wt=pt("srcset"),Ct=ft(_t,wt,pt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),Et=function(){function t(){this.sanitizedSomething=!1,this.buf=[],this.DOM=a()}return t.prototype.sanitizeChildren=function(t){for(var e=this.DOM.firstChild(t);e;)if(this.DOM.isElementNode(e)?this.startElement(e):this.DOM.isTextNode(e)?this.chars(this.DOM.nodeValue(e)):this.sanitizedSomething=!0,this.DOM.firstChild(e))e=this.DOM.firstChild(e);else for(;e;){this.DOM.isElementNode(e)&&this.endElement(e);var n=this.checkClobberedElement(e,this.DOM.nextSibling(e));if(n){e=n;break}e=this.checkClobberedElement(e,this.DOM.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=this.DOM.nodeName(t).toLowerCase();bt.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),this.DOM.attributeMap(t).forEach(function(t,n){var r,i=n.toLowerCase();Ct.hasOwnProperty(i)?(_t[i]&&(t=ht(t)),wt[i]&&(r=t,t=(r=String(r)).split(",").map(function(t){return ht(t.trim())}).join(", ")),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(Ot(t)),e.buf.push('"')):e.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=this.DOM.nodeName(t).toLowerCase();bt.hasOwnProperty(e)&&!yt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Ot(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&this.DOM.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(t));return e},t}(),St=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tt=/([^\#-~ |!])/g;function Ot(t){return t.replace(/&/g,"&amp;").replace(St,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Tt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var xt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),At=/^url\(([^)]+)\)$/,Pt=function(){},kt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(o.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case i.G.NONE:return e;case i.G.HTML:return e instanceof Nt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=a(),r=null;try{dt=dt||new ut(t,n);var o=e?String(e):"";r=dt.getInertBodyElement(o);var s=5,u=o;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,o=u,u=n.getInnerHTML(r),r=dt.getInertBodyElement(o)}while(o!==u);var l=new Et,c=l.sanitizeChildren(n.getTemplateContent(r)||r);return Object(i.U)()&&l.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),c}finally{if(r)for(var h=n.getTemplateContent(r)||r,p=0,f=n.childNodesAsList(h);p<f.length;p++)n.removeChild(h,f[p])}}(this._doc,String(e)));case i.G.STYLE:return e instanceof jt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(At);return e&&ht(e[1])===e[1]||t.match(xt)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(Object(i.U)()&&a().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(e));case i.G.SCRIPT:if(e instanceof It)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case i.G.URL:return e instanceof Mt||e instanceof Dt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),ht(String(e)));case i.G.RESOURCE_URL:if(e instanceof Mt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Rt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Nt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new jt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new It(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Dt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Mt(t)},e}(Pt),Rt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.b)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Rt),jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.b)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Rt),It=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.b)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Rt),Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.b)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Rt),Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.b)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Rt),Vt=[{provide:i.z,useValue:r.s},{provide:i.A,useValue:function(){f.makeCurrent(),w.init()},multi:!0},{provide:r.r,useClass:m,deps:[y]},{provide:y,useFactory:function(){return document},deps:[]}],Lt=Object(i.Q)(i.V,"browser",Vt);function Ft(){return new i.l}var Ut=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:i.c,useValue:e.appId},{provide:b,useExisting:i.c},_]}},t}();"undefined"!=typeof window&&window},OVmG:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("TToO"),i=n("/iUD"),o=n("VwZZ"),s=n("t7NR"),a=n("tLDX"),u=function(t){function e(e,n,r){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!e){this.destination=s.a;break}if("object"==typeof e){if(c(e)){var i=e[a.a]();this.syncErrorThrowable=i.syncErrorThrowable,this.destination=i,i.add(this)}else this.syncErrorThrowable=!0,this.destination=new l(this,e);break}default:this.syncErrorThrowable=!0,this.destination=new l(this,e,n,r)}}return Object(r.b)(e,t),e.prototype[a.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(o.a),l=function(t){function e(e,n,r,o){var a;t.call(this),this._parentSubscriber=e;var u=this;Object(i.a)(n)?a=n:n&&(a=n.next,r=n.error,o=n.complete,n!==s.a&&(u=Object.create(n),Object(i.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=r,this._complete=o}return Object(r.b)(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u);function c(t){return t instanceof u||"syncErrorThrowable"in t&&t[a.a]}},PIsA:function(t,e,n){"use strict";var r=n("AMGY"),i=n("N4j0"),o=n("cQXm"),s=n("dgOU"),a=n("YaPU"),u=n("etqZ"),l=n("TToO"),c=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return Object(l.b)(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("OVmG").a),h=n("+CnV");e.a=function(t,e,n,l){var p=new c(t,n,l);if(p.closed)return null;if(e instanceof a.a)return e._isScalar?(p.next(e.value),p.complete(),null):(p.syncErrorThrowable=!0,e.subscribe(p));if(Object(i.a)(e)){for(var f=0,d=e.length;f<d&&!p.closed;f++)p.next(e[f]);p.closed||p.complete()}else{if(Object(o.a)(e))return e.then(function(t){p.closed||(p.next(t),p.complete())},function(t){return p.error(t)}).then(null,function(t){r.a.setTimeout(function(){throw t})}),p;if(e&&"function"==typeof e[u.a])for(var y=e[u.a]();;){var v=y.next();if(v.done){p.complete();break}if(p.next(v.value),p.closed)break}else if(e&&"function"==typeof e[h.a]){var m=e[h.a]();if("function"==typeof m.subscribe)return m.subscribe(new c(t,n,l));p.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g=Object(s.a)(e)?"an invalid object":"'"+e+"'";p.error(new TypeError("You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}}return null}},Qnch:function(t,e,n){"use strict";e.a=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof e&&(n=e,e=null),r.lift(new s(t,e,n))}};var r=n("TToO"),i=n("PIsA"),o=n("tZ2B"),s=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector,this.concurrent))},t}(),a=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return Object(r.b)(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(Object(i.a)(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},Rf9G:function(t,e,n){"use strict";var r=n("TToO"),i=n("g5jc"),o=n("YaPU"),s=n("OVmG"),a=n("VwZZ");function u(){return function(t){return t.lift(new l(t))}}var l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new c(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return Object(r.b)(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(s.a),h=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(r.b)(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new a.a).add(this.source.subscribe(new f(this.getSubject(),this))),t.closed?(this._connection=null,t=a.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return u()(this)},e}(o.a).prototype,p={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:h._subscribe},_isComplete:{value:h._isComplete,writable:!0},getSubject:{value:h.getSubject},connect:{value:h.connect},refCount:{value:h.refCount}},f=function(t){function e(e,n){t.call(this,e),this.connectable=n}return Object(r.b)(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);function d(){return new i.a}e.a=function(){return this,u()((t=d,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,p);return r.source=e,r.subjectFactory=n,r})(this));var t}},TILf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("TToO"),i=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Object(r.b)(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.value,n=t.subscriber;t.done?n.complete():(n.next(e),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(n("YaPU").a)},TToO:function(t,e,n){"use strict";e.b=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.d(e,"a",function(){return i});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}},Uw6n:function(t,e,n){"use strict";e.a=function(t,e){return Object(r.a)(t,e)(this)};var r=n("w9is")},Veqx:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("TToO"),i=n("YaPU"),o=n("TILf"),s=n("+3/4"),a=n("1Q68"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Object(r.b)(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];Object(a.a)(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.a(t[0],r):new s.a(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.subscriber;n>=t.count?r.complete():(r.next(e[n]),r.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.a)},VwZZ:function(t,e,n){"use strict";var r=n("BX3T"),i=n("dgOU"),o=n("/iUD"),s=n("GK6M"),a=n("fKB6"),u=n("TToO"),l=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Object(u.b)(e,t),e}(Error);n.d(e,"a",function(){return c});var c=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,u=this._parents,c=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,d=u?u.length:0;n;)n.remove(this),n=++f<d&&u[f]||null;if(Object(o.a)(c)&&Object(s.a)(c).call(this)===a.a&&(e=!0,t=t||(a.a.e instanceof l?h(a.a.e.errors):[a.a.e])),Object(r.a)(p))for(f=-1,d=p.length;++f<d;){var y=p[f];if(Object(i.a)(y)&&Object(s.a)(y.unsubscribe).call(y)===a.a){e=!0,t=t||[];var v=a.a.e;v instanceof l?t=t.concat(h(v.errors)):t.push(v)}}if(e)throw new l(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function h(t){return t.reduce(function(t,e){return t.concat(e instanceof l?e.errors:e)},[])}},WPXp:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return c}),n.d(e,"h",function(){return l}),n.d(e,"i",function(){return h}),n.d(e,"j",function(){return s}),n.d(e,"d",function(){return f}),n.d(e,"k",function(){return d}),n.d(e,"l",function(){return y});var r=function(){},i=function(){},o="*";function s(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function u(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function c(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function p(t){Promise.resolve(null).then(t)}var f=function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;p(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),d=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,i=0,o=this.players.length;0==o?p(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==o&&e._onFinish()}),t.onDestroy(function(){++r==o&&e._onDestroy()}),t.onStart(function(){++i==o&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),y="!"},WT6e:function(t,e,n){"use strict";(function(t){n.d(e,"g",function(){return Jt}),n.d(e,"R",function(){return Yt}),n.d(e,"U",function(){return Gt}),n.d(e,"Q",function(){return Qt}),n.d(e,"w",function(){return Xt}),n.d(e,"c",function(){return ot}),n.d(e,"A",function(){return ut}),n.d(e,"z",function(){return lt}),n.d(e,"b",function(){return ct}),n.d(e,"d",function(){return rt}),n.d(e,"e",function(){return it}),n.d(e,"T",function(){return be}),n.d(e,"L",function(){return Lt}),n.d(e,"W",function(){return Ut}),n.d(e,"s",function(){return Be}),n.d(e,"f",function(){return Ye}),n.d(e,"m",function(){return kt}),n.d(e,"l",function(){return tt}),n.d(e,"F",function(){return Xe}),n.d(e,"G",function(){return Ge}),n.d(e,"a",function(){return p}),n.d(e,"O",function(){return f}),n.d(e,"M",function(){return d}),n.d(e,"S",function(){return P}),n.d(e,"p",function(){return I}),n.d(e,"o",function(){return l}),n.d(e,"n",function(){return v}),n.d(e,"y",function(){return m}),n.d(e,"H",function(){return b}),n.d(e,"x",function(){return Rt}),n.d(e,"C",function(){return re}),n.d(e,"D",function(){return ee}),n.d(e,"E",function(){return ne}),n.d(e,"i",function(){return ft}),n.d(e,"j",function(){return wt}),n.d(e,"k",function(){return ie}),n.d(e,"t",function(){return Tt}),n.d(e,"v",function(){return St}),n.d(e,"u",function(){return oe}),n.d(e,"B",function(){return se}),n.d(e,"I",function(){return le}),n.d(e,"J",function(){return ae}),n.d(e,"K",function(){return he}),n.d(e,"N",function(){return pe}),n.d(e,"h",function(){return fe}),n.d(e,"q",function(){return Me}),n.d(e,"r",function(){return Ve}),n.d(e,"P",function(){return Ce}),n.d(e,"V",function(){return He}),n.d(e,"_8",function(){return Se}),n.d(e,"Y",function(){return ht}),n.d(e,"X",function(){return Ct}),n.d(e,"_5",function(){return C}),n.d(e,"_11",function(){return x}),n.d(e,"_24",function(){return A}),n.d(e,"_9",function(){return nt}),n.d(e,"_10",function(){return et}),n.d(e,"Z",function(){return Bn}),n.d(e,"_0",function(){return ar}),n.d(e,"_1",function(){return po}),n.d(e,"_2",function(){return fn}),n.d(e,"_3",function(){return kr}),n.d(e,"_4",function(){return zn}),n.d(e,"_7",function(){return Un}),n.d(e,"_12",function(){return $n}),n.d(e,"_13",function(){return Kn}),n.d(e,"_15",function(){return $r}),n.d(e,"_16",function(){return gr}),n.d(e,"_19",function(){return Rr}),n.d(e,"_21",function(){return Nr}),n.d(e,"_18",function(){return ei}),n.d(e,"_20",function(){return ti}),n.d(e,"_23",function(){return Gr}),n.d(e,"_25",function(){return ri}),n.d(e,"_26",function(){return cn}),n.d(e,"_27",function(){return si}),n.d(e,"_14",function(){return ze}),n.d(e,"_17",function(){return qe}),n.d(e,"_22",function(){return We}),n.d(e,"_6",function(){return st});var r=n("TToO"),i=n("YaPU"),o=n("/nXB"),s=n("Rf9G"),a=n("g5jc"),u=n("VwZZ"),l=function(){function t(t){this._desc=t,this.ngMetadataName="InjectionToken"}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),c="__paramaters__";function h(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,e);for(var i in r)this[i]=r[i]}}}(e);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof i)return r.apply(this,t),this;var n,o=new((n=i).bind.apply(n,[void 0].concat(t)));return s.annotation=o,s;function s(t,e,n){for(var r=t.hasOwnProperty(c)?t[c]:Object.defineProperty(t,c,{value:[]})[c];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}var p=new l("AnalyzeForEntryComponents"),f=function(){var t={Emulated:0,Native:1,None:2};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t}(),d=function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},y=new d("5.2.9"),v=h("Inject",function(t){return{token:t}}),m=h("Optional"),g=h("Self"),b=h("SkipSelf"),_="undefined"!=typeof window&&window,w="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,C=_||"undefined"!=typeof t&&t||w,E=Promise.resolve(0),S=null;function T(){if(!S){var t=C.Symbol;if(t&&t.iterator)S=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(S=r)}}return S}function O(t){"undefined"==typeof Zone?E.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function x(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function A(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(A).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function P(t){return t.__forward_ref__=P,t.toString=function(){return A(this())},t}function k(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===P?t():t}var R="__source",N=new Object,j=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=N),e===N)throw new Error("NullInjectorError: No provider for "+A(t)+"!");return e},t}(),I=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new q(t,e):new q(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=N,t.NULL=new j,t}(),D=function(t){return t},M=[],V=D,L=function(){return Array.prototype.slice.call(arguments)},F={},U=function(t){for(var e in t)if(t[e]===F)return e;throw Error("!prop")}({provide:String,useValue:F}),H=I.NULL,B=/\n/gm,z="\u0275",q=function(){function t(t,e,n){void 0===e&&(e=H),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(I,{token:I,fn:D,deps:M,value:this,useNew:!1}),function t(e,n){if(n)if((n=k(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw G("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw G("Unexpected provider",n);var i=k(n.provide),o=function(t){var e=function(t){var e=M,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6;if((u=k(n[r]))instanceof Array)for(var o=0,s=u;o<s.length;o++){var a=s[o];a instanceof m||a==m?i|=1:a instanceof b||a==b?i&=-3:a instanceof g||a==g?i&=-5:u=a instanceof v?a.token:k(a)}e.push({token:u,options:i})}}else if(t.useExisting){var u;e=[{token:u=k(t.useExisting),options:6}]}else if(!(n||U in t))throw G("'deps' required",t);return e}(t),n=D,r=M,i=!1,o=k(t.provide);if(U in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)i=!0,n=k(t.useClass);else{if("function"!=typeof o)throw G("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);i=!0,n=o}return{deps:e,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var s=e.get(i);if(s){if(s.fn!==L)throw W(i)}else e.set(i,s={token:n.provide,deps:[],useNew:!1,fn:L,value:M});s.deps.push({token:i=n,options:6})}var a=e.get(i);if(a&&a.fn==L)throw W(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e){var n=this._records.get(t);try{return function t(e,n,r,i,o){try{return function(e,n,r,i,o){var s,a;if(n){if((s=n.value)==V)throw Error(z+"Circular dependency");if(s===M){n.value=V;var u=n.useNew,l=n.fn,c=n.deps,h=M;if(c.length){h=[];for(var p=0;p<c.length;p++){var f=c[p],d=f.options,y=2&d?r.get(f.token):void 0;h.push(t(f.token,y,r,y||4&d?i:H,1&d?null:I.THROW_IF_NOT_FOUND))}}n.value=s=u?new((a=l).bind.apply(a,[void 0].concat(h))):l.apply(void 0,h)}}else s=i.get(e,o);return s}(e,n,r,i,o)}catch(t){throw t instanceof Error||(t=new Error(t)),(t.ngTempTokenPath=t.ngTempTokenPath||[]).unshift(e),n&&n.value==V&&(n.value=M),t}}(t,n,this._records,this.parent,e)}catch(e){var r=e.ngTempTokenPath;throw t[R]&&r.unshift(t[R]),e.message=Y("\n"+e.message,r,this.source),e.ngTokenPath=r,e.ngTempTokenPath=null,e}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(A(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function W(t){return G("Cannot mix multi providers and regular providers",t)}function Y(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==z?t.substr(2):t;var r=A(e);if(e instanceof Array)r=e.map(A).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):A(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(B,"\n ")}function G(t,e){return new Error(Y(t,e))}var X="ngDebugContext",Q="ngOriginalError",Z="ngErrorLogger";function K(t){return t[X]}function $(t){return t[Q]}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}var tt=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t[Z]||J}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?K(t)?K(t):this._findContext($(t)):null},t.prototype._findOriginalError=function(t){for(var e=$(t);e&&$(e);)e=$(e);return e},t}();function et(t){return!!t&&"function"==typeof t.then}function nt(t){return!!t&&"function"==typeof t.subscribe}Function;var rt=new l("Application Initializer"),it=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();et(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t}(),ot=new l("AppId");function st(){return""+at()+at()+at()}function at(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var ut=new l("Platform Initializer"),lt=new l("Platform ID"),ct=new l("appBootstrapListener"),ht=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t.ctorParameters=function(){return[]},t}();function pt(){throw new Error("Runtime compiler is not loaded")}var ft=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw pt()},t.prototype.compileModuleAsync=function(t){throw pt()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw pt()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw pt()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}(),dt=function(){},yt=function(){};function vt(t){var e=Error("No component factory found for "+A(t)+". Did you add it to @NgModule.entryComponents?");return e[bt]=t,e}var mt,gt,bt="ngComponent",_t=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw vt(t)},t}(),wt=function(){function t(){}return t.NULL=new _t,t}(),Ct=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw vt(t);return new Et(e,this._ngModule)},t}(),Et=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return Object(r.b)(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(yt),St=function(){},Tt=function(){},Ot=function(){var t=C.wtf;return!(!t||!(mt=t.trace)||(gt=mt.events,0))}();function xt(t,e){return null}var At=Ot?function(t,e){return void 0===e&&(e=null),gt.createScope(t,e)}:function(t,e){return xt},Pt=Ot?function(t,e){return mt.leaveScope(t,e),e}:function(t,e){return e},kt=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Object(r.b)(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=t.prototype.subscribe.call(this,i,o,s);return e instanceof u.a&&e.add(a),a},e}(a.a),Rt=function(){function t(t){var e,n=t.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kt(!1),this.onMicrotaskEmpty=new kt(!1),this.onStable=new kt(!1),this.onError=new kt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(e=this)._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,n,r,i,o,s){try{return Dt(e),t.invokeTask(r,i,o,s)}finally{Mt(e)}},onInvoke:function(t,n,r,i,o,s,a){try{return Dt(e),t.invoke(r,i,o,s,a)}finally{Mt(e)}},onHasTask:function(t,n,r,i){t.hasTask(r,i),n===r&&("microTask"==i.change?(e.hasPendingMicrotasks=i.microTask,It(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,n,r,i){return t.handleError(r,i),e.runOutsideAngular(function(){return e.onError.emit(i)}),!1}})}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,jt,Nt,Nt);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Nt(){}var jt={};function It(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function Dt(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Mt(t){t._nesting--,It(t)}var Vt=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kt,this.onMicrotaskEmpty=new kt,this.onStable=new kt,this.onError=new kt}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),Lt=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Rt.assertNotInAngularZone(),O(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?O(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Ft=function(){function t(){this._applications=new Map,Bt.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Bt.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}();function Ut(t){Bt=t}var Ht,Bt=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),zt=!0,qt=!1,Wt=new l("AllowMultipleToken");function Yt(){if(qt)throw new Error("Cannot enable prod mode after platform setup.");zt=!1}function Gt(){return qt=!0,zt}var Xt=function(t,e){this.name=t,this.token=e};function Qt(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new l(r);return function(e){void 0===e&&(e=[]);var o=Zt();if(!o||o.injector.get(Wt,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var s=n.concat(e).concat({provide:i,useValue:!0});!function(t){if(Ht&&!Ht.destroyed&&!Ht.injector.get(Wt,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ht=t.get(Kt);var e=t.get(ut,null);e&&e.forEach(function(t){return t()})}(I.create({providers:s,name:r}))}return function(t){var e=Zt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function Zt(){return Ht&&!Ht.destroyed?Ht:null}var Kt=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,i="noop"===(n=e?e.ngZone:void 0)?new Vt:("zone.js"===n?void 0:n)||new Rt({enableLongStackTrace:Gt()}),o=[{provide:Rt,useValue:i}];return i.run(function(){var e=I.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),s=n.injector.get(tt,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return te(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(t){s.handleError(t)}})}),function(t,e,i){try{var o=((s=n.injector.get(it)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return et(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var s}(s,i)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(dt),i=$t({},e);return r.createCompiler([i]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,i)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Jt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+A(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function $t(t,e){return Array.isArray(e)?e.reduce($t,t):Object(r.a)({},t,e)}var Jt=function(){function t(t,e,n,r,a,u){var l=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Gt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var c=new i.a(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),h=new i.a(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){Rt.assertNotInAngularZone(),O(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){Rt.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,s.a.call(h))}return t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof yt?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof Et?null:this._injector.get(St),o=n.create(I.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(Lt,null);return s&&o.injector.get(Ft).registerApplication(o.location.nativeElement,s),this._loadComponent(o),Gt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,Pt(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;te(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ct,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),te(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=At("ApplicationRef#tick()"),t}();function te(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ee=function(){},ne=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}(),re=function(){},ie=function(t){this.nativeElement=t},oe=function(){},se=function(){function t(){this.dirty=!0,this._results=[],this.changes=new kt,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[T()]=function(){return this._results[T()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),ae=function(){},ue={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},le=function(){function t(t,e){this._compiler=t,this._config=e||ue}return t.prototype.load=function(t){return this._compiler instanceof ft?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),i=r[0],o=r[1];return void 0===o&&(o="default"),n("Jnfr")(i).then(function(t){return t[o]}).then(function(t){return ce(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("Jnfr")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return ce(t,r,i)})},t}();function ce(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var he=function(){},pe=function(){},fe=function(){},de=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof ye?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),ye=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(r.b)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return ve(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return me(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(de);function ve(t,e,n){t.childNodes.forEach(function(t){t instanceof ye&&(e(t)&&n.push(t),ve(t,e,n))})}function me(t,e,n){t instanceof ye&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof ye&&me(t,e,n)})}var ge=new Map;function be(t){return ge.get(t)||null}function _e(t){ge.set(t.nativeNode,t)}function we(t,e){var n=Se(t),r=Se(e);return n&&r?function(t,e,n){for(var r=t[T()](),i=e[T()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(t,e,we):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||x(t,e)}var Ce=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Ee=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Se(t){return!!Te(t)&&(Array.isArray(t)||!(t instanceof Map)&&T()in t)}function Te(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Oe=function(){function t(){}return t.prototype.supports=function(t){return Se(t)},t.prototype.create=function(t){return new Ae(t)},t}(),xe=function(t,e){return e},Ae=function(){function t(t){this.length=0,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=t||xe}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<Ne(n,r,i)?e:n,s=Ne(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,l=a-r;if(u!=l){for(var c=0;c<u;c++){var h=c<i.length?i[c]:i[c]=0,p=h+c;l<=p&&p<u&&(i[c]=h+1)}i[o.previousIndex]=l-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!Se(t))throw new Error("Error trying to diff '"+A(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(var a=0;a<this.length;a++)i=this._trackByFn(a,r=t[a]),null!==o&&x(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),x(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[T()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&x(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),x(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(x(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(x(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new Pe(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}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)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Re),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Re),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),Pe=function(t,e){this.item=t,this.trackById=e,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},ke=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&x(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),Re=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new ke,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function Ne(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var je=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Te(t)},t.prototype.create=function(){return new Ie},t}(),Ie=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=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(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Te(t)))throw new Error("Error trying to diff '"+A(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new De(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){x(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),De=function(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},Me=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return new t(e=e.concat(r))}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new b,new m]]}},t.prototype.find=function(t){var e,n=this.factories.find(function(e){return e.supports(t)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t}(),Ve=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new b,new m]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Le=[new je],Fe=new Me([new Oe]),Ue=new Ve(Le),He=Qt(null,"core",[{provide:lt,useValue:"unknown"},{provide:Kt,deps:[I]},{provide:Ft,deps:[]},{provide:ht,deps:[]}]),Be=new l("LocaleId");function ze(){return Fe}function qe(){return Ue}function We(t){return t||"en-US"}var Ye=function(t){},Ge=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),Xe=function(){};function Qe(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Ze(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Ke(t,e){return t.nodes[e]}function $e(t,e){return t.nodes[e]}function Je(t,e){return t.nodes[e]}function tn(t,e){return t.nodes[e]}function en(t,e){return t.nodes[e]}var nn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function rn(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return on(n,e),n}(i,t)}function on(t,e){t[X]=e,t[Z]=e.logError.bind(e)}function sn(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var an=function(){},un=new Map;function ln(t){var e=un.get(t);return e||(e=A(t)+"_"+un.size,un.set(t,e)),e}function cn(t,e,n,r){if(Ce.isWrapped(r)){r=Ce.unwrap(r);var i=t.def.nodes[e].bindingIndex+n,o=Ce.unwrap(t.oldValues[i]);t.oldValues[i]=new Ce(o)}return r}var hn="$$undefined",pn="$$empty";function fn(t){return{id:hn,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var dn=0;function yn(t,e,n,r){return!(!(2&t.state)&&x(t.oldValues[e.bindingIndex+n],r))}function vn(t,e,n,r){return!!yn(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function mn(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!we(i,r)){var o=e.bindings[n].name;throw rn(nn.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function gn(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function bn(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function _n(t,e,n,r){try{return gn(33554432&t.def.nodes[e].flags?$e(t,e).componentView:t),nn.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function wn(t){return t.parent?$e(t.parent,t.parentNodeDef.nodeIndex):null}function Cn(t){return t.parent?t.parentNodeDef.parent:null}function En(t,e){switch(201347067&e.flags){case 1:return $e(t,e.nodeIndex).renderElement;case 2:return Ke(t,e.nodeIndex).renderText}}function Sn(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Tn(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function On(t){return 1<<t%32}function xn(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=t[0],o=t[1];"number"==typeof i?(e[i]=o,n|=On(i)):r[i]=o}),{matchedQueries:e,references:r,matchedQueryIds:n}}function An(t,e){return t.map(function(t){var n,r;return Array.isArray(t)?(r=t[0],n=t[1]):(r=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,R,{value:e,configurable:!0}),{flags:r,token:n,tokenKey:ln(n)}})}function Pn(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===f.Native?$e(t,n.renderParent.nodeIndex).renderElement:void 0:e}var kn=new WeakMap;function Rn(t){var e=kn.get(t);return e||((e=t(function(){return an})).factory=t,kn.set(t,e)),e}function Nn(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(En(t,t.def.lastRenderRootNode))),jn(t,e,0,t.def.nodes.length-1,n,r,i)}function jn(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&Dn(t,u,e,i,o,s),a+=u.childCount}}function In(t,e,n,r,i,o){for(var s=t;s&&!Sn(s);)s=s.parent;for(var a=s.parent,u=Cn(s),l=u.nodeIndex+u.childCount,c=u.nodeIndex+1;c<=l;c++){var h=a.def.nodes[c];h.ngContentIndex===e&&Dn(a,h,n,r,i,o),c+=h.childCount}if(!a.parent){var p=t.root.projectableNodes[e];if(p)for(c=0;c<p.length;c++)Mn(t,p[c],n,r,i,o)}}function Dn(t,e,n,r,i,o){if(8&e.flags)In(t,e.ngContent.index,n,r,i,o);else{var s=En(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&Mn(t,s,n,r,i,o),32&e.bindingFlags&&Mn($e(t,e.nodeIndex).componentView,s,n,r,i,o)):Mn(t,s,n,r,i,o),16777216&e.flags)for(var a=$e(t,e.nodeIndex).viewContainer._embeddedViews,u=0;u<a.length;u++)Nn(a[u],n,r,i,o);1&e.flags&&!e.element.name&&jn(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function Mn(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}var Vn=/^:([^:]+):(.+)$/;function Ln(t){if(":"===t[0]){var e=t.match(Vn);return[e[1],e[2]]}return["",t]}function Fn(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function Un(t,e,n,r,i,o,s,a,u,l,c,h,p,f,d,y,v,m,g,b){switch(t){case 1:return e+Hn(n)+r;case 2:return e+Hn(n)+r+Hn(i)+o;case 3:return e+Hn(n)+r+Hn(i)+o+Hn(s)+a;case 4:return e+Hn(n)+r+Hn(i)+o+Hn(s)+a+Hn(u)+l;case 5:return e+Hn(n)+r+Hn(i)+o+Hn(s)+a+Hn(u)+l+Hn(c)+h;case 6:return e+Hn(n)+r+Hn(i)+o+Hn(s)+a+Hn(u)+l+Hn(c)+h+Hn(p)+f;case 7:return e+Hn(n)+r+Hn(i)+o+Hn(s)+a+Hn(u)+l+Hn(c)+h+Hn(p)+f+Hn(d)+y;case 8:return e+Hn(n)+r+Hn(i)+o+Hn(s)+a+Hn(u)+l+Hn(c)+h+Hn(p)+f+Hn(d)+y+Hn(v)+m;case 9:return e+Hn(n)+r+Hn(i)+o+Hn(s)+a+Hn(u)+l+Hn(c)+h+Hn(p)+f+Hn(d)+y+Hn(v)+m+Hn(g)+b;default:throw new Error("Does not support more than 9 expressions")}}function Hn(t){return null!=t?t.toString():""}function Bn(t,e,n,r,i,o){t|=1;var s=xn(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s.matchedQueries,matchedQueryIds:s.matchedQueryIds,references:s.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?Rn(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||an},provider:null,text:null,query:null,ngContent:null}}function zn(t,e,n,r,i,o,s,a,u,l,c,h){void 0===s&&(s=[]),l||(l=an);var p=xn(n),d=p.matchedQueries,y=p.references,v=p.matchedQueryIds,m=null,g=null;o&&(m=(R=Ln(o))[0],g=R[1]),a=a||[];for(var b=new Array(a.length),_=0;_<a.length;_++){var w=a[_],C=w[0],E=w[2],S=Ln(w[1]),T=S[0],O=S[1],x=void 0,A=void 0;switch(15&C){case 4:A=E;break;case 1:case 8:x=E}b[_]={flags:C,ns:T,name:O,nonMinifiedName:O,securityContext:x,suffix:A}}u=u||[];var P=new Array(u.length);for(_=0;_<u.length;_++){var k=u[_];P[_]={type:0,target:k[0],eventName:k[1],propName:null}}var R,N=(s=s||[]).map(function(t){var e=t[1],n=Ln(t[0]);return[n[0],n[1],e]});return h=function(t){if(t&&t.id===hn){var e=null!=t.encapsulation&&t.encapsulation!==f.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+dn++:pn}return t&&t.id===pn&&(t=null),t||null}(h),c&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:v,references:y,ngContentIndex:r,childCount:i,bindings:b,bindingFlags:Fn(b),outputs:P,element:{ns:m,name:g,attrs:N,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:l||an},provider:null,text:null,query:null,ngContent:null}}function qn(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=Pn(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var l=i.attrs[u];s.setAttribute(r,l[1],l[2],l[0])}return r}function Wn(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=Yn(t,n.nodeIndex,(h=o.eventName,(c=o.target)?c+":"+h:h)),a=o.target,u=t;"component"===o.target&&(a=null,u=e);var l=u.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=l}var c,h}function Yn(t,e,n){return function(r){return _n(t,e,n,r)}}function Gn(t,e,n,r){if(!vn(t,e,n,r))return!1;var i=e.bindings[n],o=$e(t,e.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}(t,i,s,i.ns,a,r);break;case 2:!function(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,s,a,r);break;case 4:!function(t,e,n,r,i){var o=t.root.sanitizer.sanitize(Ge.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}(t,i,s,a,r);break;case 8:!function(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}var Xn=new Object,Qn=ln(I),Zn=ln(St);function Kn(t,e,n,r){return n=k(n),{index:-1,deps:An(r,A(e)),flags:t,token:e,value:n}}function $n(t){for(var e={},n=0;n<t.length;n++){var r=t[n];r.index=n,e[ln(r.token)]=r}return{factory:null,providersByKey:e,providers:t}}function Jn(t,e,n){if(void 0===n&&(n=I.THROW_IF_NOT_FOUND),8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var r=e.tokenKey;switch(r){case Qn:case Zn:return t}var i=t._def.providersByKey[r];if(i){var o=t._providers[i.index];return void 0===o&&(o=t._providers[i.index]=tr(t,i)),o===Xn?void 0:o}return t._parent.get(e.token,n)}function tr(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Jn(t,n[0]));case 2:return new e(Jn(t,n[0]),Jn(t,n[1]));case 3:return new e(Jn(t,n[0]),Jn(t,n[1]),Jn(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=Jn(t,n[o]);return new(e.bind.apply(e,[void 0].concat(i)))}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(Jn(t,n[0]));case 2:return e(Jn(t,n[0]),Jn(t,n[1]));case 3:return e(Jn(t,n[0]),Jn(t,n[1]),Jn(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=Jn(t,n[o]);return e.apply(void 0,i)}}(t,e.value,e.deps);break;case 2048:n=Jn(t,e.deps[0]);break;case 256:n=e.value}return void 0===n?Xn:n}function er(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,or(n,e),nn.dirtyParentQueries(r),rr(r),r}function nr(t,e,n){var r=e?En(e,e.def.lastRenderRootNode):t.renderElement;Nn(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function rr(t){Nn(t,3,null,null,void 0)}function ir(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function or(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var sr=new Object;function ar(t,e,n,r,i,o){return new ur(t,e,n,r,i,o)}var ur=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=Rn(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=nn.createRootView(t,e||[],n,i,r,sr),a=Je(s,o).instance;return n&&s.renderer.setAttribute($e(s,0).renderElement,"ng-version",y.full),new lr(s,new fr(s),a)},e}(yt),lr=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new ie($e(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new mr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(function(){});function cr(t,e,n){return new hr(t,e,n)}var hr=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new ie(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new mr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Cn(t),t=t.parent;return t?new mr(t,e):new mr(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=er(this._data,t);nn.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new fr(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof Et||(i=o.get(St));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,s=t;return i=s._view,o=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=o.length),i.viewContainerParent=this._view,ir(o,r,i),function(t,e){var n=wn(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),nn.dirtyParentQueries(i),nr(n,r>0?o[r-1]:null,i),s.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,s,a=this._embeddedViews.indexOf(t._view);return i=e,s=(o=(n=this._data).viewContainer._embeddedViews)[r=a],or(o,r),null==i&&(i=o.length),ir(o,i,s),nn.dirtyParentQueries(s),rr(s),nr(n,i>0?o[i-1]:null,s),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=er(this._data,t);e&&nn.destroyView(e)},t.prototype.detach=function(t){var e=er(this._data,t);return e?new fr(e):null},t}();function pr(t){return new fr(t)}var fr=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Nn(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){gn(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{nn.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){nn.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),nn.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,rr(this._view),nn.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function dr(t,e){return new yr(t,e)}var yr=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.b)(e,t),e.prototype.createEmbeddedView=function(t){return new fr(nn.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ie($e(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(he);function vr(t,e){return new mr(t,e)}var mr=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=I.THROW_IF_NOT_FOUND),nn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:ln(t)},e)},t}();function gr(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=$e(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Ke(t,n.nodeIndex).renderText;if(20240&n.flags)return Je(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function br(t){return new _r(t.renderer)}var _r=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Ln(e),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=Ln(e),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function wr(t,e,n,r){return new Cr(t,e,n,r)}var Cr=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||(n[r]=tr(t,i))}}(this)}return t.prototype.get=function(t,e){return void 0===e&&(e=I.THROW_IF_NOT_FOUND),Jn(this,{token:t,tokenKey:ln(t),flags:0},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(wt)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+A(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){var i=t._providers[r];i&&i!==Xn&&i.ngOnDestroy()}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Er=ln(function(){}),Sr=ln(re),Tr=ln(ie),Or=ln(pe),xr=ln(he),Ar=ln(fe),Pr=ln(I);function kr(t,e,n,r,i,o,s,a){var u=[];if(s)for(var l in s){var c=s[l];u[c[0]]={flags:8,name:l,nonMinifiedName:c[1],ns:null,securityContext:null,suffix:null}}var h=[];if(a)for(var p in a)h.push({type:1,propName:p,target:null,eventName:a[p]});return jr(t,e|=16384,n,r,i,i,o,u,h)}function Rr(t,e,n){return jr(-1,t|=16,null,0,e,e,n)}function Nr(t,e,n,r,i){return jr(-1,t,e,0,n,r,i)}function jr(t,e,n,r,i,o,s,a,u){var l=xn(n),c=l.matchedQueries,h=l.references,p=l.matchedQueryIds;u||(u=[]),a||(a=[]),o=k(o);var f=An(s,A(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:h,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Fn(a),outputs:u,element:null,provider:{token:i,value:o,deps:f},text:null,query:null,ngContent:null}}function Ir(t,e){return Lr(t,e)}function Dr(t,e){for(var n=t;n.parent&&!Sn(n);)n=n.parent;return Fr(n.parent,Cn(n),!0,e.provider.value,e.provider.deps)}function Mr(t,e){var n=Fr(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r<e.outputs.length;r++){var i=e.outputs[r],o=n[i.propName].subscribe(Vr(t,e.parent.nodeIndex,i.eventName));t.disposables[e.outputIndex+r]=o.unsubscribe.bind(o)}return n}function Vr(t,e,n){return function(r){return _n(t,e,n,r)}}function Lr(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return Fr(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Hr(t,e,n,i[0]));case 2:return r(Hr(t,e,n,i[0]),Hr(t,e,n,i[1]));case 3:return r(Hr(t,e,n,i[0]),Hr(t,e,n,i[1]),Hr(t,e,n,i[2]));default:for(var s=Array(o),a=0;a<o;a++)s[a]=Hr(t,e,n,i[a]);return r.apply(void 0,s)}}(t,e.parent,n,r.value,r.deps);case 2048:return Hr(t,e.parent,n,r.deps[0]);case 256:return r.value}}function Fr(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(Hr(t,e,n,i[0]));case 2:return new r(Hr(t,e,n,i[0]),Hr(t,e,n,i[1]));case 3:return new r(Hr(t,e,n,i[0]),Hr(t,e,n,i[1]),Hr(t,e,n,i[2]));default:for(var s=new Array(o),a=0;a<o;a++)s[a]=Hr(t,e,n,i[a]);return new(r.bind.apply(r,[void 0].concat(s)))}}var Ur={};function Hr(t,e,n,r,i){if(void 0===i&&(i=I.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;for(s===Ar&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case Er:return br(Br(t,e,n));case Sr:return Br(t,e,n).renderer;case Tr:return new ie($e(t,e.nodeIndex).renderElement);case Or:return $e(t,e.nodeIndex).viewContainer;case xr:if(e.element.template)return $e(t,e.nodeIndex).template;break;case Ar:return pr(Br(t,e,n));case Pr:return vr(t,e);default:var a=(n?e.element.allProviders:e.element.publicProviders)[s];if(a){var u=Je(t,a.nodeIndex);return u||(u={instance:Lr(t,a)},t.nodes[a.nodeIndex]=u),u.instance}}n=Sn(t),e=Cn(t),t=t.parent}var l=o.root.injector.get(r.token,Ur);return l!==Ur||i===Ur?l:o.root.ngModule.injector.get(r.token,i)}function Br(t,e,n){var r;if(n)r=$e(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!Sn(r);)r=r.parent;return r}function zr(t,e,n,r,i,o){if(32768&n.flags){var s=$e(t,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(e.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var a=Ce.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Ee(a,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function qr(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],s=o.parent;for(!s&&o.flags&e&&Yr(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&e&&(r=Wr(t,s,e,r)),s=s.parent}}function Wr(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&Yr(t,i,o.flags&n,r++),i+=o.childCount}return r}function Yr(t,e,n,r){var i=Je(t,e);if(i){var o=i.instance;o&&(nn.setCurrentNode(t,e),1048576&n&&Ze(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Ze(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function Gr(t,e,n){var r=[];for(var i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:On(e),bindings:r},ngContent:null}}function Xr(t){for(var e=t.def.nodeMatchedQueries;t.parent&&Tn(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&en(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o;134217728&(o=t.def.nodes[i]).flags&&536870912&o.flags&&en(t,i).setDirty(),i+=o.childCount}}function Qr(t,e){var n=en(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=Zr(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=Je(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=Zr(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var l=s[u],c=void 0;switch(l.bindingType){case 0:c=n.first;break;case 1:c=n,a=!0}r[l.propName]=c}a&&n.notifyOnChanges()}}function Zr(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(Kr(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=$e(t,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(Zr(t,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var l=u.viewContainer._embeddedViews,c=0;c<l.length;c++){var h=l[c],p=wn(h);p&&p===u&&Zr(h,0,h.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(c=0;c<f.length;c++){var d=f[c];Zr(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function Kr(t,e,n){if(null!=n)switch(n){case 1:return $e(t,e.nodeIndex).renderElement;case 0:return new ie($e(t,e.nodeIndex).renderElement);case 2:return $e(t,e.nodeIndex).template;case 3:return $e(t,e.nodeIndex).viewContainer;case 4:return Je(t,e.nodeIndex).instance}}function $r(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function Jr(t,e,n){var r=Pn(t,e,n);r&&In(t,n.ngContent.index,1,r,null,void 0)}function ti(t,e){return ni(128,t,new Array(e+1))}function ei(t,e){return ni(32,t,new Array(e))}function ni(t,e,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Fn(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function ri(t,e,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function ii(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=Pn(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function oi(t,e){return(null!=t?t.toString():"")+e.suffix}function si(t,e,n,r){for(var i=0,o=0,s=0,a=0,u=0,l=null,c=null,h=!1,p=!1,f=null,d=0;d<e.length;d++){var y=e[d];if(y.nodeIndex=d,y.parent=l,y.bindingIndex=i,y.outputIndex=o,y.renderParent=c,s|=y.flags,u|=y.matchedQueryIds,y.element){var v=y.element;v.publicProviders=l?l.element.publicProviders:Object.create(null),v.allProviders=v.publicProviders,h=!1,p=!1,y.element.template&&(u|=y.element.template.nodeMatchedQueries)}if(ui(l,y,e.length),i+=y.bindings.length,o+=y.outputs.length,!c&&3&y.flags&&(f=y),20224&y.flags){h||(h=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var m=0!=(32768&y.flags);0==(8192&y.flags)||m?l.element.publicProviders[ln(y.provider.token)]=y:(p||(p=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[ln(y.provider.token)]=y),m&&(l.element.componentProvider=y)}if(l?(l.childFlags|=y.flags,l.directChildFlags|=y.flags,l.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(l.childMatchedQueries|=y.element.template.nodeMatchedQueries)):a|=y.flags,y.childCount>0)l=y,ai(y)||(c=y);else for(;l&&d===l.nodeIndex+l.childCount;){var g=l.parent;g&&(g.childFlags|=l.childFlags,g.childMatchedQueries|=l.childMatchedQueries),c=(l=g)&&ai(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||an,updateRenderer:r||an,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:f}}function ai(t){return 0!=(1&t.flags)&&null===t.element.name}function ui(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function li(t,e,n,r){var i=pi(t.root,t.renderer,t,e,n);return fi(i,t.component,r),di(i),i}function ci(t,e,n){var r=pi(t,t.renderer,null,null,e);return fi(r,n,n),di(r),r}function hi(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,pi(t.root,i,t,e.element.componentProvider,n)}function pi(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function fi(t,e,n){t.component=e,t.context=n}function di(t){var e;Sn(t)&&(e=$e(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];nn.setCurrentNode(t,i);var s=void 0;switch(201347067&o.flags){case 1:var a=qn(t,e,o),u=void 0;if(33554432&o.flags){var l=Rn(o.element.componentView);u=nn.createComponentView(t,o,l,a)}Wn(t,u,o,a),s={renderElement:a,componentView:u,viewContainer:null,template:o.element.template?dr(t,o):void 0},16777216&o.flags&&(s.viewContainer=cr(t,o,s));break;case 2:s=ii(t,e,o);break;case 512:case 1024:case 2048:case 256:(s=r[i])||4096&o.flags||(s={instance:Ir(t,o)});break;case 16:s={instance:Dr(t,o)};break;case 16384:(s=r[i])||(s={instance:Mr(t,o)}),32768&o.flags&&fi($e(t,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new se;break;case 8:Jr(t,e,o),s=void 0}r[i]=s}Ei(t,Ci.CreateViewNodes),xi(t,201326592,268435456,0)}function yi(t){gi(t),nn.updateDirectives(t,1),Si(t,Ci.CheckNoChanges),nn.updateRenderer(t,1),Ei(t,Ci.CheckNoChanges),t.state&=-97}function vi(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Qe(t,0,256),gi(t),nn.updateDirectives(t,0),Si(t,Ci.CheckAndUpdate),xi(t,67108864,536870912,0);var e=Qe(t,256,512);qr(t,2097152|(e?1048576:0)),nn.updateRenderer(t,0),Ei(t,Ci.CheckAndUpdate),xi(t,134217728,536870912,0),qr(t,8388608|((e=Qe(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Qe(t,768,1024)}function mi(t,e,n,r,i,o,s,a,u,l,c,h,p){return 0===n?function(t,e,n,r,i,o,s,a,u,l,c,h){switch(201347067&e.flags){case 1:return function(t,e,n,r,i,o,s,a,u,l,c,h){var p=e.bindings.length,f=!1;return p>0&&Gn(t,e,0,n)&&(f=!0),p>1&&Gn(t,e,1,r)&&(f=!0),p>2&&Gn(t,e,2,i)&&(f=!0),p>3&&Gn(t,e,3,o)&&(f=!0),p>4&&Gn(t,e,4,s)&&(f=!0),p>5&&Gn(t,e,5,a)&&(f=!0),p>6&&Gn(t,e,6,u)&&(f=!0),p>7&&Gn(t,e,7,l)&&(f=!0),p>8&&Gn(t,e,8,c)&&(f=!0),p>9&&Gn(t,e,9,h)&&(f=!0),f}(t,e,n,r,i,o,s,a,u,l,c,h);case 2:return function(t,e,n,r,i,o,s,a,u,l,c,h){var p=!1,f=e.bindings,d=f.length;if(d>0&&vn(t,e,0,n)&&(p=!0),d>1&&vn(t,e,1,r)&&(p=!0),d>2&&vn(t,e,2,i)&&(p=!0),d>3&&vn(t,e,3,o)&&(p=!0),d>4&&vn(t,e,4,s)&&(p=!0),d>5&&vn(t,e,5,a)&&(p=!0),d>6&&vn(t,e,6,u)&&(p=!0),d>7&&vn(t,e,7,l)&&(p=!0),d>8&&vn(t,e,8,c)&&(p=!0),d>9&&vn(t,e,9,h)&&(p=!0),p){var y=e.text.prefix;d>0&&(y+=oi(n,f[0])),d>1&&(y+=oi(r,f[1])),d>2&&(y+=oi(i,f[2])),d>3&&(y+=oi(o,f[3])),d>4&&(y+=oi(s,f[4])),d>5&&(y+=oi(a,f[5])),d>6&&(y+=oi(u,f[6])),d>7&&(y+=oi(l,f[7])),d>8&&(y+=oi(c,f[8])),d>9&&(y+=oi(h,f[9]));var v=Ke(t,e.nodeIndex).renderText;t.renderer.setValue(v,y)}return p}(t,e,n,r,i,o,s,a,u,l,c,h);case 16384:return function(t,e,n,r,i,o,s,a,u,l,c,h){var p=Je(t,e.nodeIndex),f=p.instance,d=!1,y=void 0,v=e.bindings.length;return v>0&&yn(t,e,0,n)&&(d=!0,y=zr(t,p,e,0,n,y)),v>1&&yn(t,e,1,r)&&(d=!0,y=zr(t,p,e,1,r,y)),v>2&&yn(t,e,2,i)&&(d=!0,y=zr(t,p,e,2,i,y)),v>3&&yn(t,e,3,o)&&(d=!0,y=zr(t,p,e,3,o,y)),v>4&&yn(t,e,4,s)&&(d=!0,y=zr(t,p,e,4,s,y)),v>5&&yn(t,e,5,a)&&(d=!0,y=zr(t,p,e,5,a,y)),v>6&&yn(t,e,6,u)&&(d=!0,y=zr(t,p,e,6,u,y)),v>7&&yn(t,e,7,l)&&(d=!0,y=zr(t,p,e,7,l,y)),v>8&&yn(t,e,8,c)&&(d=!0,y=zr(t,p,e,8,c,y)),v>9&&yn(t,e,9,h)&&(d=!0,y=zr(t,p,e,9,h,y)),y&&f.ngOnChanges(y),65536&e.flags&&Ze(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,i,o,s,a,u,l,c,h);case 32:case 64:case 128:return function(t,e,n,r,i,o,s,a,u,l,c,h){var p=e.bindings,f=!1,d=p.length;if(d>0&&vn(t,e,0,n)&&(f=!0),d>1&&vn(t,e,1,r)&&(f=!0),d>2&&vn(t,e,2,i)&&(f=!0),d>3&&vn(t,e,3,o)&&(f=!0),d>4&&vn(t,e,4,s)&&(f=!0),d>5&&vn(t,e,5,a)&&(f=!0),d>6&&vn(t,e,6,u)&&(f=!0),d>7&&vn(t,e,7,l)&&(f=!0),d>8&&vn(t,e,8,c)&&(f=!0),d>9&&vn(t,e,9,h)&&(f=!0),f){var y=tn(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(p.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=i),d>3&&(v[3]=o),d>4&&(v[4]=s),d>5&&(v[5]=a),d>6&&(v[6]=u),d>7&&(v[7]=l),d>8&&(v[8]=c),d>9&&(v[9]=h);break;case 64:v={},d>0&&(v[p[0].name]=n),d>1&&(v[p[1].name]=r),d>2&&(v[p[2].name]=i),d>3&&(v[p[3].name]=o),d>4&&(v[p[4].name]=s),d>5&&(v[p[5].name]=a),d>6&&(v[p[6].name]=u),d>7&&(v[p[7].name]=l),d>8&&(v[p[8].name]=c),d>9&&(v[p[9].name]=h);break;case 128:var m=n;switch(d){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,i);break;case 4:v=m.transform(r,i,o);break;case 5:v=m.transform(r,i,o,s);break;case 6:v=m.transform(r,i,o,s,a);break;case 7:v=m.transform(r,i,o,s,a,u);break;case 8:v=m.transform(r,i,o,s,a,u,l);break;case 9:v=m.transform(r,i,o,s,a,u,l,c);break;case 10:v=m.transform(r,i,o,s,a,u,l,c,h)}}y.value=v}return f}(t,e,n,r,i,o,s,a,u,l,c,h);default:throw"unreachable"}}(t,e,r,i,o,s,a,u,l,c,h,p):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i<n.length;i++)Gn(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)vn(t,e,o,n[o])&&(i=!0);if(i){var s="";for(o=0;o<n.length;o++)s+=oi(n[o],r[o]);s=e.text.prefix+s;var a=Ke(t,e.nodeIndex).renderText;t.renderer.setValue(a,s)}return i}(t,e,n);case 16384:return function(t,e,n){for(var r=Je(t,e.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)yn(t,e,a,n[a])&&(o=!0,s=zr(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),65536&e.flags&&Ze(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)vn(t,e,o,n[o])&&(i=!0);if(i){var s=tn(t,e.nodeIndex),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:for(a={},o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var u=n[0],l=n.slice(1);a=u.transform.apply(u,l)}s.value=a}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function gi(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=$e(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,bn(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function bi(t,e,n,r,i,o,s,a,u,l,c,h,p){return 0===n?function(t,e,n,r,i,o,s,a,u,l,c,h){var p=e.bindings.length;p>0&&mn(t,e,0,n),p>1&&mn(t,e,1,r),p>2&&mn(t,e,2,i),p>3&&mn(t,e,3,o),p>4&&mn(t,e,4,s),p>5&&mn(t,e,5,a),p>6&&mn(t,e,6,u),p>7&&mn(t,e,7,l),p>8&&mn(t,e,8,c),p>9&&mn(t,e,9,h)}(t,e,r,i,o,s,a,u,l,c,h,p):function(t,e,n){for(var r=0;r<n.length;r++)mn(t,e,r,n[r])}(t,e,r),!1}function _i(t,e){if(en(t,e.nodeIndex).dirty)throw rn(nn.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function wi(t){if(!(128&t.state)){if(Si(t,Ci.Destroy),Ei(t,Ci.Destroy),qr(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=wn(t);if(e){var n=e.template._projectedViews;n&&(or(n,n.indexOf(t)),nn.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode($e(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Ke(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&en(t,n).destroy()}}(t),Sn(t)&&t.renderer.destroy(),t.state|=128}}var Ci=function(){var t={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return t[t.CreateViewNodes]="CreateViewNodes",t[t.CheckNoChanges]="CheckNoChanges",t[t.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",t[t.Destroy]="Destroy",t}();function Ei(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?Ti($e(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Si(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=$e(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)Ti(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Ti(t,e){var n=t.state;switch(e){case Ci.CheckNoChanges:0==(128&n)&&(12==(12&n)?yi(t):64&n&&Oi(t,Ci.CheckNoChangesProjectedViews));break;case Ci.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?yi(t):64&n&&Oi(t,e));break;case Ci.CheckAndUpdate:0==(128&n)&&(12==(12&n)?vi(t):64&n&&Oi(t,Ci.CheckAndUpdateProjectedViews));break;case Ci.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?vi(t):64&n&&Oi(t,e));break;case Ci.Destroy:wi(t);break;case Ci.CreateViewNodes:di(t)}}function Oi(t,e){Si(t,e),Ei(t,e)}function xi(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(nn.setCurrentNode(t,s.nodeIndex),r){case 0:Qr(t,s);break;case 1:_i(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}var Ai=!1;function Pi(t,e,n,r,i,o){return ci(Ri(t,i,i.injector.get(ee),e,n),r,o)}function ki(t,e,n,r,i,o){var s=i.injector.get(ee),a=Ri(t,i,new co(s),e,n),u=Ui(r);return uo(Qi.create,ci,null,[a,u,o])}function Ri(t,e,n,r,i){var o=e.injector.get(Xe),s=e.injector.get(tt);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function Ni(t,e,n,r){var i=Ui(n);return uo(Qi.create,li,null,[t,e,i,r])}function ji(t,e,n,r){return n=Mi.get(e.element.componentProvider.provider.token)||Ui(n),uo(Qi.create,hi,null,[t,e,n,r])}function Ii(t,e,n,r){return wr(t,e,n,function(t){var e=function(t){var e=!1,n=!1;return 0===Di.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=Di.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),n=e.hasDeprecatedOverrides;return e.hasOverrides?(function(t){for(var e=0;e<t.providers.length;e++){var r=t.providers[e];n&&(r.flags|=4096);var i=Di.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=An(i.deps),r.value=i.value)}}(t=t.factory(function(){return an})),t):t}(r))}var Di=new Map,Mi=new Map;function Vi(t){Di.set(t.token,t)}function Li(t,e){var n=Rn(Rn(e.viewDefFactory).nodes[0].element.componentView);Mi.set(t,n)}function Fi(){Di.clear(),Mi.clear()}function Ui(t){if(0===Di.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Di.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return an});for(var n=0;n<e.length;n++)r(t,e[n]);return t;function r(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=Di.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=An(o.deps),i.value=o.value)}}}}function Hi(t,e,n,r,i,o,s,a,u,l,c,h,p){var f=t.def.nodes[e];return mi(t,f,n,r,i,o,s,a,u,l,c,h,p),224&f.flags?tn(t,e).value:void 0}function Bi(t,e,n,r,i,o,s,a,u,l,c,h,p){var f=t.def.nodes[e];return bi(t,f,n,r,i,o,s,a,u,l,c,h,p),224&f.flags?tn(t,e).value:void 0}function zi(t){return uo(Qi.detectChanges,vi,null,[t])}function qi(t){return uo(Qi.checkNoChanges,yi,null,[t])}function Wi(t){return uo(Qi.destroy,wi,null,[t])}var Yi,Gi,Xi,Qi=function(){var t={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return t[t.create]="create",t[t.detectChanges]="detectChanges",t[t.checkNoChanges]="checkNoChanges",t[t.destroy]="destroy",t[t.handleEvent]="handleEvent",t}();function Zi(t,e){Gi=t,Xi=e}function Ki(t,e,n,r){return Zi(t,e),uo(Qi.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function $i(t,e){if(128&t.state)throw sn(Qi[Yi]);return Zi(t,io(t,0)),t.def.updateDirectives(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?to(t,s,r,i):eo(t,s,r,i),16384&s.flags&&Zi(t,io(t,n)),224&s.flags?tn(t,s.nodeIndex).value:void 0},t)}function Ji(t,e){if(128&t.state)throw sn(Qi[Yi]);return Zi(t,oo(t,0)),t.def.updateRenderer(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?to(t,s,r,i):eo(t,s,r,i),3&s.flags&&Zi(t,oo(t,n)),224&s.flags?tn(t,s.nodeIndex).value:void 0},t)}function to(t,e,n,r){if(mi.apply(void 0,[t,e,n].concat(r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=i[s];8&a.flags&&(o[(p=a.nonMinifiedName,"ng-reflect-"+(p=p.replace(/[$@]/g,"_").replace(no,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})))]=ro(u))}var l=e.parent,c=$e(t,l.nodeIndex).renderElement;if(l.element.name)for(var h in o)null!=(u=o[h])?t.renderer.setAttribute(c,h,u):t.renderer.removeAttribute(c,h);else t.renderer.setValue(c,"bindings="+JSON.stringify(o,null,2))}}var p}function eo(t,e,n,r){bi.apply(void 0,[t,e,n].concat(r))}var no=/([A-Z])/g;function ro(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function io(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function oo(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var so=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Cn(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return $e(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return vr(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){ao(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&ao(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!Sn(t);)t=t.parent;return t.parent?$e(t.parent,Cn(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?En(this.view,this.nodeDef):En(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var o=function(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(e,n),s=-1;e.factory(function(){return++s===o?(e=t.error).bind.apply(e,[t].concat(r)):an;var e}),s<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,r))},t}();function ao(t,e,n){for(var r in e.references)n[r]=Kr(t,e,e.references[r])}function uo(t,e,n,r){var i=Yi,o=Gi,s=Xi;try{Yi=t;var a=e.apply(n,r);return Gi=o,Xi=s,Yi=i,a}catch(t){if(K(t)||!Gi)throw t;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),on(t,e),t}(t,lo())}}function lo(){return Gi?new so(Gi,Xi):null}var co=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new ho(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),ho=function(){function t(t){this.delegate=t,this.data=this.delegate.data}return t.prototype.destroyNode=function(t){!function(t){ge.delete(t.nativeNode)}(be(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=lo();if(r){var i=new ye(n,null,r);i.name=t,_e(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=lo();return n&&_e(new de(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=lo();return n&&_e(new de(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=be(t),r=be(e);n&&r&&n instanceof ye&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=be(t),i=be(e),o=be(n);r&&i&&r instanceof ye&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=be(t),r=be(e);n&&r&&n instanceof ye&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=lo();return n&&_e(new ye(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=be(t);i&&i instanceof ye&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=be(t);r&&r instanceof ye&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=be(t);n&&n instanceof ye&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=be(t);n&&n instanceof ye&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=be(t);i&&i instanceof ye&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=be(t);r&&r instanceof ye&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=be(t);r&&r instanceof ye&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=be(t);r&&r.listeners.push(new function(t,e){this.name=t,this.callback=e}(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}();function po(t,e,n){return new yo(t,e,n)}var fo,yo=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return Object(r.b)(e,t),e.prototype.create=function(t){!function(){if(!Ai){Ai=!0;var t=Gt()?{setCurrentNode:Zi,createRootView:ki,createEmbeddedView:Ni,createComponentView:ji,createNgModuleRef:Ii,overrideProvider:Vi,overrideComponentView:Li,clearOverrides:Fi,checkAndUpdateView:zi,checkNoChangesView:qi,destroyView:Wi,createDebugContext:function(t,e){return new so(t,e)},handleEvent:Ki,updateDirectives:$i,updateRenderer:Ji}:{setCurrentNode:function(){},createRootView:Pi,createEmbeddedView:li,createComponentView:hi,createNgModuleRef:wr,overrideProvider:an,overrideComponentView:an,clearOverrides:an,checkAndUpdateView:vi,checkNoChangesView:yi,destroyView:wi,createDebugContext:function(t,e){return new so(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?Hi:Bi,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?Hi:Bi,t)}};nn.setCurrentNode=t.setCurrentNode,nn.createRootView=t.createRootView,nn.createEmbeddedView=t.createEmbeddedView,nn.createComponentView=t.createComponentView,nn.createNgModuleRef=t.createNgModuleRef,nn.overrideProvider=t.overrideProvider,nn.overrideComponentView=t.overrideComponentView,nn.clearOverrides=t.clearOverrides,nn.checkAndUpdateView=t.checkAndUpdateView,nn.checkNoChangesView=t.checkNoChangesView,nn.destroyView=t.destroyView,nn.resolveDep=Hr,nn.createDebugContext=t.createDebugContext,nn.handleEvent=t.handleEvent,nn.updateDirectives=t.updateDirectives,nn.updateRenderer=t.updateRenderer,nn.dirtyParentQueries=Xr}}();var e=Rn(this._ngModuleDefFactory);return nn.createNgModuleRef(this.moduleType,t||I.NULL,this._bootstrapComponents,e)},e}(Tt);"undefined"==typeof ngDevMode&&("undefined"!=typeof window&&(window.ngDevMode=!0),"undefined"!=typeof self&&(self.ngDevMode=!0),"undefined"!=typeof t&&(t.ngDevMode=!0)),fo=function(t,e,n){return{parent:fo,id:null,node:null,data:[],ngStaticData:[],cleanup:null,renderer:null,child:null,tail:null,next:null,bindingStartIndex:null,creationMode:!0,viewHookStartIndex:null}}()}).call(e,n("DuR2"))},Xjw4:function(t,e,n){"use strict";n.d(e,"m",function(){return k}),n.d(e,"n",function(){return P}),n.d(e,"u",function(){return R}),n.d(e,"c",function(){return ct}),n.d(e,"j",function(){return N}),n.d(e,"k",function(){return I}),n.d(e,"l",function(){return M}),n.d(e,"o",function(){return F}),n.d(e,"p",function(){return U}),n.d(e,"d",function(){return ht}),n.d(e,"b",function(){return lt}),n.d(e,"e",function(){return it}),n.d(e,"s",function(){return pt}),n.d(e,"r",function(){return o}),n.d(e,"g",function(){return s}),n.d(e,"i",function(){return a}),n.d(e,"a",function(){return u}),n.d(e,"f",function(){return h}),n.d(e,"q",function(){return p}),n.d(e,"h",function(){return l}),n.d(e,"t",function(){return A});var r=n("WT6e"),i=n("TToO"),o=function(){},s=new r.o("Location Initialized"),a=function(){},u=new r.o("appBaseHref"),l=function(){function t(e){var n=this;this._subject=new r.m,this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(c(i)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,c(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function c(t){return t.replace(/\/index.html$/,"")}var h=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(i.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=l.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(a),p=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(i.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return l.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+l.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(a),f=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],d={},y=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),v=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),m=function(){var t={Narrow:0,Abbreviated:1,Wide:2,Short:3};return t[t.Narrow]="Narrow",t[t.Abbreviated]="Abbreviated",t[t.Wide]="Wide",t[t.Short]="Short",t}(),g=function(){var t={Short:0,Medium:1,Long:2,Full:3};return t[t.Short]="Short",t[t.Medium]="Medium",t[t.Long]="Long",t[t.Full]="Full",t}(),b=function(){var t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return t[t.Decimal]="Decimal",t[t.Group]="Group",t[t.List]="List",t[t.PercentSign]="PercentSign",t[t.PlusSign]="PlusSign",t[t.MinusSign]="MinusSign",t[t.Exponential]="Exponential",t[t.SuperscriptingExponent]="SuperscriptingExponent",t[t.PerMille]="PerMille",t[t.Infinity]="Infinity",t[t.NaN]="NaN",t[t.TimeSeparator]="TimeSeparator",t[t.CurrencyDecimal]="CurrencyDecimal",t[t.CurrencyGroup]="CurrencyGroup",t}();function _(t,e){return T(x(t)[10],e)}function w(t,e){return T(x(t)[11],e)}function C(t,e){return T(x(t)[12],e)}function E(t,e){var n=x(t),r=n[13][e];if("undefined"==typeof r){if(e===b.CurrencyDecimal)return n[13][b.Decimal];if(e===b.CurrencyGroup)return n[13][b.Group]}return r}function S(t){if(!t[18])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function T(t,e){for(var n=e;n>-1;n--)if("undefined"!=typeof t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function O(t){var e=t.split(":");return{hours:+e[0],minutes:+e[1]}}function x(t){var e=t.toLowerCase().replace(/_/g,"-"),n=d[e];if(n)return n;var r=e.split("-")[0];if(n=d[r])return n;if("en"===r)return f;throw new Error('Missing locale data for the locale "'+t+'".')}var A=new r.o("UseV4Plurals"),P=function(){},k=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(i.b)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return x(t)[17]}(e||this.locale)(t)){case y.Zero:return"zero";case y.One:return"one";case y.Two:return"two";case y.Few:return"few";case y.Many:return"many";default:return"other"}},e}(P);function R(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),s=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[1];if(s[0].trim()===e)return decodeURIComponent(a)}return null}var N=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(r._8)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r._24)(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),j=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),I=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(r.U)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((n=e).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new j(null,e.ngForOf,-1,-1),i),s=new D(t,o);n.push(s)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),s=new D(t,o),n.push(s))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}(),D=function(t,e){this.record=t,this.view=e},M=function(){function t(t,e){this._viewContainer=t,this._context=new V,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}(),V=function(){this.$implicit=null,this.ngIf=null},L=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),F=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}},t}(),U=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new L(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}(),H={},B=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,z=function(){var t={Short:0,ShortGMT:1,Long:2,Extended:3};return t[t.Short]="Short",t[t.ShortGMT]="ShortGMT",t[t.Long]="Long",t[t.Extended]="Extended",t}(),q=function(){var t={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,Milliseconds:6,Day:7};return t[t.FullYear]="FullYear",t[t.Month]="Month",t[t.Date]="Date",t[t.Hours]="Hours",t[t.Minutes]="Minutes",t[t.Seconds]="Seconds",t[t.Milliseconds]="Milliseconds",t[t.Day]="Day",t}(),W=function(){var t={DayPeriods:0,Days:1,Months:2,Eras:3};return t[t.DayPeriods]="DayPeriods",t[t.Days]="Days",t[t.Months]="Months",t[t.Eras]="Eras",t}();function Y(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function G(t,e,n,r,i){void 0===n&&(n="-");var o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var s=""+t;s.length<e;)s="0"+s;return r&&(s=s.substr(s.length-e)),o+s}function X(t,e,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=!1),void 0===i&&(i=!1),function(o,s){var a=function(t,e,n){switch(t){case q.FullYear:return e.getFullYear();case q.Month:return e.getMonth();case q.Date:return e.getDate();case q.Hours:return e.getHours();case q.Minutes:return e.getMinutes();case q.Seconds:return e.getSeconds();case q.Milliseconds:var r=1===n?100:2===n?10:1;return Math.round(e.getMilliseconds()/r);case q.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}(t,o,e);return(n>0||a>-n)&&(a+=n),t===q.Hours&&0===a&&-12===n&&(a=12),G(a,e,E(s,b.MinusSign),r,i)}}function Q(t,e,n,r){return void 0===n&&(n=v.Format),void 0===r&&(r=!1),function(i,o){return function(t,e,n,r,i,o){switch(n){case W.Months:return function(t,e,n){var r=x(t);return T(T([r[5],r[6]],e),n)}(e,i,r)[t.getMonth()];case W.Days:return function(t,e,n){var r=x(t);return T(T([r[3],r[4]],e),n)}(e,i,r)[t.getDay()];case W.DayPeriods:var s=t.getHours(),a=t.getMinutes();if(o){var u,l=function(t){var e=x(t);return S(e),(e[18][2]||[]).map(function(t){return"string"==typeof t?O(t):[O(t[0]),O(t[1])]})}(e),c=function(t,e,n){var r=x(t);return S(r),T(T([r[18][0],r[18][1]],e)||[],n)||[]}(e,i,r);if(l.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],i=r.hours;s>=n.hours&&a>=n.minutes&&(s<i||s===i&&a<r.minutes)&&(u=c[e])}else t.hours===s&&t.minutes===a&&(u=c[e])}),u)return u}return function(t,e,n){var r=x(t);return T(T([r[1],r[2]],e),n)}(e,i,r)[s<12?0:1];case W.Eras:return function(t,e){return T(x(t)[7],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(i,o,t,e,n,r)}}function Z(t){return function(e,n,r){var i=-1*r,o=E(n,b.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case z.Short:return(i>=0?"+":"")+G(s,2,o)+G(Math.abs(i%60),2,o);case z.ShortGMT:return"GMT"+(i>=0?"+":"")+G(s,1,o);case z.Long:return"GMT"+(i>=0?"+":"")+G(s,2,o)+":"+G(Math.abs(i%60),2,o);case z.Extended:return 0===r?"Z":(i>=0?"+":"")+G(s,2,o)+":"+G(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}var K=0,$=4;function J(t,e){return void 0===e&&(e=!1),function(n,r){var i,o,s,a;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();i=1+Math.floor((l+u)/7)}else{var c=(s=n.getFullYear(),a=new Date(s,K,1).getDay(),new Date(s,0,1+(a<=$?$:$+7)-a)),h=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+($-o.getDay()))).getTime()-c.getTime();i=1+Math.round(h/6048e5)}return G(i,t,E(r,b.MinusSign))}}var tt={};function et(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function nt(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+Object(r._24)(t)+"'")}var rt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,it=function(){function t(t){this.locale=t}return t.prototype.transform=function(e,n,r,i){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;var o,s;if("string"==typeof e&&(e=e.trim()),ot(e))o=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var a=e.split("-").map(function(t){return+t});o=new Date(a[0],a[1]-1,a[2])}else o="string"==typeof e&&(s=e.match(rt))?function(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=+(t[9]+t[10]),r=+(t[9]+t[11])),(t[8]?e.setUTCFullYear:e.setFullYear).call(e,+t[1],+t[2]-1,+t[3]);var o=+(t[4]||"0")-n,s=+(t[5]||"0")-r,a=+(t[6]||"0"),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,o,s,a,u),e}(s):new Date(e);else o=new Date(parseFloat(e));if(!ot(o))throw nt(t,e);return function(t,e,n,r){e=function t(e,n){var r=function(t){return x(t)[0]}(e);if(H[r]=H[r]||{},H[r][n])return H[r][n];var i="";switch(n){case"shortDate":i=_(e,g.Short);break;case"mediumDate":i=_(e,g.Medium);break;case"longDate":i=_(e,g.Long);break;case"fullDate":i=_(e,g.Full);break;case"shortTime":i=w(e,g.Short);break;case"mediumTime":i=w(e,g.Medium);break;case"longTime":i=w(e,g.Long);break;case"fullTime":i=w(e,g.Full);break;case"short":var o=t(e,"shortTime"),s=t(e,"shortDate");i=Y(C(e,g.Short),[o,s]);break;case"medium":var a=t(e,"mediumTime"),u=t(e,"mediumDate");i=Y(C(e,g.Medium),[a,u]);break;case"long":var l=t(e,"longTime"),c=t(e,"longDate");i=Y(C(e,g.Long),[l,c]);break;case"full":var h=t(e,"fullTime"),p=t(e,"fullDate");i=Y(C(e,g.Full),[h,p])}return i&&(H[r][n]=i),i}(n,e)||e;for(var i,o=[];e;){if(!(i=B.exec(e))){o.push(e);break}var s=(o=o.concat(i.slice(1))).pop();if(!s)break;e=s}var a=t.getTimezoneOffset();r&&(a=et(r,a),t=function(t,e,n){var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(et(e,r)-r))}(t,r));var u="";return o.forEach(function(e){var r=function(t){if(tt[t])return tt[t];var e;switch(t){case"G":case"GG":case"GGG":e=Q(W.Eras,m.Abbreviated);break;case"GGGG":e=Q(W.Eras,m.Wide);break;case"GGGGG":e=Q(W.Eras,m.Narrow);break;case"y":e=X(q.FullYear,1,0,!1,!0);break;case"yy":e=X(q.FullYear,2,0,!0,!0);break;case"yyy":e=X(q.FullYear,3,0,!1,!0);break;case"yyyy":e=X(q.FullYear,4,0,!1,!0);break;case"M":case"L":e=X(q.Month,1,1);break;case"MM":case"LL":e=X(q.Month,2,1);break;case"MMM":e=Q(W.Months,m.Abbreviated);break;case"MMMM":e=Q(W.Months,m.Wide);break;case"MMMMM":e=Q(W.Months,m.Narrow);break;case"LLL":e=Q(W.Months,m.Abbreviated,v.Standalone);break;case"LLLL":e=Q(W.Months,m.Wide,v.Standalone);break;case"LLLLL":e=Q(W.Months,m.Narrow,v.Standalone);break;case"w":e=J(1);break;case"ww":e=J(2);break;case"W":e=J(1,!0);break;case"d":e=X(q.Date,1);break;case"dd":e=X(q.Date,2);break;case"E":case"EE":case"EEE":e=Q(W.Days,m.Abbreviated);break;case"EEEE":e=Q(W.Days,m.Wide);break;case"EEEEE":e=Q(W.Days,m.Narrow);break;case"EEEEEE":e=Q(W.Days,m.Short);break;case"a":case"aa":case"aaa":e=Q(W.DayPeriods,m.Abbreviated);break;case"aaaa":e=Q(W.DayPeriods,m.Wide);break;case"aaaaa":e=Q(W.DayPeriods,m.Narrow);break;case"b":case"bb":case"bbb":e=Q(W.DayPeriods,m.Abbreviated,v.Standalone,!0);break;case"bbbb":e=Q(W.DayPeriods,m.Wide,v.Standalone,!0);break;case"bbbbb":e=Q(W.DayPeriods,m.Narrow,v.Standalone,!0);break;case"B":case"BB":case"BBB":e=Q(W.DayPeriods,m.Abbreviated,v.Format,!0);break;case"BBBB":e=Q(W.DayPeriods,m.Wide,v.Format,!0);break;case"BBBBB":e=Q(W.DayPeriods,m.Narrow,v.Format,!0);break;case"h":e=X(q.Hours,1,-12);break;case"hh":e=X(q.Hours,2,-12);break;case"H":e=X(q.Hours,1);break;case"HH":e=X(q.Hours,2);break;case"m":e=X(q.Minutes,1);break;case"mm":e=X(q.Minutes,2);break;case"s":e=X(q.Seconds,1);break;case"ss":e=X(q.Seconds,2);break;case"S":e=X(q.Milliseconds,1);break;case"SS":e=X(q.Milliseconds,2);break;case"SSS":e=X(q.Milliseconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Z(z.Short);break;case"ZZZZZ":e=Z(z.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Z(z.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Z(z.Long);break;default:return null}return tt[t]=e,e}(e);u+=r?r(t,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}(o,n,i||this.locale,r)},t}();function ot(t){return t instanceof Date&&!isNaN(t.valueOf())}var st=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),at=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),ut=new st,lt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.P.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(e){if(Object(r._10)(e))return at;if(Object(r._9)(e))return ut;throw nt(t,e)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}(),ct=function(){},ht=new r.o("DocumentToken"),pt="browser"},YWe0:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=n("Veqx").a.of},YaPU:function(t,e,n){"use strict";var r=n("AMGY"),i=n("OVmG"),o=n("tLDX"),s=n("t7NR"),a=n("+CnV"),u=n("f9aG");n.d(e,"a",function(){return l});var l=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,a=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new i.a(t,e,n):new i.a(s.a)}(t,e,n);if(r?r.call(a,this.source):a.add(this.source||!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?e=r.a.Rx.config.Promise:r.a.Promise&&(e=r.a.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:Object(u.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?t=r.a.Rx.config.Promise:r.a.Promise&&(t=r.a.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}()},bfOx:function(t,e,n){"use strict";var r=n("Xjw4"),i=n("WT6e"),o=n("TToO"),s=n("g5jc"),a=n("x6VL"),u=function(t){function e(e){t.call(this),this._value=e}return Object(o.b)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new a.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(s.a),l=n("YWe0"),c=n("Qnch");function h(t,e){return function(t,e){return Object(c.a)(t,e,1)}(t,e)(this)}var p=n("gL+p");function f(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),Object(c.a)(t,e,n)(this)}var d=n("YaPU"),y=n("zVgD"),v=n("tZ2B"),m=n("PIsA"),g=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new b(t,this.selector,this.caught))},t}(),b=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return Object(o.b)(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(Object(m.a)(this,n))}},e}(v.a);function _(t){return function(t){return function(e){var n=new g(t),r=e.lift(n);return n.caught=r}}(t)(this)}var w=n("319O");function C(){return Object(w.a)()(this)}var E=n("OVmG"),S=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return Object(o.b)(e,t),e}(Error),T=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new O(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),O=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return Object(o.b)(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){this.resultSelector?this._tryResultSelector(t,e):this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new S):(t.next(this.defaultValue),t.complete())},e}(E.a);function x(t,e,n){return function(t,e,n){return function(r){return r.lift(new T(t,e,n,r))}}(t,e,n)(this)}var A=n("i9s7"),P=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new k(t,this.predicate,this.thisArg,this.source))},t}(),k=function(t){function e(e,n,r,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return Object(o.b)(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(E.a);function R(t,e){return function(t,e){return function(n){return n.lift(new P(t,e,n))}}(t,e)(this)}var N=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),j=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return Object(o.b)(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new S)},e}(E.a);function I(t,e,n){return function(t,e,n){return function(r){return r.lift(new N(t,e,n,r))}}(t,e,n)(this)}var D=n("8D5t");function M(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(D.a)(t)(this)}function V(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new L(t,e,n))}}var L=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new F(t,this.accumulator,this.seed,this.hasSeed))},t}(),F=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return Object(o.b)(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(E.a),U=n("pU/0"),H=n("+3/4");function B(t){return function(e){return 0===t?new H.a:e.lift(new z(t))}}var z=function(){function t(t){if(this.total=t,this.total<0)throw new U.a}return t.prototype.call=function(t,e){return e.subscribe(new q(t,this.total))},t}(),q=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return Object(o.b)(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(E.a),W=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Y(t,this.defaultValue))},t}(),Y=function(t){function e(e,n){t.call(this,e),this.defaultValue=n,this.isEmpty=!0}return Object(o.b)(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(E.a),G=n("f9aG");function X(t,e){return arguments.length>=2?function(n){return Object(G.a)(V(t,e),B(1),(void 0===(r=e)&&(r=null),function(t){return t.lift(new W(r))}))(n);var r}:function(e){return Object(G.a)(V(function(e,n,r){return t(e,n,r+1)}),B(1))(e)}}var Q=n("OE0E"),Z=n("Uw6n");n.d(e,"o",function(){return tn}),n.d(e,"n",function(){return nn}),n.d(e,"q",function(){return sn}),n.d(e,"d",function(){return J}),n.d(e,"e",function(){return $}),n.d(e,"l",function(){return ze}),n.d(e,"m",function(){return Ke}),n.d(e,"k",function(){return We}),n.d(e,"i",function(){return pn}),n.d(e,"j",function(){return Tn}),n.d(e,"p",function(){return vn}),n.d(e,"b",function(){return on}),n.d(e,"f",function(){return cn}),n.d(e,"g",function(){return ln}),n.d(e,"h",function(){return un}),n.d(e,"r",function(){return hn}),n.d(e,"a",function(){return pe}),n.d(e,"s",function(){return Ge}),n.d(e,"c",function(){return Dt}),n.d(e,"t",function(){return It}),n.d(e,"u",function(){return fn}),n.d(e,"A",function(){return Cn}),n.d(e,"B",function(){return En}),n.d(e,"C",function(){return Sn}),n.d(e,"x",function(){return gn}),n.d(e,"w",function(){return mn}),n.d(e,"z",function(){return wn}),n.d(e,"v",function(){return yn}),n.d(e,"y",function(){return _n});var K=function(t,e){this.id=t,this.url=e},$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.b)(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(K),J=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return Object(o.b)(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(K),tt=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return Object(o.b)(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(K),et=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return Object(o.b)(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(K),nt=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.b)(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(K),rt=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.b)(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(K),it=function(t){function e(e,n,r,i,o){var s=t.call(this,e,n)||this;return s.urlAfterRedirects=r,s.state=i,s.shouldActivate=o,s}return Object(o.b)(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(K),ot=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.b)(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(K),st=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.b)(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(K),at=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),ut=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),lt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),ct=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),ht=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),pt=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),ft="primary",dt=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function yt(t){return new dt(t)}function vt(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var s=r[o],a=t[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}var mt=function(t,e){this.routes=t,this.module=e};function gt(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];bt(r,_t(e,r))}}function bt(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==ft)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&gt(t.children,e)}function _t(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function wt(t){var e=t.children&&t.children.map(wt);return e?Object(o.a)({},t,{children:e}):Object(o.a)({},t)}function Ct(t,e){var n,r=Object.keys(t),i=Object.keys(e);if(r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(t[n=r[o]]!==e[n])return!1;return!0}function Et(t){return Array.prototype.concat.apply([],t)}function St(t){return t.length>0?t[t.length-1]:null}function Tt(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Ot(t){var e=M.call(t);return R.call(e,function(t){return!0===t})}function xt(t){return Object(i._9)(t)?t:Object(i._10)(t)?Object(A.a)(Promise.resolve(t)):Object(l.a)(t)}function At(t,e,n){return n?function(t,e){return Ct(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Nt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Nt(s=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Nt(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var s=i.slice(0,n.segments.length),a=i.slice(n.segments.length);return!!Nt(n.segments,s)&&!!n.children[ft]&&e(n.children[ft],r,a)}(e,n,n.segments)}(t.root,e.root)}var Pt=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=yt(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Mt.serialize(this)},t}(),kt=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Tt(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Vt(this)},t}(),Rt=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=yt(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return zt(this)},t}();function Nt(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function jt(t,e){var n=[];return Tt(t.children,function(t,r){r===ft&&(n=n.concat(e(t,r)))}),Tt(t.children,function(t,r){r!==ft&&(n=n.concat(e(t,r)))}),n}var It=function(){},Dt=function(){function t(){}return t.prototype.parse=function(t){var e=new Xt(t);return new Pt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Vt(e);if(n){var r=e.children[ft]?t(e.children[ft],!1):"",i=[];return Tt(e.children,function(e,n){n!==ft&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=jt(e,function(n,r){return r===ft?[t(e.children[ft],!1)]:[r+":"+t(n,!1)]});return Vt(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Ft(t)+"="+Ft(e)}).join("&"):Ft(t)+"="+Ft(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Mt=new Dt;function Vt(t){return t.segments.map(function(t){return zt(t)}).join("/")}function Lt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ft(t){return Lt(t).replace(/%3B/gi,";")}function Ut(t){return Lt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ht(t){return decodeURIComponent(t)}function Bt(t){return Ht(t.replace(/\+/g,"%20"))}function zt(t){return""+Ut(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Ut(t)+"="+Ut(e[t])}).join(""));var e}var qt=/^[^\/()?;=&#]+/;function Wt(t){var e=t.match(qt);return e?e[0]:""}var Yt=/^[^=?&#]+/,Gt=/^[^?&#]+/,Xt=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new kt([],{}):new kt([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[ft]=new kt(t,e)),n},t.prototype.parseSegment=function(){var t=Wt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Rt(Ht(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Wt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Wt(this.remaining);r&&this.capture(n=r)}t[Ht(e)]=Ht(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Yt))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Gt);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Bt(n),s=Bt(r);if(t.hasOwnProperty(o)){var a=t[o];Array.isArray(a)||(t[o]=a=[a]),a.push(s)}else t[o]=s}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Wt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=ft);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[ft]:new kt([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Qt=function(t){this.segmentGroup=t||null},Zt=function(t){this.urlTree=t};function Kt(t){return new d.a(function(e){return e.error(new Qt(t))})}function $t(t){return new d.a(function(e){return e.error(new Zt(t))})}function Jt(t){return new d.a(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var te=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(i.v)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,ft),n=p.a.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return _.call(n,function(e){if(e instanceof Zt)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Qt)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,ft),r=p.a.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return _.call(r,function(t){if(t instanceof Qt)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,i=t.segments.length>0?new kt([],((r={})[ft]=t,r)):t;return new Pt(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?p.a.call(this.expandChildren(t,e,n),function(t){return new kt([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(l.a)({});var o=[],s=[],a={};Tt(n,function(n,i){var u=p.a.call(r.expandSegmentGroup(t,e,n,i),function(t){return a[i]=t});i===ft?o.push(u):s.push(u)});var u=C.call(l.a.apply(void 0,o.concat(s))),c=I.call(u);return p.a.call(c,function(){return a})}(n.children)},t.prototype.expandSegment=function(t,e,n,r,i,o){var s=this,a=l.a.apply(void 0,n),u=p.a.call(a,function(a){var u=s.expandSegmentAgainstRoute(t,e,n,a,r,i,o);return _.call(u,function(t){if(t instanceof Qt)return Object(l.a)(null);throw t})}),c=C.call(u),h=x.call(c,function(t){return!!t});return _.call(h,function(t,n){if(t instanceof S||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,i))return Object(l.a)(new kt([],{}));throw new Qt(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return ie(r)!==o?Kt(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Kt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?$t(o):f.call(this.lineralizeSegments(n,o),function(n){var o=new kt(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=ee(e,r,i),u=a.consumedSegments,l=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return Kt(e);var h=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?$t(h):f.call(this.lineralizeSegments(r,h),function(r){return s.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?p.a.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new kt(r,{})}):Object(l.a)(new kt(r,{}));var s=ee(e,n,r),a=s.consumedSegments,u=s.lastChild;if(!s.matched)return Kt(e);var c=r.slice(u),h=this.getChildConfig(t,n);return f.call(h,function(t){var n=t.module,r=t.routes,s=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return re(t,e,n)&&ie(n)!==ft})}(t,n)?{segmentGroup:ne(new kt(e,function(t,e){var n={};n[ft]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&&ie(o)!==ft&&(n[ie(o)]=new kt([],{}))}return n}(r,new kt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return re(t,e,n)})}(t,n)?{segmentGroup:ne(new kt(t.segments,function(t,e,n,i){for(var s={},a=0,u=r;a<u.length;a++){var l=u[a];re(t,e,l)&&!i[ie(l)]&&(s[ie(l)]=new kt([],{}))}return Object(o.a)({},i,s)}(t,n,0,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,r),u=s.segmentGroup,h=s.slicedSegments;if(0===h.length&&u.hasChildren()){var f=i.expandChildren(n,r,u);return p.a.call(f,function(t){return new kt(a,t)})}if(0===r.length&&0===h.length)return Object(l.a)(new kt(a,{}));var d=i.expandSegment(n,u,r,h,ft,!0);return p.a.call(d,function(t){return new kt(a.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Object(l.a)(new mt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(l.a)(e._loadedConfig):f.call(function(t,e){var n=e.canLoad;return n&&0!==n.length?Ot(p.a.call(Object(y.a)(n),function(n){var r=t.get(n);return xt(r.canLoad?r.canLoad(e):r(e))})):Object(l.a)(!0)}(t.injector,e),function(r){return r?p.a.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):function(t){return new d.a(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)}):Object(l.a)(new mt([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(l.a)(n);if(r.numberOfChildren>1||!r.children[ft])return Jt(t.redirectTo);r=r.children[ft]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Pt(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Tt(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return Tt(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new kt(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}();function ee(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||vt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function ne(t){if(1===t.numberOfChildren&&t.children[ft]){var e=t.children[ft];return new kt(t.segments.concat(e.segments),e.children)}return t}function re(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ie(t){return t.outlet||ft}var oe=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=se(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=se(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=ae(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return ae(t,this._root).map(function(t){return t.value})},t}();function se(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=se(t,r[n]);if(i)return i}return null}function ae(t,e){if(t===e.value)return[e];for(var n=0,r=e.children;n<r.length;n++){var i=ae(t,r[n]);if(i.length)return i.unshift(e),i}return[]}var ue=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function le(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var ce=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,ve(r,e),r}return Object(o.b)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(oe);function he(t,e){var n=function(t,e){var n=new de([],{},{},"",{},ft,e,null,t.root,-1,{});return new ye("",new ue(n,[]))}(t,e),r=new u([new Rt("",{})]),i=new u({}),o=new u({}),s=new u({}),a=new u(""),l=new pe(r,i,s,a,o,ft,e,n.root);return l.snapshot=n.root,new ce(new ue(l,[]),n)}var pe=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=p.a.call(this.params,function(t){return yt(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=p.a.call(this.queryParams,function(t){return yt(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function fe(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],s=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(s.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:Object(o.a)({},t.params,e.params),data:Object(o.a)({},t.data,e.data),resolve:Object(o.a)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var de=function(){function t(t,e,n,r,i,o,s,a,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=yt(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=yt(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),ye=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,ve(r,n),r}return Object(o.b)(e,t),e.prototype.toString=function(){return me(this._root)},e}(oe);function ve(t,e){e.value._routerState=t,e.children.forEach(function(e){return ve(t,e)})}function me(t){var e=t.children.length>0?" { "+t.children.map(me).join(", ")+" } ":"";return""+t.value+e}function ge(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ct(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Ct(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!Ct(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Ct(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function be(t,e){var n,r;return Ct(t.params,e.params)&&Nt(n=t.url,r=e.url)&&n.every(function(t,e){return Ct(t.parameters,r[e].parameters)})&&!(!t.parent!=!e.parent)&&(!t.parent||be(t.parent,e.parent))}function _e(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function we(t,e,n,r,i){var o={};return r&&Tt(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),new Pt(n.root===t?e:function t(e,n,r){var i={};return Tt(e.children,function(e,o){i[o]=e===n?r:t(e,n,r)}),new kt(e.segments,i)}(n.root,t,e),o,i)}var Ce=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&_e(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==St(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Ee=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Se(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[ft]:""+t}function Te(t,e,n){if(t||(t=new kt([],{})),0===t.segments.length&&t.hasChildren())return Oe(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var s=t.segments[i],a=Se(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!ke(a,u,s))return o;r+=2}else{if(!ke(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new kt(t.segments.slice(0,r.pathIndex),{});return o.children[ft]=new kt(t.segments.slice(r.pathIndex),t.children),Oe(o,0,i)}return r.match&&0===i.length?new kt(t.segments,{}):r.match&&!t.hasChildren()?xe(t,e,n):r.match?Oe(t,0,i):xe(t,e,n)}function Oe(t,e,n){if(0===n.length)return new kt(t.segments,{});var r=function(t){return"object"!=typeof t[0]?((e={})[ft]=t,e):void 0===t[0].outlets?((n={})[ft]=t,n):t[0].outlets;var e,n}(n),i={};return Tt(r,function(n,r){null!==n&&(i[r]=Te(t.children[r],e,n))}),Tt(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new kt(t.segments,i)}function xe(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=Ae(n[i].outlets);return new kt(r,o)}if(0===i&&_e(n[0]))r.push(new Rt(t.segments[e].path,n[0])),i++;else{var s=Se(n[i]),a=i<n.length-1?n[i+1]:null;s&&a&&_e(a)?(r.push(new Rt(s,Pe(a))),i+=2):(r.push(new Rt(s,{})),i++)}}return new kt(r,{})}function Ae(t){var e={};return Tt(t,function(t,n){null!==t&&(e[n]=xe(new kt([],{}),0,t))}),e}function Pe(t){var e={};return Tt(t,function(t,n){return e[n]=""+t}),e}function ke(t,e,n){return t==n.path&&Ct(e,n.parameters)}var Re=function(t){this.path=t,this.route=this.path[this.path.length-1]},Ne=function(t,e){this.component=t,this.route=e},je=function(){function t(t,e,n,r){this.future=t,this.curr=e,this.moduleInjector=n,this.forwardEvent=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.initialize=function(t){var e=this.future._root;this.setupChildRouteGuards(e,this.curr?this.curr._root:null,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(!this.isDeactivating()&&!this.isActivating())return Object(l.a)(!0);var e=this.runCanDeactivateChecks();return f.call(e,function(e){return e?t.runCanActivateChecks():Object(l.a)(!1)})},t.prototype.resolveData=function(t){var e=this;if(!this.isActivating())return Object(l.a)(null);var n=Object(y.a)(this.canActivateChecks),r=h.call(n,function(n){return e.runResolve(n.route,t)});return(function(t,e){return arguments.length>=2?X(t,e)(this):X(t)(this)}).call(r,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var i=this,o=le(e);t.children.forEach(function(t){i.setupRouteGuards(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),Tt(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var a=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);a?this.canActivateChecks.push(new Re(r)):(i.data=o.data,i._resolvedData=o._resolvedData),this.setupChildRouteGuards(t,e,i.component?s?s.children:null:n,r),a&&this.canDeactivateChecks.push(new Ne(s.outlet.component,o))}else o&&this.deactivateRouteAndItsChildren(e,s),this.canActivateChecks.push(new Re(r)),this.setupChildRouteGuards(t,null,i.component?s?s.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!be(t,e)||!Ct(t.queryParams,e.queryParams);case"paramsChange":default:return!be(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=le(t),i=t.value;Tt(r,function(t,r){n.deactivateRouteAndItsChildren(t,i.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new Ne(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=Object(y.a)(this.canDeactivateChecks),n=f.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return R.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=Object(y.a)(this.canActivateChecks),n=h.call(e,function(e){return Ot(Object(y.a)([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return R.call(n,function(t){return!0===t})},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new ht(t)),Object(l.a)(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new lt(t)),Object(l.a)(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Ot(p.a.call(Object(y.a)(n),function(n){var r,i=e.getToken(n,t);return r=xt(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),x.call(r)})):Object(l.a)(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return Ot(p.a.call(Object(y.a)(r),function(t){return Ot(p.a.call(Object(y.a)(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=xt(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)),x.call(i)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return Object(l.a)(!0);var i=f.call(Object(y.a)(r),function(r){var i,o=n.getToken(r,e);return i=xt(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)),x.call(i)});return R.call(i,function(t){return!0===t})},t.prototype.runResolve=function(t,e){return p.a.call(this.resolveNode(t._resolve,t),function(n){return t._resolvedData=n,t.data=Object(o.a)({},t.data,fe(t,e).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Object(l.a)({});if(1===r.length){var i=r[0];return p.a.call(this.getResolver(t[i],e),function(t){return(e={})[i]=t,e;var e})}var o={},s=f.call(Object(y.a)(r),function(r){return p.a.call(n.getResolver(t[r],e),function(t){return o[r]=t,t})});return p.a.call(I.call(s),function(){return o})},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return xt(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Ie=function(){},De=function(){function t(t,e,n,r,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i}return t.prototype.recognize=function(){try{var t=Le(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,ft),n=new de([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},ft,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ue(n,e),i=new ye(this.url,r);return this.inheritParamsAndData(i._root),Object(l.a)(i)}catch(t){return new d.a(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=fe(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=jt(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===ft?-1:e.value.outlet===ft?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var s=o[i];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof Ie))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new Ie},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new Ie;if((t.outlet||ft)!==r)throw new Ie;var i,s=[],a=[];if("**"===t.path){var u=n.length>0?St(n).parameters:{};i=new de(n,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,He(t),r,t.component,t,Me(e),Ve(e)+n.length,Be(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ie;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||vt)(n,t,e);if(!r)throw new Ie;var i={};Tt(r.posParams,function(t,e){i[e]=t.path});var s=r.consumed.length>0?Object(o.a)({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(e,t,n);s=l.consumedSegments,a=n.slice(l.lastChild),i=new de(s,l.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,He(t),r,t.component,t,Me(e),Ve(e)+s.length,Be(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=Le(e,s,a,c),p=h.segmentGroup,f=h.slicedSegments;if(0===f.length&&p.hasChildren()){var d=this.processChildren(c,p);return[new ue(i,d)]}if(0===c.length&&0===f.length)return[new ue(i,[])];var y=this.processSegment(c,p,f,ft);return[new ue(i,y)]},t}();function Me(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Ve(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Le(t,e,n,r){if(n.length>0&&function(t,e,n){return r.some(function(n){return Fe(t,e,n)&&Ue(n)!==ft})}(t,n)){var i=new kt(e,function(t,e,n,r){var i={};i[ft]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,s=n;o<s.length;o++){var a=s[o];if(""===a.path&&Ue(a)!==ft){var u=new kt([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[Ue(a)]=u}}return i}(t,e,r,new kt(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Fe(t,e,n)})}(t,n)){var s=new kt(t.segments,function(t,e,n,i){for(var s={},a=0,u=r;a<u.length;a++){var l=u[a];if(Fe(t,e,l)&&!i[Ue(l)]){var c=new kt([],{});c._sourceSegment=t,c._segmentIndexShift=t.segments.length,s[Ue(l)]=c}}return Object(o.a)({},i,s)}(t,n,0,t.children));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var a=new kt(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}function Fe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ue(t){return t.outlet||ft}function He(t){return t.data||{}}function Be(t){return t.resolve||{}}var ze=function(){},qe=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),We=new i.o("ROUTES"),Ye=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return p.a.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new mt(Et(i.injector.get(We)).map(wt),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(A.a)(this.loader.load(t)):f.call(xt(t()),function(t){return t instanceof i.t?Object(l.a)(t):Object(A.a)(e.compiler.compileModuleAsync(t))})},t}(),Ge=function(){},Xe=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Qe(t){throw t}function Ze(t){return Object(l.a)(null)}var Ke=function(){function t(t,e,n,r,o,a,l,c){var h=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=c,this.navigations=new u(null),this.navigationId=0,this.events=new s.a,this.errorHandler=Qe,this.navigated=!1,this.hooks={beforePreactivation:Ze,afterPreactivation:Ze},this.urlHandlingStrategy=new Xe,this.routeReuseStrategy=new qe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=o.get(i.v),this.resetConfig(c),this.currentUrlTree=new Pt(new kt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Ye(a,l,function(t){return h.triggerEvent(new at(t))},function(t){return h.triggerEvent(new ut(t))}),this.routerState=he(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){gt(t),this.config=t.map(wt),this.navigated=!1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,s=e.fragment,a=e.preserveQueryParams,u=e.queryParamsHandling,l=e.preserveFragment;Object(i.U)()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,h=l?this.currentUrlTree.fragment:s,p=null;if(u)switch(u){case"merge":p=Object(o.a)({},this.currentUrlTree.queryParams,r);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}else p=a?this.currentUrlTree.queryParams:r||null;return null!==p&&(p=this.removeEmptyProps(p)),function(t,e,n,r,i){if(0===n.length)return we(e.root,e.root,e,r,i);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Ce(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return Tt(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new Ce(n,e,r)}(n);if(o.toRoot())return we(e.root,new kt([],{}),e,r,i);var s=function(t,n,r){if(t.isAbsolute)return new Ee(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Ee(r.snapshot._urlSegment,!0,0);var i=_e(t.commands[0])?0:1;return function(e,n,o){for(var s=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+i,u=t.numberOfDoubleDots;u>a;){if(u-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new Ee(s,!1,a-u)}()}(o,0,t),a=s.processChildren?Oe(s.segmentGroup,s.index,o.commands):Te(s.segmentGroup,s.index,o.commands);return we(s.segmentGroup,a,e,r,i)}(c,this.currentUrlTree,t,p,h)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof Pt?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Pt)return At(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return At(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;h.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):Object(l.a)(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);var i=null,o=null,s=new Promise(function(t,e){i=t,o=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.events.next(new $(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!!i.skipLocationChange,!!i.replaceUrl,n,null)}).then(o,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.events.next(new $(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!1,!1,n,he(a,e.rootComponentType).snapshot)}).then(o,s)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,o){var s=this;return i!==this.navigationId?(this.events.next(new tt(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(a,c){var h;if(o)h=Object(l.a)({appliedUrl:t,snapshot:o});else{var d=new te(s.ngModule.injector,s.configLoader,s.urlSerializer,t,s.config).apply();h=f.call(d,function(e){return p.a.call(function(t,e,n,r,i){return void 0===i&&(i="emptyOnly"),new De(t,e,n,r,i).recognize()}(s.rootComponentType,s.config,e,s.serializeUrl(e),s.paramsInheritanceStrategy),function(n){return s.events.next(new nt(i,s.serializeUrl(t),s.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var y,v=f.call(h,function(t){return p.a.call(s.hooks.beforePreactivation(t.snapshot),function(){return t})}),m=p.a.call(v,function(t){var e=t.appliedUrl,n=t.snapshot;return(y=new je(n,s.routerState.snapshot,s.ngModule.injector,function(t){return s.triggerEvent(t)})).initialize(s.rootContexts),{appliedUrl:e,snapshot:n}}),g=f.call(m,function(e){var n=e.appliedUrl,r=e.snapshot;return s.navigationId!==i?Object(l.a)(!1):(s.triggerEvent(new rt(i,s.serializeUrl(t),n,r)),p.a.call(y.checkGuards(),function(e){return s.triggerEvent(new it(i,s.serializeUrl(t),n,r,e)),{appliedUrl:n,snapshot:r,shouldActivate:e}}))}),b=f.call(g,function(e){return s.navigationId!==i?Object(l.a)(!1):e.shouldActivate&&y.isActivating()?(s.triggerEvent(new ot(i,s.serializeUrl(t),e.appliedUrl,e.snapshot)),p.a.call(y.resolveData(s.paramsInheritanceStrategy),function(){return s.triggerEvent(new st(i,s.serializeUrl(t),e.appliedUrl,e.snapshot)),e})):Object(l.a)(e)}),_=f.call(b,function(t){return p.a.call(s.hooks.afterPreactivation(t.snapshot),function(){return t})}),w=p.a.call(_,function(t){var e,n,r,i=t.appliedUrl,o=t.shouldActivate;return o?{appliedUrl:i,state:(r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(a=r.value)._futureSnapshot=n.value;var i=function(e,n,r){return n.children.map(function(n){for(var i=0,o=r.children;i<o.length;i++){var s=o[i];if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s)}return t(e,n)})}(e,n,r);return new ue(a,i)}if(e.retrieve(n.value)){var o=e.retrieve(n.value).route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,o),o}var s,a=new pe(new u((s=n.value).url),new u(s.params),new u(s.queryParams),new u(s.fragment),new u(s.data),s.outlet,s.component,s);return i=n.children.map(function(n){return t(e,n)}),new ue(a,i)}(s.routeReuseStrategy,(e=t.snapshot)._root,(n=s.routerState)?n._root:void 0),new ce(r,e)),shouldActivate:o}:{appliedUrl:i,state:null,shouldActivate:o}});s.activateRoutes(w,s.routerState,s.currentUrlTree,i,t,e,n,r,a,c)})},t.prototype.activateRoutes=function(t,e,n,r,i,o,s,a,u,l){var c,h=this;t.forEach(function(t){var n=t.state;if(t.shouldActivate&&r===h.navigationId){if(h.currentUrlTree=t.appliedUrl,h.rawUrlTree=h.urlHandlingStrategy.merge(h.currentUrlTree,o),h.routerState=n,!s){var i=h.urlSerializer.serialize(h.rawUrlTree);h.location.isCurrentPathEqualTo(i)||a?h.location.replaceState(i):h.location.go(i)}new $e(h.routeReuseStrategy,n,e,function(t){return h.triggerEvent(t)}).activate(h.rootContexts),c=!0}else c=!1}).then(function(){c?(h.navigated=!0,h.events.next(new J(r,h.serializeUrl(i),h.serializeUrl(h.currentUrlTree))),u(!0)):(h.resetUrlToCurrentUrlTree(),h.events.next(new tt(r,h.serializeUrl(i),"")),u(!1))},function(t){if((s=t)&&s.ngNavigationCancelingError)h.navigated=!0,h.resetStateAndUrl(e,n,o),h.events.next(new tt(r,h.serializeUrl(i),t.message)),u(!1);else{h.resetStateAndUrl(e,n,o),h.events.next(new et(r,h.serializeUrl(i),t));try{u(h.errorHandler(t))}catch(t){l(t)}}var s})},t.prototype.resetStateAndUrl=function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree))},t}(),$e=function(){function t(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ge(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=le(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),Tt(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=le(t),o=t.value.component?r.children:e;Tt(i,function(t,e){return n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=le(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new pt(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ct(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(ge(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component)if(o=n.getOrCreateContext(r.outlet),this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),Je(s.route)}else{var a=function(t){for(var e=r.snapshot.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(),u=a?a.module.componentFactoryResolver:null;o.route=r,o.resolver=u,o.outlet&&o.outlet.activateWith(r,u),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,n)},t}();function Je(t){ge(t.value),t.children.forEach(Je)}var tn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof J&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(i.U)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:en(this.skipLocationChange),replaceUrl:en(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:en(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:en(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();function en(t){return""===t||!!t}var nn=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof J&&i.update()})}return t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach(function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)}))})},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}(),rn=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new on,this.attachRef=null}}(),on=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new rn,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),sn=function(){function t(t,e,n,r,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.m,this.deactivateEvents=new i.m,this.name=r||ft,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new an(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}(),an=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===pe?this.route:t===on?this.childContexts:this.parent.get(t,e)},t}(),un=function(){},ln=function(){function t(){}return t.prototype.preload=function(t,e){return _.call(e(),function(){return Object(l.a)(null)})},t}(),cn=function(){function t(){}return t.prototype.preload=function(t,e){return Object(l.a)(null)},t}(),hn=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new Ye(e,n,function(e){return t.triggerEvent(new at(e))},function(e){return t.triggerEvent(new ut(e))})}return t.prototype.setUpPreloading=function(){var t=this,e=Z.a.call(this.router.events,function(t){return t instanceof J});this.subscription=h.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(i.v);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;n.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?n.push(this.preloadConfig(t,o)):o.children&&n.push(this.processRoutes(t,o.children))}return M.call(Object(y.a)(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return f.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t}(),pn=new i.o("ROUTER_CONFIGURATION"),fn=new i.o("ROUTER_FORROOT_GUARD"),dn=[r.h,{provide:It,useClass:Dt},{provide:Ke,useFactory:_n,deps:[i.g,It,on,r.h,i.p,i.u,i.i,We,pn,[Ge,new i.y],[ze,new i.y]]},on,{provide:pe,useFactory:wn,deps:[Ke]},{provide:i.u,useClass:i.I},hn,cn,ln,{provide:pn,useValue:{enableTracing:!1}}];function yn(){return new i.w("Router",Ke)}var vn=function(){function t(t,e){}return t.forRoot=function(e,n){return{ngModule:t,providers:[dn,bn(e),{provide:fn,useFactory:gn,deps:[[Ke,new i.y,new i.H]]},{provide:pn,useValue:n||{}},{provide:r.i,useFactory:mn,deps:[r.r,[new i.n(r.a),new i.y],pn]},{provide:un,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:cn},{provide:i.w,multi:!0,useFactory:yn},[Cn,{provide:i.d,multi:!0,useFactory:En,deps:[Cn]},{provide:Tn,useFactory:Sn,deps:[Cn]},{provide:i.b,multi:!0,useExisting:Tn}]]}},t.forChild=function(e){return{ngModule:t,providers:[bn(e)]}},t}();function mn(t,e,n){return void 0===n&&(n={}),n.useHash?new r.f(t,e):new r.q(t,e)}function gn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function bn(t){return[{provide:i.a,multi:!0,useValue:t},{provide:We,multi:!0,useValue:t}]}function _n(t,e,n,r,i,o,s,a,u,l,c){void 0===u&&(u={});var h=new Ke(null,e,n,r,i,o,s,Et(a));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),u.errorHandler&&(h.errorHandler=u.errorHandler),u.enableTracing){var p=Object(Q.s)();h.events.subscribe(function(t){p.logGroup("Router Event: "+t.constructor.name),p.log(t.toString()),p.log(t),p.logGroupEnd()})}return u.onSameUrlNavigation&&(h.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=u.paramsInheritanceStrategy),h}function wn(t){return t.routerState.root}var Cn=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new s.a}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(r.g,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(Ke),i=t.injector.get(pn);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?Object(l.a)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(pn),n=this.injector.get(hn),r=this.injector.get(Ke),o=this.injector.get(i.g);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();function En(t){return t.appInitializer.bind(t)}function Sn(t){return t.bootstrapListener.bind(t)}var Tn=new i.o("Router Initializer")},cQXm:function(t,e,n){"use strict";e.a=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},dgOU:function(t,e,n){"use strict";e.a=function(t){return null!=t&&"object"==typeof t}},etqZ:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}(n("AMGY").a)},f9aG:function(t,e,n){"use strict";function r(){}function i(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:r}e.a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i(t)},e.b=i},fKB6:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={e:{}}},g5jc:function(t,e,n){"use strict";var r=n("TToO"),i=n("YaPU"),o=n("OVmG"),s=n("VwZZ"),a=n("x6VL"),u=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return Object(r.b)(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(s.a),l=n("tLDX");n.d(e,"b",function(){return c}),n.d(e,"a",function(){return h});var c=function(t){function e(e){t.call(this,e),this.destination=e}return Object(r.b)(e,t),e}(o.a),h=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return Object(r.b)(e,t),e.prototype[l.a]=function(){return new c(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.a;return this.hasError?(t.error(this.thrownError),s.a.EMPTY):this.isStopped?(t.complete(),s.a.EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(i.a),p=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return Object(r.b)(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.a.EMPTY},e}(h)},"gL+p":function(t,e,n){"use strict";e.a=function(t,e){return Object(r.a)(t,e)(this)};var r=n("HdCx")},i9s7:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=n("nsdQ").a.create},nsdQ:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("TToO"),i=n("AMGY"),o=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return Object(r.b)(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,r=this.scheduler;if(null==r)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){i.a.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return r.schedule(s,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(r.schedule(s,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(r.schedule(a,0,{err:e,subscriber:t}))}).then(null,function(t){i.a.setTimeout(function(){throw t})})},e}(n("YaPU").a);function s(t){var e=t.subscriber;e.closed||(e.next(t.value),e.complete())}function a(t){var e=t.subscriber;e.closed||e.error(t.err)}},"pU/0":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("TToO"),i=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return Object(r.b)(e,t),e}(Error)},rxKx:function(t,e,n){var r;!function(i,o,s,a){"use strict";var u,l=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),h="function",p=Math.round,f=Math.abs,d=Date.now;function y(t,e,n){return setTimeout(C(t,n),e)}function v(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function g(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==a&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var b=g(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===a)&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),_=g(function(t,e){return b(t,e,!0)},"merge","Use `assign`.");function w(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u(r,n)}function C(t,e){return function(){return t.apply(e,arguments)}}function E(t,e){return typeof t==h?t.apply(e&&e[0]||a,e):t}function S(t,e){return t===a?e:t}function T(t,e,n){m(P(e),function(e){t.addEventListener(e,n,!1)})}function O(t,e,n){m(P(e),function(e){t.removeEventListener(e,n,!1)})}function x(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function A(t,e){return t.indexOf(e)>-1}function P(t){return t.trim().split(/\s+/g)}function k(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function R(t){return Array.prototype.slice.call(t,0)}function N(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];k(i,s)<0&&r.push(t[o]),i[o]=s,o++}return n&&(r=e?r.sort(function(t,n){return t[e]>n[e]}):r.sort()),r}function j(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<l.length;){if((r=(n=l[o])?n+i:e)in t)return r;o++}return a}var I=1;function D(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var M="ontouchstart"in i,V=j(i,"PointerEvent")!==a,L=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F=25,U=1,H=4,B=8,z=1,q=2,W=4,Y=8,G=16,X=q|W,Q=Y|G,Z=X|Q,K=["x","y"],$=["clientX","clientY"];function J(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){E(t.options.enable,[t])&&n.handler(e)},this.init()}function tt(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&U&&r-i==0,s=e&(H|B)&&r-i==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=et(e)),i>1&&!n.firstMultiple?n.firstMultiple=et(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,u=s?s.center:o.center,l=e.center=nt(r);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=st(u,l),e.distance=ot(u,l),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==U&&o.eventType!==H||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=it(e.deltaX,e.deltaY);var c,h,p=rt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=f(p.x)>f(p.y)?p.x:p.y,e.scale=s?(c=s.pointers,ot((h=r)[0],h[1],$)/ot(c[0],c[1],$)):1,e.rotation=s?function(t,e){return st(r[1],r[0],$)+st(t[1],t[0],$)}(s.pointers):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,s=t.lastInterval||e,u=e.timeStamp-s.timeStamp;if(e.eventType!=B&&(u>F||s.velocity===a)){var l=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,h=rt(u,l,c);r=h.x,i=h.y,n=f(h.x)>f(h.y)?h.x:h.y,o=it(l,c),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var y=t.element;x(e.srcEvent.target,y)&&(y=e.srcEvent.target),e.target=y}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function et(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:p(t.pointers[n].clientX),clientY:p(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:nt(e),deltaX:t.deltaX,deltaY:t.deltaY}}function nt(t){var e=t.length;if(1===e)return{x:p(t[0].clientX),y:p(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:p(n/e),y:p(r/e)}}function rt(t,e,n){return{x:e/t||0,y:n/t||0}}function it(t,e){return t===e?z:f(t)>=f(e)?t<0?q:W:e<0?Y:G}function ot(t,e,n){n||(n=K);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function st(t,e,n){return n||(n=K),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}J.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(D(this.element),this.evWin,this.domHandler)}};var at={mousedown:U,mousemove:2,mouseup:H},ut="mousedown",lt="mousemove mouseup";function ct(){this.evEl=ut,this.evWin=lt,this.pressed=!1,J.apply(this,arguments)}w(ct,J,{handler:function(t){var e=at[t.type];e&U&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=H),this.pressed&&(e&H&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var ht={pointerdown:U,pointermove:2,pointerup:H,pointercancel:B,pointerout:B},pt={2:"touch",3:"pen",4:"mouse",5:"kinect"},ft="pointerdown",dt="pointermove pointerup pointercancel";function yt(){this.evEl=ft,this.evWin=dt,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(ft="MSPointerDown",dt="MSPointerMove MSPointerUp MSPointerCancel"),w(yt,J,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=ht[r],o=pt[t.pointerType]||t.pointerType,s="touch"==o,a=k(e,t.pointerId,"pointerId");i&U&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):i&(H|B)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var vt={touchstart:U,touchmove:2,touchend:H,touchcancel:B},mt="touchstart",gt="touchstart touchmove touchend touchcancel";function bt(){this.evTarget=mt,this.evWin=gt,this.started=!1,J.apply(this,arguments)}w(bt,J,{handler:function(t){var e=vt[t.type];if(e===U&&(this.started=!0),this.started){var n=(function(t,e){var n=R(t.touches),r=R(t.changedTouches);return e&(H|B)&&(n=N(n.concat(r),"identifier",!0)),[n,r]}).call(this,t,e);e&(H|B)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var _t={touchstart:U,touchmove:2,touchend:H,touchcancel:B},wt="touchstart touchmove touchend touchcancel";function Ct(){this.evTarget=wt,this.targetIds={},J.apply(this,arguments)}w(Ct,J,{handler:function(t){var e=_t[t.type],n=(function(t,e){var n=R(t.touches),r=this.targetIds;if(e&(2|U)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=R(t.changedTouches),a=[],u=this.target;if(o=n.filter(function(t){return x(t.target,u)}),e===U)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),e&(H|B)&&delete r[s[i].identifier],i++;return a.length?[N(o.concat(a),"identifier",!0),a]:void 0}).call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var Et=2500;function St(){J.apply(this,arguments);var t=C(this.handler,this);this.touch=new Ct(this.manager,t),this.mouse=new ct(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Tt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout(function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)},Et)}}w(St,J,{handler:function(t,e,n){var r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)(function(t,e){t&U?(this.primaryTouch=e.changedPointers[0].identifier,Tt.call(this,e)):t&(H|B)&&Tt.call(this,e)}).call(this,e,n);else if(r&&(function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),s=Math.abs(n-i.y);if(o<=25&&s<=25)return!0}return!1}).call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ot=j(c.style,"touchAction"),xt=Ot!==a,At=function(){if(!xt)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||i.CSS.supports("touch-action",n)}),t}();function Pt(t,e){this.manager=t,this.set(e)}Pt.prototype={set:function(t){"compute"==t&&(t=this.compute()),xt&&this.manager.element.style&&At[t]&&(this.manager.element.style[Ot]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,function(e){E(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(A(t,"none"))return"none";var e=A(t,"pan-x"),n=A(t,"pan-y");return e&&n?"none":e||n?e?"pan-x":"pan-y":A(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=A(r,"none")&&!At.none,o=A(r,"pan-y")&&!At["pan-y"],s=A(r,"pan-x")&&!At["pan-x"];if(i&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!s||!o)return i||o&&n&X||s&&n&Q?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var kt=1,Rt=2,Nt=4,jt=8,It=jt,Dt=16;function Mt(t){this.options=u({},this.defaults,t||{}),this.id=I++,this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=kt,this.simultaneous={},this.requireFail=[]}function Vt(t){return t&Dt?"cancel":t&jt?"end":t&Nt?"move":t&Rt?"start":""}function Lt(t){return t==G?"down":t==Y?"up":t==q?"left":t==W?"right":""}function Ft(t,e){var n=e.manager;return n?n.get(t):t}function Ut(){Mt.apply(this,arguments)}function Ht(){Ut.apply(this,arguments),this.pX=null,this.pY=null}function Bt(){Ut.apply(this,arguments)}function zt(){Mt.apply(this,arguments),this._timer=null,this._input=null}function qt(){Ut.apply(this,arguments)}function Wt(){Ut.apply(this,arguments)}function Yt(){Mt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Gt(t,e){return(e=e||{}).recognizers=S(e.recognizers,Gt.defaults.preset),new Xt(t,e)}function Xt(t,e){var n;this.options=u({},Gt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(V?yt:L?Ct:M?St:ct))(n,tt),this.touchAction=new Pt(this,this.options.touchAction),Qt(this,!0),m(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Qt(t,e){var n,r=t.element;r.style&&(m(t.options.cssProps,function(i,o){n=j(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}Mt.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Ft(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)?this:(t=Ft(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var e=this.requireFail;return-1===k(e,t=Ft(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=Ft(t,this);var e=k(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<jt&&r(e.options.event+Vt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=jt&&r(e.options.event+Vt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|kt)))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!E(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(It|Dt|32)&&(this.state=kt),this.state=this.process(e),this.state&(Rt|Nt|jt|Dt)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},w(Ut,Mt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=e&(Rt|Nt),i=this.attrTest(t);return r&&(n&B||!i)?e|Dt:r||i?n&H?e|jt:e&Rt?e|Nt:Rt:32}}),w(Ht,Ut,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var t=this.options.direction,e=[];return t&X&&e.push("pan-y"),t&Q&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,s=t.deltaY;return i&e.direction||(e.direction&X?(i=0===o?z:o<0?q:W,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===s?z:s<0?Y:G,n=s!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return Ut.prototype.attrTest.call(this,t)&&(this.state&Rt||!(this.state&Rt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Lt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(Bt,Ut,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Rt)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),w(zt,Mt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(H|B)&&!i)this.reset();else if(t.eventType&U)this.reset(),this._timer=y(function(){this.state=It,this.tryEmit()},e.time,this);else if(t.eventType&H)return It;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===It&&(t&&t.eventType&H?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),w(qt,Ut,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Rt)}}),w(Wt,Ut,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:X|Q,pointers:1},getTouchAction:function(){return Ht.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(X|Q)?e=t.overallVelocity:n&X?e=t.overallVelocityX:n&Q&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&t.eventType&H},emit:function(t){var e=Lt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Yt,Mt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&U&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=H)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||ot(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=y(function(){this.state=It,this.tryEmit()},e.interval,this),Rt):It}return 32},failTimeout:function(){return this._timer=y(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==It&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Gt.VERSION="2.0.7",Gt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[qt,{enable:!1}],[Bt,{enable:!1},["rotate"]],[Wt,{direction:X}],[Ht,{direction:X},["swipe"]],[Yt],[Yt,{event:"doubletap",taps:2},["tap"]],[zt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Xt.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&It)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&n.state&(Rt|Nt|jt)&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Mt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(v(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(v(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=k(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return m(P(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==a){var n=this.handlers;return m(P(t),function(t){e?n[t]&&n[t].splice(k(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&Qt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Gt,{INPUT_START:U,INPUT_MOVE:2,INPUT_END:H,INPUT_CANCEL:B,STATE_POSSIBLE:kt,STATE_BEGAN:Rt,STATE_CHANGED:Nt,STATE_ENDED:jt,STATE_RECOGNIZED:It,STATE_CANCELLED:Dt,STATE_FAILED:32,DIRECTION_NONE:z,DIRECTION_LEFT:q,DIRECTION_RIGHT:W,DIRECTION_UP:Y,DIRECTION_DOWN:G,DIRECTION_HORIZONTAL:X,DIRECTION_VERTICAL:Q,DIRECTION_ALL:Z,Manager:Xt,Input:J,TouchAction:Pt,TouchInput:Ct,MouseInput:ct,PointerEventInput:yt,TouchMouseInput:St,SingleTouchInput:bt,Recognizer:Mt,AttrRecognizer:Ut,Tap:Yt,Pan:Ht,Swipe:Wt,Pinch:Bt,Rotate:qt,Press:zt,on:T,off:O,each:m,merge:_,extend:b,assign:u,inherit:w,bindFn:C,prefixed:j}),("undefined"!=typeof i?i:"undefined"!=typeof self?self:{}).Hammer=Gt,(r=(function(){return Gt}).call(e,n,e,t))===a||(t.exports=r)}(window,document)},t7NR:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},tLDX:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("AMGY").a.Symbol,i="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},tZ2B:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("TToO"),i=function(t){function e(){t.apply(this,arguments)}return Object(r.b)(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n("OVmG").a)},w9is:function(t,e,n){"use strict";e.a=function(t,e){return function(n){return n.lift(new o(t,e))}};var r=n("TToO"),i=n("OVmG"),o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0}return Object(r.b)(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},x35b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("WT6e"),i=(n("rxKx"),function(){}),o=function(){},s=n("Xjw4"),a=function(){function t(){this.test=new Date}return t.prototype.ngOnInit=function(){},t}(),u=r._2({encapsulation:0,styles:[[""]],data:{}});function l(t){return r._27(0,[r._19(0,s.e,[r.s]),(t()(),r._4(1,0,null,null,41,"footer",[["class","footer "]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(3,0,null,null,38,"div",[["class","container-fluid"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(5,0,null,null,28,"nav",[["class","pull-left"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(7,0,null,null,25,"ul",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(9,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(11,0,null,null,1,"a",[["href","/"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n Creative Tim\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(15,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(17,0,null,null,1,"a",[["href","/"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n About Us\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(21,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(23,0,null,null,1,"a",[["href","/"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n Blog\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(27,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(29,0,null,null,1,"a",[["href","/"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n Licenses\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(35,0,null,null,5,"div",[["class","copyright pull-right"]],null,null,null,null,null)),(t()(),r._25(36,null,["\n \xa9\n ",", made with love by\n "])),r._20(37,2),(t()(),r._4(38,0,null,null,1,"a",[["href","/"],["target","_blank"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Creative Tim"])),(t()(),r._25(-1,null,[" for a better web.\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n"])),(t()(),r._25(-1,null,["\n"]))],null,function(t,e){var n=e.component;t(e,36,0,r._26(e,36,0,t(e,37,0,r._16(e,0),n.test,"yyyy")))})}var c=n("bfOx"),h=[{path:"/dashboard",title:"Dashboard",icon:"dashboard",class:""},{path:"/user-profile",title:"User Profile",icon:"person",class:""},{path:"/table-list",title:"Table List",icon:"content_paste",class:""},{path:"/typography",title:"Typography",icon:"library_books",class:""},{path:"/icons",title:"Icons",icon:"bubble_chart",class:""},{path:"/maps",title:"Maps",icon:"location_on",class:""},{path:"/notifications",title:"Notifications",icon:"notifications",class:""},{path:"/upgrade",title:"Upgrade to PRO",icon:"unarchive",class:"active-pro"}],p=function(){function t(){}return t.prototype.ngOnInit=function(){this.menuItems=h.filter(function(t){return t})},t.prototype.isMobileMenu=function(){return!($(window).width()>991)},t}(),f=r._2({encapsulation:0,styles:[[""]],data:{}});function d(t){return r._27(0,[(t()(),r._4(0,0,null,null,89,"div",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(2,0,null,null,17,"form",[["class","navbar-form"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(4,0,null,null,14,"span",[["class","bmd-form-group"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(6,0,null,null,11,"div",[["class","input-group no-border"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(8,0,null,null,0,"input",[["class","form-control"],["placeholder","Search..."],["type","text"],["value",""]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(10,0,null,null,6,"button",[["class","btn btn-white btn-round btn-just-icon"],["mat-raised-button",""],["type","submit"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(12,0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._25(-1,null,["search"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(15,0,null,null,0,"div",[["class","ripple-container"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(21,0,null,null,67,"ul",[["class","nav navbar-nav nav-mobile-menu"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(23,0,null,null,13,"li",[["class","nav-item"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(25,0,null,null,10,"a",[["class","nav-link"],["href","#pablo"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(27,0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._25(-1,null,["dashboard"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(30,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(32,0,null,null,1,"span",[["class","d-lg-none d-md-block"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Stats"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(38,0,null,null,34,"li",[["class","nav-item dropdown"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(40,0,null,null,13,"a",[["aria-expanded","false"],["aria-haspopup","true"],["class","nav-link"],["data-toggle","dropdown"],["href","#pablo"],["id","navbarDropdownMenuLink"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(42,0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._25(-1,null,["notifications"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(45,0,null,null,1,"span",[["class","notification"]],null,null,null,null,null)),(t()(),r._25(-1,null,["5"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(48,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(50,0,null,null,1,"span",[["class","d-lg-none d-md-block"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Some Actions"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(55,0,null,null,16,"div",[["aria-labelledby","navbarDropdownMenuLink"],["class","dropdown-menu dropdown-menu-right"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(57,0,null,null,1,"a",[["class","dropdown-item"],["href","#"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Mike John responded to your email"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(60,0,null,null,1,"a",[["class","dropdown-item"],["href","#"]],null,null,null,null,null)),(t()(),r._25(-1,null,["You have 5 new tasks"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(63,0,null,null,1,"a",[["class","dropdown-item"],["href","#"]],null,null,null,null,null)),(t()(),r._25(-1,null,["You're now friend with Andrew"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(66,0,null,null,1,"a",[["class","dropdown-item"],["href","#"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Another Notification"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(69,0,null,null,1,"a",[["class","dropdown-item"],["href","#"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Another One"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(74,0,null,null,13,"li",[["class","nav-item"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(76,0,null,null,10,"a",[["class","nav-link"],["href","#pablo"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(78,0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._25(-1,null,["person"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(81,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(83,0,null,null,1,"span",[["class","d-lg-none d-md-block"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Account"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "]))],null,null)}function y(t){return r._27(0,[(t()(),r._4(0,0,null,null,15,"li",[["routerLinkActive","active"]],[[8,"className",0]],null,null,null,null)),r._3(1,1720320,null,2,c.n,[c.m,r.k,r.C,r.h],{routerLinkActive:[0,"routerLinkActive"]},null),r._23(603979776,1,{links:1}),r._23(603979776,2,{linksWithHrefs:1}),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(5,0,null,null,9,"a",[["class","nav-link"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r._16(t,6).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r._3(6,671744,[[2,4]],0,c.o,[c.m,c.a,s.i],{routerLink:[0,"routerLink"]},null),r._18(7,1),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(9,0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._25(10,null,["",""])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(12,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),r._25(13,null,["",""])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "]))],function(t,e){t(e,1,0,"active"),t(e,6,0,t(e,7,0,e.context.$implicit.path))},function(t,e){t(e,0,0,r._7(1,"",e.context.$implicit.class," nav-item")),t(e,5,0,r._16(e,6).target,r._16(e,6).href),t(e,10,0,e.context.$implicit.icon),t(e,13,0,e.context.$implicit.title)})}function v(t){return r._27(0,[(t()(),r._4(0,0,null,null,9,"div",[["class","logo"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(2,0,null,null,6,"a",[["class","simple-text"],["href","/"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(4,0,null,null,3,"div",[["class","logo-img"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(6,0,null,null,0,"img",[["src","/assets/img/angular2-logo-red.png"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n ShelterHub\n "])),(t()(),r._25(-1,null,["\n"])),(t()(),r._25(-1,null,["\n"])),(t()(),r._4(11,0,null,null,10,"div",[["class","sidebar-wrapper"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r.Z(16777216,null,null,1,null,d)),r._3(14,16384,null,0,s.l,[r.N,r.K],{ngIf:[0,"ngIf"]},null),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(16,0,null,null,4,"ul",[["class","nav"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r.Z(16777216,null,null,1,null,y)),r._3(19,802816,null,0,s.k,[r.N,r.K,r.q],{ngForOf:[0,"ngForOf"]},null),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n"])),(t()(),r._25(-1,null,["\n"]))],function(t,e){var n=e.component;t(e,14,0,n.isMobileMenu()),t(e,19,0,n.menuItems)},null)}var m=function(){function t(t,e,n){this.element=e,this.router=n,this.mobile_menu_visible=0,this.location=t,this.sidebarVisible=!1}return t.prototype.ngOnInit=function(){var t=this;this.listTitles=h.filter(function(t){return t}),this.toggleButton=this.element.nativeElement.getElementsByClassName("navbar-toggler")[0],this.router.events.subscribe(function(e){t.sidebarClose();var n=document.getElementsByClassName("close-layer")[0];n&&(n.remove(),t.mobile_menu_visible=0)})},t.prototype.sidebarOpen=function(){var t=this.toggleButton,e=document.getElementsByTagName("body")[0];setTimeout(function(){t.classList.add("toggled")},500),e.classList.add("nav-open"),this.sidebarVisible=!0},t.prototype.sidebarClose=function(){var t=document.getElementsByTagName("body")[0];this.toggleButton.classList.remove("toggled"),this.sidebarVisible=!1,t.classList.remove("nav-open")},t.prototype.sidebarToggle=function(){var t=document.getElementsByClassName("navbar-toggler")[0];!1===this.sidebarVisible?this.sidebarOpen():this.sidebarClose();var e=document.getElementsByTagName("body")[0];if(1==this.mobile_menu_visible)e.classList.remove("nav-open"),n&&n.remove(),setTimeout(function(){t.classList.remove("toggled")},400),this.mobile_menu_visible=0;else{setTimeout(function(){t.classList.add("toggled")},430);var n=document.createElement("div");n.setAttribute("class","close-layer"),e.querySelectorAll(".main-panel")?document.getElementsByClassName("main-panel")[0].appendChild(n):e.classList.contains("off-canvas-sidebar")&&document.getElementsByClassName("wrapper-full-page")[0].appendChild(n),setTimeout(function(){n.classList.add("visible")},100),n.onclick=(function(){e.classList.remove("nav-open"),this.mobile_menu_visible=0,n.classList.remove("visible"),setTimeout(function(){n.remove(),t.classList.remove("toggled")},400)}).bind(this),e.classList.add("nav-open"),this.mobile_menu_visible=1}},t.prototype.getTitle=function(){var t=this.location.prepareExternalUrl(this.location.path());"#"===t.charAt(0)&&(t=t.slice(2)),t=t.split("/").pop();for(var e=0;e<this.listTitles.length;e++)if(this.listTitles[e].path===t)return this.listTitles[e].title;return"Dashboard"},t}(),g=r._2({encapsulation:0,styles:[[""]],data:{}});function b(t){return r._27(0,[(t()(),r._4(0,0,null,null,110,"nav",[["class","navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(2,0,null,null,107,"div",[["class","container-fluid"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(4,0,null,null,4,"div",[["class","navbar-wrapper"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(6,0,null,null,1,"a",[["class","navbar-brand"],["href","#"]],null,null,null,null,null)),(t()(),r._25(7,null,["",""])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(10,0,null,null,10,"button",[["class","navbar-toggler"],["mat-raised-button",""],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.sidebarToggle()&&r),r},null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(12,0,null,null,1,"span",[["class","sr-only"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Toggle navigation"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(15,0,null,null,0,"span",[["class","navbar-toggler-icon icon-bar"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(17,0,null,null,0,"span",[["class","navbar-toggler-icon icon-bar"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(19,0,null,null,0,"span",[["class","navbar-toggler-icon icon-bar"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(22,0,null,null,86,"div",[["class","collapse navbar-collapse justify-content-end"],["id","navigation"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(24,0,null,null,14,"form",[["class","navbar-form"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(26,0,null,null,11,"div",[["class","input-group no-border"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(28,0,null,null,0,"input",[["class","form-control"],["placeholder","Search..."],["type","text"],["value",""]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(30,0,null,null,6,"button",[["class","btn btn-white btn-round btn-just-icon"],["mat-raised-button",""],["type","submit"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(32,0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._25(-1,null,["search"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(35,0,null,null,0,"div",[["class","ripple-container"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(40,0,null,null,67,"ul",[["class","navbar-nav"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(42,0,null,null,13,"li",[["class","nav-item"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(44,0,null,null,10,"a",[["class","nav-link"],["href","#pablo"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(46,0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._25(-1,null,["dashboard"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(49,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(51,0,null,null,1,"span",[["class","d-lg-none d-md-block"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Stats"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(57,0,null,null,34,"li",[["class","nav-item dropdown"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(59,0,null,null,13,"a",[["aria-expanded","false"],["aria-haspopup","true"],["class","nav-link"],["data-toggle","dropdown"],["href","#pablo"],["id","navbarDropdownMenuLink"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(61,0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._25(-1,null,["notifications"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(64,0,null,null,1,"span",[["class","notification"]],null,null,null,null,null)),(t()(),r._25(-1,null,["5"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(67,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(69,0,null,null,1,"span",[["class","d-lg-none d-md-block"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Some Actions"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(74,0,null,null,16,"div",[["aria-labelledby","navbarDropdownMenuLink"],["class","dropdown-menu dropdown-menu-right"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(76,0,null,null,1,"a",[["class","dropdown-item"],["href","#"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Mike John responded to your email"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(79,0,null,null,1,"a",[["class","dropdown-item"],["href","#"]],null,null,null,null,null)),(t()(),r._25(-1,null,["You have 5 new tasks"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(82,0,null,null,1,"a",[["class","dropdown-item"],["href","#"]],null,null,null,null,null)),(t()(),r._25(-1,null,["You're now friend with Andrew"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(85,0,null,null,1,"a",[["class","dropdown-item"],["href","#"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Another Notification"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(88,0,null,null,1,"a",[["class","dropdown-item"],["href","#"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Another One"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(93,0,null,null,13,"li",[["class","nav-item"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(95,0,null,null,10,"a",[["class","nav-link"],["href","#pablo"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(97,0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._25(-1,null,["person"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(100,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(102,0,null,null,1,"span",[["class","d-lg-none d-md-block"]],null,null,null,null,null)),(t()(),r._25(-1,null,["Account"])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n"])),(t()(),r._25(-1,null,["\n\n"])),(t()(),r._25(-1,null,["\n"]))],null,function(t,e){t(e,7,0,e.component.getTitle())})}var _=n("YaPU"),w=n("Uw6n");function C(t){return getComputedStyle(t)}function E(t,e){for(var n in e){var r=e[n];"number"==typeof r&&(r+="px"),t.style[n]=r}return t}function S(t){var e=document.createElement("div");return e.className=t,e}_.a.prototype.filter=w.a;var T=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector;function O(t,e){if(!T)throw new Error("No element matching method supported");return T.call(t,e)}function x(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function A(t,e){return Array.prototype.filter.call(t.children,function(t){return O(t,e)})}var P={main:"ps",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},k={x:null,y:null};function R(t,e){var n=t.element.classList,r=P.state.scrolling(e);n.contains(r)?clearTimeout(k[e]):n.add(r)}function N(t,e){k[e]=setTimeout(function(){return t.element.classList.remove(P.state.scrolling(e))},t.settings.scrollingThreshold)}var j=function(t){this.element=t,this.handlers={}},I={isEmpty:{configurable:!0}};j.prototype.bind=function(t,e){"undefined"==typeof this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},j.prototype.unbind=function(t,e){var n=this;this.handlers[t]=this.handlers[t].filter(function(r){return!(!e||r===e)||(n.element.removeEventListener(t,r,!1),!1)})},j.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},I.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(j.prototype,I);var D=function(){this.eventElements=[]};function M(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}D.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new j(t),this.eventElements.push(e)),e},D.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},D.prototype.unbind=function(t,e,n){var r=this.eventElement(t);r.unbind(e,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},D.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},D.prototype.once=function(t,e,n){var r=this.eventElement(t),i=function(t){r.unbind(e,i),n(t)};r.bind(e,i)};var V=function(t,e,n,r){var i;if(void 0===r&&(r=!0),"top"===e)i=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");i=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,n,r){var o=i[0],s=i[1],a=i[2],u=i[3],l=i[4],c=i[5],h=t.element,p=!1;t.reach[u]=null,e<=0&&(e=0,t.reach[u]="start"),e>=t[o]-t[s]&&((e=t[o]-t[s])-h[a]<=2&&(p=!0),t.reach[u]="end");var f=h[a]-e;f&&(h.dispatchEvent(M("ps-scroll-"+u)),h.dispatchEvent(M(f>0?"ps-scroll-"+l:"ps-scroll-"+c)),p||(h[a]=e),t.reach[u]&&h.dispatchEvent(M("ps-"+u+"-reach-"+t.reach[u])),r&&function(t,e){R(t,e),N(t,e)}(t,u))}(t,n,0,r)};function L(t){return parseInt(t,10)||0}var F={isWebKit:document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:navigator&&navigator.msMaxTouchPoints},U=function(t){var e=t.element;t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(A(e,P.element.rail("x")).forEach(function(t){return x(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(A(e,P.element.rail("y")).forEach(function(t){return x(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=H(t,L(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=L((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=H(t,L(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=L(e.scrollTop*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var n={width:e.railXWidth};n.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-t.scrollTop:n.top=e.scrollbarXTop+t.scrollTop,E(e.scrollbarXRail,n);var r={top:t.scrollTop,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,E(e.scrollbarYRail,r),E(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),E(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(P.state.active("x")):(e.classList.remove(P.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,V(t,"left",0)),t.scrollbarYActive?e.classList.add(P.state.active("y")):(e.classList.remove(P.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,V(t,"top",0))};function H(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function B(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=e[5],a=e[6],u=e[7],l=e[8],c=t.element,h=null,p=null,f=null;function d(e){V(t,u,h+f*(e[i]-p),!1),R(t,l),U(t),e.stopPropagation(),e.preventDefault()}function y(){N(t,l),t.event.unbind(t.ownerDocument,"mousemove",d)}t.event.bind(t[e[4]],"mousedown",function(e){h=c[a],p=e[i],f=(t[r]-t[n])/(t[o]-t[s]),t.event.bind(t.ownerDocument,"mousemove",d),t.event.once(t.ownerDocument,"mouseup",y),e.stopPropagation(),e.preventDefault()})}var z={"click-rail":function(t){var e=t.element;t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(n){var r=n.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;V(t,"top",e.scrollTop+(r>t.scrollbarYTop?1:-1)*t.containerHeight),U(t),n.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(n){var r=n.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;V(t,"left",e.scrollLeft+(r>t.scrollbarXLeft?1:-1)*t.containerWidth),U(t),n.stopPropagation()})},"drag-thumb":function(t){B(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","left","x"]),B(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","top","y"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(O(e,":hover")||O(t.scrollbarX,":focus")||O(t.scrollbarY,":focus"))){var r,i=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(O(r=i,"input,[contenteditable]")||O(r,"select,[contenteditable]")||O(r,"textarea,[contenteditable]")||O(r,"button,[contenteditable]"))return}var o=0,s=0;switch(n.which){case 37:o=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:s=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:o=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:s=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:s=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:s=t.containerHeight;break;case 34:s=-t.containerHeight;break;case 36:s=t.contentHeight;break;case 35:s=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==s||(V(t,"top",e.scrollTop-s),V(t,"left",e.scrollLeft+o),U(t),function(n,r){var i=e.scrollTop;if(0===n){if(!t.scrollbarYActive)return!1;if(0===i&&r>0||i>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===r){if(!t.scrollbarXActive)return!1;if(0===o&&n<0||o>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(o,s)&&n.preventDefault())}})},wheel:function(t){var e=t.element;function n(n){var r=function(t){var e=t.deltaX,n=-1*t.deltaY;return"undefined"!=typeof e&&"undefined"!=typeof n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}(n),i=r[0],o=r[1];if(!function(t,n,r){if(!F.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var i=t;i&&i!==e;){if(i.classList.contains(P.element.consuming))return!0;var o=C(i);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var s=i.scrollHeight-i.clientHeight;if(s>0&&!(0===i.scrollTop&&r>0||i.scrollTop===s&&r<0))return!0;var a=i.scrollLeft-i.clientWidth;if(a>0&&!(0===i.scrollLeft&&n<0||i.scrollLeft===a&&n>0))return!0}i=i.parentNode}return!1}(n.target,i,o)){var s=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(V(t,"top",o?e.scrollTop-o*t.settings.wheelSpeed:e.scrollTop+i*t.settings.wheelSpeed),s=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(V(t,"left",i?e.scrollLeft+i*t.settings.wheelSpeed:e.scrollLeft-o*t.settings.wheelSpeed),s=!0):(V(t,"top",e.scrollTop-o*t.settings.wheelSpeed),V(t,"left",e.scrollLeft+i*t.settings.wheelSpeed)),U(t),(s=s||function(n,r){var i=e.scrollTop;if(0===n){if(!t.scrollbarYActive)return!1;if(0===i&&r>0||i>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===r){if(!t.scrollbarXActive)return!1;if(0===o&&n<0||o>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(i,o))&&(n.stopPropagation(),n.preventDefault())}}"undefined"!=typeof window.onwheel?t.event.bind(e,"wheel",n):"undefined"!=typeof window.onmousewheel&&t.event.bind(e,"mousewheel",n)},touch:function(t){if(F.supportsTouch||F.supportsIePointer){var e=t.element,n={},r=0,i={},o=null,s=!1,a=!1;F.supportsTouch?(t.event.bind(window,"touchstart",l),t.event.bind(window,"touchend",c),t.event.bind(e,"touchstart",f),t.event.bind(e,"touchmove",d),t.event.bind(e,"touchend",y)):F.supportsIePointer&&(window.PointerEvent?(t.event.bind(window,"pointerdown",l),t.event.bind(window,"pointerup",c),t.event.bind(e,"pointerdown",f),t.event.bind(e,"pointermove",d),t.event.bind(e,"pointerup",y)):window.MSPointerEvent&&(t.event.bind(window,"MSPointerDown",l),t.event.bind(window,"MSPointerUp",c),t.event.bind(e,"MSPointerDown",f),t.event.bind(e,"MSPointerMove",d),t.event.bind(e,"MSPointerUp",y)))}function u(n,r){V(t,"top",e.scrollTop-r),V(t,"left",e.scrollLeft-n),U(t)}function l(){s=!0}function c(){s=!1}function h(t){return t.targetTouches?t.targetTouches[0]:t}function p(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function f(t){if(p(t)){a=!0;var e=h(t);n.pageX=e.pageX,n.pageY=e.pageY,r=(new Date).getTime(),null!==o&&clearInterval(o),t.stopPropagation()}}function d(o){if(!a&&t.settings.swipePropagation&&f(o),!s&&a&&p(o)){var l=h(o),c={pageX:l.pageX,pageY:l.pageY},d=c.pageX-n.pageX,y=c.pageY-n.pageY;u(d,y),n=c;var v=(new Date).getTime(),m=v-r;m>0&&(i.x=d/m,i.y=y/m,r=v);var g=function(n,r){var i=e.scrollTop,o=e.scrollLeft,s=Math.abs(n),a=Math.abs(r);if(a>s){if(r<0&&i===t.contentHeight-t.containerHeight||r>0&&0===i)return{stop:!t.settings.swipePropagation,prevent:0===window.scrollY}}else if(s>a&&(n<0&&o===t.contentWidth-t.containerWidth||n>0&&0===o))return{stop:!t.settings.swipePropagation,prevent:!0};return{stop:!0,prevent:!0}}(d,y),b=g.prevent;g.stop&&o.stopPropagation(),b&&o.preventDefault()}}function y(){!s&&a&&(a=!1,t.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){t.isInitialized?clearInterval(o):i.x||i.y?Math.abs(i.x)<.01&&Math.abs(i.y)<.01?clearInterval(o):(u(30*i.x,30*i.y),i.x*=.8,i.y*=.8):clearInterval(o)},10)))}}},q=function(t,e){var n=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=t,t.classList.add(P.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1},e)n.settings[r]=e[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i,o,s=function(){return t.classList.add(P.state.focus)},a=function(){return t.classList.remove(P.state.focus)};this.isRtl="rtl"===C(t).direction,this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,i=t.scrollLeft<0,t.scrollLeft=o,i),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new D,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=S(P.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=S(P.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var u=C(this.scrollbarXRail);this.scrollbarXBottom=parseInt(u.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=L(u.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=L(u.borderLeftWidth)+L(u.borderRightWidth),E(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=L(u.marginLeft)+L(u.marginRight),E(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=S(P.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=S(P.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=C(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=L(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=C(t);return L(e.width)+L(e.paddingLeft)+L(e.paddingRight)+L(e.borderLeftWidth)+L(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=L(l.borderTopWidth)+L(l.borderBottomWidth),E(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=L(l.marginTop)+L(l.marginBottom),E(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.settings.handlers.forEach(function(t){return z[t](n)}),this.event.bind(this.element,"scroll",function(){return U(n)}),U(this)},W={isInitialized:{configurable:!0}};W.isInitialized.get=function(){return this.element.classList.contains(P.main)},q.prototype.update=function(){this.isInitialized&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,E(this.scrollbarXRail,{display:"block"}),E(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=L(C(this.scrollbarXRail).marginLeft)+L(C(this.scrollbarXRail).marginRight),this.railYMarginHeight=L(C(this.scrollbarYRail).marginTop)+L(C(this.scrollbarYRail).marginBottom),E(this.scrollbarXRail,{display:"none"}),E(this.scrollbarYRail,{display:"none"}),U(this),E(this.scrollbarXRail,{display:""}),E(this.scrollbarYRail,{display:""}))},q.prototype.destroy=function(){this.isInitialized&&(this.event.unbindAll(),x(this.scrollbarX),x(this.scrollbarY),x(this.scrollbarXRail),x(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null)},q.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")},Object.defineProperties(q.prototype,W);var Y=q,G=function(){function t(t,e){this.location=t,this.router=e,this.yScrollStack=[]}return t.prototype.ngOnInit=function(){var t=this;navigator.platform.indexOf("Win")>-1&&!document.getElementsByTagName("body")[0].classList.contains("sidebar-mini")?document.getElementsByTagName("body")[0].classList.add("perfect-scrollbar-on"):document.getElementsByTagName("body")[0].classList.remove("perfect-scrollbar-off");var e=document.querySelector(".main-panel"),n=document.querySelector(".sidebar .sidebar-wrapper");this.location.subscribe(function(e){t.lastPoppedUrl=e.url}),this.router.events.subscribe(function(e){e instanceof c.e?e.url!=t.lastPoppedUrl&&t.yScrollStack.push(window.scrollY):e instanceof c.d&&(e.url==t.lastPoppedUrl?(t.lastPoppedUrl=void 0,window.scrollTo(0,t.yScrollStack.pop())):window.scrollTo(0,0))}),this._router=this.router.events.filter(function(t){return t instanceof c.d}).subscribe(function(t){e.scrollTop=0,n.scrollTop=0}),window.matchMedia("(min-width: 960px)").matches&&!this.isMac()&&(new Y(e),new Y(n))},t.prototype.ngAfterViewInit=function(){this.runOnRouteChange()},t.prototype.isMaps=function(t){return t!=this.location.prepareExternalUrl(this.location.path()).slice(1)},t.prototype.runOnRouteChange=function(){if(window.matchMedia("(min-width: 960px)").matches&&!this.isMac()){var t=document.querySelector(".main-panel");new Y(t).update()}},t.prototype.isMac=function(){var t=!1;return(navigator.platform.toUpperCase().indexOf("MAC")>=0||navigator.platform.toUpperCase().indexOf("IPAD")>=0)&&(t=!0),t},t}(),X=r._2({encapsulation:0,styles:[[""]],data:{}});function Q(t){return r._27(0,[(t()(),r._4(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(2,0,null,null,1,"app-footer",[],null,null,null,l,u)),r._3(3,114688,null,0,a,[],null,null),(t()(),r._25(-1,null,["\n "]))],function(t,e){t(e,3,0)},null)}function Z(t){return r._27(0,[(t()(),r._4(0,0,null,null,21,"div",[["class","wrapper"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(2,0,null,null,6,"div",[["class","sidebar"],["data-background-color","white"],["data-color","danger"],["data-image","../assets/img/sidebar-1.jpg"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(4,0,null,null,1,"app-sidebar",[],null,null,null,v,f)),r._3(5,114688,null,0,p,[],null,null),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(7,0,null,null,0,"div",[["class","sidebar-background"],["style","background-image: url(../assets/img/sidebar-4.jpg)"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(10,0,null,null,10,"div",[["class","main-panel"]],null,null,null,null,null)),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(12,0,null,null,1,"app-navbar",[],null,null,null,b,g)),r._3(13,114688,null,0,m,[s.h,r.k,c.m],null,null),(t()(),r._25(-1,null,["\n "])),(t()(),r._4(15,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r._3(16,212992,null,0,c.q,[c.b,r.N,r.j,[8,null],r.h],null,null),(t()(),r._25(-1,null,["\n "])),(t()(),r.Z(16777216,null,null,1,null,Q)),r._3(19,16384,null,0,s.l,[r.N,r.K],{ngIf:[0,"ngIf"]},null),(t()(),r._25(-1,null,["\n "])),(t()(),r._25(-1,null,["\n"])),(t()(),r._25(-1,null,["\n"]))],function(t,e){var n=e.component;t(e,5,0),t(e,13,0),t(e,16,0),t(e,19,0,n.isMaps("maps"))},null)}var K=r._0("app-admin-layout",G,function(t){return r._27(0,[(t()(),r._4(0,0,null,null,1,"app-admin-layout",[],null,null,null,Z,X)),r._3(1,4308992,null,0,G,[s.h,c.m],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),J=r._2({encapsulation:0,styles:[[""]],data:{}});function tt(t){return r._27(0,[(t()(),r._25(-1,null,["\n"])),(t()(),r._4(1,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r._3(2,212992,null,0,c.q,[c.b,r.N,r.j,[8,null],r.h],null,null),(t()(),r._25(-1,null,["\n"]))],function(t,e){t(e,2,0)},null)}var et=r._0("app-root",o,function(t){return r._27(0,[(t()(),r._4(0,0,null,null,1,"app-root",[],null,null,null,tt,J)),r._3(1,49152,null,0,o,[],null,null)],null,null)},{},{},[]),nt=n("OE0E"),rt=n("WPXp"),it=n("TToO");function ot(t){switch(t.length){case 0:return new rt.d;case 1:return t[0];default:return new rt.k(t)}}function st(t,e,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var s=[],a=[],u=-1,l=null;if(r.forEach(function(t){var n=t.offset,r=n==u,c=r&&l||{};Object.keys(t).forEach(function(n){var r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case rt.l:a=i[n];break;case rt.a:a=o[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}c[r]=a}),r||a.push(c),l=c,u=n}),s.length)throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "));return a}function at(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&ut(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&ut(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&ut(n,"destroy",t.totalTime))})}}function ut(t,e,n){var r=lt(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),i=t._data;return null!=i&&(r._data=i),r}function lt(t,e,n,r,i,o){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o}}function ct(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function ht(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var pt=function(t,e){return!1},ft=function(t,e){return!1},dt=function(t,e,n){return[]};if("undefined"!=typeof Element){if(pt=function(t,e){return t.contains(e)},Element.prototype.matches)ft=function(t,e){return t.matches(e)};else{var yt=Element.prototype,vt=yt.matchesSelector||yt.mozMatchesSelector||yt.msMatchesSelector||yt.oMatchesSelector||yt.webkitMatchesSelector;vt&&(ft=function(t,e){return vt.apply(t,[e])})}dt=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var mt=null,gt=!1;function bt(t){mt||(mt=_t()||{},gt=!!mt.style&&"WebkitAppearance"in mt.style);var e=!0;return mt.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in mt.style)&&gt&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in mt.style),e}function _t(){return"undefined"!=typeof document?document.body:null}var wt=ft,Ct=pt,Et=dt,St=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return bt(t)},t.prototype.matchesElement=function(t,e){return wt(t,e)},t.prototype.containsElement=function(t,e){return Ct(t,e)},t.prototype.query=function(t,e,n){return Et(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,o){return void 0===o&&(o=[]),new rt.d},t}(),Tt=function(){function t(){}return t.NOOP=new St,t}(),Ot=1e3;function xt(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:At(parseFloat(e[1]),e[2])}function At(t,e){switch(e){case"s":return t*Ot;default:return t}}function Pt(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";if("string"==typeof t){var s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=At(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(i=At(Math.floor(parseFloat(a)),s[4]));var u=s[5];u&&(o=u)}else r=t;if(!n){var l=!1,c=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:i,easing:o}}(t,e,n)}function kt(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function Rt(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else kt(t,n);return n}function Nt(t,e){t.style&&Object.keys(e).forEach(function(n){var r=Ut(n);t.style[r]=e[n]})}function jt(t,e){t.style&&Object.keys(e).forEach(function(e){var n=Ut(e);t.style[n]=""})}function It(t){return Array.isArray(t)?1==t.length?t[0]:Object(rt.f)(t):t}var Dt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Mt(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=Dt.exec(n);)e.push(r[1]);Dt.lastIndex=0}return e}function Vt(t,e,n){var r=t.toString(),i=r.replace(Dt,function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function Lt(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var Ft=/-+([a-z0-9])/g;function Ut(t){return t.replace(Ft,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function Ht(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}var Bt="*",zt=new Set(["true","1"]),qt=new Set(["false","0"]);function Wt(t,e){var n=zt.has(t)||qt.has(t),r=zt.has(e)||qt.has(e);return function(i,o){var s=t==Bt||t==i,a=e==Bt||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?zt.has(t):qt.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?zt.has(e):qt.has(e)),s&&a}}var Yt=new RegExp("s*:selfs*,?","g");function Gt(t,e,n){return new Xt(t).build(e,n)}var Xt=function(){function t(t){this._driver=t}return t.prototype.build=function(t,e){var n=new Qt(e);return this._resetContextStyleTimingState(n),Ht(this,It(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,i=e.depCount=0,o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var a=t,u=a.name;u.split(/\s*,\s*/).forEach(function(t){a.name=t,o.push(n.visitState(a,e))}),a.name=u}else if(1==t.type){var l=n.visitTransition(t,e);r+=l.queryCount,i+=l.depCount,s.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(t){if(Zt(t)){var e=t;Object.keys(e).forEach(function(t){Mt(e[t]).forEach(function(t){o.hasOwnProperty(t)||i.add(t)})})}}),i.size){var s=Lt(i.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+s.join(", "))}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n,r,i,o=Ht(this,It(t.animation),e);return{type:1,matchers:(n=t.expr,r=e.errors,i=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(t){return function(t,e,n){if(":"==t[0]){var r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],s=i[2],a=i[3];e.push(Wt(o,a)),"<"!=s[0]||o==Bt&&a==Bt||e.push(Wt(a,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:Kt(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Ht(n,t,e)}),options:Kt(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=Ht(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:Kt(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return $t(Pt(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=$t(0,0,"");return i.dynamic=!0,i.strValue=r,i}return $t((n=n||Pt(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Object(rt.h)({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=Object(rt.h)(a)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,e);u.isEmptyStep=s,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==rt.a?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(Zt(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,l=e.collectedStyles[e.currentQuerySelector],c=l[r],h=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),h=!1),o=c.startTime),h&&(l[r]={startTime:o,endTime:i}),e.options&&(s=e.errors,a=e.options.params||{},(u=Mt(t[r])).length&&u.forEach(function(t){a.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,u=0,l=t.steps.map(function(t){var r=n._makeStyleAst(t,e),l=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(Zt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Zt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),a=a||c<0||c>1,s=s||c<u,u=c,o.push(c),r});a&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");var c=t.steps.length,h=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(c-1));var p=c-1,f=e.currentTime,d=e.currentAnimateTimings,y=d.duration;return l.forEach(function(t,i){var s=h>0?i==p?1:h*i:o[i],a=s*y;e.currentTime=f+d.delay+a,d.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:Ht(this,It(t.animation),e),options:Kt(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Kt(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Kt(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(Yt,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),o=i[0],s=i[1];e.currentQuerySelector=n.length?n+" "+o:o,ct(e.collectedStyles,e.currentQuerySelector,{});var a=Ht(this,It(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Kt(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Pt(t.timings,e.errors,!0);return{type:12,animation:Ht(this,It(t.animation),e),timings:n,options:null}},t}(),Qt=function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Zt(t){return!Array.isArray(t)&&"object"==typeof t}function Kt(t){var e;return t?(t=kt(t)).params&&(t.params=(e=t.params)?kt(e):null):t={},t}function $t(t,e,n){return{duration:t,delay:e,easing:n}}function Jt(t,e,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var te=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),ee=new RegExp(":enter","g"),ne=new RegExp(":leave","g");function re(t,e,n,r,i,o,s,a,u,l){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===l&&(l=[]),(new ie).buildKeyframes(t,e,n,r,i,o,s,a,u,l)}var ie=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,s,a,u,l){void 0===l&&(l=[]),u=u||new te;var c=new se(t,e,u,r,i,l,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),Ht(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(s).length){var p=h[h.length-1];p.allowOnlyTimelineStyles()||p.setStyles([s],null,c.errors,a)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Jt(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?xt(n.duration):null,o=null!=n.delay?xt(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Ht(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=oe);var s=xt(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return Ht(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?xt(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);o&&a.delayNextStep(o),Ht(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return Pt(e.params?Vt(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?xt(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=oe);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;var u=null;a.forEach(function(r,i){e.currentQueryIndex=i;var a=e.createSubContext(t.options,r);o&&a.delayNextStep(o),r===e.element&&(u=a.currentTimeline),Ht(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1),a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=e.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;Ht(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},t}(),oe={},se=function(){function t(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=oe,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ae(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=xt(r.duration)),null!=r.delay&&(i.delay=xt(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=Vt(o[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=oe,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new ue(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(ee,"."+this._enterClassName)).replace(ne,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,a)}return i||0!=s.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),ae=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||rt.a,e._currentKeyframe[t]=rt.a}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=rt.a}):Rt(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=Vt(s[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:rt.a),i._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var a=Rt(o,!0);Object.keys(a).forEach(function(t){var r=a[t];r==rt.l?e.add(t):r==rt.a&&n.add(t)}),r||(a.offset=s/t.duration),i.push(a)});var o=e.size?Lt(e.values()):[],s=n.size?Lt(n.values()):[];if(r){var a=i[0],u=kt(a);a.offset=0,u.offset=1,i=[a,u]}return Jt(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},t}(),ue=function(t){function e(e,n,r,i,o,s,a){void 0===a&&(a=!1);var u=t.call(this,e,n,s.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=i,u.postStyleProps=o,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return Object(it.b)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,u=Rt(t[0],!1);u.offset=0,o.push(u);var l=Rt(t[0],!1);l.offset=le(a),o.push(l);for(var c=t.length-1,h=1;h<=c;h++){var p=Rt(t[h],!1);p.offset=le((n+p.offset*r)/s),o.push(p)}r=s,n=0,i="",t=o}return Jt(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(ae);function le(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var ce=function(){},he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(it.b)(e,t),e.prototype.normalizePropertyName=function(t,e){return Ut(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(pe[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(ce),pe=function(t){var e={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(t){return e[t]=!0}),e}();function fe(t,e,n,r,i,o,s,a,u,l,c,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,errors:h}}var de={},ye=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return function(t,e,n){return t.some(function(t){return t(e,n)})}(this.ast.matchers,t,e)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,o,s,a,u){var l=[],c=this.ast.options&&this.ast.options.params||de,h=this.buildStyles(n,s&&s.params||de,l),p=a&&a.params||de,f=this.buildStyles(r,p,l),d=new Set,y=new Map,v=new Map,m="void"===r,g={params:Object(it.a)({},c,p)},b=re(t,e,this.ast.animation,i,o,h,f,g,u,l);if(l.length)return fe(e,this._triggerName,n,r,m,h,f,[],[],y,v,l);b.forEach(function(t){var n=t.element,r=ct(y,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=ct(v,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&d.add(n)});var _=Lt(d.values());return fe(e,this._triggerName,n,r,m,h,f,b,_,y,v)},t}(),ve=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=kt(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=Vt(o,r,e)),n[t]=o})}}),n},t}(),me=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new ve(t.style,t.options&&t.options.params||{})}),ge(this.states,"true","1"),ge(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new ye(t,e,n.states))}),this.fallbackTransition=new ye(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function ge(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var be=new te,_e=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=Gt(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=st(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],s=this._animations[t],a=new Map;if(s?(i=re(this._driver,e,s,"ng-enter","ng-leave",{},{},n,be,o)).forEach(function(t){var e=ct(a,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));a.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,rt.a)})});var u=ot(i.map(function(t){var e=a.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=lt(e,"","","");return at(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),we=[],Ce={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},Ee={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},Se="__ng_removed",Te=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=kt(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),Oe=new Te("void"),xe=new Te("DELETED"),Ae=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Me(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var s=ct(this._elementListeners,t,[]),a={name:e,phase:n,callback:r};s.push(a);var u=ct(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Me(t,"ng-trigger"),Me(t,"ng-trigger-"+e),u[e]=Oe),function(){o._engine.afterFlush(function(){var t=s.indexOf(a);t>=0&&s.splice(t,1),o._triggers[e]||delete u[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),s=new ke(this.id,e,t),a=this._engine.statesByElement.get(t);a||(Me(t,"ng-trigger"),Me(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var u=a[e],l=new Te(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[e]=l,u){if(u===xe)return s}else u=Oe;if("void"===l.value||u.value!==l.value){var c=ct(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(u.value,l.value),p=!1;if(!h){if(!r)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:l,player:s,isFallbackTransition:p}),p||(Me(t,"ng-animate-queued"),s.onStart(function(){Ve(t,"ng-animate-queued")})),s.onDone(function(){var e=i.players.indexOf(s);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(u.params,l.params)){var f=[],d=o.matchStyles(u.value,u.params,f),y=o.matchStyles(l.value,l.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){jt(t,d),Nt(t,y)})}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,r){e._elementListeners.set(r,n.filter(function(e){return e.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._signalRemovalForInnerTriggers=function(t,e,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(t,".ng-trigger",!0).forEach(function(t){if(!t[Se]){var n=r._engine.fetchNamespacesByElement(t);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):r.clearElementCache(t)}})},t.prototype.triggerLeaveAnimation=function(t,e,n,r){var i=this,o=this._engine.statesByElement.get(t);if(o){var s=[];if(Object.keys(o).forEach(function(e){if(i._triggers[e]){var n=i.trigger(t,e,"void",r);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&ot(s).onDone(function(){return i._engine.processLeaveNode(t)}),!0}return!1},t.prototype.prepareLeaveAnimationListeners=function(t){var e=this,n=this._elementListeners.get(t);if(n){var r=new Set;n.forEach(function(n){var i=n.name;if(!r.has(i)){r.add(i);var o=e._triggers[i].fallbackTransition,s=e._engine.statesByElement.get(t)[i]||Oe,a=new Te("void"),u=new ke(e.id,i,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:i,transition:o,fromState:s,toState:a,player:u,isFallbackTransition:!0})}})}},t.prototype.removeNode=function(t,e){var n=this,r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e,!0),!this.triggerLeaveAnimation(t,e,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else for(var s=t;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}this.prepareLeaveAnimationListeners(t),i?r.markElementAsRemoved(this.id,t,!1,e):(r.afterFlush(function(){return n.clearElementCache(t)}),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}},t.prototype.insertNode=function(t,e){Me(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var o=r.element,s=e._elementListeners.get(o);s&&s.forEach(function(e){if(e.name==r.triggerName){var n=lt(o,r.triggerName,r.fromState.value,r.toState.value);n._data=t,at(r.player,e.phase,n,e.callback)}}),i.markedForDestroy?e._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(e){return e.element===t})||e},t}(),Pe=function(){function t(t,e){this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new Ae(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var s=this._fetchNamespace(o);s&&e.add(s)}}return e},t.prototype.trigger=function(t,e,n,r){return!!Re(e)&&(this._fetchNamespace(t).trigger(e,n,r),!0)},t.prototype.insertNode=function(t,e,n,r){if(Re(e)){var i=e[Se];i&&i.setForRemoval&&(i.setForRemoval=!1),t&&this._fetchNamespace(t).insertNode(e,n),r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Me(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ve(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(Re(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Se]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return Re(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()});var n=this.statesByElement.get(t);n&&Object.keys(n).forEach(function(t){return n[t]=xe})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return ot(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Se];if(n&&n.setForRemoval){if(t[Se]=Ce,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)Me(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(r=0;r<i.length;r++)i[r]()}}else for(r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var o=this._whenQuietFns;this._whenQuietFns=[],n.length?ot(n).onDone(function(){o.forEach(function(t){return t()})}):o.forEach(function(t){return t()})}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,e){var n=this,r=new te,i=[],o=new Map,s=[],a=new Map,u=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(function(t){c.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),r=0;r<e.length;r++)c.add(e[r])});var h=_t(),p=Array.from(this.statesByElement.keys()),f=Ie(p,this.collectedEnterElements),d=new Map,y=0;f.forEach(function(t,e){var n="ng-enter"+y++;d.set(e,n),t.forEach(function(t){return Me(t,n)})});for(var v=[],m=new Set,g=new Set,b=0;b<this.collectedLeaveElements.length;b++)(M=(D=this.collectedLeaveElements[b])[Se])&&M.setForRemoval&&(v.push(D),m.add(D),M.hasAnimation?this.driver.query(D,".ng-star-inserted",!0).forEach(function(t){return m.add(t)}):g.add(D));var _=new Map,w=Ie(p,Array.from(m));w.forEach(function(t,e){var n="ng-leave"+y++;_.set(e,n),t.forEach(function(t){return Me(t,n)})}),t.push(function(){f.forEach(function(t,e){var n=d.get(e);t.forEach(function(t){return Ve(t,n)})}),w.forEach(function(t,e){var n=_.get(e);t.forEach(function(t){return Ve(t,n)})}),v.forEach(function(t){n.processLeaveNode(t)})});for(var C=[],E=[],S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(function(t){var e=t.player;C.push(e);var o=t.element;if(h&&n.driver.containsElement(h,o)){var c=_.get(o),p=d.get(o),f=n._buildInstruction(t,r,p,c);if(f.errors&&f.errors.length)E.push(f);else{if(t.isFallbackTransition)return e.onStart(function(){return jt(o,f.fromStyles)}),e.onDestroy(function(){return Nt(o,f.toStyles)}),void i.push(e);f.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(o,f.timelines),s.push({instruction:f,player:e,element:o}),f.queriedElements.forEach(function(t){return ct(a,t,[]).push(e)}),f.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),f.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}}else e.destroy()});if(E.length){var T=[];E.forEach(function(t){T.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return T.push("- "+t+"\n")})}),C.forEach(function(t){return t.destroy()}),this.reportError(T)}var O=new Map,x=new Map;s.forEach(function(t){var e=t.element;r.has(e)&&(x.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),i.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){ct(O,e,[]).push(t),t.destroy()})});var A=v.filter(function(t){return Fe(t,u,l)}),P=new Map;je(P,this.driver,g,l,rt.a).forEach(function(t){Fe(t,u,l)&&A.push(t)});var k=new Map;f.forEach(function(t,e){je(k,n.driver,new Set(t),u,rt.l)}),A.forEach(function(t){var e=P.get(t),n=k.get(t);P.set(t,Object(it.a)({},e,n))});var R=[],N=[],j={};s.forEach(function(t){var e=t.element,s=t.player,a=t.instruction;if(r.has(e)){if(c.has(e))return s.onDestroy(function(){return Nt(e,a.toStyles)}),void i.push(s);var u=j;if(x.size>1){for(var l=e,h=[];l=l.parentNode;){var p=x.get(l);if(p){u=p;break}h.push(l)}h.forEach(function(t){return x.set(t,u)})}var f=n._buildAnimation(s.namespaceId,a,O,o,k,P);if(s.setRealPlayer(f),u===j)R.push(s);else{var d=n.playersByElement.get(u);d&&d.length&&(s.parentPlayer=ot(d)),i.push(s)}}else jt(e,a.fromStyles),s.onDestroy(function(){return Nt(e,a.toStyles)}),N.push(s),c.has(e)&&i.push(s)}),N.forEach(function(t){var e=o.get(t.element);if(e&&e.length){var n=ot(e);t.setRealPlayer(n)}}),i.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var I=0;I<v.length;I++){var D,M=(D=v[I])[Se];if(Ve(D,"ng-leave"),!M||!M.hasAnimation){var V=[];if(a.size){var L=a.get(D);L&&L.length&&V.push.apply(V,L);for(var F=this.driver.query(D,".ng-animating",!0),U=0;U<F.length;U++){var H=a.get(F[U]);H&&H.length&&V.push.apply(V,H)}}var B=V.filter(function(t){return!t.destroyed});B.length?Le(this,D,B):this.processLeaveNode(D)}}return v.length=0,R.forEach(function(t){n.players.push(t),t.onDone(function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)}),t.play()}),R},t.prototype.elementContainsData=function(t,e){var n=!1,r=e[Se];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,r,i){var o=[];if(e){var s=this.playersByQueriedElement.get(t);s&&(o=s)}else{var a=this.playersByElement.get(t);if(a){var u=!i||"void"==i;a.forEach(function(t){t.queued||(u||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(function(t){return!(n&&n!=t.namespaceId||r&&r!=t.triggerName)})),o},t.prototype._beforeAnimationBuild=function(t,e,n){for(var r=e.element,i=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName,s=function(t){var s=t.element,u=s!==r,l=ct(n,s,[]);a._getPreviousPlayers(s,u,i,o,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})},a=this,u=0,l=e.timelines;u<l.length;u++)s(l[u]);jt(r,e.fromStyles)},t.prototype._buildAnimation=function(t,e,n,r,i,o){var s=this,a=e.triggerName,u=e.element,l=[],c=new Set,h=new Set,p=e.timelines.map(function(e){var p=e.element;c.add(p);var f=p[Se];if(f&&f.removedBeforeQueried)return new rt.d;var d,y,v=p!==u,m=(d=(n.get(p)||we).map(function(t){return t.getRealPlayer()}),y=[],function t(e,n){for(var r=0;r<e.length;r++){var i=e[r];i instanceof rt.k?t(i.players,n):n.push(i)}}(d,y),y).filter(function(t){return!!t.element&&t.element===p}),g=i.get(p),b=o.get(p),_=st(0,s._normalizer,0,e.keyframes,g,b),w=s._buildPlayer(e,_,m);if(e.subTimeline&&r&&h.add(p),v){var C=new ke(t,a,p);C.setRealPlayer(w),l.push(C)}return w});l.forEach(function(t){ct(s.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return function(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else(r=t[e])&&(r.length&&(i=r.indexOf(n),r.splice(i,1)),0==r.length&&delete t[e]);return r}(s.playersByQueriedElement,t.element,t)})}),c.forEach(function(t){return Me(t,"ng-animating")});var f=ot(p);return f.onDestroy(function(){c.forEach(function(t){return Ve(t,"ng-animating")}),Nt(u,e.toStyles)}),h.forEach(function(t){ct(r,t,[]).push(f)}),f},t.prototype._buildPlayer=function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new rt.d},t}(),ke=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new rt.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return at(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){ct(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Re(t){return t&&1===t.nodeType}function Ne(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function je(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(Ne(t))});var s=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[Se]=Ee,s.push(r))}),t.set(r,o)});var a=0;return n.forEach(function(t){return Ne(t,o[a++])}),s}function Ie(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var s=e.parentNode;return o=n.has(s)?s:r.has(s)?1:t(s),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}var De="$$classes";function Me(t,e){if(t.classList)t.classList.add(e);else{var n=t[De];n||(n=t[De]={}),n[e]=!0}}function Ve(t,e){if(t.classList)t.classList.remove(e);else{var n=t[De];n&&delete n[e]}}function Le(t,e,n){ot(n).onDone(function(){return t.processLeaveNode(e)})}function Fe(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}var Ue=function(){function t(t,e){var n=this;this._driver=t,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Pe(t,e),this._timelineEngine=new _e(t,e),this._transitionEngine.onRemovalComplete=function(t,e){return n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,s=this._triggerCache[o];if(!s){var a=[],u=Gt(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new me(t,e)}(r,u),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=ht(n);this._timelineEngine.command(i[0],e,i[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=ht(n);return this._timelineEngine.listen(o[0],e,o[1],i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),He=function(){function t(t,e,n,r){void 0===r&&(r=[]);var i=this;this.element=t,this.keyframes=e,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&r.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return i.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(t){return Rt(t,!1)}),n=Object.keys(this.previousStyles);if(n.length&&e.length){var r=e[0],i=[];if(n.forEach(function(e){r.hasOwnProperty(e)||i.push(e),r[e]=t.previousStyles[e]}),i.length)for(var o=this,s=function(){var t=e[a];i.forEach(function(e){t[e]=Be(o.element,e)})},a=1;a<e.length;a++)s()}this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Be(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}();function Be(t,e){return window.getComputedStyle(t)[e]}var ze=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return bt(t)},t.prototype.matchesElement=function(t,e){return wt(t,e)},t.prototype.containsElement=function(t,e){return Ct(t,e)},t.prototype.query=function(t,e,n){return Et(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.animate=function(t,e,n,r,i,o){void 0===o&&(o=[]);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var a=o.filter(function(t){return t instanceof He});return new He(t,e,s,a)},t}(),qe=function(t){function e(e,n){var i=t.call(this)||this;return i._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:r.O.None,styles:[],data:{animation:[]}}),i}return Object(it.b)(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Object(rt.f)(t):t;return Ge(this._renderer,null,e,"register",[n]),new We(e,this._renderer)},e}(rt.b),We=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return Object(it.b)(e,t),e.prototype.create=function(t,e){return new Ye(this._id,t,e||{},this._renderer)},e}(rt.c),Ye=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Ge(this._renderer,this.element,this.id,t,e)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}();function Ge(t,e,n,r,i){return t.setProperty(e,"@@"+n+":"+r,i)}var Xe=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var i=this._rendererCache.get(r);return i||(i=new Qe("",r,this.engine),this._rendererCache.set(r,i)),i}var o=e.id,s=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,t),e.data.animation.forEach(function(e){return n.engine.registerTrigger(o,s,t,e.name,e)}),new Ze(this,s,r,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;this.promise.then(function(){t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,e,n){var r=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return e(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(t){(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t}(),Qe=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e){this.engine.onRemove(this.namespaceId,e,this.delegate)},t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.disableAnimations=function(t,e){this.engine.disableAnimations(t,e)},t}(),Ze=function(t){function e(e,n,r,i){var o=t.call(this,n,r,i)||this;return o.factory=e,o.namespaceId=n,o}return Object(it.b)(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var r,i,o,s=this;if("@"==e.charAt(0)){var a=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),u=e.substr(1),l="";return"@"!=u.charAt(0)&&(u=(i=u,o=i.indexOf("."),r=[i.substring(0,o),i.substr(o+1)])[0],l=r[1]),this.engine.listen(this.namespaceId,a,u,l,function(t){s.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)},e}(Qe),Ke=function(t){function e(e,n){return t.call(this,e,n)||this}return Object(it.b)(e,t),e}(Ue);function $e(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate?new ze:new St}function Je(){return new he}function tn(t,e,n){return new Xe(t,e,n)}var en=function(){},nn=n("7DMc"),rn=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),on=function(){var t={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};return t[t.Get]="Get",t[t.Post]="Post",t[t.Put]="Put",t[t.Delete]="Delete",t[t.Options]="Options",t[t.Head]="Head",t[t.Patch]="Patch",t}(),sn=function(){var t={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};return t[t.Basic]="Basic",t[t.Cors]="Cors",t[t.Default]="Default",t[t.Error]="Error",t[t.Opaque]="Opaque",t}(),an=function(){var t={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};return t[t.NONE]="NONE",t[t.JSON]="JSON",t[t.FORM]="FORM",t[t.FORM_DATA]="FORM_DATA",t[t.TEXT]="TEXT",t[t.BLOB]="BLOB",t[t.ARRAY_BUFFER]="ARRAY_BUFFER",t}(),un=function(){var t={Text:0,Json:1,ArrayBuffer:2,Blob:3};return t[t.Text]="Text",t[t.Json]="Json",t[t.ArrayBuffer]="ArrayBuffer",t[t.Blob]="Blob",t}(),ln=function(){function t(e){var n=this;this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof t?e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),r.forEach(function(e){return n.append(t,e)})}))}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=t.slice(e+1).trim();n.set(r,i)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(t){return i.push.apply(i,t.split(","))}),e[t._normalizedNames.get(r)]=i}),e},t.prototype.getAll=function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),cn=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,i=t.statusText,o=t.type,s=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=i?i:null,this.type=null!=o?o:null,this.url=null!=s?s:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),hn=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:sn.Default,headers:new ln})||this}return Object(it.b)(e,t),e}(cn),pn=function(){};function fn(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return on.Get;case"POST":return on.Post;case"PUT":return on.Put;case"DELETE":return on.Delete;case"OPTIONS":return on.Options;case"HEAD":return on.Head;case"PATCH":return on.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}var dn=function(t){return t>=200&&t<300},yn=function(){function t(){}return t.prototype.encodeKey=function(t){return vn(t)},t.prototype.encodeValue=function(t){return vn(t)},t}();function vn(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var mn=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new yn),this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],i=r[0],o=r[1],s=e.get(i)||[];s.push(o),e.set(i,s)}),e}(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype.delete=function(t){this.paramsMap.delete(t)},t}(),gn=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(t){if(void 0===t&&(t="legacy"),this._body instanceof mn)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+t)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:function(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return e.buffer}(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),bn=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return Object(it.b)(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(gn),_n=/^\)\]\}',?\n/,wn=function(){function t(t,e,n){var r=this;this.request=t,this.response=new _.a(function(i){var o=e.build();o.open(on[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(o.withCredentials=t.withCredentials);var s=function(){var e=1223===o.status?204:o.status,r=null;204!==e&&"string"==typeof(r="undefined"==typeof o.response?o.responseText:o.response)&&(r=r.replace(_n,"")),0===e&&(e=r?200:0);var s,a=ln.fromResponseHeaderString(o.getAllResponseHeaders()),u=("responseURL"in(s=o)?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):null)||t.url,l=new cn({body:r,status:e,headers:a,statusText:o.statusText||"OK",url:u});null!=n&&(l=n.merge(l));var c=new bn(l);if(c.ok=dn(e),c.ok)return i.next(c),void i.complete();i.error(c)},a=function(t){var e=new cn({body:t,type:sn.Error,status:o.status,statusText:o.statusText});null!=n&&(e=n.merge(e)),i.error(new bn(e))};if(r.setDetectedContentType(t,o),null==t.headers&&(t.headers=new ln),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return o.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=o.responseType)switch(t.responseType){case un.ArrayBuffer:o.responseType="arraybuffer";break;case un.Json:o.responseType="json";break;case un.Text:o.responseType="text";break;case un.Blob:o.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return o.addEventListener("load",s),o.addEventListener("error",a),o.send(r.request.getBody()),function(){o.removeEventListener("load",s),o.removeEventListener("error",a),o.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case an.NONE:break;case an.JSON:e.setRequestHeader("content-type","application/json");break;case an.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case an.TEXT:e.setRequestHeader("content-type","text/plain");break;case an.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),Cn=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=Object(nt.s)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),En=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new wn(t,this._browserXHR,this._baseResponseOptions)},t}(),Sn=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,r=t.body,i=t.url,o=t.search,s=t.params,a=t.withCredentials,u=t.responseType;this.method=null!=e?fn(e):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=i?i:null,this.params=this._mergeSearchParams(s||o),this.withCredentials=null!=a?a:null,this.responseType=null!=u?u:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new ln(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof mn?t.clone():"string"==typeof t?new mn(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new mn;return Object.keys(t).forEach(function(r){var i=t[r];Array.isArray(i)?i.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,i,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Tn=function(t){function e(){return t.call(this,{method:on.Get,headers:new ln})||this}return Object(it.b)(e,t),e}(Sn),On=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var i,o=e.params||e.search;if(o&&(i="object"!=typeof o||o instanceof mn?o.toString():function(t){var e=new mn;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}(o).toString()).length>0){var s="?";-1!=n.url.indexOf("?")&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=r+s+i}return n._body=e.body,n.method=fn(e.method),n.headers=new ln(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return Object(it.b)(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return an.JSON;case"application/x-www-form-urlencoded":return an.FORM;case"multipart/form-data":return an.FORM_DATA;case"text/plain":case"text/html":return an.TEXT;case"application/octet-stream":return this._body instanceof Rn?an.ARRAY_BUFFER:an.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?an.NONE:this._body instanceof mn?an.FORM:this._body instanceof Pn?an.FORM_DATA:this._body instanceof kn?an.BLOB:this._body instanceof Rn?an.ARRAY_BUFFER:this._body&&"object"==typeof this._body?an.JSON:an.TEXT},e.prototype.getBody=function(){switch(this.contentType){case an.JSON:case an.FORM:return this.text();case an.FORM_DATA:return this._body;case an.TEXT:return this.text();case an.BLOB:return this.blob();case an.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(gn),xn=function(){},An="object"==typeof window?window:xn,Pn=An.FormData||xn,kn=An.Blob||xn,Rn=An.ArrayBuffer||xn;function Nn(t,e){return t.createConnection(e).response}function jn(t,e,n,r){return t.merge(new Sn(e?{method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:n,url:r}))}var In=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=Nn(this._backend,new On(jn(this._defaultOptions,e,on.Get,t)));else{if(!(t instanceof On))throw new Error("First argument must be a url string or Request instance.");n=Nn(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new On(jn(this._defaultOptions,e,on.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new On(jn(this._defaultOptions.merge(new Sn({body:e})),n,on.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new On(jn(this._defaultOptions.merge(new Sn({body:e})),n,on.Put,t)))},t.prototype.delete=function(t,e){return this.request(new On(jn(this._defaultOptions,e,on.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new On(jn(this._defaultOptions.merge(new Sn({body:e})),n,on.Patch,t)))},t.prototype.head=function(t,e){return this.request(new On(jn(this._defaultOptions,e,on.Head,t)))},t.prototype.options=function(t,e){return this.request(new On(jn(this._defaultOptions,e,on.Options,t)))},t}();function Dn(){return new Cn}function Mn(t,e){return new In(t,e)}var Vn,Ln,Fn=function(){},Un=function(){function t(){}return t.prototype.getNativeWindow=function(){return window},t}(),Hn=function(){function t(){}return t.prototype.getNativeDocument=function(){return document},t}(),Bn=[Un,Hn],zn=function(){},qn=this&&this.__extends||(Vn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}Vn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){t[t.HTTP=1]="HTTP",t[t.HTTPS=2]="HTTPS",t[t.AUTO=3]="AUTO"}(Ln||(Ln={}));var Wn=new r.o("angular-google-maps LAZY_MAPS_API_CONFIG"),Yn=function(t){function e(e,n,r){var i=t.call(this)||this;return i._config=e||{},i._windowRef=n,i._documentRef=r,i}return qn(e,t),e.prototype.load=function(){var t=this;if(this._scriptLoadingPromise)return this._scriptLoadingPromise;var e=this._documentRef.getNativeDocument().createElement("script");return e.type="text/javascript",e.async=!0,e.defer=!0,e.src=this._getScriptSrc("angular2GoogleMapsLazyMapsAPILoader"),this._scriptLoadingPromise=new Promise(function(n,r){t._windowRef.getNativeWindow().angular2GoogleMapsLazyMapsAPILoader=function(){n()},e.onerror=function(t){r(t)}}),this._documentRef.getNativeDocument().body.appendChild(e),this._scriptLoadingPromise},e.prototype._getScriptSrc=function(t){var e;switch(this._config&&this._config.protocol||Ln.HTTPS){case Ln.AUTO:e="";break;case Ln.HTTP:e="http:";break;case Ln.HTTPS:e="https:"}var n={v:this._config.apiVersion||"3",callback:t,key:this._config.apiKey,client:this._config.clientId,channel:this._config.channel,libraries:this._config.libraries,region:this._config.region,language:this._config.language};return e+"//"+(this._config.hostAndPath||"maps.googleapis.com/maps/api/js")+"?"+Object.keys(n).filter(function(t){return null!=n[t]}).filter(function(t){return!Array.isArray(n[t])||Array.isArray(n[t])&&n[t].length>0}).map(function(t){var e=n[t];return Array.isArray(e)?{key:t,value:e.join(",")}:{key:t,value:n[t]}}).map(function(t){return t.key+"="+t.value}).join("&")},e}(zn),Gn=function(){},Xn=function(){},Qn=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:Bn.concat([{provide:zn,useClass:Yn},{provide:Wn,useValue:e}])}},t}(),Zn=r._1(i,[o],function(t){return r._12([r._13(512,r.j,r.X,[[8,[K,et]],[3,r.j],r.v]),r._13(5120,r.s,r._22,[[3,r.s]]),r._13(4608,s.n,s.m,[r.s,[2,s.t]]),r._13(5120,r.c,r._6,[]),r._13(5120,r.q,r._14,[]),r._13(5120,r.r,r._17,[]),r._13(4608,nt.c,nt.r,[s.d]),r._13(6144,r.F,null,[nt.c]),r._13(4608,nt.f,nt.g,[]),r._13(5120,nt.d,function(t,e,n,r,i){return[new nt.k(t,e),new nt.o(n),new nt.n(r,i)]},[s.d,r.x,s.d,s.d,nt.f]),r._13(4608,nt.e,nt.e,[nt.d,r.x]),r._13(135680,nt.m,nt.m,[s.d]),r._13(4608,nt.l,nt.l,[nt.e,nt.m]),r._13(5120,Tt,$e,[]),r._13(5120,ce,Je,[]),r._13(4608,Ue,Ke,[Tt,ce]),r._13(5120,r.D,tn,[nt.l,Ue,r.x]),r._13(6144,nt.p,null,[nt.m]),r._13(4608,r.L,r.L,[r.x]),r._13(4608,nt.h,nt.h,[s.d]),r._13(4608,nt.i,nt.i,[s.d]),r._13(4608,rt.b,qe,[r.D,nt.b]),r._13(4608,nn.h,nn.h,[]),r._13(4608,rn,rn,[]),r._13(4608,cn,hn,[]),r._13(5120,pn,Dn,[]),r._13(4608,En,En,[rn,cn,pn]),r._13(4608,Sn,Tn,[]),r._13(5120,In,Mn,[En,Sn]),r._13(5120,c.a,c.z,[c.m]),r._13(4608,c.f,c.f,[]),r._13(6144,c.h,null,[c.f]),r._13(135680,c.r,c.r,[c.m,r.u,r.i,r.p,c.h]),r._13(4608,c.g,c.g,[]),r._13(5120,c.j,c.C,[c.A]),r._13(5120,r.b,function(t){return[t]},[c.j]),r._13(4608,Un,Un,[]),r._13(4608,Hn,Hn,[]),r._13(4608,zn,Yn,[Wn,Un,Hn]),r._13(512,s.c,s.c,[]),r._13(1024,r.l,nt.q,[]),r._13(1024,r.w,function(){return[c.v()]},[]),r._13(512,c.A,c.A,[r.p]),r._13(1024,r.d,function(t,e){return[nt.t(t),c.B(e)]},[[2,r.w],c.A]),r._13(512,r.e,r.e,[[2,r.d]]),r._13(131584,r.g,r.g,[r.x,r.Y,r.p,r.l,r.j,r.e]),r._13(512,r.f,r.f,[r.g]),r._13(512,nt.a,nt.a,[[3,nt.a]]),r._13(512,en,en,[]),r._13(512,nn.f,nn.f,[]),r._13(512,nn.c,nn.c,[]),r._13(512,Fn,Fn,[]),r._13(1024,c.u,c.x,[[3,c.m]]),r._13(512,c.t,c.c,[]),r._13(512,c.b,c.b,[]),r._13(256,c.i,{},[]),r._13(1024,s.i,c.w,[s.r,[2,s.a],c.i]),r._13(512,s.h,s.h,[s.i]),r._13(512,r.i,r.i,[]),r._13(512,r.u,r.I,[r.i,[2,r.J]]),r._13(1024,c.k,function(){return[[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"",component:G,children:[{path:"",loadChildren:"./layouts/admin-layout/admin-layout.module#AdminLayoutModule"}]}]]},[]),r._13(1024,c.m,c.y,[r.g,c.t,c.b,s.h,r.p,r.u,r.i,c.k,c.i,[2,c.s],[2,c.l]]),r._13(512,c.p,c.p,[[2,c.u],[2,c.m]]),r._13(512,Gn,Gn,[]),r._13(512,Xn,Xn,[]),r._13(512,Qn,Qn,[]),r._13(512,i,i,[]),r._13(256,Wn,{apiKey:"YOUR_GOOGLE_MAPS_API_KEY"},[])])});Object(r.R)(),nt.j().bootstrapModuleFactory(Zn)},x6VL:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("TToO"),i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return Object(r.b)(e,t),e}(Error)},zVgD:function(t,e,n){"use strict";var r=n("TToO"),i=n("BX3T"),o=n("N4j0"),s=n("cQXm"),a=n("nsdQ"),u=n("AMGY"),l=n("YaPU"),c=n("etqZ"),h=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=d(e)}return Object(r.b)(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.iterator,r=t.subscriber;if(t.hasError)r.error(t.error);else{var i=n.next();i.done?r.complete():(r.next(i.value),t.index=e+1,r.closed?"function"==typeof n.return&&n.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this.iterator,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{index:0,iterator:n,subscriber:t});for(;;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof n.return&&n.return();break}}},e}(l.a),p=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[c.a]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=function(e){var n,r,i=+t.length;return isNaN(i)?0:0!==i&&"number"==typeof(n=i)&&u.a.isFinite(n)?(i=(0==(r=+i)?r:isNaN(r)?r:r<0?-1:1)*Math.floor(Math.abs(i)))<=0?0:i>y?y:i:i}()),this.arr=t,this.idx=e,this.len=n}return t.prototype[c.a]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}();function d(t){var e=t[c.a];if(!e&&"string"==typeof t)return new p(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[c.a]()}var y=Math.pow(2,53)-1,v=n("Veqx"),m=n("TILf"),g=n("+3/4"),b=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Object(r.b)(e,t),e.create=function(t,n){var r=t.length;return 0===r?new g.a:1===r?new m.a(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.subscriber;r.closed||(n>=t.length?r.complete():(r.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,i=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:t});for(var o=0;o<i&&!t.closed;o++)t.next(n[o]);t.complete()},e}(l.a),_=n("OVmG"),w=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return l.a.of(this.value);case"E":return l.a.throw(this.error);case"C":return l.a.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),C=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return Object(r.b)(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new E(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(w.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(w.createError(t))},e.prototype._complete=function(){this.scheduleMessage(w.createComplete())},e}(_.a),E=function(t,e){this.notification=t,this.destination=e},S=n("+CnV"),T=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return Object(r.b)(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[S.a])return t instanceof l.a&&!n?t:new e(t,n);if(Object(i.a)(t))return new v.a(t,n);if(Object(s.a)(t))return new a.a(t,n);if("function"==typeof t[c.a]||"string"==typeof t)return new h(t,n);if(Object(o.a)(t))return new b(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[S.a]().subscribe(t):e[S.a]().subscribe(new C(t,n,0))},e}(l.a);n.d(e,"a",function(){return O});var O=T.create}},[0]);
453,380
453,380
0.720034
a823039f9f86b8689f5ad0505aaae0f00a51e5f2
4,156
js
JavaScript
node_modules/react-intersection-observer/react-intersection-observer.umd.min.js
RandyCamacho/furrow-studio-clone
502ee78630a447291d4489f4ed34dc8502d579e7
[ "MIT" ]
null
null
null
node_modules/react-intersection-observer/react-intersection-observer.umd.min.js
RandyCamacho/furrow-studio-clone
502ee78630a447291d4489f4ed34dc8502d579e7
[ "MIT" ]
null
null
null
node_modules/react-intersection-observer/react-intersection-observer.umd.min.js
RandyCamacho/furrow-studio-clone
502ee78630a447291d4489f4ed34dc8502d579e7
[ "MIT" ]
null
null
null
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactIntersectionObserver={},e.React)}(this,(function(e,t){"use strict";function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){if(!e)throw new Error("Invariant failed")}var s=new Map,a=new Map,c=new Map,h=0;function d(e,t,r){void 0===r&&(r={}),r.threshold||(r.threshold=0);var n=r,o=n.root,d=n.rootMargin,u=n.threshold;if(s.has(e)&&(process.env.NODE_ENV,i(!1)),e){var f=function(e){return e?c.has(e)?c.get(e):(h+=1,c.set(e,h.toString()),c.get(e)+"_"):""}(o)+(d?u.toString()+"_"+d:u.toString()),p=a.get(f);p||(p=new IntersectionObserver(l,r),f&&a.set(f,p));var v={callback:t,element:e,inView:!1,observerId:f,observer:p,thresholds:p.thresholds||(Array.isArray(u)?u:[u])};return s.set(e,v),p.observe(e),v}}function u(e){if(e){var t=s.get(e);if(t){var r=t.observerId,n=t.observer,o=n.root;n.unobserve(e);var i=!1,a=!1;r&&s.forEach((function(t,n){n!==e&&(t.observerId===r&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&c.delete(o),n&&!i&&n.disconnect(),s.delete(e)}}}function l(e){e.forEach((function(e){var t=e.isIntersecting,r=e.intersectionRatio,n=e.target,o=s.get(n);if(o&&r>=0){var i=o.thresholds.some((function(e){return o.inView?r>e:r>=e}));void 0!==t&&(i=i&&t),o.inView=i,o.callback(i,e)}}))}var f=function(e){var s,a;function c(){for(var t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return r(o(t=e.call.apply(e,[this].concat(i))||this),"state",{inView:!1,entry:void 0}),r(o(t),"node",null),r(o(t),"handleNode",(function(e){t.node&&(u(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),r(o(t),"handleChange",(function(e,r){(e!==t.state.inView||e)&&t.setState({inView:e,entry:r}),t.props.onChange&&t.props.onChange(e,r)})),t}a=e,(s=c).prototype=Object.create(a.prototype),s.prototype.constructor=s,s.__proto__=a;var h=c.prototype;return h.componentDidMount=function(){this.node||(process.env.NODE_ENV,i(!1))},h.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(u(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(u(this.node),this.node=null)},h.componentWillUnmount=function(){this.node&&(u(this.node),this.node=null)},h.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,r=e.root,n=e.rootMargin;d(this.node,this.handleChange,{threshold:t,root:r,rootMargin:n})}},h.render=function(){var e=this.state,r=e.inView,o=e.entry;if(!function(e){return"function"!=typeof e.children}(this.props))return this.props.children({inView:r,entry:o,ref:this.handleNode});var i=this.props,s=i.children,a=i.as,c=i.tag,h=(i.triggerOnce,i.threshold,i.root,i.rootMargin,i.onChange,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(i,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange"]));return t.createElement(a||c||"div",n({ref:this.handleNode},h),s)},c}(t.Component);r(f,"displayName","InView"),r(f,"defaultProps",{threshold:0,triggerOnce:!1});var p={inView:!1,entry:void 0};e.InView=f,e.default=f,e.useInView=function(e){void 0===e&&(e={});var r=t.useRef(),n=t.useState(p),o=n[0],i=n[1];return[t.useCallback((function(t){r.current&&(u(r.current),e.triggerOnce||i(p)),t&&d(t,(function(r,n){i({inView:r,entry:n}),r&&e.triggerOnce&&u(t)}),e),r.current=t}),[e.threshold,e.root,e.rootMargin,e.triggerOnce]),o.inView,o.entry]},Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=react-intersection-observer.umd.min.js.map
1,385.333333
4,091
0.695621
a82315c99cc5a5feb32119277731b958e272d544
446
js
JavaScript
test/docs.js
MichaelHDesigns/gltcore-lib
2b1267f9f5795b5651f8ffeab5efc33598259a0d
[ "MIT" ]
null
null
null
test/docs.js
MichaelHDesigns/gltcore-lib
2b1267f9f5795b5651f8ffeab5efc33598259a0d
[ "MIT" ]
null
null
null
test/docs.js
MichaelHDesigns/gltcore-lib
2b1267f9f5795b5651f8ffeab5efc33598259a0d
[ "MIT" ]
3
2018-09-10T03:17:21.000Z
2022-03-22T03:21:19.000Z
'use strict'; var chai = require('chai'); var should = chai.should(); var gltcore = require('..'); var fs = require('fs'); describe('Documentation', function() { it('major and minor versions should match', function() { var versionRE = /v[0-9]+\.[0-9]+/; var docIndex = fs.readFileSync('./docs/index.md', 'ascii'); var docVersion = docIndex.match(versionRE)[0]; gltcore.version.indexOf(docVersion).should.equal(0); }); });
24.777778
63
0.639013
a82331b30348f60cc163b5d9de9217fbf16e4367
2,592
js
JavaScript
application/views/admin/documentation/assets/js/custom.js
Tqkhan/itgs
939707c80623bb9f1673b4e5c4f3d43f1386bde1
[ "MIT" ]
null
null
null
application/views/admin/documentation/assets/js/custom.js
Tqkhan/itgs
939707c80623bb9f1673b4e5c4f3d43f1386bde1
[ "MIT" ]
null
null
null
application/views/admin/documentation/assets/js/custom.js
Tqkhan/itgs
939707c80623bb9f1673b4e5c4f3d43f1386bde1
[ "MIT" ]
null
null
null
$(document).ready(function () { "use strict"; // Start of use strict //back to top $('body').append('<div id="toTop" class="btn back-top"><span class="fa fa-angle-up"></span></div>'); $(window).on('scroll',function () { if ($(this).scrollTop() !== 0) { $('#toTop').fadeIn(); } else { $('#toTop').fadeOut(); } }); $('#toTop').on("click", function () { $("html, body").animate({scrollTop: 0}, 600); return false; }); // IE10 viewport hack for Surface/desktop Windows 8 bug // See Getting Started docs for more information if (navigator.userAgent.match(/IEMobile\/10\.0/)) { var msViewportStyle = document.createElement("style"); msViewportStyle.appendChild( document.createTextNode( "@-ms-viewport{width:auto!important}" ) ); document.getElementsByTagName("head")[0]. appendChild(msViewportStyle); } var $window = $(window); var $body = $(document.body); var navHeight = $('.navbar').outerHeight(true) + 10; $body.scrollspy({ target: '.bs-sidebar', offset: navHeight }); $window.on('load', function () { $body.scrollspy('refresh'); }); // back to top setTimeout(function () { var $sideBar = $('.bs-sidebar'); $sideBar.affix({ offset: { top: function () { var offsetTop = $sideBar.offset().top; var sideBarMargin = parseInt($sideBar.children(0).css('margin-top'), 33); var navOuterHeight = $('.bs-docs-nav').height(); return (this.top = offsetTop - navOuterHeight - sideBarMargin); } , bottom: function () { return (this.bottom = $('.bs-footer').outerHeight(true)); } } }); }, 100); // jQuery for page scrolling feature - requires jQuery Easing plugin $('a.page-scroll').bind('click', function (event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top - 50) }, 1250, 'easeInOutExpo'); event.preventDefault(); }); /* Demo purposes only */ $(".hover").mouseleave( function () { $(this).removeClass("hover"); } ); $('body').scrollspy({ target: '.bs-docs-sidebar', offset: 40 }); });
27
104
0.491512
a82377b926dfe85e04673654cb17111f0809ee85
904
js
JavaScript
project/apps/FE-admin/src/utils/Actions.js
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
null
null
null
project/apps/FE-admin/src/utils/Actions.js
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
1
2022-03-02T22:54:36.000Z
2022-03-02T22:54:36.000Z
project/apps/FE-admin/src/utils/Actions.js
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
null
null
null
const actions = [ { name: 'createAdmin', displayName: 'Create Admin', link: '/user/create', icon: 'user-plus', forwardState: true, state: { userType: 'admin' } }, { name: 'viewMembers', displayName: 'Members', link: '/member', icon: 'users', forwardState: false }, { name: 'viewUsers', displayName: 'Users', link: '/user', icon: 'users-cog', forwardState: false }, { name: 'Create Applicant', displayName: 'New Applicant', link: '/member/create', icon: 'user-plus', forwardState: false }, { name: 'Transaction', displayName: 'Post Transaction', link: '/transaction/create', icon: 'plus', forwardState: false } ] export default actions;
21.52381
40
0.484513
a823b375a1388c79af3f994d98d569121951e79f
2,956
js
JavaScript
index.js
brunodiasdev/quizdomilhao
701d4b4c01751ad765682db405811e0e703e92ea
[ "MIT" ]
null
null
null
index.js
brunodiasdev/quizdomilhao
701d4b4c01751ad765682db405811e0e703e92ea
[ "MIT" ]
null
null
null
index.js
brunodiasdev/quizdomilhao
701d4b4c01751ad765682db405811e0e703e92ea
[ "MIT" ]
null
null
null
//------------------------- /*seleções do HTML */ let iniproj = document.querySelector('.comecar') let perg = document.querySelector('.pergunta') let respA = document.querySelector('.respostaA') let respB = document.querySelector('.respostaB') let respC = document.querySelector('.respostaC') let respD = document.querySelector('.respostaD') iniproj.onclick = function(){ ini() } //----------------------------------- /*Criando array de perguntas*/ const perguntas = [ p1 = [ pergunta = "Qual sobrenome no Mickey, desenho da Disney?", respostas = [ 'Donald', 'Julio', 'venâncio', 'Mouse'] ], p2 = [ pergunta = 'Qual a capital do Brasil?', respostas = [ 'Prado', 'Japão', 'São Paulo', 'Brasília'] ], p3 = [ pergunta = 'Em que país fica o Hawaii?', respostas = [ 'Brasil', 'Congo', 'India', 'USA'] ] ] //---------------------------- /*Função para partida do jogo, ela interliga com a próxima etapa que são as funções de alternar as pergultas aleatóriamente*/ function ini(){ pergnov = perguntas[num][0] perg.innerHTML = pergnov respA.innerHTML = perguntas[num][1][numVar] respB.innerHTML = perguntas[num][1][numVar2] respC.innerHTML = perguntas[num][1][numVar3] respD.innerHTML = perguntas[num][1][numVar4] } const num = parseInt(variante()) function variante() { let x = Math.random() * (perguntas.length - 0) + 0; let num = x return num } //--------------------------------- /* Funções que servem para de forma "ramdomizada" alternar as perguntas.*/ const numVar = parseInt(varianteResp()) const numVar2 = parseInt(varianteResp2()) const numVar3 = parseInt(varianteResp3()) const numVar4 = parseInt(varianteResp4()) function varianteResp(){ let x = parseInt(Math.random() * (4 - 0) + 0); return x } function varianteResp2(){ let x = Math.trunc(Math.random() * (4 - 0) + 0); if( x !== numVar){ return x } else { do { x = Math.trunc(Math.random() * (4 - 0) + 0); } while( x == numVar) return x } } function varianteResp3(){ let x = Math.trunc(Math.random() * (4 - 0) + 0); if( x !== numVar && x !== numVar2){ return x } else{ while (x == numVar || x == numVar2){ x = Math.trunc(Math.random() * (4 - 0) + 0); } return x } } function varianteResp4(){ let x = Math.trunc(Math.random() * (4 - 0) + 0); if( x !== numVar && x !== numVar2 && x !== numVar3){ return x } else{ while (x == numVar || x == numVar2 || x == numVar3){ x = Math.trunc(Math.random() * (4 - 0) + 0); } return x } } //Função para determinar a resposta certa.. let letraA = document.querySelector('.letraA') let letraB = document.querySelector('.letraB') let letraC = document.querySelector('.letraC') let letraD = document.querySelector('.letraD') function respCerta(){ if() }
28.152381
125
0.572057
a8245ab835f4e7087475fbe3d01ba97f1e3855e4
22,674
js
JavaScript
SuiteCommerce Advanced/SC_21.1_Live/LocalDistributionAdvanced/languages/shopping_zh_CN.js
Rudracool/MotherCareBackend-
1e38dd4c839929b026b8565739fcc7879a9b79c3
[ "MIT" ]
null
null
null
SuiteCommerce Advanced/SC_21.1_Live/LocalDistributionAdvanced/languages/shopping_zh_CN.js
Rudracool/MotherCareBackend-
1e38dd4c839929b026b8565739fcc7879a9b79c3
[ "MIT" ]
null
null
null
SuiteCommerce Advanced/SC_21.1_Live/LocalDistributionAdvanced/languages/shopping_zh_CN.js
Rudracool/MotherCareBackend-
1e38dd4c839929b026b8565739fcc7879a9b79c3
[ "MIT" ]
null
null
null
SC.Translations={"$(0) Product":"$(0) 个产品","$(0) Products":"$(0) 个产品","$(0) Products, $(1) Items":"$(0) 个产品,$(1) 件货品","$(0) Products, 1 Item":"$(0) 个产品,1 件货品",'$(0) Results for <span class="facets-facet-browse-title-alt">$(1)</span>':'<span class="facets-facet-browse-title-alt">$(1)</span> 的 $(0) 个结果','$(0) Results for <span class="facets-faceted-navigation-title-alt">$(1)</span>':'<span class="facets-faceted-navigation-title-alt">$(1)</span> 的 $(0) 个结果',"$(0) items":"$(0) 件货品","$(0) must be at most $(1) characters":"$(0) 最多必须为 $(1) 个字符","$(0) of $(1)":"$(0)(共 $(1))","$(0) of $(1) items in your list are currently not available for purchase. If you decide to add the list to your cart, only available products will be added.":"您的列表中有 $(0) 件(共 $(1) 件)货品目前无法购买。如果决定将此列表添加到购物车,仅会添加可购买的产品。","$(0) of $(1) items in your list is currently not available for purchase. If you decide to add the list to your cart, only available products will be added.":"您的列表中有 $(0) 件(共 $(1) 件)货品目前无法购买。如果决定将此列表添加到购物车,仅会添加可购买的产品。","$(0) reviews":"$(0) 条评价","$(0) stars":"$(0) 颗星","$(0) to $(1)":"$(0) 至 $(1)","&copy; 2008-2015 Company Name":"&copy; 2008-2015 公司名称","(Minimum of $(0) required)":"(至少需要 $(0))","(none)":"(无)","(optional)":"(可选)","1 Product":"1 个产品","1 Product, $(0) Items":"1 个产品,$(0) 件货品","1 Product, 1 Item":"1 个产品,1 件货品",'1 Result for <span class="facets-facet-browse-title-alt">$(0)</span>':'<span class="facets-facet-browse-title-alt">$(0)</span> 的 1 个结果',"1 item":"1 件货品","1 review":"1 条评价","1 star":"1 颗星","<b>$(0)</b> items":"<b>$(0)</b> 件货品","<b>1</b> item":"<b>1</b> 件货品","<b>Promo Code</b><br>To redeem a promo code, simply enter your information and we will apply the offer to your purchase during checkout.":"<b>促销码</b><br>若要兑换促销码,您只需输入个人信息即可,系统会在您结账时自动应用优惠。","<b>Shipping Estimator</b><br>Shipping fees are based on your shipping location. Please enter your information to view estimated shipping costs.":"<b>运费估算器</b><br>运费根据您的装货地点确定。请输入您的信息以查看估计的运输成本。","<b>Warning</b>: This item is not properly configured, please contact your administrator.":"<b>警告</b>:未正确配置此货品,请与您的管理员联系。","<b>We are sorry!</b> There has been an error, please try again later.":"<b>很抱歉!</b>出现一个错误,请稍后再试。",'<div class="product-list-control-message">Good! You successfully moved the item from this to <a href="/wishlist/$(0)">$(1)</a></div>':'<div class="product-list-control-message">好!您已成功将货品从此处移到 <a href="/wishlist/$(0)">$(1)</a></div>','<span itemprop="lowPrice" data-rate="$(0)" >$(1)</span> to <span itemprop="highPrice" data-rate="$(2)">$(3)</span>':'<span itemprop="lowPrice" data-rate="$(0)" >$(1)</span> 至 <span itemprop="highPrice" data-rate="$(2)">$(3)</span>',"<strong>Thank You!</strong> We love your feedback.":"<strong>谢谢您!</strong>我们很乐意收到您的反馈。","Account Balance":"账户余额","Account Overview":"账户概述",Active:"现用的","Add Items to Cart":"将货品添加到购物车","Add List to Cart":"将列表添加到购物车","Add a note or description for your item":"为您的货品添加备注或说明","Add a note or description for your list":"为您的列表添加备注或说明","Add to":"添加到","Add to Cart":"添加到购物车","Add to Wishlist":"添加到心愿单","Added on":"添加日期","Added to Cart":"已添加到购物车","Added to Wishlist":"已添加到心愿单",Address:"地址","Address Book":"通讯录","Address is required":"地址是必填项","All items in the list are not available for purchase.":"列表中的所有货品都无法购买。","All my lists":"我的所有列表",Apply:"应用","Are you sure you want to remove selected items?":"是否确实要清除所选货品?","Are you sure you want to remove this list?":"是否确定要清除此列表?",Back:"返回","Back to Account":"返回账户","Back to Top":"返回顶部","Back to product list":"返回到产品列表","Be the first to":"第一位",Billing:"账单",Cancel:"取消","Card Number is required":"卡号是必填项",'Card Street: <span class="global-views-format-payment-method-street-value">$(0)</span>':'卡街道:<span class="global-views-format-payment-method-street-value">$(0)</span>','Card Zip Code: <span class="global-views-format-payment-method-zip-value">$(0)</span>':'卡邮政编码:<span class="global-views-format-payment-method-zip-value">$(0)</span>',Cardigan:"开襟羊毛衫",Cart:"购物车","Cart not loaded yet, please wait and try again.":"尚未加载购物车,请稍后再试。",Cases:"案例",Categories:"类型",Checkout:"结账",Child:"儿童",City:"城市","City is required":"城市是必填项","Clear All":"全部清除","Clear filter":"清除筛选",Close:"关闭","Company Name is required":"公司名称是必填项","Company is required":"公司是必填项",Confirm:"确认",Confirmation:"确认","Continue Shopping":"继续购物",'Continue Shopping on our <a href="/" data-touchpoint="home">Home Page</a>':'在我们的<a href="/" data-touchpoint="home">首页</a>上继续购物',Country:"国家/地区","Country is required":"国家/地区是必填项","Create List":"创建列表","Create New List":"创建新列表","Create a New List":"创建一个新列表","Create a product list":"创建一个产品列表","Create and Add Item":"创建和添加货品","Create and Move Item":"创建和移动货品","Credit Card Number is invalid":"信用卡号无效","Credit Cards":"信用卡","Current password is required":"当前密码是必填项","Customers who bought this item also bought":"购买此货品的客户还购买了",Date:"日期","Delete List":"删除列表","Delete item":"删除货品","Delete list":"删除列表","Delete product list":"删除产品列表","Delete selected items":"删除所选货品","Desired Quantity":"所需数量","Discount Total":"折扣总计",Edit:"编辑","Edit Item":"编辑货品","Edit List":"编辑列表","Edit item":"编辑货品","Edit your list":"编辑列表","Email Preferences":"电子邮件参数选择","Email/Share List":"电子邮件/共享列表","Emails do not match":"电子邮件不匹配","Ending in $(0)":"结束于 $(0)",Error:"错误",Estimate:"估计","Estimate Tax &amp; Shipping":"估计税金和运费","Estimated Total":"预计总额","Expires $(0)":"$(0) 到期",Filter:"筛选","First Name is required":"名字是必填项",From:"自","Full Name":"全名","Full Name is required":"全名是必填项","Gift Certificates Applied ($(0))":"已应用礼品券 ($(0))",Go:"转到","Go to Product Lists":"转到产品列表",'Good! $(0) item from your <a class="product-list-name" href="/wishlist/$(1)">$(2)</a> list was successfully added to your cart. You can continue to <a href="" data-touchpoint="viewcart">view your cart and checkout</a>':'好!您的 <a class="product-list-name" href="/wishlist/$(1)">$(2)</a> 列表中的 $(0) 件货品已成功添加到购物车。您可以继续<a href="" data-touchpoint="viewcart">查看购物车和结账</a>','Good! $(0) items from your <a class="product-list-name" href="/wishlist/$(1)">$(2)</a> list were successfully added to your cart. You can continue to <a href="">view your cart and checkout</a>':'好!您的 <a class="product-list-name" href="/wishlist/$(1)">$(2)</a> 列表中的 $(0) 件货品已成功添加到购物车。您可以继续<a href="">查看购物车和结账</a>','Good! The items were successfully added to your cart. You can continue to <a href="#" data-touchpoint="viewcart">view cart and checkout</a>':'好!货品已成功添加到购物车。您可以继续<a href="#" data-touchpoint="viewcart">查看购物车和结账</a>',"Good! The list was successfully updated.":"好! 已成功更新此列表。","Good! You added this item to your product list":"好!您已将此货品添加到产品列表","Good! You added this item to your product lists":"好!您已将此货品添加到产品列表",'Good! You saved the item for later. If you want to add it back to your cart, see below in <b>"Saved for later"</b>':"好!您已保存货品以备后用。如果想将其重新加入购物车,请参阅下方的<b>“保存以备后用”</b>",'Good! Your <a href="/wishlist/$(0)">$(1)</a> list was successfully created.':'好! 已成功创建您的 <a href="/wishlist/$(0)">$(1)</a> 列表。','Good! Your <a href="/wishlist/$(0)">$(1)</a> list was successfully updated.':'好! 已成功更新您的 <a href="/wishlist/$(0)">$(1)</a> 列表。',Handling:"手续费","Have a Promo Code?":"有促销码?",High:"高",Home:"首页","In Stock":"现货","Internal Error":"内部错误","Invalid date format.":"无效日期格式。","Invoice: Terms $(0)":"发票:期限 $(0)",Invoices:"发票",Jeans:"牛仔裤","Last Name is required":"姓氏是必填项","Learn More":"了解更多","List name":"列表名称","Loading List...":"正在加载列表...","Loading...":"正在加载...","Log in":"登录","Logged out":"注销",Login:"登录",Low:"低",Medium:"中",Men:"男士",Move:"移动","Move to Cart":"移到购物车","My Account":"我的账户","My Wishlist":"我的心愿单","NOT ALLOWED":"不允许","Name is required":"名字是必填项","Name too long":"名字太长",'Name your new list <small class="product-list-new-form-required">*</small>':'为您的新列表命名 <small class="product-list-new-form-required">*</small>',"Narrow By":"缩小搜索范围","Narrowed By:":"缩小搜索范围:","New list name":"新列表名称",No:"否","No ($(0))":"否 ($(0))","No items yet":"还没有货品","No products yet":"还没有产品","No results":"无结果","No reviews available":"无可用评价","Not specified":"未指定","Notes for the list":"列表备注","Notes for this item":"此货品的备注",Number:"编号","One item not available for purchase was not added to the cart.":"一件无法购买的货品未添加到购物车。",Options:"选项","Order Summary":"订单汇总",Other:"其他","Other title":"其他标题","Out of Stock":"缺货","Page not found":"找不到页面","Payment via Paypal":"通过 Paypal 付款","Phone Number":"电话号码","Phone Number is invalid":"电话号码无效","Phone is required":"电话是必填项",'Please contact the website administrator, click <a href="/">here</a> to continue.':'请与网站管理员联系,单击<a href="/">此处</a>继续。',"Please select a date in the future":"请选择一个未来日期","Please select options before adding to cart":"请在添加到购物车之前选择选项","Print a Statement":"打印报表",Priority:"优先级","Proceed to Checkout":"去结账","Processing...":"处理中…",Product:"产品",Products:"产品","Profile Information":"配置文件信息","Promo Code Applied":"已应用促销代码","Promo Code is required":"促销码是必填项","Purchase Number: $(0)":"订单编号:$(0)",Quantity:"数量","Quantity:":"数量:",Quotes:"报价",Rating:"评级","Rating is required":"评级是必填项","Ratings &amp; Reviews":"评级和评价","Recently viewed":"最近查看","Recipient email is invalid":"收件人电子邮箱无效",Register:"注册",Remove:"清除","Remove Items":"清除货品","Reorder Items":"重新订购货品",Required:"必填项",'Required <span class="product-list-new-form-required">*</span>':'必填 <span class="product-list-new-form-required">*</span>','Results for "$(0)"':"“$(0)”的结果",Returns:"退货",Reviews:"评价","SKU:":"SKU:","SUBTOTAL: $(0)":"小计:$(0)",Save:"保存","Save for Later":"保存以备后用","Saved for Later":"保存以备后用",Search:"搜索","Search Results":"搜索结果","Search for products":"搜索产品",'Search results for "$(0)"':"“$(0)”的搜索结果","Searching...":"正在搜索...","Security Number is invalid":"安全号无效","Security Number is required":"安全号是必填项","See Less":"查看更少","See More":"查看更多","See all results":"查看所有结果","Select All ($(0))":"全选 ($(0))","Select Country":"选择国家/地区","Select options":"选择选项",Settings:"设置","Ship available only to $(0)":"只能发运到 $(0)","Ship to the following postal code":"发运到以下邮政编码","Ship to the following zip code":"发运到以下邮政编码","Ship to:":"收货方:",Shipping:"运费",Shoes:"鞋子",Shop:"购买","Shop: $(0)":"购买:$(0)","Shopping Cart":"购物车","Showing $(0) - $(1) of $(2)":"显示 $(0) - $(1)(共 $(2))","Sign Out":"退出","Site Settings":"网站设置","Some products from this list are not available for purchase":"此列表中的一些产品无法购买","Sorry! You have no permission to view this page.":"抱歉!您没有查看此页面的权限。","Sorry, there is a problem with this Item and can not be purchased at this time. Please check back later.":"抱歉,此货品出现问题,现在不能购买。请稍后再查看。","Sorry, we could not load the content you requested.":"抱歉,我们无法加载您请求的内容。","Sort & Filter":"排序和筛选","Sort by date Added":"按添加日期排序","Sort by name":"按名称排序","Sort by price":"按价格排序","Sort by priority":"按优先级排序",State:"州","State is required":"州是必填项","Submit New Case":"提交新案例",'Subtotal <span class="cart-summary-item-quantity-subtotal">$(0) item</span>':'小计 <span class="cart-summary-item-quantity-subtotal">$(0)</span> 件货品','Subtotal <span class="cart-summary-item-quantity-subtotal">$(0) items</span>':'小计 <span class="cart-summary-item-quantity-subtotal">$(0)</span> 件货品',"Support Cases":"支持案例",Sweaters:"毛衣",Tax:"税金","Text is required":"文本为必填项","The field name cannot contain more than the maximum number (199) of characters allowed.":"字段名的长度不得超过允许的最大字符数 (199)。","The item was removed from your product list":"已从产品列表中清除该货品","The minimum quantity for this item is $(0).":"此货品的最小数量为 $(0)。",'The quantity of some of the items needs to be updated to match the minimum required to purchase. Go to <a href="/wishlist/$(0)">$(1)</a>':'需要更新某些货品的数量以达到要求的最低购买量。转到 <a href="/wishlist/$(0)">$(1)</a>',"The review field cannot contain more than the maximum number (1000) of characters allowed.":"评价字段的长度不得超过允许的最大字符数 (1000)。","The selected items were removed from your product list":"所选货品已从产品列表中清除","There are no lists":"没有列表","There are no other lists":"没有其他列表","There are no reviews available for your selection":"没有可供您选择的评价","Theres been an internal error":"发生内部错误","This is a description":"这是说明","Title is required":"标题是必填项",'To buy an item now, click "Move to Cart"':"若要立即购买货品,请单击“移到购物车”","To provide a better shopping experience, our website uses cookies. Continuing use of the site implies consent.":"为了提供更好的购物体验,我们的网站使用 Cookie。 继续使用本网站即表示您同意。",Total:"合计","Total does not include shipping or tax":"合计不包括运费或税金","Transaction History":"交易历史记录","Unselect All ($(0))":"取消全选 ($(0))",Update:"更新","Update Your Password":"更新您的密码","Valid Email is required":"有效电子邮件是必填项","View Cart":"查看购物车","View Cart &amp; Checkout":"查看购物车和结账","View full details":"查看所有明细","Was this review helpful?":"此评价是否有用?",'We couldn\\\'t find any items that match "$(0)"':"我们找不到与“$(0)”匹配的任何货品","We couldn\\'t process your item":"我们无法处理您的货品","We were unable to find results for <strong>$(0)</strong>. Please check your spelling or try searching for similar terms.":"我们无法找到 <strong>$(0)</strong> 的结果。请检查拼写,或尝试搜索类似的词。",'Welcome <strong class="header-profile-welcome-link-name">$(0)</strong>':'欢迎 <strong class="header-profile-welcome-link-name">$(0)</strong>',Wishlist:"心愿单",Woman:"女士","Write a Review":"填写评价","Writer is required":"填写者是必填项","YYYY-MM-DD":"年-月-日",Yes:"是","Yes ($(0))":"是 ($(0))","Yes, Remove It":"是,请将其清除","Yes, update it":"是,请更新","You don\\'t have items in this list yet.":"此列表中还没有货品。","You don\\'t have items in this list yet. Explore the store or search for an item you would like to add.":"此列表中还没有货品。浏览商店或搜索您希望添加的货品。","You may also like":"您可能还喜欢",'Your <span class="product-list-name">$(0)</span> list was removed':'您的 <span class="product-list-name">$(0)</span> 列表已清除',"Your Shopping Cart is empty":"您的购物车是空的","Your cart is empty":"您的购物车是空的","Your cart is loading":"正在加载您的购物车",'Your list name <small class="product-list-new-form-required">*</small>':'您的列表名称 <small class="product-list-new-form-required">*</small>',"Your new list name":"您的新列表名称","Zip Code":"邮政编码","Zip Code is required":"邮政编码是必填项",anonymous:"匿名",'by <span itemprop="author">$(0)</span>':'评价者 <span itemprop="author">$(0)</span>','for <a href="/ordershistory/view/$(0)"> Order Number: #$(1)</a>':'针对<a href="/ordershistory/view/$(0)">订单编号:#$(1)</a>',"last added":"上次添加日期",list:"列表",lists:"列表",next:"下一步",prev:"上一步",product:"产品",products:"产品",to:"至","verified purchaser":"已验证购买者",Email:"电子邮件","Loading list...":"正在加载列表...",Submit:"提交","$(0) Star Reviews":"$(0) 星评论","<h2>Thank You!</h2><p>Your review has been submitted.</p>":"<h2>谢谢您!</h2><p>您的评价已提交。</p>","A headline for your review":"您的评价标题","All Reviews":"所有评论","Attribute is required":"属性是必填项","Back to Product":"返回到产品",'By <span itemprop="author">$(0)</span>':'评价者 <span itemprop="author">$(0)</span>',"By Date":"按日期","By Rating":"按评级",Color:"颜色",Details:"详细信息","Edit Review":"编辑评价","For privacy reasons, please do not use your full name or email address.":"出于保护隐私的目的,请不要使用您的全名或电子邮件地址。",Grid:"网格","How does this product feel overall?":"总的说来,您对此产品感觉如何?",List:"列表",More:"更多",Preview:"预览",Price:"价格","Quick View":"快速查看","Shop $(0)":"购买 $(0)","Shop All &gt;":"全部购买 &gt;","Show $(0) products per page":"每页显示 $(0) 个产品","Sort by price, low to high":"按价格排序,从低到高","Sort by price, high to low":"按价格排序,从高到低","Sort by price, low to high":"按价格排序,从低到高","Sort by relevance":"按相关性排序","Submit Review":"提交评价","Submit your Review":"提交您的评价",Table:"表格","Thank you":"谢谢您","Use promo code <strong>SCADEMO</strong> for <strong>30%</strong> off your purchase":"使用促销码 <strong>SCADEMO</strong> 可为您的购买提供 <strong>30%</strong> 的折扣","Welcome to the store":"欢迎光临本店",'Will be posted publicly as <span itemprop="author">$(0)</span>':'将作为 <span itemprop="author">$(0)</span> 公开发布',"Write your Review":"填写您的评价","Write your review":"填写您的评价",'You need to be logged in to write a review, <a href="#" data-touchpoint="login">click here</a> to log in.':'您需要登录才能填写评价,请<a href="#" data-touchpoint="login">单击此处</a>登录。',"Your Name":"您的姓名","Please Select a Credit Card Type":"请选择信用卡类型",Purchases:"购买","Purchases History":"购买历史记录","This item is no longer available":"不再提供此货品",'<a data-touchpoint="login" data-hashtag="login-register" origin-hash="" href="#">Login</a> to see price':'<a data-touchpoint="login" data-hashtag="login-register" origin-hash="" href="#">登录</a>以查看价格','<a href="$(0)">Log in</a> to see price':'<a href="$(0)">登录</a>以查看价格','Please <a href="$(0)">log in</a> to see price or purchase this item':'请<a href="$(0)">登录</a>以查看价格或购买此货品','Please <a href="$(0)">log in</a> to see prices or purchase items':'请<a href="$(0)">登录</a>以查看价格或购买货品','1 Result for <span class="facets-faceted-navigation-title-alt">$(0)</span>':'<span class="facets-faceted-navigation-title-alt">$(0)</span> 的 1 个结果',"All my Quotes":"我的全部报价","Minimum of $(0) required":"至少需要 $(0)","Quote basket <span>(300)</span>":"报价篮 <span>(300)</span>","Request a Quote":"请求报价","SKU: $(0)":"SKU:$(0)","Store Locator":"商店定位器",undefined:"","You have been logged out":"您已经注销","Your session expired or someone else logged in another device with your account. You must log in again to continue.":"您的会话已过期或其他人使用您的账户在另一个设备上登录。您必须重新登录以继续。","Good! The list was successfully updated. ":"好!列表已成功更新。 ",'Good! Your <a href="/wishlist/$(0)">$(1)</a> list was successfully updated. ':'好!您的 <a href="/wishlist/$(0)">$(1)</a> 列表已成功更新。 ','Good! Your <a href="/wishlist/$(0)">$(1)</a> list was successfully created. ':'好!已成功创建您的 <a href="/wishlist/$(0)">$(1)</a> 列表。 ',"Thank you! Welcome to our newsletter":"谢谢您!欢迎使用时事通讯","Sorry, the specified email is already subscribed.":"抱歉!指定的电子邮件已订阅。","Sorry, the specified email cannot be subscribed.":"抱歉!指定的电子邮件无法订阅。","Sorry, subscription cannot be done. Try again later.":"抱歉!无法完成订阅。请稍后重试。",'$(0) has been added to your <a href="#" data-hashtag="#request-a-quote" data-touchpoint="customercenter" data-trigger="go-to-quote">Quote Request</a><br>Quantity: $(1). (Enforced minimum quantity)':'已将 $(0) 添加到您的<a href="#" data-hashtag="#request-a-quote" data-touchpoint="customercenter" data-trigger="go-to-quote">报价请求</a><br>数量:$(1)。(必需最小数量)','$(0) has been added to your <a href="#" data-hashtag="#request-a-quote" data-touchpoint="customercenter" data-trigger="go-to-quote">Quote Request</a><br>Quantity: $(1)':'已将 $(0) 添加到您的<a href="#" data-hashtag="#request-a-quote" data-touchpoint="customercenter" data-trigger="go-to-quote">报价请求</a><br>数量:$(1)',"Sorry, you don\\'t have sufficient permissions to request a quote online. <br/> For immediate assistance <strong>call us at $(0)</strong> or email us to <strong>$(1)</strong>":"抱歉,您没有足够的权限在线请求报价。<br/>若要寻求即时帮助,<strong>请给我们打电话(电话号码为 $(0))</strong>或发送电子邮件(电子邮件地址为 <strong>$(1)</strong>","Promo: $(0)":"促销:$(0)",Discount:"折扣",Category:"类别","$(0)":"$(0)","Browse $(0)":"浏览 $(0)","Newsletter Sign Up":"时事通讯注册","username@domain.com":"username@domain.com",Subscribe:"订阅","Add to Quote":"添加到报价",Newsletter:"时事通讯",stores:"商店","Please specify a value for this option":"请为此选项指定一个值","Please enter a valid input for this string":"请为此字符串输入一个有效输入","Please enter a string shorter (maximum length: $(0))":"请输入更短的字符串(最大长度:$(0))","Please enter a valid email":"请输入有效电子邮件","Please enter a valid integer number":"请输入有效整数","Please enter a valid decimal number":"请输入有效十进制数","Please enter a valid currency number":"请输入有效货币数","Please enter a valid phone":"请输入有效电话","Please enter a valid percent":"请输入有效百分比","Please enter a valid url":"请输入有效 url","Please select a valid value for this option":"请为此选项选择一个有效值","Please select an address.":"请选择一个地址。","Address not found.":"找不到地址。","Please select a valid address.":"请选择一个有效地址。","To use this functionality enable geolocation.":"要使用此功能,启用地理定位。","Location information is unavailable.":"位置信息不可用。","The request to get user location timed out.":"获得用户位置的请求超时。","An unknown error occurred.":"发生了未知错误。",'We couldn\'t find any items that match "$(0)"':"我们找不到与“$(0)”匹配的任何货品","Loading lists...":"正在加载列表...","Begin typing SKU to select an item":"开始键入 SKU 以选择货品","Enter quantity":"输入数量","Enter SKU or Item Name":"输入 SKU 或货品名称","Which item(s) would you like to add?":"您想要添加哪种货品?","Sorry, you don't have sufficient permissions to request a quote online. <br/> For immediate assistance <strong>call us at $(0)</strong> or email us to <strong>$(1)</strong>":"抱歉,您没有足够的权限在线请求报价。<br/>若要寻求即时帮助,<strong>请给致电 $(0)</strong> 或发送电子邮件至 <strong>$(1)</strong>",Available:"可用",'Continue Shopping on our <a href="/" data-touchpoint="home">Home Page</a>.':'在我们的<a href="/" data-touchpoint="home">首页</a>上继续购物。',"Subtotal does not include shipping or tax":"小计不包括运费或税金","Pick Up":"取货",FREE:"免费",Item:"货品","Phone:":"电话:","Store Hours:":"营业时间:","Order before $(0) to pick up today":"$(0) 前订购,今天取货","Order now to pick up tomorrow":"现在订购,明天取货","Order now to pick on Sunday":"现在订购,星期天取货","Order now to pick on Monday":"现在订购,星期一取货","Order now to pick on Tuesday":"现在订购,星期二取货","Order now to pick on Wednesday":"现在订购,星期三取货","Order now to pick on Thursday":"现在订购,星期四取货","Order now to pick on Friday}":"现在订购,星期五取货","Order now to pick on Saturday":"现在订购,星期六取货",at:"在","Get Directions":"获取路线","Only available for Shipping":"仅可用于发运",Ship:"发运","$(0) Available":"$(0) 可用","Pre-order now!":"立即预订","Only available for Pickup":"仅可用于取货","Pickup in Store":"店内取货","$(0) available today":"今天 $(0) 可用","$(0) available tomorrow":"明天 $(0) 可用","$(0) available on Sunday":"星期日 $(0) 可用","$(0) available on Monday":"星期一 $(0) 可用","$(0) available on Tuesday":"星期二 $(0) 可用","$(0) available on Wednesday":"星期三 $(0) 可用","$(0) available on Thursday":"星期四 $(0) 可用","$(0) available on Friday}":"星期五 $(0) 可用","$(0) available on Saturday":"星期六 $(0) 可用","$(0) available":"$(0) 可用","Available today":"今天可用","Available tomorrow":"明天可用","Available on Sunday":"星期日可用","Available on Monday":"星期一可用","Available on Tuesday":"星期二可用","Available on Wednesday":"星期三可用","Available on Thursday":"星期四可用","Available on Friday}":"星期五可用","Available on Saturday":"星期六可用","Change Store":"更换商店","Not available":"不可用","Select Store":"选择商店","to check the availability":"检查可用性","Pick up in Store":"店内取货",Store:"商店",Stores:"商店",near:"附近","Refine Search":"精确搜索","Opening & Pickup Hours":"开门和取货时间","Available Today":"今天可用","Pickup at this Store":"在这家店取货","Select for Pickup":"选择取货","Not available for Pickup":"不可用于取货","You don't have items in this list yet. Explore the store or search for an item you would like to add.":"此列表中还没有货品。浏览商店或搜索您希望添加的货品。","You don't have items in this list yet.":"此列表中还没有货品。","- Select -":"- 选择 -","Quantity discounts available":"数量折扣可用","Add Item":"添加货品","Quick Add":"快速添加",'Continue Shopping on our <a href="/" data-touchpoint="home">Home Page</a> or use the Quick Add below to add items to your cart.':'在我们的<a href="/" data-touchpoint="home">首页</a>上继续购物或使用下面的“快速添加”将货品添加到购物车。',"Quick Order":"快速订单","Last purchased on $(0)":"上次购买日期 $(0)","Enter Address, Zip Code or City":"输入地址、邮政编码或城市","Find Stores":"查找商店",or:"或","Use Current Location":"使用当前位置","Promotion <strong>":"促销 <strong>","We have chosen the best possible offer for you. Promotion <strong>":"我们已为您选择尽可能最佳的优惠。促销 <strong>"};
22,674
22,674
0.68788
a82508b3ac54684e8e466958ba168cc5fd72aece
711
js
JavaScript
config/connection.js
ikeifu/handle-bars
cdd92c35df589f7cefe9108d4d71ebce1bf065e5
[ "MIT" ]
null
null
null
config/connection.js
ikeifu/handle-bars
cdd92c35df589f7cefe9108d4d71ebce1bf065e5
[ "MIT" ]
null
null
null
config/connection.js
ikeifu/handle-bars
cdd92c35df589f7cefe9108d4d71ebce1bf065e5
[ "MIT" ]
null
null
null
// Importing the mysql module const mysql = require("mysql"); // Setting up connection config let connection; // Check if we have Jaws DB URL if (process.env.JAWSDB_URL) { connection = mysql.createConnection(process.env.JAWSDB_URL); } else { connection = mysql.createConnection({ host: "localhost", // Your port; if not 3306 port: 3306, // Your username user: "root", // Your password password: "", database: "burger_db" }); } // Connecting to the db connection.connect(function(err) { if (err) throw err; // console.log("connected as id " + connection.threadId); }); // Exporting the connection module.exports = connection;
23.7
64
0.635724
a8250c2516dc318f98691074e9357a8e6ed4ce23
408
js
JavaScript
.depslintrc.js
sangpt/ant-design
85e77292a682a7cff2afe3a059020be6be992b22
[ "MIT" ]
null
null
null
.depslintrc.js
sangpt/ant-design
85e77292a682a7cff2afe3a059020be6be992b22
[ "MIT" ]
null
null
null
.depslintrc.js
sangpt/ant-design
85e77292a682a7cff2afe3a059020be6be992b22
[ "MIT" ]
null
null
null
module.exports = { ignore: [ '**/~*/**', '**/_*/**', '**/icon/**', '**/__tests__/**', '**/style/**', '**/locale/**', '**/*-provider/**', '**/*.json', ], modulePattern: [aaaaaaaa { pattern: /ConfigConsumer.*renderEmpty/ms, module: '../empty', }, { pattern: /config-provider\/context.*renderEmpty/ms, module: '../empty', }, ], };
17.73913
57
0.426471
a825c7757cb7bef4b59fb5641d7c8375a053c0c3
272
js
JavaScript
src/lib/graphql/Queries.js
abandisch/graphql-client
72e2307e279473f8db5fc23d29ebc2ccb341ab6a
[ "MIT" ]
null
null
null
src/lib/graphql/Queries.js
abandisch/graphql-client
72e2307e279473f8db5fc23d29ebc2ccb341ab6a
[ "MIT" ]
5
2021-09-01T13:45:20.000Z
2022-02-26T13:09:23.000Z
src/lib/graphql/Queries.js
abandisch/graphql-client
72e2307e279473f8db5fc23d29ebc2ccb341ab6a
[ "MIT" ]
null
null
null
import gql from 'graphql-tag' export const FEED_QUERY = gql` { feed { links { id createdAt url description postedBy { id name } votes { id user { id } } } } } `
10.88
30
0.397059
a826196e109bb8c3d874a3400f97e715b7a77c72
5,330
js
JavaScript
commands/grinders/gdono.js
ishitajs/FightHub
4685a1d0c89eebfd2435e6ffb0c3714d46d9d233
[ "MIT" ]
null
null
null
commands/grinders/gdono.js
ishitajs/FightHub
4685a1d0c89eebfd2435e6ffb0c3714d46d9d233
[ "MIT" ]
null
null
null
commands/grinders/gdono.js
ishitajs/FightHub
4685a1d0c89eebfd2435e6ffb0c3714d46d9d233
[ "MIT" ]
null
null
null
const Messages = require('../../functions/grind-dono') module.exports = { name: 'gdono', aliases: ['g'], args: true, usage: 'd <@USER | USER_ID> <Subtract | Add> <Amount>', description: 'Grinder donos.', fhOnly: true, execute(message, args) { args.shift() const example = `\n\nExample: \`fh g 598918643727990784 add 5e6\` | \`fh g 598918643727990784 remove 5e6\`` if ( !message.member.roles.cache.some( (role) => role.id === '824348974449819658' ) ) { return message.channel.send('You can not perform this action.') } if (!args[0]) return message.channel.send( 'You must either ping someone or you must give their id' + example ) const mentionID = message.mentions.users.size > 0 ? message.mentions.users.first().id : args[0] if (!Messages.fetch(mentionID, message.guild.id)) { message.channel.send( 'That person is not a grinder.\nAdd a grinder using `fh grinder add @USER`.' ) return } const firstArg = args[0] if (!firstArg) return message.channel.send('You must tell me what to do' + example) if ( firstArg !== 'add' && firstArg !== 'subtract' && firstArg !== 'remove' && firstArg !== '-' && firstArg !== '+' && firstArg !== 'item' ) { return message.channel.send('Invalid response' + example) } if (firstArg === 'add' || firstArg === '+') { let finalNum = 0 args.shift() if (!args[0]) return message.channel.send( 'You must provide a number!' + example ) let number = args[0] if (isNaN(parseInt(number[0][0]))) { return message.channel.send('Invalid number provided' + example) } else { if (number.endsWith('k')) { number.replace('k', '') finalNum = parseInt(number) * 1e3 } else if (number.endsWith('m')) { number.replace('m', '') finalNum = parseInt(number) * 1e6 } else if (number.endsWith('b')) { number.replace('b', '') finalNum = parseInt(number) * 1e9 } else { finalNum = Number(number) } } finalNumm = finalNum Messages.addGrindDono(mentionID, message.guild.id, finalNum) message.channel.send( `Added **${finalNumm.toLocaleString()}** coins to <@${mentionID}>(${mentionID})'s profile!` ) } else if ( firstArg === 'subtract' || firstArg === 'remove' || firstArg === '-' ) { let finalNum = 0 args.shift() if (!args[0]) return message.channel.send( 'You must provide a number!' + example ) let number = args[0] if (isNaN(parseInt(number[0][0]))) { return message.channel.send('Invalid number provided' + example) } else { if (number.endsWith('k')) { number.replace('k', '') finalNum = parseInt(number) * 1e3 } else if (number.endsWith('m')) { number.replace('m', '') finalNum = parseInt(number) * 1e6 } else if (number.endsWith('b')) { number.replace('b', '') finalNum = parseInt(number) * 1e9 } else { finalNum = Number(number) } } finalNumm = finalNum Messages.removeGrindDono(mentionID, message.guild.id, finalNum) message.channel.send( `Removed **${finalNumm.toLocaleString()}** coins from <@${mentionID}>(${mentionID})'s profile!` ) } else; message.guild.channels.cache.get('845043301937315870').send({ embed: { title: 'Grinder Logs', color: 'GREEN', description: `[Jump](https://discord.com/channels/${message.guild.id}/${message.channel.id}/${message.id}) to message.`, fields: [ { name: 'Responsible Moderator', value: `${message.author.tag} - ${message.author}`, inline: true, }, { name: 'Action', value: `${firstArg}`, inline: false, }, { name: 'Amount', value: `${finalNumm.toLocaleString()} coins.`, inline: true, }, ], timestamp: new Date(), footer: { text: 'Grinder Tracking', }, }, }) }, }
37.272727
136
0.433021
a826d33492a6da29a228ed5522d66502e42ff1b8
3,813
js
JavaScript
src/components/ResponseList/ServerSort/index.js
mlaga97/dagger-redux
4ac14e3a52eb4d63d17d69024050d31dee8f211d
[ "MIT" ]
null
null
null
src/components/ResponseList/ServerSort/index.js
mlaga97/dagger-redux
4ac14e3a52eb4d63d17d69024050d31dee8f211d
[ "MIT" ]
null
null
null
src/components/ResponseList/ServerSort/index.js
mlaga97/dagger-redux
4ac14e3a52eb4d63d17d69024050d31dee8f211d
[ "MIT" ]
null
null
null
// Library imports import React from 'react'; import { connect } from 'react-redux'; // Actions import actions from '../../../actions'; // Components import Response from '../Response'; import SearchDump from './SearchDump'; import PageSelector from './PageSelector'; import SearchResults from './SearchResults'; import SearchParameters from './SearchParameters'; import SearchResultsCount from './SearchResultsCount'; class SearchContainer extends React.Component { constructor(props) { super(props); this.state = { pageParameters: { page: 1, count: 10, }, sortParameters: {}, searchParameters: {}, } } updateCount = (parameters) => { this.props.dispatch({ type: actions.response.list.requested, parameters: { ...parameters, queryID: 'responseList_count', }, }); } updateResults = (parameters) => { this.props.dispatch({ type: actions.response.list.requested, parameters: { ...parameters, queryID: 'responseList_results', }, }); // TODO: Make sure this loads only the ones we need. this.props.dispatch({ type: actions.response.all.requested, parameters: { ...parameters, //queryID: 'responseList_results', // TODO: Later }, }); } updateSearch = (searchParameters) => { this.setState(prevState => ({ ...prevState, searchParameters, pageParameters: { ...prevState.pageParameters, page: 1, // Reset page on new search. } })); const parameters = { ...this.state.pageParameters, page: 1, // Override page argument since it state hasn't updated yet. ...this.state.sortParameters, ...searchParameters, // Use function argument since state hasn't updated yet. } this.updateCount(searchParameters); this.updateResults(parameters); } updateSort = (sortParameters) => { this.setState({ sortParameters, }); const parameters = { ...this.state.pageParameters, page: 1, // Override page argument since it state hasn't updated yet. ...sortParameters, // Use function argument since state hasn't updated yet. ...this.state.searchParameters, } this.updateResults(parameters); } updatePage = (pageParameters) => { this.setState({ pageParameters, }); const parameters = { ...pageParameters, // Use function argument since state hasn't updated yet. ...this.state.sortParameters, ...this.state.searchParameters, } this.updateResults(parameters); } componentDidMount() { this.updateSearch({}); } render() { if (!this.props.responses.list || !this.props.responses.list['responseList_count']) { return 'Loading...'; } // Calculate number of pages const maxPage = Math.ceil(this.props.responses.list['responseList_count'].length / this.state.pageParameters.count); return ( <React.Fragment> <SearchParameters onUpdate={this.updateSearch} parameters={this.state.searchParameters} /> <SearchResultsCount /> <SearchDump parameters={{ ...this.state.sortParameters, ...this.state.searchParameters, }} maxPage={maxPage} /> <SearchResults updateSort={this.updateSort} parameters={this.state.sortParameters} > <Response /> </SearchResults> <PageSelector onUpdate={this.updatePage} parameters={this.state.pageParameters} maxPage={maxPage} /> </React.Fragment> ); } } export default connect( state => ({ search: state.search, responses: state.responses, }), dispatch => ({ dispatch, }), )(SearchContainer);
24.75974
120
0.615264
a828219049c00913312a0a9325ddce443486c0c6
105,702
js
JavaScript
public/plugins/highlight/highlight.pack.js
vhaf123/adminlte
13b442fd6143095cda907ca0d84f03e7ad6c766e
[ "MIT" ]
null
null
null
public/plugins/highlight/highlight.pack.js
vhaf123/adminlte
13b442fd6143095cda907ca0d84f03e7ad6c766e
[ "MIT" ]
8
2021-02-02T18:58:57.000Z
2022-03-02T09:04:24.000Z
public/plugins/highlight/highlight.pack.js
vhaf123/adminlte
13b442fd6143095cda907ca0d84f03e7ad6c766e
[ "MIT" ]
null
null
null
/* Highlight.js 10.1.1 (93fd0d73) License: BSD-3-Clause Copyright (c) 2006-2020, Ivan Sagalaev */ var hljs=function(){"use strict";function e(n){Object.freeze(n);var t="function"==typeof n;return Object.getOwnPropertyNames(n).forEach((function(r){!Object.hasOwnProperty.call(n,r)||null===n[r]||"object"!=typeof n[r]&&"function"!=typeof n[r]||t&&("caller"===r||"callee"===r||"arguments"===r)||Object.isFrozen(n[r])||e(n[r])})),n}class n{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function t(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(e,...n){var t={};for(const n in e)t[n]=e[n];return n.forEach((function(e){for(const n in e)t[n]=e[n]})),t}function a(e){return e.nodeName.toLowerCase()}var i=Object.freeze({__proto__:null,escapeHTML:t,inherit:r,nodeStream:function(e){var n=[];return function e(t,r){for(var i=t.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(n.push({event:"start",offset:r,node:i}),r=e(i,r),a(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:r,node:i}));return r}(e,0),n},mergeStreams:function(e,n,r){var i=0,s="",o=[];function l(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset<n[0].offset?e:n:"start"===n[0].event?e:n:e.length?e:n}function c(e){s+="<"+a(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+t(e.value)+'"'})).join("")+">"}function u(e){s+="</"+a(e)+">"}function d(e){("start"===e.event?c:u)(e.node)}for(;e.length||n.length;){var g=l();if(s+=t(r.substring(i,g[0].offset)),i=g[0].offset,g===e){o.reverse().forEach(u);do{d(g.splice(0,1)[0]),g=l()}while(g===e&&g.length&&g[0].offset===i);o.reverse().forEach(c)}else"start"===g[0].event?o.push(g[0].node):o.pop(),d(g.splice(0,1)[0])}return s+t(r.substr(i))}});const s="</span>",o=e=>!!e.kind;class l{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=t(e)}openNode(e){if(!o(e))return;let n=e.kind;e.sublanguage||(n=`${this.classPrefix}${n}`),this.span(n)}closeNode(e){o(e)&&(this.buffer+=s)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n={kind:e,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(n=>this._walk(e,n)),e.closeNode(n)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{c._collapse(e)}))}}class u extends c{constructor(e){super(),this.options=e}addKeyword(e,n){""!==e&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,n){const t=e.root;t.kind=n,t.sublanguage=!0,this.add(t)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}}function d(e){return e?"string"==typeof e?e:e.source:null}const g="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",h={begin:"\\\\[\\s\\S]",relevance:0},f={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[h]},p={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[h]},b={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},m=function(e,n,t={}){var a=r({className:"comment",begin:e,end:n,contains:[]},t);return a.contains.push(b),a.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),a},v=m("//","$"),x=m("/\\*","\\*/"),E=m("#","$");var _=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:g,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>d(e)).join("")}(n,/.*\b/,e.binary,/\b.*/)),r({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:h,APOS_STRING_MODE:f,QUOTE_STRING_MODE:p,PHRASAL_WORDS_MODE:b,COMMENT:m,C_LINE_COMMENT_MODE:v,C_BLOCK_COMMENT_MODE:x,HASH_COMMENT_MODE:E,NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},C_NUMBER_MODE:{className:"number",begin:g,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:"\\b(0b[01]+)",relevance:0},CSS_NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[h,{begin:/\[/,end:/\]/,relevance:0,contains:[h]}]}]},TITLE_MODE:{className:"title",begin:"[a-zA-Z]\\w*",relevance:0},UNDERSCORE_TITLE_MODE:{className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},METHOD_GUARD:{begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}}),N="of and for in not or if then".split(" ");function w(e,n){return n?+n:function(e){return N.includes(e.toLowerCase())}(e)?0:1}const R=t,y=r,{nodeStream:k,mergeStreams:O}=i,M=Symbol("nomatch");return function(t){var a=[],i={},s={},o=[],l=!0,c=/(^(<[^>]+>|\t|)+|\n)/gm,g="Could not find the language '{}', did you forget to load/include a language module?";const h={disableAutodetect:!0,name:"Plain text",contains:[]};var f={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:u};function p(e){return f.noHighlightRe.test(e)}function b(e,n,t,r){var a={code:n,language:e};S("before:highlight",a);var i=a.result?a.result:m(a.language,a.code,t,r);return i.code=a.code,S("after:highlight",i),i}function m(e,t,a,s){var o=t;function c(e,n){var t=E.case_insensitive?n[0].toLowerCase():n[0];return Object.prototype.hasOwnProperty.call(e.keywords,t)&&e.keywords[t]}function u(){null!=y.subLanguage?function(){if(""!==A){var e=null;if("string"==typeof y.subLanguage){if(!i[y.subLanguage])return void O.addText(A);e=m(y.subLanguage,A,!0,k[y.subLanguage]),k[y.subLanguage]=e.top}else e=v(A,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(I+=e.relevance),O.addSublanguage(e.emitter,e.language)}}():function(){if(!y.keywords)return void O.addText(A);let e=0;y.keywordPatternRe.lastIndex=0;let n=y.keywordPatternRe.exec(A),t="";for(;n;){t+=A.substring(e,n.index);const r=c(y,n);if(r){const[e,a]=r;O.addText(t),t="",I+=a,O.addKeyword(n[0],e)}else t+=n[0];e=y.keywordPatternRe.lastIndex,n=y.keywordPatternRe.exec(A)}t+=A.substr(e),O.addText(t)}(),A=""}function h(e){return e.className&&O.openNode(e.className),y=Object.create(e,{parent:{value:y}})}function p(e){return 0===y.matcher.regexIndex?(A+=e[0],1):(L=!0,0)}var b={};function x(t,r){var i=r&&r[0];if(A+=t,null==i)return u(),0;if("begin"===b.type&&"end"===r.type&&b.index===r.index&&""===i){if(A+=o.slice(r.index,r.index+1),!l){const n=Error("0 width match regex");throw n.languageName=e,n.badRule=b.rule,n}return 1}if(b=r,"begin"===r.type)return function(e){var t=e[0],r=e.rule;const a=new n(r),i=[r.__beforeBegin,r["on:begin"]];for(const n of i)if(n&&(n(e,a),a.ignore))return p(t);return r&&r.endSameAsBegin&&(r.endRe=RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),r.skip?A+=t:(r.excludeBegin&&(A+=t),u(),r.returnBegin||r.excludeBegin||(A=t)),h(r),r.returnBegin?0:t.length}(r);if("illegal"===r.type&&!a){const e=Error('Illegal lexeme "'+i+'" for mode "'+(y.className||"<unnamed>")+'"');throw e.mode=y,e}if("end"===r.type){var s=function(e){var t=e[0],r=o.substr(e.index),a=function e(t,r,a){let i=function(e,n){var t=e&&e.exec(n);return t&&0===t.index}(t.endRe,a);if(i){if(t["on:end"]){const e=new n(t);t["on:end"](r,e),e.ignore&&(i=!1)}if(i){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,r,a)}(y,e,r);if(!a)return M;var i=y;i.skip?A+=t:(i.returnEnd||i.excludeEnd||(A+=t),u(),i.excludeEnd&&(A=t));do{y.className&&O.closeNode(),y.skip||y.subLanguage||(I+=y.relevance),y=y.parent}while(y!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),h(a.starts)),i.returnEnd?0:t.length}(r);if(s!==M)return s}if("illegal"===r.type&&""===i)return 1;if(B>1e5&&B>3*r.index)throw Error("potential infinite loop, way more iterations than matches");return A+=i,i.length}var E=T(e);if(!E)throw console.error(g.replace("{}",e)),Error('Unknown language: "'+e+'"');var _=function(e){function n(n,t){return RegExp(d(n),"m"+(e.case_insensitive?"i":"")+(t?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=function(e){return RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,n="|"){for(var t=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,r=0,a="",i=0;i<e.length;i++){var s=r+=1,o=d(e[i]);for(i>0&&(a+=n),a+="(";o.length>0;){var l=t.exec(o);if(null==l){a+=o;break}a+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),"\\"===l[0][0]&&l[1]?a+="\\"+(+l[1]+s):(a+=l[0],"("===l[0]&&r++)}a+=")"}return a}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const n=this.matcherRe.exec(e);if(!n)return null;const t=n.findIndex((e,n)=>n>0&&void 0!==e),r=this.matchIndexes[t];return n.splice(0,t),Object.assign(n,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t;return this.rules.slice(e).forEach(([e,t])=>n.addRule(e,t)),n.compile(),this.multiRegexes[e]=n,n}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;const t=n.exec(e);return t&&(this.regexIndex+=t.position+1,this.regexIndex===this.count&&(this.regexIndex=0)),t}}function i(e,n){const t=e.input[e.index-1],r=e.input[e.index+e[0].length];"."!==t&&"."!==r||n.ignoreMatch()}if(e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return function t(s,o){const l=s;if(s.compiled)return l;s.compiled=!0,s.__beforeBegin=null,s.keywords=s.keywords||s.beginKeywords;let c=null;if("object"==typeof s.keywords&&(c=s.keywords.$pattern,delete s.keywords.$pattern),s.keywords&&(s.keywords=function(e,n){var t={};return"string"==typeof e?r("keyword",e):Object.keys(e).forEach((function(n){r(n,e[n])})),t;function r(e,r){n&&(r=r.toLowerCase()),r.split(" ").forEach((function(n){var r=n.split("|");t[r[0]]=[e,w(r[0],r[1])]}))}}(s.keywords,e.case_insensitive)),s.lexemes&&c)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return l.keywordPatternRe=n(s.lexemes||c||/\w+/,!0),o&&(s.beginKeywords&&(s.begin="\\b("+s.beginKeywords.split(" ").join("|")+")(?=\\b|\\s)",s.__beforeBegin=i),s.begin||(s.begin=/\B|\b/),l.beginRe=n(s.begin),s.endSameAsBegin&&(s.end=s.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(l.endRe=n(s.end)),l.terminator_end=d(s.end)||"",s.endsWithParent&&o.terminator_end&&(l.terminator_end+=(s.end?"|":"")+o.terminator_end)),s.illegal&&(l.illegalRe=n(s.illegal)),void 0===s.relevance&&(s.relevance=1),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map((function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(n){return r(e,{variants:null},n)}))),e.cached_variants?e.cached_variants:function e(n){return!!n&&(n.endsWithParent||e(n.starts))}(e)?r(e,{starts:e.starts?r(e.starts):null}):Object.isFrozen(e)?r(e):e}("self"===e?s:e)}))),s.contains.forEach((function(e){t(e,l)})),s.starts&&t(s.starts,o),l.matcher=function(e){const n=new a;return e.contains.forEach(e=>n.addRule(e.begin,{rule:e,type:"begin"})),e.terminator_end&&n.addRule(e.terminator_end,{type:"end"}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n}(l),l}(e)}(E),N="",y=s||_,k={},O=new f.__emitter(f);!function(){for(var e=[],n=y;n!==E;n=n.parent)n.className&&e.unshift(n.className);e.forEach(e=>O.openNode(e))}();var A="",I=0,S=0,B=0,L=!1;try{for(y.matcher.considerAll();;){B++,L?L=!1:(y.matcher.lastIndex=S,y.matcher.considerAll());const e=y.matcher.exec(o);if(!e)break;const n=x(o.substring(S,e.index),e);S=e.index+n}return x(o.substr(S)),O.closeAllNodes(),O.finalize(),N=O.toHTML(),{relevance:I,value:N,language:e,illegal:!1,emitter:O,top:y}}catch(n){if(n.message&&n.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:n.message,context:o.slice(S-100,S+100),mode:n.mode},sofar:N,relevance:0,value:R(o),emitter:O};if(l)return{illegal:!1,relevance:0,value:R(o),emitter:O,language:e,top:y,errorRaised:n};throw n}}function v(e,n){n=n||f.languages||Object.keys(i);var t=function(e){const n={relevance:0,emitter:new f.__emitter(f),value:R(e),illegal:!1,top:h};return n.emitter.addText(e),n}(e),r=t;return n.filter(T).filter(I).forEach((function(n){var a=m(n,e,!1);a.language=n,a.relevance>r.relevance&&(r=a),a.relevance>t.relevance&&(r=t,t=a)})),r.language&&(t.second_best=r),t}function x(e){return f.tabReplace||f.useBR?e.replace(c,e=>"\n"===e?f.useBR?"<br>":e:f.tabReplace?e.replace(/\t/g,f.tabReplace):e):e}function E(e){let n=null;const t=function(e){var n=e.className+" ";n+=e.parentNode?e.parentNode.className:"";const t=f.languageDetectRe.exec(n);if(t){var r=T(t[1]);return r||(console.warn(g.replace("{}",t[1])),console.warn("Falling back to no-highlight mode for this block.",e)),r?t[1]:"no-highlight"}return n.split(/\s+/).find(e=>p(e)||T(e))}(e);if(p(t))return;S("before:highlightBlock",{block:e,language:t}),f.useBR?(n=document.createElement("div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"):n=e;const r=n.textContent,a=t?b(t,r,!0):v(r),i=k(n);if(i.length){const e=document.createElement("div");e.innerHTML=a.value,a.value=O(i,k(e),r)}a.value=x(a.value),S("after:highlightBlock",{block:e,result:a}),e.innerHTML=a.value,e.className=function(e,n,t){var r=n?s[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),e.includes(r)||a.push(r),a.join(" ").trim()}(e.className,t,a.language),e.result={language:a.language,re:a.relevance,relavance:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance,relavance:a.second_best.relevance})}const N=()=>{if(!N.called){N.called=!0;var e=document.querySelectorAll("pre code");a.forEach.call(e,E)}};function T(e){return e=(e||"").toLowerCase(),i[e]||i[s[e]]}function A(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach(e=>{s[e]=n})}function I(e){var n=T(e);return n&&!n.disableAutodetect}function S(e,n){var t=e;o.forEach((function(e){e[t]&&e[t](n)}))}Object.assign(t,{highlight:b,highlightAuto:v,fixMarkup:x,highlightBlock:E,configure:function(e){f=y(f,e)},initHighlighting:N,initHighlightingOnLoad:function(){window.addEventListener("DOMContentLoaded",N,!1)},registerLanguage:function(e,n){var r=null;try{r=n(t)}catch(n){if(console.error("Language definition for '{}' could not be registered.".replace("{}",e)),!l)throw n;console.error(n),r=h}r.name||(r.name=e),i[e]=r,r.rawDefinition=n.bind(null,t),r.aliases&&A(r.aliases,{languageName:e})},listLanguages:function(){return Object.keys(i)},getLanguage:T,registerAliases:A,requireLanguage:function(e){var n=T(e);if(n)return n;throw Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:I,inherit:y,addPlugin:function(e){o.push(e)}}),t.debugMode=function(){l=!1},t.safeMode=function(){l=!0},t.versionString="10.1.1";for(const n in _)"object"==typeof _[n]&&e(_[n]);return Object.assign(t,_),t}({})}();"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);hljs.registerLanguage("diff",function(){"use strict";return function(e){return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^\-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/}]},{className:"addition",begin:"^\\+",end:"$"},{className:"deletion",begin:"^\\-",end:"$"},{className:"addition",begin:"^\\!",end:"$"}]}}}());hljs.registerLanguage("xml",function(){"use strict";return function(e){var n={className:"symbol",begin:"&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;"},a={begin:"\\s",contains:[{className:"meta-keyword",begin:"#?[a-z_][a-z1-9_-]+",illegal:"\\n"}]},s=e.inherit(a,{begin:"\\(",end:"\\)"}),t=e.inherit(e.APOS_STRING_MODE,{className:"meta-string"}),i=e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:"[A-Za-z0-9\\._:-]+",relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[n]},{begin:/'/,end:/'/,contains:[n]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:"<![a-z]",end:">",relevance:10,contains:[a,i,t,s,{begin:"\\[",end:"\\]",contains:[{className:"meta",begin:"<![a-z]",end:">",contains:[a,s,i,t]}]}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},n,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:"<style(?=\\s|>)",end:">",keywords:{name:"style"},contains:[c],starts:{end:"</style>",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"<script(?=\\s|>)",end:">",keywords:{name:"script"},contains:[c],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:"</?",end:"/?>",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},c]}]}}}());hljs.registerLanguage("sas",function(){"use strict";return function(e){return{name:"SAS",aliases:["sas","SAS"],case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:"do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where"},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s\;]/},{className:"variable",begin:/\&[a-zA-Z_\&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%(bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window)"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%](abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate)[(]"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}}());hljs.registerLanguage("java",function(){"use strict";function e(e){return e?"string"==typeof e?e:e.source:null}function n(e){return a("(",e,")?")}function a(...n){return n.map(n=>e(n)).join("")}function s(...n){return"("+n.map(n=>e(n)).join("|")+")"}return function(e){var t="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",i={className:"meta",begin:"@[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},r=e=>a("[",e,"]+([",e,"_]*[",e,"]+)?"),c={className:"number",variants:[{begin:`\\b(0[bB]${r("01")})[lL]?`},{begin:`\\b(0${r("0-7")})[dDfFlL]?`},{begin:a(/\b0[xX]/,s(a(r("a-fA-F0-9"),/\./,r("a-fA-F0-9")),a(r("a-fA-F0-9"),/\.?/),a(/\./,r("a-fA-F0-9"))),/([pP][+-]?(\d+))?/,/[fFdDlL]?/)},{begin:a(/\b/,s(a(/\d*\./,r("\\d")),r("\\d")),/[eE][+-]?[\d]+[dDfF]?/)},{begin:a(/\b/,r(/\d/),n(/\.?/),n(r(/\d/)),/[dDfFlL]?/)}],relevance:0};return{name:"Java",aliases:["jsp"],keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},c,i]}}}());hljs.registerLanguage("json",function(){"use strict";return function(n){var e={literal:"true false null"},i=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],t=[n.QUOTE_STRING_MODE,n.C_NUMBER_MODE],a={end:",",endsWithParent:!0,excludeEnd:!0,contains:t,keywords:e},l={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE],illegal:"\\n"},n.inherit(a,{begin:/:/})].concat(i),illegal:"\\S"},s={begin:"\\[",end:"\\]",contains:[n.inherit(a)],illegal:"\\S"};return t.push(l,s),i.forEach((function(n){t.push(n)})),{name:"JSON",contains:t,keywords:e,illegal:"\\S"}}}());hljs.registerLanguage("css",function(){"use strict";return function(e){var n={begin:/(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{name:"CSS",case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(page|font-face)",lexemes:"@[a-z-]+",keywords:"@page @font-face"},{begin:"@",end:"[{;]",illegal:/:/,returnBegin:!0,contains:[{className:"keyword",begin:/@\-?\w[\w]*(\-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:"and or not only",contains:[{begin:/[a-z-]+:/,className:"attribute"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,n]}]}}}());hljs.registerLanguage("typescript",function(){"use strict";const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);return function(r){var t={$pattern:"[A-Za-z$_][0-9A-Za-z$_]*",keyword:e.concat(["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"]).join(" "),literal:n.join(" "),built_in:a.concat(["any","void","number","boolean","string","object","never","enum"]).join(" ")},s={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:r.C_NUMBER_RE+"n?"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:t,contains:[]},c={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},l={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"css"}},E={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,o]};o.contains=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,c,l,E,i,r.REGEXP_MODE];var d={begin:"\\(",end:/\)/,keywords:t,contains:["self",r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,r.NUMBER_MODE]},u={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,s,d]};return{name:"TypeScript",aliases:["ts"],keywords:t,contains:[r.SHEBANG(),{className:"meta",begin:/^\s*['"]use strict['"]/},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,c,l,E,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,i,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.REGEXP_MODE,{className:"function",begin:"(\\([^(]*(\\([^(]*(\\([^(]*\\))?\\))?\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:d.contains}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[\{;]/,excludeEnd:!0,keywords:t,contains:["self",r.inherit(r.TITLE_MODE,{begin:"[A-Za-z$_][0-9A-Za-z$_]*"}),u],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/[\{;]/,excludeEnd:!0,contains:["self",u]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+r.IDENT_RE,relevance:0},s,d]}}}());hljs.registerLanguage("plaintext",function(){"use strict";return function(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}}());hljs.registerLanguage("markdown",function(){"use strict";return function(n){const e={begin:"<",end:">",subLanguage:"xml",relevance:0},a={begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},i={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},s={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};i.contains.push(s),s.contains.push(i);var c=[e,a];return i.contains=i.contains.concat(c),s.contains=s.contains.concat(c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:c=c.concat(i,s)},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:c}]}]},e,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},i,s,{className:"quote",begin:"^>\\s+",contains:c,end:"$"},{className:"code",variants:[{begin:"(`{3,})(.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})(.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},a,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}}());hljs.registerLanguage("ruby",function(){"use strict";return function(e){var n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},s={className:"doctag",begin:"@[A-Za-z]+"},i={begin:"#<",end:">"},r=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^\\=begin","^\\=end",{contains:[s],relevance:10}),e.COMMENT("^__END__","\\n$")],c={className:"subst",begin:"#\\{",end:"}",keywords:a},t={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[qQwWx]?\\(",end:"\\)"},{begin:"%[qQwWx]?\\[",end:"\\]"},{begin:"%[qQwWx]?{",end:"}"},{begin:"%[qQwWx]?<",end:">"},{begin:"%[qQwWx]?/",end:"/"},{begin:"%[qQwWx]?%",end:"%"},{begin:"%[qQwWx]?-",end:"-"},{begin:"%[qQwWx]?\\|",end:"\\|"},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},b={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:a},d=[t,i,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(r)},{className:"function",beginKeywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:n}),b].concat(r)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[t,{begin:n}],relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{className:"params",begin:/\|/,end:/\|/,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[i,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r{",end:"}[a-z]*"},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(r),relevance:0}].concat(r);c.contains=d,b.contains=d;var g=[{begin:/^\s*=>/,starts:{end:"$",contains:d}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{end:"$",contains:d}}];return{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:r.concat(g).concat(d)}}}());hljs.registerLanguage("yaml",function(){"use strict";return function(e){var n="true false yes no null",a="[\\w#;/?:@&=+$,.~*\\'()[\\]]+",s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:"{{",end:"}}"},{begin:"%{",end:"}"}]}]},i=e.inherit(s,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={end:",",endsWithParent:!0,excludeEnd:!0,contains:[],keywords:n,relevance:0},t={begin:"{",end:"}",contains:[l],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]",contains:[l],illegal:"\\n",relevance:0},b=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---s*$",relevance:10},{className:"string",begin:"[\\|>]([0-9]?[+-])?[ ]*\\n( *)[\\S ]+\\n(\\2[\\S ]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"\\-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:e.C_NUMBER_RE+"\\b"},t,g,s],c=[...b];return c.pop(),c.push(i),l.contains=c,{name:"YAML",case_insensitive:!0,aliases:["yml","YAML"],contains:b}}}());hljs.registerLanguage("c-like",function(){"use strict";return function(e){function t(e){return"(?:"+e+")?"}var n="(decltype\\(auto\\)|"+t("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+t("<.*?>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},i={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o={className:"title",begin:t("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},c=t("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",l={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},d=[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:l,contains:d.concat([{begin:/\(/,end:/\)/,keywords:l,contains:d.concat(["self"]),relevance:0}]),relevance:0},u={className:"function",begin:"("+n+"[\\*&\\s]+)+"+c,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:l,illegal:/[^\w\s\*&:<>]/,contains:[{begin:"decltype\\(auto\\)",keywords:l,relevance:0},{begin:c,returnBegin:!0,contains:[o],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,i,r,{begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,i,r]}]},r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:l,disableAutodetect:!0,illegal:"</",contains:[].concat(_,u,d,[s,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:l,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:l},{className:"class",beginKeywords:"class struct",end:/[{;:]/,contains:[{begin:/</,end:/>/,contains:["self"]},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:a,keywords:l}}}}());hljs.registerLanguage("cpp",function(){"use strict";return function(e){var t=e.getLanguage("c-like").rawDefinition();return t.disableAutodetect=!1,t.name="C++",t.aliases=["cc","c++","h++","hpp","hh","hxx","cxx"],t}}());hljs.registerLanguage("perl",function(){"use strict";return function(e){var n={$pattern:/[\w.]+/,keyword:"getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qq fileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmget sub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedir ioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when"},t={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:n},s={begin:"->{",end:"}"},r={variants:[{begin:/\$\d/},{begin:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{begin:/[\$%@][^\s\w{]/,relevance:0}]},i=[e.BACKSLASH_ESCAPE,t,r],a=[r,e.HASH_COMMENT_MODE,e.COMMENT("^\\=\\w","\\=cut",{endsWithParent:!0}),s,{className:"string",contains:i,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*\\<",end:"\\>",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:"{\\w+}",contains:[],relevance:0},{begin:"-?\\w+\\s*\\=\\>",contains:[],relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",begin:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",relevance:10},{className:"regexp",begin:"(m|qr)?/",end:"/[a-z]*",contains:[e.BACKSLASH_ESCAPE],relevance:0}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return t.contains=a,s.contains=a,{name:"Perl",aliases:["pl","pm"],keywords:n,contains:a}}}());hljs.registerLanguage("nginx",function(){"use strict";return function(e){var n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/}/},{begin:"[\\$\\@]"+e.UNDERSCORE_IDENT_RE}]},a={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+{",returnBegin:!0,end:"{",contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}]"}}}());hljs.registerLanguage("ini",function(){"use strict";function e(e){return e?"string"==typeof e?e:e.source:null}function n(...n){return n.map(n=>e(n)).join("")}return function(a){var s={className:"number",relevance:0,variants:[{begin:/([\+\-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},i=a.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];var t={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)}/}]},r={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[i,r,t,l,s,"self"],relevance:0},g="("+[/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/].map(n=>e(n)).join("|")+")";return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:n(g,"(\\s*\\.\\s*",g,")*",n("(?=",/\s*=\s*[^#\s]/,")")),className:"attr",starts:{end:/$/,contains:[i,c,r,t,l,s]}}]}}}());hljs.registerLanguage("python",function(){"use strict";return function(e){var n={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10",built_in:"Ellipsis NotImplemented",literal:"False None True"},a={className:"meta",begin:/^(>>>|\.\.\.) /},i={className:"subst",begin:/\{/,end:/\}/,keywords:n,illegal:/#/},s={begin:/\{\{/,relevance:0},r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/(fr|rf|f)'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,i]},{begin:/(fr|rf|f)"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,i]},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},{begin:/(fr|rf|f)'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,i]},{begin:/(fr|rf|f)"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,i]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},l={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},t={className:"params",variants:[{begin:/\(\s*\)/,skip:!0,className:null},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:["self",a,l,r,e.HASH_COMMENT_MODE]}]};return i.contains=[r,l,a],{name:"Python",aliases:["py","gyp","ipython"],keywords:n,illegal:/(<\/|->|\?)|=>/,contains:[a,l,{beginKeywords:"if",relevance:0},r,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,t,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}}());hljs.registerLanguage("vbnet",function(){"use strict";return function(e){return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,keywords:{keyword:"addhandler addressof alias and andalso aggregate ansi as async assembly auto await binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue iterator join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass nameof namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor yield",built_in:"boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",literal:"true false nothing"},illegal:"//|{|}|endif|gosub|variant|wend|^\\$ ",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT("'","$",{returnBegin:!0,contains:[{className:"doctag",begin:"'''|\x3c!--|--\x3e",contains:[e.PHRASAL_WORDS_MODE]},{className:"doctag",begin:"</?",end:">",contains:[e.PHRASAL_WORDS_MODE]}]}),e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end region externalsource"}}]}}}());hljs.registerLanguage("makefile",function(){"use strict";return function(e){var i={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]},a={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[i]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[i]};return{name:"Makefile",aliases:["mk","mak"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,i,n,a,r,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,"meta-keyword":".PHONY"}},s]}}}());hljs.registerLanguage("objectivec",function(){"use strict";return function(e){var n=/[a-zA-Z@][a-zA-Z0-9_]*/,_={$pattern:n,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c"],keywords:{$pattern:n,keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+_.keyword.split(" ").join("|")+")\\b",end:"({|$)",excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}}());hljs.registerLanguage("python-repl",function(){"use strict";return function(n){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}}());hljs.registerLanguage("javascript",function(){"use strict";const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function s(e){return r("(?=",e,")")}function r(...e){return e.map(e=>(function(e){return e?"string"==typeof e?e:e.source:null})(e)).join("")}return function(t){var i="[A-Za-z$_][0-9A-Za-z$_]*",c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/},o={$pattern:"[A-Za-z$_][0-9A-Za-z$_]*",keyword:e.join(" "),literal:n.join(" "),built_in:a.join(" ")},l={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:t.C_NUMBER_RE+"n?"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},g={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"css"}},u={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,E]};E.contains=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,g,u,l,t.REGEXP_MODE];var b=E.contains.concat([{begin:/\(/,end:/\)/,contains:["self"].concat(E.contains,[t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE])},t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:b};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,contains:[t.SHEBANG({binary:"node",relevance:5}),{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,g,u,t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,l,{begin:r(/[{,\n]\s*/,s(r(/(((\/\/.*)|(\/\*(.|\n)*\*\/))\s*)*/,i+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:i+s("\\s*:"),relevance:0}]},{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{className:"function",begin:"(\\([^(]*(\\([^(]*(\\([^(]*\\))?\\))?\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:b}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:"<>",end:"</>"},{begin:c.begin,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{begin:i}),_],illegal:/\[|%/},{begin:/\$[(.]/},t.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0},{begin:"(get|set)\\s+(?="+i+"\\()",end:/{/,keywords:"get set",contains:[t.inherit(t.TITLE_MODE,{begin:i}),{begin:/\(\)/},_]}],illegal:/#(?!!)/}}}());hljs.registerLanguage("rust",function(){"use strict";return function(e){var n="([ui](8|16|32|64|128|size)|f(32|64))?",t="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",literal:"true false Some None Ok Err",built_in:t},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+n},{begin:"\\b0o([0-7_]+)"+n},{begin:"\\b0x([A-Fa-f0-9_]+)"+n},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+n}],relevance:0},{className:"function",beginKeywords:"fn",end:"(\\(|<)",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"#\\!?\\[",end:"\\]",contains:[{className:"meta-string",begin:/"/,end:/"/}]},{className:"class",beginKeywords:"type",end:";",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"\\S"},{className:"class",beginKeywords:"trait enum struct union",end:"{",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"[\\w\\d]"},{begin:e.IDENT_RE+"::",keywords:{built_in:t}},{begin:"->"}]}}}());hljs.registerLanguage("swift",function(){"use strict";return function(e){var i={keyword:"#available #colorLiteral #column #else #elseif #endif #file #fileLiteral #function #if #imageLiteral #line #selector #sourceLocation _ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c compactMap contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),t={className:"subst",begin:/\\\(/,end:"\\)",keywords:i,contains:[]},a={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"""/,end:/"""/},{begin:/"/,end:/"/}]},r={className:"number",begin:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",relevance:0};return t.contains=[r],{name:"Swift",keywords:i,contains:[a,e.C_LINE_COMMENT_MODE,n,{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*[!?]"},{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*",relevance:0},r,{className:"function",beginKeywords:"func",end:"{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{begin:/</,end:/>/},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:i,contains:["self",r,a,e.C_BLOCK_COMMENT_MODE,{begin:":"}],illegal:/["']/}],illegal:/\[|%/},{className:"class",beginKeywords:"struct protocol class extension enum",keywords:i,end:"\\{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})]},{className:"meta",begin:"(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain|@dynamicMemberLookup|@propertyWrapper)\\b"},{beginKeywords:"import",end:/$/,contains:[e.C_LINE_COMMENT_MODE,n]}]}}}());hljs.registerLanguage("less",function(){"use strict";return function(e){var n="([\\w-]+|@{[\\w-]+})",a=[],s=[],t=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},r=function(e,n,a){return{className:e,begin:n,relevance:a}},i={begin:"\\(",end:"\\)",contains:s,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t("'"),t('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},r("number","#[0-9A-Fa-f]+\\b"),i,r("variable","@@?[\\w-]+",10),r("variable","@{[\\w-]+}"),r("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var c=s.concat({begin:"{",end:"}",contains:a}),l={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},o={begin:n+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:n,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},g={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:s,relevance:0}},d={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:c}},b={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:n,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l,r("keyword","all\\b"),r("variable","@{[\\w-]+}"),r("selector-tag",n+"%?",0),r("selector-id","#"+n),r("selector-class","\\."+n,0),r("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:c},{begin:"!important"}]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,o,b),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:a}}}());hljs.registerLanguage("csharp",function(){"use strict";return function(e){var n={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let nameof on orderby partial remove select set value var when where yield",literal:"null false true"},i=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},t=e.inherit(s,{illegal:/\n/}),l={className:"subst",begin:"{",end:"}",keywords:n},r=e.inherit(l,{illegal:/\n/}),c={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},e.BACKSLASH_ESCAPE,r]},o={className:"string",begin:/\$@"/,end:'"',contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},l]},g=e.inherit(o,{illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},r]});l.contains=[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],r.contains=[g,c,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var d={variants:[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},i]},_=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",b={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},d,a,{beginKeywords:"class interface",end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},i,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+_+"\\s+)+"+e.IDENT_RE+"\\s*(\\<.+\\>)?\\s*\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:n,contains:[{begin:e.IDENT_RE+"\\s*(\\<.+\\>)?\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE,E],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0,contains:[d,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},b]}}}());hljs.registerLanguage("scss",function(){"use strict";return function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},i={className:"number",begin:"#[0-9A-Fa-f]+"};return e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{className:"selector-pseudo",begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{className:"selector-pseudo",begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(src|z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,i,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@(page|font-face)",lexemes:"@[a-z-]+",keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:"and or not only",contains:[{begin:"@[a-z-]+",className:"keyword"},t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,e.CSS_NUMBER_MODE]}]}}}());hljs.registerLanguage("lua",function(){"use strict";return function(e){var t={begin:"\\[=*\\[",end:"\\]=*\\]",contains:["self"]},a=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[","\\]=*\\]",{contains:[t],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\[=*\\[",end:"\\]=*\\]",contains:[t],relevance:5}])}}}());hljs.registerLanguage("sql",function(){"use strict";return function(e){var t=e.COMMENT("--","$");return{name:"SQL",case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,keywords:{$pattern:/[\w\.]+/,keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]}}}());hljs.registerLanguage("c",function(){"use strict";return function(e){var n=e.getLanguage("c-like").rawDefinition();return n.name="C",n.aliases=["c","h"],n}}());hljs.registerLanguage("http",function(){"use strict";return function(e){var n="HTTP/[0-9\\.]+";return{name:"HTTP",aliases:["https"],illegal:"\\S",contains:[{begin:"^"+n,end:"$",contains:[{className:"number",begin:"\\b\\d{3}\\b"}]},{begin:"^[A-Z]+ (.*?) "+n+"$",returnBegin:!0,end:"$",contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{begin:n},{className:"keyword",begin:"[A-Z]+"}]},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,illegal:"\\n|\\s|=",starts:{end:"$",relevance:0}},{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}]}}}());hljs.registerLanguage("php",function(){"use strict";return function(e){var r={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},t={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},a={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Throwable Traversable WeakReference Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php","php3","php4","php5","php6","php7"],case_insensitive:!0,keywords:i,contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[t]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},t,{className:"keyword",begin:/\$this\b/},r,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:i,contains:["self",r,e.C_BLOCK_COMMENT_MODE,a,n]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},a,n]}}}());hljs.registerLanguage("apache",function(){"use strict";return function(e){var n={className:"number",begin:"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?"};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:"</?",end:">",contains:[n,{className:"number",begin:":\\d{1,5}"},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:"\\s\\[",end:"\\]$"},{className:"variable",begin:"[\\$%]\\{",end:"\\}",contains:["self",{className:"number",begin:"[\\$%]\\d+"}]},n,{className:"number",begin:"\\d+"},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}}());hljs.registerLanguage("bash",function(){"use strict";return function(e){const s={};Object.assign(s,{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{/,end:/\}/,contains:[{begin:/:-/,contains:[s]}]}]});const t={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,t]};t.contains.push(n);const a={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,s]},i=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b-?[a-z\._]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},contains:[i,e.SHEBANG(),c,a,e.HASH_COMMENT_MODE,n,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},s]}}}());hljs.registerLanguage("go",function(){"use strict";return function(e){var n={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:n,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:n,illegal:/["']/}]}]}}}());hljs.registerLanguage("properties",function(){"use strict";return function(e){var n="[ \\t\\f]*",t="("+n+"[:=]"+n+"|[ \\t\\f]+)",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:t,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+"+t,returnBegin:!0,contains:[{className:"attr",begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",endsParent:!0,relevance:0}],starts:s},{begin:a+t,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:a,endsParent:!0,relevance:0}],starts:s},{className:"attr",relevance:0,begin:a+n+"$"}]}}}());hljs.registerLanguage("shell",function(){"use strict";return function(s){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:"^\\s{0,3}[/\\w\\d\\[\\]()@-]*[>%$#]",starts:{end:"$",subLanguage:"bash"}}]}}}());hljs.registerLanguage("coffeescript",function(){"use strict";const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);return function(r){var t={keyword:e.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((e=>n=>!e.includes(n))(["var","const","let","function","static"])).join(" "),literal:n.concat(["yes","no","on","off"]).join(" "),built_in:a.concat(["npm","print"]).join(" ")},i="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/}/,keywords:t},o=[r.BINARY_NUMBER_MODE,r.inherit(r.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[r.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[r.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[r.BACKSLASH_ESCAPE,s]},{begin:/"/,end:/"/,contains:[r.BACKSLASH_ESCAPE,s]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[s,r.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+i},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];s.contains=o;var c=r.inherit(r.TITLE_MODE,{begin:i}),l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(o)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,contains:o.concat([r.COMMENT("###","###"),r.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+i+"\\s*=\\s*(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[c,l]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:"(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[c]},c]},{begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}());hljs.registerLanguage("php-template",function(){"use strict";return function(n){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}}());hljs.registerLanguage("kotlin",function(){"use strict";return function(e){var n={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:"\\${",end:"}",contains:[e.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},t={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,s,i]}]};i.contains.push(t);var r={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(t,{className:"meta-string"})]}]},c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),o={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},d=o;return d.variants[1].contains=[o],o.variants[1].contains=[d],{name:"Kotlin",aliases:["kt"],keywords:n,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},a,r,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:n,illegal:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[o,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,r,l,t,e.C_NUMBER_MODE]},c]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},r,l]},t,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},{className:"number",begin:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0}]}}}());
17,617
105,598
0.714055
a829a9ff19eb7ccf8c9b44c130e025ca8f32463d
280
js
JavaScript
src/layouts/images/projects/index.js
nrl240/noelle-laureano
1c32dea84a923331027557ef1c26d353764bfc17
[ "MIT" ]
null
null
null
src/layouts/images/projects/index.js
nrl240/noelle-laureano
1c32dea84a923331027557ef1c26d353764bfc17
[ "MIT" ]
null
null
null
src/layouts/images/projects/index.js
nrl240/noelle-laureano
1c32dea84a923331027557ef1c26d353764bfc17
[ "MIT" ]
4
2019-03-31T15:33:33.000Z
2021-06-11T00:57:07.000Z
export { default as mapStackMockup } from './mapstackmockup.png' export { default as saucesomeMockup } from './saucesomemockup.png' export { default as theListeningRoomMockup } from './theListeningRoomMockup.png' export { default as graceCardMockup } from './graceCardMockup.png'
56
80
0.785714
a82a432fd093122aaf801a4e5abf502c5167f84c
2,272
js
JavaScript
src/components/Home/Contact2.js
JWsoundsystems/HoneyCombStudios
ee882057713b196fdb991c805d669cd202893952
[ "MIT" ]
null
null
null
src/components/Home/Contact2.js
JWsoundsystems/HoneyCombStudios
ee882057713b196fdb991c805d669cd202893952
[ "MIT" ]
null
null
null
src/components/Home/Contact2.js
JWsoundsystems/HoneyCombStudios
ee882057713b196fdb991c805d669cd202893952
[ "MIT" ]
1
2020-09-11T00:13:35.000Z
2020-09-11T00:13:35.000Z
import React from 'react' import { Link } from "gatsby" import AboutImg1 from "../../images/Store/22_Store.jpg" import { BsXSquare } from "react-icons/bs"; export default function Contact() { return ( <div className="container"> <div className="row contact-contain"> <div className="col-12 about-desc"> <img src={AboutImg1} className="about-img" alt="about-img"></img> <br /> <p className="contact-words"><br /> <div className="row contact-titles"> <h3 className=" col-12 col-md-12 my-3 mx-auto contact-buzz"> Buzz Us!</h3> <h4 className="col-12 col-md-12 my-3 mx-auto contact-titles">Do you have a question or are you a hairstylist looking to join us?</h4> <h4 className=" col-12 col-md-12 my-3 mx-auto contact-titles">Please fill out the form below and we will buzz you back!</h4> </div> <Link to="/"> <BsXSquare className="close-btn-2" /> </Link> <div className="row contact-form"> <form className="col-12 col-md-12 my-3 mx-auto" action="https://formspree.io/xlepwbzo" method="POST"> <div className="col-12 col-md-12 my-3 mx-auto"> <input type="text" name="name" placeholder="name" className="form-control"> </input> <input type="email" name="email" placeholder="email" className="form-control"> </input> <textarea name="message" rows="4" placeholder="message" className="form-control"></textarea> </div> <button type="submit" className="btn-warning btn-sm submit-btn col-12 my-4 mx-auto">Submit Here</button> </form> <div className="contact-address row"> <div className="col-6 col-md-6 contact-info"> ADDRESS: <br></br> HONEY & COMB SALON <br></br> 1919 MT DIABLO BLVD <br></br> WALNUT CREEK, CA 94596 <br></br> <br></br> <br></br></div> <div className="col-6 col-md-6 contact-info"> PHONE: <br></br> 925-393-5383 <br></br> <br></br> EMAIL: <br></br> INFO@HONEYANDCOMBSALON.COM <br></br> </div> </div> </div> </p> </div> </div> </div> ) }
31.123288
137
0.56294
a82a7c14f8e1eb04332549c9d450cb398fefdda9
1,167
js
JavaScript
FreeAccess/node_modules/pngjs/lib/packer-async.js
FontanyLegall-Brandon/FreeAccess
0d79ab6315eecfadc623f9a09d009d28afff9e02
[ "MIT" ]
null
null
null
FreeAccess/node_modules/pngjs/lib/packer-async.js
FontanyLegall-Brandon/FreeAccess
0d79ab6315eecfadc623f9a09d009d28afff9e02
[ "MIT" ]
null
null
null
FreeAccess/node_modules/pngjs/lib/packer-async.js
FontanyLegall-Brandon/FreeAccess
0d79ab6315eecfadc623f9a09d009d28afff9e02
[ "MIT" ]
1
2019-07-08T07:35:15.000Z
2019-07-08T07:35:15.000Z
'use strict'; var util = require('util'); var Stream = require('stream'); var constants = require('./constants'); var Packer = require('./packer'); var PackerAsync = module.exports = function(opt) { Stream.call(this); var options = opt || {}; this._packer = new Packer(options); this._deflate = this._packer.createDeflate(); this.readable = true; }; util.inherits(PackerAsync, Stream); PackerAsync.prototype.pack = function(data, width, height, gamma) { // Signature this.emit('data', new Buffer(constants.PNG_SIGNATURE)); this.emit('data', this._packer.packIHDR(width, height)); if (gamma) { this.emit('data', this._packer.packGAMA(gamma)); } var filteredData = this._packer.filterData(data, width, height); // compress it this._deflate.on('error', this.emit.bind(this, 'error')); this._deflate.on('data', function(compressedData) { this.emit('data', this._packer.packIDAT(compressedData)); }.bind(this)); this._deflate.on('end', function() { this.emit('data', this._packer.packIEND()); this.emit('end'); }.bind(this)); this._deflate.end(filteredData); };
25.369565
68
0.648672
a82acec3ea380a422bb9c5467b88a201feab7b03
1,595
js
JavaScript
src/pages/oj/views/index.js
Sejong-Creative-Semester2021/OJ-FE
336cbb603d4d98c7a35d3b8361c4c0223d1c149f
[ "MIT" ]
null
null
null
src/pages/oj/views/index.js
Sejong-Creative-Semester2021/OJ-FE
336cbb603d4d98c7a35d3b8361c4c0223d1c149f
[ "MIT" ]
null
null
null
src/pages/oj/views/index.js
Sejong-Creative-Semester2021/OJ-FE
336cbb603d4d98c7a35d3b8361c4c0223d1c149f
[ "MIT" ]
null
null
null
import ProblemList from './problem/ProblemList.vue' import Logout from './user/Logout.vue' import UserHome from './user/UserHome.vue' import About from './help/About.vue' import FAQ from './help/FAQ.vue' import NotFound from './general/404.vue' import Home from './general/Home.vue' import Announcements from './general/Announcements.vue' import AIContest from './aicontest/AIContest.vue' import AIContestList from './aicontest/AIContestList.vue' // Grouping Components in the Same Chunk const SubmissionList = () => import(/* webpackChunkName: "submission" */ '@oj/views/submission/SubmissionList.vue') const SubmissionDetails = () => import(/* webpackChunkName: "submission" */ '@oj/views/submission/SubmissionDetails.vue') const ACMRank = () => import(/* webpackChunkName: "userRank" */ '@oj/views/rank/ACMRank.vue') const OIRank = () => import(/* webpackChunkName: "userRank" */ '@oj/views/rank/OIRank.vue') const ApplyResetPassword = () => import(/* webpackChunkName: "password" */ '@oj/views/user/ApplyResetPassword.vue') const ResetPassword = () => import(/* webpackChunkName: "password" */ '@oj/views/user/ResetPassword.vue') const Problem = () => import(/* webpackChunkName: "Problem" */ '@oj/views/problem/Problem.vue') export { Home, NotFound, Announcements, Logout, UserHome, About, FAQ, ProblemList, Problem, ACMRank, OIRank, SubmissionList, SubmissionDetails, ApplyResetPassword, ResetPassword, AIContestList, AIContest } /* 组件导出分为两类, 一类常用的直接导出,另一类诸如Login, Logout等用懒加载,懒加载不在此处导出 * 在对应的route内加载 * 见https://router.vuejs.org/en/advanced/lazy-loading.html */
43.108108
121
0.737304
a82b527ad5efd15f861f9743fd291eb4873f4c2e
2,171
js
JavaScript
frontend/src/components/CommunityPage.js
MITMapps/control
a4d1fe93dd584a6c4460460ca07e9f7d911c004f
[ "MIT" ]
null
null
null
frontend/src/components/CommunityPage.js
MITMapps/control
a4d1fe93dd584a6c4460460ca07e9f7d911c004f
[ "MIT" ]
null
null
null
frontend/src/components/CommunityPage.js
MITMapps/control
a4d1fe93dd584a6c4460460ca07e9f7d911c004f
[ "MIT" ]
null
null
null
import React, {useEffect, useState} from "react"; import {search_mitmapps} from "../lib/community_apps"; import ClickableApplication from "./ClickableApplication"; import {getInstalledApps} from "../lib/installed_apps"; import {Alert, Box, Button, CircularProgress, Divider, LinearProgress, Paper, Stack, TextField} from "@mui/material"; import SearchIcon from '@mui/icons-material/Search'; export default function CommunityPage({onChangeSelected}) { const [search_query, set_search_query] = useState(null); const [search_apps, set_search_apps] = useState(null); const [searching, setSearching] = useState(true); const [error, setError] = useState(null); useEffect(() => { const fetchSearchApps = async () => { if (searching) { const [result, error] = await search_mitmapps(search_query); set_search_apps(result); setError(error) setSearching(false) } } fetchSearchApps(); }, [searching]) return ( <Box maxWidth="sm"> <Stack direction="row"> <TextField id="search" label="search" autoFocus="True" fullWidth placeholder="search by app name" onChange={e => set_search_query(e.target.value)}/> <Button onClick={() => { setSearching(true) }}><SearchIcon/></Button> </Stack> <br/> {searching && <LinearProgress /> } {(!searching && search_apps) && <Box maxWidth="sm"> <Stack spacing={2}> { search_apps.map(({author, name, python}) => ( <ClickableApplication onChangeSelected={onChangeSelected} app_item={{author, python, name}}/> )) } </Stack> </Box> } {error && <Alert severity="info">{error}</Alert> } </Box> ) }
37.431034
117
0.505758
a82b6d4a1ae5bdd9b9f79fd0cfd6816fdcb83a10
237
js
JavaScript
server/db/migrations/20180805044523_messages.js
Ryan-Jung/react-strings
97921c15111f17b386190dd960d2fbb9544a390b
[ "MIT" ]
null
null
null
server/db/migrations/20180805044523_messages.js
Ryan-Jung/react-strings
97921c15111f17b386190dd960d2fbb9544a390b
[ "MIT" ]
null
null
null
server/db/migrations/20180805044523_messages.js
Ryan-Jung/react-strings
97921c15111f17b386190dd960d2fbb9544a390b
[ "MIT" ]
null
null
null
exports.up = knex => knex.schema.createTable('messages', table => { table.increments(); table.string('message').notNullable(); table.timestamp('created_at'); }); exports.down = knex => knex.schema.dropTable('messages');
26.333333
57
0.662447
a82bd1ab486752b33f2f3c25ab107c68952e873d
921
js
JavaScript
app/components/router.js
sayantda/hotel-booking-system
6f80c58daf27d29f3dad98d1ee7a6bb5052f5a13
[ "MIT" ]
null
null
null
app/components/router.js
sayantda/hotel-booking-system
6f80c58daf27d29f3dad98d1ee7a6bb5052f5a13
[ "MIT" ]
1
2021-05-10T09:28:20.000Z
2021-05-10T09:28:20.000Z
app/components/router.js
sayantda/hotel-booking-system
6f80c58daf27d29f3dad98d1ee7a6bb5052f5a13
[ "MIT" ]
null
null
null
'use strict' const express = require('express') const config = require('../../config') const jsonld = require('./factory') /** * This is the abstract router, diverts to specific route implementations based on url * @param dbc * @returns {Router|router} */ module.exports = dbc => { let router = express.Router() function _getType (baseUrl) { switch (baseUrl) { case config.ns + '/users': return 'User' case config.ns + '/rooms': return 'Room' case config.ns + '/bookings': return 'Booking' default: return 'Nothing' } } router.get('/', (req, res, next) => { function send (data) { if (data) { res.send(jsonld.createCollection( req.originalUrl, _getType(req.baseUrl), data )) next() } } dbc.all().then((data) => { send(data) }) }) return router }
19.1875
86
0.549403
a82cc60d97688ce30b1cf35a586597b007be4f23
4,812
js
JavaScript
src/__tests__/validateactionrevelation.test.js
aarong/feedme-util
dbff14e4cf8104a7a1a6072d6a165022b371785b
[ "MIT" ]
null
null
null
src/__tests__/validateactionrevelation.test.js
aarong/feedme-util
dbff14e4cf8104a7a1a6072d6a165022b371785b
[ "MIT" ]
8
2019-12-28T16:34:51.000Z
2021-09-06T17:16:26.000Z
src/__tests__/validateactionrevelation.test.js
aarong/feedme-util
dbff14e4cf8104a7a1a6072d6a165022b371785b
[ "MIT" ]
null
null
null
import validateActionRevelation from "../validateactionrevelation"; describe("The validateActionRevelation.check() function", () => { it("should throw on invalid type", () => { expect(() => { validateActionRevelation.check(123); }).toThrow( new Error("INVALID_ARGUMENT: Not an object or invalid MessageType.") ); }); it("should throw on invalid MessageType", () => { expect(() => { validateActionRevelation.check({ MessageType: "junk" }); }).toThrow( new Error("INVALID_ARGUMENT: Not an object or invalid MessageType.") ); }); it("should throw on invalid checkJsonExpressible", () => { expect(() => { validateActionRevelation.check({ MessageType: "ActionRevelation" }, 123); }).toThrow( new Error("INVALID_ARGUMENT: Invalid checkJsonExpressible argument.") ); }); it("should throw on schema violation", () => { // Throw on non-object expect(() => { validateActionRevelation.check({ MessageType: "ActionRevelation" }, true); }).toThrow(new Error("INVALID_MESSAGE: Schema validation failed.")); }); describe("if not checking JSON-expressibility", () => { it("should return success if JSON-expressible", () => { expect( validateActionRevelation.check( { MessageType: "ActionRevelation", ActionName: "some_action", ActionData: { action: "data" }, FeedName: "some_feed", FeedArgs: { feed: "arg" }, FeedDeltas: [ { Operation: "Set", Path: [], Value: { some: "thing" } } ], FeedMd5: "123456789012345678901234" }, false ) ).toBe(undefined); }); it("should return success if action data not JSON-expressible", () => { expect( validateActionRevelation.check( { MessageType: "ActionRevelation", ActionName: "some_action", ActionData: { action: undefined }, FeedName: "some_feed", FeedArgs: { feed: "arg" }, FeedDeltas: [ { Operation: "Set", Path: [], Value: { some: "thing" } } ], FeedMd5: "123456789012345678901234" }, false ) ).toBe(undefined); }); it("should return success if delta operation value is not JSON-expressible", () => { expect( validateActionRevelation.check( { MessageType: "ActionRevelation", ActionName: "some_action", ActionData: { action: "data" }, FeedName: "some_feed", FeedArgs: { feed: "arg" }, FeedDeltas: [ { Operation: "Set", Path: [], Value: { some: undefined } } ], FeedMd5: "123456789012345678901234" }, false ) ).toBe(undefined); }); }); describe("if checking JSON-expressibility", () => { it("should return success if JSON-expressible", () => { expect( validateActionRevelation.check( { MessageType: "ActionRevelation", ActionName: "some_action", ActionData: { action: "data" }, FeedName: "some_feed", FeedArgs: { feed: "arg" }, FeedDeltas: [ { Operation: "Set", Path: [], Value: { some: "thing" } } ], FeedMd5: "123456789012345678901234" }, true ) ).toBe(undefined); }); it("should throw if action data not JSON-expressible", () => { expect(() => { validateActionRevelation.check( { MessageType: "ActionRevelation", ActionName: "some_action", ActionData: { action: undefined }, FeedName: "some_feed", FeedArgs: { feed: "arg" }, FeedDeltas: [ { Operation: "Set", Path: [], Value: { some: "thing" } } ], FeedMd5: "123456789012345678901234" }, true ); }).toThrow( new Error("INVALID_MESSAGE: Action data is not JSON-expressible.") ); }); it("should throw if delta operation value is not JSON-expressible", () => { expect(() => { validateActionRevelation.check( { MessageType: "ActionRevelation", ActionName: "some_action", ActionData: { action: "data" }, FeedName: "some_feed", FeedArgs: { feed: "arg" }, FeedDeltas: [ { Operation: "Set", Path: [], Value: { some: undefined } } ], FeedMd5: "123456789012345678901234" }, true ); }).toThrow(new Error("INVALID_MESSAGE: Invalid delta.")); }); }); });
31.045161
88
0.521613
a82cd5f438c7cff9d35f88f3ba0b6ad0db0f781b
9,048
js
JavaScript
node_modules/angular-material/modules/closure/menuBar/menuBar.min.js
RiickOliveira/NovoFrontAppPorteiro
86cc4e2bf234a73554835596df0f3acae1d6c13b
[ "MIT" ]
null
null
null
node_modules/angular-material/modules/closure/menuBar/menuBar.min.js
RiickOliveira/NovoFrontAppPorteiro
86cc4e2bf234a73554835596df0f3acae1d6c13b
[ "MIT" ]
19
2020-04-30T11:26:37.000Z
2022-03-02T07:06:54.000Z
node_modules/angular-material/modules/closure/menuBar/menuBar.min.js
RiickOliveira/NovoFrontAppPorteiro
86cc4e2bf234a73554835596df0f3acae1d6c13b
[ "MIT" ]
2
2015-12-17T18:45:20.000Z
2018-02-01T21:05:13.000Z
/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.1.9-master-41c9d00 */ function MenuBarController(e,n,t,o,r,i,a,l){this.$element=t,this.$attrs=o,this.$mdConstant=r,this.$mdUtil=a,this.$document=i,this.$scope=e,this.$rootScope=n,this.$timeout=l;var u=this;angular.forEach(BOUND_MENU_METHODS,function(e){u[e]=angular.bind(u,u[e])})}function MenuBarDirective(e,n){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(t,o){return o.ariaRole||t[0].setAttribute("role","menubar"),angular.forEach(t[0].children,function(n){if("MD-MENU"==n.nodeName){n.hasAttribute("md-position-mode")||(n.setAttribute("md-position-mode","left bottom"),n.querySelector("button, a, md-button").setAttribute("role","menuitem"));var t=e.nodesToArray(n.querySelectorAll("md-menu-content"));angular.forEach(t,function(e){e.classList.add("md-menu-bar-menu"),e.classList.add("md-dense"),e.hasAttribute("width")||e.setAttribute("width",5)})}}),t.find("md-menu-item").addClass("md-in-menu-bar"),function(e,t,o,r){t.addClass("_md"),n(e,t),r.init()}}}}function MenuDividerDirective(){return{restrict:"E",compile:function(e,n){n.role||e[0].setAttribute("role","separator")}}}function MenuItemController(e,n,t){this.$element=n,this.$attrs=t,this.$scope=e}function MenuItemDirective(e,n,t){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:n.BEFORE_NG_ARIA,compile:function(n,o){function r(e,t,o){o=o||n,o instanceof angular.element&&(o=o[0]),o.hasAttribute(e)||o.setAttribute(e,t)}function i(t){var o=e.prefixer(t);angular.forEach(o,function(e){if(n[0].hasAttribute(e)){var t=n[0].getAttribute(e);s[0].setAttribute(e,t),n[0].removeAttribute(e)}})}var a=o.type,l="md-in-menu-bar";if("checkbox"!=a&&"radio"!=a||!n.hasClass(l))r("role","menuitem",n[0].querySelector("md-button, button, a"));else{var u=n[0].textContent,s=angular.element('<md-button type="button"></md-button>'),c='<md-icon md-svg-src="'+t.mdChecked+'"></md-icon>';s.html(u),s.attr("tabindex","0"),n.html(""),n.append(angular.element(c)),n.append(s),n.addClass("md-indent").removeClass(l),r("role","checkbox"==a?"menuitemcheckbox":"menuitemradio",s),i("ng-disabled")}return function(e,n,t,o){var r=o[0],i=o[1];r.init(i)}}}}goog.provide("ngmaterial.components.menuBar"),goog.require("ngmaterial.components.icon"),goog.require("ngmaterial.components.menu"),goog.require("ngmaterial.core"),angular.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),MenuBarController.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],angular.module("material.components.menuBar").controller("MenuBarController",MenuBarController);var BOUND_MENU_METHODS=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];MenuBarController.prototype.init=function(){var e=this.$element,n=this.$mdUtil,t=this.$scope,o=this,r=[];e.on("keydown",this.handleKeyDown),this.parentToolbar=n.getClosest(e,"MD-TOOLBAR"),r.push(this.$rootScope.$on("$mdMenuOpen",function(n,t){o.getMenus().indexOf(t[0])!=-1&&(e[0].classList.add("md-open"),t[0].classList.add("md-open"),o.currentlyOpenMenu=t.controller("mdMenu"),o.currentlyOpenMenu.registerContainerProxy(o.handleKeyDown),o.enableOpenOnHover())})),r.push(this.$rootScope.$on("$mdMenuClose",function(t,r,i){var a=o.getMenus();if(a.indexOf(r[0])!=-1&&(e[0].classList.remove("md-open"),r[0].classList.remove("md-open")),e[0].contains(r[0])){for(var l=r[0];l&&a.indexOf(l)==-1;)l=n.getClosest(l,"MD-MENU",!0);l&&(i.skipFocus||l.querySelector("button:not([disabled])").focus(),o.currentlyOpenMenu=void 0,o.disableOpenOnHover(),o.setKeyboardMode(!0))}})),t.$on("$destroy",function(){for(o.disableOpenOnHover();r.length;)r.shift()()}),this.setKeyboardMode(!0)},MenuBarController.prototype.setKeyboardMode=function(e){e?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},MenuBarController.prototype.enableOpenOnHover=function(){if(!this.openOnHoverEnabled){var e=this;e.openOnHoverEnabled=!0,e.parentToolbar&&(e.parentToolbar.classList.add("md-has-open-menu"),e.$mdUtil.nextTick(function(){angular.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),angular.element(e.getMenus()).on("mouseenter",e.handleMenuHover)}},MenuBarController.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(e)},MenuBarController.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),angular.element(this.parentToolbar).off("click",this.handleParentClick)),angular.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},MenuBarController.prototype.scheduleOpenHoveredMenu=function(e){var n=angular.element(e.currentTarget),t=n.controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(t)},MenuBarController.prototype.scheduleOpenMenu=function(e){var n=this,t=this.$timeout;e!=n.currentlyOpenMenu&&(t.cancel(n.pendingMenuOpen),n.pendingMenuOpen=t(function(){n.pendingMenuOpen=void 0,n.currentlyOpenMenu&&n.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()},200,!1))},MenuBarController.prototype.handleKeyDown=function(e){var n=this.$mdConstant.KEY_CODE,t=this.currentlyOpenMenu,o=t&&t.isOpen;this.setKeyboardMode(!0);var r,i,a;switch(e.keyCode){case n.DOWN_ARROW:t?t.focusMenuContainer():this.openFocusedMenu(),r=!0;break;case n.UP_ARROW:t&&t.close(),r=!0;break;case n.LEFT_ARROW:i=this.focusMenu(-1),o&&(a=angular.element(i).controller("mdMenu"),this.scheduleOpenMenu(a)),r=!0;break;case n.RIGHT_ARROW:i=this.focusMenu(1),o&&(a=angular.element(i).controller("mdMenu"),this.scheduleOpenMenu(a)),r=!0}r&&(e&&e.preventDefault&&e.preventDefault(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation())},MenuBarController.prototype.focusMenu=function(e){var n=this.getMenus(),t=this.getFocusedMenuIndex();t==-1&&(t=this.getOpenMenuIndex());var o=!1;if(t==-1?(t=0,o=!0):(e<0&&t>0||e>0&&t<n.length-e)&&(t+=e,o=!0),o)return n[t].querySelector("button").focus(),n[t]},MenuBarController.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&&angular.element(e).controller("mdMenu").open()},MenuBarController.prototype.getMenus=function(){var e=this.$element;return this.$mdUtil.nodesToArray(e[0].children).filter(function(e){return"MD-MENU"==e.nodeName})},MenuBarController.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},MenuBarController.prototype.getFocusedMenuIndex=function(){var e=this.$mdUtil,n=e.getClosest(this.$document[0].activeElement,"MD-MENU");if(!n)return-1;var t=this.getMenus().indexOf(n);return t},MenuBarController.prototype.getOpenMenuIndex=function(){for(var e=this.getMenus(),n=0;n<e.length;++n)if(e[n].classList.contains("md-open"))return n;return-1},MenuBarController.prototype.handleParentClick=function(e){var n=this.querySelector("md-menu.md-open");n&&!n.contains(e.target)&&angular.element(n).controller("mdMenu").close(!0,{closeAll:!0})},MenuBarDirective.$inject=["$mdUtil","$mdTheming"],angular.module("material.components.menuBar").directive("mdMenuBar",MenuBarDirective),angular.module("material.components.menuBar").directive("mdMenuDivider",MenuDividerDirective),MenuItemController.$inject=["$scope","$element","$attrs"],angular.module("material.components.menuBar").controller("MenuItemController",MenuItemController),MenuItemController.prototype.init=function(e){var n=this.$element,t=this.$attrs;this.ngModel=e,"checkbox"!=t.type&&"radio"!=t.type||(this.mode=t.type,this.iconEl=n[0].children[0],this.buttonEl=n[0].children[1],e&&this.initClickListeners())},MenuItemController.prototype.clearNgAria=function(){var e=this.$element[0],n=["role","tabindex","aria-invalid","aria-checked"];angular.forEach(n,function(n){e.removeAttribute(n)})},MenuItemController.prototype.initClickListeners=function(){function e(){if("radio"==a){var e=i.ngValue?r.$eval(i.ngValue):i.value;return o.$modelValue==e}return o.$modelValue}function n(e){e?u.off("click",s):u.on("click",s)}var t=this,o=this.ngModel,r=this.$scope,i=this.$attrs,a=(this.$element,this.mode);this.handleClick=angular.bind(this,this.handleClick);var l=this.iconEl,u=angular.element(this.buttonEl),s=this.handleClick;i.$observe("disabled",n),n(i.disabled),o.$render=function(){t.clearNgAria(),e()?(l.style.display="",u.attr("aria-checked","true")):(l.style.display="none",u.attr("aria-checked","false"))},r.$$postDigest(o.$render)},MenuItemController.prototype.handleClick=function(e){var n,t=this.mode,o=this.ngModel,r=this.$attrs;"checkbox"==t?n=!o.$modelValue:"radio"==t&&(n=r.ngValue?this.$scope.$eval(r.ngValue):r.value),o.$setViewValue(n),o.$render()},MenuItemDirective.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],angular.module("material.components.menuBar").directive("mdMenuItem",MenuItemDirective),ngmaterial.components.menuBar=angular.module("material.components.menuBar");
1,292.571429
8,931
0.758068
a82ded8677e0423933fae385a8d46e6815ed97e8
7,766
js
JavaScript
App/Modules/auth.js
AliFrank608-TMW/FanClubapp
ba183e83fd845e69d7a97592d42401b23f97e983
[ "MIT" ]
null
null
null
App/Modules/auth.js
AliFrank608-TMW/FanClubapp
ba183e83fd845e69d7a97592d42401b23f97e983
[ "MIT" ]
null
null
null
App/Modules/auth.js
AliFrank608-TMW/FanClubapp
ba183e83fd845e69d7a97592d42401b23f97e983
[ "MIT" ]
null
null
null
import * as api from '../API/auth' import * as meApi from '../API/me' import * as storage from '../Utils/storage' import log from '../Utils/log' import {Alert, Platform} from 'react-native' export const UPDATE_USER_BASIC_INFO = 'auth/UPDATE_USER_BASIC_INFO' export const UPDATE_ACCESS_TOKEN = 'auth/UPDATE_ACCESS_TOKEN' export const UPDATE_MY_FOLLOWS = 'auth/UPDATE_MY_FOLLOWS' const USER_ID_KEY = 'auth/user_id' const TOKEN_KEY = 'auth/token' const initialState = { user_id: null, token: null, follows: null, } // 新規登録 export function siginUp(params) { return async (dispatch, getState) => { const result = await api.siginUp(params) return result } } // 端末に保存したtokenの取得 (cookieのload) export function loadFromStorage() { return async (dispatch, getState) => { const user_id = await storage.getItem(USER_ID_KEY) const token = await storage.getItem(TOKEN_KEY) if (user_id && token) { await dispatch({ type: UPDATE_USER_BASIC_INFO, user_id: user_id.toString(), token: token, }) } } } // uidとtokenの更新 export function updateUserBasicInfo(userId, token) { return async function (dispatch, getState) { if (!userId) throw new Error('userId is null') if (!token) throw new Error('token is null') let uid = userId if (typeof uid === 'number') { uid = uid.toString() } await Promise.all([ storage.setItem(USER_ID_KEY, uid), storage.setItem(TOKEN_KEY, token), dispatch({type: UPDATE_USER_BASIC_INFO, user_id: uid, token: token}) ]) } } // ニックネーム変更 export function changeNickname(nickname) { return async function (dispatch, getState) { const {token} = getState().auth const result = await api.requestChangeNickname(token, nickname) return result } } // メアド変更 export function changeEmailAddress(email) { return async function (dispatch, getState) { const {token} = getState().auth const result = await api.requestChangeEmail(token, email) return result } } // パスワード変更 export function changePassword(password) { return async function (dispatch, getState) { const {token} = getState().auth const result = await api.requestChangePassword(token, password) return result } } // ユーザー作成 (メール認証はskipする) // => Promise.allで呼び出すのでresult返してそれでUI変更などはできない export function createUser(name = '', email = '') { return async (dispatch, getState) => { const {token} = getState().auth if (token) return // 既にアカウント作成済みなのでskip let params = {} if (name) { params['name'] = name } if (email) { params['email'] = email } try { // アカウント作成とreduxの更新 const result = await (Platform.OS === 'ios' ? api.createUserIos(params) : api.createUserAndroid(params)) await dispatch(updateUserBasicInfo(result.user_id, result.access_token)) if (Platform.OS === 'android') { const pushToken = await storage.getItem('push_notification/pushToken') const oneSignalUserId = await storage.getItem('push_notification/oneSignalUserId') await meApi.updatePushToken(result.access_token, pushToken, oneSignalUserId) } } catch (e) { log.error(e) // 失敗の通達 Alert.alert('エラー', '登録に失敗しました') } } } // 自分のフォロー情報をストアに格納 export function setMyFollows(follows) { return async function (dispatch, getState) { dispatch({type: UPDATE_MY_FOLLOWS, follows}) } } // フォロー export function follow(project_id) { return async function (dispatch, getState) { const {token} = getState().auth const result = await api.follow(token, project_id) return result } } // フォロー解除 export function unfollow(project_id) { return async function (dispatch, getState) { const {token} = getState().auth const result = await api.unfollow(token, project_id) return result } } export function loginWithPassword(params) { return async function (dispatch, getState) { const result = await api.loginWithPassword(params) if (result.user_id !== null || result.access_token !== null) { await dispatch(updateUserBasicInfo(result.user_id, (result.access_token || 'empty'))) } return result } } export function deleteUser() { return async (dispatch, getState) => { await storage.removeItem(USER_ID_KEY) await storage.removeItem(TOKEN_KEY) await storage.removeItem('tutorialShowed') await storage.removeItem('phoneNumber') await dispatch({type: UPDATE_USER_BASIC_INFO, user_id: null, token: null}) } } export function requestAuth(params) { return async function (dispatch, getState) { const {token} = getState().auth const result = await api.requestAuth(token, params) return result } } export function verifyAuth(params) { return async function (dispatch, getState) { const auth = getState().auth const {token, user_id} = auth const result = await api.verifyAuth(token, {...params, uid: user_id}) if (result.status === 200) { await dispatch(updateUserBasicInfo(result.user.id, result.token)) } return result } } export function appLoginRequest(params) { return async function (dispatch) { const result = await api.appLoginRequest({ ...params, platform: Platform.OS }) if (result.status === 200) { await dispatch(updateUserBasicInfo(result.user_id, result.access_token)) } return result } } export function appLoginVerify(params) { return async function (dispatch, getState) { const {token} = getState().auth const result = await api.appLoginVerify(token, params) return result } } export function deactivateUser() { return async (dispatch, getState) => { const {token} = getState().auth await api.deactivateUser(token, {}) await storage.removeItem(USER_ID_KEY) await storage.removeItem(TOKEN_KEY) await storage.removeItem('tutorialShowed') await storage.removeItem('phoneNumber') return dispatch({type: UPDATE_USER_BASIC_INFO, user_id: null, token: null}) } } export function saveUserSnsInfo(user_id, service, name, service_user_id, access_token) { return async (dispatch, getState) => { const result = await api.saveUserSnsInfo({user_id, service, name, service_user_id, access_token}) return result } } export function loginBySns(service, service_user_id, email, platform) { return async (dispatch, getState) => { const result = await api.loginBySns({service, service_user_id, email, platform}) if (result.status === 200) { await dispatch(updateUserBasicInfo(result.user.id, result.token)) } return result } } export default function auth(state = initialState, action) { switch (action.type) { case UPDATE_USER_BASIC_INFO: { return { ...state, user_id: action.user_id, token: action.token, } } case UPDATE_ACCESS_TOKEN: { return { ...state, token: action.access_token, } } case UPDATE_MY_FOLLOWS: { return { ...state, follows: action.follows, } } } return state }
30.100775
116
0.618208
a82ec69f2b56b751fbd4402d4e3aa4f6070dadbe
131
js
JavaScript
test/routes/master/garment-product/unauthorized.js
AndreaZain/dl-core-webapi
0165015f03a40cdf9dfeecbaa3abf171f00adb5e
[ "MIT" ]
null
null
null
test/routes/master/garment-product/unauthorized.js
AndreaZain/dl-core-webapi
0165015f03a40cdf9dfeecbaa3abf171f00adb5e
[ "MIT" ]
null
null
null
test/routes/master/garment-product/unauthorized.js
AndreaZain/dl-core-webapi
0165015f03a40cdf9dfeecbaa3abf171f00adb5e
[ "MIT" ]
null
null
null
var unauthorizedTest = require("../../unauthorized-test-factory"); unauthorizedTest({ uri: "/master/garment-products" });
26.2
67
0.679389
a82fdbc092ff91ad762338c40564ea126dd81e65
2,436
js
JavaScript
shared/start/login/forms-container/forms-components.js
evgmsk/wiz-battles-ssr
5a4129b509504d606aea367bb1ed25ee520659d4
[ "MIT" ]
null
null
null
shared/start/login/forms-container/forms-components.js
evgmsk/wiz-battles-ssr
5a4129b509504d606aea367bb1ed25ee520659d4
[ "MIT" ]
10
2019-11-25T12:49:36.000Z
2022-02-26T10:29:19.000Z
shared/start/login/forms-container/forms-components.js
evgmsk/wiz-battles-ssr
5a4129b509504d606aea367bb1ed25ee520659d4
[ "MIT" ]
null
null
null
import React from 'react'; import Register from '../reg-form/reg-form'; import Login from '../login-form/login-form'; import ResetPassword from '../reset-password-form/reset-password-form'; import WithTransition, {WithTransitionWrapper} from '../../../common/transition-wrapper/with-react-transition'; import T from '../../../translator'; export class FormControls extends React.Component { shouldComponentUpdate(props) { const {action} = this.props; return action !== props.action } render() { const {onClick, action} = this.props; const logBtnClassName = "btn btn-outlined" + (action === 'login' ? ' bg-active' : ''); const regBtnClassName = "btn btn-outlined" + (action === 'signup' ? ' bg-active' : ''); return ( <div className="forms-controls"> <button className={logBtnClassName} onClick={() => onClick('login')}>Login</button> <button className={regBtnClassName} onClick={() => onClick('signup')}>Signup</button> </div> ) } } export const Message = props => { const {resMsg, className, ...restProps} = props; return ( <div className={className} {...restProps}> {resMsg} </div> ) }; export class FormsContainer extends React.Component { shouldComponentUpdate(props) { const {action} = this.props; return props.action !== action; } render() { const {submitRegForm, submitLogForm, submitResetForm, forgotPassword, action} = this.props; const regFormProps = { submitHandler: submitRegForm, className:"reg-form" }; const resetFromProps = { submitHandler: submitResetForm, className:"reset-form-wrapper" }; const logFormProps = { submitHandler: submitLogForm, className:"log-form", forgotPassword }; const ResetForm = <WithTransition jsx Component={ResetPassword} inProp={action === 'reset'} {...resetFromProps} />; const RegForm = <WithTransition jsx Component={Register} inProp={action === 'signup'} {...regFormProps} />; const LoginFrom = <WithTransition jsx Component={Login} inProp={action === 'login'} {...logFormProps}/>; return ( <React.Fragment> {action === 'reset' && ResetForm} {action === 'signup' && RegForm} {action === 'login' && LoginFrom} </React.Fragment> ) } }
40.6
123
0.610016
a834689b16f5505f5be0e12a56e52cc045bcf447
652
js
JavaScript
src/api/stats/avax/getSnob3PoolPrice.js
dalton-cole/beefy-api
99abde159ca981f08937fbc4d97fc92bae305474
[ "MIT" ]
null
null
null
src/api/stats/avax/getSnob3PoolPrice.js
dalton-cole/beefy-api
99abde159ca981f08937fbc4d97fc92bae305474
[ "MIT" ]
1
2022-03-30T21:26:33.000Z
2022-03-30T21:26:33.000Z
src/api/stats/avax/getSnob3PoolPrice.js
dalton-cole/beefy-api
99abde159ca981f08937fbc4d97fc92bae305474
[ "MIT" ]
null
null
null
const BigNumber = require('bignumber.js'); const { avaxWeb3: web3 } = require('../../../utils/web3'); const LPAbi = require('../../../abis/Snob3LP.json'); const { getContractWithProvider } = require('../../../utils/contractHelper'); const lp = '0x6B41E5c07F2d382B921DE5C34ce8E2057d84C042'; const DECIMALS = '1e18'; const getSnob3PoolPrice = async () => { const lpContract = getContractWithProvider(LPAbi, lp, web3); let tokenPrice = new BigNumber(await lpContract.methods.getVirtualPrice().call()); tokenPrice = Number(tokenPrice.dividedBy(DECIMALS).toFixed(6)); return { 'snob-3pool': tokenPrice }; }; module.exports = getSnob3PoolPrice;
34.315789
84
0.71319
a834b062c439b8c525a7b4c782704776f7374f2d
623
js
JavaScript
routes/auth.js
RaisanJMR/todaystay
d494c7e20ebc8f367e1ea02dda110d57843c4e03
[ "MIT" ]
null
null
null
routes/auth.js
RaisanJMR/todaystay
d494c7e20ebc8f367e1ea02dda110d57843c4e03
[ "MIT" ]
null
null
null
routes/auth.js
RaisanJMR/todaystay
d494c7e20ebc8f367e1ea02dda110d57843c4e03
[ "MIT" ]
null
null
null
import express from 'express' import { register, login, getMe, forgotPassword, resetPassword, updateDetails, updatePassword, logOut } from '../controllers/auth.js' import { protect } from '../middleware/auth.js' const router = express.Router() router.post('/register', register) router.post('/login', login) router.get('/logout', logOut) router.get('/me', protect, getMe) router.put('/updatedetails', protect, updateDetails) router.put('/updatepassword', protect, updatePassword) router.post('/forgotpassword', forgotPassword) router.put('/resetpassword/:resettoken', resetPassword) export default router
24.92
55
0.744783
a83522c82f131e035ea4a9e1994f3c3f77fa3700
1,178
js
JavaScript
solutions/day03.js
Gaiwecoor/aoc2021
03367dcbfdeeae053aba902394fdedf6c904fd5e
[ "MIT" ]
null
null
null
solutions/day03.js
Gaiwecoor/aoc2021
03367dcbfdeeae053aba902394fdedf6c904fd5e
[ "MIT" ]
null
null
null
solutions/day03.js
Gaiwecoor/aoc2021
03367dcbfdeeae053aba902394fdedf6c904fd5e
[ "MIT" ]
null
null
null
function Setup(data) { return data.trim().split("\n").map(e => parseInt(e, 2)); } const bitLen = 12, bits = Array(bitLen).fill().map((e, i) => 2 ** i), bit1 = bits[bitLen - 1], sum = (2 ** bitLen) - 1; function Part1(data) { const counts = Array(bitLen).fill(0); for (let signal of data) { for (let i = 0; i < bitLen; i++) { if (signal & bits[i]) counts[i]++; } } const gamma = parseInt(counts.reverse().map(e => e > data.length / 2 ? 1 : 0).join(""), 2), epsilon = sum - gamma; return gamma * epsilon; } function Part2(data) { let o2 = data; for (let i = bitLen - 1; i >= 0; i--) { if (o2.length == 1) break; let count = o2.reduce((a, c) => a + ((c & bits[i]) ? 1 : 0), 0); let high = (count < o2.length / 2) ? 0 : 1; o2 = o2.filter(e => ((e & bits[i]) && 1) == high); } let co2 = data; for (let i = bitLen - 1; i >= 0; i--) { if (co2.length == 1) break; let count = co2.reduce((a, c) => a + ((c & bits[i]) ? 1 : 0), 0); let high = (count < co2.length / 2) ? 0 : 1; co2 = co2.filter(e => ((e & bits[i]) && 1) != high); } return o2[0] * co2[0]; } module.exports = { Part1, Part2, Setup };
26.772727
93
0.505093
a83546562ba26ac88ce525e97652992586cbd8a4
26,288
js
JavaScript
src/pages/components/overlays/grouped-lists.js
elvinsolano/astro-design-system
ce6c758ed252f366b3badb1deaf7419aad3cba40
[ "MIT" ]
null
null
null
src/pages/components/overlays/grouped-lists.js
elvinsolano/astro-design-system
ce6c758ed252f366b3badb1deaf7419aad3cba40
[ "MIT" ]
null
null
null
src/pages/components/overlays/grouped-lists.js
elvinsolano/astro-design-system
ce6c758ed252f366b3badb1deaf7419aad3cba40
[ "MIT" ]
null
null
null
import React, { Component } from "react"; import Scrollspy from 'react-scrollspy'; import {Link} from 'gatsby'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import 'lazysizes'; import Layout from "../../../components/layout"; import SEO from "../../../components/seo"; import Heading from '../../../components/atoms/heading'; import Download from "../../../components/download"; import Copy from "../../../components/copy"; import uiexamplesGroupedListOverlay1 from "../../../assets/components/overlays/Grouped List Overlay/UI Examples/Grouped List Overlay 01.png"; import detailsGroupedListOverlay1 from "../../../assets/components/overlays/Grouped List Overlay/Details/Grouped List Overlay Details.png"; import paddingGroupedListOverlay1 from "../../../assets/components/overlays/Grouped List Overlay/Padding/Grouped List Overlay Padding.png"; import guidance1 from "../../../assets/components/overlays/Grouped List Overlay/Guidance/01 Guidance.png"; import guidance2 from "../../../assets/components/overlays/Grouped List Overlay/Guidance/02 Guidance.png"; import guidance3 from "../../../assets/components/overlays/Grouped List Overlay/Guidance/03 Guidance.png"; import guidance4 from "../../../assets/components/overlays/Grouped List Overlay/Guidance/04 Guidance.png"; class ComponentsOverlaysGroupedListPage extends Component { render() { return ( <Layout> <SEO title="Astro" keywords={[``]} /> <aside className="fixed overflow-y-auto as-nav bg-white top-auto h-full border-r border-grey-500 border-solid"> <div className="as-nav-logo"> <svg className="fill-current" width="103" height="20" viewBox="0 0 165 32" xmlns="http://www.w3.org/2000/svg" > <path fill="#000" d="M48.972 0c8.177 0 9.686 6.286 9.741 8.781l0.002 0.142v2.029h-4.897v-2.029c0-2.479-1.551-4.462-4.849-4.462-3.155 0-5.235 1.713-5.235 4.281 0 2.854 2.689 4.067 5.682 5.13l0.669 0.234c4.461 1.533 9.116 3.245 9.116 9.555 0 3.967-2.227 8.339-9.794 8.339-10.451 0-10.982-7.286-11.005-8.953l-0.001-2.18h4.851v2.028c0 2.479 1.6 4.643 6.158 4.643 4.315 0 4.897-2.614 4.897-3.877 0-2.685-2.606-3.847-5.548-4.904l-0.658-0.234c-4.461-1.622-9.26-3.335-9.26-9.781 0-2.433 1.503-8.743 10.132-8.743zM92.8 0v4.525h-7.984v27.475h-4.832v-27.475h-7.984v-4.525h20.8zM154.331 0c9.234 0 10.469 7.209 10.469 16s-1.234 16-10.469 16c-9.083 0-10.293-6.974-10.33-15.569v-0.862c0.037-8.595 1.247-15.569 10.33-15.569zM13.494 0l8.906 32h-4.631l-6.592-24.653-6.546 24.653h-4.632l8.906-32h4.587zM118.304 0c9.053 0 10.47 6.125 10.47 10.925 0.001 3.611-0.946 8.827-5.508 9.394v0l6.334 11.682h-5.169l-7.888-14.662 1.761-0.055c5.12-0.183 5.898-2.228 5.853-6.354-0.040-3.52-0.732-6.399-5.853-6.399v0h-4.886v27.465h-4.618v-31.996zM154.331 4.462c-5.211 0-5.714 4.55-5.714 11.535 0 7.029 0.503 11.536 5.714 11.536 5.258 0 5.851-4.506 5.851-11.536 0-6.985-0.594-11.535-5.851-11.535z"></path> </svg> </div> <nav> <ul className=""> <li><div className="block text-white uppercase text-sm w-full font-semibold bg-grey-300">Cards</div></li> <li><Link to="components/cards/single-item" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Single Item</Link></li> <li><Link to="components/cards/single-item-grouping" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Single item with Grouping</Link></li> <li><Link to="components/cards/list" className="block text-sm text-grey-400 w-full hover:bg-grey-100">List</Link></li> <li><Link to="components/cards/grouped-lists" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Grouped Lists</Link></li> <li><Link to="components/cards/two-column" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Two Column</Link></li> <li><Link to="components/cards/mail" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Mail</Link></li> <li><Link to="components/cards/profile" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Profile</Link></li> <li><Link to="components/cards/information" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Information</Link></li> <li><Link to="components/cards/progress-bar" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Progress Bar</Link></li> <li><Link to="components/cards/highlighted-item-detail" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Highlighted Item &amp; Detail</Link></li> <li><Link to="components/cards/tasks" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Tasks</Link></li> <li><Link to="components/cards/circle-graph" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Circle Graph</Link></li> <li><Link to="components/cards/profile-list" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Profile List</Link></li> <li><Link to="components/cards/sliding-cards" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Swipe Cards</Link></li> </ul> <ul className=""> <li><div className="block text-white uppercase text-sm w-full font-semibold bg-grey-300">Overlay</div></li> <li><Link to="components/overlays/single-item" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Single Item</Link></li> <li><Link to="components/overlays/list" className="block text-sm text-grey-400 w-full hover:bg-grey-100">List</Link></li> <li><Link to="components/overlays/list-icon" className="block text-sm text-grey-400 w-full hover:bg-grey-100">List with Icons</Link></li> <li><Link to="components/overlays/grouped-lists" className="block text-sm text-grey-400 w-full hover:bg-grey-100 active bg-grey-700 font-semibold">Grouped Lists</Link> <Scrollspy items={ ['ui-examples', 'padding', 'details', 'guidance'] } offset={-80} className="block" currentClassName="is-current"> <li><Link to="components/overlays/single-item#ui-examples-anchor" className="block text-sm text-grey-400 w-full hover:bg-grey-100" activeClassName="block text-sm text-grey-400 w-full bg-grey-200 font-semibold hover:bg-grey-100">UI Examples</Link></li> <li><Link to="components/overlays/single-item#padding-anchor" className="block text-sm text-grey-400 w-full hover:bg-grey-100" activeClassName="active-link">Padding</Link></li> <li><Link to="components/overlays/single-item#details-anchor" className="block text-sm text-grey-400 w-full hover:bg-grey-100" activeClassName="active-link">Details</Link></li> <li><Link to="components/overlays/single-item#guidance-anchor" className="block text-sm text-grey-400 w-full hover:bg-grey-100" activeClassName="active-link">Guidance</Link></li> </Scrollspy> </li> <li><Link to="components/overlays/two-columns" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Two Column</Link></li> <li><Link to="components/overlays/progress-bar" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Progress Bar</Link></li> <li><Link to="components/overlays/highlighted-item-detail" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Highlighted Item &amp; Detail</Link></li> <li><Link to="components/overlays/tasks" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Tasks</Link></li> <li><Link to="components/overlays/profile-list" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Profile List</Link></li> <li><Link to="components/overlays/form" className="block text-sm text-grey-400 w-full hover:bg-grey-100">Form</Link></li> </ul> <ul className=""> <li><div className="block text-white uppercase text-sm w-full bg-grey-300">Popovers</div></li> <li><Link to="components/popovers/external" className="block text-sm text-grey-400 w-full hover:bg-grey-100">External</Link></li> <li><Link to="components/popovers/general" className="block text-sm text-grey-400 w-full hover:bg-grey-100">General</Link></li> </ul> </nav> </aside> <div className="flex flex-col flex-1 mx-auto as-body w-full pb-5.5"> <main className=" pl-16 pr-16 pt-16"> <div className="block md:flex justify-between pb-2 border-b border-greyStatus-200 mb-5"> <Heading level="1" className="as-h1 as-type-medium">Grouped Lists Overlay</Heading> <Download /> </div> <section id="ui-examples" name="ui-examples" className="as-section"> <p className="mb-4 text-greyStatus-600 tracking-wider">Grouped list overlays display information in a clear and simple hierarchical order The information displayed generally has identical structure and repeats. These overlays can contain elements including text, data, badges and links.</p> <p className="mb-2 text-greyStatus-600 tracking-wider as-type-medium text-sm">Use this overlay if:</p> <ul className="mb-16 py-5 px-20 bg-placeholder-200 flex flex-col items-start justify-center "> <li className="flex mb-3"> <div className="as-guidance"> <svg className="fill-current mt-1" width="16" height="16" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path fill="#4ead58" d="M12 28.093l-12-11.517 3.721-3.827 8.208 7.832 16.28-16.581 3.791 3.756z"></path> </svg> </div> <p className="text-greyStatus-600 ml-3">You have multiple lists.</p> </li> <li className="flex mb-3"> <div className="as-guidance"> <svg className="fill-current mt-1" width="16" height="16" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path fill="#4ead58" d="M12 28.093l-12-11.517 3.721-3.827 8.208 7.832 16.28-16.581 3.791 3.756z"></path> </svg> </div> <p className="text-greyStatus-600 ml-3">Your user needs to compare different groups of information.</p> </li> <li className="flex mb-3"> <div className="as-guidance"> <svg className="fill-current mt-1" width="16" height="16" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path fill="#4ead58" d="M12 28.093l-12-11.517 3.721-3.827 8.208 7.832 16.28-16.581 3.791 3.756z"></path> </svg> </div> <p className="text-greyStatus-600 ml-3">The information does not fit in the list card.</p> </li> </ul> <span id="ui-examples-anchor" className="page-anchor"></span> <Heading level="2" className="as-h2 as-type-medium mb-3">UI Examples <Copy id="ui-examples" /> </Heading> <p className="mb-5 text-greyStatus-600 tracking-wider">How a grouped list overlay is expressed as part of the UI.</p> <Tabs> <TabList> <Tab>01</Tab> </TabList> <TabPanel> <div className="mb-12 py-16 px-20 bg-placeholder-300 flex flex-wrap items-start justify-center "> <img data-src={uiexamplesGroupedListOverlay1} className="lazyload " width="335" alt="Overlays Grouped Lists UI Examples" /> </div> </TabPanel> </Tabs> </section> <section id="padding" name="padding" className="as-section"> <span id="padding-anchor" className="page-anchor"></span> <Heading level="2" className="as-h2 as-type-medium mb-3">Padding <Copy id="padding" /> </Heading> <p className="mb-5 text-greyStatus-600 tracking-wider">Padding refers to the space between UI elements. Padding should be used in combination with the responsive layout grid to place elements consistently across a design.</p> <div className="py-16 px-20 bg-placeholder-300 flex flex-wrap items-center justify-center "> <img data-src={paddingGroupedListOverlay1} className="lazyload " width="398" alt="Overlays Grouped Lists Padding" /> </div> </section> <section id="details" name="details" className="as-section"> <span id="details-anchor" className="page-anchor"></span> <Heading level="2" className="as-h2 as-type-medium mb-3">Details <Copy id="padding" /> </Heading> <p className="mb-5 text-greyStatus-600 tracking-wider">Overlay details refer to elements that make up a grouped list overlay.</p> <div className="mb-5 py-16 px-20 bg-placeholder-300 flex flex-wrap items-center justify-center"> <img data-src={detailsGroupedListOverlay1} className="lazyload " width="375" alt="Overlays Grouped Lists Details" /> </div> <div className="mb-6"> <p className="as-type-regular text-sm text-greyStatus-600">1. <span className="as-type-medium">Overlay Header</span> </p> <ol className="ml-3"> <li className="text-sm"> <div className="flex"> <div className=" ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">A required component</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">Header Title can be as long as content requires. The recommended length is 2 lines. If a Header Title is longer, consider redacting it</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className=" ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">Maximum number of subtitles is 4</p> </div> </li> </ol> </div> <div className="mb-6"> <p className="as-type-regular text-sm text-greyStatus-600">2. <span className="as-type-medium">Overlay Navigation</span></p> <ol className="ml-3"> <li className="text-sm"> <div className="flex"> <div className=" ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">X - Use to leave overlay</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">{"<"} - Only use back arrow on a second overlay screen</p> </div> </li> </ol> </div> <div className="mb-6"> <p className="as-type-regular text-sm text-greyStatus-600">3. <span className="as-type-medium">Overlay Body</span></p> <ol className="ml-3"> <li className="text-sm"> <div className="flex"> <div className=" ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">For a Grouped List Overlay, the overlay’s body must contain at least 2 groups of information</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">New grouping is indicated by a <Link to="../elements/dividers" className="inline text-sm text-status-100 hover:text-red-900 underline">divider line</Link>. Groups can be made of Body Title Content or Body Subtitle Content</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">There is no limit to the number of rows</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">Body Title Content and Body Subtitle Content maximum length is two lines. If either exceed that, use an ellipsis</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">If an overlay only contains Body Title Content, there must be an arrow leading to further details</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">Maximum 4 subtitles per list item</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">Body Subtitle Content can include a link</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">Body Subtitle Labels never include a link</p> </div> </li> </ol> </div> <div className="mb-6"> <p className="as-type-regular text-sm text-greyStatus-600">4. <span className="as-type-medium">Badges</span></p> <ol className="ml-3"> <li className="text-sm"> <div className="flex"> <div className=" ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">An optional component</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">If a card contains badges, the maximum is 2</p> </div> </li> </ol> </div> <div className="mb-6"> <p className="as-type-regular text-sm text-greyStatus-600">5. <span className="as-type-medium">Arrow</span></p> <ol className="ml-3"> <li className="text-sm"> <div className="flex"> <div className=" ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">An optional component</p> </div> </li> <li className="text-sm"> <div className="flex"> <div className="ml-3"> <p className="w-3 text-sm">- </p> </div> <p className="text-sm text-greyStatus-600">Used when additional details to the content exist. Can lead to another Overlay, other intent, or out of the app</p> </div> </li> </ol> </div> </section> <section id="guidance" name="guidance" className="as-section mb-16"> <span id="guidance-anchor" className="page-anchor"></span> <Heading level="2" className="as-h2 as-type-medium mb-3">Guidance <Copy id="padding" /> </Heading> <p className="mb-4 text-greyStatus-600 tracking-wider">Below is a list of guidelines for a grouped list overlay to adhere to.</p> <div className="flex flex-wrap -mx-4 mb-12"> <div className="w-grid px-4 mb-8"> <img data-src={guidance1} className="lazyload mb-3" width="290" alt="Logo Guidance 1" /> <div className="flex mb-3"> <div className="as-guidance"> <svg className="fill-current mt-1" width="14" height="14" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path fill="#c52a1a" d="M28.586 0.586l2.828 2.828-12.584 12.586 12.584 12.586-2.828 2.828-12.586-12.584-12.586 12.584-2.828-2.828 12.584-12.586-12.584-12.586 2.828-2.828 12.586 12.584z"></path> </svg> </div> <p className="text-sm text-greyStatus-600 ml-3">Do not add multiple groups without a divider.</p> </div> </div> <div className="w-grid px-4 mb-8"> <img data-src={guidance2} className="lazyload mb-3" width="290" alt="Logo Guidance 2" /> <div className="flex mb-3"> <div className="as-guidance"> <svg className="fill-current mt-1" width="14" height="14" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path fill="#c52a1a" d="M28.586 0.586l2.828 2.828-12.584 12.586 12.584 12.586-2.828 2.828-12.586-12.584-12.586 12.584-2.828-2.828 12.584-12.586-12.584-12.586 2.828-2.828 12.586 12.584z"></path> </svg> </div> <p className="text-sm text-greyStatus-600 ml-3">Do not make the body subtitle label a link.</p> </div> </div> <div className="w-grid px-4 mb-8"> <img data-src={guidance3} className="lazyload mb-3" width="290" alt="Logo Guidance 3" /> <div className="flex mb-3"> <div className="as-guidance"> <svg className="fill-current mt-1" width="14" height="14" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path fill="#c52a1a" d="M28.586 0.586l2.828 2.828-12.584 12.586 12.584 12.586-2.828 2.828-12.586-12.584-12.586 12.584-2.828-2.828 12.584-12.586-12.584-12.586 2.828-2.828 12.586 12.584z"></path> </svg> </div> <p className="text-sm text-greyStatus-600 ml-3">Do not include more than 2 badges.</p> </div> </div> <div className="w-grid px-4 mb-8"> <img data-src={guidance4} className="lazyload mb-3" width="290" alt="Logo Guidance 3" /> <div className="flex mb-3"> <div className="as-guidance"> <svg className="fill-current mt-1" width="14" height="14" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path fill="#c52a1a" d="M28.586 0.586l2.828 2.828-12.584 12.586 12.584 12.586-2.828 2.828-12.586-12.584-12.586 12.584-2.828-2.828 12.584-12.586-12.584-12.586 2.828-2.828 12.586 12.584z"></path> </svg> </div> <p className="text-sm text-greyStatus-600 ml-3">Do not use View More buttons overlays extend to fit all content. More details within a row can be reached through an arrow.</p> </div> </div> </div> </section> </main> </div> </Layout> ); } } export default ComponentsOverlaysGroupedListPage;
66.050251
1,184
0.533019
a83565e4e40d0d13c872c1befbff44f27b47712a
1,010
js
JavaScript
src/styles.js
Pixelcaps/sellics-image-approve-challenge
f43476f7462f07c3f20a4db43f6b7432b13022b9
[ "MIT" ]
null
null
null
src/styles.js
Pixelcaps/sellics-image-approve-challenge
f43476f7462f07c3f20a4db43f6b7432b13022b9
[ "MIT" ]
null
null
null
src/styles.js
Pixelcaps/sellics-image-approve-challenge
f43476f7462f07c3f20a4db43f6b7432b13022b9
[ "MIT" ]
null
null
null
import { styled as styledMaterial } from "@mui/material/styles"; import AppBar from '@mui/material/AppBar'; import Divider from '@mui/material/Divider'; import Typography from '@mui/material/Typography'; export const StyledAppBar = styledMaterial(AppBar)` background-color: #111111; color: #eb8c34; align-items: center `; export const StyledDivider = styledMaterial(Divider)` margin: 25px; `; export const NoOfImages = styledMaterial(Typography)` text-align: left; margin-left: 25px; `; const size = { mobileS: '320px', mobileM: '375px', mobileL: '425px', tablet: '768px', laptop: '1366px', laptopL: '1440px', desktop: '1920px', desktopL: '2560px' } export const device = { mobile: `(min-width: ${size.mobileS}) and (max-width: ${size.mobileL})`, tablet: `(min-width: ${size.tablet}) and (max-width: ${size.laptop})`, laptop: `(min-width: ${size.laptop}) and (max-width: ${size.laptopL})`, desktop: `(min-width: ${size.laptopL})`, };
27.297297
76
0.658416
a835b830eef08b1ba30c8e87d0a36b2f4a90ec6e
887
js
JavaScript
src/after-30-days.js
mhmartin/comparaonline-test
d53f5be1c1c286ddfc69983c3464cb5c37569a9d
[ "MIT" ]
null
null
null
src/after-30-days.js
mhmartin/comparaonline-test
d53f5be1c1c286ddfc69983c3464cb5c37569a9d
[ "MIT" ]
null
null
null
src/after-30-days.js
mhmartin/comparaonline-test
d53f5be1c1c286ddfc69983c3464cb5c37569a9d
[ "MIT" ]
null
null
null
const coTest = require('./coTest'); const CarInsurance = coTest.CarInsurance; const Product = coTest.Product; const productsAtDayZero = [ new Product('Medium Coverage', 10, 20), new Product('Full Coverage', 2, 0), new Product('Low Coverage', 5, 7), new Product('Mega Coverage', 0, 80), new Product('Mega Coverage', -1, 80), new Product('Special Full Coverage', 15, 20), new Product('Special Full Coverage', 10, 49), new Product('Special Full Coverage', 5, 49), new Product('Super Sale', 3, 6), ]; const carInsurance = new CarInsurance(productsAtDayZero); const productPrinter = function (product) { console.log(`${product.name}, ${product.sellIn}, ${product.price}`); }; for (let i = 1; i <= 30; i += 1) { console.log(`-------- day ${i} --------`); console.log('name, sellIn, price'); carInsurance.updatePrices().forEach(productPrinter); console.log(''); }
32.851852
70
0.660654
a835e7fa62f7de838163a88f15b64d33b8940ab0
1,085
js
JavaScript
test/karma.conf.js
ThinkDuan/viewerjs-optimize
abb66b2e4cab15a66ab8d4df48bda8b7d47bda99
[ "MIT" ]
null
null
null
test/karma.conf.js
ThinkDuan/viewerjs-optimize
abb66b2e4cab15a66ab8d4df48bda8b7d47bda99
[ "MIT" ]
null
null
null
test/karma.conf.js
ThinkDuan/viewerjs-optimize
abb66b2e4cab15a66ab8d4df48bda8b7d47bda99
[ "MIT" ]
null
null
null
const puppeteer = require('puppeteer'); const rollupConfig = require('../rollup.config'); process.env.CHROME_BIN = puppeteer.executablePath(); module.exports = (config) => { config.set({ autoWatch: false, basePath: '..', browsers: ['ChromeHeadless'], client: { mocha: { timeout: 10000, }, }, coverageIstanbulReporter: { reports: ['html', 'lcovonly', 'text-summary'], }, files: [ 'src/index.js', 'dist/viewer-optimize.css', 'test/helpers.js', 'test/specs/**/*.spec.js', { pattern: 'docs/images/*', included: false, }, ], frameworks: ['mocha', 'chai'], preprocessors: { 'src/index.js': ['rollup'], 'test/helpers.js': ['rollup'], 'test/specs/**/*.spec.js': ['rollup'], }, reporters: ['mocha', 'coverage-istanbul'], rollupPreprocessor: { plugins: rollupConfig.plugins, output: { format: 'iife', name: rollupConfig.output[0].name, sourcemap: 'inline', }, }, singleRun: true, }); };
23.085106
52
0.539171
a836ae53008b1a1dba268ad5f726e7479288aabf
40
js
JavaScript
Avalicao/teste.js
diegocamiloaps/JavaScript
156e7e8956e60187bf73d79aaad8f7b4de98503f
[ "MIT" ]
null
null
null
Avalicao/teste.js
diegocamiloaps/JavaScript
156e7e8956e60187bf73d79aaad8f7b4de98503f
[ "MIT" ]
null
null
null
Avalicao/teste.js
diegocamiloaps/JavaScript
156e7e8956e60187bf73d79aaad8f7b4de98503f
[ "MIT" ]
null
null
null
let num = 8; num **=2 console.log(num)
8
16
0.6
a83795a394b5579343fc1ca5ce732adc03b31576
2,118
js
JavaScript
src/options/lib/utils.js
pipopa/mouse-dictionary
5b9bf28775404056a604d31facb55354fe0e3906
[ "MIT" ]
null
null
null
src/options/lib/utils.js
pipopa/mouse-dictionary
5b9bf28775404056a604d31facb55354fe0e3906
[ "MIT" ]
null
null
null
src/options/lib/utils.js
pipopa/mouse-dictionary
5b9bf28775404056a604d31facb55354fe0e3906
[ "MIT" ]
null
null
null
/** * Mouse Dictionary (https://github.com/wtetsu/mouse-dictionary/) * Copyright 2018-present wtetsu * Licensed under MIT */ const fileMayBeSjis = async file => { return new Promise((done, fail) => { const reader = new FileReader(); reader.onload = e => { try { const buffer = e.target.result; const length = Math.min(512, buffer.byteLength); var bytes = new Uint8Array(buffer, 0, length); const mayBeSjis = byteArrayMayBeSjis(bytes); done(mayBeSjis); } catch { fail(); } }; try { reader.readAsArrayBuffer(file); } catch { fail(); } }); }; const byteArrayMayBeSjis = array => { let mayBeShiftJis = true; let nextShouldSecondByte = false; for (let index = 0; index < array.length; index++) { const byte = array[index]; const isSecondByte = (byte >= 0x40 && byte <= 0x7e) || (byte >= 0x80 && byte <= 0xfc); if (!nextShouldSecondByte) { const isFirstByte = (byte >= 0x81 && byte <= 0x9f) || (byte >= 0xe0 && byte <= 0xef); const isSoleChar = (byte >= 0x00 && byte <= 0x1f) || (byte >= 0x20 && byte <= 0x7f) || (byte >= 0xa1 && byte <= 0xdf); if (isFirstByte) { nextShouldSecondByte = true; } else if (!isSoleChar) { mayBeShiftJis = false; break; } } else { if (isSecondByte) { nextShouldSecondByte = false; } else { mayBeShiftJis = false; break; } } } return mayBeShiftJis; }; export default { decideInitialLanguage(languages) { if (!languages) { return "en"; } const validLanguages = ["en", "ja"]; let result = "en"; for (let i = 0; i < languages.length; i++) { const lang = languages[i].toLowerCase().split("-")[0]; if (validLanguages.includes(lang)) { result = lang; break; } } return result; }, tryToParseJson(json) { let result; try { result = JSON.parse(json); } catch (e) { result = null; } return result; }, fileMayBeSjis: fileMayBeSjis, byteArrayMayBeSjis };
24.627907
124
0.559018
a837ade66fd92316727b71e4dc17b3b1ce28f960
404
js
JavaScript
src/global.styles.js
TobiasFavero/todo-app
9617144ef17d8ec5c49a98a49a3b3921aaba418c
[ "MIT" ]
null
null
null
src/global.styles.js
TobiasFavero/todo-app
9617144ef17d8ec5c49a98a49a3b3921aaba418c
[ "MIT" ]
null
null
null
src/global.styles.js
TobiasFavero/todo-app
9617144ef17d8ec5c49a98a49a3b3921aaba418c
[ "MIT" ]
null
null
null
import { createGlobalStyle } from "styled-components"; export const GlobalStyles = createGlobalStyle` body { background: ${({ theme }) => theme.body}; color: ${({ theme }) => theme.text}; transition: background 0.2s ease-in, color 0.2s ease-in; } `; export const lightTheme = { body: '#f1f1f1', text: '#121620' }; export const darkTheme = { body: '#121620', text: '#f1f1f1' };
20.2
60
0.628713
a837cc16144f6890ce9d1154b2566398083a81bb
8,619
js
JavaScript
packages/node_modules/@ractivejs/adaptor-ampersand/test/specs/collection.js
fskreuz/ractive-monorepo
be27e0ba6466dd679245e891262715eb62bb317a
[ "MIT" ]
null
null
null
packages/node_modules/@ractivejs/adaptor-ampersand/test/specs/collection.js
fskreuz/ractive-monorepo
be27e0ba6466dd679245e891262715eb62bb317a
[ "MIT" ]
null
null
null
packages/node_modules/@ractivejs/adaptor-ampersand/test/specs/collection.js
fskreuz/ractive-monorepo
be27e0ba6466dd679245e891262715eb62bb317a
[ "MIT" ]
null
null
null
/* eslint-env browser, qunit */ import { Model, Collection } from 'ampersand' import Ractive from '@ractivejs/core' import { ampersandModel, ampersandCollection } from '@ractivejs/adaptor-ampersand' QUnit.module('adaptor-ampersand collections') QUnit.test('Adaptor can detect collections', t => { t.ok(ampersandCollection.filter(new Collection())) }) QUnit.test('Initialize with pre-filled collection', t => { const MyModel = Model.extend({ props: { name: 'string' } }) const MyCollection = Collection.extend({ model: MyModel }) const collection = new MyCollection([{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }]) const instance = Ractive({ adapt: [ ampersandCollection, ampersandModel ], data: { collection }, template: `{{#each collection }}{{ name }}{{/each}}` }) t.strictEqual(instance.get('collection'), collection) t.ok(Array.isArray(instance.get('collection', { unwrap: false }))) t.strictEqual(instance.get('collection.0.name'), 'foo') t.strictEqual(instance.get('collection.1.name'), 'bar') t.strictEqual(instance.get('collection.2.name'), 'baz') t.strictEqual(instance.toHTML(), 'foobarbaz') }) QUnit.test('Initialize with empty collection', t => { const MyModel = Model.extend({ props: { name: 'string' } }) const MyCollection = Collection.extend({ model: MyModel }) const collection = new MyCollection([]) const instance = Ractive({ adapt: [ ampersandCollection, ampersandModel ], data: { collection }, template: `{{#each collection }}{{ name }}{{/each}}` }) collection.add([{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }]) t.strictEqual(instance.get('collection'), collection) t.ok(Array.isArray(instance.get('collection', { unwrap: false }))) t.strictEqual(instance.get('collection.0.name'), 'foo') t.strictEqual(instance.get('collection.1.name'), 'bar') t.strictEqual(instance.get('collection.2.name'), 'baz') t.strictEqual(instance.toHTML(), 'foobarbaz') }) QUnit.test('Initialize with set collection', t => { const MyModel = Model.extend({ props: { name: 'string' } }) const MyCollection = Collection.extend({ model: MyModel }) const collection = new MyCollection([{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }]) const instance = Ractive({ adapt: [ ampersandCollection, ampersandModel ], template: `{{#each collection }}{{ name }}{{/each}}` }) instance.set('collection', collection) t.strictEqual(instance.get('collection'), collection) t.ok(Array.isArray(instance.get('collection', { unwrap: false }))) t.strictEqual(instance.get('collection.0.name'), 'foo') t.strictEqual(instance.get('collection.1.name'), 'bar') t.strictEqual(instance.get('collection.2.name'), 'baz') t.strictEqual(instance.toHTML(), 'foobarbaz') }) QUnit.test('Adding to collection updates instance', t => { const MyModel = Model.extend({ props: { name: 'string' } }) const MyCollection = Collection.extend({ model: MyModel }) const collection = new MyCollection([{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }]) const instance = Ractive({ adapt: [ ampersandCollection, ampersandModel ], data: { collection }, template: `{{#each collection }}{{ name }}{{/each}}` }) collection.add({ name: 'qux' }) t.strictEqual(collection.at(3).name, 'qux') t.strictEqual(instance.get('collection.3.name'), 'qux') t.strictEqual(instance.toHTML(), 'foobarbazqux') }) QUnit.test('Updating collection updates instance', t => { const MyModel = Model.extend({ props: { name: 'string' } }) const MyCollection = Collection.extend({ model: MyModel }) const collection = new MyCollection([{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }]) const instance = Ractive({ adapt: [ ampersandCollection, ampersandModel ], data: { collection }, template: `{{#each collection }}{{ name }}{{/each}}` }) collection.at(1).set('name', 'rar') t.strictEqual(collection.at(1).name, 'rar') t.strictEqual(instance.get('collection.1.name'), 'rar') t.strictEqual(instance.toHTML(), 'foorarbaz') }) QUnit.test('Deleting from collection updates instance', t => { const MyModel = Model.extend({ props: { name: 'string' } }) const MyCollection = Collection.extend({ model: MyModel }) const collection = new MyCollection([{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }]) const instance = Ractive({ adapt: [ ampersandCollection, ampersandModel ], data: { collection }, template: `{{#each collection }}{{ name }}{{/each}}` }) collection.remove(collection.at(1)) t.strictEqual(collection.at(1).name, 'baz') t.strictEqual(instance.get('collection.1.name'), 'baz') t.strictEqual(instance.toHTML(), 'foobaz') }) QUnit.test('Reset collection with an array via instance', t => { const MyModel = Model.extend({ props: { name: 'string' } }) const MyCollection = Collection.extend({ model: MyModel }) const collection = new MyCollection([{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }]) const instance = Ractive({ adapt: [ ampersandCollection, ampersandModel ], data: { collection }, template: `{{#each collection }}{{ name }}{{/each}}` }) instance.set('collection', [{ name: 'oof' }, { name: 'rab' }, { name: 'zab' }]) t.strictEqual(instance.get('collection'), collection) t.ok(Array.isArray(instance.get('collection', { unwrap: false }))) t.strictEqual(instance.get('collection.0.name'), 'oof') t.strictEqual(instance.get('collection.1.name'), 'rab') t.strictEqual(instance.get('collection.2.name'), 'zab') t.strictEqual(instance.toHTML(), 'oofrabzab') }) QUnit.test('Reset collection with a new Collection via instance', t => { const MyModel = Model.extend({ props: { name: 'string' } }) const MyCollection = Collection.extend({ model: MyModel }) const oldCollection = new MyCollection([{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }]) const newCollection = new MyCollection([{ name: 'oof' }, { name: 'rab' }, { name: 'zab' }]) const instance = Ractive({ adapt: [ ampersandCollection, ampersandModel ], data: { collection: oldCollection }, template: `{{#each collection }}{{ name }}{{/each}}` }) instance.set('collection', newCollection) // Holds new Collection t.strictEqual(instance.get('collection'), newCollection) t.ok(Array.isArray(instance.get('collection', { unwrap: false }))) t.strictEqual(instance.get('collection.0.name'), 'oof') t.strictEqual(instance.get('collection.1.name'), 'rab') t.strictEqual(instance.get('collection.2.name'), 'zab') t.strictEqual(instance.toHTML(), 'oofrabzab') // Stops listening to old model oldCollection.add({ name: 'qux' }) newCollection.add({ name: 'rar' }) t.strictEqual(instance.get('collection.3.name'), 'rar') }) QUnit.test('Reset collection with an array via collection', t => { const MyModel = Model.extend({ props: { name: 'string' } }) const MyCollection = Collection.extend({ model: MyModel }) const collection = new MyCollection([{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }]) const instance = Ractive({ adapt: [ ampersandCollection, ampersandModel ], data: { collection }, template: `{{#each collection }}{{ name }}{{/each}}` }) collection.reset([{ name: 'oof' }, { name: 'rab' }, { name: 'zab' }]) t.strictEqual(instance.get('collection'), collection) t.ok(Array.isArray(instance.get('collection', { unwrap: false }))) t.strictEqual(instance.get('collection.0.name'), 'oof') t.strictEqual(instance.get('collection.1.name'), 'rab') t.strictEqual(instance.get('collection.2.name'), 'zab') t.strictEqual(instance.toHTML(), 'oofrabzab') }) QUnit.test('Reset collection with a non-adapted value', t => { const MyModel = Model.extend({ props: { name: 'string' } }) const MyCollection = Collection.extend({ model: MyModel }) const collection = new MyCollection([{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }]) const instance = Ractive({ adapt: [ ampersandCollection, ampersandModel ], data: { collection }, template: `{{ collection }}` }) instance.set('collection', 1) t.strictEqual(instance.get('collection'), 1) t.strictEqual(instance.toHTML(), '1') }) // Adaptors changed behavior as of 0.8, causing the adaptor to no longer adapt // nested collections. // // Also, Ampersand's model.toJSON() differs from Backbone in that it returns a // POJO (collections as arrays, models as objects) while Backbone's doesn't // (collections remain collection instances). This allows the Backbone adaptor // to recursively adapt nested collections (because the filter still works), // while the Ampersand adaptor cannot adapt beyond a model.
40.848341
93
0.666319
a837cc256dd1bfc93aa75286cca8547192bf27b3
93
js
JavaScript
typescript-sample/dist/type/alias.js
kmakoto0212/sample-code-upgrade-test
445a83526c1b11165dfd6dfe57a47b3c835c7ea4
[ "MIT" ]
null
null
null
typescript-sample/dist/type/alias.js
kmakoto0212/sample-code-upgrade-test
445a83526c1b11165dfd6dfe57a47b3c835c7ea4
[ "MIT" ]
9
2020-11-16T08:52:15.000Z
2021-10-19T00:26:13.000Z
typescript-sample/dist/type/alias.js
kmakoto0212/sample-code-upgrade-test
445a83526c1b11165dfd6dfe57a47b3c835c7ea4
[ "MIT" ]
null
null
null
"use strict"; var hoge = 1000; var fuga = 5000; /* const piyo: osatu = 100; //Error Code. */
13.285714
38
0.612903
a837d128f83fbdc7f3e768e4d5016b93471ba725
1,461
js
JavaScript
assets/js/55.8e08ab45.js
wanglongkai/wanglongkai.github.io
8b0666f2b528a8da9b005e7e3e2abe6b59401fd5
[ "MIT" ]
null
null
null
assets/js/55.8e08ab45.js
wanglongkai/wanglongkai.github.io
8b0666f2b528a8da9b005e7e3e2abe6b59401fd5
[ "MIT" ]
null
null
null
assets/js/55.8e08ab45.js
wanglongkai/wanglongkai.github.io
8b0666f2b528a8da9b005e7e3e2abe6b59401fd5
[ "MIT" ]
null
null
null
(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{439:function(e,t,a){"use strict";a.r(t);var c=a(27),v=Object(c.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("Hone",[e._v("为什么我们都觉得React比Vue难呢?")]),e._v(" "),a("p",[e._v("我最开始接触SPA开发时,使用的是Vue,因为他是国人开发的缘故,文档比较好懂。使用Vue开发很爽,我便不想学习其他的框架了,比如React,Angular。可是后来到公司实习时,发现他们的技术栈是React,那我就得学啊。于是屁颠屁颠的就开始学了。")]),e._v(" "),a("p",[e._v("过程中,发现,React确实比Vue不好学啊主要原因其实不是React语法有多难。我自己觉得当时学React的难点主要有以下几点:")]),e._v(" "),a("ul",[a("li",[e._v("文档不好用,相比Vue的文档,React的官方文档就差了很多。")]),e._v(" "),a("li",[e._v("搭配React使用的状态管理库太多,路由的库的版本也太多变。")]),e._v(" "),a("li",[e._v("生态库太多了,比如光redux的生态库都数不过来,redux-thunk、redux-saga、redux-observale......")]),e._v(" "),a("li",[e._v("不管是React,还是React生态中的其他库,文档都是英文为主---看不懂啊!!!!一些翻译文档质量也不高,这是最难受的点。")])]),e._v(" "),a("p",[e._v("和React相比,Vue就简单多了。说明文档大多都是中文的,状态管理、路由等库都有官方推荐的,不需要自己选择,Vue都帮我们选好了。")]),e._v(" "),a("p",[e._v("甚至脚手架工具连目录结构都搞好了,React脚手架新建项目后,目录结构还得自己搞,不同的人又不同的想法,结果搞得乱七八糟的。")]),e._v(" "),a("p",[e._v("就像webpack一样,10个人配置的webpack会出现11个样。React项目的技术栈也像webpack,很多人的都不一样,不同技术栈的人写的东西,只有大神和猴可以看的懂吧。")]),e._v(" "),a("p",[e._v("但是React的jsx语法在使用习惯后又是真的爽。学好React了,在JavaScript的功底上,会提升好几个档次,因为你得会好多库啊,研究这些库的过程中,你就学会了好多优秀的开发模式和经验啊。潜移默化,JavaScript技术实力就上去了。")]),e._v(" "),a("p",[e._v("所以React必须得学啊,还得学好呢!Vue本身就很简单啦,学会了React,还怕不会Vue吗?不说了,我去复习会儿Redux。")])],1)}),[],!1,null,null,null);t.default=v.exports}}]);
1,461
1,461
0.711841
a837ed0db7bd9a51ee48573be0f34deee9a83c9a
1,129
js
JavaScript
test175.js
zymseo/test-code
8e8c34760916f038bc58fb1e077209b83b92542d
[ "MIT" ]
null
null
null
test175.js
zymseo/test-code
8e8c34760916f038bc58fb1e077209b83b92542d
[ "MIT" ]
2
2020-08-09T13:55:38.000Z
2020-09-18T08:41:46.000Z
test175.js
zhaoyiming0803/test-code
d2c7a6bf4b9130762acbed2fb19ad94acf141273
[ "MIT" ]
1
2019-05-15T03:08:49.000Z
2019-05-15T03:08:49.000Z
(function () { var a = 1; console.log("1: ", a); // 1 if (true) { a = 2; console.log("2: ", a); // 2 function a() {} console.log("3: ", a); // 2 a = 21; console.log("4: ", a); // 21 } console.log("5: ", a); // 2 })(); (function () { var a = 1; console.log("11: ", a); // 1 if (true) { console.log("22: ", a); // [(Function: a)]; function a() {} a = 21; console.log("33: ", a); // 21 } console.log("44: ", a); // [Function: a] })(); (function () { var a = 2; if (true) { a(); // 222 function a() { console.log("~~~", 222); } } })(); (function () { // if 语句块内的函数声明不会被提升到 if 语句块外边 // 但是 if 语句块内并没有用 let 或 const 定义变量,而 ES6 之前并没有块级作用域 // 很奇怪... // 具体原因参考《JavaScript高级程序设计》第176页: // 在 if 和 else 语句中使用『函数声明』是一种无效的语法,各个浏览器尝试修正这种错误语法的方式并不一致 // 所以这里不做讨论,以后避免这样使用即可 return; console.log(a()); // a is not a function if (true) { function a() { return 1; } } })(); (function () { // console.log(a); // Identifier 'a' has already been declared // if (true) { // var a = 1; // function a() {} // } })();
17.369231
64
0.478299
a837f33baedb1ab448355561d85e21b0eda00ee2
5,685
js
JavaScript
Web_Site/cloud.home.yimian.xyz/apps/dav/l10n/nb.js
IoTcat/archive
b43dd5c01c3b38cde97bbdbb87bfc51847303e58
[ "MIT" ]
null
null
null
Web_Site/cloud.home.yimian.xyz/apps/dav/l10n/nb.js
IoTcat/archive
b43dd5c01c3b38cde97bbdbb87bfc51847303e58
[ "MIT" ]
null
null
null
Web_Site/cloud.home.yimian.xyz/apps/dav/l10n/nb.js
IoTcat/archive
b43dd5c01c3b38cde97bbdbb87bfc51847303e58
[ "MIT" ]
null
null
null
OC.L10N.register( "dav", { "Calendar" : "Kalender", "Todos" : "Gjøremål", "Personal" : "Personlig", "{actor} created calendar {calendar}" : "{actor} opprettet kalenderen {calendar}", "You created calendar {calendar}" : "Du opprettet kalenderen {calendar}", "{actor} deleted calendar {calendar}" : "{actor} slettet kalenderen {calendar}", "You deleted calendar {calendar}" : "Du slettet kalenderen {calendar}", "{actor} updated calendar {calendar}" : "{actor} oppdaterte kalenderen {calendar}", "You updated calendar {calendar}" : "Du oppdaterte kalenderen {calendar}", "You shared calendar {calendar} as public link" : "Du delte kalenderen {calendar} som offentlig lenke", "You removed public link for calendar {calendar}" : "Du fjernet offentlig lenke for kalenderen {calendar}", "{actor} shared calendar {calendar} with you" : "{actor} delte kalenderen {calendar} med deg", "You shared calendar {calendar} with {user}" : "Du delte kalenderen {calendar} med {user}", "{actor} shared calendar {calendar} with {user}" : "{actor} delte kalenderen {calendar} med {user}", "{actor} unshared calendar {calendar} from you" : "{actor} fjernet delingen av kalenderen {calendar} med deg", "You unshared calendar {calendar} from {user}" : "Du fjernet delingen av kalender {calendar} med {user}", "{actor} unshared calendar {calendar} from {user}" : "{actor} fjernet delingen av kalender {calendar} med {user}", "{actor} unshared calendar {calendar} from themselves" : "{actor} fjernet delingen av kalender {calendar} med seg selv", "You shared calendar {calendar} with group {group}" : "Du delte kalender {calendar} med gruppe {group}", "{actor} shared calendar {calendar} with group {group}" : "{actor} delte kalenderen {calendar} med gruppe {group}", "You unshared calendar {calendar} from group {group}" : "Du fjernet deling av kalenderen {calendar} med gruppe {group}", "{actor} unshared calendar {calendar} from group {group}" : "{actor} fjernet deling av kalenderen {calendar} med gruppe {group}", "{actor} created event {event} in calendar {calendar}" : "{actor} opprettet en hendelse {event} i kalenderen {calendar}", "You created event {event} in calendar {calendar}" : "Du opprettet en hendelse {event} i kalenderen {calendar}", "{actor} deleted event {event} from calendar {calendar}" : "{actor} slettet hendelsen {event} fra kalenderen {calendar}", "You deleted event {event} from calendar {calendar}" : "Du slettet hendelsen {event} fra kalenderen {calendar}", "{actor} updated event {event} in calendar {calendar}" : "{actor} oppdaterte hendelsen {event} i kalenderen {calendar}", "You updated event {event} in calendar {calendar}" : "Du oppdaterte hendelsen {event} i kalenderen {calendar}", "{actor} created todo {todo} in list {calendar}" : "{actor} opprettet en oppgaven {todo} i listen {calendar}", "You created todo {todo} in list {calendar}" : "Du opprettet en oppgave {todo} i listen {calendar}", "{actor} deleted todo {todo} from list {calendar}" : "{actor} slettet gjøremålet {todo} fra listen {calendar}", "You deleted todo {todo} from list {calendar}" : "Du slettet gjøremålet {todo} fra listen {calendar}", "{actor} updated todo {todo} in list {calendar}" : "{actor} oppdaterte gjøremålet {todo} i listen {calendar}", "You updated todo {todo} in list {calendar}" : "Du oppdaterte gjøremålet {todo} i listen {calendar}", "{actor} solved todo {todo} in list {calendar}" : "{actor} ferdigstilte gjøremålet {todo} i listen {calendar}", "You solved todo {todo} in list {calendar}" : "Du ferdigstilte gjøremålet {todo} i listen {calendar}", "{actor} reopened todo {todo} in list {calendar}" : "{actor} gjenåpnet gjøremålet {todo} i listen {calendar}", "You reopened todo {todo} in list {calendar}" : "Du gjenåpnet oppgaven {todo} i listen {calendar}", "A <strong>calendar</strong> was modified" : "En <strong>kalender</strong> ble endret", "A calendar <strong>event</strong> was modified" : "En kalender <strong>hendelse</strong> ble endret", "A calendar <strong>todo</strong> was modified" : "En kalende <strong>gjøremål</strong> ble endret", "Contact birthdays" : "Kontakters fødelsdag", "Invitation canceled" : "Invitasjon tilbakekalt", "Hello %s," : "Hei %s,", "Invitation updated" : "Invitasjon oppdatert", "When:" : "Når:", "Where:" : "Hvor:", "Description:" : "Beskrivelse:", "Link:" : "Lenke:", "Contacts" : "Kontakter", "WebDAV" : "WebDAV", "Technical details" : "Tekniske detaljer", "Remote Address: %s" : "Ekstern adresse: %s", "Request ID: %s" : "Forespørsel ID: %s", "Send invitations to attendees" : "Send invitasjoner til oppmøtte", "Please make sure to properly set up the email settings above." : "Sett opp e-postinnstillingene ovenfor på riktig måte.", "Automatically generate a birthday calendar" : "Lag fødelsdagskalender automatisk", "Birthday calendars will be generated by a background job." : "Fødselsdagskalender lages automatisk av en bakgrunnsjobb.", "Hence they will not be available immediately after enabling but will show up after some time." : "Derav vil de ikke være tilgjengelige umiddelbart etter at du har skrudd dem på, men vil vises etter en stund.", "%s via %s" : "%s via %s", "The meeting »%s« with %s was canceled." : "Møtet \"%s\" med %s ble kansellert.", "The meeting »%s« with %s was updated." : "Møtet med \"%s\" med %s ble oppdatert.", "%s invited you to »%s«" : "%s inviterte deg til \"%s\"", "CalDAV server" : "DalDAV-tjener" }, "nplurals=2; plural=(n != 1);");
81.214286
214
0.681442
a83ad11695b43689e73ea98225d0c7fb7e9b7511
8,636
js
JavaScript
src/views/UserItem.js
pranjalsharma03/quiz
249a713a0e0ef8c440fdcfb65435cb4791b3867f
[ "MIT" ]
null
null
null
src/views/UserItem.js
pranjalsharma03/quiz
249a713a0e0ef8c440fdcfb65435cb4791b3867f
[ "MIT" ]
null
null
null
src/views/UserItem.js
pranjalsharma03/quiz
249a713a0e0ef8c440fdcfb65435cb4791b3867f
[ "MIT" ]
null
null
null
import React, { useState } from "react"; import firebase from "../variables/config"; import { Modal, ModalHeader, ModalBody, ModalFooter, FormGroup, Form, Button, Input, Row, Col, } from "reactstrap"; const QuestionItem = (props) => { console.log(props.main); const [modal, setModal] = useState(false); const [ques, setQues] = useState(1); const toggle = () => setModal(!modal); const allow = async (e) => { var UserRef = await firebase .database() .ref() .child( "Quiz/" + props.id + "/Users/" + props.main.email.replaceAll(".", ")") ); UserRef.update({ Status: "Logged", }); toggle(); props.notify("tc", "User Allowed.", "success", "icon-check-2"); }; return ( <> <Modal isOpen={modal} toggle={toggle} className="bg-transparent"> <ModalHeader tag="h2" toggle={toggle}> User Details </ModalHeader> <ModalBody> <Form> <Row> <Col md="6"> <FormGroup> <label>Name:</label> <Input defaultValue={props.main.Name} placeholder="Name" type="text" className="text-dark bg-transparent" disabled /> </FormGroup> </Col> <Col md="6"> <FormGroup> <label>Number:</label> <Input defaultValue={props.main.Number} placeholder="Number" type="number" className="text-dark bg-transparent" disabled /> </FormGroup> </Col> </Row> <Row> <Col md="12"> <FormGroup> <label>Email:</label> <Input defaultValue={props.main.email} placeholder="Email" type="text" className="text-dark bg-transparent" disabled /> </FormGroup> </Col> </Row> <Row> <Col md="6"> <FormGroup> <label>Status:</label> <Input defaultValue={props.main.Status} placeholder="Status" type="text" className="text-dark bg-transparent" disabled /> </FormGroup> </Col> <Col md="6"> <FormGroup> <label>Score:</label> <Input defaultValue={props.main.Score} placeholder="Score" type="text" className="text-dark bg-transparent" disabled /> </FormGroup> </Col> </Row> <Row> <Col md="6"> <FormGroup> <label>Logging Date:</label> <Input defaultValue={new Date(props.main.datentime) .toString() .slice(0, 15)} placeholder="Date" type="text" className="text-dark bg-transparent" disabled /> </FormGroup> </Col> <Col md="6"> <FormGroup> <label>Logging Time:</label> <Input defaultValue={new Date(props.main.datentime) .toString() .slice(15)} placeholder="Time" type="text" className="text-dark bg-transparent" disabled /> </FormGroup> </Col> </Row> <Row> <Col md="6"> <FormGroup> <label> {props.main.Status === "Completed" ? "Completion Date" : "Disqualification Date"} : </label> <Input defaultValue={new Date(props.main.completed_datentime) .toString() .slice(0, 15)} placeholder="Date" type="text" className="text-dark bg-transparent" disabled /> </FormGroup> </Col> <Col md="6"> <FormGroup> <label> {props.main.Status === "Completed" ? "Completion Time" : "Disqualification Time"} : </label> <Input defaultValue={new Date(props.main.completed_datentime) .toString() .slice(15)} placeholder="Time" type="text" className="text-dark bg-transparent" disabled /> </FormGroup> </Col> </Row> <Row> <Col md="6"> <FormGroup> <Row> <Col> <label>Answer:</label> </Col> <Col> <Input defaultValue={ques} placeholder="Question no." type="number" min="1" max={props.main.Answers.length} className="text-dark bg-transparent" onChange={(e) => { setQues(e.target.value); }} /> </Col> </Row> </FormGroup> </Col> </Row> <Row> <Col md="6"> <FormGroup> <Input value={props.main.Answers[ques - 1].givenAnswer} placeholder="Answer" type="text" className="text-dark bg-transparent" disabled /> </FormGroup> </Col> <Col md="6"> <FormGroup> <Input value={props.main.Answers[ques - 1].Answer} placeholder="Answer" type="text" className={ props.main.Answers[ques - 1].Answer === "S" || props.main.Answers[ques - 1].Answer === "A" || props.main.Answers[ques - 1].Answer === "B" || props.main.Answers[ques - 1].Answer === "C" || props.main.Answers[ques - 1].Answer === "D" ? "text-dark bg-transparent" : "d-none" } disabled /> </FormGroup> </Col> </Row> </Form> </ModalBody> <ModalFooter> <Button className="btn-fill ml-auto" color="success" type="submit" onClick={(e) => allow(e)} > Reset </Button> </ModalFooter> </Modal> <tr> <td onClick={() => { setModal(!modal); }} > {props.main.email} </td> <td onClick={() => { setModal(!modal); }} > <p className={ props.main.Status === "Completed" ? "text-success text-center" : props.main.Status === "Disqualified" ? "text-warning text-center" : "text-primary text-center" } > {props.main.Status} </p> </td> <td className="text-center" onClick={() => { setModal(!modal); }} > {props.main.Score} </td> </tr> </> ); }; export default QuestionItem;
29.575342
78
0.354794
a83addec259c37998559ab4749860967e8ead188
1,586
js
JavaScript
app/components/Maps/images/paths/MoonTemple.js
igorgo/poe-helper
8dfc7e6b2229cb8e074531d95ed02b5ed4abacab
[ "MIT" ]
null
null
null
app/components/Maps/images/paths/MoonTemple.js
igorgo/poe-helper
8dfc7e6b2229cb8e074531d95ed02b5ed4abacab
[ "MIT" ]
2
2021-01-28T20:11:55.000Z
2022-03-25T18:51:45.000Z
app/components/Maps/images/paths/MoonTemple.js
igorgo/poe-helper
8dfc7e6b2229cb8e074531d95ed02b5ed4abacab
[ "MIT" ]
null
null
null
export default [ `M42.78,41.05c2.83,0,5.66-0.03,8.48,0.01c3.13,0.04,3.3,0.34,1.86,3.43c-0.96,2.06-2.1,4.04-2.97,6.13 c-0.23,0.55,0.63,1.64,0.35,2.06c-0.37,0.56-1.1,0.84-1.62,1.54c-3.47,4.72-11.4,5.38-15.73,1.48c-3.27-2.95-2.89-5.61,1.16-7.38 c1.56-0.68,3.28-0.37,4.91-0.26c1.86,0.12,1.34,2.96,3.37,3.22c0.45,0.06-0.12,0.82-0.44,1.04c-1.51,1.04-3.03,1.15-4.48-0.17 c-0.6-0.55-1.14-1.27-2.09-1.13c-0.46,0.07-1.15,0.19-1.27,0.49c-0.24,0.55-0.42,1.46-0.13,1.85c2.35,3.17,7.54,3.46,10.4,0.63 c0.83-0.82,1.79-1.61,2.3-2.61c1.21-2.39,3.33-4.31,3.71-7.12c-2.45-0.6-4.94-0.22-7.42-0.27c-2.99-0.07-5.99-0.01-8.99,0 c-0.83,0-1.66,0.1-2.31-0.61c-0.45-0.49-1.02-0.92-0.75-1.67c0.18-0.49,0.63-0.66,1.17-0.66c3.49,0.01,6.99,0.01,10.48,0.01 C42.78,41.06,42.78,41.05,42.78,41.05z`, `M46.88,37.99c-3.01-0.81-6.63,0.77-10.38,0.98c-2.65,0.15-5.18-0.34-7.71-0.96c-0.61-0.15-1.41,0.05-1.62-0.74 c-0.21-0.77,0.37-1.04,1.04-1.34c1.95-0.87,2.59-2.99,3.54-4.59c0.91-1.53,2.24-2.16,3.42-2.25c3.64-0.28,7.31-0.09,10.96-0.05 c0.29,0,0.64,0.22,0.86,0.44c0.32,0.33,0.54,0.75,0.8,1.14c-0.29,0.12-0.59,0.35-0.88,0.35c-2.83,0.04-5.65,0.06-8.48,0.03 c-2.72-0.03-4.66,1.39-6.21,3.41c-0.45,0.58-0.14,1.23,0.61,1.51c0.15,0.05,0.33,0.03,0.5,0.04c2.13,0.21,4.4-1.02,6.12-0.6 c2.09,0.51,3.64,0.18,5.57-0.19c2.56-0.49,5.3-0.17,7.95-0.07c0.56,0.02,1.19,0.55,1.61,1c0.28,0.3,0.36,0.89,0.34,1.34 c-0.01,0.19-0.49,0.52-0.76,0.52C52.02,38.01,49.86,37.99,46.88,37.99z`, `M54.11,28.12c0.52-0.03,2.06,2.56,1.81,3.14c-0.47,1.1-1.24,1.89-2.63,1.73c-1.85-0.21-1.31-1.62-1.28-2.64 C52.06,29.1,52.76,28.19,54.11,28.12z` ];
88.111111
125
0.612232
a83b64b46353d51af4a65863e3bde870ad1826e6
723
js
JavaScript
frontend/node_modules/@shopify/polaris-icons/dist/icons/polaris/circle-alert_major_monotone.svg.js
lubitelpospat/CFM-source
4e6af33ee68c6f2f05b6952b64a6b3f0591d5b03
[ "MIT" ]
null
null
null
frontend/node_modules/@shopify/polaris-icons/dist/icons/polaris/circle-alert_major_monotone.svg.js
lubitelpospat/CFM-source
4e6af33ee68c6f2f05b6952b64a6b3f0591d5b03
[ "MIT" ]
1
2021-06-04T10:05:05.000Z
2021-06-04T10:05:05.000Z
frontend/node_modules/@shopify/polaris-icons/dist/icons/polaris/circle-alert_major_monotone.svg.js
lubitelpospat/CFM-source
4e6af33ee68c6f2f05b6952b64a6b3f0591d5b03
[ "MIT" ]
null
null
null
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = _interopDefault(require('react')); var _ref = /*#__PURE__*/ React.createElement("path", { d: "M10 0C4.486 0 0 4.486 0 10s4.486 10 10 10 10-4.486 10-10S15.514 0 10 0m0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8m0-7a1 1 0 0 0 1-1V6a1 1 0 1 0-2 0v4a1 1 0 0 0 1 1m0 1.9a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2" }); var SvgCircleAlertMajorMonotone = function SvgCircleAlertMajorMonotone(props) { return React.createElement("svg", Object.assign({ viewBox: "0 0 20 20" }, props), _ref); }; exports.SvgCircleAlertMajorMonotone = SvgCircleAlertMajorMonotone;
36.15
235
0.673582
a83b96046054a08de908034c8b531654428ef19e
4,595
js
JavaScript
src/blog-post/related-posts.spec.js
wolframkriesing/site-stitcher
f75583d4600dbb11ab9a80a3bbbc3a0ee6bf1cd6
[ "MIT" ]
null
null
null
src/blog-post/related-posts.spec.js
wolframkriesing/site-stitcher
f75583d4600dbb11ab9a80a3bbbc3a0ee6bf1cd6
[ "MIT" ]
4
2020-04-21T20:47:02.000Z
2022-01-15T02:18:24.000Z
src/blog-post/related-posts.spec.js
wolframkriesing/site-stitcher
f75583d4600dbb11ab9a80a3bbbc3a0ee6bf1cd6
[ "MIT" ]
null
null
null
import {describe, it} from '../test.js'; import {assertThat, equalTo} from 'hamjest'; import {BlogPost} from './BlogPost.js'; import {findRelatedPosts} from './related-posts.js'; describe('Find posts related by their headline, automatically', () => { const newPost = (headline) => { const post = new BlogPost(); post.headline = headline; return post; } it('GIVEN a post "My story #1" WHEN searching for related posts THEN find "My story #2" AND case insensitive', () => { const post1 = newPost('My story #1'); const post2 = newPost('MY STORY #2'); const relatedPosts = findRelatedPosts(post1, [post1, post2]); assertThat(relatedPosts, equalTo([post1, post2])); }); it('GIVEN multiple related posts WHEN searching for related posts THEN find all where the first two words are the same', () => { const posts = [ newPost('Bookmarks collect, October 2015'), newPost('Bookmarks collect, December 2020'), newPost('Nothing related'), newPost('Bookmarks collect, October 2015 #2'), newPost('Also unrelated'), newPost('Bookmarks collect, January 2001'), ]; const relatedPosts = findRelatedPosts(posts[0], posts); assertThat(relatedPosts, equalTo([posts[0], posts[1], posts[3], posts[5],])); }); it('GIVEN a comma after the 2nd word WHEN searching for related posts THEN ignore the comma', () => { const posts = [ newPost('Bookmarks collect, October 2015'), newPost('Bookmarks collect December 2020'), ]; const relatedPosts = findRelatedPosts(posts[0], posts); assertThat(relatedPosts, equalTo([posts[0], posts[1],])); }); it('GIVEN only one word matches WHEN searching for related posts THEN match on one word AND case insensitive', () => { const posts = [ newPost('Newsletter #1'), newPost('NewslettER #2'), ]; const relatedPosts = findRelatedPosts(posts[0], posts); assertThat(relatedPosts, equalTo(posts)); }); describe('ignore stop words at the beginning of the headline', () => { it('GIVEN the searching post starts with a stop word WHEN searching THEN find related ones that start with the second word', () => { const posts = [ newPost('The stop word'), newPost('Stop word'), ]; const relatedPosts = findRelatedPosts(posts[0], posts); assertThat(relatedPosts, equalTo(posts)); }); it('GIVEN the searched post starts with a stop word WHEN searching THEN find it too', () => { const posts = [ newPost('Stop word'), newPost('The stop word'), ]; const relatedPosts = findRelatedPosts(posts[0], posts); assertThat(relatedPosts, equalTo(posts)); }); it('GIVEN a stop word and one more word only WHEN searching THEN find it too', () => { const posts = [ newPost('The Shop'), newPost('Shop'), ]; const relatedPosts = findRelatedPosts(posts[0], posts); assertThat(relatedPosts, equalTo(posts)); }); it('GIVEN a one word headline WHEN the searched post starts with a stop word THEN find it too', () => { const posts = [ newPost('word'), newPost('The word'), ]; const relatedPosts = findRelatedPosts(posts[0], posts); assertThat(relatedPosts, equalTo(posts)); }); it('GIVEN a stop word and one more word only WHEN searching without success THEN find nothing', () => { const posts = [ newPost('The Online Shop'), newPost('The Yoyo Noway'), ]; const relatedPosts = findRelatedPosts(posts[0], posts); assertThat(relatedPosts, equalTo([posts[0]])); }); it('GIVEN a stop word + one word headline WHEN the searched post starts with a stop word too AND no match THEN find nothing', () => { const posts = [ newPost('The Online'), newPost('The Yoyo'), ]; const relatedPosts = findRelatedPosts(posts[0], posts); assertThat(relatedPosts, equalTo([posts[0]])); }); }); it('GIVEN only one word matches WHEN searching for related posts THEN match on one word', () => { const posts = [ newPost('Newsletter #1'), newPost('Newsletter #2'), ]; const relatedPosts = findRelatedPosts(posts[0], posts); assertThat(relatedPosts, equalTo(posts)); }); it('GIVEN unrelated posts WHEN searching for related posts THEN find nothing', () => { const post1 = newPost('About JavaScript'); const post2 = newPost('How to fly'); const relatedPosts = findRelatedPosts(post1, [post1, post2]); assertThat(relatedPosts, equalTo([post1])); }); });
41.772727
137
0.639826
a83bce6d2721387f07db72087859c1114ed73f03
2,598
js
JavaScript
lib/search.js
bipbopme/search
a0c80d1c8d98e55869e58d5d6101b324fa18a8d4
[ "MIT" ]
null
null
null
lib/search.js
bipbopme/search
a0c80d1c8d98e55869e58d5d6101b324fa18a8d4
[ "MIT" ]
1
2020-07-28T17:33:37.000Z
2020-07-28T17:33:37.000Z
lib/search.js
bipbopme/search
a0c80d1c8d98e55869e58d5d6101b324fa18a8d4
[ "MIT" ]
null
null
null
import _ from 'lodash'; import bing from './bing'; import { enhanceResponse } from './enhancements'; import { sha1, delay } from './utils'; import { memoize } from './redis'; import { captureException } from './exceptions'; const MAX_RESPONSE_MS = 1800; const DEFAULT_SEARCH_PARAMS = { count: 20 }; async function searchBingAndTransform(params) { const bingResponse = await bing.search(params); const response = {}; response.queryContext = bingResponse.queryContext; response.stats = { totalEstimatedMatches: bingResponse.webPages?.totalEstimatedMatches || 0 }; response.results = bingResponse.webPages?.value?.map(item => { // Pick primary attributes const result = _.pick(item, ['name', 'url', 'displayUrl', 'snippet', 'isNavigational']); // Pick primary attributes for deepLinks if included. Only include 4. if (item.deepLinks) { result.deepLinks = item.deepLinks .slice(0, 4) .map(deepLink => _.pick(deepLink, ['name', 'url', 'snippet'])); } return { id: sha1(result.url), type: 'webPage', ...result }; }) || []; return response; } const searchBingAndTransformCached = memoize(searchBingAndTransform); export async function precache(params) { searchBingAndTransform({ ...DEFAULT_SEARCH_PARAMS, ...params }); } function getBestQuery(query, queryContext) { let cleanQuery = queryContext?.alteredQuery || queryContext?.originalQuery || query || ''; cleanQuery = cleanQuery.toLowerCase(); return cleanQuery; } export async function search(params, geo) { const startTime = Date.now(); const query = params.q; const response = await searchBingAndTransformCached({ ...DEFAULT_SEARCH_PARAMS, ...params }); const bestQuery = getBestQuery(query, response.queryContext); const searchEndTime = Date.now(); const searchElaspedTime = searchEndTime - startTime; const timeRemaining = MAX_RESPONSE_MS - searchElaspedTime; try { if (timeRemaining > 0) { await Promise.race([delay(timeRemaining), enhanceResponse(bestQuery, response, geo)]); } } catch (e) { captureException(e); } const endTime = Date.now(); const totalTime = endTime - startTime; console.log('------------------------------------'); console.log('Search:', `${searchElaspedTime}ms`); console.log('Remaining:', `${timeRemaining}ms`); console.log('Enhancements:', `${endTime - searchEndTime}ms`); console.log('Total:', `${totalTime}ms`); console.log('------------------------------------'); response.stats.totalTime = totalTime; return response; }
30.209302
96
0.661278
a83bf604fa7b9636774e94dc6517e63aaa8b6079
9,896
js
JavaScript
src/views/Profile/Profile.js
jonpraci/sys_user_dev
2360057acef6e712947b0ca28fbef315a5ff67fa
[ "MIT" ]
null
null
null
src/views/Profile/Profile.js
jonpraci/sys_user_dev
2360057acef6e712947b0ca28fbef315a5ff67fa
[ "MIT" ]
1
2022-02-28T14:02:43.000Z
2022-02-28T14:02:43.000Z
src/views/Profile/Profile.js
Daratech1/sys_user_dev
e9da771d4fe7627d09233dd7f5af7bf1afa20d65
[ "MIT" ]
null
null
null
import React, { useEffect, useState } from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import Container from "@material-ui/core/Container"; import { makeStyles } from "@material-ui/core/styles"; import Paper from "@material-ui/core/Paper"; import { Avatar, Grid, Typography } from "@material-ui/core"; import Box from "@material-ui/core/Box"; import { Button } from "@material-ui/core"; import EditIcon from "@material-ui/icons/Edit"; import { updateProfile } from "action/Profile"; const styles = { ProfileContent: { marginTop: "50px", }, containerPaper: { padding: "2.5rem 2rem", borderRadius: "15px", width: "100%", }, boxavatar: { width: "100%", }, avatar: { height: "5rem", width: "5rem", }, btn: { background: "#00daad", color: "#fff", margin: ".5rem 0", }, editBtn: { padding: ".1rem 1.5rem .1rem 2.5rem", borderRadius: "10px", margin: "1rem 0", }, }; const useStyles = makeStyles(styles); const Profile = ({ user, loading, data: { nationalities,countries_id }, updateProfile }) => { const classes = useStyles(); const [displayInput, setDisplayInput] = useState(true); const [formData, setFormData] = useState({ first_name: "", last_name: "", email: "", phone: "", city_name: "", address: "", nationality_id: "", country_id:"", national_id:"" }); const { first_name, last_name, email, phone, city_name, address, nationality_id, country_id, national_id } = formData; useEffect(() => { setFormData({ first_name: loading || !user.first_name ? "" : user.first_name, last_name: loading || !user.last_name ? "" : user.last_name, email: loading || !user.email ? "" : user.email, phone: loading || !user.phone ? "" : user.phone, country_id: loading || !user.country_id ? "" : user.country_id, city_name: loading || !user.guardian.city_name ? "" : user.guardian.city_name, address: loading || !user.guardian.address ? "" : user.guardian.address, national_id: loading || !user.guardian.national_id ? "" : user.guardian.national_id, nationality_id: loading || !user.guardian.nationality_id ? "" : user.guardian.nationality_id, }); }, [setFormData,displayInput]); const onChange = (e) => { setFormData({ ...formData, [e.target.name]: e.target.value }); }; const toggleDisplay = () => { setDisplayInput(!displayInput); }; const handleSelectNationality = () => { return nationalities.map(prop => ( <option key={prop.id} value={prop.id}> {prop.nationality_name} </option> )) }; const handleSelectcountries_id = () => { return countries_id.map(prop => ( <option key={prop.id} value={prop.id}> {prop.country_name} </option> )) }; const handleEdit = () => { updateProfile(formData); }; return ( <div className={classes.ProfileContent}> <Container> <Box display="flex" flexDirection="column" justifyContent="center" alignItems="center" > <Box className={classes.boxavatar}> <Box display="flex" alignItems="center"> <Avatar alt="personal Image" src="" className={classes.avatar} /> <Typography variant="h4" style={{ marginRight: "1rem" }}> {first_name + " " + last_name} </Typography> </Box> <Button onClick={toggleDisplay} size="large" className={classes.btn} startIcon={<EditIcon style={{ marginLeft: ".5rem" }} />} > تعديل </Button> </Box> <Paper elevation={0} className={classes.containerPaper}> <Typography variant="h6" align="center"> بيانات شخصية </Typography> <Grid container spacing={7}> <Grid item sm={6}> <div className="form-group"> <label> الأسم الاول</label> <input type="text" name="first_name" value={first_name} onChange={(e) => onChange(e)} className="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="الاسم الاول" disabled={displayInput} /> </div> <div className="form-group"> <label>الأسم الثاني</label> <input type="text" name="last_name" value={last_name} onChange={(e) => onChange(e)} className="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="الاسم الثانى" disabled={displayInput} /> </div> <div className="form-group"> <label>هوية ولي الأمر</label> <input type="text" name="national_id" value={national_id} onChange={(e) => onChange(e)} className="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="هوية ولي الأمر" disabled={displayInput} /> </div>{" "} <div className="form-group"> <label>البريد الألكتروني</label> <input type="email" value={email} name="email" onChange={(e) => onChange(e)} className="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="البريد الإلكترونى" disabled={displayInput} /> </div>{" "} <div className="form-group"> <label>رقم الجوال</label> <input type="text" value={phone} name="phone" onChange={(e) => onChange(e)} className="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="رقم الجوال" disabled={displayInput} /> </div> </Grid> <Grid item sm={6}> <div className="form-group"> <label>المدينه</label> <input type="text" name="city_name" value={city_name} onChange={(e) => onChange(e)} className="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="المدينة" disabled={displayInput} /> </div> <div className="form-group"> <label> العنوان</label> <input type="text" value={address} onChange={(e) => onChange(e)} name="address" className="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="العنوان" disabled={displayInput} /> </div> <div className="form-group"> <label>الجنسية </label> <select name="nationality_id" disabled={displayInput} value={nationality_id} onChange={(e) => onChange(e)} > <option value="">إختر الجنسية</option> {nationalities && handleSelectNationality()} </select> </div> <div className="form-group"> <label>الدولة </label> <select name="country_id" disabled={displayInput} value={country_id} onChange={(e) => onChange(e)} > <option value="">إختر الدولة</option> {country_id && handleSelectcountries_id()} </select> </div> </Grid> </Grid> <Box align="center"> <Button disabled={displayInput} variant="contained" size="small" startIcon={<EditIcon />} color="primary" className={classes.editBtn} > <Typography variant="h6" style={{ marginRight: "1rem" }} onClick={handleEdit} > حفظ التعديل </Typography> </Button> </Box> </Paper> </Box> </Container> </div> ); }; Profile.propTypes = { user: PropTypes.object.isRequired, loading: PropTypes.bool, data: PropTypes.object, updateProfile: PropTypes.func, }; const mapStateToProps = (state) => ({ user: state.auth.user, data: state.data.staticData, loading: state.auth.loading }); export default connect(mapStateToProps, { updateProfile })(Profile);
32.339869
93
0.469179
a83cb50ac35373afed313b76e3745a2c06d90c73
745
js
JavaScript
src/server/router/report.js
woowa-techcamp-2020/hkb-13
ed1914ced1292012563502292d220544a36da1ab
[ "MIT" ]
null
null
null
src/server/router/report.js
woowa-techcamp-2020/hkb-13
ed1914ced1292012563502292d220544a36da1ab
[ "MIT" ]
26
2020-07-27T08:03:25.000Z
2020-08-06T06:38:17.000Z
src/server/router/report.js
woowa-techcamp-2020/hkb-13
ed1914ced1292012563502292d220544a36da1ab
[ "MIT" ]
2
2020-08-04T00:54:35.000Z
2020-08-10T04:58:06.000Z
const express = require('express') const { getReportsListController, createAReportController, modifyAReportController, removeAReportController, } = require('../controller/reportsList') const router = express.Router() const { ensureAuthenticated } = require('./ensureAuth') router.get( '/api/board/:boardId/:year/:month/report', ensureAuthenticated, getReportsListController ) router.post( '/api/board/:boardId/report', ensureAuthenticated, createAReportController ) router.put( '/api/board/:boardId/report/:reportId', ensureAuthenticated, modifyAReportController ) router.delete( '/api/board/:boardId/report/:reportId', ensureAuthenticated, removeAReportController ) module.exports = { reportRouter: router }
21.285714
55
0.759732
a83cf82decbe385c628e32e1bbde4733ef6583aa
1,250
js
JavaScript
index.js
kev-luk/world-thoughts
9a1154b7b7f6e11a9fa7c6fa0c88a3a8b66e3f21
[ "MIT" ]
null
null
null
index.js
kev-luk/world-thoughts
9a1154b7b7f6e11a9fa7c6fa0c88a3a8b66e3f21
[ "MIT" ]
null
null
null
index.js
kev-luk/world-thoughts
9a1154b7b7f6e11a9fa7c6fa0c88a3a8b66e3f21
[ "MIT" ]
null
null
null
if (process.env.NODE_ENV != 'production') { require('dotenv').config(); } const path = require('path'); const cors = require('cors'); const express = require('express'); const app = express(); const mongoose = require('mongoose'); const forumRouter = require('./routes/forum'); const Post = require('./models/Post'); const PORT = process.env.PORT || 3000; const url = process.env.MongoURI; mongoose .connect(url, { useNewUrlParser: true, useUnifiedTopology: true }) .then(() => console.log('Connected to MongoDB...')) .catch((err) => console.log(err)); app.set('view engine', 'ejs'); app.set('views', path.join(__dirname, '/views')); app.use(cors()); app.use(express.static(__dirname + '/public')); app.use(express.urlencoded({ extended: false })); app.get('/', (req, res) => { res.redirect('home'); }); app.get('/home', async (req, res) => { const posts = await Post.find().sort({ createdAt: 'descending' }).limit(4); res.render('home', { posts: posts }); }); app.get('/about', (req, res) => { res.render('about'); }); app.get('/learn-more', (req, res) => { res.render('learn'); }); app.use('/forum', forumRouter); app.listen(PORT, (req, res) => { console.log('Succesfully started server...'); });
25
79
0.6232
a83debcc5b117fc548f244fe4907b35962219b06
2,233
js
JavaScript
src/react/Actions/request_response_info.js
Oddly/BunqDesktop
30c2ec8b8f442df45a19fbbe248499ba6af3d00e
[ "MIT" ]
null
null
null
src/react/Actions/request_response_info.js
Oddly/BunqDesktop
30c2ec8b8f442df45a19fbbe248499ba6af3d00e
[ "MIT" ]
null
null
null
src/react/Actions/request_response_info.js
Oddly/BunqDesktop
30c2ec8b8f442df45a19fbbe248499ba6af3d00e
[ "MIT" ]
null
null
null
import BunqErrorHandler from "../Helpers/BunqErrorHandler"; import RequestResponse from "../Models/RequestResponse"; import { requestResponsesSetInfo } from "./request_responses"; export function requestResponseSetInfo( request_response_info, account_id, request_response_id ) { return { type: "REQUEST_RESPONSE_INFO_SET_INFO", payload: { request_response_info: request_response_info, request_response_id: request_response_id, account_id: account_id } }; } export function requestResponseUpdate( BunqJSClient, user_id, account_id, request_response_id ) { return dispatch => { dispatch(requestResponseLoading()); BunqJSClient.api.requestResponse .get(user_id, account_id, request_response_id) .then(requestResponse => { const requestResponseInfo = new RequestResponse( requestResponse ); // update this item in the list and the stored data dispatch( requestResponsesSetInfo( [requestResponseInfo], parseInt(account_id), false, BunqJSClient ) ); dispatch( requestResponseSetInfo( requestResponseInfo, parseInt(account_id), request_response_id ) ); dispatch(requestResponseNotLoading()); }) .catch(error => { dispatch(requestResponseNotLoading()); BunqErrorHandler( dispatch, error, "We failed to load the request information" ); }); }; } export function requestResponseLoading() { return { type: "REQUEST_RESPONSE_INFO_IS_LOADING" }; } export function requestResponseNotLoading() { return { type: "REQUEST_RESPONSE_INFO_IS_NOT_LOADING" }; } export function requestResponseClear() { return { type: "REQUEST_RESPONSE_INFO_CLEAR" }; }
29.381579
67
0.55262
a83e5d232d5aec7434c7934011005e997dd45730
25,429
js
JavaScript
tests/unit/classes/Element/Variable/MBVariable/MBBoolean.test.js
WKolaj/SidiroIOT
61561af0f25be5970debe462d65782d65fb5eb1a
[ "MIT" ]
null
null
null
tests/unit/classes/Element/Variable/MBVariable/MBBoolean.test.js
WKolaj/SidiroIOT
61561af0f25be5970debe462d65782d65fb5eb1a
[ "MIT" ]
null
null
null
tests/unit/classes/Element/Variable/MBVariable/MBBoolean.test.js
WKolaj/SidiroIOT
61561af0f25be5970debe462d65782d65fb5eb1a
[ "MIT" ]
2
2021-04-07T09:57:41.000Z
2021-09-29T08:23:43.000Z
const MBBoolean = require("../../../../../../classes/Element/Variable/ConnectableVariable/MBVariable/MBBoolean"); describe("MBBoolean", () => { beforeEach(() => { jest.setTimeout(30000); }); describe("constructor", () => { let project; let device; beforeEach(() => { project = "fakeProject"; device = "fakeDevice"; }); let exec = () => { return new MBBoolean(project, device); }; it("should create new ConnectableVariable and set all its properties to null", () => { let result = exec(); expect(result.ID).toEqual(null); expect(result.Name).toEqual(null); expect(result.Type).toEqual(null); //Value should not be checked - method _convertDataToValue is not set //expect(result.Value).toEqual(null); expect(result.DefaultValue).toEqual(null); expect(result.LastValueTick).toEqual(null); expect(result.Unit).toEqual(null); expect(result.SampleTime).toEqual(null); }); it("should assign project and device", () => { let result = exec(); expect(result._project).toEqual(project); expect(result._device).toEqual(device); }); }); describe("_convertDataToValue", () => { let project; let device; let mbVariable; let dataToConvert; beforeEach(() => { project = "fakeProject"; device = "fakeDevice"; dataToConvert = [true]; }); let exec = async () => { mbVariable = new MBBoolean(project, device); return mbVariable._convertDataToValue(dataToConvert); }; it("should convert data to value and return it if data is [true]", async () => { let result = await exec(); expect(result).toEqual(true); }); it("should convert data to value and return it if data is [false]", async () => { dataToConvert = [false]; let result = await exec(); expect(result).toEqual(false); }); }); describe("_convertValueToData", () => { let project; let device; let mbVariable; let valueToConvert; beforeEach(() => { project = "fakeProject"; device = "fakeDevice"; valueToConvert = true; }); let exec = async () => { mbVariable = new MBBoolean(project, device); return mbVariable._convertValueToData(valueToConvert); }; it("should convert value to data and return it if value is true", async () => { let result = await exec(); expect(result).toEqual([true]); }); it("should convert value to data and return it if value is false", async () => { valueToConvert = false; let result = await exec(); expect(result).toEqual([false]); }); }); describe("_getReadPossibleFunctionCodes", () => { let project; let device; let mbVariable; beforeEach(() => { project = "fakeProject"; device = "fakeDevice"; }); let exec = async () => { mbVariable = new MBBoolean(project, device); return mbVariable._getReadPossibleFunctionCodes(); }; it("should return functions 1 and 2", async () => { let result = await exec(); expect(result).toEqual([1, 2]); }); }); describe("_getWritePossibleFunctionCodes", () => { let project; let device; let mbVariable; beforeEach(() => { project = "fakeProject"; device = "fakeDevice"; }); let exec = async () => { mbVariable = new MBBoolean(project, device); return mbVariable._getWritePossibleFunctionCodes(); }; it("should return empty array - MBBoolean cannot be written", async () => { let result = await exec(); expect(result).toEqual([]); }); }); describe("init", () => { let project; let device; let payload; let variable; let convertValueToDataMockFunc; let convertDataToValueMockFunc; let possibleReadCodes; let possibleWriteCodes; let getPossibleReadCodesMockFunc; let getPossibleWriteCodesMockFunc; beforeEach(() => { project = "fakeProject"; device = { ID: "fakeDeviceId" }; possibleReadCodes = [1, 2, 3, 4]; possibleWriteCodes = [16]; payload = { id: "testElementId", name: "testElementName", type: "MBBoolean", defaultValue: false, sampleTime: 456, offset: 123, length: 1, read: true, write: false, readAsSingle: true, writeAsSingle: false, unitID: 12, readFCode: 2, writeFCode: 16, }; }); let exec = async () => { variable = new MBBoolean(project, device); return variable.init(payload); }; it("should initialize variable's properties based on their payload", async () => { await exec(); expect(variable.ID).toEqual("testElementId"); expect(variable.Name).toEqual("testElementName"); expect(variable.Type).toEqual("MBBoolean"); expect(variable.DefaultValue).toEqual(false); expect(variable.SampleTime).toEqual(456); expect(variable.Value).toEqual(false); expect(variable.LastValueTick).toEqual(0); expect(variable.Offset).toEqual(123); expect(variable.Length).toEqual(1); expect(variable.Data).toEqual([false]); expect(variable.Read).toEqual(true); expect(variable.Write).toEqual(false); expect(variable.ReadSeperately).toEqual(true); expect(variable.WriteSeperately).toEqual(false); expect(variable.UnitID).toEqual(12); expect(variable.ReadFCode).toEqual(2); expect(variable.WriteFCode).toEqual(16); }); it("should initialize variable's properties based on their payload - if default value is true", async () => { payload.defaultValue = true; await exec(); expect(variable.ID).toEqual("testElementId"); expect(variable.Name).toEqual("testElementName"); expect(variable.Type).toEqual("MBBoolean"); expect(variable.DefaultValue).toEqual(true); expect(variable.SampleTime).toEqual(456); expect(variable.Value).toEqual(true); expect(variable.LastValueTick).toEqual(0); expect(variable.Offset).toEqual(123); expect(variable.Length).toEqual(1); expect(variable.Data).toEqual([true]); expect(variable.Read).toEqual(true); expect(variable.Write).toEqual(false); expect(variable.ReadSeperately).toEqual(true); expect(variable.WriteSeperately).toEqual(false); expect(variable.UnitID).toEqual(12); expect(variable.ReadFCode).toEqual(2); expect(variable.WriteFCode).toEqual(16); }); it("should not initialize any property and throw - if type is different than MBBoolean", async () => { payload.type = "FakeType"; let error = null; await expect( new Promise(async (resolve, reject) => { try { await exec(); return resolve(true); } catch (err) { error = err; return reject(err); } }) ).rejects.toBeDefined(); expect(error.message).toEqual("Invalid type in payload of MBBoolean"); //Variable should not have been initialized expect(variable.ID).toEqual(null); expect(variable.Name).toEqual(null); expect(variable.Type).toEqual(null); expect(variable.DefaultValue).toEqual(null); expect(variable.LastValueTick).toEqual(null); expect(variable.Unit).toEqual(null); expect(variable.SampleTime).toEqual(null); expect(variable.Offset).toEqual(null); expect(variable.Length).toEqual(null); }); it("should not initialize any property and throw - if length is different than 1", async () => { payload.length = 2; let error = null; await expect( new Promise(async (resolve, reject) => { try { await exec(); return resolve(true); } catch (err) { error = err; return reject(err); } }) ).rejects.toBeDefined(); expect(error.message).toEqual("Invalid length in payload of MBBoolean"); //Variable should not have been initialized expect(variable.ID).toEqual(null); expect(variable.Name).toEqual(null); expect(variable.Type).toEqual(null); expect(variable.DefaultValue).toEqual(null); expect(variable.LastValueTick).toEqual(null); expect(variable.Unit).toEqual(null); expect(variable.SampleTime).toEqual(null); expect(variable.Offset).toEqual(null); expect(variable.Length).toEqual(null); }); it("should not initialize any property and throw - if readFCode is not included in readFCodes from getReadFCodes and read is set to true", async () => { payload.read = true; payload.write = false; payload.readFCode = 30; let error = null; await expect( new Promise(async (resolve, reject) => { try { await exec(); return resolve(true); } catch (err) { error = err; return reject(err); } }) ).rejects.toBeDefined(); expect(error.message).toEqual( "Trying to assign invalid read FCode for MBVariable" ); //Variable should not have been initialized expect(variable.ID).toEqual(null); expect(variable.Name).toEqual(null); expect(variable.Type).toEqual(null); expect(variable.DefaultValue).toEqual(null); expect(variable.LastValueTick).toEqual(null); expect(variable.Unit).toEqual(null); expect(variable.SampleTime).toEqual(null); expect(variable.Offset).toEqual(null); expect(variable.Length).toEqual(null); }); it("should not initialize any property and throw - and throw - if write is set to true (no method for setting mbboolean data)", async () => { payload.read = false; payload.write = true; let error = null; await expect( new Promise(async (resolve, reject) => { try { await exec(); return resolve(true); } catch (err) { error = err; return reject(err); } }) ).rejects.toBeDefined(); expect(error.message).toEqual( "Trying to assign invalid write FCode for MBVariable" ); //Variable should not have been initialized expect(variable.ID).toEqual(null); expect(variable.Name).toEqual(null); expect(variable.Type).toEqual(null); expect(variable.DefaultValue).toEqual(null); expect(variable.LastValueTick).toEqual(null); expect(variable.Unit).toEqual(null); expect(variable.SampleTime).toEqual(null); expect(variable.Offset).toEqual(null); expect(variable.Length).toEqual(null); }); it("should not initialize any property and throw - if writeFCode is not included in writeFCodes from getWriteFCodes and write is set to true", async () => { payload.read = false; payload.write = true; payload.writeFCode = 30; let error = null; await expect( new Promise(async (resolve, reject) => { try { await exec(); return resolve(true); } catch (err) { error = err; return reject(err); } }) ).rejects.toBeDefined(); expect(error.message).toEqual( "Trying to assign invalid write FCode for MBVariable" ); //Variable should not have been initialized expect(variable.ID).toEqual(null); expect(variable.Name).toEqual(null); expect(variable.Type).toEqual(null); expect(variable.DefaultValue).toEqual(null); expect(variable.LastValueTick).toEqual(null); expect(variable.Unit).toEqual(null); expect(variable.SampleTime).toEqual(null); expect(variable.Offset).toEqual(null); expect(variable.Length).toEqual(null); }); it("should initialize and not throw - if writeFCode is not included in writeFCodes from getWriteFCodes bute write is set to false", async () => { payload.read = true; payload.write = false; payload.writeFCode = 30; let error = null; await expect( new Promise(async (resolve, reject) => { try { await exec(); return resolve(true); } catch (err) { error = err; return reject(err); } }) ).resolves.toBeDefined(); expect(variable.ID).toEqual("testElementId"); expect(variable.Name).toEqual("testElementName"); expect(variable.Type).toEqual("MBBoolean"); expect(variable.DefaultValue).toEqual(false); expect(variable.SampleTime).toEqual(456); expect(variable.Value).toEqual(false); expect(variable.LastValueTick).toEqual(0); expect(variable.Offset).toEqual(123); expect(variable.Length).toEqual(1); expect(variable.Data).toEqual([false]); expect(variable.Read).toEqual(true); expect(variable.Write).toEqual(false); expect(variable.ReadSeperately).toEqual(true); expect(variable.WriteSeperately).toEqual(false); expect(variable.UnitID).toEqual(12); expect(variable.ReadFCode).toEqual(2); expect(variable.WriteFCode).toEqual(30); }); }); describe("validatePayload", () => { let payload; beforeEach(() => { payload = { id: "testVariable2ID", name: "testVariable2Name", type: "MBBoolean", unit: "FakeUnit", sampleTime: 123, defaultValue: true, offset: 11, length: 1, read: true, write: false, readFCode: 2, unitID: 2, readAsSingle: false, writeAsSingle: false, }; }); let exec = () => { return MBBoolean.validatePayload(payload); }; it("should return null if payload is valid", () => { let result = exec(); expect(result).toEqual(null); }); it("should return message if id is not defined", () => { delete payload.id; let result = exec(); expect(result).toEqual(`"id" is required`); }); it("should return message if id is null", () => { payload.id = null; let result = exec(); expect(result).toEqual(`"id" must be a string`); }); it("should return message if id is empty string", () => { payload.id = ""; let result = exec(); expect(result).toEqual(`"id" is not allowed to be empty`); }); it("should return message if name is not defined", () => { delete payload.name; let result = exec(); expect(result).toEqual(`"name" is required`); }); it("should return message if name is null", () => { payload.name = null; let result = exec(); expect(result).toEqual(`"name" must be a string`); }); it("should return message if name is empty string", () => { payload.name = ""; let result = exec(); expect(result).toEqual(`"name" is not allowed to be empty`); }); it("should return message if type is not defined", () => { delete payload.type; let result = exec(); expect(result).toEqual(`"type" is required`); }); it("should return message if type is null", () => { payload.type = null; let result = exec(); expect(result).toEqual(`"type" must be [MBBoolean]`); }); it("should return message if type is empty string", () => { payload.type = ""; let result = exec(); expect(result).toEqual(`"type" must be [MBBoolean]`); }); it("should return message if type is invalid string", () => { payload.type = "MBVariable"; let result = exec(); expect(result).toEqual(`"type" must be [MBBoolean]`); }); it("should return message if unit is not defined", () => { delete payload.unit; let result = exec(); expect(result).toEqual(`"unit" is required`); }); it("should return message if unit is null", () => { payload.unit = null; let result = exec(); expect(result).toEqual(`"unit" must be a string`); }); it("should return message if unit is empty string", () => { payload.unit = ""; let result = exec(); expect(result).toEqual(`"unit" is not allowed to be empty`); }); it("should return message if sampleTime is not defined", () => { delete payload.sampleTime; let result = exec(); expect(result).toEqual(`"sampleTime" is required`); }); it("should return message if sampleTime is null", () => { payload.sampleTime = null; let result = exec(); expect(result).toEqual(`"sampleTime" must be a number`); }); it("should return message if sampleTime is 0", () => { payload.sampleTime = 0; let result = exec(); expect(result).toEqual(`"sampleTime" must be greater than or equal to 1`); }); it("should return message if sampleTime is a float", () => { payload.sampleTime = 123.321; let result = exec(); expect(result).toEqual(`"sampleTime" must be an integer`); }); it("should return message if defaultValue is not defined", () => { delete payload.defaultValue; let result = exec(); expect(result).toEqual(`"defaultValue" is required`); }); it("should return message if defaultValue is null", () => { payload.defaultValue = null; let result = exec(); expect(result).toEqual(`"defaultValue" must be a boolean`); }); it("should return message if defaultValue is not a boolean", () => { payload.defaultValue = 123; let result = exec(); expect(result).toEqual(`"defaultValue" must be a boolean`); }); it("should return message if offset is not defined", () => { delete payload.offset; let result = exec(); expect(result).toEqual(`"offset" is required`); }); it("should return message if offset is null", () => { payload.offset = null; let result = exec(); expect(result).toEqual(`"offset" must be a number`); }); it("should return message if offset is -1", () => { payload.offset = -1; let result = exec(); expect(result).toEqual(`"offset" must be greater than or equal to 0`); }); it("should return message if offset is a float", () => { payload.offset = 123.321; let result = exec(); expect(result).toEqual(`"offset" must be an integer`); }); it("should return message if length is not defined", () => { delete payload.length; let result = exec(); expect(result).toEqual(`"length" is required`); }); it("should return message if length is null", () => { payload.length = null; let result = exec(); expect(result).toEqual(`"length" must be [1]`); }); it("should return message if length is 0", () => { payload.length = 0; let result = exec(); expect(result).toEqual(`"length" must be [1]`); }); it("should return message if length is greater than 1", () => { payload.length = 2; let result = exec(); expect(result).toEqual(`"length" must be [1]`); }); it("should return message if unitID is not defined", () => { delete payload.unitID; let result = exec(); expect(result).toEqual(`"unitID" is required`); }); it("should return message if unitID is null", () => { payload.unitID = null; let result = exec(); expect(result).toEqual(`"unitID" must be a number`); }); it("should return message if unitID is 0", () => { payload.unitID = 0; let result = exec(); expect(result).toEqual(`"unitID" must be greater than or equal to 1`); }); it("should return message if unitID is a float", () => { payload.unitID = 123.321; let result = exec(); expect(result).toEqual(`"unitID" must be an integer`); }); it("should return message if unitID greater than 255", () => { payload.unitID = 256; let result = exec(); expect(result).toEqual(`"unitID" must be less than or equal to 255`); }); it("should return message if read is not defined", () => { delete payload.read; let result = exec(); expect(result).toEqual(`"read" is required`); }); it("should return message if read is null", () => { payload.read = null; let result = exec(); expect(result).toEqual(`"read" must be a boolean`); }); it("should return message if read is true as well as write", () => { payload.read = true; payload.write = true; let result = exec(); expect(result).toEqual(`"write" must be [false]`); }); it("should return message if read is false as well as write", () => { payload.read = false; payload.write = false; let result = exec(); expect(result).toEqual(`"write" must be [true]`); }); it("should return message if write is not defined", () => { delete payload.write; let result = exec(); expect(result).toEqual(`"write" is required`); }); it("should return message if write is null", () => { payload.write = null; let result = exec(); expect(result).toEqual(`"write" must be [false]`); }); it("should return message if write is not defined - and read is false", () => { payload.read = false; delete payload.write; let result = exec(); expect(result).toEqual(`"write" is required`); }); it("should return message if write is null - and read is false", () => { payload.read = false; payload.write = null; let result = exec(); expect(result).toEqual(`"write" must be [true]`); }); it("should return message if readFCode is not defined", () => { delete payload.readFCode; let result = exec(); expect(result).toEqual(`"readFCode" is required`); }); it("should return message if readFCode is null", () => { payload.readFCode = null; let result = exec(); expect(result).toEqual(`"readFCode" must be one of [1, 2]`); }); it("should return message if readFCode is 0", () => { payload.readFCode = 0; let result = exec(); expect(result).toEqual(`"readFCode" must be one of [1, 2]`); }); it("should return message if readFCode is a float", () => { payload.readFCode = 123.321; let result = exec(); expect(result).toEqual(`"readFCode" must be one of [1, 2]`); }); //writeFCode should not be there - write cannot be true it("should return message if writeFCode is present", () => { payload.writeFCode = 16; let result = exec(); expect(result).toEqual(`"writeFCode" is not allowed`); }); it("should return message if readAsSingle is not defined", () => { delete payload.readAsSingle; let result = exec(); expect(result).toEqual(`"readAsSingle" is required`); }); it("should return message if readAsSingle is null", () => { payload.readAsSingle = null; let result = exec(); expect(result).toEqual(`"readAsSingle" must be a boolean`); }); it("should return message if readAsSingle is not a boolean", () => { payload.readAsSingle = 123; let result = exec(); expect(result).toEqual(`"readAsSingle" must be a boolean`); }); it("should return message if writeAsSingle is not defined", () => { delete payload.writeAsSingle; let result = exec(); expect(result).toEqual(`"writeAsSingle" is required`); }); it("should return message if writeAsSingle is null", () => { payload.writeAsSingle = null; let result = exec(); expect(result).toEqual(`"writeAsSingle" must be a boolean`); }); it("should return message if writeAsSingle is not a boolean", () => { payload.writeAsSingle = 123; let result = exec(); expect(result).toEqual(`"writeAsSingle" must be a boolean`); }); }); describe("checkIfValueCanBeSet", () => { let project; let device; let variable; let value; beforeEach(() => { project = "fakeProject"; device = "fakeDevice"; value = true; }); let exec = () => { variable = new MBBoolean(project, device); return variable.checkIfValueCanBeSet(value); }; it("should return null if value is a valid boolean (true)", () => { value = false; let result = exec(); expect(result).toEqual(null); }); it("should return null if value is a valid boolean (false)", () => { value = true; let result = exec(); expect(result).toEqual(null); }); it("should return message if value is undefined", () => { value = undefined; let result = exec(); expect(result).toEqual(`"value" is required`); }); it("should return message if value is null", () => { value = null; let result = exec(); expect(result).toEqual(`"value" must be a boolean`); }); it("should return message if value is not a valid boolean", () => { value = 1234.4231; let result = exec(); expect(result).toEqual(`"value" must be a boolean`); }); }); });
26.215464
160
0.590428
a83e8a9738bfbd7d3d475c5a51f9dc7c33f17c97
1,876
js
JavaScript
legacy/server/api/clockface.js
qclock/qclock
4eed576d55bf12f6ab2050def9d5598d295e953c
[ "MIT" ]
null
null
null
legacy/server/api/clockface.js
qclock/qclock
4eed576d55bf12f6ab2050def9d5598d295e953c
[ "MIT" ]
null
null
null
legacy/server/api/clockface.js
qclock/qclock
4eed576d55bf12f6ab2050def9d5598d295e953c
[ "MIT" ]
null
null
null
var clockfaces = require('../../clockface') const getValues = function (server) { let clockfaceFields = clockfaces.current.fields; let fields = {} for (let field of Object.keys(clockfaceFields)) { if (server.config.CLOCKFACE[field] && clockfaceFields[field].type == 'color') { fields[field] = server.config.CLOCKFACE[field] } else { fields[field] = clockfaceFields[field].value } } let dim = { dimEnabled: server.config.DIM_ENABLED, dimLevel: server.config.DIM_LEVEL * 100, dimFrom: server.config.DIM_FROM, dimTo: server.config.DIM_TO } let clockfaceData = { list: clockfaces.list.map((cf) => cf.name), current: clockfaces.current.name, fields: clockfaceFields } return Object.assign(fields, dim, { clockface: clockfaceData }) } module.exports = function (request, response) { let { method } = request; // color in / out : HSL if (method === 'GET') { // return current datetime settings response.end(JSON.stringify(getValues(this))) } if (method === 'PUT') { this.getRequestBody(request, (err, body) => { if (body.clockface) { clockfaces.current = body.clockface this.tick.now() response.end(JSON.stringify(getValues(this))) return; } let clockfaceFields = clockfaces.current.fields; for (let field of Object.keys(clockfaceFields)) { if (clockfaceFields[field].type === 'color') { this.config.CLOCKFACE[field] = body[`${field}[]`].map((i)=> +i) } else { this.config.CLOCKFACE[field] = body[field] } } this.config.DIM_ENABLED = body.dimEnabled === 'true' this.config.DIM_LEVEL = +body.dimLevel / 100 this.config.DIM_FROM = +body.dimFrom this.config.DIM_TO = + body.dimTo this.tick.now() response.end(JSON.stringify(getValues(this))) }) } }
25.013333
81
0.632729
a8410b96c9ee9184cd03ae16b1433f19ed6dd97e
5,861
js
JavaScript
frontend/configs/examples/covid-aides-entreprises/appConfigTexts.js
Openessai123/aide-ODC
e680738ae41748c4fa26c3851e08f4d59ddd15fb
[ "MIT" ]
null
null
null
frontend/configs/examples/covid-aides-entreprises/appConfigTexts.js
Openessai123/aide-ODC
e680738ae41748c4fa26c3851e08f4d59ddd15fb
[ "MIT" ]
3
2021-03-10T16:32:34.000Z
2022-01-22T11:53:04.000Z
frontend/configs/examples/covid-aides-entreprises/appConfigTexts.js
Openessai123/aide-ODC
e680738ae41748c4fa26c3851e08f4d59ddd15fb
[ "MIT" ]
null
null
null
const DATE_UPLOAD_DATA = "17 avril 2020" // let fs = require('fs') // let DATE_UPLOAD_DATA = fs.readFileSync('~/static/datasets/aides/prod/date_update.txt').toString().split("\n") // let DATE_UPLOAD_DATA = fetch('/static/datasets/aides/prod/date_update.txt') export const configAppTexts = { help: "this file contains the setup for the texts components", // NUMBERS settingsIds: [ { id: "text-01", help: "", title: { fr: "" }, titleI18n: "texts.text01.title", dividers: { before: false, after: false, }, componentRows: [ { rowNumber: 1, help: "", columns: [ { colName: "", colTitle: { fr: "" }, colTitleClass: "", cols: 12, textClass: "", subTextClass: "", sizeDesktop: "headline mb-0", sizeMobile: "subtitle-1", textPrefix: { fr: "Aides versées : " }, textPrefixClass: "font-weight-regular", textSuffix: { fr: "" }, textSuffixClass: undefined, specialStoreId: "levelname", specialStoreIdClass: "font-weight-medium", }, ], }, ], }, { id: "text-02", help: "", title: { fr: "" }, titleI18n: "texts.text01.title", dividers: { before: false, after: false, }, componentRows: [ { rowNumber: 1, help: "", columns: [ { colName: "", colTitle: { fr: "Informations" }, colTitleClass: "my-5", cols: 12, textClass: "", subTextClass: "", textPrefix: { fr: undefined }, textPrefixClass: undefined, textSuffix: { fr: undefined }, textSuffixClass: undefined, specialStoreId: undefined, specialStoreIdClass: undefined, textsHtml: [ { id: "intro", textClass: "text-left mx-4 pt-4", textContent: { fr: ` L’Etat a mis en place, avec les Régions, un fonds de solidarité doté d’1,7 milliard d’euros pour le mois de mars qui permettra le versement d’une aide défiscalisée allant jusqu’à 1500 euros aux plus petites entreprises, aux indépendants, aux micro-entrepreneurs et aux professions libérales touchés par la crise du coronavirus. Ce fonds sera maintenu autant que durera l’urgence sanitaire. `, }, // Plus d'informations sur les mesures de soutien aux entreprises sur le // <a target="_blank" href="https://www.economie.gouv.fr/coronavirus-soutien-entreprises"> // portail de l'Economie, des Finances, de l'Action et des Comptes publics</a>. fromUrl: { fr: undefined, }, }, { id: "aides-textes", textClass: "text-left mx-4 pt-4", textContent: { fr: ` Afin d’offrir de la visibilité à l’ensemble des Français sur l’attribution des aides versées aux entreprises dans le cadre de ce fonds de solidarité, le ministre de l’action et des comptes publics, avec le soutien technique du département Etalab de la <a target="_blank" href="https://www.numerique.gouv.fr"> Direction Interministérielle du Numérique (DINUM)</a>, mettent à disposition un tableau de bord dont le <a target="_blank" href="https://github.com/etalab/dashboard-aides-entreprises"> code source est libre</a> qui propose une vision consolidée des aides aux entreprises effectivement versées. `, }, fromUrl: { fr: undefined, }, }, { id: "more-infos", textClass: "text-left mx-4 pt-4 pb-5 mb-5", textContent: { fr: ` Pour obtenir d’autres informations relatives au fonds de solidarité, il est possible de consulter la page d’information <a target="_blank" href="https://www.impots.gouv.fr/portail/"> disponible sur impots.gouv.fr</a>. <br><br> Les données utilisées sur ce tableau de bord <a target="_blank" href="https://www.data.gouv.fr/fr/datasets/aides-aux-entreprises-dans-le-cadre-de-lepidemie-de-covid-19-en-france/"> sont disponibles sur data.gouv.fr</a>. `, }, fromUrl: { fr: undefined, }, }, { id: "miseAJour", textClass: "justify-center mx-4 pt-3 pb-5 mb-5", textContent: undefined, fromUrl: { fr: "https://raw.githubusercontent.com/etalab/dashboard-aides-entreprises/master/backend/json/last_update_data.txt", // fr: "/datasets/aides/prod/last_update_data.txt", }, }, ], }, ], }, ], }, ], }
35.957055
155
0.460331
a84320297331436883b4ba7e6b1a887aa1c2e1c4
426
js
JavaScript
src/tests/3ServerTest/public/js/tempHumidDataHandler.js
ellartdev/temp-humid-meter
ba7214ce10770294b6ef0b2d20a2dc03f76107b2
[ "MIT" ]
null
null
null
src/tests/3ServerTest/public/js/tempHumidDataHandler.js
ellartdev/temp-humid-meter
ba7214ce10770294b6ef0b2d20a2dc03f76107b2
[ "MIT" ]
null
null
null
src/tests/3ServerTest/public/js/tempHumidDataHandler.js
ellartdev/temp-humid-meter
ba7214ce10770294b6ef0b2d20a2dc03f76107b2
[ "MIT" ]
null
null
null
var temp = document.getElementById("temp"); var humid = document.getElementById("humid"); temp.innerHTML, humid.innerHTML = "Please wait..."; var socket = io(); socket.on('temp-humid', (data) => { //console.log(data); temp.innerHTML = `${data.temp}°C, ${Math.floor(data.temp * 1.8 + 32)}°F` humid.innerHTML = `${data.humid}%` }); var LCDBacklight = () => { socket.emit('LCDBacklight', {pressed: true}); };
25.058824
76
0.624413
a843d9b72736570f43c6e9b7696d534c23ac0b26
588
js
JavaScript
biocoins_frontend/src/index.js
sajustsmile/biocoins
b83832dc583f2ee75f845e78940fb3f85cb2d4f8
[ "MIT" ]
null
null
null
biocoins_frontend/src/index.js
sajustsmile/biocoins
b83832dc583f2ee75f845e78940fb3f85cb2d4f8
[ "MIT" ]
null
null
null
biocoins_frontend/src/index.js
sajustsmile/biocoins
b83832dc583f2ee75f845e78940fb3f85cb2d4f8
[ "MIT" ]
null
null
null
import React from "react"; import ReactDOM from "react-dom"; import { BrowserRouter } from "react-router-dom"; import App from "App"; // Soft UI Dashboard React Context Provider import { SoftUIControllerProvider } from "context"; import { AuthProvider } from "auth-context/auth.context"; let user = localStorage.getItem("user"); user = JSON.parse(user); ReactDOM.render( <BrowserRouter> <SoftUIControllerProvider> <AuthProvider userData={user}> <App /> </AuthProvider> </SoftUIControllerProvider> </BrowserRouter>, document.getElementById("root") );
24.5
57
0.712585
a84418376e5d4582480b1f245a419eda9f134a6b
585
js
JavaScript
start.js
cassianohsilva/info_vis
a9cd6d11cbb10078378424066c3fa937f1b97372
[ "MIT" ]
null
null
null
start.js
cassianohsilva/info_vis
a9cd6d11cbb10078378424066c3fa937f1b97372
[ "MIT" ]
null
null
null
start.js
cassianohsilva/info_vis
a9cd6d11cbb10078378424066c3fa937f1b97372
[ "MIT" ]
null
null
null
var http = require('http'); var url = require('url'); var fs = require('fs'); http.createServer(function(req, res) { pathName = url.parse(req.url).pathname; var file = __dirname + pathName; var ext = pathName.split('.')[1]; console.log('GET', file); console.log(ext); // res.write('index.html'); fs.readFile(file, function(err, data) { if(err) { res.writeHead(404, {'Content-type':'text/plan'}); res.write('Not found!'); res.end(); } else { res.writeHead(200, {'Content-type':'text/' + ext}); res.write(data); res.end(); } }); }).listen(8000);
19.5
54
0.605128
a8479a5faee16cb018389af9e0f5af2ea7edc9ef
340
js
JavaScript
node_modules/gluegun/src/domain/extension.js
LeBlaaanc/gucci
c385c10102ad606a1ac973308cc8b3dd151de0d4
[ "MIT" ]
null
null
null
node_modules/gluegun/src/domain/extension.js
LeBlaaanc/gucci
c385c10102ad606a1ac973308cc8b3dd151de0d4
[ "MIT" ]
null
null
null
node_modules/gluegun/src/domain/extension.js
LeBlaaanc/gucci
c385c10102ad606a1ac973308cc8b3dd151de0d4
[ "MIT" ]
null
null
null
/** * An extension will add functionality to the context that each command will receive. */ class Extension { constructor () { this.name = null this.description = null this.file = null this.setup = null this.loadState = 'none' this.errorState = 'none' this.exception = null } } module.exports = Extension
20
85
0.658824
a847edb30f8f57d1c19ef78ace7487c1b3d4b6d5
2,699
js
JavaScript
js/src/forum/components/LastDiscussionWidget.js
jslirola/flarum-categories
4843d9c50f38f2e9b75e65d65ebe4f27ce015c41
[ "MIT" ]
null
null
null
js/src/forum/components/LastDiscussionWidget.js
jslirola/flarum-categories
4843d9c50f38f2e9b75e65d65ebe4f27ce015c41
[ "MIT" ]
null
null
null
js/src/forum/components/LastDiscussionWidget.js
jslirola/flarum-categories
4843d9c50f38f2e9b75e65d65ebe4f27ce015c41
[ "MIT" ]
null
null
null
import Component from 'flarum/common/Component'; import avatar from 'flarum/common/helpers/avatar'; import username from 'flarum/common/helpers/username'; import humanTime from 'flarum/common/helpers/humanTime'; import { truncate } from 'flarum/common/utils/string'; import Link from 'flarum/common/components/Link'; import UserCard from 'flarum/forum/components/UserCard'; export default class LastDiscussionWidget extends Component { oninit(vnode) { super.oninit(vnode); /** * Whether or not the user hover card is visible. * * @type {Boolean} */ this.cardVisible = false; } view() { const discussion = this.attrs.discussion; if (!discussion) { return <div class="LastDiscussion">{app.translator.trans('askvortsov-categories.forum.last_discussion_widget.no_discussions')}</div>; } const user = discussion.lastPostedUser(); let card = ''; if (user && this.cardVisible) { card = UserCard.component({ user, className: 'UserCard--popover', controlsButtonClassName: 'Button Button--icon Button--flat', }); } return ( <Link class="LastDiscussion" href={app.route.discussion(discussion)}> <Link className="LastDiscussion-avatar" href={user ? app.route.user(user) : '#'}> {avatar(user)} </Link> <div class="LastDiscussion-content"> <div class="LastDiscussion-bottomRow"> {humanTime(discussion.lastPostedAt())}{' '} <Link className="LastDiscussion-usernameLink" href={user ? app.route.user(user) : '#'}> {' '} | {username(user)} </Link> </div> <div class="LastDiscussion-topRow">{truncate(discussion.title(), 26)}</div> </div> <div class="LastDiscussion-userCardContainer">{card}</div> </Link> ); } oncreate(vnode) { super.oncreate(vnode); let timeout; this.$() .on('mouseover', '.LastDiscussion-avatar, .LastDiscussion-usernameLinkUserCard, .username, .UserCard', () => { clearTimeout(timeout); timeout = setTimeout(this.showCard.bind(this), 300); }) .on('mouseout', '.LastDiscussion-avatar, .LastDiscussion-usernameLinkUserCard, .username, .UserCard', () => { clearTimeout(timeout); timeout = setTimeout(this.hideCard.bind(this), 150); }); } /** * Show the user card. */ showCard() { this.cardVisible = true; m.redraw(); setTimeout(() => this.$('.UserCard').addClass('in')); } /** * Hide the user card. */ hideCard() { $('.UserCard').removeClass('in'); this.cardVisible = false; m.redraw(); } }
28.114583
139
0.614672
a847f737d7288b757477efc6ff34a29b1a251b2a
1,133
js
JavaScript
src/components/normalVideoCard/NormalVideoCard.js
iamrishavb/rui-library
018338e9c55e6c630061aadecf192defe70dd573
[ "MIT" ]
null
null
null
src/components/normalVideoCard/NormalVideoCard.js
iamrishavb/rui-library
018338e9c55e6c630061aadecf192defe70dd573
[ "MIT" ]
null
null
null
src/components/normalVideoCard/NormalVideoCard.js
iamrishavb/rui-library
018338e9c55e6c630061aadecf192defe70dd573
[ "MIT" ]
null
null
null
import { useState } from "react"; import "./NormalVideoCard.css"; import { AiFillPlayCircle } from "react-icons/ai"; const NormalVideoCard = ({ isInGrid }) => { const [isCardHover, setIsCardHover] = useState(false); return ( <div className={isInGrid ? "normalVideoCard inGrid" : "normalVideoCard"} onMouseEnter={() => setIsCardHover(true)} onMouseLeave={() => setIsCardHover(false)} > <img src={`https://img.youtube.com/vi/-rAeqN-Q7x4/0.jpg`} alt="video-cover" className="normalVideoCard__cover" style={{ opacity: isCardHover ? "0.5" : "1" }} /> <div className="normalVideoCard__organiser" style={{ opacity: isCardHover ? "1" : "0" }} > Apple </div> <AiFillPlayCircle className="normalVideoCard__playBtn" size="50" style={{ opacity: isCardHover ? "1" : "0" }} /> <div className="normalVideoCard__title" style={{ opacity: isCardHover ? "1" : "0" }} > September Event 2019 — Apple </div> </div> ); }; export default NormalVideoCard;
27.634146
73
0.578111
a82f81ea500161164d366bc1152a1ceeeaab9074
14,020
js
JavaScript
js/oauth-ng.js
hebihui/hebihui.github.io
e4279ed5ba725252eec6907ed79f353aba226675
[ "MIT" ]
1
2015-07-26T12:42:51.000Z
2015-07-26T12:42:51.000Z
js/oauth-ng.js
hebihui/note
e4279ed5ba725252eec6907ed79f353aba226675
[ "MIT" ]
null
null
null
js/oauth-ng.js
hebihui/note
e4279ed5ba725252eec6907ed79f353aba226675
[ "MIT" ]
null
null
null
/* oauth-ng - v0.4.2 - 2015-06-19 */ 'use strict'; // App libraries angular.module('oauth', [ 'oauth.directive', // login directive 'oauth.accessToken', // access token service 'oauth.endpoint', // oauth endpoint service 'oauth.profile', // profile model 'oauth.storage', // storage 'oauth.interceptor' // bearer token interceptor ]) .config(['$locationProvider','$httpProvider', function($locationProvider, $httpProvider) { $httpProvider.interceptors.push('ExpiredInterceptor'); }]); 'use strict'; var accessTokenService = angular.module('oauth.accessToken', []); accessTokenService.factory('AccessToken', ['Storage', '$rootScope', '$location', '$interval', function(Storage, $rootScope, $location, $interval){ var service = { token: null }, oAuth2HashTokens = [ //per http://tools.ietf.org/html/rfc6749#section-4.2.2 'access_token', 'token_type', 'expires_in', 'scope', 'state', 'error','error_description' ]; /** * Returns the access token. */ service.get = function(){ return this.token; }; /** * Sets and returns the access token. It tries (in order) the following strategies: * - takes the token from the fragment URI * - takes the token from the sessionStorage */ service.set = function(){ this.setTokenFromString($location.hash()); //If hash is present in URL always use it, cuz its coming from oAuth2 provider redirect if(null === service.token){ setTokenFromSession(); } return this.token; }; /** * Delete the access token and remove the session. * @returns {null} */ service.destroy = function(){ Storage.delete('token'); this.token = null; return this.token; }; /** * Tells if the access token is expired. */ service.expired = function(){ return (this.token && this.token.expires_at && new Date(this.token.expires_at) < new Date()); }; /** * Get the access token from a string and save it * @param hash */ service.setTokenFromString = function(hash){ var params = getTokenFromString(hash); if(params){ removeFragment(); setToken(params); setExpiresAt(); // We have to save it again to make sure expires_at is set // and the expiry event is set up properly setToken(this.token); $rootScope.$broadcast('oauth:login', service.token); } }; /* * * * * * * * * * * PRIVATE METHODS * * * * * * * * * * */ /** * Set the access token from the sessionStorage. */ var setTokenFromSession = function(){ var params = Storage.get('token'); if (params) { setToken(params); } }; /** * Set the access token. * * @param params * @returns {*|{}} */ var setToken = function(params){ service.token = service.token || {}; // init the token angular.extend(service.token, params); // set the access token params setTokenInSession(); // save the token into the session setExpiresAtEvent(); // event to fire when the token expires return service.token; }; /** * Parse the fragment URI and return an object * @param hash * @returns {{}} */ var getTokenFromString = function(hash){ var params = {}, regex = /([^&=]+)=([^&]*)/g, m; while ((m = regex.exec(hash)) !== null) { params[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); } if(params.access_token || params.error){ return params; } }; /** * Save the access token into the session */ var setTokenInSession = function(){ Storage.set('token', service.token); }; /** * Set the access token expiration date (useful for refresh logics) */ var setExpiresAt = function(){ if (!service.token) { return; } if(typeof(service.token.expires_in) !== 'undefined' && service.token.expires_in !== null) { var expires_at = new Date(); expires_at.setSeconds(expires_at.getSeconds() + parseInt(service.token.expires_in)-60); // 60 seconds less to secure browser and response latency service.token.expires_at = expires_at; } else { service.token.expires_at = null; } }; /** * Set the timeout at which the expired event is fired */ var setExpiresAtEvent = function(){ // Don't bother if there's no expires token if (typeof(service.token.expires_at) === 'undefined' || service.token.expires_at === null) { return; } var time = (new Date(service.token.expires_at))-(new Date()); if(time){ $interval(function(){ $rootScope.$broadcast('oauth:expired', service.token); }, time, 1); } }; /** * Remove the oAuth2 pieces from the hash fragment */ var removeFragment = function(){ var curHash = $location.hash(); angular.forEach(oAuth2HashTokens,function(hashKey){ var re = new RegExp('&'+hashKey+'(=[^&]*)?|^'+hashKey+'(=[^&]*)?&?'); curHash = curHash.replace(re,''); }); $location.hash(curHash); }; return service; }]); 'use strict'; var endpointClient = angular.module('oauth.endpoint', []); endpointClient.factory('Endpoint', function() { var service = {}; /* * Defines the authorization URL */ service.set = function(configuration) { this.config = configuration; return this.get(); }; /* * Returns the authorization URL */ service.get = function( overrides ) { var params = angular.extend( {}, service.config, overrides); var oAuthScope = (params.scope) ? encodeURIComponent(params.scope) : '', state = (params.state) ? encodeURIComponent(params.state) : '', authPathHasQuery = (params.authorizePath.indexOf('?') === -1) ? false : true, appendChar = (authPathHasQuery) ? '&' : '?', //if authorizePath has ? already append OAuth2 params responseType = (params.responseType) ? encodeURIComponent(params.responseType) : ''; var url = params.site + params.authorizePath + appendChar + 'response_type=' + responseType + '&' + 'client_id=' + encodeURIComponent(params.clientId) + '&' + 'redirect_uri=' + encodeURIComponent(params.redirectUri) + '&' + 'scope=' + oAuthScope + '&' + 'state=' + state; if( params.nonce ) { url = url + '&nonce=' + params.nonce; } return url; }; /* * Redirects the app to the authorization URL */ service.redirect = function( overrides ) { var targetLocation = this.get( overrides ); window.location.replace(targetLocation); }; return service; }); 'use strict'; var profileClient = angular.module('oauth.profile', []); profileClient.factory('Profile', ['$http', 'AccessToken', '$rootScope', function($http, AccessToken, $rootScope) { var service = {}; var profile; service.find = function(uri) { var promise = $http.get(uri, { headers: headers() }); promise.success(function(response) { profile = response; $rootScope.$broadcast('oauth:profile', profile); }); return promise; }; service.get = function() { return profile; }; service.set = function(resource) { profile = resource; return profile; }; var headers = function() { return { Authorization: 'Bearer ' + AccessToken.get().access_token }; }; return service; }]); 'use strict'; var storageService = angular.module('oauth.storage', ['ngStorage']); storageService.factory('Storage', ['$rootScope', '$sessionStorage', '$localStorage', function($rootScope, $sessionStorage, $localStorage){ var service = { storage: $sessionStorage // By default }; /** * Deletes the item from storage, * Returns the item's previous value */ service.delete = function (name) { var stored = this.get(name); delete this.storage[name]; return stored; }; /** * Returns the item from storage */ service.get = function (name) { return this.storage[name]; }; /** * Sets the item in storage to the value specified * Returns the item's value */ service.set = function (name, value) { this.storage[name] = value; return this.get(name); }; /** * Change the storage service being used */ service.use = function (storage) { if (storage === 'sessionStorage') { this.storage = $sessionStorage; } else if (storage === 'localStorage') { this.storage = $localStorage; } }; return service; }]); 'use strict'; var interceptorService = angular.module('oauth.interceptor', []); interceptorService.factory('ExpiredInterceptor', ['Storage', '$rootScope', function (Storage, $rootScope) { var service = {}; service.request = function(config) { var token = Storage.get('token'); if (token && expired(token)) { $rootScope.$broadcast('oauth:expired', token); } return config; }; var expired = function(token) { return (token && token.expires_at && new Date(token.expires_at) < new Date()); }; return service; }]); 'use strict'; var directives = angular.module('oauth.directive', []); directives.directive('oauth', [ 'AccessToken', 'Endpoint', 'Profile', 'Storage', '$location', '$rootScope', '$compile', '$http', '$templateCache', function(AccessToken, Endpoint, Profile, Storage, $location, $rootScope, $compile, $http, $templateCache) { var definition = { restrict: 'AE', replace: true, scope: { site: '@', // (required) set the oauth server host (e.g. http://oauth.example.com) clientId: '@', // (required) client id redirectUri: '@', // (required) client redirect uri responseType: '@', // (optional) response type, defaults to token (use 'token' for implicit flow and 'code' for authorization code flow scope: '@', // (optional) scope profileUri: '@', // (optional) user profile uri (e.g http://example.com/me) template: '@', // (optional) template to render (e.g bower_components/oauth-ng/dist/views/templates/default.html) text: '@', // (optional) login text authorizePath: '@', // (optional) authorization url state: '@', // (optional) An arbitrary unique string created by your app to guard against Cross-site Request Forgery storage: '@' // (optional) Store token in 'sessionStorage' or 'localStorage', defaults to 'sessionStorage' } }; definition.link = function postLink(scope, element) { scope.show = 'none'; scope.$watch('clientId', function() { init(); }); var init = function() { initAttributes(); // sets defaults Storage.use(scope.storage);// set storage compile(); // compiles the desired layout Endpoint.set(scope); // sets the oauth authorization url AccessToken.set(scope); // sets the access token object (if existing, from fragment or session) initProfile(scope); // gets the profile resource (if existing the access token) initView(); // sets the view (logged in or out) }; var initAttributes = function() { scope.authorizePath = scope.authorizePath || '/oauth/authorize'; scope.tokenPath = scope.tokenPath || '/oauth/token'; scope.template = scope.template || '/dist/views/templates/default.html'; scope.responseType = scope.responseType || 'token'; scope.text = scope.text || 'Sign In'; scope.state = scope.state || undefined; scope.scope = scope.scope || undefined; scope.storage = scope.storage || 'sessionStorage'; }; var compile = function() { $http.get(scope.template, { cache: $templateCache }).success(function(html) { element.html(html); $compile(element.contents())(scope); }); }; var initProfile = function(scope) { var token = AccessToken.get(); if (token && token.access_token && scope.profileUri) { Profile.find(scope.profileUri).success(function(response) { scope.profile = response; }); } }; var initView = function() { var token = AccessToken.get(); if (!token) { return loggedOut(); // without access token it's logged out } if (token.access_token) { return authorized(); // if there is the access token we are done } if (token.error) { return denied(); // if the request has been denied we fire the denied event } }; scope.login = function() { Endpoint.redirect(); }; scope.logout = function() { AccessToken.destroy(scope); $rootScope.$broadcast('oauth:logout'); loggedOut(); }; scope.$on('oauth:expired', function() { AccessToken.destroy(scope); scope.show = 'logged-out'; }); // user is authorized var authorized = function() { $rootScope.$broadcast('oauth:authorized', AccessToken.get()); scope.show = 'logged-in'; }; // set the oauth directive to the logged-out status var loggedOut = function() { $rootScope.$broadcast('oauth:loggedOut'); scope.show = 'logged-out'; }; // set the oauth directive to the denied status var denied = function() { scope.show = 'denied'; $rootScope.$broadcast('oauth:denied'); }; // Updates the template at runtime scope.$on('oauth:template:update', function(event, template) { scope.template = template; compile(scope); }); // Hack to update the directive content on logout // TODO think to a cleaner solution scope.$on('$routeChangeSuccess', function () { init(); }); }; return definition; } ]);
27.984032
151
0.597504
a832783b139b46d01d7d55b9f5f282bca229874b
3,019
js
JavaScript
tasks/mustache_html.js
gruntjs-updater/grunt-mustache-html
3b2d79cae59502f3ee52491b5522c9d80c6645f5
[ "MIT" ]
8
2015-02-05T14:23:19.000Z
2016-02-23T13:27:45.000Z
tasks/mustache_html.js
gruntjs-updater/grunt-mustache-html
3b2d79cae59502f3ee52491b5522c9d80c6645f5
[ "MIT" ]
2
2015-02-05T15:47:43.000Z
2015-02-05T15:53:38.000Z
tasks/mustache_html.js
gruntjs-updater/grunt-mustache-html
3b2d79cae59502f3ee52491b5522c9d80c6645f5
[ "MIT" ]
4
2015-02-05T14:29:05.000Z
2019-02-16T02:52:10.000Z
/* * grunt-mustache-html * https://github.com/haio/grunt-mustache-html * * Copyright (c) 2013 zhongyu * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Please see the Grunt documentation for more information regarding task // creation: http://gruntjs.com/creating-tasks grunt.registerMultiTask('mustache_html', 'Compile mustache|hbs templates to HTML', function() { // Merge task-specific and/or target-specific options with these defaults. var options = this.options({ src: 'src', dist: 'dist', type: 'mustache' }); var globals = this.data.globals || {}; var fs = require('fs'), hogan = require('hogan.js'), jstSuffix = '.' + options.type, matcher = new RegExp('\\' + jstSuffix + '$'); // jsts path var layoutPath = options.src + '/layout' + jstSuffix, pagePath = options.src + '/pages', partialPath = options.src + '/partials'; var pageData = {}, partials = render(partialPath), pages = render(pagePath, partials); var layoutSrc = grunt.file.read(layoutPath), layout = hogan.compile(layoutSrc, { sectionTags: [{o:'_i', c:'i'}] }); each(pages, function (page, name) { partials.content = page; page = layout.render(pageData[name] || {}, partials); grunt.file.write(options.dist + '/' + name + '.html', page); }); function render(path, partials) { var pages = {}; grunt.file.recurse(path, function (abspath, rootdir, subdir, filename) { if (!filename.match(matcher)) return; var name = filename.replace(matcher, ''), dataPath = abspath.replace(matcher, '.json'), locals = merge({}, globals), data = {}; var templateSrc = grunt.file.read(abspath), template = hogan.compile(templateSrc, { sectionTags: [{o:'_i', c:'i'}] }); if (grunt.file.exists(dataPath)) { data = JSON.parse(grunt.file.read(dataPath), function (key, value) { if (value && (typeof value === 'string') && value.indexOf('function') === 0) { try { return new Function('return ' + value)(); } catch (ex) { //faulty function, just return it as a raw value } } return value; }); merge(locals, data); pageData[name] = locals; } pages[name] = template.render(locals, partials); }); return pages; } function each(obj, iter) { var keys = Object.keys(obj); for (var i=0,l=keys.length; i<l; i++) { iter.call(null, obj[keys[i]], keys[i]); } } function merge(init, extended) { each(extended, function(v, k) { init[k] = v; }); return init; } }); };
29.891089
98
0.526996
a838a341889b32588af65e34805e04afd4d98657
1,215
js
JavaScript
src/data/types/UserType.js
transitlinks/web-app
50fd20d05617e3618a0801c0dfe77268d4d4bfb2
[ "MIT" ]
1
2016-11-20T23:15:57.000Z
2016-11-20T23:15:57.000Z
src/data/types/UserType.js
transitlinks/web-app
50fd20d05617e3618a0801c0dfe77268d4d4bfb2
[ "MIT" ]
5
2021-03-31T08:00:37.000Z
2022-02-27T11:22:12.000Z
src/data/types/UserType.js
transitlinks/web-app
50fd20d05617e3618a0801c0dfe77268d4d4bfb2
[ "MIT" ]
null
null
null
import { GraphQLObjectType, GraphQLInputObjectType, GraphQLString, GraphQLNonNull, GraphQLInt, GraphQLFloat, } from 'graphql'; export const UserType = new GraphQLObjectType({ name: 'User', fields: { uuid: { type: new GraphQLNonNull(GraphQLString) }, email: { type: GraphQLString }, username: { type: GraphQLString }, firstName: { type: GraphQLString }, lastName: { type: GraphQLString }, photo: { type: GraphQLString }, avatar: { type: GraphQLString }, avatarSource: { type: GraphQLString }, avatarX: { type: GraphQLFloat }, avatarY: { type: GraphQLFloat }, avatarScale: { type: GraphQLFloat }, logins: { type: GraphQLInt } }, }); export const UserInputType = new GraphQLInputObjectType({ name: 'UserInput', description: 'Input properties for User', fields: () => ({ uuid: { type: GraphQLString }, email: { type: GraphQLString }, username: { type: GraphQLString }, password: { type: GraphQLString }, avatar: { type: GraphQLString }, avatarSource: { type: GraphQLString }, avatarX: { type: GraphQLFloat }, avatarY: { type: GraphQLFloat }, avatarScale: { type: GraphQLFloat } }) }); export default UserType;
28.255814
57
0.659259
a8325937115b5d63660dc154544144f2f6dc4c26
1,978
js
JavaScript
docker-images/taigav2/taiga-front-dist/dist/v-1487165065370/locales/moment-locales/el.js
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-front-dist/dist/v-1487165065370/locales/moment-locales/el.js
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
docker-images/taigav2/taiga-front-dist/dist/v-1487165065370/locales/moment-locales/el.js
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["moment"],t):t(e.moment)}(this,function(e){"use strict";function t(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}var n=e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,n){var _=this._calendarEl[e],i=n&&n.hours();return t(_)&&(_=_.apply(n)),_.replace("{}",i%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return n});
1,978
1,978
0.732053
a8217cc7f20bd9360cdd1789107316c050d1968e
911
js
JavaScript
enginejs/modules/enginejs-model.js
drummertom999/nebulous-workshop
7a9b909ffe4e52959146f67fe511b2f9bd9c04aa
[ "MIT" ]
1
2017-10-19T18:39:15.000Z
2017-10-19T18:39:15.000Z
enginejs/modules/enginejs-model.js
drummertom999/nebulous-workshop
7a9b909ffe4e52959146f67fe511b2f9bd9c04aa
[ "MIT" ]
null
null
null
enginejs/modules/enginejs-model.js
drummertom999/nebulous-workshop
7a9b909ffe4e52959146f67fe511b2f9bd9c04aa
[ "MIT" ]
null
null
null
// ******************************************* //# sourceURL=modules/enginejs-model.js // ******************************************* Engine.Model = { Load : function(descriptor, callback) { Engine.Net.FetchResource(descriptor.file, function(model_json) { var model_object = jQuery.parseJSON(model_json); // For each primitive... var prims = model_object.model_data.primitives; for(var i = 0; i < prims.length; ++i) { // Build vertex buffers var vertex_buffers = prims[i].vertex_buffers; for(var j = 0; j < vertex_buffers.length; ++j) { // Place vertex buffer object immediately inside buffer object vertex_buffers[j].vbo = Engine.Gfx.CreateVertexBuffer(vertex_buffers[j]); } } // Finalise model_object.is_loaded = true; callback(model_object); }); }, }; // Resource loading Engine.Resource.RegisterLoadFunction("model", Engine.Model.Load);
26.028571
78
0.616905
a825eb5ddfdd46ab933a5f2619c6622c0f3f7556
594
js
JavaScript
app/modules/dashboard/controllers/achievements.js
udaysinghkushwah/Resume-Angular-Dahsboard
f9fbf01545b94dac6fda8c09d8c12a78aadc770b
[ "MIT" ]
1
2017-11-22T13:50:05.000Z
2017-11-22T13:50:05.000Z
app/modules/dashboard/controllers/achievements.js
udaysinghkushwah/Resume-Angular-Dahsboard
f9fbf01545b94dac6fda8c09d8c12a78aadc770b
[ "MIT" ]
null
null
null
app/modules/dashboard/controllers/achievements.js
udaysinghkushwah/Resume-Angular-Dahsboard
f9fbf01545b94dac6fda8c09d8c12a78aadc770b
[ "MIT" ]
null
null
null
/*========================================================== Author : UDAYSINGH KUSHWAH Date Created: 11 Dec 2017 Description : Controller to handle Achievement page Change Log s.no date author description ===========================================================*/ dashboard.controller("AchievementController", ['$rootScope', '$scope', '$state', '$location', 'dashboardService', 'Flash', function ($rootScope, $scope, $state, $location, dashboardService, Flash) { var vm = this; console.log("coming to Achievement controller"); }]);
31.263158
122
0.523569
a81e6f3d8383880b68ba963e9382f92da6355278
1,515
js
JavaScript
public/js/showrecord.js
hongzhiyu/easyERP
d0c769ac46c34b0221898efd05dadd4fe0cebd1b
[ "MIT" ]
1
2018-02-13T03:19:18.000Z
2018-02-13T03:19:18.000Z
public/js/showrecord.js
hongzhiyu/easyERP
d0c769ac46c34b0221898efd05dadd4fe0cebd1b
[ "MIT" ]
null
null
null
public/js/showrecord.js
hongzhiyu/easyERP
d0c769ac46c34b0221898efd05dadd4fe0cebd1b
[ "MIT" ]
null
null
null
$(function(){ var record_table = $('#record_table'); //-->reader.php获取数据 var init_url = 'reader.php'; // var inputfile = $("#inputfile").val(); // var year = $("select").eq(0).val(); // var month = $("select").eq(1).val(); // var post_fields = { // inputfile : inputfile, // inputyear : year, // inputmonth : month // }; $('#submit').click(function(){ // console.log(post_fields); // $.post(init_url, post_fields, function(data){ // alert('ok'); // var records = $.parseJSON(data); // for (var i = 0; i < records.length; i++) { // var row = createRow(records[i],i); // record_table.append(row); // } // }); var form = new FormData(document.getElementById("form")); $.ajax({ url:'reader.php', type:'post', data:form, cache:false, processData: false, contentType: false, success:function(data){ var records = $.parseJSON(data); for (var i = 0; i < records.length; i++) { var row = createRow(records[i],i); record_table.append(row); } }, error:function(e){ alert("网络错误,请重试!!"); } }); }); }); function createRow(data,i){ var row = $('<tr></tr>'); var cell = $('<td></td>'); cell.append(i+1); row.append(cell); var cell = $('<td></td>'); for (var j = 0; j < 6; j++) { cell.append(data[j][0]); if (!data[j][1]) { cell.css("background-color","red"); } row.append(cell); var cell = $('<td></td>'); } return row; }
23.307692
59
0.521452
a83730f7c46f7a1fd1d0f3e1cbcdf7a084db5b98
2,433
js
JavaScript
app/static/vendors/bower_components/moment/src/locale/cy.js
awkz/sipd
ada3f6e9d10ddcfdf23fa3da36f3825257db7986
[ "MIT" ]
1
2018-04-21T11:00:02.000Z
2018-04-21T11:00:02.000Z
assets/backend/vendors/bower_components/moment/src/locale/cy.js
DenisRamdan92/fc_inrelt_cyberlab
74f92676d88da7002e2b0705f9528eee9521d0e5
[ "MIT" ]
1
2018-05-10T17:01:07.000Z
2018-05-10T17:01:07.000Z
assets/backend/vendors/bower_components/moment/src/locale/cy.js
DenisRamdan92/fc_inrelt_cyberlab
74f92676d88da7002e2b0705f9528eee9521d0e5
[ "MIT" ]
null
null
null
//! moment.js locale configuration //! locale : Welsh [cy] //! author : Robert Allen import moment from '../moment'; export default moment.defineLocale('cy', { months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'), monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'), weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'), weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), weekdaysParseExact : true, // time formats are the same as en-gb longDateFormat: { LT: 'HH:mm', LTS : 'HH:mm:ss', L: 'DD/MM/YYYY', LL: 'D MMMM YYYY', LLL: 'D MMMM YYYY HH:mm', LLLL: 'dddd, D MMMM YYYY HH:mm' }, calendar: { sameDay: '[Heddiw am] LT', nextDay: '[Yfory am] LT', nextWeek: 'dddd [am] LT', lastDay: '[Ddoe am] LT', lastWeek: 'dddd [diwethaf am] LT', sameElse: 'L' }, relativeTime: { future: 'mewn %s', past: '%s yn ôl', s: 'ychydig eiliadau', m: 'munud', mm: '%d munud', h: 'awr', hh: '%d awr', d: 'diwrnod', dd: '%d diwrnod', M: 'mis', MM: '%d mis', y: 'blwyddyn', yy: '%d flynedd' }, ordinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh ordinal: function (number) { var b = number, output = '', lookup = [ '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed ]; if (b > 20) { if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { output = 'fed'; // not 30ain, 70ain or 90ain } else { output = 'ain'; } } else if (b > 0) { output = lookup[b]; } return number + output; }, week : { dow : 1, // Monday is the first day of the week. doy : 4 // The week that contains Jan 4th is the first week of the year. } });
33.791667
113
0.496095
a819219003743ee0f46da73880fccca2677f3a95
47,228
js
JavaScript
js/Compiler-Inlining.deploy.js
clementbera/amber
51e52b0e26a6c01d9ec0ea0c60cdb2506370f60a
[ "MIT" ]
1
2018-06-10T17:22:37.000Z
2018-06-10T17:22:37.000Z
js/Compiler-Inlining.deploy.js
clementbera/amber
51e52b0e26a6c01d9ec0ea0c60cdb2506370f60a
[ "MIT" ]
null
null
null
js/Compiler-Inlining.deploy.js
clementbera/amber
51e52b0e26a6c01d9ec0ea0c60cdb2506370f60a
[ "MIT" ]
null
null
null
smalltalk.addPackage('Compiler-Inlining'); smalltalk.addClass('IRInlinedAssignment', smalltalk.IRAssignment, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "accept:", fn: function (aVisitor){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(aVisitor)._visitIRInlinedAssignment_(self); return $1; }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.IRInlinedAssignment)})}, messageSends: ["visitIRInlinedAssignment:"]}), smalltalk.IRInlinedAssignment); smalltalk.addMethod( smalltalk.method({ selector: "isInlined", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { return true; }, function($ctx1) {$ctx1.fill(self,"isInlined",{},smalltalk.IRInlinedAssignment)})}, messageSends: []}), smalltalk.IRInlinedAssignment); smalltalk.addClass('IRInlinedClosure', smalltalk.IRClosure, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "accept:", fn: function (aVisitor){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedClosure_(self); return self}, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.IRInlinedClosure)})}, messageSends: ["visitIRInlinedClosure:"]}), smalltalk.IRInlinedClosure); smalltalk.addMethod( smalltalk.method({ selector: "isInlined", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { return true; }, function($ctx1) {$ctx1.fill(self,"isInlined",{},smalltalk.IRInlinedClosure)})}, messageSends: []}), smalltalk.IRInlinedClosure); smalltalk.addClass('IRInlinedReturn', smalltalk.IRReturn, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "accept:", fn: function (aVisitor){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(aVisitor)._visitIRInlinedReturn_(self); return $1; }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.IRInlinedReturn)})}, messageSends: ["visitIRInlinedReturn:"]}), smalltalk.IRInlinedReturn); smalltalk.addMethod( smalltalk.method({ selector: "isInlined", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { return true; }, function($ctx1) {$ctx1.fill(self,"isInlined",{},smalltalk.IRInlinedReturn)})}, messageSends: []}), smalltalk.IRInlinedReturn); smalltalk.addClass('IRInlinedSend', smalltalk.IRSend, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "accept:", fn: function (aVisitor){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitInlinedSend_(self); return self}, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.IRInlinedSend)})}, messageSends: ["visitInlinedSend:"]}), smalltalk.IRInlinedSend); smalltalk.addMethod( smalltalk.method({ selector: "isInlined", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { return true; }, function($ctx1) {$ctx1.fill(self,"isInlined",{},smalltalk.IRInlinedSend)})}, messageSends: []}), smalltalk.IRInlinedSend); smalltalk.addClass('IRInlinedIfFalse', smalltalk.IRInlinedSend, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "accept:", fn: function (aVisitor){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedIfFalse_(self); return self}, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.IRInlinedIfFalse)})}, messageSends: ["visitIRInlinedIfFalse:"]}), smalltalk.IRInlinedIfFalse); smalltalk.addClass('IRInlinedIfNilIfNotNil', smalltalk.IRInlinedSend, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "accept:", fn: function (aVisitor){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedIfNilIfNotNil_(self); return self}, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.IRInlinedIfNilIfNotNil)})}, messageSends: ["visitIRInlinedIfNilIfNotNil:"]}), smalltalk.IRInlinedIfNilIfNotNil); smalltalk.addClass('IRInlinedIfTrue', smalltalk.IRInlinedSend, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "accept:", fn: function (aVisitor){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedIfTrue_(self); return self}, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.IRInlinedIfTrue)})}, messageSends: ["visitIRInlinedIfTrue:"]}), smalltalk.IRInlinedIfTrue); smalltalk.addClass('IRInlinedIfTrueIfFalse', smalltalk.IRInlinedSend, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "accept:", fn: function (aVisitor){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedIfTrueIfFalse_(self); return self}, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.IRInlinedIfTrueIfFalse)})}, messageSends: ["visitIRInlinedIfTrueIfFalse:"]}), smalltalk.IRInlinedIfTrueIfFalse); smalltalk.addClass('IRInlinedSequence', smalltalk.IRBlockSequence, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "accept:", fn: function (aVisitor){ var self=this; return smalltalk.withContext(function($ctx1) { _st(aVisitor)._visitIRInlinedSequence_(self); return self}, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.IRInlinedSequence)})}, messageSends: ["visitIRInlinedSequence:"]}), smalltalk.IRInlinedSequence); smalltalk.addMethod( smalltalk.method({ selector: "isInlined", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { return true; }, function($ctx1) {$ctx1.fill(self,"isInlined",{},smalltalk.IRInlinedSequence)})}, messageSends: []}), smalltalk.IRInlinedSequence); smalltalk.addClass('IRInliner', smalltalk.IRVisitor, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "assignmentInliner", fn: function (){ var self=this; function $IRAssignmentInliner(){return smalltalk.IRAssignmentInliner||(typeof IRAssignmentInliner=="undefined"?nil:IRAssignmentInliner)} return smalltalk.withContext(function($ctx1) { var $2,$3,$1; $2=_st($IRAssignmentInliner())._new(); _st($2)._translator_(self); $3=_st($2)._yourself(); $1=$3; return $1; }, function($ctx1) {$ctx1.fill(self,"assignmentInliner",{},smalltalk.IRInliner)})}, messageSends: ["translator:", "new", "yourself"]}), smalltalk.IRInliner); smalltalk.addMethod( smalltalk.method({ selector: "returnInliner", fn: function (){ var self=this; function $IRReturnInliner(){return smalltalk.IRReturnInliner||(typeof IRReturnInliner=="undefined"?nil:IRReturnInliner)} return smalltalk.withContext(function($ctx1) { var $2,$3,$1; $2=_st($IRReturnInliner())._new(); _st($2)._translator_(self); $3=_st($2)._yourself(); $1=$3; return $1; }, function($ctx1) {$ctx1.fill(self,"returnInliner",{},smalltalk.IRInliner)})}, messageSends: ["translator:", "new", "yourself"]}), smalltalk.IRInliner); smalltalk.addMethod( smalltalk.method({ selector: "sendInliner", fn: function (){ var self=this; function $IRSendInliner(){return smalltalk.IRSendInliner||(typeof IRSendInliner=="undefined"?nil:IRSendInliner)} return smalltalk.withContext(function($ctx1) { var $2,$3,$1; $2=_st($IRSendInliner())._new(); _st($2)._translator_(self); $3=_st($2)._yourself(); $1=$3; return $1; }, function($ctx1) {$ctx1.fill(self,"sendInliner",{},smalltalk.IRInliner)})}, messageSends: ["translator:", "new", "yourself"]}), smalltalk.IRInliner); smalltalk.addMethod( smalltalk.method({ selector: "shouldInlineAssignment:", fn: function (anIRAssignment){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(_st(_st(anIRAssignment)._isInlined())._not())._and_((function(){ return smalltalk.withContext(function($ctx2) { return _st(_st(_st(_st(anIRAssignment)._instructions())._last())._isSend())._and_((function(){ return smalltalk.withContext(function($ctx3) { return _st(self)._shouldInlineSend_(_st(_st(anIRAssignment)._instructions())._last()); }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})})); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); return $1; }, function($ctx1) {$ctx1.fill(self,"shouldInlineAssignment:",{anIRAssignment:anIRAssignment},smalltalk.IRInliner)})}, messageSends: ["and:", "shouldInlineSend:", "last", "instructions", "isSend", "not", "isInlined"]}), smalltalk.IRInliner); smalltalk.addMethod( smalltalk.method({ selector: "shouldInlineReturn:", fn: function (anIRReturn){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(_st(_st(anIRReturn)._isInlined())._not())._and_((function(){ return smalltalk.withContext(function($ctx2) { return _st(_st(_st(_st(anIRReturn)._instructions())._first())._isSend())._and_((function(){ return smalltalk.withContext(function($ctx3) { return _st(self)._shouldInlineSend_(_st(_st(anIRReturn)._instructions())._first()); }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})})); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); return $1; }, function($ctx1) {$ctx1.fill(self,"shouldInlineReturn:",{anIRReturn:anIRReturn},smalltalk.IRInliner)})}, messageSends: ["and:", "shouldInlineSend:", "first", "instructions", "isSend", "not", "isInlined"]}), smalltalk.IRInliner); smalltalk.addMethod( smalltalk.method({ selector: "shouldInlineSend:", fn: function (anIRSend){ var self=this; function $IRSendInliner(){return smalltalk.IRSendInliner||(typeof IRSendInliner=="undefined"?nil:IRSendInliner)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st(_st(_st(anIRSend)._isInlined())._not())._and_((function(){ return smalltalk.withContext(function($ctx2) { return _st($IRSendInliner())._shouldInline_(anIRSend); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); return $1; }, function($ctx1) {$ctx1.fill(self,"shouldInlineSend:",{anIRSend:anIRSend},smalltalk.IRInliner)})}, messageSends: ["and:", "shouldInline:", "not", "isInlined"]}), smalltalk.IRInliner); smalltalk.addMethod( smalltalk.method({ selector: "transformNonLocalReturn:", fn: function (anIRNonLocalReturn){ var self=this; var localReturn; function $IRReturn(){return smalltalk.IRReturn||(typeof IRReturn=="undefined"?nil:IRReturn)} return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5; $1=_st(_st(anIRNonLocalReturn)._scope())._canInlineNonLocalReturns(); if(smalltalk.assert($1)){ _st(_st(_st(anIRNonLocalReturn)._scope())._methodScope())._removeNonLocalReturn_(_st(anIRNonLocalReturn)._scope()); $2=_st($IRReturn())._new(); _st($2)._scope_(_st(anIRNonLocalReturn)._scope()); $3=_st($2)._yourself(); localReturn=$3; localReturn; _st(_st(anIRNonLocalReturn)._instructions())._do_((function(each){ return smalltalk.withContext(function($ctx2) { return _st(localReturn)._add_(each); }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})); _st(anIRNonLocalReturn)._replaceWith_(localReturn); $4=localReturn; return $4; }; $5=smalltalk.IRVisitor.fn.prototype._visitIRNonLocalReturn_.apply(_st(self), [anIRNonLocalReturn]); return $5; }, function($ctx1) {$ctx1.fill(self,"transformNonLocalReturn:",{anIRNonLocalReturn:anIRNonLocalReturn,localReturn:localReturn},smalltalk.IRInliner)})}, messageSends: ["ifTrue:", "removeNonLocalReturn:", "scope", "methodScope", "scope:", "new", "yourself", "do:", "add:", "instructions", "replaceWith:", "canInlineNonLocalReturns", "visitIRNonLocalReturn:"]}), smalltalk.IRInliner); smalltalk.addMethod( smalltalk.method({ selector: "visitIRAssignment:", fn: function (anIRAssignment){ var self=this; return smalltalk.withContext(function($ctx1) { var $2,$1; $2=_st(self)._shouldInlineAssignment_(anIRAssignment); if(smalltalk.assert($2)){ $1=_st(_st(self)._assignmentInliner())._inlineAssignment_(anIRAssignment); } else { $1=smalltalk.IRVisitor.fn.prototype._visitIRAssignment_.apply(_st(self), [anIRAssignment]); }; return $1; }, function($ctx1) {$ctx1.fill(self,"visitIRAssignment:",{anIRAssignment:anIRAssignment},smalltalk.IRInliner)})}, messageSends: ["ifTrue:ifFalse:", "inlineAssignment:", "assignmentInliner", "visitIRAssignment:", "shouldInlineAssignment:"]}), smalltalk.IRInliner); smalltalk.addMethod( smalltalk.method({ selector: "visitIRNonLocalReturn:", fn: function (anIRNonLocalReturn){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self)._transformNonLocalReturn_(anIRNonLocalReturn); return $1; }, function($ctx1) {$ctx1.fill(self,"visitIRNonLocalReturn:",{anIRNonLocalReturn:anIRNonLocalReturn},smalltalk.IRInliner)})}, messageSends: ["transformNonLocalReturn:"]}), smalltalk.IRInliner); smalltalk.addMethod( smalltalk.method({ selector: "visitIRReturn:", fn: function (anIRReturn){ var self=this; return smalltalk.withContext(function($ctx1) { var $2,$1; $2=_st(self)._shouldInlineReturn_(anIRReturn); if(smalltalk.assert($2)){ $1=_st(_st(self)._returnInliner())._inlineReturn_(anIRReturn); } else { $1=smalltalk.IRVisitor.fn.prototype._visitIRReturn_.apply(_st(self), [anIRReturn]); }; return $1; }, function($ctx1) {$ctx1.fill(self,"visitIRReturn:",{anIRReturn:anIRReturn},smalltalk.IRInliner)})}, messageSends: ["ifTrue:ifFalse:", "inlineReturn:", "returnInliner", "visitIRReturn:", "shouldInlineReturn:"]}), smalltalk.IRInliner); smalltalk.addMethod( smalltalk.method({ selector: "visitIRSend:", fn: function (anIRSend){ var self=this; return smalltalk.withContext(function($ctx1) { var $2,$1; $2=_st(self)._shouldInlineSend_(anIRSend); if(smalltalk.assert($2)){ $1=_st(_st(self)._sendInliner())._inlineSend_(anIRSend); } else { $1=smalltalk.IRVisitor.fn.prototype._visitIRSend_.apply(_st(self), [anIRSend]); }; return $1; }, function($ctx1) {$ctx1.fill(self,"visitIRSend:",{anIRSend:anIRSend},smalltalk.IRInliner)})}, messageSends: ["ifTrue:ifFalse:", "inlineSend:", "sendInliner", "visitIRSend:", "shouldInlineSend:"]}), smalltalk.IRInliner); smalltalk.addClass('IRInliningJSTranslator', smalltalk.IRJSTranslator, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "visitIRInlinedAssignment:", fn: function (anIRInlinedAssignment){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self)._visit_(_st(_st(anIRInlinedAssignment)._instructions())._last()); return self}, function($ctx1) {$ctx1.fill(self,"visitIRInlinedAssignment:",{anIRInlinedAssignment:anIRInlinedAssignment},smalltalk.IRInliningJSTranslator)})}, messageSends: ["visit:", "last", "instructions"]}), smalltalk.IRInliningJSTranslator); smalltalk.addMethod( smalltalk.method({ selector: "visitIRInlinedClosure:", fn: function (anIRInlinedClosure){ var self=this; return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutVars_(_st(_st(anIRInlinedClosure)._tempDeclarations())._collect_((function(each){ return smalltalk.withContext(function($ctx2) { return _st(_st(each)._name())._asVariableName(); }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}))); _st(_st(anIRInlinedClosure)._instructions())._do_((function(each){ return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(each); }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})); return self}, function($ctx1) {$ctx1.fill(self,"visitIRInlinedClosure:",{anIRInlinedClosure:anIRInlinedClosure},smalltalk.IRInliningJSTranslator)})}, messageSends: ["nextPutVars:", "collect:", "asVariableName", "name", "tempDeclarations", "stream", "do:", "visit:", "instructions"]}), smalltalk.IRInliningJSTranslator); smalltalk.addMethod( smalltalk.method({ selector: "visitIRInlinedIfFalse:", fn: function (anIRInlinedIfFalse){ var self=this; return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutIf_with_((function(){ return smalltalk.withContext(function($ctx2) { _st(_st(self)._stream())._nextPutAll_("! smalltalk.assert("); _st(self)._visit_(_st(_st(anIRInlinedIfFalse)._instructions())._first()); return _st(_st(self)._stream())._nextPutAll_(")"); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(function(){ return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfFalse)._instructions())._last()); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); return self}, function($ctx1) {$ctx1.fill(self,"visitIRInlinedIfFalse:",{anIRInlinedIfFalse:anIRInlinedIfFalse},smalltalk.IRInliningJSTranslator)})}, messageSends: ["nextPutIf:with:", "nextPutAll:", "stream", "visit:", "first", "instructions", "last"]}), smalltalk.IRInliningJSTranslator); smalltalk.addMethod( smalltalk.method({ selector: "visitIRInlinedIfNil:", fn: function (anIRInlinedIfNil){ var self=this; return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutIf_with_((function(){ return smalltalk.withContext(function($ctx2) { _st(_st(self)._stream())._nextPutAll_("($receiver = "); _st(self)._visit_(_st(_st(anIRInlinedIfNil)._instructions())._first()); return _st(_st(self)._stream())._nextPutAll_(") == nil || $receiver == undefined"); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(function(){ return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfNil)._instructions())._last()); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); return self}, function($ctx1) {$ctx1.fill(self,"visitIRInlinedIfNil:",{anIRInlinedIfNil:anIRInlinedIfNil},smalltalk.IRInliningJSTranslator)})}, messageSends: ["nextPutIf:with:", "nextPutAll:", "stream", "visit:", "first", "instructions", "last"]}), smalltalk.IRInliningJSTranslator); smalltalk.addMethod( smalltalk.method({ selector: "visitIRInlinedIfNilIfNotNil:", fn: function (anIRInlinedIfNilIfNotNil){ var self=this; return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutIfElse_with_with_((function(){ return smalltalk.withContext(function($ctx2) { _st(_st(self)._stream())._nextPutAll_("($receiver = "); _st(self)._visit_(_st(_st(anIRInlinedIfNilIfNotNil)._instructions())._first()); return _st(_st(self)._stream())._nextPutAll_(") == nil || $receiver == undefined"); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(function(){ return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfNilIfNotNil)._instructions())._second()); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(function(){ return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfNilIfNotNil)._instructions())._third()); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); return self}, function($ctx1) {$ctx1.fill(self,"visitIRInlinedIfNilIfNotNil:",{anIRInlinedIfNilIfNotNil:anIRInlinedIfNilIfNotNil},smalltalk.IRInliningJSTranslator)})}, messageSends: ["nextPutIfElse:with:with:", "nextPutAll:", "stream", "visit:", "first", "instructions", "second", "third"]}), smalltalk.IRInliningJSTranslator); smalltalk.addMethod( smalltalk.method({ selector: "visitIRInlinedIfTrue:", fn: function (anIRInlinedIfTrue){ var self=this; return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutIf_with_((function(){ return smalltalk.withContext(function($ctx2) { _st(_st(self)._stream())._nextPutAll_("smalltalk.assert("); _st(self)._visit_(_st(_st(anIRInlinedIfTrue)._instructions())._first()); return _st(_st(self)._stream())._nextPutAll_(")"); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(function(){ return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfTrue)._instructions())._last()); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); return self}, function($ctx1) {$ctx1.fill(self,"visitIRInlinedIfTrue:",{anIRInlinedIfTrue:anIRInlinedIfTrue},smalltalk.IRInliningJSTranslator)})}, messageSends: ["nextPutIf:with:", "nextPutAll:", "stream", "visit:", "first", "instructions", "last"]}), smalltalk.IRInliningJSTranslator); smalltalk.addMethod( smalltalk.method({ selector: "visitIRInlinedIfTrueIfFalse:", fn: function (anIRInlinedIfTrueIfFalse){ var self=this; return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutIfElse_with_with_((function(){ return smalltalk.withContext(function($ctx2) { _st(_st(self)._stream())._nextPutAll_("smalltalk.assert("); _st(self)._visit_(_st(_st(anIRInlinedIfTrueIfFalse)._instructions())._first()); return _st(_st(self)._stream())._nextPutAll_(")"); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(function(){ return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfTrueIfFalse)._instructions())._second()); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(function(){ return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedIfTrueIfFalse)._instructions())._third()); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); return self}, function($ctx1) {$ctx1.fill(self,"visitIRInlinedIfTrueIfFalse:",{anIRInlinedIfTrueIfFalse:anIRInlinedIfTrueIfFalse},smalltalk.IRInliningJSTranslator)})}, messageSends: ["nextPutIfElse:with:with:", "nextPutAll:", "stream", "visit:", "first", "instructions", "second", "third"]}), smalltalk.IRInliningJSTranslator); smalltalk.addMethod( smalltalk.method({ selector: "visitIRInlinedNonLocalReturn:", fn: function (anIRInlinedReturn){ var self=this; return smalltalk.withContext(function($ctx1) { _st(_st(self)._stream())._nextPutStatementWith_((function(){ return smalltalk.withContext(function($ctx2) { return _st(self)._visit_(_st(_st(anIRInlinedReturn)._instructions())._last()); }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); _st(_st(self)._stream())._nextPutNonLocalReturnWith_((function(){ return smalltalk.withContext(function($ctx2) { }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); return self}, function($ctx1) {$ctx1.fill(self,"visitIRInlinedNonLocalReturn:",{anIRInlinedReturn:anIRInlinedReturn},smalltalk.IRInliningJSTranslator)})}, messageSends: ["nextPutStatementWith:", "visit:", "last", "instructions", "stream", "nextPutNonLocalReturnWith:"]}), smalltalk.IRInliningJSTranslator); smalltalk.addMethod( smalltalk.method({ selector: "visitIRInlinedReturn:", fn: function (anIRInlinedReturn){ var self=this; return smalltalk.withContext(function($ctx1) { _st(self)._visit_(_st(_st(anIRInlinedReturn)._instructions())._last()); return self}, function($ctx1) {$ctx1.fill(self,"visitIRInlinedReturn:",{anIRInlinedReturn:anIRInlinedReturn},smalltalk.IRInliningJSTranslator)})}, messageSends: ["visit:", "last", "instructions"]}), smalltalk.IRInliningJSTranslator); smalltalk.addMethod( smalltalk.method({ selector: "visitIRInlinedSequence:", fn: function (anIRInlinedSequence){ var self=this; return smalltalk.withContext(function($ctx1) { _st(_st(anIRInlinedSequence)._instructions())._do_((function(each){ return smalltalk.withContext(function($ctx2) { return _st(_st(self)._stream())._nextPutStatementWith_((function(){ return smalltalk.withContext(function($ctx3) { return _st(self)._visit_(each); }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})})); }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})); return self}, function($ctx1) {$ctx1.fill(self,"visitIRInlinedSequence:",{anIRInlinedSequence:anIRInlinedSequence},smalltalk.IRInliningJSTranslator)})}, messageSends: ["do:", "nextPutStatementWith:", "visit:", "stream", "instructions"]}), smalltalk.IRInliningJSTranslator); smalltalk.addClass('IRSendInliner', smalltalk.Object, ['send', 'translator'], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "ifFalse:", fn: function (anIRInstruction){ var self=this; function $IRInlinedIfFalse(){return smalltalk.IRInlinedIfFalse||(typeof IRInlinedIfFalse=="undefined"?nil:IRInlinedIfFalse)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self)._inlinedSend_with_(_st($IRInlinedIfFalse())._new(),anIRInstruction); return $1; }, function($ctx1) {$ctx1.fill(self,"ifFalse:",{anIRInstruction:anIRInstruction},smalltalk.IRSendInliner)})}, messageSends: ["inlinedSend:with:", "new"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "ifFalse:ifTrue:", fn: function (anIRInstruction,anotherIRInstruction){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self)._perform_withArguments_("ifTrue:ifFalse:",[anotherIRInstruction,anIRInstruction]); return $1; }, function($ctx1) {$ctx1.fill(self,"ifFalse:ifTrue:",{anIRInstruction:anIRInstruction,anotherIRInstruction:anotherIRInstruction},smalltalk.IRSendInliner)})}, messageSends: ["perform:withArguments:"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "ifNil:", fn: function (anIRInstruction){ var self=this; function $IRInlinedIfNilIfNotNil(){return smalltalk.IRInlinedIfNilIfNotNil||(typeof IRInlinedIfNilIfNotNil=="undefined"?nil:IRInlinedIfNilIfNotNil)} function $IRClosure(){return smalltalk.IRClosure||(typeof IRClosure=="undefined"?nil:IRClosure)} function $IRBlockSequence(){return smalltalk.IRBlockSequence||(typeof IRBlockSequence=="undefined"?nil:IRBlockSequence)} return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$5,$1; $2=_st($IRClosure())._new(); _st($2)._scope_(_st(_st(anIRInstruction)._scope())._copy()); $3=_st($IRBlockSequence())._new(); _st($3)._add_(_st(_st(_st(self)._send())._instructions())._first()); $4=_st($3)._yourself(); _st($2)._add_($4); $5=_st($2)._yourself(); $1=_st(self)._inlinedSend_with_with_(_st($IRInlinedIfNilIfNotNil())._new(),anIRInstruction,$5); return $1; }, function($ctx1) {$ctx1.fill(self,"ifNil:",{anIRInstruction:anIRInstruction},smalltalk.IRSendInliner)})}, messageSends: ["inlinedSend:with:with:", "new", "scope:", "copy", "scope", "add:", "first", "instructions", "send", "yourself"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "ifNil:ifNotNil:", fn: function (anIRInstruction,anotherIRInstruction){ var self=this; function $IRInlinedIfNilIfNotNil(){return smalltalk.IRInlinedIfNilIfNotNil||(typeof IRInlinedIfNilIfNotNil=="undefined"?nil:IRInlinedIfNilIfNotNil)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self)._inlinedSend_with_with_(_st($IRInlinedIfNilIfNotNil())._new(),anIRInstruction,anotherIRInstruction); return $1; }, function($ctx1) {$ctx1.fill(self,"ifNil:ifNotNil:",{anIRInstruction:anIRInstruction,anotherIRInstruction:anotherIRInstruction},smalltalk.IRSendInliner)})}, messageSends: ["inlinedSend:with:with:", "new"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "ifNotNil:", fn: function (anIRInstruction){ var self=this; function $IRInlinedIfNilIfNotNil(){return smalltalk.IRInlinedIfNilIfNotNil||(typeof IRInlinedIfNilIfNotNil=="undefined"?nil:IRInlinedIfNilIfNotNil)} function $IRClosure(){return smalltalk.IRClosure||(typeof IRClosure=="undefined"?nil:IRClosure)} function $IRBlockSequence(){return smalltalk.IRBlockSequence||(typeof IRBlockSequence=="undefined"?nil:IRBlockSequence)} return smalltalk.withContext(function($ctx1) { var $2,$3,$4,$5,$1; $2=_st($IRClosure())._new(); _st($2)._scope_(_st(_st(anIRInstruction)._scope())._copy()); $3=_st($IRBlockSequence())._new(); _st($3)._add_(_st(_st(_st(self)._send())._instructions())._first()); $4=_st($3)._yourself(); _st($2)._add_($4); $5=_st($2)._yourself(); $1=_st(self)._inlinedSend_with_with_(_st($IRInlinedIfNilIfNotNil())._new(),$5,anIRInstruction); return $1; }, function($ctx1) {$ctx1.fill(self,"ifNotNil:",{anIRInstruction:anIRInstruction},smalltalk.IRSendInliner)})}, messageSends: ["inlinedSend:with:with:", "new", "scope:", "copy", "scope", "add:", "first", "instructions", "send", "yourself"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "ifNotNil:ifNil:", fn: function (anIRInstruction,anotherIRInstruction){ var self=this; function $IRInlinedIfNilIfNotNil(){return smalltalk.IRInlinedIfNilIfNotNil||(typeof IRInlinedIfNilIfNotNil=="undefined"?nil:IRInlinedIfNilIfNotNil)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self)._inlinedSend_with_with_(_st($IRInlinedIfNilIfNotNil())._new(),anotherIRInstruction,anIRInstruction); return $1; }, function($ctx1) {$ctx1.fill(self,"ifNotNil:ifNil:",{anIRInstruction:anIRInstruction,anotherIRInstruction:anotherIRInstruction},smalltalk.IRSendInliner)})}, messageSends: ["inlinedSend:with:with:", "new"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "ifTrue:", fn: function (anIRInstruction){ var self=this; function $IRInlinedIfTrue(){return smalltalk.IRInlinedIfTrue||(typeof IRInlinedIfTrue=="undefined"?nil:IRInlinedIfTrue)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self)._inlinedSend_with_(_st($IRInlinedIfTrue())._new(),anIRInstruction); return $1; }, function($ctx1) {$ctx1.fill(self,"ifTrue:",{anIRInstruction:anIRInstruction},smalltalk.IRSendInliner)})}, messageSends: ["inlinedSend:with:", "new"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "ifTrue:ifFalse:", fn: function (anIRInstruction,anotherIRInstruction){ var self=this; function $IRInlinedIfTrueIfFalse(){return smalltalk.IRInlinedIfTrueIfFalse||(typeof IRInlinedIfTrueIfFalse=="undefined"?nil:IRInlinedIfTrueIfFalse)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st(self)._inlinedSend_with_with_(_st($IRInlinedIfTrueIfFalse())._new(),anIRInstruction,anotherIRInstruction); return $1; }, function($ctx1) {$ctx1.fill(self,"ifTrue:ifFalse:",{anIRInstruction:anIRInstruction,anotherIRInstruction:anotherIRInstruction},smalltalk.IRSendInliner)})}, messageSends: ["inlinedSend:with:with:", "new"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlineClosure:", fn: function (anIRClosure){ var self=this; var inlinedClosure,sequence,statements; function $IRTempDeclaration(){return smalltalk.IRTempDeclaration||(typeof IRTempDeclaration=="undefined"?nil:IRTempDeclaration)} function $AliasVar(){return smalltalk.AliasVar||(typeof AliasVar=="undefined"?nil:AliasVar)} function $IRVariable(){return smalltalk.IRVariable||(typeof IRVariable=="undefined"?nil:IRVariable)} function $IRAssignment(){return smalltalk.IRAssignment||(typeof IRAssignment=="undefined"?nil:IRAssignment)} return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5,$6,$7,$8,$9,$10; inlinedClosure=_st(self)._inlinedClosure(); _st(inlinedClosure)._scope_(_st(anIRClosure)._scope()); _st(_st(anIRClosure)._tempDeclarations())._do_((function(each){ return smalltalk.withContext(function($ctx2) { return _st(inlinedClosure)._add_(each); }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})); sequence=_st(self)._inlinedSequence(); _st(_st(anIRClosure)._arguments())._do_((function(each){ return smalltalk.withContext(function($ctx2) { $1=_st($IRTempDeclaration())._new(); _st($1)._name_(each); $2=_st($1)._yourself(); _st(inlinedClosure)._add_($2); $3=_st($IRAssignment())._new(); $4=_st($AliasVar())._new(); _st($4)._scope_(_st(inlinedClosure)._scope()); _st($4)._name_(each); $5=_st($4)._yourself(); _st($3)._add_(_st(_st($IRVariable())._new())._variable_($5)); $6=_st($AliasVar())._new(); _st($6)._scope_(_st(inlinedClosure)._scope()); _st($6)._name_("$receiver"); $7=_st($6)._yourself(); _st($3)._add_(_st(_st($IRVariable())._new())._variable_($7)); $8=_st($3)._yourself(); return _st(sequence)._add_($8); }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})); _st(inlinedClosure)._add_(sequence); statements=_st(_st(_st(anIRClosure)._instructions())._last())._instructions(); _st(statements)._ifNotEmpty_((function(){ return smalltalk.withContext(function($ctx2) { _st(_st(statements)._allButLast())._do_((function(each){ return smalltalk.withContext(function($ctx3) { return _st(sequence)._add_(each); }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})})); $9=_st(_st(_st(statements)._last())._isReturn())._and_((function(){ return smalltalk.withContext(function($ctx3) { return _st(_st(statements)._last())._isBlockReturn(); }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})})); if(smalltalk.assert($9)){ return _st(sequence)._add_(_st(_st(_st(statements)._last())._instructions())._first()); } else { return _st(sequence)._add_(_st(statements)._last()); }; }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); $10=inlinedClosure; return $10; }, function($ctx1) {$ctx1.fill(self,"inlineClosure:",{anIRClosure:anIRClosure,inlinedClosure:inlinedClosure,sequence:sequence,statements:statements},smalltalk.IRSendInliner)})}, messageSends: ["inlinedClosure", "scope:", "scope", "do:", "add:", "tempDeclarations", "inlinedSequence", "name:", "new", "yourself", "variable:", "arguments", "instructions", "last", "ifNotEmpty:", "allButLast", "ifTrue:ifFalse:", "first", "and:", "isBlockReturn", "isReturn"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlineSend:", fn: function (anIRSend){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; _st(self)._send_(anIRSend); $1=_st(self)._perform_withArguments_(_st(_st(self)._send())._selector(),_st(_st(_st(self)._send())._instructions())._allButFirst()); return $1; }, function($ctx1) {$ctx1.fill(self,"inlineSend:",{anIRSend:anIRSend},smalltalk.IRSendInliner)})}, messageSends: ["send:", "perform:withArguments:", "selector", "send", "allButFirst", "instructions"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlinedClosure", fn: function (){ var self=this; function $IRInlinedClosure(){return smalltalk.IRInlinedClosure||(typeof IRInlinedClosure=="undefined"?nil:IRInlinedClosure)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st($IRInlinedClosure())._new(); return $1; }, function($ctx1) {$ctx1.fill(self,"inlinedClosure",{},smalltalk.IRSendInliner)})}, messageSends: ["new"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlinedSend:with:", fn: function (inlinedSend,anIRInstruction){ var self=this; var inlinedClosure; return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5; $1=_st(anIRInstruction)._isClosure(); if(! smalltalk.assert($1)){ _st(self)._inliningError_("Message argument should be a block"); }; $2=_st(_st(_st(anIRInstruction)._arguments())._size()).__eq((0)); if(! smalltalk.assert($2)){ _st(self)._inliningError_("Inlined block should have zero argument"); }; inlinedClosure=_st(_st(self)._translator())._visit_(_st(self)._inlineClosure_(anIRInstruction)); $3=inlinedSend; _st($3)._add_(_st(_st(_st(self)._send())._instructions())._first()); $4=_st($3)._add_(inlinedClosure); _st(_st(self)._send())._replaceWith_(inlinedSend); $5=inlinedSend; return $5; }, function($ctx1) {$ctx1.fill(self,"inlinedSend:with:",{inlinedSend:inlinedSend,anIRInstruction:anIRInstruction,inlinedClosure:inlinedClosure},smalltalk.IRSendInliner)})}, messageSends: ["ifFalse:", "inliningError:", "isClosure", "=", "size", "arguments", "visit:", "inlineClosure:", "translator", "add:", "first", "instructions", "send", "replaceWith:"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlinedSend:with:with:", fn: function (inlinedSend,anIRInstruction,anotherIRInstruction){ var self=this; var inlinedClosure1,inlinedClosure2; return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4,$5; $1=_st(anIRInstruction)._isClosure(); if(! smalltalk.assert($1)){ _st(self)._inliningError_("Message argument should be a block"); }; $2=_st(anotherIRInstruction)._isClosure(); if(! smalltalk.assert($2)){ _st(self)._inliningError_("Message argument should be a block"); }; inlinedClosure1=_st(_st(self)._translator())._visit_(_st(self)._inlineClosure_(anIRInstruction)); inlinedClosure2=_st(_st(self)._translator())._visit_(_st(self)._inlineClosure_(anotherIRInstruction)); $3=inlinedSend; _st($3)._add_(_st(_st(_st(self)._send())._instructions())._first()); _st($3)._add_(inlinedClosure1); $4=_st($3)._add_(inlinedClosure2); _st(_st(self)._send())._replaceWith_(inlinedSend); $5=inlinedSend; return $5; }, function($ctx1) {$ctx1.fill(self,"inlinedSend:with:with:",{inlinedSend:inlinedSend,anIRInstruction:anIRInstruction,anotherIRInstruction:anotherIRInstruction,inlinedClosure1:inlinedClosure1,inlinedClosure2:inlinedClosure2},smalltalk.IRSendInliner)})}, messageSends: ["ifFalse:", "inliningError:", "isClosure", "visit:", "inlineClosure:", "translator", "add:", "first", "instructions", "send", "replaceWith:"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlinedSequence", fn: function (){ var self=this; function $IRInlinedSequence(){return smalltalk.IRInlinedSequence||(typeof IRInlinedSequence=="undefined"?nil:IRInlinedSequence)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st($IRInlinedSequence())._new(); return $1; }, function($ctx1) {$ctx1.fill(self,"inlinedSequence",{},smalltalk.IRSendInliner)})}, messageSends: ["new"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "inliningError:", fn: function (aString){ var self=this; function $InliningError(){return smalltalk.InliningError||(typeof InliningError=="undefined"?nil:InliningError)} return smalltalk.withContext(function($ctx1) { _st($InliningError())._signal_(aString); return self}, function($ctx1) {$ctx1.fill(self,"inliningError:",{aString:aString},smalltalk.IRSendInliner)})}, messageSends: ["signal:"]}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "send", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self["@send"]; return $1; }, function($ctx1) {$ctx1.fill(self,"send",{},smalltalk.IRSendInliner)})}, messageSends: []}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "send:", fn: function (anIRSend){ var self=this; return smalltalk.withContext(function($ctx1) { self["@send"]=anIRSend; return self}, function($ctx1) {$ctx1.fill(self,"send:",{anIRSend:anIRSend},smalltalk.IRSendInliner)})}, messageSends: []}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "translator", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self["@translator"]; return $1; }, function($ctx1) {$ctx1.fill(self,"translator",{},smalltalk.IRSendInliner)})}, messageSends: []}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "translator:", fn: function (anASTTranslator){ var self=this; return smalltalk.withContext(function($ctx1) { self["@translator"]=anASTTranslator; return self}, function($ctx1) {$ctx1.fill(self,"translator:",{anASTTranslator:anASTTranslator},smalltalk.IRSendInliner)})}, messageSends: []}), smalltalk.IRSendInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlinedSelectors", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=["ifTrue:", "ifFalse:", "ifTrue:ifFalse:", "ifFalse:ifTrue:", "ifNil:", "ifNotNil:", "ifNil:ifNotNil:", "ifNotNil:ifNil:"]; return $1; }, function($ctx1) {$ctx1.fill(self,"inlinedSelectors",{},smalltalk.IRSendInliner.klass)})}, messageSends: []}), smalltalk.IRSendInliner.klass); smalltalk.addMethod( smalltalk.method({ selector: "shouldInline:", fn: function (anIRInstruction){ var self=this; return smalltalk.withContext(function($ctx1) { var $1,$2; var $early={}; try { $1=_st(_st(self)._inlinedSelectors())._includes_(_st(anIRInstruction)._selector()); if(! smalltalk.assert($1)){ return false; }; _st(_st(_st(anIRInstruction)._instructions())._allButFirst())._do_((function(each){ return smalltalk.withContext(function($ctx2) { $2=_st(each)._isClosure(); if(! smalltalk.assert($2)){ throw $early=[false]; }; }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})); return true; } catch(e) {if(e===$early)return e[0]; throw e} }, function($ctx1) {$ctx1.fill(self,"shouldInline:",{anIRInstruction:anIRInstruction},smalltalk.IRSendInliner.klass)})}, messageSends: ["ifFalse:", "includes:", "selector", "inlinedSelectors", "do:", "isClosure", "allButFirst", "instructions"]}), smalltalk.IRSendInliner.klass); smalltalk.addClass('IRAssignmentInliner', smalltalk.IRSendInliner, ['assignment'], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "assignment", fn: function (){ var self=this; return smalltalk.withContext(function($ctx1) { var $1; $1=self["@assignment"]; return $1; }, function($ctx1) {$ctx1.fill(self,"assignment",{},smalltalk.IRAssignmentInliner)})}, messageSends: []}), smalltalk.IRAssignmentInliner); smalltalk.addMethod( smalltalk.method({ selector: "assignment:", fn: function (aNode){ var self=this; return smalltalk.withContext(function($ctx1) { self["@assignment"]=aNode; return self}, function($ctx1) {$ctx1.fill(self,"assignment:",{aNode:aNode},smalltalk.IRAssignmentInliner)})}, messageSends: []}), smalltalk.IRAssignmentInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlineAssignment:", fn: function (anIRAssignment){ var self=this; var inlinedAssignment; function $IRInlinedAssignment(){return smalltalk.IRInlinedAssignment||(typeof IRInlinedAssignment=="undefined"?nil:IRInlinedAssignment)} return smalltalk.withContext(function($ctx1) { var $1; _st(self)._assignment_(anIRAssignment); inlinedAssignment=_st($IRInlinedAssignment())._new(); _st(_st(anIRAssignment)._instructions())._do_((function(each){ return smalltalk.withContext(function($ctx2) { return _st(inlinedAssignment)._add_(each); }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})); _st(anIRAssignment)._replaceWith_(inlinedAssignment); _st(self)._inlineSend_(_st(_st(inlinedAssignment)._instructions())._last()); $1=inlinedAssignment; return $1; }, function($ctx1) {$ctx1.fill(self,"inlineAssignment:",{anIRAssignment:anIRAssignment,inlinedAssignment:inlinedAssignment},smalltalk.IRAssignmentInliner)})}, messageSends: ["assignment:", "new", "do:", "add:", "instructions", "replaceWith:", "inlineSend:", "last"]}), smalltalk.IRAssignmentInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlineClosure:", fn: function (anIRClosure){ var self=this; var inlinedClosure,statements; function $IRAssignment(){return smalltalk.IRAssignment||(typeof IRAssignment=="undefined"?nil:IRAssignment)} return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4; inlinedClosure=smalltalk.IRSendInliner.fn.prototype._inlineClosure_.apply(_st(self), [anIRClosure]); statements=_st(_st(_st(inlinedClosure)._instructions())._last())._instructions(); _st(statements)._ifNotEmpty_((function(){ return smalltalk.withContext(function($ctx2) { $1=_st(_st(statements)._last())._canBeAssigned(); if(smalltalk.assert($1)){ $2=_st($IRAssignment())._new(); _st($2)._add_(_st(_st(_st(self)._assignment())._instructions())._first()); _st($2)._add_(_st(_st(statements)._last())._copy()); $3=_st($2)._yourself(); return _st(_st(statements)._last())._replaceWith_($3); }; }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); $4=inlinedClosure; return $4; }, function($ctx1) {$ctx1.fill(self,"inlineClosure:",{anIRClosure:anIRClosure,inlinedClosure:inlinedClosure,statements:statements},smalltalk.IRAssignmentInliner)})}, messageSends: ["inlineClosure:", "instructions", "last", "ifNotEmpty:", "ifTrue:", "replaceWith:", "add:", "first", "assignment", "new", "copy", "yourself", "canBeAssigned"]}), smalltalk.IRAssignmentInliner); smalltalk.addClass('IRReturnInliner', smalltalk.IRSendInliner, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "inlineClosure:", fn: function (anIRClosure){ var self=this; var closure,statements; function $IRReturn(){return smalltalk.IRReturn||(typeof IRReturn=="undefined"?nil:IRReturn)} return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4; closure=smalltalk.IRSendInliner.fn.prototype._inlineClosure_.apply(_st(self), [anIRClosure]); statements=_st(_st(_st(closure)._instructions())._last())._instructions(); _st(statements)._ifNotEmpty_((function(){ return smalltalk.withContext(function($ctx2) { $1=_st(_st(statements)._last())._isReturn(); if(! smalltalk.assert($1)){ $2=_st($IRReturn())._new(); _st($2)._add_(_st(_st(statements)._last())._copy()); $3=_st($2)._yourself(); return _st(_st(statements)._last())._replaceWith_($3); }; }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})); $4=closure; return $4; }, function($ctx1) {$ctx1.fill(self,"inlineClosure:",{anIRClosure:anIRClosure,closure:closure,statements:statements},smalltalk.IRReturnInliner)})}, messageSends: ["inlineClosure:", "instructions", "last", "ifNotEmpty:", "ifFalse:", "replaceWith:", "add:", "copy", "new", "yourself", "isReturn"]}), smalltalk.IRReturnInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlineReturn:", fn: function (anIRReturn){ var self=this; var return_; return smalltalk.withContext(function($ctx1) { var $1; return_=_st(self)._inlinedReturn(); _st(_st(anIRReturn)._instructions())._do_((function(each){ return smalltalk.withContext(function($ctx2) { return _st(return_)._add_(each); }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})); _st(anIRReturn)._replaceWith_(return_); _st(self)._inlineSend_(_st(_st(return_)._instructions())._last()); $1=return_; return $1; }, function($ctx1) {$ctx1.fill(self,"inlineReturn:",{anIRReturn:anIRReturn,return_:return_},smalltalk.IRReturnInliner)})}, messageSends: ["inlinedReturn", "do:", "add:", "instructions", "replaceWith:", "inlineSend:", "last"]}), smalltalk.IRReturnInliner); smalltalk.addMethod( smalltalk.method({ selector: "inlinedReturn", fn: function (){ var self=this; function $IRInlinedReturn(){return smalltalk.IRInlinedReturn||(typeof IRInlinedReturn=="undefined"?nil:IRInlinedReturn)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st($IRInlinedReturn())._new(); return $1; }, function($ctx1) {$ctx1.fill(self,"inlinedReturn",{},smalltalk.IRReturnInliner)})}, messageSends: ["new"]}), smalltalk.IRReturnInliner); smalltalk.addClass('InliningCodeGenerator', smalltalk.CodeGenerator, [], 'Compiler-Inlining'); smalltalk.addMethod( smalltalk.method({ selector: "compileNode:", fn: function (aNode){ var self=this; var ir,stream; return smalltalk.withContext(function($ctx1) { var $2,$3,$1; _st(_st(self)._semanticAnalyzer())._visit_(aNode); ir=_st(_st(self)._translator())._visit_(aNode); _st(_st(self)._inliner())._visit_(ir); $2=_st(self)._irTranslator(); _st($2)._visit_(ir); $3=_st($2)._contents(); $1=$3; return $1; }, function($ctx1) {$ctx1.fill(self,"compileNode:",{aNode:aNode,ir:ir,stream:stream},smalltalk.InliningCodeGenerator)})}, messageSends: ["visit:", "semanticAnalyzer", "translator", "inliner", "irTranslator", "contents"]}), smalltalk.InliningCodeGenerator); smalltalk.addMethod( smalltalk.method({ selector: "inliner", fn: function (){ var self=this; function $IRInliner(){return smalltalk.IRInliner||(typeof IRInliner=="undefined"?nil:IRInliner)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st($IRInliner())._new(); return $1; }, function($ctx1) {$ctx1.fill(self,"inliner",{},smalltalk.InliningCodeGenerator)})}, messageSends: ["new"]}), smalltalk.InliningCodeGenerator); smalltalk.addMethod( smalltalk.method({ selector: "irTranslator", fn: function (){ var self=this; function $IRInliningJSTranslator(){return smalltalk.IRInliningJSTranslator||(typeof IRInliningJSTranslator=="undefined"?nil:IRInliningJSTranslator)} return smalltalk.withContext(function($ctx1) { var $1; $1=_st($IRInliningJSTranslator())._new(); return $1; }, function($ctx1) {$ctx1.fill(self,"irTranslator",{},smalltalk.InliningCodeGenerator)})}, messageSends: ["new"]}), smalltalk.InliningCodeGenerator);
40.748921
280
0.75072
a84062005edfd1d5b565359c428899411c6dfa7e
455
js
JavaScript
server.js
cristaloleg/jsonwebtoken.github.io
94b30510e39194cdd73097ad6068f9cab0ddf87e
[ "MIT" ]
1
2018-10-31T22:11:30.000Z
2018-10-31T22:11:30.000Z
server.js
cristaloleg/jsonwebtoken.github.io
94b30510e39194cdd73097ad6068f9cab0ddf87e
[ "MIT" ]
null
null
null
server.js
cristaloleg/jsonwebtoken.github.io
94b30510e39194cdd73097ad6068f9cab0ddf87e
[ "MIT" ]
null
null
null
const express = require('express'); const enforce = require('express-sslify'); const app = express(); if(process.env.NODE_ENV === 'production') { console.log('Redirecting to TLS endpoint.'); app.use(enforce.HTTPS({ // Required for proper use under a reverse proxy (Heroku, etc.). trustProtoHeader: true })); } app.use('/', express.static('dist/website')); app.listen(process.env.PORT || 3000, function() { console.log('Started.'); });
23.947368
68
0.668132
a81e03b8850f5fcc44188519f1b7bc26c926185a
301
js
JavaScript
try.js
z0mt3c/jeelink-lacrosse-reader
7f51a85b5f8729a66082211b2991125bfa31a408
[ "MIT" ]
1
2019-03-21T22:23:21.000Z
2019-03-21T22:23:21.000Z
try.js
z0mt3c/jeelink-lacrosse-reader
7f51a85b5f8729a66082211b2991125bfa31a408
[ "MIT" ]
null
null
null
try.js
z0mt3c/jeelink-lacrosse-reader
7f51a85b5f8729a66082211b2991125bfa31a408
[ "MIT" ]
1
2019-03-21T22:23:26.000Z
2019-03-21T22:23:26.000Z
const Reader = require('./index.js') new Reader({ port: '/dev/cu.usbserial-AI04NSUW' }).on('data', (msg) => console.log('0:', msg)) // new Reader({ port: '/dev/ttyUSB0' }).on('data', (msg) => console.log('0:', msg)) // new Reader({ port: '/dev/ttyUSB1' }).on('data', (msg) => console.log('1:', msg))
50.166667
94
0.581395
a83888a4d293b151184add0a539608ba5088c6a8
690
js
JavaScript
js_bckup_duke/p5/setup_draw.js
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
js_bckup_duke/p5/setup_draw.js
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
js_bckup_duke/p5/setup_draw.js
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
var y = 100; var x = 100; // The statements in the setup() function // execute once when the program begins function setup() { // createCanvas must be the first statement createCanvas(720, 400); stroke(255); // Set line drawing color to white frameRate(100); } // The statements in draw() are executed until the // program is stopped. Each statement is executed in // sequence and after the last line is read, the first // line is executed again. function draw() { background(0); // Set the background to black y = y - 1; x = x - 1; if (y < 0) { y = height; } if (x < 0) { x = width; } //line(0, y, width, y); line(50, 50, x, y); }
24.642857
55
0.613043
a83d3fecb109638ee8237b524efddef92a9ca4cd
44
js
JavaScript
src/assets/svgs/index.js
Skycatch/model-trainer-image-marker
d23f64dd10283f35eb88803eb08cd42a6ff0c10a
[ "MIT" ]
4
2017-11-02T18:56:16.000Z
2019-08-20T22:10:23.000Z
src/assets/svgs/index.js
Skycatch/photoset-grapher
658e94a4b807ff3e0ed8ac87338dba2ea608d75a
[ "MIT" ]
2
2018-03-06T22:32:17.000Z
2018-05-25T00:58:52.000Z
src/assets/svgs/index.js
Skycatch/photoset-grapher
658e94a4b807ff3e0ed8ac87338dba2ea608d75a
[ "MIT" ]
1
2020-04-15T09:20:19.000Z
2020-04-15T09:20:19.000Z
'use strict'; // require('./targets.svg');
11
28
0.590909
a84039b65e025803a20df0b5f2eaca8e9b3d4744
1,059
js
JavaScript
docs/.vuepress/js/algorithm/findIntegers.js
Mackkkk/facing-smart
74bedd5ee005373a9ad5a50a13cace9d4d8cef91
[ "MIT" ]
5
2019-01-10T09:45:14.000Z
2019-10-17T02:49:46.000Z
docs/.vuepress/js/algorithm/findIntegers.js
Mackkkk/SummaryOfwork
74bedd5ee005373a9ad5a50a13cace9d4d8cef91
[ "MIT" ]
4
2020-02-18T04:32:30.000Z
2022-02-11T03:58:39.000Z
docs/.vuepress/js/algorithm/findIntegers.js
Mackkkk/summaryofwork
9503deff544c90e2c81e9a53a9bd3ee743e83e03
[ "MIT" ]
null
null
null
export const findIntegers_timeout = (num) => { const check = (num) => { let prev while (num > 0) { const next = num % 2 num = (num - next) / 2 if (prev * next === 1) return false prev = next } return true } let count = 0 for (let i = 0; i <= num; i++) { if (check(i)) count++ } return count } export const findIntegers_optimize = num => { const find = (i, sum, prev) => { if (sum > num) return 0 if (1 << i > num) return 1 if (prev) return find(i + 1, sum, false) return find(i + 1, sum, false) + find(i + 1, sum + (1 << i), true) } return find(0, 0, false) } export const findIntegers = num => { const dp = new Array(32).fill(0) dp[0] = 1 dp[1] = 2 for (let i = 2; i < dp.length; i++) dp[i] = dp[i - 1] + dp[i - 2] let m = 30, sum = 0, prev_bit = 0 while (m >= 0) { if ((num & (1 << m)) !== 0) { sum += dp[m] if (prev_bit === 1) { sum-- break } prev_bit = 1 } else prev_bit = 0 m-- } return sum + 1 }
19.981132
70
0.480642
a823ef58fa436161a231222e2cdae2db6c1cc863
402
js
JavaScript
misc/grunt/bump.js
angular-macgyver/MacGyver
9ad90404b474dab791bbaa0d1b4092c404b13cf8
[ "MIT" ]
48
2015-01-08T03:11:44.000Z
2019-11-11T10:15:17.000Z
misc/grunt/bump.js
angular-macgyver/MacGyver
9ad90404b474dab791bbaa0d1b4092c404b13cf8
[ "MIT" ]
37
2015-01-11T22:55:43.000Z
2017-07-15T23:15:54.000Z
misc/grunt/bump.js
angular-macgyver/MacGyver
9ad90404b474dab791bbaa0d1b4092c404b13cf8
[ "MIT" ]
24
2015-02-24T10:22:07.000Z
2018-05-11T13:38:23.000Z
module.exports = function(grunt) { /** * bump section * Update package and bower version */ grunt.config("bump", { options: { files: ["bower.json", "package.json"], updateConfigs: ["bower", "pkg"], commit: false, commitMessage: "chore(build): Build v%VERSION%", tagMessage: "Build v%VERSION%", push: false, prereleaseName: 'rc' } }); };
22.333333
54
0.567164
a83e2bfced560330fac6f97f56cea4ae0d09fa5c
1,242
js
JavaScript
back-end/api/database/helpers/slackAuthDb.js
lsgitprojects/labs10-sentiment
8b64163b752b1dc87f0dca93ebeb76585ebc8473
[ "MIT" ]
5
2019-02-12T22:59:35.000Z
2020-03-12T04:16:03.000Z
back-end/api/database/helpers/slackAuthDb.js
lsgitprojects/labs10-sentiment
8b64163b752b1dc87f0dca93ebeb76585ebc8473
[ "MIT" ]
1
2019-02-21T03:53:42.000Z
2019-02-21T03:53:42.000Z
back-end/api/database/helpers/slackAuthDb.js
lsgitprojects/labs10-sentiment
8b64163b752b1dc87f0dca93ebeb76585ebc8473
[ "MIT" ]
4
2019-02-13T17:28:28.000Z
2019-04-03T00:05:05.000Z
db = require("../dbConfig.js"); const dbTeamMembers = require("./teamMembersDb"); const table = "slackAuth"; module.exports = { get: function() { return db(table); }, getID: function(id) { return db(table).where("id", id); }, getByMemberId: function(member_id) { return db(table).where("member_id", member_id); }, getBySlackUserId: function(user_id) { return db(table).where("user_id", user_id); }, getBySlackTeamId: function(team_id) { return db(table) .where({ team_id: team_id }) .then(data => { for (let y = 0; y < data.length; y++) { return db("teamMembers").where({ id: data[y].member_id, type: "manager" }); } }); }, getBySlackTeamIdSTD: function(team_id) { return db(table).where({ team_id: team_id }); }, getByBotId: function(bot_user_id) { return db(table).where("bot_user_id", bot_user_id); }, insert: function(post) { return db(table) .insert(post) .then(ids => ({ id: ids[0] })); }, update: function(id, post) { return db(table) .where("id", id) .update(post); }, remove: function(id) { return db(table) .where("id", id) .del(); } };
23.884615
55
0.566023
a82ade1456402d195f6ec827edd7ff3ad9379589
822
js
JavaScript
src/Layer.js
stefanbollmann/js-dxf
c8541455fe0b2e51f43b381094c19fa188aec4e4
[ "MIT" ]
1
2020-05-29T09:58:23.000Z
2020-05-29T09:58:23.000Z
src/Layer.js
stefanbollmann/js-dxf
c8541455fe0b2e51f43b381094c19fa188aec4e4
[ "MIT" ]
null
null
null
src/Layer.js
stefanbollmann/js-dxf
c8541455fe0b2e51f43b381094c19fa188aec4e4
[ "MIT" ]
null
null
null
class Layer { constructor(name, colorNumber, lineTypeName) { this.name = name; this.colorNumber = colorNumber; this.lineTypeName = lineTypeName; this.shapes = []; } toDxfString() { let s = '0\nLAYER\n'; s += '70\n64\n'; s += `2\n${this.name}\n`; s += `62\n${this.colorNumber}\n`; s += `6\n${this.lineTypeName}\n`; return s; } addShape(shape) { this.shapes.push(shape); shape.layer = this; } getShapes() { return this.shapes; } shapesToDxf() { let s = ''; for (let i = 0; i < this.shapes.length; ++i) { s += this.shapes[i].toDxfString(); } return s; } } module.exports = Layer;
18.266667
52
0.453771
a831c75cd4ed75a5e59560518e386298dc3656d9
1,200
js
JavaScript
node_modules/office-ui-fabric-react/lib/components/TextField/examples/TextField.Placeholder.Example.js
GhostMachineSoftware/SPFx_Connect2List
9d54d6430a0fea830385a8bd1c7f748547b41c35
[ "MIT" ]
1
2020-08-06T19:22:04.000Z
2020-08-06T19:22:04.000Z
node_modules/office-ui-fabric-react/lib/components/TextField/examples/TextField.Placeholder.Example.js
GhostMachineSoftware/SPFx_Connect2List
9d54d6430a0fea830385a8bd1c7f748547b41c35
[ "MIT" ]
null
null
null
node_modules/office-ui-fabric-react/lib/components/TextField/examples/TextField.Placeholder.Example.js
GhostMachineSoftware/SPFx_Connect2List
9d54d6430a0fea830385a8bd1c7f748547b41c35
[ "MIT" ]
null
null
null
import * as tslib_1 from "tslib"; // @codepen import * as React from 'react'; import { TextField } from 'office-ui-fabric-react/lib/TextField'; import './TextField.Examples.scss'; var TextFieldPlaceholderExample = /** @class */ (function (_super) { tslib_1.__extends(TextFieldPlaceholderExample, _super); function TextFieldPlaceholderExample() { return _super !== null && _super.apply(this, arguments) || this; } TextFieldPlaceholderExample.prototype.render = function () { return (React.createElement("div", { className: "docs-TextFieldExample" }, React.createElement(TextField, { placeholder: "I am a placeholder.", ariaLabel: "Please enter text here" }), React.createElement(TextField, { disabled: true, placeholder: "I am disabled. " }), React.createElement(TextField, { required: true, placeholder: "I am required." }), React.createElement(TextField, { errorMessage: "Error message", placeholder: "I have an error message." }))); }; return TextFieldPlaceholderExample; }(React.Component)); export { TextFieldPlaceholderExample }; //# sourceMappingURL=TextField.Placeholder.Example.js.map
57.142857
122
0.6875
a8297d34ff5bc012d8a841f0e6a2156ea08d3aa2
957
js
JavaScript
part7/bloglist-frontend/src/components/NavBar.js
graphicnapkin/fullstackopen
cc16f9d8a840beedffd0658b4314292311d5100d
[ "MIT" ]
1
2020-09-16T12:56:51.000Z
2020-09-16T12:56:51.000Z
part7/bloglist-frontend/src/components/NavBar.js
graphicnapkin/fullstackopen
cc16f9d8a840beedffd0658b4314292311d5100d
[ "MIT" ]
null
null
null
part7/bloglist-frontend/src/components/NavBar.js
graphicnapkin/fullstackopen
cc16f9d8a840beedffd0658b4314292311d5100d
[ "MIT" ]
null
null
null
import React from 'react' import { Link } from 'react-router-dom' import { Navbar, Nav } from 'react-bootstrap' import LoggedIn from './LoggedIn' //import { useSelector } from 'react-redux' const NavigationBar = () => { //const user = useSelector(state => state.user) const padding = { padding: 10 } return ( <Navbar collapseOnSelect expand="lg" bg="dark" variant="dark"> <Navbar.Toggle aria-controls="responsive-navbar-nav" /> <Navbar.Collapse id="responsive-navbar-nav"> <Nav className="mr-auto"> <Nav.Link href="#" as="span"> <Link style={ padding } to="/">Blogs</Link> </Nav.Link> <Nav.Link href="#" as="span"> <Link style={ padding } to="/users">Users</Link> </Nav.Link> <Nav.Link href="#" as="span"> <LoggedIn /> </Nav.Link> </Nav> </Navbar.Collapse> </Navbar> ) } export default NavigationBar
26.583333
66
0.572623
a82b1ce8cc07c20fefdbbf075f96613d75da2f9a
519
js
JavaScript
lib/actions/queue/ClearMessages.js
adbrome/Azurite
e9274939d88c64ba752b35e8bf0a3a466afb71bd
[ "MIT" ]
1
2020-09-22T12:59:54.000Z
2020-09-22T12:59:54.000Z
lib/actions/queue/ClearMessages.js
AleF83/Azurite
b0bdab55f082515cb0e38bd5f20fd231fae1c680
[ "MIT" ]
null
null
null
lib/actions/queue/ClearMessages.js
AleF83/Azurite
b0bdab55f082515cb0e38bd5f20fd231fae1c680
[ "MIT" ]
1
2019-01-02T08:48:01.000Z
2019-01-02T08:48:01.000Z
/** @format */ "use strict"; const QueueManager = require("./../../core/queue/QueueManager"), AzuriteQueueResponse = require("./../../model/queue/AzuriteQueueResponse"); class ClearMessages { constructor() {} process(request, res) { const queue = QueueManager.getQueueAndMessage({ queueName: request.queueName, }).queue; queue.clear(); const response = new AzuriteQueueResponse(); res.set(response.httpProps); res.status(204).send(); } } module.exports = new ClearMessages();
22.565217
77
0.668593
a83c69aeaea016915ca40e0667e996403133b65b
837
js
JavaScript
src/components/Row/Row.js
AllanOliveiraM/nave.rs-front-end-challange
2958825e4cc78efff24c8037659e07754374fb60
[ "MIT" ]
2
2020-09-08T18:33:06.000Z
2020-10-10T23:31:02.000Z
src/components/Row/Row.js
AllanOliveiraM/nave.rs-front-end-challange
2958825e4cc78efff24c8037659e07754374fb60
[ "MIT" ]
null
null
null
src/components/Row/Row.js
AllanOliveiraM/nave.rs-front-end-challange
2958825e4cc78efff24c8037659e07754374fb60
[ "MIT" ]
2
2021-04-13T02:47:37.000Z
2021-05-06T03:37:43.000Z
import styled from 'styled-components' import { space, layout, color, flexbox, border, shadow, position } from 'styled-system' import propTypes from '@styled-system/prop-types' import { MEDIADESKTOP } from 'helpers' const RowComponent = styled.div( { display: 'flex' }, flexbox, space, layout, color, border, shadow, position ) RowComponent.propTypes = { ...propTypes.space, ...propTypes.layout, ...propTypes.color, ...propTypes.flexbox, ...propTypes.border, ...propTypes.shadow, ...propTypes.position } export const RowDesktop = styled(RowComponent)` display: none; @media (min-width: ${MEDIADESKTOP}px) { display: flex; } ` export const RowMobile = styled(RowComponent)` display: flex; @media (min-width: ${MEDIADESKTOP}px) { display: none; } ` export default RowComponent
18.6
87
0.684588
a8452db82f9c30098d24076c003c7b279926f61d
2,197
js
JavaScript
js/score.js
UdAyAn123/Dance
48eaf6ac520c3ef71b36446feed981dcb629396a
[ "MIT" ]
1
2021-01-30T04:50:32.000Z
2021-01-30T04:50:32.000Z
js/score.js
UdAyAn123/Dance
48eaf6ac520c3ef71b36446feed981dcb629396a
[ "MIT" ]
2
2021-05-11T19:51:59.000Z
2022-01-22T13:08:58.000Z
js/score.js
UdAyAn123/Dance
48eaf6ac520c3ef71b36446feed981dcb629396a
[ "MIT" ]
null
null
null
$(document).ready(function () { let score = localStorage.getItem('score') || '00'; initChart(score); }); let red = 'rgb(231, 111, 081)'; let orange = 'rgb(244, 162, 097)'; let yellow = 'rgb(233, 196, 106)'; let green = 'rgb(042, 157, 143)'; let black = 'rgb(038, 070, 083)'; let options = { tooltips: { enabled: false }, hover: { mode: null }, responsive: true, cutoutPercentage: 90, animationEasing: 'easeOutQuart', title: { display: true, position: "top", text: "How did you do?", fontFamily: 'Montserrat', fontSize: 18, fontColor: black }, legend: { display: true, position: "bottom", labels: { fontColor: "#333", fontSize: 16 } } }; function initChart(score) { let id = localStorage.getItem('id'); Scores.submit(id, score); let ctx = document.getElementById('myChart').getContext('2d'); $("#score-text").html(score + "%"); gradient = ctx.createLinearGradient(0, 0, 0, 400); gradient.addColorStop(0, 'rgba(255, 0,0, 0.5)'); //kinda wonky but it works let data = [20, 20, 20, 40, 0]; if (score > 99) data = [20, 20, 20, 40, 0]; else if (score > 80) data = [20, 20, 20, score - 60, 100 - score]; else if (score > 60) data = [20, 20, score - 40, 0, 100 - score]; else if (score > 40) data = [20, score - 20, 0, 0, 100 - score]; else data = [score, 0, 0, 0, 100 - score]; let songName = localStorage.getItem('songname') || 'No song selected.'; let description = songName + "<br><br>"; if(score > 90) description += "Wow, you've practically mastered it! Practice more to perfect this dance or take on a new challenge."; else if (score > 75) description += "Great job! You're almost there. Practice more to bump up your score." else description += "Nice try! Practice more to improve your score." $("#score-description").html(description); let scoreChart = new Chart(ctx, { type: 'doughnut', data: { datasets: [{ data: data, backgroundColor: [red, orange, yellow, green, black], borderWidth: 2, borderColor: black }] }, options: options }); } function goHome() { window.location.href = "index.html"; }
27.123457
135
0.604005
a82872ab41dc5ed1b0499fe75c0dadf633049592
1,238
js
JavaScript
assets/ajax.js
kplsharma13/ci_ajax_crud
67cdf8b9e1043f16e86f0ddc29be06c3e5d9b60f
[ "MIT" ]
1
2021-02-02T11:25:14.000Z
2021-02-02T11:25:14.000Z
assets/ajax.js
kplsharma13/ci_ajax_crud
67cdf8b9e1043f16e86f0ddc29be06c3e5d9b60f
[ "MIT" ]
null
null
null
assets/ajax.js
kplsharma13/ci_ajax_crud
67cdf8b9e1043f16e86f0ddc29be06c3e5d9b60f
[ "MIT" ]
null
null
null
$(document).ready(function(){ loadTables(); function loadTables() { $.ajax({ url: '/ajax/first_controller/fetch_records', type: 'POST', success: function(data){ // console.log(data); $('#load-table').html(data); } }); } $('#message').hide(); $('#submit').on('click',function(){ var name = $('#name').val(); var email = $('#email').val(); $.ajax({ url: '/ajax/first_controller/insert_records', type: 'POST', data: {name: name, email: email}, success: function(data){ $('#message').fadeIn(2000); $('#message').show(); $('#message').html(data); $('#message').delay(2000).fadeOut(2000); loadTables(); } }); }); $(document).on('click','.dlt',function(){ var id = $(this).data("id"); $.ajax({ url: '/ajax/first_controller/delete', type:'POST', data:{id:id}, success:function(data){ $('#message').fadeIn(2000); $('#message').show(); $('#message').html(data); $('#message').delay(2000).fadeOut(3000); loadTables(); } }) }); });
21.719298
53
0.458805
a832a25653198a4364e6ef3de6f4476a63f52ba1
174
js
JavaScript
packages/service-a/src/delete.js
kdcio/serverless-multi-services
f6806b0cca84993d707f7cbd1c78cec1c18c52c1
[ "MIT" ]
1
2021-02-05T19:54:56.000Z
2021-02-05T19:54:56.000Z
packages/service-a/src/delete.js
kdcio/serverless-multi-services
f6806b0cca84993d707f7cbd1c78cec1c18c52c1
[ "MIT" ]
12
2021-04-01T08:06:18.000Z
2022-03-28T17:03:05.000Z
packages/service-c/src/delete.js
kdcio/serverless-multi-services
f6806b0cca84993d707f7cbd1c78cec1c18c52c1
[ "MIT" ]
null
null
null
import response from "@kdcio/api-gw-resp"; export const handler = async (event) => { console.log(`delete ${event.pathParameters.id}`); return response.NO_CONTENT(); };
21.75
51
0.695402
a837965d9c267a670cddd92689f7903f515fd7f4
6,618
js
JavaScript
lib/actions/grants/authorization_code.js
plauclair/node-oidc-provider
f76beb0cf45996ea8ea92b62d2e0b91adbf9dd0c
[ "MIT" ]
1
2021-04-04T04:25:54.000Z
2021-04-04T04:25:54.000Z
lib/actions/grants/authorization_code.js
plauclair/node-oidc-provider
f76beb0cf45996ea8ea92b62d2e0b91adbf9dd0c
[ "MIT" ]
null
null
null
lib/actions/grants/authorization_code.js
plauclair/node-oidc-provider
f76beb0cf45996ea8ea92b62d2e0b91adbf9dd0c
[ "MIT" ]
null
null
null
const { InvalidGrant, InvalidTarget } = require('../../helpers/errors'); const presence = require('../../helpers/validate_presence'); const instance = require('../../helpers/weak_cache'); const checkPKCE = require('../../helpers/pkce'); const revoke = require('../../helpers/revoke'); const filterClaims = require('../../helpers/filter_claims'); const dpopValidate = require('../../helpers/validate_dpop'); const gty = 'authorization_code'; module.exports.handler = async function authorizationCodeHandler(ctx, next) { const { issueRefreshToken, allowOmittingSingleRegisteredRedirectUri, conformIdTokenClaims, features: { userinfo, dPoP: { iatTolerance }, mTLS: { getCertificate }, resourceIndicators, }, } = instance(ctx.oidc.provider).configuration(); if (allowOmittingSingleRegisteredRedirectUri && ctx.oidc.params.redirect_uri === undefined) { // It is permitted to omit the redirect_uri if only ONE is registered on the client const { 0: uri, length } = ctx.oidc.client.redirectUris; if (uri && length === 1) { ctx.oidc.params.redirect_uri = uri; } } presence(ctx, 'code', 'redirect_uri'); const code = await ctx.oidc.provider.AuthorizationCode.find(ctx.oidc.params.code, { ignoreExpiration: true, }); if (!code) { throw new InvalidGrant('authorization code not found'); } if (code.isExpired) { throw new InvalidGrant('authorization code is expired'); } const grant = await ctx.oidc.provider.Grant.find(code.grantId, { ignoreExpiration: true, }); if (!grant) { throw new InvalidGrant('grant not found'); } if (grant.isExpired) { throw new InvalidGrant('grant is expired'); } checkPKCE(ctx.oidc.params.code_verifier, code.codeChallenge, code.codeChallengeMethod); let cert; if (ctx.oidc.client.tlsClientCertificateBoundAccessTokens) { cert = getCertificate(ctx); if (!cert) { throw new InvalidGrant('mutual TLS client certificate not provided'); } } if (code.clientId !== ctx.oidc.client.clientId || grant.clientId !== ctx.oidc.client.clientId) { throw new InvalidGrant('authorization code client mismatch'); } if (code.redirectUri !== ctx.oidc.params.redirect_uri) { throw new InvalidGrant('authorization code redirect_uri mismatch'); } if (code.consumed) { await revoke(ctx, code.grantId); throw new InvalidGrant('authorization code already consumed'); } await code.consume(); ctx.oidc.entity('AuthorizationCode', code); ctx.oidc.entity('Grant', grant); const account = await ctx.oidc.provider.Account.findAccount(ctx, code.accountId, code); if (!account) { throw new InvalidGrant('authorization code invalid (referenced account not found)'); } if (code.accountId !== grant.accountId) { throw new InvalidGrant('authorization code accountId mismatch'); } ctx.oidc.entity('Account', account); const { AccessToken, IdToken, RefreshToken, ReplayDetection, } = ctx.oidc.provider; const at = new AccessToken({ accountId: account.accountId, client: ctx.oidc.client, expiresWithSession: code.expiresWithSession, grantId: code.grantId, gty, sessionUid: code.sessionUid, sid: code.sid, }); if (ctx.oidc.client.tlsClientCertificateBoundAccessTokens) { at.setThumbprint('x5t', cert); } const dPoP = await dpopValidate(ctx); if (dPoP) { const unique = await ReplayDetection.unique( ctx.oidc.client.clientId, dPoP.jti, dPoP.iat + iatTolerance, ); ctx.assert(unique, new InvalidGrant('DPoP Token Replay detected')); at.setThumbprint('jkt', dPoP.thumbprint); } let resource; if (!ctx.oidc.params.resource && (!userinfo.enabled || !code.scopes.has('openid'))) { resource = code.resource; } else { resource = ctx.oidc.params.resource; } if (Array.isArray(resource)) { resource = await resourceIndicators.defaultResource(ctx, ctx.oidc.client, resource); } if (Array.isArray(resource)) { throw new InvalidTarget('only a single resource indicator value must be requested/resolved during Access Token Request'); } if (resource && !code.resourceIndicators.has(resource)) { throw new InvalidTarget(); } if (resource) { const resourceServerInfo = await resourceIndicators .getResourceServerInfo(ctx, resource, ctx.oidc.client); at.resourceServer = new ctx.oidc.provider.ResourceServer(resource, resourceServerInfo); at.scope = grant.getResourceScopeFiltered(resource, code.scopes); } else { at.claims = code.claims; at.scope = grant.getOIDCScopeFiltered(code.scopes); } ctx.oidc.entity('AccessToken', at); const accessToken = await at.save(); let refreshToken; if (await issueRefreshToken(ctx, ctx.oidc.client, code)) { const rt = new RefreshToken({ accountId: account.accountId, acr: code.acr, amr: code.amr, authTime: code.authTime, claims: code.claims, client: ctx.oidc.client, expiresWithSession: code.expiresWithSession, grantId: code.grantId, gty, nonce: code.nonce, resource: code.resource, rotations: 0, scope: code.scope, sessionUid: code.sessionUid, sid: code.sid, }); if (ctx.oidc.client.tokenEndpointAuthMethod === 'none') { if (at.jkt) { rt.jkt = at.jkt; } if (ctx.oidc.client.tlsClientCertificateBoundAccessTokens) { rt['x5t#S256'] = at['x5t#S256']; } } ctx.oidc.entity('RefreshToken', rt); refreshToken = await rt.save(); } let idToken; if (code.scopes.has('openid')) { const claims = filterClaims(code.claims, 'id_token', grant); const rejected = grant.getRejectedOIDCClaims(); const token = new IdToken({ ...await account.claims('id_token', code.scope, claims, rejected), acr: code.acr, amr: code.amr, auth_time: code.authTime, }, { ctx }); if (conformIdTokenClaims && userinfo.enabled && !accessToken.aud) { token.scope = 'openid'; } else { token.scope = grant.getOIDCScopeFiltered(code.scopes); } token.mask = claims; token.rejected = rejected; token.set('nonce', code.nonce); token.set('at_hash', accessToken); token.set('sid', code.sid); idToken = await token.issue({ use: 'idtoken' }); } ctx.body = { access_token: accessToken, expires_in: at.expiration, id_token: idToken, refresh_token: refreshToken, scope: at.scope, token_type: at.tokenType, }; await next(); }; module.exports.parameters = new Set(['code', 'redirect_uri']);
28.282051
125
0.671653
a830bd3ee794d0ff7d25f8d0402b12391bdc33b6
15,618
js
JavaScript
test/Map-test.js
AlasdairGray/shex.js
5ec89240625e6bbf0a4e3030f22a789876f76075
[ "MIT" ]
2
2019-05-03T11:52:19.000Z
2021-04-26T10:59:00.000Z
test/Map-test.js
AlasdairGray/shex.js
5ec89240625e6bbf0a4e3030f22a789876f76075
[ "MIT" ]
null
null
null
test/Map-test.js
AlasdairGray/shex.js
5ec89240625e6bbf0a4e3030f22a789876f76075
[ "MIT" ]
null
null
null
#!/usr/bin/env node var VERBOSE = "VERBOSE" in process.env; var TERSE = VERBOSE; var TESTS = "TESTS" in process.env ? process.env.TESTS.split(/,/) : null; var ShExCore = require("@shexjs/core"); var ShExUtil = ShExCore.Util; var ShExValidator = ShExCore.Validator; var ShExLoader = require("@shexjs/loader"); var Mapper = require("@shexjs/extension-map"); // var Promise = require("promise"); var expect = require("chai").expect; var Path = require("path"); var RdfTerm = ShExCore.RdfTerm; var maybeLog = VERBOSE ? console.log : function () {}; var Harness = { prepare: function (srcSchemas, targetSchemas, inputData, inputNode, createRoot, expectedBindings, expectedRDF) { var mapstr = srcSchemas + " -> " + targetSchemas.join(','); it('('+ mapstr + ')' + ' should map ' + inputData + " to " + expectedRDF, function (done) { srcSchemas = srcSchemas.map(function (p) { return Path.resolve(__dirname, p); }); targetSchemas = targetSchemas.map(function (p) { return Path.resolve(__dirname, p); }); inputData = Path.resolve(__dirname, inputData); expectedRDF = Path.resolve(__dirname, expectedRDF); // Lean on ShExLoader to load all the schemas and data graphs. Promise.all([ShExLoader.load(srcSchemas, [], [inputData], [], {index: true}), ShExLoader.load(targetSchemas, [], [expectedRDF], [], {index: true})]). then(function (loads) { loads[0].data.toString = loads[1].data.toString = graphToString; // prepare validator var validator = ShExValidator.construct(loads[0].schema, { noCache: true }); Mapper.register(validator); // run validator var res = validator.validate(ShExUtil.makeN3DB(loads[0].data), inputNode, ShExValidator.start); expect(res).to.not.be.null; var resultBindings = validator.semActHandler.results["http://shex.io/extensions/Map/#"]; // test against expected. if (expectedBindings) { expect(resultBindings).to.deeply.equal(expectedBindings); } var map = Mapper.materializer(loads[1].schema); var binder = Mapper.binder([resultBindings]); var outputGraph = map.materialize(binder, createRoot); outputGraph.toString = graphToString; maybeLog(mapstr); maybeLog("output:"); maybeLog(outputGraph.toString()); maybeLog("expect:"); maybeLog(loads[1].data.toString()); // console.log(outputGraph.toString(), "\n--\n", loads[1].data.toString()); expect(geq(outputGraph, loads[1].data)).to.be.true; done(); }).catch(function (error) { done(error); }); }); } }; function geq (l, r) { // graphEquals needs a this return graphEquals.call(l, r); } describe('A ShEx Mapper', function () { var tests = [ ["there", ["Map/BPDAMFHIR/BPFHIR.shex"], ["Map/BPDAMFHIR/BPunitsDAM.shex"], "Map/BPDAMFHIR/BPFHIR.ttl", "tag:BPfhir123", "tag:b0", null, "Map/BPDAMFHIR/BPunitsDAM.ttl"], ["back" , ["Map/BPDAMFHIR/BPunitsDAM.shex"], ["Map/BPDAMFHIR/BPFHIR.shex"], "Map/BPDAMFHIR/BPunitsDAM.ttl", "tag:b0", "tag:BPfhir123", null, "Map/BPDAMFHIR/BPFHIR.ttl"], // ["bifer", ["Map/BPDAMFHIR/BPFHIRsys.shex", "Map/BPDAMFHIR/BPFHIRdia.shex"], ["Map/BPDAMFHIR/BPunitsDAM.shex"], "Map/BPDAMFHIR/BPFHIR.ttl", "tag:BPfhir123", "tag:b0", null, "Map/BPDAMFHIR/BPunitsDAM.ttl"] // ["bifb" , ["Map/BPDAMFHIR/BPFHIR.shex"], ["Map/BPDAMFHIR/BPunitsDAMsys.shex", "Map/BPDAMFHIR/BPunitsDAMdia.shex"], "Map/BPDAMFHIR/BPFHIR.ttl", "tag:b0", "tag:BPfhir123", null, "Map/BPDAMFHIR/BPunitsDAM.ttl"] ]; if (TESTS) tests = tests.filter(function (t) { return TESTS.indexOf(t[0]) !== -1; }); tests.forEach(function (test) { Harness.prepare.apply(null, test.slice(1)); }); /* Harness.prepare(["Map/BPDAMFHIR/BPFHIR.shex"], ["Map/BPDAMFHIR/BPunitsDAMsys.shex", "Map/BPDAMFHIR/BPunitsDAMdia.shex"], "Map/BPDAMFHIR/BPFHIR.ttl", null, "Map/BPDAMFHIR/BPunitsDAM.ttl"); emits: _:0 bpudam:systolic [ bpudam:value "110"^^xsd:float. bpudam:units "mmHg" ] ; bpudam:diastolic _:2. _:3 bpudam:systolic _:4. _:3 bpudam:diastolic [ _:5 bpudam:value "70"^^xsd:float. _:5 bpudam:units "mmHg" ] . instead of: _:b0 bpudam:diastolic [ bpudam:value "70"^^xsd:float. bpudam:units "mmHg" ] ; _:b0 bpudam:systolic [ bpudam:value "110"^^xsd:float. bpudam:units "mmHg" ] . where: PREFIX bpudam: <http://shexspec.github.io/extensions/Map/#BPunitsDAM-> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> */ }); function graphToString () { var output = ''; var w = new (require("n3")).Writer({ write: function (chunk, encoding, done) { output += chunk; done && done(); }, }); w.addQuads(this.getQuads(null, null, null)); // is this kosher with no end method? return "{\n" + output + "\n}"; } /** graphEquals: test if two graphs are isomorphic through some bnode mapping. * * this: one of the graphs to test, referred to as "left" below. * right: the other graph to test. * m: (optional) writable mapping from left bnodes to write bnodes. * returns: true or false * side effects: m is populated with a working mapping. */ function graphEquals (right, m) { if (this.size !== right.size) return false; m = m || {}; // Left→right mappings (optional argument). var back = Object.keys(m).reduce(function (ret, from) { // Right→left mappings ret[m[from]] = from; // populated if m was passed in. return ret; }, {}); function match (g) { function val (term, mapping) { mapping = mapping || m; // Mostly used for left→right mappings. if (RdfTerm.isBlank(term)) return (term in mapping) ? mapping[term] : null // Bnodes get current binding or null. else return term; // Other terms evaluate to themselves. } if (g.length == 0) // Success if there's nothing left to match. return true; var t = g.pop(), s = val(t.subject), o = val(t.object); // Take the first triple in left. var tm = right.getQuads( s ? RdfTerm.externalTerm(s, require("n3").DataFactory) : null, RdfTerm.externalTerm(t.predicate, require("n3").DataFactory), o ? RdfTerm.externalTerm(o, require("n3").DataFactory) : null // Find candidates in right. ).map(RdfTerm.internalTriple); var r = tm.reduce(function (ret, triple) { // Walk through candidates in right. if (ret) return true; // Only examine first successful mapping. var adds = []; // List of candidate mappings. function add (from, to) { if (val(from) === null) { // If there's no binding from tₗ to tᵣ, if (val(to, back) === null) { // If we can bind to to the object adds.push(from); // add a candidate binding. m[from] = to; back[to] = from; return true; } else { // Otherwise, return false; // it's not a viable mapping. } } else { // Otherwise, return true; // there's no new binding. } } if (!add(t.subject, triple.subject) || // If the bindings for tₗ.s→tᵣ.s fail !add(t.object, triple.object) || // or the bindings for tₗ.o→tᵣ.o fail !match(g)) { // of the remaining triples fail, adds.forEach(function (added) { // remove each added binding. delete back[m[added]]; delete m[added]; }); return false; } else return true; }, false); // Empty tm returns failure. if (!r) { g.push(t); // No binding for t in cancidate mapping. } return r; } return match(this.getQuads(null, null, null) // Start with all triples. .map(RdfTerm.internalTriple)); } function testEquiv (name, g1, g2, equals, mapping) { it("should test " + name + " to be " + equals, function () { var l = new (require("n3")).Store(); l.toString = graphToString; l.equals = graphEquals; var r = new (require("n3")).Store(); r.toString = graphToString; g1.forEach(function (triple) { l.addQuad(RdfTerm.externalTriple({subject: triple[0], predicate: triple[1], object: triple[2]}, require("n3").DataFactory)); }); g2.forEach(function (triple) { r.addQuad(RdfTerm.externalTriple({subject: triple[0], predicate: triple[1], object: triple[2]}, require("n3").DataFactory)); }); var m = {}; var ret = l.equals(r, m); expect(ret).to.equal(equals, m); if (mapping) { if (mapping.constructor === Array) { var found = 0; mapping.forEach(function (thisMap) { try { expect(m).to.deep.equal(thisMap); ++found; } catch (e) { } }); if (found !== 1) // slightly misleading error, but adequate. expect(m).to.deep.equal(mapping); } else { expect(m).to.deep.equal(mapping); } } }); } describe("Graph equivalence", function () { var p12Permute = [ {"_:l1": "_:r1", "_:l2": "_:r2"}, {"_:l1": "_:r2", "_:l2": "_:r1"}]; var p123Permute = [ // note intentional _:r3 on left side {"_:l1": "_:r1", "_:l2": "_:r2", "_:r3": "_:r3"}, {"_:l1": "_:r1", "_:l2": "_:r3", "_:r3": "_:r2"}, {"_:l1": "_:r2", "_:l2": "_:r1", "_:r3": "_:r3"}, {"_:l1": "_:r2", "_:l2": "_:r3", "_:r3": "_:r1"}, {"_:l1": "_:r3", "_:l2": "_:r1", "_:r3": "_:r2"}, {"_:l1": "_:r3", "_:l2": "_:r2", "_:r3": "_:r1"}]; var tests = [ {name:"spo123=spo123", p:true, m:{}, l:[["s", "p", "o1"], ["s", "p", "o2"], ["s", "p", "o3"]], r:[["s", "p", "o2"], ["s", "p", "o3"], ["s", "p", "o1"]]}, {name:"spo123!=sPo123", p:false, m:{}, l:[["s", "p", "o1"], ["s", "p", "o2"], ["s", "p", "o3"]], r:[["s", "P", "o2"], ["s", "P", "o3"], ["s", "P", "o1"]]}, {name:"l<r", p:false, m:null, l:[["s", "p", "o1"], ["s", "p", "o2"]], r:[["s", "p", "o2"], ["s", "p", "o3"], ["s", "p", "o1"]]}, {name:"r<l", p:false, m:null, l:[["s", "p", "o1"], ["s", "p", "o2"], ["s", "p", "o3"]], r:[["s", "p", "o2"], ["s", "p", "o3"]]}, {name:"1-bnode-no-rewrite", p:true, m:{"_:x1": "_:x1"}, l:[["s", "p", "_:x1"], ["s", "p", "o2"], ["s", "p", "o3"]], r:[["s", "p", "_:x1"], ["s", "p", "o2"], ["s", "p", "o3"]]}, {name:"1-bnode-rewrite", p:true, m:{"_:l1": "_:r1"}, l:[["s", "p", "_:l1"], ["s", "p", "o2"], ["s", "p", "o3"]], r:[["s", "p", "_:r1"], ["s", "p", "o2"], ["s", "p", "o3"]]}, {name:"tall3", p:true, m:{"_:l1": "_:r1", "_:l2": "_:r2", "_:l3": "_:r3"}, l:[["s", "p1", "_:l1"], ["_:l1", "p2", "_:l2"], ["_:l2", "p", "_:l3"]], r:[["s", "p1", "_:r1"], ["_:r1", "p2", "_:r2"], ["_:r2", "p", "_:r3"]]}, {name:"tall3-rotated1", p:true, m:{"_:l1": "_:r1", "_:l2": "_:r2", "_:l3": "_:r3"}, l:[["s", "p1", "_:l1"], ["_:l1", "p2", "_:l2"], ["_:l2", "p", "_:l3"]], r:[["_:r1", "p2", "_:r2"], ["_:r2", "p", "_:r3"], ["s", "p1", "_:r1"]]}, {name:"s p _:l1, o2 != s p _:r1, _:r2", p:false, m:null, l:[["s", "p", "_:l1"], ["s", "p", "o2"]], r:[["s", "p", "_:r1"], ["s", "p", "_:r2"]]}, {name:"s p _:l1, o2, p3 != s p _:r1, _:r2, o3", p:false, m:null, l:[["s", "p", "_:l1"], ["s", "p", "o2"], ["s", "p", "o3"]], r:[["s", "p", "_:r1"], ["s", "p", "_:r2"], ["s", "p", "o3"]]}, {name:"s p _:l1, o2, p3 != s p _:r1, _:r1, o3", p:false, m:null, l:[["s", "p", "_:l1"], ["s", "p", "o2"], ["s", "p", "o3"]], r:[["s", "p", "_:r1"], ["s", "p", "_:r1"], ["s", "p", "o3"]]}, {name:"s p _:l1, _:l2, o3 != s p _:r1, _:r1, o3", p:false, m:null, l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "o3"]], r:[["s", "p", "_:r1"], ["s", "p", "_:r1"], ["s", "p", "o3"]]}, {name:"s p _:l1, _:l2, o3 = s p _:r1, _:r2, o3", p:true, m: [{"_:l1": "_:r1", "_:l2": "_:r2"}, {"_:l1": "_:r2", "_:l2": "_:r1"}], l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "o3"]], r:[["s", "p", "_:r1"], ["s", "p", "_:r2"], ["s", "p", "o3"]]}, {name:"s p _:l1. s p2 _:l2, p3 = s p _:r1. s p2 _:r2, o3", p:true, m:{"_:l1": "_:r1", "_:l2": "_:r2"}, l:[["s", "p", "_:l1"], ["s", "p2", "_:l2"], ["s", "p2", "o3"]], r:[["s", "p", "_:r1"], ["s", "p2", "_:r2"], ["s", "p2", "o3"]]}, {name:"s p _:l1. s p2 _:l2, p3 = s p _:r1. s p2 _:r2, o3 - rotated1", p:true, m:{"_:l1": "_:r1", "_:l2": "_:r2"}, l:[["s", "p", "_:l1"], ["s", "p2", "_:l2"], ["s", "p2", "o3"]], r:[["s", "p2", "o3"], ["s", "p", "_:r1"], ["s", "p2", "_:r2"]]}, {name:"s p _:l1. s p2 _:l2, p3 = s p _:r1. s p2 _:r2, o3 - rotated2", p:true, m:{"_:l1": "_:r1", "_:l2": "_:r2"}, l:[["s", "p", "_:l1"], ["s", "p2", "_:l2"], ["s", "p2", "o3"]], r:[["s", "p2", "_:r2"], ["s", "p2", "o3"], ["s", "p", "_:r1"]]}, {name:"s p _:l1, _:l2, _:l3 = s p _:r1, _:r2, _:r3", p:true, m:p123Permute, l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "_:r3"]], r:[["s", "p", "_:r1"], ["s", "p", "_:r2"], ["s", "p", "_:r3"]]}, {name:"s p _:l1, _:l2, _:l3 = s p _:r1, _:r2, _:r3 - rotated1", p:true, m:p123Permute, l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "_:r3"]], r:[["s", "p", "_:r3"], ["s", "p", "_:r1"], ["s", "p", "_:r2"]]}, {name:"s p _:l1, _:l2, _:l3 = s p _:r1, _:r2, _:r3 - rotated2", p:true, m:p123Permute, l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "_:r3"]], r:[["s", "p", "_:r2"], ["s", "p", "_:r3"], ["s", "p", "_:r1"]]}, // literals {name:"s p _:l1, _:l2, 'o3' = s p _:r1, _:r2, 'o3'", p:true, m:p12Permute, l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "\"o3\""]], r:[["s", "p", "_:r1"], ["s", "p", "_:r2"], ["s", "p", "\"o3\""]]}, {name:"s p _:l1, _:l2, 'o3' != s p _:r1, _:r2, 'o4'", p:false, m:null, l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "\"o3\""]], r:[["s", "p", "_:r1"], ["s", "p", "_:r2"], ["s", "p", "\"o4\""]]}, {name:"s p _:l1, _:l2, 'o3'@fr = s p _:r1, _:r2, 'o3'@fr", p:true, m:p12Permute, l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "\"o3\"@fr"]], r:[["s", "p", "_:r1"], ["s", "p", "_:r2"], ["s", "p", "\"o3\"@fr"]]}, {name:"s p _:l1, _:l2, 'o3'@fr != s p _:r1, _:r2, 'o3'@en-FR", p:false, m:null, l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "\"o3\"@fr"]], r:[["s", "p", "_:r1"], ["s", "p", "_:r2"], ["s", "p", "\"o3\"@en-FR"]]}, {name:"s p _:l1, _:l2, 'o3'^^dt1 = s p _:r1, _:r2, 'o3'^^dt1", p:true, m:p12Permute, l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "\"o3\"^^dt1"]], r:[["s", "p", "_:r1"], ["s", "p", "_:r2"], ["s", "p", "\"o3\"^^dt1"]]}, {name:"s p _:l1, _:l2, 'o3'^^dt1 != s p _:r1, _:r2, 'o3'^^dt2", p:false, m:null, l:[["s", "p", "_:l1"], ["s", "p", "_:l2"], ["s", "p", "\"o3\"^^dt1"]], r:[["s", "p", "_:r1"], ["s", "p", "_:r2"], ["s", "p", "\"o3\"^^dt2"]]}, ]; if (TESTS) tests = tests.filter(function (t) { return TESTS.indexOf(t.name) !== -1; }); tests.forEach(function (t) { testEquiv(t.name, t.l, t.r, t.p, t.m); }); });
48.959248
213
0.483865
a845f2b2f37557b526aa7fda12aec0325764a13f
1,413
js
JavaScript
packages/serverless/test/downstream_dummy/index.js
gebhardtr/nodejs
59ce34dd0a944f4ed3f59f3e19b03f42912839d8
[ "MIT" ]
62
2016-08-31T06:16:09.000Z
2021-06-23T08:30:21.000Z
packages/serverless/test/downstream_dummy/index.js
gebhardtr/nodejs
59ce34dd0a944f4ed3f59f3e19b03f42912839d8
[ "MIT" ]
110
2016-07-08T13:35:32.000Z
2021-06-10T05:34:31.000Z
packages/serverless/test/downstream_dummy/index.js
gebhardtr/nodejs
59ce34dd0a944f4ed3f59f3e19b03f42912839d8
[ "MIT" ]
35
2017-02-05T12:41:07.000Z
2021-01-19T06:33:03.000Z
/* * (c) Copyright IBM Corp. 2021 * (c) Copyright Instana Inc. and contributors 2019 */ 'use strict'; const express = require('express'); const http = require('http'); const morgan = require('morgan'); const pino = require('pino')(); const { sendToParent } = require('../../../core/test/test_util'); const delay = require('../../../core/test/test_util/delay'); const logPrefix = 'downstream-dummy'; const logger = pino.child({ name: logPrefix, pid: process.pid }); logger.level = 'info'; const port = process.env.DOWNSTREAM_DUMMY_PORT || 3456; const app = express(); if (process.env.WITH_STDOUT) { app.use(morgan(`${logPrefix} (${process.pid}): :method :url :status`)); } app.get('/', (req, res) => { const rawHeaders = req.rawHeaders.slice(); ['Accept', 'Accept-Encoding', 'Connection', 'Host', 'User-Agent'].forEach(headerName => { const idx = rawHeaders.indexOf(headerName); rawHeaders.splice(idx, 2); }); const headersToEcho = {}; for (let i = 0; i < rawHeaders.length; i += 2) { headersToEcho[rawHeaders[i]] = rawHeaders[i + 1]; } delay(200).then(() => { res.json(headersToEcho); }); }); http.createServer(app).listen(port, error => { if (error) { logger.error(error); process.exit(1); return; // eslint-disable-line no-useless-return } else { logger.info('Listening on port: %s', port); sendToParent('downstream dummy: started'); } });
27.173077
91
0.640481
a8426f616df19f211dc033c65fb7cb76af5a97a0
2,795
js
JavaScript
ContactsList.Angular/Scripts/i18n/angular-locale_is-is.js
write2madhu/octo-spoon
47e240c176b390112eee62e48aab1834e9aee8a4
[ "MIT" ]
82
2015-05-14T09:30:38.000Z
2021-07-06T09:28:20.000Z
ContactsList.Angular/Scripts/i18n/angular-locale_is-is.js
write2madhu/octo-spoon
47e240c176b390112eee62e48aab1834e9aee8a4
[ "MIT" ]
118
2015-01-27T05:41:46.000Z
2022-01-21T23:21:46.000Z
ContactsList.Angular/Scripts/i18n/angular-locale_is-is.js
write2madhu/octo-spoon
47e240c176b390112eee62e48aab1834e9aee8a4
[ "MIT" ]
55
2015-05-13T12:18:11.000Z
2018-11-20T16:07:14.000Z
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } function getWT(v, f) { if (f === 0) { return {w: 0, t: 0}; } while ((f % 10) === 0) { f /= 10; v--; } return {w: v, t: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "f.h.", "e.h." ], "DAY": [ "sunnudagur", "m\u00e1nudagur", "\u00feri\u00f0judagur", "mi\u00f0vikudagur", "fimmtudagur", "f\u00f6studagur", "laugardagur" ], "ERANAMES": [ "fyrir Krist", "eftir Krist" ], "ERAS": [ "f.Kr.", "e.Kr." ], "MONTH": [ "jan\u00faar", "febr\u00faar", "mars", "apr\u00edl", "ma\u00ed", "j\u00fan\u00ed", "j\u00fal\u00ed", "\u00e1g\u00fast", "september", "okt\u00f3ber", "n\u00f3vember", "desember" ], "SHORTDAY": [ "sun.", "m\u00e1n.", "\u00feri.", "mi\u00f0.", "fim.", "f\u00f6s.", "lau." ], "SHORTMONTH": [ "jan.", "feb.", "mar.", "apr.", "ma\u00ed", "j\u00fan.", "j\u00fal.", "\u00e1g\u00fa.", "sep.", "okt.", "n\u00f3v.", "des." ], "fullDate": "EEEE, d. MMMM y", "longDate": "d. MMMM y", "medium": "d. MMM y HH:mm:ss", "mediumDate": "d. MMM y", "mediumTime": "HH:mm:ss", "short": "d.M.y HH:mm", "shortDate": "d.M.y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "kr", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "is-is", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); var wt = getWT(vf.v, vf.f); if (wt.t == 0 && i % 10 == 1 && i % 100 != 11 || wt.t != 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
20.40146
252
0.435778
a8414e1e90b8f7f7a1dc090ab72e60ebf8860bfc
526
js
JavaScript
electron-app/windows/TrayWindow.js
DmytroVasin/TimeTracker
b8fa4e7ceaadf16ccc7da8661e2f4f4349b52bf8
[ "MIT" ]
15
2017-04-06T12:54:30.000Z
2021-08-17T10:26:26.000Z
electron-app/windows/TrayWindow.js
DmytroVasin/TimeTracker
b8fa4e7ceaadf16ccc7da8661e2f4f4349b52bf8
[ "MIT" ]
null
null
null
electron-app/windows/TrayWindow.js
DmytroVasin/TimeTracker
b8fa4e7ceaadf16ccc7da8661e2f4f4349b52bf8
[ "MIT" ]
5
2018-08-08T02:59:01.000Z
2019-11-15T08:23:50.000Z
const path = require('path'); const { BrowserWindow } = require('electron'); class TrayWindow { constructor() { let htmlPath = 'file://' + path.join(__dirname, '..') + '/pages/tray_page.html' this.window = new BrowserWindow({ show: false, height: 210, width: 225, frame: false, backgroundColor: '#E4ECEF', // resizable: false, }); this.window.loadURL(htmlPath); this.window.on('blur', () => { this.window.hide(); }); } } module.exports = TrayWindow;
19.481481
83
0.577947
a824da3bd7960e94fcd6d7f7b6235073b81fb72e
50
js
JavaScript
portal/static/js/main.js
satoshun-go-example/isucon8-final
76f7d821043aa08e1adabdc6ca5f66320cb7be3d
[ "MIT" ]
171
2018-09-18T13:56:11.000Z
2021-08-21T00:05:37.000Z
portal/static/js/main.js
satoshun-go-example/isucon8-final
76f7d821043aa08e1adabdc6ca5f66320cb7be3d
[ "MIT" ]
22
2018-11-26T04:13:44.000Z
2022-03-30T22:56:14.000Z
portal/static/js/main.js
satoshun-go-example/isucon8-final
76f7d821043aa08e1adabdc6ca5f66320cb7be3d
[ "MIT" ]
121
2018-09-18T14:43:18.000Z
2022-02-19T01:26:58.000Z
$(function() { $('.table').tablesorter(); });
12.5
30
0.48
a8446643d5b8588d045e49e0787e537a441104bf
36,562
js
JavaScript
static/scripts/S3/s3.ui.hierarchicalopts.js
flavour/aidiq
60024c8a83e6410584e4b43b64baf9552936a685
[ "MIT" ]
2
2018-04-06T08:18:21.000Z
2021-09-17T11:45:00.000Z
static/scripts/S3/s3.ui.hierarchicalopts.js
flavour/aidiq
60024c8a83e6410584e4b43b64baf9552936a685
[ "MIT" ]
2
2015-02-14T18:58:17.000Z
2015-02-24T07:22:39.000Z
static/scripts/S3/s3.ui.hierarchicalopts.js
flavour/aidiq
60024c8a83e6410584e4b43b64baf9552936a685
[ "MIT" ]
3
2015-02-11T10:31:26.000Z
2021-09-17T11:46:29.000Z
/** * jQuery UI HierarchicalOpts Widget for S3HierarchyWidget/S3HierarchyFilter * * @copyright 2013-2021 (c) Sahana Software Foundation * @license MIT * * requires jQuery 1.9.1+ * requires jQuery UI 1.10 widget factory * requires jQuery jstree 3.0.3 * */ (function($, undefined) { "use strict"; var hierarchicaloptsID = 0; /** * HierarchicalOpts widget */ $.widget('s3.hierarchicalopts', { /** * Default options * * @prop {array} selected - the record IDs of initially selected nodes * @prop {bool} multiple - allow selection of multiple nodes (default: true) * @prop {bool} leafonly - return only leaf nodes (default: true); with * multiple=true, this will automatically select all * child nodes when selecting a parent node - with * multiple=false, this will inhibit the selection of * any parent nodes * @prop {bool} cascade - automatically select child nodes when selecting a * parent node, only with multiple=true and leafonly=false; * if set to false, an explicit option to select/deselect * all child nodes will be available * @prop {bool} cascadeOptionInTree - see cascade; if true, the explicit option to * select/deselect all child nodes will be shown * as nodes inside the tree - if false, the * option will be rendered as context-menu for * parent nodes; default is true * @prop {bool} bulkSelect - provide an option to select/deselect all available nodes; * this option will be rendered inside the tree when * cascadeOptionInTree=true, otherwise separate as header * @prop {string} noneSelectedText - localized button label when no options selected * @prop {string} selectedText - localized button label when options selected * @prop {string} noOptionsText - localized message for 'no options available' * @prop {string} selectAllText - localized label for 'select all' * @prop {string} deselectAllText - localized label for 'deselect all' * @prop {bool} icons - show icons for nodes (default: false) * @prop {bool} sep - separator to use to concatenate the hierarchy to represent the selected node (default: don't concatenate) * @prop {bool} stripes - render alternating background for even/odd rows (default: true) * @prop {bool} htmlTitles - treat node titles as HTML (default: true) */ options: { selected: null, multiple: true, leafonly: true, cascade: false, bulkSelect: false, cascadeOptionInTree: true, noneSelectedText: 'Select', selectedText: 'selected', noOptionsText: 'No options available', selectAllText: 'Select All', deselectAllText: 'Deselect All', icons: false, sep: null, stripes: true, htmlTitles: true }, /** * Create the widget */ _create: function() { var el = $(this.element), opts = this.options; this.id = hierarchicaloptsID; hierarchicaloptsID += 1; this._namespace = '.hierarchicalopts' + hierarchicaloptsID; this.treeID = el.attr('id') + '-tree'; // The hidden input field this.input = el.find('.s3-hierarchy-input').first(); this.input.data('input', true); var s = opts.selected; if (s) { this.input.val(this._stringifySelection(s)); } // The button this.button = $('<button type="button" class="s3-hierarchy-button ui-multiselect ui-widget ui-state-default ui-corner-all"><span class="ui-icon ui-icon-triangle-1-s"></span></button>'); this.buttonText = $('<span>' + opts.noneSelectedText + '</span>').appendTo(this.button); // No-options section this.noopts = $('<span class="no-options-available">' + opts.noOptionsText + '</span>').hide(); // The tree this.tree = el.find('.s3-hierarchy-tree').first(); // The wrapper this.wrapper = this.tree.closest('.s3-hierarchy-wrapper') .hide() .before(this.noopts) .before(this.button) .detach() .appendTo('body'); this._isOpen = false; this._isBulk = false; this.manualCascadeOption = false; }, /** * Update the widget options */ _init: function() { this.refresh(); }, /** * Remove generated elements & reset other changes */ _destroy: function() { $.Widget.prototype.destroy.call(this); this._unbindEvents(); $(this.button).remove(); $(this.noopts).remove(); $(this.tree).detach() .appendTo(this.element) .show(); }, /** * Redraw contents */ refresh: function() { this._unbindEvents(); var opts = this.options, tree = this.tree, self = this; if (!tree.find('li').length) { // .hide() not strong enough to beat the !important on .form-container form .ui-multiselect this.button.attr('style', 'display:none!important'); this.noopts.show(); return; } else { this.noopts.hide(); this.button.attr('style', ''); } // Move error-wrapper behind button this.input.next('.error_wrapper') .insertAfter(this.button) .one('click', function() { $(this).fadeOut(); }); // Initially selected nodes var currentValue = this.input.val(); if (currentValue) { var selectedValues = this._parseSelection(currentValue), treeID = this.treeID; $.each(selectedValues, function() { $('#' + treeID + '-' + this).data('jstree', {selected: true}); }); } // If there's only one root node, start with this node open var roots = tree.find('> ul > li'); if (roots.length == 1) { var root = roots.first(); var node_data = root.data('jstree'); root.data('jstree', $.extend({}, node_data, {'opened': true})); } var multiple = opts.multiple, leafonly = opts.leafonly, cascade = opts.cascade, three_state = false, contextMenu = null, plugins = ['sort', 'checkbox']; this.input.data('multiple', multiple); if ((cascade || leafonly ) && multiple) { three_state = true; } else if (multiple) { // Provide a manual cascade-select option if (!opts.cascadeOptionInTree) { contextMenu = function(node) { if (tree.jstree('is_parent', node)) { // Context menu for "manual" cascade select $.vakata.context.settings.icons = false; return { 'select_all': { label: self.options.selectAllText, icon: false, action: function(obj) { self._selectBranch(node); } }, 'deselect_all': { label: self.options.deselectAllText, icon: false, action: function(obj) { self._deselectBranch(node); } } }; } else { return null; } }; plugins.push('contextmenu'); } else { this.manualCascadeOption = true; } } tree.jstree({ 'core': { 'themes': { //name: 'default', // 'default-dark' available, although not in our sources icons: opts.icons, stripes: opts.stripes }, animation: 100, multiple: multiple, check_callback: true }, 'checkbox': { three_state: three_state }, 'sort' : function (a, b) { // Bulk-select nodes go always first var sorted = this.get_text(a) > this.get_text(b) ? 1 : -1, aRel, bRel; try { aRel = this.get_node(a).li_attr.rel; } catch (e) { aRel = null; } try { bRel = this.get_node(b).li_attr.rel; } catch (e) { bRel = null; } if (aRel == 'bulk') { return -1; } else if (bRel == 'bulk') { return 1; } else if (aRel == 'none') { return -1; } else if (bRel == 'none') { return 1; } else { return sorted; } }, 'contextmenu': { items: contextMenu, select_node: false, icons: false }, 'plugins': plugins }); var inst = jQuery.jstree.reference(tree); // Render bulk-select option? if (multiple) { if ((opts.bulkSelect || this.manualCascadeOption) && opts.cascadeOptionInTree) { this.wrapper.find('.s3-hierarchy-header').hide(); inst.create_node('#', { id: this.treeID + '-select-all', text: opts.selectAllText, li_attr: { 'rel': 'bulk', 'class': 's3-hierarchy-action-node' } }, 'first'); } else { this.wrapper.find('.s3-hierarchy-header').removeClass('hide').show(); } } // Initial update of button text (wait for ready-event) tree.on('ready.jstree', function() { var selected = inst.get_checked(); self._updateButtonText(selected); }); this._bindEvents(); }, /** * Reload Tree * - called from scripts similar to filterOptionsS3 */ reload: function(ajaxURL) { // Load the data var self = this; ajaxURL += '?widget_id=' + $(this.element).attr('id'); // Remove old JSTree this.tree.jstree('destroy'); // Remove old Value(s) this.input.val(''); $.getS3(ajaxURL, function (data) { // Update the DOM self.tree.html(data); // Redraw the Tree self.refresh(); }, 'html'); }, /** * Custom actions for option updates * * @param {string} key - they option key * @param {mixed} value - the option value */ _setOption: function(key, value) { if ( key === "selected" ) { // Check selected nodes and update hidden input var inst = jQuery.jstree.reference($(this.tree)); if (inst) { inst.uncheck_all(); if (value) { this.input.val(this._stringifySelection(value)); var treeID = this.treeID; $.each(value, function() { inst.check_node('#' + treeID + '-' + this); }); this._updateButtonText(value); } } } this._super(key, value); }, /** * Get all selected nodes and store the result in the hidden input */ _updateSelectedNodes: function() { var inst = jQuery.jstree.reference($(this.tree)); var oldSelected = this._parseSelection(this.input.val()), newSelected = [], selectedIDs = [], multiple = this.options.multiple, leafonly = this.options.leafonly; var nodes = inst.get_checked(true); $(nodes).each(function() { var id = $(this).attr('id'); if ($(this).attr('rel') == 'bulk') { return; // skip bulk nodes } if (id && (!leafonly || inst.is_leaf(this))) { var record_id = id.split('-').pop(); if (record_id != 'None') { record_id = parseInt(record_id); } if (record_id) { newSelected.push(record_id); selectedIDs.push(id); } } }); var changed = false, diff = $(newSelected).not(oldSelected).get(); if (diff.length) { changed = true; } else { diff = $(oldSelected).not(newSelected).get(); if (diff.length) { changed = true; } } var input = this.input.val(this._stringifySelection(newSelected)); this._updateButtonText(selectedIDs); if (changed) { input.change(); $(this.element).trigger('select.s3hierarchy'); } return true; }, /** * Update the button text with the number of selected items * * @param {Array} selectedIDs - the HTML element IDs of the currently selected nodes */ _updateButtonText: function(selectedIDs) { var text = null, options = this.options, limit = 1, // @todo: make configurable? numSelected = 0; if (selectedIDs) { numSelected = selectedIDs.length; } if (numSelected) { if (numSelected > limit) { text = options.selectedText.replace('#', numSelected); } else { var inst = jQuery.jstree.reference($(this.tree)), items = [], label, parent, selector, sep = options.sep; for (var i = 0; i < numSelected; i++) { if (sep) { // Concatenate the hierarchy selector = selectedIDs[i]; label = $('#' + selector + ' > a').text().replace(/^\s+|\s+$/g, ''); parent = inst.get_parent(selector); while(parent != '#') { label = $('#' + parent + ' > a').text().replace(/^\s+|\s+$/g, '') + sep + label; parent = inst.get_parent(parent); } } else { // Just show the node Text label = $('#' + selectedIDs[i] + ' > a').text().replace(/^\s+|\s+$/g, ''); } items.push(label); } text = items.length ? items.join(' ') : options.noneSelectedText; } } else { text = options.noneSelectedText; } this.buttonText.text(text); }, /** * Update selected nodes and automatically close the menu on mouse-leave */ _updateAndClose: function() { if (!this._isBulk) { this._updateSelectedNodes(); var wrapper = this.wrapper, self = this; if (self.options.multiple) { wrapper.unbind('mouseleave.hierarchicalopts') .one('mouseleave.hierarchicalopts', function() { window.setTimeout(function() { self.closeMenu(); }, 100); }); } else { window.setTimeout(function() { self.closeMenu(); }, 100); } } }, /** * Actions when selecting a node * * @param {mixed} node - the node to select */ _selectNode: function(node) { var opts = this.options, inst = jQuery.jstree.reference($(this.tree)); var multiple = opts.multiple, leafonly = opts.leafonly; if (!multiple) { // De-select all other selected nodes var nodeID = node.id; $(inst.get_checked(true)).each(function () { if (nodeID != this.id) { if (!leafonly || inst.is_leaf(this)) { inst.uncheck_node(this); } } }); } else if (!this._isBulk) { if (node.li_attr.rel == 'bulk') { var parentID = inst.get_parent(node); if (!parentID || parentID == '#') { // Top-level bulk-select node inst.select_all(); } else { // Branch-level bulk-select node var parentNode = inst.get_node(parentID); this._selectBranch(parentNode, true); } } } if (leafonly && !multiple && !inst.is_leaf(node)) { inst.deselect_node(node); return false; } this._updateAndClose(); }, /** * Actions when deselecting a node * * @param {mixed} node - the node to deselect */ _deselectNode: function(node) { var inst = jQuery.jstree.reference($(this.tree)); if (!this._isBulk) { if (node.li_attr.rel == 'bulk') { var parentID = inst.get_parent(node); if (!parentID || parentID == '#') { inst.deselect_all(); } else { var parentNode = inst.get_node(parentID); this._deselectBranch(parentNode, true); } } else { var parentID = inst.get_parent(node); if (parentID) { var bulkNode = inst.get_node(parentID + '-select-all'); if (bulkNode) { this._isBulk = true; inst.uncheck_node(bulkNode); this._isBulk = false; } } } var selectAllNode = inst.get_node(this.treeID + '-select-all'); if (selectAllNode) { this._isBulk = true; inst.uncheck_node(selectAllNode); this._isBulk = false; } } this._updateSelectedNodes(); }, /** * Action when opening a node * * @param {mixed} node - the node to open */ _openNode: function(node) { var inst = jQuery.jstree.reference($(this.tree)); var parent = inst.get_parent(node); if(parent.length) { inst.open_node(parent, false, true); } if (this.manualCascadeOption) { var nodeID = node.id; var bulkNode = inst.get_node(nodeID + '-select-all'); if (!bulkNode) { var bulkNodeID = inst.create_node(node, { id: nodeID + '-select-all', text: this.options.selectAllText, li_attr: { 'rel': 'bulk', 'class': 's3-hierarchy-action-node' } }, 'first' ); bulkNode = inst.get_node(bulkNodeID); } var selectAllNode = inst.get_node(this.treeID + '-select-all'); if (selectAllNode && inst.is_checked(selectAllNode)) { this._isBulk = true; inst.check_node(bulkNode); this._isBulk = false; } } }, /** * Recursively select a branch * * @param {jQuery} node - the top node of the branch */ _selectBranch: function(node, exceptParent) { var inst = jQuery.jstree.reference($(this.tree)), self = this; this._isBulk = true; inst.open_node(node, function() { var children = inst.get_children_dom(node); $(children).each(function() { self._selectBranch(this); }); if (!exceptParent) { inst.check_node(node); } }); this._isBulk = false; this._updateAndClose(); }, /** * Recursively de-select a branch * * @param {jQuery} node - the top node of the branch */ _deselectBranch: function(node, exceptParent) { var inst = jQuery.jstree.reference($(this.tree)), self = this; this._isBulk = true; inst.open_node(node, function() { var children = inst.get_children_dom(node); $(children).each(function() { self._deselectBranch(this); }); if (!exceptParent) { inst.uncheck_node(node); } }); this._isBulk = false; this._updateSelectedNodes(); }, /** * Check particular nodes (used by setCurrentFilters) * * @param {Array} values - the record IDs of the nodes to select */ set: function(values) { var inst = jQuery.jstree.reference($(this.tree)), node, self = this, treeID = this.treeID; this._isBulk = true; inst.uncheck_all(); inst.close_all(); if (values) { var openAncestors = function(nodeID, callback) { var parent = inst.get_parent(nodeID); if (parent) { if (parent != '#') { openAncestors(parent); inst.open_node(parent, callback); } else if (callback) { callback(); } } }; values.forEach(function(index) { var node = inst.get_node(treeID + '-' + index); if (node) { // must open all ancestors to make sure // there is a DOM node for check_node (otherwise // nothing gets checked), and for better UX anyway openAncestors(node, function() { inst.check_node(node); }); } }); } this._isBulk = false; this._updateSelectedNodes(); }, /** * Get all checked nodes (used by getCurrentFilters) * * @returns {Array} the nodeIDs of the currently selected nodes */ get: function() { return this._parseSelection(this.input.val()); }, /** * Uncheck all nodes (used by clearFilters) */ reset: function() { var inst = jQuery.jstree.reference($(this.tree)); this._isBulk = true; inst.uncheck_all(); inst.close_all(); this._isBulk = false; this._updateSelectedNodes(); return true; }, /** * Helper to set correct position of menu * * @param {jQuery} wrapper - the menu wrapper * @param {jQuery} button - the menu button */ _setMenuPosition: function(wrapper, button) { var pos = button.offset(), css = { position: 'absolute', top: pos.top + button.outerHeight(), minWidth: button.outerWidth() - 8 }; if ($('body').css('direction') === 'rtl') { // Right-align with button css.right = ($(window).width() - (pos.left + button.outerWidth())); } else { // Left-align with button css.left = pos.left; } wrapper.css(css); }, /** * Open the tree (triggers 'open'-event) */ openMenu: function() { if (this._isOpen) { this.closeMenu(); } // Set correct menu position (+update on resize) var button = $(this.button), wrapper = $(this.wrapper), self = this; this._setMenuPosition(wrapper, button); $(window).on('resize' + this._namespace + '-mpos', function() { self._setMenuPosition(wrapper, button); }); wrapper.show(); $(this.tree).jstree('set_focus'); this._isOpen = true; button.addClass('ui-state-active'); $(this).trigger('open'); }, /** * Close the tree (triggers 'close'-event) */ closeMenu: function() { // Disable resize event handler $(window).off(this._namespace + '-mpos'); $(this.tree).jstree('unset_focus') .unbind('click.hierarchicalopts') .unbind('mouseleave.hierarchicalopts'); $(this.wrapper).fadeOut(50); this._isOpen = false; $(this.button).removeClass('ui-state-active'); $(this).trigger('close'); }, /** * Add a new node * * @param {Number} parent - the parent nodeID * @param {Number} id - the new nodeID * @param {String} title - the node title * @param {bool} check - check the node after adding it */ addNode: function(parent, id, title, check) { var tree = this.tree, treeID = this.treeID, nodeID = treeID + '-' + id, inst = jQuery.jstree.reference(tree); if (inst) { // We have an instance to add a node to var parentNode = '#'; // Get parent node if (parent) { parentNode = $('#' + treeID + '-' + parent + '_anchor'); if (!parentNode.length) { parentNode = '#'; } } // Insert the node tree.jstree('create_node', parentNode, { id: nodeID, text: title, li_attr: { // HTML attributes of the new node rel: 'leaf' } }, "last"); // Update the parent relationship and open the parent node if (parent) { parentNode.attr({rel: 'parent'}); tree.jstree('open_node', parentNode); } } else { // We do not have an instance to add a node to, so need to add manually & refresh var node = '<li rel="leaf" class="s3-hierarchy-node" id="' + nodeID + '">' + title + '</li>'; $('#' + treeID).append(node); this.refresh(); } if (check) { tree.jstree('check_node', $('#' + nodeID)); } }, /** * Parse the current selection from the real input (JSON) * * @param {string} value - the JSON value of the real input * @returns {Array} - the selected values as Array */ _parseSelection: function(value) { if (!!value) { var selected = JSON.parse(value); } else { return []; } if (!!selected) { if (selected.constructor !== Array) { // Single select => convert to array selected = [selected]; } } else { selected = []; } return selected; }, /** * Stringify the current selection for the real input (JSON) * * @param {Array} selected - the selected node IDs * @returns {string} - the value for the real input (JSON) */ _stringifySelection: function(selected) { if (!this.options.multiple) { if (selected.length) { // Single select => convert to single value selected = selected[0]; } else { return ''; } } return JSON.stringify(selected); }, /** * Bind events to generated elements (after refresh) */ _bindEvents: function() { var self = this, wrapper = $(this.wrapper), tree = $(this.tree), button = $(this.button), ns = this._namespace, opts = this.options; // Get the instance var inst = jQuery.jstree.reference(tree); // Cancel auto-close when opening a context menu var icons = $.vakata.context.settings.icons; $(document).bind('context_show.vakata', function() { wrapper.unbind('mouseleave.hierarchicalopts'); $.vakata.context.settings.icons = icons; }); // Open/select/deselect nodes tree.bind('select_node.jstree', function (event, data) { self._selectNode(data.node); }).bind('deselect_node.jstree', function (event, data) { self._deselectNode(data.node); }).bind("open_node.jstree", function (event, data) { self._openNode(data.node); }); // Button events (mimic multiselect) button.bind('click' + ns, function() { if (!self._isOpen) { self.openMenu(); } else { self.closeMenu(); } }).bind('keyup' + ns, function(event) { event.preventDefault(); switch(event.keyCode) { case 27: // esc case 38: // up case 37: // left self.closeMenu(); break; case 39: // right case 40: // down self.openMenu(); break; } }).bind('mouseenter' + ns, function() { if (!button.hasClass('ui-state-disabled')) { $(this).addClass('ui-state-hover'); } }).bind('mouseleave' + ns, function() { $(this).removeClass('ui-state-hover'); }).bind('focus' + ns, function() { if (!button.hasClass('ui-state-disabled')) { $(this).addClass('ui-state-focus'); } }).bind('blur' + ns, function() { $(this).removeClass('ui-state-focus'); }); if (opts.multiple && opts.bulkSelect && !opts.cascadeOptionInTree) { // Bulk selection/de-selection from separate header wrapper.find('.s3-hierarchy-select-all') .bind('click' + ns, function(event) { event.preventDefault(); inst.select_all(); self._updateSelectedNodes(); }); wrapper.find('.s3-hierarchy-deselect-all') .bind('click' + ns, function(event) { event.preventDefault(); inst.deselect_all(); self._updateSelectedNodes(); }); // Prevent propagation of click/mousedown events wrapper.find('.s3-hierarchy-header') .bind('click' + ns, function(event) { event.preventDefault(); event.stopPropagation(); }).bind('mousedown' + ns, function(event) { event.preventDefault(); event.stopPropagation(); }); } // Auto-close when clicking outside the menu or button $(document).bind('mousedown' + ns, function(event) { var target = event.target; if ($('.jstree-contextmenu').has(target).length || event.which == 3) { // Cancel auto-close when opening/interacting with context menu wrapper.unbind('mouseleave.hierarchicalopts'); return true; } if (!tree.is(target) && !button.is(target) && tree.has(target).length === 0 && button.has(target).length === 0) { self.closeMenu(); } }); return true; }, /** * Unbind events (before refresh) */ _unbindEvents: function() { var tree = $(this.tree), button = $(this.button), ns = this._namespace; tree.unbind('select_node.jstree') .unbind('deselect_node.jstree') .unbind('loaded.jstree') .unbind('open_node.jstree'); $(this.button).unbind(ns); $(document).unbind(ns); return true; } }); })(jQuery);
35.80999
197
0.424949
a828419d1bdc0be09cf0703790b2c0809ac76700
14,575
js
JavaScript
skills-by-the-community/Akanksha_Raghav/Seven_Wonders/lambda/index.js
Divya-Dayashankar-Jaiswal/alexa-skills
8e353f157dfc8c70cc9d515212d4792cbafae989
[ "MIT" ]
13
2020-08-06T19:42:48.000Z
2021-11-08T11:13:12.000Z
skills-by-the-community/Akanksha_Raghav/Seven_Wonders/lambda/index.js
Divya-Dayashankar-Jaiswal/alexa-skills
8e353f157dfc8c70cc9d515212d4792cbafae989
[ "MIT" ]
20
2020-08-19T17:08:13.000Z
2020-11-04T06:47:13.000Z
skills-by-the-community/Akanksha_Raghav/Seven_Wonders/lambda/index.js
Divya-Dayashankar-Jaiswal/alexa-skills
8e353f157dfc8c70cc9d515212d4792cbafae989
[ "MIT" ]
29
2020-08-19T09:18:58.000Z
2021-10-13T09:27:30.000Z
// This sample demonstrates handling intents from an Alexa skill using the Alexa Skills Kit SDK (v2). // Please visit https://alexa.design/cookbook for additional examples on implementing slots, dialog management, // session persistence, api calls, and more. const Alexa = require('ask-sdk-core'); const LaunchRequestHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'LaunchRequest'; }, handle(handlerInput) { const speakOutput = 'Hello Welcome to the seven wonders. you can know about 7 wonders of the world. How can I help you?'; return handlerInput.responseBuilder .speak(speakOutput) .reprompt(speakOutput) .getResponse(); } }; const IntroIntentHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' && Alexa.getIntentName(handlerInput.requestEnvelope) === 'IntroIntent'; }, handle(handlerInput) { const data = require('./data/intro.json'); const template = require('./templates/intro.json'); const speakOutput = 'we have seven wonders in the world. It was a campaign started in 2000 to choose Wonders of the World from a selection of 200 existing monuments. The popularity poll was led by Canadian-Swiss Bernard Weber and organized by the New7Wonders Foundation based in Zurich, Switzerland, with winners announced on 7 July 2007 in Lisbon.'; if (supportsAPL(handlerInput)) { handlerInput.responseBuilder .addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', version: '1.0', document: template, datasources: data }) } return handlerInput.responseBuilder .speak(speakOutput) .withSimpleCard('Wonders Of the World', speakOutput) .getResponse(); } }; const TajMahalIntentHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' && Alexa.getIntentName(handlerInput.requestEnvelope) === 'TajMahalIntent'; }, handle(handlerInput) { const data = require('./data/TajMahal.json'); const template = require('./templates/TajMahal.json'); const speakOutput = 'The Taj Mahal is an ivory-white marble mausoleum on the south bank of the Yamuna river in the Indian city of Agra. In 2007, it was declared a winner of the New7Wonders of the World (2000–2007) initiative.'; if (supportsAPL(handlerInput)) { handlerInput.responseBuilder .addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', version: '1.0', document: template, datasources: data }) } return handlerInput.responseBuilder .speak(speakOutput) .withSimpleCard('TAJ MAHAL', speakOutput) .getResponse(); } }; const ColosseumIntentHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' && Alexa.getIntentName(handlerInput.requestEnvelope) === 'ColosseumIntent'; }, handle(handlerInput) { const data = require('./data/Colosseum.json'); const template = require('./templates/Colosseum.json'); const speakOutput = 'The Colosseum or Coliseum, also known as the Flavian Amphitheatre, is an oval amphitheatre in the centre of the city of Rome, Italy. Built of concrete and sand, it is the largest amphitheatre ever built. The Colosseum is situated just east of the Roman Forum.'; if (supportsAPL(handlerInput)) { handlerInput.responseBuilder .addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', version: '1.0', document: template, datasources: data }) } return handlerInput.responseBuilder .speak(speakOutput) .withSimpleCard('COLOSSEUM', speakOutput) .getResponse(); } }; const PetraIntentHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' && Alexa.getIntentName(handlerInput.requestEnvelope) === 'PetraIntent'; }, handle(handlerInput) { const data = require('./data/Petra.json'); const template = require('./templates/Petra.json'); const speakOutput = 'Petra, originally known to the Nabataeans as Raqmu, is a historical and archaeological city in southern Jordan. The city is famous for its rock-cut architecture and water conduit system. Another name for Petra is the Rose City due to the color of the stone out of which it is carved.'; if (supportsAPL(handlerInput)) { handlerInput.responseBuilder .addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', version: '1.0', document: template, datasources: data }) } return handlerInput.responseBuilder .speak(speakOutput) .withSimpleCard('PETRA', speakOutput) .getResponse(); } }; const MachuPicchuIntentHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' && Alexa.getIntentName(handlerInput.requestEnvelope) === 'MachuPicchuIntent'; }, handle(handlerInput) { const data = require('./data/MachuPicchu.json'); const template = require('./templates/MachuPicchu.json'); const speakOutput = 'Machu Picchu, is a 15th-century Inca citadel situated on a mountain ridge 2,430 metres (7,970 ft) above sea level. It is located in the Cusco Region, Urubamba Province, Machupicchu District in Peru, above the Sacred Valley, which is 80 kilometres (50 mi) northwest of Cuzco and through which the Urubamba River flows.'; if (supportsAPL(handlerInput)) { handlerInput.responseBuilder .addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', version: '1.0', document: template, datasources: data }) } return handlerInput.responseBuilder .speak(speakOutput) .withSimpleCard('MACHU PICCHU', speakOutput) .getResponse(); } }; const ChristtheRedeemerIntentHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' && Alexa.getIntentName(handlerInput.requestEnvelope) === 'ChristtheRedeemerIntent'; }, handle(handlerInput) { const data = require('./data/ChristtheRedeemer.json'); const template = require('./templates/ChristtheRedeemer.json'); const speakOutput = 'Christ the Redeemer, is an Art Deco statue of Jesus Christ in Rio de Janeiro, Brazil, created by Polish-French sculptor Paul Landowski and built by the Brazilian engineer Heitor da Silva Costa, in collaboration with the French engineer Albert Caquot. '; if (supportsAPL(handlerInput)) { handlerInput.responseBuilder .addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', version: '1.0', document: template, datasources: data }) } return handlerInput.responseBuilder .speak(speakOutput) .withSimpleCard('Christ the Redeemer', speakOutput) .getResponse(); } }; const ElCastilloIntentHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' && Alexa.getIntentName(handlerInput.requestEnvelope) === 'ElCastilloIntent'; }, handle(handlerInput) { const data = require('./data/ElCastillo.json'); const template = require('./templates/ElCastillo.json'); const speakOutput = 'El Castillo, also known as the Temple of Kukulcan, is a Mesoamerican step-pyramid that dominates the center of the Chichen Itza archaeological site in the Mexican state of Yucatán. '; if (supportsAPL(handlerInput)) { handlerInput.responseBuilder .addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', version: '1.0', document: template, datasources: data }) } return handlerInput.responseBuilder .speak(speakOutput) .withSimpleCard('El Castillo', speakOutput) .getResponse(); } }; const GreatWallofChinaIntentHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' && Alexa.getIntentName(handlerInput.requestEnvelope) === 'GreatWallofChinaIntent'; }, handle(handlerInput) { const data = require('./data/GreatWallofChina.json'); const template = require('./templates/GreatWallofChina.json'); const speakOutput = 'The Great Wall of China is a series of fortifications made of stone, brick, tamped earth, wood, and other materials, generally built along an east-to-west line across the historical northern borders of China to protect the Chinese states and empires against the raids and invasions of the various nomadic groups of the Eurasian Steppe.'; if (supportsAPL(handlerInput)) { handlerInput.responseBuilder .addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', version: '1.0', document: template, datasources: data }) } return handlerInput.responseBuilder .speak(speakOutput) .withSimpleCard('The Great Wall of China', speakOutput) .getResponse(); } }; const HelpIntentHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' && Alexa.getIntentName(handlerInput.requestEnvelope) === 'AMAZON.HelpIntent'; }, handle(handlerInput) { const speakOutput = 'Here you will get to know about the seven wonders of the world. You can say the name of any of the 7 wonders of the world. For example you can say, great wall of china'; return handlerInput.responseBuilder .speak(speakOutput) .reprompt(speakOutput) .getResponse(); } }; const CancelAndStopIntentHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest' && (Alexa.getIntentName(handlerInput.requestEnvelope) === 'AMAZON.CancelIntent' || Alexa.getIntentName(handlerInput.requestEnvelope) === 'AMAZON.StopIntent'); }, handle(handlerInput) { const speakOutput = 'Goodbye!'; return handlerInput.responseBuilder .speak(speakOutput) .getResponse(); } }; const SessionEndedRequestHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'SessionEndedRequest'; }, handle(handlerInput) { // Any cleanup logic goes here. return handlerInput.responseBuilder.getResponse(); } }; // The intent reflector is used for interaction model testing and debugging. // It will simply repeat the intent the user said. You can create custom handlers // for your intents by defining them above, then also adding them to the request // handler chain below. const IntentReflectorHandler = { canHandle(handlerInput) { return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'; }, handle(handlerInput) { const intentName = Alexa.getIntentName(handlerInput.requestEnvelope); const speakOutput = `You just triggered ${intentName}`; return handlerInput.responseBuilder .speak(speakOutput) //.reprompt('add a reprompt if you want to keep the session open for the user to respond') .getResponse(); } }; // Generic error handling to capture any syntax or routing errors. If you receive an error // stating the request handler chain is not found, you have not implemented a handler for // the intent being invoked or included it in the skill builder below. const ErrorHandler = { canHandle() { return true; }, handle(handlerInput, error) { console.log(`~~~~ Error handled: ${error.stack}`); const speakOutput = `Sorry, I had trouble doing what you asked. Please try again.`; return handlerInput.responseBuilder .speak(speakOutput) .reprompt(speakOutput) .getResponse(); } }; function supportsAPL(handlerInput) { const supportedInterfaces = handlerInput.requestEnvelope.context.System.device.supportedInterfaces; const aplInterface = supportedInterfaces['Alexa.Presentation.APL']; return aplInterface !== null && aplInterface !== undefined; } // The SkillBuilder acts as the entry point for your skill, routing all request and response // payloads to the handlers above. Make sure any new handlers or interceptors you've // defined are included below. The order matters - they're processed top to bottom. exports.handler = Alexa.SkillBuilders.custom() .addRequestHandlers( LaunchRequestHandler, IntroIntentHandler, TajMahalIntentHandler, ColosseumIntentHandler, PetraIntentHandler, MachuPicchuIntentHandler, ChristtheRedeemerIntentHandler, ElCastilloIntentHandler, GreatWallofChinaIntentHandler, HelpIntentHandler, CancelAndStopIntentHandler, SessionEndedRequestHandler, IntentReflectorHandler, // make sure IntentReflectorHandler is last so it doesn't override your custom intent handlers ) .addErrorHandlers( ErrorHandler, ) .lambda();
44.984568
367
0.639794
a8484fd6bbe4e093f9bfcb15a49c69f062940734
769
js
JavaScript
dev/dapp/front-end/nft_front/node_modules/read-bigint/dist/read-biguint-64-le.js
liuxieric123/nft_move_starcoin
574859f11eb7fcef2edda5478ea19cd62007dea9
[ "MIT" ]
2
2021-08-04T06:16:39.000Z
2021-12-04T08:50:40.000Z
dev/dapp/front-end/nft_front/node_modules/read-bigint/dist/read-biguint-64-le.js
liuxieric123/nft_move_starcoin
574859f11eb7fcef2edda5478ea19cd62007dea9
[ "MIT" ]
null
null
null
dev/dapp/front-end/nft_front/node_modules/read-bigint/dist/read-biguint-64-le.js
liuxieric123/nft_move_starcoin
574859f11eb7fcef2edda5478ea19cd62007dea9
[ "MIT" ]
null
null
null
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.readBigUInt64LE = void 0; const common_1 = require("./common"); // https://github.com/nodejs/node/blob/v13.9.0/lib/internal/buffer.js#L83-L101 function readBigUInt64LE(buffer, offset = 0) { const { first, last } = common_1.getFirstAndLast(buffer, offset); const lo = first + buffer[++offset] * 2 ** 8 + buffer[++offset] * 2 ** 16 + buffer[++offset] * 2 ** 24; const hi = buffer[++offset] + buffer[++offset] * 2 ** 8 + buffer[++offset] * 2 ** 16 + last * 2 ** 24; return BigInt(lo) + (BigInt(hi) << BigInt(32)); } exports.readBigUInt64LE = readBigUInt64LE; //# sourceMappingURL=read-biguint-64-le.js.map
40.473684
79
0.605982
a847241945911a9c3e5544b3cfedbd391ec34772
83,554
js
JavaScript
node_modules/showdown/dist/showdown.js
lesliepeng/reactBlog
2bf3e8ed76b10926f6cbd3334cdcd504e96f375b
[ "MIT" ]
4
2016-03-12T22:41:07.000Z
2021-12-20T11:32:11.000Z
node_modules/showdown/dist/showdown.js
lesliepeng/reactBlog
2bf3e8ed76b10926f6cbd3334cdcd504e96f375b
[ "MIT" ]
38
2015-10-05T15:42:22.000Z
2020-12-15T05:29:00.000Z
node_modules/showdown/dist/showdown.js
lesliepeng/reactBlog
2bf3e8ed76b10926f6cbd3334cdcd504e96f375b
[ "MIT" ]
2
2015-10-09T06:10:39.000Z
2020-07-26T20:00:03.000Z
;/*! showdown 06-02-2017 */ (function(){ /** * Created by Tivie on 13-07-2015. */ function getDefaultOpts (simple) { 'use strict'; var defaultOptions = { omitExtraWLInCodeBlocks: { defaultValue: false, describe: 'Omit the default extra whiteline added to code blocks', type: 'boolean' }, noHeaderId: { defaultValue: false, describe: 'Turn on/off generated header id', type: 'boolean' }, prefixHeaderId: { defaultValue: false, describe: 'Specify a prefix to generated header ids', type: 'string' }, ghCompatibleHeaderId: { defaultValue: false, describe: 'Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)', type: 'boolean' }, headerLevelStart: { defaultValue: false, describe: 'The header blocks level start', type: 'integer' }, parseImgDimensions: { defaultValue: false, describe: 'Turn on/off image dimension parsing', type: 'boolean' }, simplifiedAutoLink: { defaultValue: false, describe: 'Turn on/off GFM autolink style', type: 'boolean' }, excludeTrailingPunctuationFromURLs: { defaultValue: false, describe: 'Excludes trailing punctuation from links generated with autoLinking', type: 'boolean' }, literalMidWordUnderscores: { defaultValue: false, describe: 'Parse midword underscores as literal underscores', type: 'boolean' }, strikethrough: { defaultValue: false, describe: 'Turn on/off strikethrough support', type: 'boolean' }, tables: { defaultValue: false, describe: 'Turn on/off tables support', type: 'boolean' }, tablesHeaderId: { defaultValue: false, describe: 'Add an id to table headers', type: 'boolean' }, ghCodeBlocks: { defaultValue: true, describe: 'Turn on/off GFM fenced code blocks support', type: 'boolean' }, tasklists: { defaultValue: false, describe: 'Turn on/off GFM tasklist support', type: 'boolean' }, smoothLivePreview: { defaultValue: false, describe: 'Prevents weird effects in live previews due to incomplete input', type: 'boolean' }, smartIndentationFix: { defaultValue: false, description: 'Tries to smartly fix indentation in es6 strings', type: 'boolean' }, disableForced4SpacesIndentedSublists: { defaultValue: false, description: 'Disables the requirement of indenting nested sublists by 4 spaces', type: 'boolean' }, simpleLineBreaks: { defaultValue: false, description: 'Parses simple line breaks as <br> (GFM Style)', type: 'boolean' }, requireSpaceBeforeHeadingText: { defaultValue: false, description: 'Makes adding a space between `#` and the header text mandatory (GFM Style)', type: 'boolean' }, ghMentions: { defaultValue: false, description: 'Enables github @mentions', type: 'boolean' }, ghMentionsLink: { defaultValue: 'https://github.com/{u}', description: 'Changes the link generated by @mentions. Only applies if ghMentions option is enabled.', type: 'string' }, encodeEmails: { defaultValue: true, description: 'Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities', type: 'boolean' } }; if (simple === false) { return JSON.parse(JSON.stringify(defaultOptions)); } var ret = {}; for (var opt in defaultOptions) { if (defaultOptions.hasOwnProperty(opt)) { ret[opt] = defaultOptions[opt].defaultValue; } } return ret; } function allOptionsOn () { 'use strict'; var options = getDefaultOpts(true), ret = {}; for (var opt in options) { if (options.hasOwnProperty(opt)) { ret[opt] = true; } } return ret; } /** * Created by Tivie on 06-01-2015. */ // Private properties var showdown = {}, parsers = {}, extensions = {}, globalOptions = getDefaultOpts(true), setFlavor = 'vanilla', flavor = { github: { omitExtraWLInCodeBlocks: true, simplifiedAutoLink: true, excludeTrailingPunctuationFromURLs: true, literalMidWordUnderscores: true, strikethrough: true, tables: true, tablesHeaderId: true, ghCodeBlocks: true, tasklists: true, disableForced4SpacesIndentedSublists: true, simpleLineBreaks: true, requireSpaceBeforeHeadingText: true, ghCompatibleHeaderId: true, ghMentions: true }, original: { noHeaderId: true, ghCodeBlocks: false }, ghost: { omitExtraWLInCodeBlocks: true, parseImgDimensions: true, simplifiedAutoLink: true, excludeTrailingPunctuationFromURLs: true, literalMidWordUnderscores: true, strikethrough: true, tables: true, tablesHeaderId: true, ghCodeBlocks: true, tasklists: true, smoothLivePreview: true, simpleLineBreaks: true, requireSpaceBeforeHeadingText: true, ghMentions: false, encodeEmails: true }, vanilla: getDefaultOpts(true), allOn: allOptionsOn() }; /** * helper namespace * @type {{}} */ showdown.helper = {}; /** * TODO LEGACY SUPPORT CODE * @type {{}} */ showdown.extensions = {}; /** * Set a global option * @static * @param {string} key * @param {*} value * @returns {showdown} */ showdown.setOption = function (key, value) { 'use strict'; globalOptions[key] = value; return this; }; /** * Get a global option * @static * @param {string} key * @returns {*} */ showdown.getOption = function (key) { 'use strict'; return globalOptions[key]; }; /** * Get the global options * @static * @returns {{}} */ showdown.getOptions = function () { 'use strict'; return globalOptions; }; /** * Reset global options to the default values * @static */ showdown.resetOptions = function () { 'use strict'; globalOptions = getDefaultOpts(true); }; /** * Set the flavor showdown should use as default * @param {string} name */ showdown.setFlavor = function (name) { 'use strict'; if (!flavor.hasOwnProperty(name)) { throw Error(name + ' flavor was not found'); } var preset = flavor[name]; setFlavor = name; for (var option in preset) { if (preset.hasOwnProperty(option)) { globalOptions[option] = preset[option]; } } }; /** * Get the currently set flavor * @returns {string} */ showdown.getFlavor = function () { 'use strict'; return setFlavor; }; /** * Get the options of a specified flavor. Returns undefined if the flavor was not found * @param {string} name Name of the flavor * @returns {{}|undefined} */ showdown.getFlavorOptions = function (name) { 'use strict'; if (flavor.hasOwnProperty(name)) { return flavor[name]; } }; /** * Get the default options * @static * @param {boolean} [simple=true] * @returns {{}} */ showdown.getDefaultOptions = function (simple) { 'use strict'; return getDefaultOpts(simple); }; /** * Get or set a subParser * * subParser(name) - Get a registered subParser * subParser(name, func) - Register a subParser * @static * @param {string} name * @param {function} [func] * @returns {*} */ showdown.subParser = function (name, func) { 'use strict'; if (showdown.helper.isString(name)) { if (typeof func !== 'undefined') { parsers[name] = func; } else { if (parsers.hasOwnProperty(name)) { return parsers[name]; } else { throw Error('SubParser named ' + name + ' not registered!'); } } } }; /** * Gets or registers an extension * @static * @param {string} name * @param {object|function=} ext * @returns {*} */ showdown.extension = function (name, ext) { 'use strict'; if (!showdown.helper.isString(name)) { throw Error('Extension \'name\' must be a string'); } name = showdown.helper.stdExtName(name); // Getter if (showdown.helper.isUndefined(ext)) { if (!extensions.hasOwnProperty(name)) { throw Error('Extension named ' + name + ' is not registered!'); } return extensions[name]; // Setter } else { // Expand extension if it's wrapped in a function if (typeof ext === 'function') { ext = ext(); } // Ensure extension is an array if (!showdown.helper.isArray(ext)) { ext = [ext]; } var validExtension = validate(ext, name); if (validExtension.valid) { extensions[name] = ext; } else { throw Error(validExtension.error); } } }; /** * Gets all extensions registered * @returns {{}} */ showdown.getAllExtensions = function () { 'use strict'; return extensions; }; /** * Remove an extension * @param {string} name */ showdown.removeExtension = function (name) { 'use strict'; delete extensions[name]; }; /** * Removes all extensions */ showdown.resetExtensions = function () { 'use strict'; extensions = {}; }; /** * Validate extension * @param {array} extension * @param {string} name * @returns {{valid: boolean, error: string}} */ function validate (extension, name) { 'use strict'; var errMsg = (name) ? 'Error in ' + name + ' extension->' : 'Error in unnamed extension', ret = { valid: true, error: '' }; if (!showdown.helper.isArray(extension)) { extension = [extension]; } for (var i = 0; i < extension.length; ++i) { var baseMsg = errMsg + ' sub-extension ' + i + ': ', ext = extension[i]; if (typeof ext !== 'object') { ret.valid = false; ret.error = baseMsg + 'must be an object, but ' + typeof ext + ' given'; return ret; } if (!showdown.helper.isString(ext.type)) { ret.valid = false; ret.error = baseMsg + 'property "type" must be a string, but ' + typeof ext.type + ' given'; return ret; } var type = ext.type = ext.type.toLowerCase(); // normalize extension type if (type === 'language') { type = ext.type = 'lang'; } if (type === 'html') { type = ext.type = 'output'; } if (type !== 'lang' && type !== 'output' && type !== 'listener') { ret.valid = false; ret.error = baseMsg + 'type ' + type + ' is not recognized. Valid values: "lang/language", "output/html" or "listener"'; return ret; } if (type === 'listener') { if (showdown.helper.isUndefined(ext.listeners)) { ret.valid = false; ret.error = baseMsg + '. Extensions of type "listener" must have a property called "listeners"'; return ret; } } else { if (showdown.helper.isUndefined(ext.filter) && showdown.helper.isUndefined(ext.regex)) { ret.valid = false; ret.error = baseMsg + type + ' extensions must define either a "regex" property or a "filter" method'; return ret; } } if (ext.listeners) { if (typeof ext.listeners !== 'object') { ret.valid = false; ret.error = baseMsg + '"listeners" property must be an object but ' + typeof ext.listeners + ' given'; return ret; } for (var ln in ext.listeners) { if (ext.listeners.hasOwnProperty(ln)) { if (typeof ext.listeners[ln] !== 'function') { ret.valid = false; ret.error = baseMsg + '"listeners" property must be an hash of [event name]: [callback]. listeners.' + ln + ' must be a function but ' + typeof ext.listeners[ln] + ' given'; return ret; } } } } if (ext.filter) { if (typeof ext.filter !== 'function') { ret.valid = false; ret.error = baseMsg + '"filter" must be a function, but ' + typeof ext.filter + ' given'; return ret; } } else if (ext.regex) { if (showdown.helper.isString(ext.regex)) { ext.regex = new RegExp(ext.regex, 'g'); } if (!(ext.regex instanceof RegExp)) { ret.valid = false; ret.error = baseMsg + '"regex" property must either be a string or a RegExp object, but ' + typeof ext.regex + ' given'; return ret; } if (showdown.helper.isUndefined(ext.replace)) { ret.valid = false; ret.error = baseMsg + '"regex" extensions must implement a replace string or function'; return ret; } } } return ret; } /** * Validate extension * @param {object} ext * @returns {boolean} */ showdown.validateExtension = function (ext) { 'use strict'; var validateExtension = validate(ext, null); if (!validateExtension.valid) { console.warn(validateExtension.error); return false; } return true; }; /** * showdownjs helper functions */ if (!showdown.hasOwnProperty('helper')) { showdown.helper = {}; } /** * Check if var is string * @static * @param {string} a * @returns {boolean} */ showdown.helper.isString = function (a) { 'use strict'; return (typeof a === 'string' || a instanceof String); }; /** * Check if var is a function * @static * @param {*} a * @returns {boolean} */ showdown.helper.isFunction = function (a) { 'use strict'; var getType = {}; return a && getType.toString.call(a) === '[object Function]'; }; /** * isArray helper function * @static * @param {*} a * @returns {boolean} */ showdown.helper.isArray = function (a) { 'use strict'; return a.constructor === Array; }; /** * Check if value is undefined * @static * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. */ showdown.helper.isUndefined = function (value) { 'use strict'; return typeof value === 'undefined'; }; /** * ForEach helper function * Iterates over Arrays and Objects (own properties only) * @static * @param {*} obj * @param {function} callback Accepts 3 params: 1. value, 2. key, 3. the original array/object */ showdown.helper.forEach = function (obj, callback) { 'use strict'; // check if obj is defined if (showdown.helper.isUndefined(obj)) { throw new Error('obj param is required'); } if (showdown.helper.isUndefined(callback)) { throw new Error('callback param is required'); } if (!showdown.helper.isFunction(callback)) { throw new Error('callback param must be a function/closure'); } if (typeof obj.forEach === 'function') { obj.forEach(callback); } else if (showdown.helper.isArray(obj)) { for (var i = 0; i < obj.length; i++) { callback(obj[i], i, obj); } } else if (typeof (obj) === 'object') { for (var prop in obj) { if (obj.hasOwnProperty(prop)) { callback(obj[prop], prop, obj); } } } else { throw new Error('obj does not seem to be an array or an iterable object'); } }; /** * Standardidize extension name * @static * @param {string} s extension name * @returns {string} */ showdown.helper.stdExtName = function (s) { 'use strict'; return s.replace(/[_?*+\/\\.^-]/g, '').replace(/\s/g, '').toLowerCase(); }; function escapeCharactersCallback (wholeMatch, m1) { 'use strict'; var charCodeToEscape = m1.charCodeAt(0); return '¨E' + charCodeToEscape + 'E'; } /** * Callback used to escape characters when passing through String.replace * @static * @param {string} wholeMatch * @param {string} m1 * @returns {string} */ showdown.helper.escapeCharactersCallback = escapeCharactersCallback; /** * Escape characters in a string * @static * @param {string} text * @param {string} charsToEscape * @param {boolean} afterBackslash * @returns {XML|string|void|*} */ showdown.helper.escapeCharacters = function (text, charsToEscape, afterBackslash) { 'use strict'; // First we have to escape the escape characters so that // we can build a character class out of them var regexString = '([' + charsToEscape.replace(/([\[\]\\])/g, '\\$1') + '])'; if (afterBackslash) { regexString = '\\\\' + regexString; } var regex = new RegExp(regexString, 'g'); text = text.replace(regex, escapeCharactersCallback); return text; }; var rgxFindMatchPos = function (str, left, right, flags) { 'use strict'; var f = flags || '', g = f.indexOf('g') > -1, x = new RegExp(left + '|' + right, 'g' + f.replace(/g/g, '')), l = new RegExp(left, f.replace(/g/g, '')), pos = [], t, s, m, start, end; do { t = 0; while ((m = x.exec(str))) { if (l.test(m[0])) { if (!(t++)) { s = x.lastIndex; start = s - m[0].length; } } else if (t) { if (!--t) { end = m.index + m[0].length; var obj = { left: {start: start, end: s}, match: {start: s, end: m.index}, right: {start: m.index, end: end}, wholeMatch: {start: start, end: end} }; pos.push(obj); if (!g) { return pos; } } } } } while (t && (x.lastIndex = s)); return pos; }; /** * matchRecursiveRegExp * * (c) 2007 Steven Levithan <stevenlevithan.com> * MIT License * * Accepts a string to search, a left and right format delimiter * as regex patterns, and optional regex flags. Returns an array * of matches, allowing nested instances of left/right delimiters. * Use the "g" flag to return all matches, otherwise only the * first is returned. Be careful to ensure that the left and * right format delimiters produce mutually exclusive matches. * Backreferences are not supported within the right delimiter * due to how it is internally combined with the left delimiter. * When matching strings whose format delimiters are unbalanced * to the left or right, the output is intentionally as a * conventional regex library with recursion support would * produce, e.g. "<<x>" and "<x>>" both produce ["x"] when using * "<" and ">" as the delimiters (both strings contain a single, * balanced instance of "<x>"). * * examples: * matchRecursiveRegExp("test", "\\(", "\\)") * returns: [] * matchRecursiveRegExp("<t<<e>><s>>t<>", "<", ">", "g") * returns: ["t<<e>><s>", ""] * matchRecursiveRegExp("<div id=\"x\">test</div>", "<div\\b[^>]*>", "</div>", "gi") * returns: ["test"] */ showdown.helper.matchRecursiveRegExp = function (str, left, right, flags) { 'use strict'; var matchPos = rgxFindMatchPos (str, left, right, flags), results = []; for (var i = 0; i < matchPos.length; ++i) { results.push([ str.slice(matchPos[i].wholeMatch.start, matchPos[i].wholeMatch.end), str.slice(matchPos[i].match.start, matchPos[i].match.end), str.slice(matchPos[i].left.start, matchPos[i].left.end), str.slice(matchPos[i].right.start, matchPos[i].right.end) ]); } return results; }; /** * * @param {string} str * @param {string|function} replacement * @param {string} left * @param {string} right * @param {string} flags * @returns {string} */ showdown.helper.replaceRecursiveRegExp = function (str, replacement, left, right, flags) { 'use strict'; if (!showdown.helper.isFunction(replacement)) { var repStr = replacement; replacement = function () { return repStr; }; } var matchPos = rgxFindMatchPos(str, left, right, flags), finalStr = str, lng = matchPos.length; if (lng > 0) { var bits = []; if (matchPos[0].wholeMatch.start !== 0) { bits.push(str.slice(0, matchPos[0].wholeMatch.start)); } for (var i = 0; i < lng; ++i) { bits.push( replacement( str.slice(matchPos[i].wholeMatch.start, matchPos[i].wholeMatch.end), str.slice(matchPos[i].match.start, matchPos[i].match.end), str.slice(matchPos[i].left.start, matchPos[i].left.end), str.slice(matchPos[i].right.start, matchPos[i].right.end) ) ); if (i < lng - 1) { bits.push(str.slice(matchPos[i].wholeMatch.end, matchPos[i + 1].wholeMatch.start)); } } if (matchPos[lng - 1].wholeMatch.end < str.length) { bits.push(str.slice(matchPos[lng - 1].wholeMatch.end)); } finalStr = bits.join(''); } return finalStr; }; /** * Obfuscate an e-mail address through the use of Character Entities, * transforming ASCII characters into their equivalent decimal or hex entities. * * Since it has a random component, subsequent calls to this function produce different results * * @param {string} mail * @returns {string} */ showdown.helper.encodeEmailAddress = function (mail) { 'use strict'; var encode = [ function (ch) { return '&#' + ch.charCodeAt(0) + ';'; }, function (ch) { return '&#x' + ch.charCodeAt(0).toString(16) + ';'; }, function (ch) { return ch; } ]; mail = mail.replace(/./g, function (ch) { if (ch === '@') { // this *must* be encoded. I insist. ch = encode[Math.floor(Math.random() * 2)](ch); } else { var r = Math.random(); // roughly 10% raw, 45% hex, 45% dec ch = ( r > 0.9 ? encode[2](ch) : r > 0.45 ? encode[1](ch) : encode[0](ch) ); } return ch; }); return mail; }; /** * POLYFILLS */ // use this instead of builtin is undefined for IE8 compatibility if (typeof(console) === 'undefined') { console = { warn: function (msg) { 'use strict'; alert(msg); }, log: function (msg) { 'use strict'; alert(msg); }, error: function (msg) { 'use strict'; throw msg; } }; } /** * Common regexes. * We declare some common regexes to improve performance */ showdown.helper.regexes = { asteriskAndDash: /([*_])/g }; /** * Created by Estevao on 31-05-2015. */ /** * Showdown Converter class * @class * @param {object} [converterOptions] * @returns {Converter} */ showdown.Converter = function (converterOptions) { 'use strict'; var /** * Options used by this converter * @private * @type {{}} */ options = {}, /** * Language extensions used by this converter * @private * @type {Array} */ langExtensions = [], /** * Output modifiers extensions used by this converter * @private * @type {Array} */ outputModifiers = [], /** * Event listeners * @private * @type {{}} */ listeners = {}, /** * The flavor set in this converter */ setConvFlavor = setFlavor; _constructor(); /** * Converter constructor * @private */ function _constructor () { converterOptions = converterOptions || {}; for (var gOpt in globalOptions) { if (globalOptions.hasOwnProperty(gOpt)) { options[gOpt] = globalOptions[gOpt]; } } // Merge options if (typeof converterOptions === 'object') { for (var opt in converterOptions) { if (converterOptions.hasOwnProperty(opt)) { options[opt] = converterOptions[opt]; } } } else { throw Error('Converter expects the passed parameter to be an object, but ' + typeof converterOptions + ' was passed instead.'); } if (options.extensions) { showdown.helper.forEach(options.extensions, _parseExtension); } } /** * Parse extension * @param {*} ext * @param {string} [name=''] * @private */ function _parseExtension (ext, name) { name = name || null; // If it's a string, the extension was previously loaded if (showdown.helper.isString(ext)) { ext = showdown.helper.stdExtName(ext); name = ext; // LEGACY_SUPPORT CODE if (showdown.extensions[ext]) { console.warn('DEPRECATION WARNING: ' + ext + ' is an old extension that uses a deprecated loading method.' + 'Please inform the developer that the extension should be updated!'); legacyExtensionLoading(showdown.extensions[ext], ext); return; // END LEGACY SUPPORT CODE } else if (!showdown.helper.isUndefined(extensions[ext])) { ext = extensions[ext]; } else { throw Error('Extension "' + ext + '" could not be loaded. It was either not found or is not a valid extension.'); } } if (typeof ext === 'function') { ext = ext(); } if (!showdown.helper.isArray(ext)) { ext = [ext]; } var validExt = validate(ext, name); if (!validExt.valid) { throw Error(validExt.error); } for (var i = 0; i < ext.length; ++i) { switch (ext[i].type) { case 'lang': langExtensions.push(ext[i]); break; case 'output': outputModifiers.push(ext[i]); break; } if (ext[i].hasOwnProperty('listeners')) { for (var ln in ext[i].listeners) { if (ext[i].listeners.hasOwnProperty(ln)) { listen(ln, ext[i].listeners[ln]); } } } } } /** * LEGACY_SUPPORT * @param {*} ext * @param {string} name */ function legacyExtensionLoading (ext, name) { if (typeof ext === 'function') { ext = ext(new showdown.Converter()); } if (!showdown.helper.isArray(ext)) { ext = [ext]; } var valid = validate(ext, name); if (!valid.valid) { throw Error(valid.error); } for (var i = 0; i < ext.length; ++i) { switch (ext[i].type) { case 'lang': langExtensions.push(ext[i]); break; case 'output': outputModifiers.push(ext[i]); break; default:// should never reach here throw Error('Extension loader error: Type unrecognized!!!'); } } } /** * Listen to an event * @param {string} name * @param {function} callback */ function listen (name, callback) { if (!showdown.helper.isString(name)) { throw Error('Invalid argument in converter.listen() method: name must be a string, but ' + typeof name + ' given'); } if (typeof callback !== 'function') { throw Error('Invalid argument in converter.listen() method: callback must be a function, but ' + typeof callback + ' given'); } if (!listeners.hasOwnProperty(name)) { listeners[name] = []; } listeners[name].push(callback); } function rTrimInputText (text) { var rsp = text.match(/^\s*/)[0].length, rgx = new RegExp('^\\s{0,' + rsp + '}', 'gm'); return text.replace(rgx, ''); } /** * Dispatch an event * @private * @param {string} evtName Event name * @param {string} text Text * @param {{}} options Converter Options * @param {{}} globals * @returns {string} */ this._dispatch = function dispatch (evtName, text, options, globals) { if (listeners.hasOwnProperty(evtName)) { for (var ei = 0; ei < listeners[evtName].length; ++ei) { var nText = listeners[evtName][ei](evtName, text, this, options, globals); if (nText && typeof nText !== 'undefined') { text = nText; } } } return text; }; /** * Listen to an event * @param {string} name * @param {function} callback * @returns {showdown.Converter} */ this.listen = function (name, callback) { listen(name, callback); return this; }; /** * Converts a markdown string into HTML * @param {string} text * @returns {*} */ this.makeHtml = function (text) { //check if text is not falsy if (!text) { return text; } var globals = { gHtmlBlocks: [], gHtmlMdBlocks: [], gHtmlSpans: [], gUrls: {}, gTitles: {}, gDimensions: {}, gListLevel: 0, hashLinkCounts: {}, langExtensions: langExtensions, outputModifiers: outputModifiers, converter: this, ghCodeBlocks: [] }; // This lets us use ¨ trema as an escape char to avoid md5 hashes // The choice of character is arbitrary; anything that isn't // magic in Markdown will work. text = text.replace(/¨/g, '¨T'); // Replace $ with ¨D // RegExp interprets $ as a special character // when it's in a replacement string text = text.replace(/\$/g, '¨D'); // Standardize line endings text = text.replace(/\r\n/g, '\n'); // DOS to Unix text = text.replace(/\r/g, '\n'); // Mac to Unix // Stardardize line spaces (nbsp causes trouble in older browsers and some regex flavors) text = text.replace(/\u00A0/g, ' '); if (options.smartIndentationFix) { text = rTrimInputText(text); } // Make sure text begins and ends with a couple of newlines: text = '\n\n' + text + '\n\n'; // detab text = showdown.subParser('detab')(text, options, globals); /** * Strip any lines consisting only of spaces and tabs. * This makes subsequent regexs easier to write, because we can * match consecutive blank lines with /\n+/ instead of something * contorted like /[ \t]*\n+/ */ text = text.replace(/^[ \t]+$/mg, ''); //run languageExtensions showdown.helper.forEach(langExtensions, function (ext) { text = showdown.subParser('runExtension')(ext, text, options, globals); }); // run the sub parsers text = showdown.subParser('hashPreCodeTags')(text, options, globals); text = showdown.subParser('githubCodeBlocks')(text, options, globals); text = showdown.subParser('hashHTMLBlocks')(text, options, globals); text = showdown.subParser('hashCodeTags')(text, options, globals); text = showdown.subParser('stripLinkDefinitions')(text, options, globals); text = showdown.subParser('blockGamut')(text, options, globals); text = showdown.subParser('unhashHTMLSpans')(text, options, globals); text = showdown.subParser('unescapeSpecialChars')(text, options, globals); // attacklab: Restore dollar signs text = text.replace(/¨D/g, '$$'); // attacklab: Restore tremas text = text.replace(/¨T/g, '¨'); // Run output modifiers showdown.helper.forEach(outputModifiers, function (ext) { text = showdown.subParser('runExtension')(ext, text, options, globals); }); return text; }; /** * Set an option of this Converter instance * @param {string} key * @param {*} value */ this.setOption = function (key, value) { options[key] = value; }; /** * Get the option of this Converter instance * @param {string} key * @returns {*} */ this.getOption = function (key) { return options[key]; }; /** * Get the options of this Converter instance * @returns {{}} */ this.getOptions = function () { return options; }; /** * Add extension to THIS converter * @param {{}} extension * @param {string} [name=null] */ this.addExtension = function (extension, name) { name = name || null; _parseExtension(extension, name); }; /** * Use a global registered extension with THIS converter * @param {string} extensionName Name of the previously registered extension */ this.useExtension = function (extensionName) { _parseExtension(extensionName); }; /** * Set the flavor THIS converter should use * @param {string} name */ this.setFlavor = function (name) { if (!flavor.hasOwnProperty(name)) { throw Error(name + ' flavor was not found'); } var preset = flavor[name]; setConvFlavor = name; for (var option in preset) { if (preset.hasOwnProperty(option)) { options[option] = preset[option]; } } }; /** * Get the currently set flavor of this converter * @returns {string} */ this.getFlavor = function () { return setConvFlavor; }; /** * Remove an extension from THIS converter. * Note: This is a costly operation. It's better to initialize a new converter * and specify the extensions you wish to use * @param {Array} extension */ this.removeExtension = function (extension) { if (!showdown.helper.isArray(extension)) { extension = [extension]; } for (var a = 0; a < extension.length; ++a) { var ext = extension[a]; for (var i = 0; i < langExtensions.length; ++i) { if (langExtensions[i] === ext) { langExtensions[i].splice(i, 1); } } for (var ii = 0; ii < outputModifiers.length; ++i) { if (outputModifiers[ii] === ext) { outputModifiers[ii].splice(i, 1); } } } }; /** * Get all extension of THIS converter * @returns {{language: Array, output: Array}} */ this.getAllExtensions = function () { return { language: langExtensions, output: outputModifiers }; }; }; /** * Turn Markdown link shortcuts into XHTML <a> tags. */ showdown.subParser('anchors', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('anchors.before', text, options, globals); var writeAnchorTag = function (wholeMatch, m1, m2, m3, m4, m5, m6, m7) { if (showdown.helper.isUndefined(m7)) { m7 = ''; } wholeMatch = m1; var linkText = m2, linkId = m3.toLowerCase(), url = m4, title = m7; if (!url) { if (!linkId) { // lower-case and turn embedded newlines into spaces linkId = linkText.toLowerCase().replace(/ ?\n/g, ' '); } url = '#' + linkId; if (!showdown.helper.isUndefined(globals.gUrls[linkId])) { url = globals.gUrls[linkId]; if (!showdown.helper.isUndefined(globals.gTitles[linkId])) { title = globals.gTitles[linkId]; } } else { if (wholeMatch.search(/\(\s*\)$/m) > -1) { // Special case for explicit empty url url = ''; } else { return wholeMatch; } } } //url = showdown.helper.escapeCharacters(url, '*_', false); // replaced line to improve performance url = url.replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback); var result = '<a href="' + url + '"'; if (title !== '' && title !== null) { title = title.replace(/"/g, '&quot;'); //title = showdown.helper.escapeCharacters(title, '*_', false); // replaced line to improve performance title = title.replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback); result += ' title="' + title + '"'; } result += '>' + linkText + '</a>'; return result; }; // First, handle reference-style links: [link text] [id] text = text.replace(/(\[((?:\[[^\]]*]|[^\[\]])*)][ ]?(?:\n[ ]*)?\[(.*?)])()()()()/g, writeAnchorTag); // Next, inline-style links: [link text](url "optional title") text = text.replace(/(\[((?:\[[^\]]*]|[^\[\]])*)]\([ \t]*()<?(.*?(?:\(.*?\).*?)?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g, writeAnchorTag); // handle reference-style shortcuts: [link text] // These must come last in case you've also got [link test][1] // or [link test](/foo) text = text.replace(/(\[([^\[\]]+)])()()()()()/g, writeAnchorTag); // Lastly handle GithubMentions if option is enabled if (options.ghMentions) { text = text.replace(/(^|\s)(\\)?(@([a-z\d\-]+))(?=[.!?;,[\]()]|\s|$)/gmi, function (wm, st, escape, mentions, username) { if (escape === '\\') { return st + mentions; } //check if options.ghMentionsLink is a string if (!showdown.helper.isString(options.ghMentionsLink)) { throw new Error('ghMentionsLink option must be a string'); } var lnk = options.ghMentionsLink.replace(/\{u}/g, username); return st + '<a href="' + lnk + '">' + mentions + '</a>'; }); } text = globals.converter._dispatch('anchors.after', text, options, globals); return text; }); showdown.subParser('autoLinks', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('autoLinks.before', text, options, globals); var simpleURLRegex = /\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)()(?=\s|$)(?!["<>])/gi, simpleURLRegex2 = /\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?()]?)(?=\s|$)(?!["<>])/gi, delimUrlRegex = /<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)>/gi, simpleMailRegex = /(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi, delimMailRegex = /<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi; text = text.replace(delimUrlRegex, replaceLink); text = text.replace(delimMailRegex, replaceMail); // simpleURLRegex = /\b(((https?|ftp|dict):\/\/|www\.)[-.+~:?#@!$&'()*,;=[\]\w]+)\b/gi, // Email addresses: <address@domain.foo> if (options.simplifiedAutoLink) { if (options.excludeTrailingPunctuationFromURLs) { text = text.replace(simpleURLRegex2, replaceLink); } else { text = text.replace(simpleURLRegex, replaceLink); } text = text.replace(simpleMailRegex, replaceMail); } function replaceLink (wm, link, m2, m3, trailingPunctuation) { var lnkTxt = link, append = ''; if (/^www\./i.test(link)) { link = link.replace(/^www\./i, 'http://www.'); } if (options.excludeTrailingPunctuationFromURLs && trailingPunctuation) { append = trailingPunctuation; } return '<a href="' + link + '">' + lnkTxt + '</a>' + append; } function replaceMail (wholeMatch, b, mail) { var href = 'mailto:'; b = b || ''; mail = showdown.subParser('unescapeSpecialChars')(mail, options, globals); if (options.encodeEmails) { href = showdown.helper.encodeEmailAddress(href + mail); mail = showdown.helper.encodeEmailAddress(mail); } else { href = href + mail; } return b + '<a href="' + href + '">' + mail + '</a>'; } text = globals.converter._dispatch('autoLinks.after', text, options, globals); return text; }); /** * These are all the transformations that form block-level * tags like paragraphs, headers, and list items. */ showdown.subParser('blockGamut', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('blockGamut.before', text, options, globals); // we parse blockquotes first so that we can have headings and hrs // inside blockquotes text = showdown.subParser('blockQuotes')(text, options, globals); text = showdown.subParser('headers')(text, options, globals); // Do Horizontal Rules: text = showdown.subParser('horizontalRule')(text, options, globals); text = showdown.subParser('lists')(text, options, globals); text = showdown.subParser('codeBlocks')(text, options, globals); text = showdown.subParser('tables')(text, options, globals); // We already ran _HashHTMLBlocks() before, in Markdown(), but that // was to escape raw HTML in the original Markdown source. This time, // we're escaping the markup we've just created, so that we don't wrap // <p> tags around block-level tags. text = showdown.subParser('hashHTMLBlocks')(text, options, globals); text = showdown.subParser('paragraphs')(text, options, globals); text = globals.converter._dispatch('blockGamut.after', text, options, globals); return text; }); showdown.subParser('blockQuotes', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('blockQuotes.before', text, options, globals); text = text.replace(/((^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+)/gm, function (wholeMatch, m1) { var bq = m1; // attacklab: hack around Konqueror 3.5.4 bug: // "----------bug".replace(/^-/g,"") == "bug" bq = bq.replace(/^[ \t]*>[ \t]?/gm, '¨0'); // trim one level of quoting // attacklab: clean up hack bq = bq.replace(/¨0/g, ''); bq = bq.replace(/^[ \t]+$/gm, ''); // trim whitespace-only lines bq = showdown.subParser('githubCodeBlocks')(bq, options, globals); bq = showdown.subParser('blockGamut')(bq, options, globals); // recurse bq = bq.replace(/(^|\n)/g, '$1 '); // These leading spaces screw with <pre> content, so we need to fix that: bq = bq.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm, function (wholeMatch, m1) { var pre = m1; // attacklab: hack around Konqueror 3.5.4 bug: pre = pre.replace(/^ /mg, '¨0'); pre = pre.replace(/¨0/g, ''); return pre; }); return showdown.subParser('hashBlock')('<blockquote>\n' + bq + '\n</blockquote>', options, globals); }); text = globals.converter._dispatch('blockQuotes.after', text, options, globals); return text; }); /** * Process Markdown `<pre><code>` blocks. */ showdown.subParser('codeBlocks', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('codeBlocks.before', text, options, globals); // sentinel workarounds for lack of \A and \Z, safari\khtml bug text += '¨0'; var pattern = /(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g; text = text.replace(pattern, function (wholeMatch, m1, m2) { var codeblock = m1, nextChar = m2, end = '\n'; codeblock = showdown.subParser('outdent')(codeblock, options, globals); codeblock = showdown.subParser('encodeCode')(codeblock, options, globals); codeblock = showdown.subParser('detab')(codeblock, options, globals); codeblock = codeblock.replace(/^\n+/g, ''); // trim leading newlines codeblock = codeblock.replace(/\n+$/g, ''); // trim trailing newlines if (options.omitExtraWLInCodeBlocks) { end = ''; } codeblock = '<pre><code>' + codeblock + end + '</code></pre>'; return showdown.subParser('hashBlock')(codeblock, options, globals) + nextChar; }); // strip sentinel text = text.replace(/¨0/, ''); text = globals.converter._dispatch('codeBlocks.after', text, options, globals); return text; }); /** * * * Backtick quotes are used for <code></code> spans. * * * You can use multiple backticks as the delimiters if you want to * include literal backticks in the code span. So, this input: * * Just type ``foo `bar` baz`` at the prompt. * * Will translate to: * * <p>Just type <code>foo `bar` baz</code> at the prompt.</p> * * There's no arbitrary limit to the number of backticks you * can use as delimters. If you need three consecutive backticks * in your code, use four for delimiters, etc. * * * You can use spaces to get literal backticks at the edges: * * ... type `` `bar` `` ... * * Turns to: * * ... type <code>`bar`</code> ... */ showdown.subParser('codeSpans', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('codeSpans.before', text, options, globals); if (typeof(text) === 'undefined') { text = ''; } text = text.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm, function (wholeMatch, m1, m2, m3) { var c = m3; c = c.replace(/^([ \t]*)/g, ''); // leading whitespace c = c.replace(/[ \t]*$/g, ''); // trailing whitespace c = showdown.subParser('encodeCode')(c, options, globals); return m1 + '<code>' + c + '</code>'; } ); text = globals.converter._dispatch('codeSpans.after', text, options, globals); return text; }); /** * Convert all tabs to spaces */ showdown.subParser('detab', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('detab.before', text, options, globals); // expand first n-1 tabs text = text.replace(/\t(?=\t)/g, ' '); // g_tab_width // replace the nth with two sentinels text = text.replace(/\t/g, '¨A¨B'); // use the sentinel to anchor our regex so it doesn't explode text = text.replace(/¨B(.+?)¨A/g, function (wholeMatch, m1) { var leadingText = m1, numSpaces = 4 - leadingText.length % 4; // g_tab_width // there *must* be a better way to do this: for (var i = 0; i < numSpaces; i++) { leadingText += ' '; } return leadingText; }); // clean up sentinels text = text.replace(/¨A/g, ' '); // g_tab_width text = text.replace(/¨B/g, ''); text = globals.converter._dispatch('detab.after', text, options, globals); return text; }); /** * Smart processing for ampersands and angle brackets that need to be encoded. */ showdown.subParser('encodeAmpsAndAngles', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('encodeAmpsAndAngles.before', text, options, globals); // Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin: // http://bumppo.net/projects/amputator/ text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, '&amp;'); // Encode naked <'s text = text.replace(/<(?![a-z\/?$!])/gi, '&lt;'); // Encode < text = text.replace(/</g, '&lt;'); // Encode > text = text.replace(/>/g, '&gt;'); text = globals.converter._dispatch('encodeAmpsAndAngles.after', text, options, globals); return text; }); /** * Returns the string, with after processing the following backslash escape sequences. * * attacklab: The polite way to do this is with the new escapeCharacters() function: * * text = escapeCharacters(text,"\\",true); * text = escapeCharacters(text,"`*_{}[]()>#+-.!",true); * * ...but we're sidestepping its use of the (slow) RegExp constructor * as an optimization for Firefox. This function gets called a LOT. */ showdown.subParser('encodeBackslashEscapes', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('encodeBackslashEscapes.before', text, options, globals); text = text.replace(/\\(\\)/g, showdown.helper.escapeCharactersCallback); text = text.replace(/\\([`*_{}\[\]()>#+.!~=-])/g, showdown.helper.escapeCharactersCallback); text = globals.converter._dispatch('encodeBackslashEscapes.after', text, options, globals); return text; }); /** * Encode/escape certain characters inside Markdown code runs. * The point is that in code, these characters are literals, * and lose their special Markdown meanings. */ showdown.subParser('encodeCode', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('encodeCode.before', text, options, globals); // Encode all ampersands; HTML entities are not // entities within a Markdown code span. text = text .replace(/&/g, '&amp;') // Do the angle bracket song and dance: .replace(/</g, '&lt;') .replace(/>/g, '&gt;') // Now, escape characters that are magic in Markdown: .replace(/([*_{}\[\]\\=~-])/g, showdown.helper.escapeCharactersCallback); text = globals.converter._dispatch('encodeCode.after', text, options, globals); return text; }); /** * Within tags -- meaning between < and > -- encode [\ ` * _ ~ =] so they * don't conflict with their use in Markdown for code, italics and strong. */ showdown.subParser('escapeSpecialCharsWithinTagAttributes', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('escapeSpecialCharsWithinTagAttributes.before', text, options, globals); // Build a regex to find HTML tags and comments. See Friedl's // "Mastering Regular Expressions", 2nd Ed., pp. 200-201. var regex = /(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|<!(--.*?--\s*)+>)/gi; text = text.replace(regex, function (wholeMatch) { return wholeMatch .replace(/(.)<\/?code>(?=.)/g, '$1`') .replace(/([\\`*_~=])/g, showdown.helper.escapeCharactersCallback); }); text = globals.converter._dispatch('escapeSpecialCharsWithinTagAttributes.after', text, options, globals); return text; }); /** * Handle github codeblocks prior to running HashHTML so that * HTML contained within the codeblock gets escaped properly * Example: * ```ruby * def hello_world(x) * puts "Hello, #{x}" * end * ``` */ showdown.subParser('githubCodeBlocks', function (text, options, globals) { 'use strict'; // early exit if option is not enabled if (!options.ghCodeBlocks) { return text; } text = globals.converter._dispatch('githubCodeBlocks.before', text, options, globals); text += '¨0'; text = text.replace(/(?:^|\n)```(.*)\n([\s\S]*?)\n```/g, function (wholeMatch, language, codeblock) { var end = (options.omitExtraWLInCodeBlocks) ? '' : '\n'; // First parse the github code block codeblock = showdown.subParser('encodeCode')(codeblock, options, globals); codeblock = showdown.subParser('detab')(codeblock, options, globals); codeblock = codeblock.replace(/^\n+/g, ''); // trim leading newlines codeblock = codeblock.replace(/\n+$/g, ''); // trim trailing whitespace codeblock = '<pre><code' + (language ? ' class="' + language + ' language-' + language + '"' : '') + '>' + codeblock + end + '</code></pre>'; codeblock = showdown.subParser('hashBlock')(codeblock, options, globals); // Since GHCodeblocks can be false positives, we need to // store the primitive text and the parsed text in a global var, // and then return a token return '\n\n¨G' + (globals.ghCodeBlocks.push({text: wholeMatch, codeblock: codeblock}) - 1) + 'G\n\n'; }); // attacklab: strip sentinel text = text.replace(/¨0/, ''); return globals.converter._dispatch('githubCodeBlocks.after', text, options, globals); }); showdown.subParser('hashBlock', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('hashBlock.before', text, options, globals); text = text.replace(/(^\n+|\n+$)/g, ''); text = '\n\n¨K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\n\n'; text = globals.converter._dispatch('hashBlock.after', text, options, globals); return text; }); /** * Hash and escape <code> elements that should not be parsed as markdown */ showdown.subParser('hashCodeTags', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('hashCodeTags.before', text, options, globals); var repFunc = function (wholeMatch, match, left, right) { var codeblock = left + showdown.subParser('encodeCode')(match, options, globals) + right; return '¨C' + (globals.gHtmlSpans.push(codeblock) - 1) + 'C'; }; // Hash naked <code> text = showdown.helper.replaceRecursiveRegExp(text, repFunc, '<code\\b[^>]*>', '</code>', 'gim'); text = globals.converter._dispatch('hashCodeTags.after', text, options, globals); return text; }); showdown.subParser('hashElement', function (text, options, globals) { 'use strict'; return function (wholeMatch, m1) { var blockText = m1; // Undo double lines blockText = blockText.replace(/\n\n/g, '\n'); blockText = blockText.replace(/^\n/, ''); // strip trailing blank lines blockText = blockText.replace(/\n+$/g, ''); // Replace the element text with a marker ("¨KxK" where x is its key) blockText = '\n\n¨K' + (globals.gHtmlBlocks.push(blockText) - 1) + 'K\n\n'; return blockText; }; }); showdown.subParser('hashHTMLBlocks', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('hashHTMLBlocks.before', text, options, globals); var blockTags = [ 'pre', 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'table', 'dl', 'ol', 'ul', 'script', 'noscript', 'form', 'fieldset', 'iframe', 'math', 'style', 'section', 'header', 'footer', 'nav', 'article', 'aside', 'address', 'audio', 'canvas', 'figure', 'hgroup', 'output', 'video', 'p' ], repFunc = function (wholeMatch, match, left, right) { var txt = wholeMatch; // check if this html element is marked as markdown // if so, it's contents should be parsed as markdown if (left.search(/\bmarkdown\b/) !== -1) { txt = left + globals.converter.makeHtml(match) + right; } return '\n\n¨K' + (globals.gHtmlBlocks.push(txt) - 1) + 'K\n\n'; }; for (var i = 0; i < blockTags.length; ++i) { text = showdown.helper.replaceRecursiveRegExp(text, repFunc, '^ {0,3}<' + blockTags[i] + '\\b[^>]*>', '</' + blockTags[i] + '>', 'gim'); } // HR SPECIAL CASE text = text.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g, showdown.subParser('hashElement')(text, options, globals)); // Special case for standalone HTML comments text = showdown.helper.replaceRecursiveRegExp(text, function (txt) { return '\n\n¨K' + (globals.gHtmlBlocks.push(txt) - 1) + 'K\n\n'; }, '^ {0,3}<!--', '-->', 'gm'); // PHP and ASP-style processor instructions (<?...?> and <%...%>) text = text.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g, showdown.subParser('hashElement')(text, options, globals)); text = globals.converter._dispatch('hashHTMLBlocks.after', text, options, globals); return text; }); /** * Hash span elements that should not be parsed as markdown */ showdown.subParser('hashHTMLSpans', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('hashHTMLSpans.before', text, options, globals); function hashHTMLSpan (html) { return '¨C' + (globals.gHtmlSpans.push(html) - 1) + 'C'; } // Hash Self Closing tags text = text.replace(/<[^>]+?\/>/gi, function (wm) { return hashHTMLSpan(wm); }); // Hash tags without properties text = text.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g, function (wm) { return hashHTMLSpan(wm); }); // Hash tags with properties text = text.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g, function (wm) { return hashHTMLSpan(wm); }); // Hash self closing tags without /> text = text.replace(/<[^>]+?>/gi, function (wm) { return hashHTMLSpan(wm); }); /*showdown.helper.matchRecursiveRegExp(text, '<code\\b[^>]*>', '</code>', 'gi');*/ text = globals.converter._dispatch('hashHTMLSpans.after', text, options, globals); return text; }); /** * Unhash HTML spans */ showdown.subParser('unhashHTMLSpans', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('unhashHTMLSpans.before', text, options, globals); for (var i = 0; i < globals.gHtmlSpans.length; ++i) { var repText = globals.gHtmlSpans[i], // limiter to prevent infinite loop (assume 10 as limit for recurse) limit = 0; while (/¨C(\d+)C/.test(repText)) { var num = RegExp.$1; repText = repText.replace('¨C' + num + 'C', globals.gHtmlSpans[num]); if (limit === 10) { break; } ++limit; } text = text.replace('¨C' + i + 'C', repText); } text = globals.converter._dispatch('unhashHTMLSpans.after', text, options, globals); return text; }); /** * Hash and escape <pre><code> elements that should not be parsed as markdown */ showdown.subParser('hashPreCodeTags', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('hashPreCodeTags.before', text, options, globals); var repFunc = function (wholeMatch, match, left, right) { // encode html entities var codeblock = left + showdown.subParser('encodeCode')(match, options, globals) + right; return '\n\n¨G' + (globals.ghCodeBlocks.push({text: wholeMatch, codeblock: codeblock}) - 1) + 'G\n\n'; }; // Hash <pre><code> text = showdown.helper.replaceRecursiveRegExp(text, repFunc, '^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>', '^ {0,3}</code>\\s*</pre>', 'gim'); text = globals.converter._dispatch('hashPreCodeTags.after', text, options, globals); return text; }); showdown.subParser('headers', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('headers.before', text, options, globals); var headerLevelStart = (isNaN(parseInt(options.headerLevelStart))) ? 1 : parseInt(options.headerLevelStart), ghHeaderId = options.ghCompatibleHeaderId, // Set text-style headers: // Header 1 // ======== // // Header 2 // -------- // setextRegexH1 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm, setextRegexH2 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm; text = text.replace(setextRegexH1, function (wholeMatch, m1) { var spanGamut = showdown.subParser('spanGamut')(m1, options, globals), hID = (options.noHeaderId) ? '' : ' id="' + headerId(m1) + '"', hLevel = headerLevelStart, hashBlock = '<h' + hLevel + hID + '>' + spanGamut + '</h' + hLevel + '>'; return showdown.subParser('hashBlock')(hashBlock, options, globals); }); text = text.replace(setextRegexH2, function (matchFound, m1) { var spanGamut = showdown.subParser('spanGamut')(m1, options, globals), hID = (options.noHeaderId) ? '' : ' id="' + headerId(m1) + '"', hLevel = headerLevelStart + 1, hashBlock = '<h' + hLevel + hID + '>' + spanGamut + '</h' + hLevel + '>'; return showdown.subParser('hashBlock')(hashBlock, options, globals); }); // atx-style headers: // # Header 1 // ## Header 2 // ## Header 2 with closing hashes ## // ... // ###### Header 6 // var atxStyle = (options.requireSpaceBeforeHeadingText) ? /^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm : /^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm; text = text.replace(atxStyle, function (wholeMatch, m1, m2) { var span = showdown.subParser('spanGamut')(m2, options, globals), hID = (options.noHeaderId) ? '' : ' id="' + headerId(m2) + '"', hLevel = headerLevelStart - 1 + m1.length, header = '<h' + hLevel + hID + '>' + span + '</h' + hLevel + '>'; return showdown.subParser('hashBlock')(header, options, globals); }); function headerId (m) { var title; // Prefix id to prevent causing inadvertent pre-existing style matches. if (showdown.helper.isString(options.prefixHeaderId)) { title = options.prefixHeaderId + m; } else if (options.prefixHeaderId === true) { title = 'section ' + m; } else { title = m; } if (ghHeaderId) { title = title .replace(/ /g, '-') // replace previously escaped chars (&, ¨ and $) .replace(/&amp;/g, '') .replace(/¨T/g, '') .replace(/¨D/g, '') // replace rest of the chars (&~$ are repeated as they might have been escaped) // borrowed from github's redcarpet (some they should produce similar results) .replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g, '') .toLowerCase(); } else { title = title .replace(/[^\w]/g, '') .toLowerCase(); } if (globals.hashLinkCounts[title]) { title = title + '-' + (globals.hashLinkCounts[title]++); } else { globals.hashLinkCounts[title] = 1; } return title; } text = globals.converter._dispatch('headers.after', text, options, globals); return text; }); /** * Turn Markdown link shortcuts into XHTML <a> tags. */ showdown.subParser('horizontalRule', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('horizontalRule.before', text, options, globals); var key = showdown.subParser('hashBlock')('<hr />', options, globals); text = text.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm, key); text = text.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm, key); text = text.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm, key); text = globals.converter._dispatch('horizontalRule.after', text, options, globals); return text; }); /** * Turn Markdown image shortcuts into <img> tags. */ showdown.subParser('images', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('images.before', text, options, globals); var inlineRegExp = /!\[(.*?)]\s?\([ \t]*()<?(\S+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(['"])(.*?)\6[ \t]*)?\)/g, referenceRegExp = /!\[([^\]]*?)] ?(?:\n *)?\[(.*?)]()()()()()/g; function writeImageTag (wholeMatch, altText, linkId, url, width, height, m5, title) { var gUrls = globals.gUrls, gTitles = globals.gTitles, gDims = globals.gDimensions; linkId = linkId.toLowerCase(); if (!title) { title = ''; } if (url === '' || url === null) { if (linkId === '' || linkId === null) { // lower-case and turn embedded newlines into spaces linkId = altText.toLowerCase().replace(/ ?\n/g, ' '); } url = '#' + linkId; if (!showdown.helper.isUndefined(gUrls[linkId])) { url = gUrls[linkId]; if (!showdown.helper.isUndefined(gTitles[linkId])) { title = gTitles[linkId]; } if (!showdown.helper.isUndefined(gDims[linkId])) { width = gDims[linkId].width; height = gDims[linkId].height; } } else { return wholeMatch; } } altText = altText .replace(/"/g, '&quot;') //altText = showdown.helper.escapeCharacters(altText, '*_', false); .replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback); //url = showdown.helper.escapeCharacters(url, '*_', false); url = url.replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback); var result = '<img src="' + url + '" alt="' + altText + '"'; if (title) { title = title .replace(/"/g, '&quot;') //title = showdown.helper.escapeCharacters(title, '*_', false); .replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback); result += ' title="' + title + '"'; } if (width && height) { width = (width === '*') ? 'auto' : width; height = (height === '*') ? 'auto' : height; result += ' width="' + width + '"'; result += ' height="' + height + '"'; } result += ' />'; return result; } // First, handle reference-style labeled images: ![alt text][id] text = text.replace(referenceRegExp, writeImageTag); // Next, handle inline images: ![alt text](url =<width>x<height> "optional title") text = text.replace(inlineRegExp, writeImageTag); text = globals.converter._dispatch('images.after', text, options, globals); return text; }); showdown.subParser('italicsAndBold', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('italicsAndBold.before', text, options, globals); // it's faster to have 3 separate regexes for each case than have just one // because of backtracing, in some cases, it could lead to an exponential effect // called "catastrophic backtrace". Ominous! // Parse underscores if (options.literalMidWordUnderscores) { text = text.replace(/\b___(\S[\s\S]*)___\b/g, '<strong><em>$1</em></strong>'); text = text.replace(/\b__(\S[\s\S]*)__\b/g, '<strong>$1</strong>'); text = text.replace(/\b_(\S[\s\S]*?)_\b/g, '<em>$1</em>'); } else { text = text.replace(/___(\S[\s\S]*?)___/g, function (wm, m) { return (/\S$/.test(m)) ? '<strong><em>' + m + '</em></strong>' : wm; }); text = text.replace(/__(\S[\s\S]*?)__/g, function (wm, m) { return (/\S$/.test(m)) ? '<strong>' + m + '</strong>' : wm; }); text = text.replace(/_([^\s_][\s\S]*?)_/g, function (wm, m) { // !/^_[^_]/.test(m) - test if it doesn't start with __ (since it seems redundant, we removed it) return (/\S$/.test(m)) ? '<em>' + m + '</em>' : wm; }); } // Now parse asterisks text = text.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g, function (wm, m) { return (/\S$/.test(m)) ? '<strong><em>' + m + '</em></strong>' : wm; }); text = text.replace(/\*\*(\S[\s\S]*?)\*\*/g, function (wm, m) { return (/\S$/.test(m)) ? '<strong>' + m + '</strong>' : wm; }); text = text.replace(/\*([^\s*][\s\S]*?)\*/g, function (wm, m) { // !/^\*[^*]/.test(m) - test if it doesn't start with ** (since it seems redundant, we removed it) return (/\S$/.test(m)) ? '<em>' + m + '</em>' : wm; }); text = globals.converter._dispatch('italicsAndBold.after', text, options, globals); return text; }); /** * Form HTML ordered (numbered) and unordered (bulleted) lists. */ showdown.subParser('lists', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('lists.before', text, options, globals); /** * Process the contents of a single ordered or unordered list, splitting it * into individual list items. * @param {string} listStr * @param {boolean} trimTrailing * @returns {string} */ function processListItems (listStr, trimTrailing) { // The $g_list_level global keeps track of when we're inside a list. // Each time we enter a list, we increment it; when we leave a list, // we decrement. If it's zero, we're not in a list anymore. // // We do this because when we're not inside a list, we want to treat // something like this: // // I recommend upgrading to version // 8. Oops, now this line is treated // as a sub-list. // // As a single paragraph, despite the fact that the second line starts // with a digit-period-space sequence. // // Whereas when we're inside a list (or sub-list), that line will be // treated as the start of a sub-list. What a kludge, huh? This is // an aspect of Markdown's syntax that's hard to parse perfectly // without resorting to mind-reading. Perhaps the solution is to // change the syntax rules such that sub-lists must start with a // starting cardinal number; e.g. "1." or "a.". globals.gListLevel++; // trim trailing blank lines: listStr = listStr.replace(/\n{2,}$/, '\n'); // attacklab: add sentinel to emulate \z listStr += '¨0'; var rgx = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm, isParagraphed = (/\n[ \t]*\n(?!¨0)/.test(listStr)); // Since version 1.5, nesting sublists requires 4 spaces (or 1 tab) indentation, // which is a syntax breaking change // activating this option reverts to old behavior if (options.disableForced4SpacesIndentedSublists) { rgx = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm; } listStr = listStr.replace(rgx, function (wholeMatch, m1, m2, m3, m4, taskbtn, checked) { checked = (checked && checked.trim() !== ''); var item = showdown.subParser('outdent')(m4, options, globals), bulletStyle = ''; // Support for github tasklists if (taskbtn && options.tasklists) { bulletStyle = ' class="task-list-item" style="list-style-type: none;"'; item = item.replace(/^[ \t]*\[(x|X| )?]/m, function () { var otp = '<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"'; if (checked) { otp += ' checked'; } otp += '>'; return otp; }); } // ISSUE #312 // This input: - - - a // causes trouble to the parser, since it interprets it as: // <ul><li><li><li>a</li></li></li></ul> // instead of: // <ul><li>- - a</li></ul> // So, to prevent it, we will put a marker (¨A)in the beginning of the line // Kind of hackish/monkey patching, but seems more effective than overcomplicating the list parser item = item.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g, function (wm2) { return '¨A' + wm2; }); // m1 - Leading line or // Has a double return (multi paragraph) or // Has sublist if (m1 || (item.search(/\n{2,}/) > -1)) { item = showdown.subParser('githubCodeBlocks')(item, options, globals); item = showdown.subParser('blockGamut')(item, options, globals); } else { // Recursion for sub-lists: item = showdown.subParser('lists')(item, options, globals); item = item.replace(/\n$/, ''); // chomp(item) item = showdown.subParser('hashHTMLBlocks')(item, options, globals); // Colapse double linebreaks item = item.replace(/\n\n+/g, '\n\n'); // replace double linebreaks with a placeholder item = item.replace(/\n\n/g, '¨B'); if (isParagraphed) { item = showdown.subParser('paragraphs')(item, options, globals); } else { item = showdown.subParser('spanGamut')(item, options, globals); } item = item.replace(/¨B/g, '\n\n'); } // now we need to remove the marker (¨A) item = item.replace('¨A', ''); // we can finally wrap the line in list item tags item = '<li' + bulletStyle + '>' + item + '</li>\n'; return item; }); // attacklab: strip sentinel listStr = listStr.replace(/¨0/g, ''); globals.gListLevel--; if (trimTrailing) { listStr = listStr.replace(/\s+$/, ''); } return listStr; } /** * Check and parse consecutive lists (better fix for issue #142) * @param {string} list * @param {string} listType * @param {boolean} trimTrailing * @returns {string} */ function parseConsecutiveLists (list, listType, trimTrailing) { // check if we caught 2 or more consecutive lists by mistake // we use the counterRgx, meaning if listType is UL we look for OL and vice versa var olRgx = (options.disableForced4SpacesIndentedSublists) ? /^ ?\d+\.[ \t]/gm : /^ {0,3}\d+\.[ \t]/gm, ulRgx = (options.disableForced4SpacesIndentedSublists) ? /^ ?[*+-][ \t]/gm : /^ {0,3}[*+-][ \t]/gm, counterRxg = (listType === 'ul') ? olRgx : ulRgx, result = ''; if (list.search(counterRxg) !== -1) { (function parseCL (txt) { var pos = txt.search(counterRxg); if (pos !== -1) { // slice result += '\n<' + listType + '>\n' + processListItems(txt.slice(0, pos), !!trimTrailing) + '</' + listType + '>\n'; // invert counterType and listType listType = (listType === 'ul') ? 'ol' : 'ul'; counterRxg = (listType === 'ul') ? olRgx : ulRgx; //recurse parseCL(txt.slice(pos)); } else { result += '\n<' + listType + '>\n' + processListItems(txt, !!trimTrailing) + '</' + listType + '>\n'; } })(list); } else { result = '\n<' + listType + '>\n' + processListItems(list, !!trimTrailing) + '</' + listType + '>\n'; } return result; } // add sentinel to hack around khtml/safari bug: // http://bugs.webkit.org/show_bug.cgi?id=11231 text += '¨0'; if (globals.gListLevel) { text = text.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm, function (wholeMatch, list, m2) { var listType = (m2.search(/[*+-]/g) > -1) ? 'ul' : 'ol'; return parseConsecutiveLists(list, listType, true); } ); } else { text = text.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm, function (wholeMatch, m1, list, m3) { var listType = (m3.search(/[*+-]/g) > -1) ? 'ul' : 'ol'; return parseConsecutiveLists(list, listType, false); } ); } // strip sentinel text = text.replace(/¨0/, ''); text = globals.converter._dispatch('lists.after', text, options, globals); return text; }); /** * Remove one level of line-leading tabs or spaces */ showdown.subParser('outdent', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('outdent.before', text, options, globals); // attacklab: hack around Konqueror 3.5.4 bug: // "----------bug".replace(/^-/g,"") == "bug" text = text.replace(/^(\t|[ ]{1,4})/gm, '¨0'); // attacklab: g_tab_width // attacklab: clean up hack text = text.replace(/¨0/g, ''); text = globals.converter._dispatch('outdent.after', text, options, globals); return text; }); /** * */ showdown.subParser('paragraphs', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('paragraphs.before', text, options, globals); // Strip leading and trailing lines: text = text.replace(/^\n+/g, ''); text = text.replace(/\n+$/g, ''); var grafs = text.split(/\n{2,}/g), grafsOut = [], end = grafs.length; // Wrap <p> tags for (var i = 0; i < end; i++) { var str = grafs[i]; // if this is an HTML marker, copy it if (str.search(/¨(K|G)(\d+)\1/g) >= 0) { grafsOut.push(str); // test for presence of characters to prevent empty lines being parsed // as paragraphs (resulting in undesired extra empty paragraphs) } else if (str.search(/\S/) >= 0) { str = showdown.subParser('spanGamut')(str, options, globals); str = str.replace(/^([ \t]*)/g, '<p>'); str += '</p>'; grafsOut.push(str); } } /** Unhashify HTML blocks */ end = grafsOut.length; for (i = 0; i < end; i++) { var blockText = '', grafsOutIt = grafsOut[i], codeFlag = false; // if this is a marker for an html block... // use RegExp.test instead of string.search because of QML bug while (/¨(K|G)(\d+)\1/.test(grafsOutIt)) { var delim = RegExp.$1, num = RegExp.$2; if (delim === 'K') { blockText = globals.gHtmlBlocks[num]; } else { // we need to check if ghBlock is a false positive if (codeFlag) { // use encoded version of all text blockText = showdown.subParser('encodeCode')(globals.ghCodeBlocks[num].text, options, globals); } else { blockText = globals.ghCodeBlocks[num].codeblock; } } blockText = blockText.replace(/\$/g, '$$$$'); // Escape any dollar signs grafsOutIt = grafsOutIt.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/, blockText); // Check if grafsOutIt is a pre->code if (/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(grafsOutIt)) { codeFlag = true; } } grafsOut[i] = grafsOutIt; } text = grafsOut.join('\n'); // Strip leading and trailing lines: text = text.replace(/^\n+/g, ''); text = text.replace(/\n+$/g, ''); return globals.converter._dispatch('paragraphs.after', text, options, globals); }); /** * Run extension */ showdown.subParser('runExtension', function (ext, text, options, globals) { 'use strict'; if (ext.filter) { text = ext.filter(text, globals.converter, options); } else if (ext.regex) { // TODO remove this when old extension loading mechanism is deprecated var re = ext.regex; if (!(re instanceof RegExp)) { re = new RegExp(re, 'g'); } text = text.replace(re, ext.replace); } return text; }); /** * These are all the transformations that occur *within* block-level * tags like paragraphs, headers, and list items. */ showdown.subParser('spanGamut', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('spanGamut.before', text, options, globals); text = showdown.subParser('codeSpans')(text, options, globals); text = showdown.subParser('escapeSpecialCharsWithinTagAttributes')(text, options, globals); text = showdown.subParser('encodeBackslashEscapes')(text, options, globals); // Process anchor and image tags. Images must come first, // because ![foo][f] looks like an anchor. text = showdown.subParser('images')(text, options, globals); text = showdown.subParser('anchors')(text, options, globals); // Make links out of things like `<http://example.com/>` // Must come after _DoAnchors(), because you can use < and > // delimiters in inline links like [this](<url>). text = showdown.subParser('autoLinks')(text, options, globals); text = showdown.subParser('italicsAndBold')(text, options, globals); text = showdown.subParser('strikethrough')(text, options, globals); // we need to hash HTML tags inside spans text = showdown.subParser('hashHTMLSpans')(text, options, globals); // now we encode amps and angles text = showdown.subParser('encodeAmpsAndAngles')(text, options, globals); // Do hard breaks if (options.simpleLineBreaks) { // GFM style hard breaks text = text.replace(/\n/g, '<br />\n'); } else { // Vanilla hard breaks text = text.replace(/ +\n/g, '<br />\n'); } text = globals.converter._dispatch('spanGamut.after', text, options, globals); return text; }); showdown.subParser('strikethrough', function (text, options, globals) { 'use strict'; if (options.strikethrough) { text = globals.converter._dispatch('strikethrough.before', text, options, globals); text = text.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g, '<del>$1</del>'); text = globals.converter._dispatch('strikethrough.after', text, options, globals); } return text; }); /** * Strips link definitions from text, stores the URLs and titles in * hash references. * Link defs are in the form: ^[id]: url "optional title" */ showdown.subParser('stripLinkDefinitions', function (text, options, globals) { 'use strict'; var regex = /^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(\S+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm; // attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug text += '¨0'; text = text.replace(regex, function (wholeMatch, linkId, url, width, height, blankLines, title) { linkId = linkId.toLowerCase(); globals.gUrls[linkId] = showdown.subParser('encodeAmpsAndAngles')(url, options, globals); // Link IDs are case-insensitive if (blankLines) { // Oops, found blank lines, so it's not a title. // Put back the parenthetical statement we stole. return blankLines + title; } else { if (title) { globals.gTitles[linkId] = title.replace(/"|'/g, '&quot;'); } if (options.parseImgDimensions && width && height) { globals.gDimensions[linkId] = { width: width, height: height }; } } // Completely remove the definition from the text return ''; }); // attacklab: strip sentinel text = text.replace(/¨0/, ''); return text; }); showdown.subParser('tables', function (text, options, globals) { 'use strict'; if (!options.tables) { return text; } var tableRgx = /^ {0,3}\|?.+\|.+\n[ \t]{0,3}\|?[ \t]*:?[ \t]*(?:-|=){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:-|=){2,}[\s\S]+?(?:\n\n|¨0)/gm; function parseStyles (sLine) { if (/^:[ \t]*--*$/.test(sLine)) { return ' style="text-align:left;"'; } else if (/^--*[ \t]*:[ \t]*$/.test(sLine)) { return ' style="text-align:right;"'; } else if (/^:[ \t]*--*[ \t]*:$/.test(sLine)) { return ' style="text-align:center;"'; } else { return ''; } } function parseHeaders (header, style) { var id = ''; header = header.trim(); if (options.tableHeaderId) { id = ' id="' + header.replace(/ /g, '_').toLowerCase() + '"'; } header = showdown.subParser('spanGamut')(header, options, globals); return '<th' + id + style + '>' + header + '</th>\n'; } function parseCells (cell, style) { var subText = showdown.subParser('spanGamut')(cell, options, globals); return '<td' + style + '>' + subText + '</td>\n'; } function buildTable (headers, cells) { var tb = '<table>\n<thead>\n<tr>\n', tblLgn = headers.length; for (var i = 0; i < tblLgn; ++i) { tb += headers[i]; } tb += '</tr>\n</thead>\n<tbody>\n'; for (i = 0; i < cells.length; ++i) { tb += '<tr>\n'; for (var ii = 0; ii < tblLgn; ++ii) { tb += cells[i][ii]; } tb += '</tr>\n'; } tb += '</tbody>\n</table>\n'; return tb; } text = globals.converter._dispatch('tables.before', text, options, globals); text = text.replace(tableRgx, function (rawTable) { var i, tableLines = rawTable.split('\n'); // strip wrong first and last column if wrapped tables are used for (i = 0; i < tableLines.length; ++i) { if (/^ {0,3}\|/.test(tableLines[i])) { tableLines[i] = tableLines[i].replace(/^ {0,3}\|/, ''); } if (/\|[ \t]*$/.test(tableLines[i])) { tableLines[i] = tableLines[i].replace(/\|[ \t]*$/, ''); } } var rawHeaders = tableLines[0].split('|').map(function (s) { return s.trim();}), rawStyles = tableLines[1].split('|').map(function (s) { return s.trim();}), rawCells = [], headers = [], styles = [], cells = []; tableLines.shift(); tableLines.shift(); for (i = 0; i < tableLines.length; ++i) { if (tableLines[i].trim() === '') { continue; } rawCells.push( tableLines[i] .split('|') .map(function (s) { return s.trim(); }) ); } if (rawHeaders.length < rawStyles.length) { return rawTable; } for (i = 0; i < rawStyles.length; ++i) { styles.push(parseStyles(rawStyles[i])); } for (i = 0; i < rawHeaders.length; ++i) { if (showdown.helper.isUndefined(styles[i])) { styles[i] = ''; } headers.push(parseHeaders(rawHeaders[i], styles[i])); } for (i = 0; i < rawCells.length; ++i) { var row = []; for (var ii = 0; ii < headers.length; ++ii) { if (showdown.helper.isUndefined(rawCells[i][ii])) { } row.push(parseCells(rawCells[i][ii], styles[ii])); } cells.push(row); } return buildTable(headers, cells); }); text = globals.converter._dispatch('tables.after', text, options, globals); return text; }); /** * Swap back in all the special characters we've hidden. */ showdown.subParser('unescapeSpecialChars', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('unescapeSpecialChars.before', text, options, globals); text = text.replace(/¨E(\d+)E/g, function (wholeMatch, m1) { var charCodeToReplace = parseInt(m1); return String.fromCharCode(charCodeToReplace); }); text = globals.converter._dispatch('unescapeSpecialChars.after', text, options, globals); return text; }); var root = this; // CommonJS/nodeJS Loader if (typeof module !== 'undefined' && module.exports) { module.exports = showdown; // AMD Loader } else if (typeof define === 'function' && define.amd) { define(function () { 'use strict'; return showdown; }); // Regular Browser loader } else { root.showdown = showdown; } }).call(this); //# sourceMappingURL=showdown.js.map
30.131266
173
0.585549
a83aba581b25cec4b214ec891a8158b6bf6c1599
51
js
JavaScript
public/js/script.js
tfnyyy23/7-33-Tifany
80d602106fb344684cc40ce3fb319120415355e1
[ "MIT" ]
1
2022-01-25T00:17:16.000Z
2022-01-25T00:17:16.000Z
public/js/script.js
tfnyyy23/7-33-Tifany
80d602106fb344684cc40ce3fb319120415355e1
[ "MIT" ]
null
null
null
public/js/script.js
tfnyyy23/7-33-Tifany
80d602106fb344684cc40ce3fb319120415355e1
[ "MIT" ]
null
null
null
alert ("Hallo, selamat datang di website saya :)");
51
51
0.705882